Merged revisions 73623-73624 via svnmerge from
[python/dscho.git] / configure
blob9d3c9a91f06e3711d91bf4b08d85197ac6de2311
1 #! /bin/sh
2 # From configure.in Revision: 73274 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
6 # Report bugs to <http://bugs.python.org/>.
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='3.1'
579 PACKAGE_STRING='python 3.1'
580 PACKAGE_BUGREPORT='http://bugs.python.org/'
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 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
683 MAINCC
685 GREP
686 EGREP
687 BUILDEXEEXT
688 LIBRARY
689 LDLIBRARY
690 DLLLIBRARY
691 BLDLIBRARY
692 LDLIBRARYDIR
693 INSTSONAME
694 RUNSHARED
695 LINKCC
696 GNULD
697 RANLIB
699 ARFLAGS
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 THREADHEADERS
735 SRCDIRS
736 LTLIBOBJS'
737 ac_subst_files=''
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP'
749 # Initialize some variables set by options.
750 ac_init_help=
751 ac_init_version=false
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
754 cache_file=/dev/null
755 exec_prefix=NONE
756 no_create=
757 no_recursion=
758 prefix=NONE
759 program_prefix=NONE
760 program_suffix=NONE
761 program_transform_name=s,x,x,
762 silent=
763 site=
764 srcdir=
765 verbose=
766 x_includes=NONE
767 x_libraries=NONE
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir='${exec_prefix}/bin'
776 sbindir='${exec_prefix}/sbin'
777 libexecdir='${exec_prefix}/libexec'
778 datarootdir='${prefix}/share'
779 datadir='${datarootdir}'
780 sysconfdir='${prefix}/etc'
781 sharedstatedir='${prefix}/com'
782 localstatedir='${prefix}/var'
783 includedir='${prefix}/include'
784 oldincludedir='/usr/include'
785 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
786 infodir='${datarootdir}/info'
787 htmldir='${docdir}'
788 dvidir='${docdir}'
789 pdfdir='${docdir}'
790 psdir='${docdir}'
791 libdir='${exec_prefix}/lib'
792 localedir='${datarootdir}/locale'
793 mandir='${datarootdir}/man'
795 ac_prev=
796 ac_dashdash=
797 for ac_option
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\$ac_option
802 ac_prev=
803 continue
806 case $ac_option in
807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808 *) ac_optarg=yes ;;
809 esac
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
815 ac_dashdash=yes ;;
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 ac_prev=bindir ;;
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 bindir=$ac_optarg ;;
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
834 --config-cache | -C)
835 cache_file=config.cache ;;
837 -datadir | --datadir | --datadi | --datad)
838 ac_prev=datadir ;;
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
849 -disable-* | --disable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_$ac_feature=no ;;
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
868 -enable-* | --enable-*)
869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
873 { (exit 1); exit 1; }; }
874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
875 eval enable_$ac_feature=\$ac_optarg ;;
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;;
881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
883 | --exec=* | --exe=* | --ex=*)
884 exec_prefix=$ac_optarg ;;
886 -gas | --gas | --ga | --g)
887 # Obsolete; use --with-gas.
888 with_gas=yes ;;
890 -help | --help | --hel | --he | -h)
891 ac_init_help=long ;;
892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
893 ac_init_help=recursive ;;
894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
895 ac_init_help=short ;;
897 -host | --host | --hos | --ho)
898 ac_prev=host_alias ;;
899 -host=* | --host=* | --hos=* | --ho=*)
900 host_alias=$ac_optarg ;;
902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 ac_prev=htmldir ;;
904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 | --ht=*)
906 htmldir=$ac_optarg ;;
908 -includedir | --includedir | --includedi | --included | --include \
909 | --includ | --inclu | --incl | --inc)
910 ac_prev=includedir ;;
911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
912 | --includ=* | --inclu=* | --incl=* | --inc=*)
913 includedir=$ac_optarg ;;
915 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 ac_prev=infodir ;;
917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
918 infodir=$ac_optarg ;;
920 -libdir | --libdir | --libdi | --libd)
921 ac_prev=libdir ;;
922 -libdir=* | --libdir=* | --libdi=* | --libd=*)
923 libdir=$ac_optarg ;;
925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
926 | --libexe | --libex | --libe)
927 ac_prev=libexecdir ;;
928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
929 | --libexe=* | --libex=* | --libe=*)
930 libexecdir=$ac_optarg ;;
932 -localedir | --localedir | --localedi | --localed | --locale)
933 ac_prev=localedir ;;
934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
935 localedir=$ac_optarg ;;
937 -localstatedir | --localstatedir | --localstatedi | --localstated \
938 | --localstate | --localstat | --localsta | --localst | --locals)
939 ac_prev=localstatedir ;;
940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
942 localstatedir=$ac_optarg ;;
944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 ac_prev=mandir ;;
946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 mandir=$ac_optarg ;;
949 -nfp | --nfp | --nf)
950 # Obsolete; use --without-fp.
951 with_fp=no ;;
953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
954 | --no-cr | --no-c | -n)
955 no_create=yes ;;
957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959 no_recursion=yes ;;
961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
963 | --oldin | --oldi | --old | --ol | --o)
964 ac_prev=oldincludedir ;;
965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
968 oldincludedir=$ac_optarg ;;
970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 ac_prev=prefix ;;
972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973 prefix=$ac_optarg ;;
975 -program-prefix | --program-prefix | --program-prefi | --program-pref \
976 | --program-pre | --program-pr | --program-p)
977 ac_prev=program_prefix ;;
978 -program-prefix=* | --program-prefix=* | --program-prefi=* \
979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
980 program_prefix=$ac_optarg ;;
982 -program-suffix | --program-suffix | --program-suffi | --program-suff \
983 | --program-suf | --program-su | --program-s)
984 ac_prev=program_suffix ;;
985 -program-suffix=* | --program-suffix=* | --program-suffi=* \
986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
987 program_suffix=$ac_optarg ;;
989 -program-transform-name | --program-transform-name \
990 | --program-transform-nam | --program-transform-na \
991 | --program-transform-n | --program-transform- \
992 | --program-transform | --program-transfor \
993 | --program-transfo | --program-transf \
994 | --program-trans | --program-tran \
995 | --progr-tra | --program-tr | --program-t)
996 ac_prev=program_transform_name ;;
997 -program-transform-name=* | --program-transform-name=* \
998 | --program-transform-nam=* | --program-transform-na=* \
999 | --program-transform-n=* | --program-transform-=* \
1000 | --program-transform=* | --program-transfor=* \
1001 | --program-transfo=* | --program-transf=* \
1002 | --program-trans=* | --program-tran=* \
1003 | --progr-tra=* | --program-tr=* | --program-t=*)
1004 program_transform_name=$ac_optarg ;;
1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 ac_prev=pdfdir ;;
1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1009 pdfdir=$ac_optarg ;;
1011 -psdir | --psdir | --psdi | --psd | --ps)
1012 ac_prev=psdir ;;
1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014 psdir=$ac_optarg ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 silent=yes ;;
1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 ac_prev=sbindir ;;
1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 | --sbi=* | --sb=*)
1024 sbindir=$ac_optarg ;;
1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1028 | --sharedst | --shareds | --shared | --share | --shar \
1029 | --sha | --sh)
1030 ac_prev=sharedstatedir ;;
1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 | --sha=* | --sh=*)
1035 sharedstatedir=$ac_optarg ;;
1037 -site | --site | --sit)
1038 ac_prev=site ;;
1039 -site=* | --site=* | --sit=*)
1040 site=$ac_optarg ;;
1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 ac_prev=srcdir ;;
1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1045 srcdir=$ac_optarg ;;
1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1048 | --syscon | --sysco | --sysc | --sys | --sy)
1049 ac_prev=sysconfdir ;;
1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1052 sysconfdir=$ac_optarg ;;
1054 -target | --target | --targe | --targ | --tar | --ta | --t)
1055 ac_prev=target_alias ;;
1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1057 target_alias=$ac_optarg ;;
1059 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060 verbose=yes ;;
1062 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;;
1065 -with-* | --with-*)
1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_$ac_package=\$ac_optarg ;;
1074 -without-* | --without-*)
1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_$ac_package=no ;;
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option
1102 Try \`$0 --help' for more information." >&2
1103 { (exit 1); exit 1; }; }
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1111 { (exit 1); exit 1; }; }
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123 esac
1124 done
1126 if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2
1129 { (exit 1); exit 1; }; }
1132 # Be sure to have absolute directory names.
1133 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1138 eval ac_val=\$$ac_var
1139 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1144 { (exit 1); exit 1; }; }
1145 done
1147 # There might be people who depend on the old broken behavior: `$host'
1148 # used to hold the argument of --host etc.
1149 # FIXME: To remove some day.
1150 build=$build_alias
1151 host=$host_alias
1152 target=$target_alias
1154 # FIXME: To remove some day.
1155 if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then
1157 cross_compiling=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes
1165 ac_tool_prefix=
1166 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168 test "$silent" = yes && exec 6>/dev/null
1171 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di=`ls -di .` &&
1173 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2
1175 { (exit 1); exit 1; }; }
1176 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2
1178 { (exit 1); exit 1; }; }
1181 # Find the source files, if location was not specified.
1182 if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$0" ||
1186 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1190 echo X"$0" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192 s//\1/
1195 /^X\(\/\/\)[^/].*/{
1196 s//\1/
1199 /^X\(\/\/\)$/{
1200 s//\1/
1203 /^X\(\/\).*/{
1204 s//\1/
1207 s/.*/./; q'`
1208 srcdir=$ac_confdir
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 srcdir=..
1212 else
1213 ac_srcdir_defaulted=no
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1218 { (exit 1); exit 1; }; }
1220 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1223 { (exit 1); exit 1; }; }
1224 pwd)`
1225 # When building in place, set srcdir=.
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 srcdir=.
1229 # Remove unnecessary trailing slashes from srcdir.
1230 # Double slashes in file names in object file debugging info
1231 # mess up M-x gdb in Emacs.
1232 case $srcdir in
1233 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234 esac
1235 for ac_var in $ac_precious_vars; do
1236 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_env_${ac_var}_value=\$${ac_var}
1238 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1240 done
1243 # Report the --help message.
1245 if test "$ac_init_help" = "long"; then
1246 # Omit some internal or obsolete options to make the list less imposing.
1247 # This message is too long to be a string in the A/UX 3.1 sh.
1248 cat <<_ACEOF
1249 \`configure' configures python 3.1 to adapt to many kinds of systems.
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254 VAR=VALUE. See below for descriptions of some of the useful variables.
1256 Defaults for the options are specified in brackets.
1258 Configuration:
1259 -h, --help display this help and exit
1260 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages
1264 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269 Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 [PREFIX]
1275 By default, \`make install' will install all the files in
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278 for instance \`--prefix=\$HOME'.
1280 For better control, use the options below.
1282 Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1302 _ACEOF
1304 cat <<\_ACEOF
1305 _ACEOF
1308 if test -n "$ac_init_help"; then
1309 case $ac_init_help in
1310 short | recursive ) echo "Configuration of python 3.1:";;
1311 esac
1312 cat <<\_ACEOF
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-universalsdk[=SDKDIR]
1318 Build against Mac OS X 10.4u SDK (ppc/i386)
1319 --enable-framework[=INSTALLDIR]
1320 Build (MacOSX|Darwin) framework
1321 --enable-shared disable/enable building shared python library
1322 --enable-profiling enable C-level code profiling
1323 --enable-ipv6 Enable ipv6 (with ipv4) support
1324 --disable-ipv6 Disable ipv6 support
1325 --enable-big-digits[=BITS]
1326 use big digits for Python longs [BITS=30]
1328 Optional Packages:
1329 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1330 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1331 --with-universal-archs=ARCH
1332 select architectures for universal build ("32-bit",
1333 "64-bit" or "all")
1334 --with-framework-name=FRAMEWORK
1335 specify an alternate name of the framework built
1336 with --enable-framework
1337 --without-gcc never use gcc
1338 --with-cxx-main=<compiler>
1339 compile main() and link python executable with C++
1340 compiler
1341 --with-suffix=.exe set executable suffix
1342 --with-pydebug build with Py_DEBUG defined
1343 --with-libs='lib1 ...' link against additional libs
1344 --with-system-ffi build _ctypes module using an installed ffi library
1345 --with-dbmliborder=db1:db2:...
1346 order to check db backends for dbm. Valid value is a
1347 colon separated string with the backend names
1348 `ndbm', `gdbm' and `bdb'.
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
1363 --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
1364 --with-computed-gotos Use computed gotos / threaded dispatch in evaluation
1365 loop (not available on all compilers)
1367 Some influential environment variables:
1368 CC C compiler command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1371 nonstandard directory <lib dir>
1372 LIBS libraries to pass to the linker, e.g. -l<library>
1373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374 you have headers in a nonstandard directory <include dir>
1375 CPP C preprocessor
1377 Use these variables to override the choices made by `configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to <http://bugs.python.org/>.
1381 _ACEOF
1382 ac_status=$?
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" || continue
1389 ac_builddir=.
1391 case "$ac_dir" in
1392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1400 esac ;;
1401 esac
1402 ac_abs_top_builddir=$ac_pwd
1403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404 # for backward compatibility:
1405 ac_top_builddir=$ac_top_build_prefix
1407 case $srcdir in
1408 .) # We are building in place.
1409 ac_srcdir=.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1416 *) # Relative name.
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420 esac
1421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1431 else
1432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 fi || ac_status=$?
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1435 done
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1440 cat <<\_ACEOF
1441 python configure 3.1
1442 generated by GNU Autoconf 2.61
1444 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1445 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1448 _ACEOF
1449 exit
1451 cat >config.log <<_ACEOF
1452 This file contains any messages produced by compilers while
1453 running configure, to aid debugging if configure makes a mistake.
1455 It was created by python $as_me 3.1, which was
1456 generated by GNU Autoconf 2.61. Invocation command line was
1458 $ $0 $@
1460 _ACEOF
1461 exec 5>>config.log
1463 cat <<_ASUNAME
1464 ## --------- ##
1465 ## Platform. ##
1466 ## --------- ##
1468 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1469 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1470 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1471 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1472 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1474 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1475 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1477 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1478 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1479 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1480 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1481 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1482 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1483 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1485 _ASUNAME
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 echo "PATH: $as_dir"
1493 done
1494 IFS=$as_save_IFS
1496 } >&5
1498 cat >&5 <<_ACEOF
1501 ## ----------- ##
1502 ## Core tests. ##
1503 ## ----------- ##
1505 _ACEOF
1508 # Keep a trace of the command line.
1509 # Strip out --no-create and --no-recursion so they do not pile up.
1510 # Strip out --silent because we don't want to record it for future runs.
1511 # Also quote any args containing shell meta-characters.
1512 # Make two passes to allow for proper duplicate-argument suppression.
1513 ac_configure_args=
1514 ac_configure_args0=
1515 ac_configure_args1=
1516 ac_must_keep_next=false
1517 for ac_pass in 1 2
1519 for ac_arg
1521 case $ac_arg in
1522 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1525 continue ;;
1526 *\'*)
1527 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1528 esac
1529 case $ac_pass in
1530 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1532 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1533 if test $ac_must_keep_next = true; then
1534 ac_must_keep_next=false # Got value, back to normal.
1535 else
1536 case $ac_arg in
1537 *=* | --config-cache | -C | -disable-* | --disable-* \
1538 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1539 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1540 | -with-* | --with-* | -without-* | --without-* | --x)
1541 case "$ac_configure_args0 " in
1542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1543 esac
1545 -* ) ac_must_keep_next=true ;;
1546 esac
1548 ac_configure_args="$ac_configure_args '$ac_arg'"
1550 esac
1551 done
1552 done
1553 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1554 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1556 # When interrupted or exit'd, cleanup temporary files, and complete
1557 # config.log. We remove comments because anyway the quotes in there
1558 # would cause problems or look ugly.
1559 # WARNING: Use '\'' to represent an apostrophe within the trap.
1560 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1561 trap 'exit_status=$?
1562 # Save into config.log some information that might help in debugging.
1564 echo
1566 cat <<\_ASBOX
1567 ## ---------------- ##
1568 ## Cache variables. ##
1569 ## ---------------- ##
1570 _ASBOX
1571 echo
1572 # The following way of writing the cache mishandles newlines in values,
1574 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1575 eval ac_val=\$$ac_var
1576 case $ac_val in #(
1577 *${as_nl}*)
1578 case $ac_var in #(
1579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1580 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1581 esac
1582 case $ac_var in #(
1583 _ | IFS | as_nl) ;; #(
1584 *) $as_unset $ac_var ;;
1585 esac ;;
1586 esac
1587 done
1588 (set) 2>&1 |
1589 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1591 sed -n \
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1594 ;; #(
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 esac |
1599 sort
1601 echo
1603 cat <<\_ASBOX
1604 ## ----------------- ##
1605 ## Output variables. ##
1606 ## ----------------- ##
1607 _ASBOX
1608 echo
1609 for ac_var in $ac_subst_vars
1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 echo "$ac_var='\''$ac_val'\''"
1616 done | sort
1617 echo
1619 if test -n "$ac_subst_files"; then
1620 cat <<\_ASBOX
1621 ## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##
1624 _ASBOX
1625 echo
1626 for ac_var in $ac_subst_files
1628 eval ac_val=\$$ac_var
1629 case $ac_val in
1630 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 esac
1632 echo "$ac_var='\''$ac_val'\''"
1633 done | sort
1634 echo
1637 if test -s confdefs.h; then
1638 cat <<\_ASBOX
1639 ## ----------- ##
1640 ## confdefs.h. ##
1641 ## ----------- ##
1642 _ASBOX
1643 echo
1644 cat confdefs.h
1645 echo
1647 test "$ac_signal" != 0 &&
1648 echo "$as_me: caught signal $ac_signal"
1649 echo "$as_me: exit $exit_status"
1650 } >&5
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1653 exit $exit_status
1655 for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657 done
1658 ac_signal=0
1660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1661 rm -f -r conftest* confdefs.h
1663 # Predefined preprocessor variables.
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_NAME "$PACKAGE_NAME"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672 _ACEOF
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1677 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_STRING "$PACKAGE_STRING"
1682 _ACEOF
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687 _ACEOF
1690 # Let the site file select an alternate cache file if it wants to.
1691 # Prefer explicitly selected file to automatically selected ones.
1692 if test -n "$CONFIG_SITE"; then
1693 set x "$CONFIG_SITE"
1694 elif test "x$prefix" != xNONE; then
1695 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1696 else
1697 set x "$ac_default_prefix/share/config.site" \
1698 "$ac_default_prefix/etc/config.site"
1700 shift
1701 for ac_site_file
1703 if test -r "$ac_site_file"; then
1704 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1705 echo "$as_me: loading site script $ac_site_file" >&6;}
1706 sed 's/^/| /' "$ac_site_file" >&5
1707 . "$ac_site_file"
1709 done
1711 if test -r "$cache_file"; then
1712 # Some versions of bash will fail to source /dev/null (special
1713 # files actually), so we avoid doing that.
1714 if test -f "$cache_file"; then
1715 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1716 echo "$as_me: loading cache $cache_file" >&6;}
1717 case $cache_file in
1718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1719 *) . "./$cache_file";;
1720 esac
1722 else
1723 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1724 echo "$as_me: creating cache $cache_file" >&6;}
1725 >$cache_file
1728 # Check that the precious variables saved in the cache have kept the same
1729 # value.
1730 ac_cache_corrupted=false
1731 for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1737 set,)
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1739 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1741 ,set)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,);;
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1751 echo "$as_me: former value: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1753 echo "$as_me: current value: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1755 fi;;
1756 esac
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1759 case $ac_new_val in
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1762 esac
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 esac
1768 done
1769 if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1771 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1772 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1773 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1801 ac_ext=c
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 ac_config_headers="$ac_config_headers pyconfig.h"
1813 if test "$prefix" != "/"; then
1814 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1822 # We don't use PACKAGE_ variables, and they cause conflicts
1823 # with other autoconf-based packages that include Python.h
1824 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1825 rm confdefs.h
1826 mv confdefs.h.new confdefs.h
1829 VERSION=3.1
1832 SOVERSION=1.0
1834 # The later defininition of _XOPEN_SOURCE disables certain features
1835 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1837 cat >>confdefs.h <<\_ACEOF
1838 #define _GNU_SOURCE 1
1839 _ACEOF
1842 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1843 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1844 # them.
1846 cat >>confdefs.h <<\_ACEOF
1847 #define _NETBSD_SOURCE 1
1848 _ACEOF
1851 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1852 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1853 # them.
1855 cat >>confdefs.h <<\_ACEOF
1856 #define __BSD_VISIBLE 1
1857 _ACEOF
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1863 cat >>confdefs.h <<\_ACEOF
1864 #define _BSD_TYPES 1
1865 _ACEOF
1868 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1869 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1870 # them.
1872 cat >>confdefs.h <<\_ACEOF
1873 #define _DARWIN_C_SOURCE 1
1874 _ACEOF
1878 define_xopen_source=yes
1880 # Arguments passed to configure.
1882 CONFIG_ARGS="$ac_configure_args"
1884 # Check whether --enable-universalsdk was given.
1885 if test "${enable_universalsdk+set}" = set; then
1886 enableval=$enable_universalsdk;
1887 case $enableval in
1888 yes)
1889 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1891 esac
1892 case $enableval in
1894 UNIVERSALSDK=
1895 enable_universalsdk=
1898 UNIVERSALSDK=$enableval
1900 esac
1902 else
1904 UNIVERSALSDK=
1905 enable_universalsdk=
1911 ARCH_RUN_32BIT=
1914 UNIVERSAL_ARCHS="32-bit"
1915 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1916 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1918 # Check whether --with-universal-archs was given.
1919 if test "${with_universal_archs+set}" = set; then
1920 withval=$with_universal_archs;
1921 { echo "$as_me:$LINENO: result: $withval" >&5
1922 echo "${ECHO_T}$withval" >&6; }
1923 UNIVERSAL_ARCHS="$withval"
1925 else
1927 { echo "$as_me:$LINENO: result: 32-bit" >&5
1928 echo "${ECHO_T}32-bit" >&6; }
1936 # Check whether --with-framework-name was given.
1937 if test "${with_framework_name+set}" = set; then
1938 withval=$with_framework_name;
1939 PYTHONFRAMEWORK=${withval}
1940 PYTHONFRAMEWORKDIR=${withval}.framework
1941 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1943 else
1945 PYTHONFRAMEWORK=Python
1946 PYTHONFRAMEWORKDIR=Python.framework
1947 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1951 # Check whether --enable-framework was given.
1952 if test "${enable_framework+set}" = set; then
1953 enableval=$enable_framework;
1954 case $enableval in
1955 yes)
1956 enableval=/Library/Frameworks
1957 esac
1958 case $enableval in
1960 PYTHONFRAMEWORK=
1961 PYTHONFRAMEWORKDIR=no-framework
1962 PYTHONFRAMEWORKPREFIX=
1963 PYTHONFRAMEWORKINSTALLDIR=
1964 FRAMEWORKINSTALLFIRST=
1965 FRAMEWORKINSTALLLAST=
1966 FRAMEWORKALTINSTALLFIRST=
1967 FRAMEWORKALTINSTALLLAST=
1968 if test "x${prefix}" = "xNONE"; then
1969 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1970 else
1971 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1973 enable_framework=
1976 PYTHONFRAMEWORKPREFIX=$enableval
1977 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1978 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1979 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
1980 if test "$UNIVERSAL_ARCHS" = "all"
1981 then
1982 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1983 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1984 else
1985 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1986 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1989 if test "x${prefix}" = "xNONE" ; then
1990 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1991 else
1992 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1994 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1996 # Add files for Mac specific code to the list of output
1997 # files:
1998 ac_config_files="$ac_config_files Mac/Makefile"
2000 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2002 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2004 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2006 esac
2008 else
2010 PYTHONFRAMEWORK=
2011 PYTHONFRAMEWORKDIR=no-framework
2012 PYTHONFRAMEWORKPREFIX=
2013 PYTHONFRAMEWORKINSTALLDIR=
2014 FRAMEWORKINSTALLFIRST=
2015 FRAMEWORKINSTALLLAST=
2016 FRAMEWORKALTINSTALLFIRST=
2017 FRAMEWORKALTINSTALLLAST=
2018 if test "x${prefix}" = "xNONE" ; then
2019 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2020 else
2021 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2023 enable_framework=
2025 if test "$UNIVERSAL_ARCHS" = "all"
2026 then
2027 FRAMEWORKINSTALLLAST=update4wayuniversal
2028 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2044 ##AC_ARG_WITH(dyld,
2045 ## AC_HELP_STRING(--with-dyld,
2046 ## Use (OpenStep|Rhapsody) dynamic linker))
2048 # Set name for machine-dependent library files
2050 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2051 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2052 if test -z "$MACHDEP"
2053 then
2054 ac_sys_system=`uname -s`
2055 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2056 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2057 ac_sys_release=`uname -v`
2058 else
2059 ac_sys_release=`uname -r`
2061 ac_md_system=`echo $ac_sys_system |
2062 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2063 ac_md_release=`echo $ac_sys_release |
2064 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2065 MACHDEP="$ac_md_system$ac_md_release"
2067 case $MACHDEP in
2068 cygwin*) MACHDEP="cygwin";;
2069 darwin*) MACHDEP="darwin";;
2070 atheos*) MACHDEP="atheos";;
2071 irix646) MACHDEP="irix6";;
2072 '') MACHDEP="unknown";;
2073 esac
2076 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2077 # disable features if it is defined, without any means to access these
2078 # features as extensions. For these systems, we skip the definition of
2079 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2080 # some feature, make sure there is no alternative way to access this
2081 # feature. Also, when using wildcards, make sure you have verified the
2082 # need for not defining _XOPEN_SOURCE on all systems matching the
2083 # wildcard, and that the wildcard does not include future systems
2084 # (which may remove their limitations).
2085 case $ac_sys_system/$ac_sys_release in
2086 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2087 # even though select is a POSIX function. Reported by J. Ribbens.
2088 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2089 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2090 define_xopen_source=no
2091 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2092 # also defined. This can be overridden by defining _BSD_SOURCE
2093 # As this has a different meaning on Linux, only define it on OpenBSD
2095 cat >>confdefs.h <<\_ACEOF
2096 #define _BSD_SOURCE 1
2097 _ACEOF
2100 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2101 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2102 # Marc Recht
2103 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2104 define_xopen_source=no;;
2105 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2106 # of union __?sigval. Reported by Stuart Bishop.
2107 SunOS/5.6)
2108 define_xopen_source=no;;
2109 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2110 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2111 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2112 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2113 define_xopen_source=no;;
2114 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2115 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2116 SCO_SV/3.2)
2117 define_xopen_source=no;;
2118 # On FreeBSD 4, the math functions C89 does not cover are never defined
2119 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2120 FreeBSD/4.*)
2121 define_xopen_source=no;;
2122 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2123 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2124 # identifies itself as Darwin/7.*
2125 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2126 # disables platform specific features beyond repair.
2127 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2128 # has no effect, don't bother defining them
2129 Darwin/[6789].*)
2130 define_xopen_source=no;;
2131 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2132 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2133 # or has another value. By not (re)defining it, the defaults come in place.
2134 AIX/4)
2135 define_xopen_source=no;;
2136 AIX/5)
2137 if test `uname -r` -eq 1; then
2138 define_xopen_source=no
2141 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2142 # defining NI_NUMERICHOST.
2143 QNX/6.3.2)
2144 define_xopen_source=no
2147 esac
2149 if test $define_xopen_source = yes
2150 then
2151 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2152 # defined precisely as g++ defines it
2153 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2154 # compiler
2155 case $ac_sys_system/$ac_sys_release in
2156 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2158 cat >>confdefs.h <<\_ACEOF
2159 #define _XOPEN_SOURCE 500
2160 _ACEOF
2165 cat >>confdefs.h <<\_ACEOF
2166 #define _XOPEN_SOURCE 600
2167 _ACEOF
2170 esac
2172 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2173 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2174 # several APIs are not declared. Since this is also needed in some
2175 # cases for HP-UX, we define it globally.
2176 # except for Solaris 10, where it must not be defined,
2177 # as it implies XPG4.2
2178 case $ac_sys_system/$ac_sys_release in
2179 SunOS/5.10)
2183 cat >>confdefs.h <<\_ACEOF
2184 #define _XOPEN_SOURCE_EXTENDED 1
2185 _ACEOF
2188 esac
2191 cat >>confdefs.h <<\_ACEOF
2192 #define _POSIX_C_SOURCE 200112L
2193 _ACEOF
2199 # SGI compilers allow the specification of the both the ABI and the
2200 # ISA on the command line. Depending on the values of these switches,
2201 # different and often incompatable code will be generated.
2203 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2204 # thus supply support for various ABI/ISA combinations. The MACHDEP
2205 # variable is also adjusted.
2208 if test ! -z "$SGI_ABI"
2209 then
2210 CC="cc $SGI_ABI"
2211 LDFLAGS="$SGI_ABI $LDFLAGS"
2212 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2214 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2215 echo "${ECHO_T}$MACHDEP" >&6; }
2217 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2218 # it may influence the way we can build extensions, so distutils
2219 # needs to check it
2222 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2223 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2225 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2226 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2227 ac_sys_machine=`uname -m`
2228 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2229 echo "${ECHO_T}$ac_sys_machine" >&6; }
2231 # checks for alternative programs
2233 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2234 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2235 # just to get things to compile and link. Users are free to override OPT
2236 # when running configure or make. The build should not break if they do.
2237 # BASECFLAGS should generally not be messed with, however.
2239 # XXX shouldn't some/most/all of this code be merged with the stuff later
2240 # on that fiddles with OPT and BASECFLAGS?
2241 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2242 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2244 # Check whether --with-gcc was given.
2245 if test "${with_gcc+set}" = set; then
2246 withval=$with_gcc;
2247 case $withval in
2248 no) CC=${CC:-cc}
2249 without_gcc=yes;;
2250 yes) CC=gcc
2251 without_gcc=no;;
2252 *) CC=$withval
2253 without_gcc=$withval;;
2254 esac
2255 else
2257 case $ac_sys_system in
2258 AIX*) CC=cc_r
2259 without_gcc=;;
2260 Monterey*)
2261 RANLIB=:
2262 without_gcc=;;
2263 *) without_gcc=no;;
2264 esac
2267 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2268 echo "${ECHO_T}$without_gcc" >&6; }
2270 # If the user switches compilers, we can't believe the cache
2271 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2272 then
2273 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2274 (it is also a good idea to do 'make clean' before compiling)" >&5
2275 echo "$as_me: error: cached CC is different -- throw away $cache_file
2276 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2277 { (exit 1); exit 1; }; }
2280 ac_ext=c
2281 ac_cpp='$CPP $CPPFLAGS'
2282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285 if test -n "$ac_tool_prefix"; then
2286 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290 if test "${ac_cv_prog_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2307 done
2308 done
2309 IFS=$as_save_IFS
2313 CC=$ac_cv_prog_CC
2314 if test -n "$CC"; then
2315 { echo "$as_me:$LINENO: result: $CC" >&5
2316 echo "${ECHO_T}$CC" >&6; }
2317 else
2318 { echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6; }
2324 if test -z "$ac_cv_prog_CC"; then
2325 ac_ct_CC=$CC
2326 # Extract the first word of "gcc", so it can be a program name with args.
2327 set dummy gcc; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 if test -n "$ac_ct_CC"; then
2334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343 ac_cv_prog_ac_ct_CC="gcc"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 break 2
2347 done
2348 done
2349 IFS=$as_save_IFS
2353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2354 if test -n "$ac_ct_CC"; then
2355 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2356 echo "${ECHO_T}$ac_ct_CC" >&6; }
2357 else
2358 { echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6; }
2362 if test "x$ac_ct_CC" = x; then
2363 CC=""
2364 else
2365 case $cross_compiling:$ac_tool_warned in
2366 yes:)
2367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet. If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&5
2370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2371 whose name does not start with the host triplet. If you think this
2372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2373 ac_tool_warned=yes ;;
2374 esac
2375 CC=$ac_ct_CC
2377 else
2378 CC="$ac_cv_prog_CC"
2381 if test -z "$CC"; then
2382 if test -n "$ac_tool_prefix"; then
2383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2384 set dummy ${ac_tool_prefix}cc; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_CC="${ac_tool_prefix}cc"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2404 done
2405 done
2406 IFS=$as_save_IFS
2410 CC=$ac_cv_prog_CC
2411 if test -n "$CC"; then
2412 { echo "$as_me:$LINENO: result: $CC" >&5
2413 echo "${ECHO_T}$CC" >&6; }
2414 else
2415 { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2422 if test -z "$CC"; then
2423 # Extract the first word of "cc", so it can be a program name with args.
2424 set dummy cc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 ac_prog_rejected=no
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2442 ac_prog_rejected=yes
2443 continue
2445 ac_cv_prog_CC="cc"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2449 done
2450 done
2451 IFS=$as_save_IFS
2453 if test $ac_prog_rejected = yes; then
2454 # We found a bogon in the path, so make sure we never use it.
2455 set dummy $ac_cv_prog_CC
2456 shift
2457 if test $# != 0; then
2458 # We chose a different compiler from the bogus one.
2459 # However, it has the same basename, so the bogon will be chosen
2460 # first if we set CC to just the basename; use the full file name.
2461 shift
2462 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2467 CC=$ac_cv_prog_CC
2468 if test -n "$CC"; then
2469 { echo "$as_me:$LINENO: result: $CC" >&5
2470 echo "${ECHO_T}$CC" >&6; }
2471 else
2472 { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2478 if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
2480 for ac_prog in cl.exe
2482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2503 done
2504 done
2505 IFS=$as_save_IFS
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511 { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2513 else
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2519 test -n "$CC" && break
2520 done
2522 if test -z "$CC"; then
2523 ac_ct_CC=$CC
2524 for ac_prog in cl.exe
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527 set dummy $ac_prog; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_ac_ct_CC="$ac_prog"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2547 done
2548 done
2549 IFS=$as_save_IFS
2553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554 if test -n "$ac_ct_CC"; then
2555 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2556 echo "${ECHO_T}$ac_ct_CC" >&6; }
2557 else
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2563 test -n "$ac_ct_CC" && break
2564 done
2566 if test "x$ac_ct_CC" = x; then
2567 CC=""
2568 else
2569 case $cross_compiling:$ac_tool_warned in
2570 yes:)
2571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2572 whose name does not start with the host triplet. If you think this
2573 configuration is useful to you, please write to autoconf@gnu.org." >&5
2574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2575 whose name does not start with the host triplet. If you think this
2576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2577 ac_tool_warned=yes ;;
2578 esac
2579 CC=$ac_ct_CC
2586 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2587 See \`config.log' for more details." >&5
2588 echo "$as_me: error: no acceptable C compiler found in \$PATH
2589 See \`config.log' for more details." >&2;}
2590 { (exit 1); exit 1; }; }
2592 # Provide some information about the compiler.
2593 echo "$as_me:$LINENO: checking for C compiler version" >&5
2594 ac_compiler=`set X $ac_compile; echo $2`
2595 { (ac_try="$ac_compiler --version >&5"
2596 case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2599 esac
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_compiler --version >&5") 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2605 { (ac_try="$ac_compiler -v >&5"
2606 case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_compiler -v >&5") 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }
2615 { (ac_try="$ac_compiler -V >&5"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_compiler -V >&5") 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }
2626 cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h. */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2634 main ()
2638 return 0;
2640 _ACEOF
2641 ac_clean_files_save=$ac_clean_files
2642 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2643 # Try to create an executable without -o first, disregard a.out.
2644 # It will help us diagnose broken compilers, and finding out an intuition
2645 # of exeext.
2646 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2647 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2648 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650 # List of possible output files, starting from the most likely.
2651 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2652 # only as a last resort. b.out is created by i960 compilers.
2653 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2655 # The IRIX 6 linker writes into existing files which may not be
2656 # executable, retaining their permissions. Remove them first so a
2657 # subsequent execution test works.
2658 ac_rmfiles=
2659 for ac_file in $ac_files
2661 case $ac_file in
2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2663 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2664 esac
2665 done
2666 rm -f $ac_rmfiles
2668 if { (ac_try="$ac_link_default"
2669 case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672 esac
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_link_default") 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; then
2678 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2679 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2680 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2681 # so that the user can short-circuit this test for compilers unknown to
2682 # Autoconf.
2683 for ac_file in $ac_files ''
2685 test -f "$ac_file" || continue
2686 case $ac_file in
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2689 [ab].out )
2690 # We found the default executable, but exeext='' is most
2691 # certainly right.
2692 break;;
2693 *.* )
2694 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2695 then :; else
2696 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2698 # We set ac_cv_exeext here because the later test for it is not
2699 # safe: cross compilers may not add the suffix if given an `-o'
2700 # argument, so we may need to know it at that point already.
2701 # Even if this section looks crufty: it has the advantage of
2702 # actually working.
2703 break;;
2705 break;;
2706 esac
2707 done
2708 test "$ac_cv_exeext" = no && ac_cv_exeext=
2710 else
2711 ac_file=''
2714 { echo "$as_me:$LINENO: result: $ac_file" >&5
2715 echo "${ECHO_T}$ac_file" >&6; }
2716 if test -z "$ac_file"; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2720 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2721 See \`config.log' for more details." >&5
2722 echo "$as_me: error: C compiler cannot create executables
2723 See \`config.log' for more details." >&2;}
2724 { (exit 77); exit 77; }; }
2727 ac_exeext=$ac_cv_exeext
2729 # Check that the compiler produces executables we can run. If not, either
2730 # the compiler is broken, or we cross compile.
2731 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2733 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734 # If not cross compiling, check that we can run a simple program.
2735 if test "$cross_compiling" != yes; then
2736 if { ac_try='./$ac_file'
2737 { (case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_try") 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 cross_compiling=no
2747 else
2748 if test "$cross_compiling" = maybe; then
2749 cross_compiling=yes
2750 else
2751 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2752 If you meant to cross compile, use \`--host'.
2753 See \`config.log' for more details." >&5
2754 echo "$as_me: error: cannot run C compiled programs.
2755 If you meant to cross compile, use \`--host'.
2756 See \`config.log' for more details." >&2;}
2757 { (exit 1); exit 1; }; }
2761 { echo "$as_me:$LINENO: result: yes" >&5
2762 echo "${ECHO_T}yes" >&6; }
2764 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2765 ac_clean_files=$ac_clean_files_save
2766 # Check that the compiler produces executables we can run. If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2769 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2770 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2771 echo "${ECHO_T}$cross_compiling" >&6; }
2773 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2774 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2775 if { (ac_try="$ac_link"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link") 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2786 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2787 # work properly (i.e., refer to `conftest.exe'), while it won't with
2788 # `rm'.
2789 for ac_file in conftest.exe conftest conftest.*; do
2790 test -f "$ac_file" || continue
2791 case $ac_file in
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2793 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2794 break;;
2795 * ) break;;
2796 esac
2797 done
2798 else
2799 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2802 See \`config.log' for more details." >&2;}
2803 { (exit 1); exit 1; }; }
2806 rm -f conftest$ac_cv_exeext
2807 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2808 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2810 rm -f conftest.$ac_ext
2811 EXEEXT=$ac_cv_exeext
2812 ac_exeext=$EXEEXT
2813 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2814 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2815 if test "${ac_cv_objext+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2826 main ()
2830 return 0;
2832 _ACEOF
2833 rm -f conftest.o conftest.obj
2834 if { (ac_try="$ac_compile"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_compile") 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; then
2844 for ac_file in conftest.o conftest.obj conftest.*; do
2845 test -f "$ac_file" || continue;
2846 case $ac_file in
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2848 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2849 break;;
2850 esac
2851 done
2852 else
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2856 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2863 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2865 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2866 echo "${ECHO_T}$ac_cv_objext" >&6; }
2867 OBJEXT=$ac_cv_objext
2868 ac_objext=$OBJEXT
2869 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h. */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2882 main ()
2884 #ifndef __GNUC__
2885 choke me
2886 #endif
2889 return 0;
2891 _ACEOF
2892 rm -f conftest.$ac_objext
2893 if { (ac_try="$ac_compile"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.$ac_objext; then
2909 ac_compiler_gnu=yes
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 ac_compiler_gnu=no
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2921 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2922 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2923 GCC=`test $ac_compiler_gnu = yes && echo yes`
2924 ac_test_CFLAGS=${CFLAGS+set}
2925 ac_save_CFLAGS=$CFLAGS
2926 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2927 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_cc_g+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931 ac_save_c_werror_flag=$ac_c_werror_flag
2932 ac_c_werror_flag=yes
2933 ac_cv_prog_cc_g=no
2934 CFLAGS="-g"
2935 cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h. */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2943 main ()
2947 return 0;
2949 _ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2952 case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && {
2964 test -z "$ac_c_werror_flag" ||
2965 test ! -s conftest.err
2966 } && test -s conftest.$ac_objext; then
2967 ac_cv_prog_cc_g=yes
2968 else
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 CFLAGS=""
2973 cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h. */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2981 main ()
2985 return 0;
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (ac_try="$ac_compile"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compile") 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } && {
3002 test -z "$ac_c_werror_flag" ||
3003 test ! -s conftest.err
3004 } && test -s conftest.$ac_objext; then
3006 else
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 ac_c_werror_flag=$ac_save_c_werror_flag
3011 CFLAGS="-g"
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3020 main ()
3024 return 0;
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
3044 ac_cv_prog_cc_g=yes
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 ac_c_werror_flag=$ac_save_c_werror_flag
3061 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3062 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3063 if test "$ac_test_CFLAGS" = set; then
3064 CFLAGS=$ac_save_CFLAGS
3065 elif test $ac_cv_prog_cc_g = yes; then
3066 if test "$GCC" = yes; then
3067 CFLAGS="-g -O2"
3068 else
3069 CFLAGS="-g"
3071 else
3072 if test "$GCC" = yes; then
3073 CFLAGS="-O2"
3074 else
3075 CFLAGS=
3078 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3079 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_cc_c89+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 ac_cv_prog_cc_c89=no
3084 ac_save_CC=$CC
3085 cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h. */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3091 #include <stdarg.h>
3092 #include <stdio.h>
3093 #include <sys/types.h>
3094 #include <sys/stat.h>
3095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3096 struct buf { int x; };
3097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3098 static char *e (p, i)
3099 char **p;
3100 int i;
3102 return p[i];
3104 static char *f (char * (*g) (char **, int), char **p, ...)
3106 char *s;
3107 va_list v;
3108 va_start (v,p);
3109 s = g (p, va_arg (v,int));
3110 va_end (v);
3111 return s;
3114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3115 function prototypes and stuff, but not '\xHH' hex character constants.
3116 These don't provoke an error unfortunately, instead are silently treated
3117 as 'x'. The following induces an error, until -std is added to get
3118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3119 array size at least. It's necessary to write '\x00'==0 to get something
3120 that's true only with -std. */
3121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3124 inside strings and character constants. */
3125 #define FOO(x) 'x'
3126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3128 int test (int i, double x);
3129 struct s1 {int (*f) (int a);};
3130 struct s2 {int (*f) (double a);};
3131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3132 int argc;
3133 char **argv;
3135 main ()
3137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3139 return 0;
3141 _ACEOF
3142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3145 CC="$ac_save_CC $ac_arg"
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3148 case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3154 ac_status=$?
3155 grep -v '^ *+' conftest.er1 >conftest.err
3156 rm -f conftest.er1
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.$ac_objext; then
3163 ac_cv_prog_cc_c89=$ac_arg
3164 else
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3171 rm -f core conftest.err conftest.$ac_objext
3172 test "x$ac_cv_prog_cc_c89" != "xno" && break
3173 done
3174 rm -f conftest.$ac_ext
3175 CC=$ac_save_CC
3178 # AC_CACHE_VAL
3179 case "x$ac_cv_prog_cc_c89" in
3181 { echo "$as_me:$LINENO: result: none needed" >&5
3182 echo "${ECHO_T}none needed" >&6; } ;;
3183 xno)
3184 { echo "$as_me:$LINENO: result: unsupported" >&5
3185 echo "${ECHO_T}unsupported" >&6; } ;;
3187 CC="$CC $ac_cv_prog_cc_c89"
3188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3189 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3190 esac
3193 ac_ext=c
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3203 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3205 # Check whether --with-cxx_main was given.
3206 if test "${with_cxx_main+set}" = set; then
3207 withval=$with_cxx_main;
3209 case $withval in
3210 no) with_cxx_main=no
3211 MAINCC='$(CC)';;
3212 yes) with_cxx_main=yes
3213 MAINCC='$(CXX)';;
3214 *) with_cxx_main=yes
3215 MAINCC=$withval
3216 if test -z "$CXX"
3217 then
3218 CXX=$withval
3219 fi;;
3220 esac
3221 else
3223 with_cxx_main=no
3224 MAINCC='$(CC)'
3228 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3229 echo "${ECHO_T}$with_cxx_main" >&6; }
3231 preset_cxx="$CXX"
3232 if test -z "$CXX"
3233 then
3234 case "$CC" in
3235 gcc) # Extract the first word of "g++", so it can be a program name with args.
3236 set dummy g++; ac_word=$2
3237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3239 if test "${ac_cv_path_CXX+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 case $CXX in
3243 [\\/]* | ?:[\\/]*)
3244 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in notfound
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3258 done
3259 done
3260 IFS=$as_save_IFS
3262 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3264 esac
3266 CXX=$ac_cv_path_CXX
3267 if test -n "$CXX"; then
3268 { echo "$as_me:$LINENO: result: $CXX" >&5
3269 echo "${ECHO_T}$CXX" >&6; }
3270 else
3271 { echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6; }
3276 cc) # Extract the first word of "c++", so it can be a program name with args.
3277 set dummy c++; ac_word=$2
3278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3280 if test "${ac_cv_path_CXX+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 case $CXX in
3284 [\\/]* | ?:[\\/]*)
3285 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in notfound
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3299 done
3300 done
3301 IFS=$as_save_IFS
3303 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3305 esac
3307 CXX=$ac_cv_path_CXX
3308 if test -n "$CXX"; then
3309 { echo "$as_me:$LINENO: result: $CXX" >&5
3310 echo "${ECHO_T}$CXX" >&6; }
3311 else
3312 { echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6; }
3317 esac
3318 if test "$CXX" = "notfound"
3319 then
3320 CXX=""
3323 if test -z "$CXX"
3324 then
3325 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3327 # Extract the first word of "$ac_prog", so it can be a program name with args.
3328 set dummy $ac_prog; ac_word=$2
3329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3331 if test "${ac_cv_prog_CXX+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334 if test -n "$CXX"; then
3335 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CXX="$ac_prog"
3345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3354 CXX=$ac_cv_prog_CXX
3355 if test -n "$CXX"; then
3356 { echo "$as_me:$LINENO: result: $CXX" >&5
3357 echo "${ECHO_T}$CXX" >&6; }
3358 else
3359 { echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6; }
3364 test -n "$CXX" && break
3365 done
3366 test -n "$CXX" || CXX="notfound"
3368 if test "$CXX" = "notfound"
3369 then
3370 CXX=""
3373 if test "$preset_cxx" != "$CXX"
3374 then
3375 { echo "$as_me:$LINENO: WARNING:
3377 By default, distutils will build C++ extension modules with \"$CXX\".
3378 If this is not intended, then set CXX on the configure command line.
3379 " >&5
3380 echo "$as_me: WARNING:
3382 By default, distutils will build C++ extension modules with \"$CXX\".
3383 If this is not intended, then set CXX on the configure command line.
3384 " >&2;}
3388 # checks for UNIX variants that set C preprocessor variables
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3397 # On Suns, sometimes $CPP names a directory.
3398 if test -n "$CPP" && test -d "$CPP"; then
3399 CPP=
3401 if test -z "$CPP"; then
3402 if test "${ac_cv_prog_CPP+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405 # Double quotes because CPP needs to be expanded
3406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3408 ac_preproc_ok=false
3409 for ac_c_preproc_warn_flag in '' yes
3411 # Use a header file that comes with gcc, so configuring glibc
3412 # with a fresh cross-compiler works.
3413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414 # <limits.h> exists even on freestanding compilers.
3415 # On the NeXT, cc -E runs the code through the compiler's parser,
3416 # not just through cpp. "Syntax error" is here to catch this case.
3417 cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #ifdef __STDC__
3424 # include <limits.h>
3425 #else
3426 # include <assert.h>
3427 #endif
3428 Syntax error
3429 _ACEOF
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437 ac_status=$?
3438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null && {
3443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3444 test ! -s conftest.err
3445 }; then
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 # Broken: fails on valid input.
3452 continue
3455 rm -f conftest.err conftest.$ac_ext
3457 # OK, works on sane cases. Now check whether nonexistent headers
3458 # can be detected and how.
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 #include <ac_nonexistent.h>
3466 _ACEOF
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null && {
3480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3482 }; then
3483 # Broken: success on invalid input.
3484 continue
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 # Passes both tests.
3490 ac_preproc_ok=:
3491 break
3494 rm -f conftest.err conftest.$ac_ext
3496 done
3497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3498 rm -f conftest.err conftest.$ac_ext
3499 if $ac_preproc_ok; then
3500 break
3503 done
3504 ac_cv_prog_CPP=$CPP
3507 CPP=$ac_cv_prog_CPP
3508 else
3509 ac_cv_prog_CPP=$CPP
3511 { echo "$as_me:$LINENO: result: $CPP" >&5
3512 echo "${ECHO_T}$CPP" >&6; }
3513 ac_preproc_ok=false
3514 for ac_c_preproc_warn_flag in '' yes
3516 # Use a header file that comes with gcc, so configuring glibc
3517 # with a fresh cross-compiler works.
3518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3519 # <limits.h> exists even on freestanding compilers.
3520 # On the NeXT, cc -E runs the code through the compiler's parser,
3521 # not just through cpp. "Syntax error" is here to catch this case.
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #ifdef __STDC__
3529 # include <limits.h>
3530 #else
3531 # include <assert.h>
3532 #endif
3533 Syntax error
3534 _ACEOF
3535 if { (ac_try="$ac_cpp conftest.$ac_ext"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } >/dev/null && {
3548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3549 test ! -s conftest.err
3550 }; then
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 # Broken: fails on valid input.
3557 continue
3560 rm -f conftest.err conftest.$ac_ext
3562 # OK, works on sane cases. Now check whether nonexistent headers
3563 # can be detected and how.
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 #include <ac_nonexistent.h>
3571 _ACEOF
3572 if { (ac_try="$ac_cpp conftest.$ac_ext"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3579 ac_status=$?
3580 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } >/dev/null && {
3585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3587 }; then
3588 # Broken: success on invalid input.
3589 continue
3590 else
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 # Passes both tests.
3595 ac_preproc_ok=:
3596 break
3599 rm -f conftest.err conftest.$ac_ext
3601 done
3602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603 rm -f conftest.err conftest.$ac_ext
3604 if $ac_preproc_ok; then
3606 else
3607 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3608 See \`config.log' for more details." >&5
3609 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3610 See \`config.log' for more details." >&2;}
3611 { (exit 1); exit 1; }; }
3614 ac_ext=c
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3622 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 # Extract the first word of "grep ggrep" to use in msg output
3627 if test -z "$GREP"; then
3628 set dummy grep ggrep; ac_prog_name=$2
3629 if test "${ac_cv_path_GREP+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632 ac_path_GREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_prog in grep ggrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3646 *GNU*)
3647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3649 ac_count=0
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3651 while :
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1`
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP="$ac_path_GREP"
3663 ac_path_GREP_max=$ac_count
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3667 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669 esac
3672 $ac_path_GREP_found && break 3
3673 done
3674 done
3676 done
3677 IFS=$as_save_IFS
3682 GREP="$ac_cv_path_GREP"
3683 if test -z "$GREP"; then
3684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3685 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3686 { (exit 1); exit 1; }; }
3689 else
3690 ac_cv_path_GREP=$GREP
3695 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3696 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3697 GREP="$ac_cv_path_GREP"
3700 { echo "$as_me:$LINENO: checking for egrep" >&5
3701 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3702 if test "${ac_cv_path_EGREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3706 then ac_cv_path_EGREP="$GREP -E"
3707 else
3708 # Extract the first word of "egrep" to use in msg output
3709 if test -z "$EGREP"; then
3710 set dummy egrep; ac_prog_name=$2
3711 if test "${ac_cv_path_EGREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 ac_path_EGREP_found=false
3715 # Loop through the user's path and test for each of PROGNAME-LIST
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_prog in egrep; do
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3724 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3725 # Check for GNU ac_path_EGREP and select it if it is found.
3726 # Check for GNU $ac_path_EGREP
3727 case `"$ac_path_EGREP" --version 2>&1` in
3728 *GNU*)
3729 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3731 ac_count=0
3732 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3733 while :
3735 cat "conftest.in" "conftest.in" >"conftest.tmp"
3736 mv "conftest.tmp" "conftest.in"
3737 cp "conftest.in" "conftest.nl"
3738 echo 'EGREP' >> "conftest.nl"
3739 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3741 ac_count=`expr $ac_count + 1`
3742 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3743 # Best one so far, save it but keep looking for a better one
3744 ac_cv_path_EGREP="$ac_path_EGREP"
3745 ac_path_EGREP_max=$ac_count
3747 # 10*(2^10) chars as input seems more than enough
3748 test $ac_count -gt 10 && break
3749 done
3750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3751 esac
3754 $ac_path_EGREP_found && break 3
3755 done
3756 done
3758 done
3759 IFS=$as_save_IFS
3764 EGREP="$ac_cv_path_EGREP"
3765 if test -z "$EGREP"; then
3766 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3767 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3768 { (exit 1); exit 1; }; }
3771 else
3772 ac_cv_path_EGREP=$EGREP
3778 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3779 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3780 EGREP="$ac_cv_path_EGREP"
3784 { echo "$as_me:$LINENO: checking for AIX" >&5
3785 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3786 cat >conftest.$ac_ext <<_ACEOF
3787 /* confdefs.h. */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3792 #ifdef _AIX
3794 #endif
3796 _ACEOF
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798 $EGREP "yes" >/dev/null 2>&1; then
3799 { echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6; }
3801 cat >>confdefs.h <<\_ACEOF
3802 #define _ALL_SOURCE 1
3803 _ACEOF
3805 else
3806 { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3809 rm -f conftest*
3813 # Check for unsupported systems
3814 case $ac_sys_system/$ac_sys_release in
3815 atheos*|Linux*/1*)
3816 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3817 echo See README for details.
3818 exit 1;;
3819 esac
3822 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3823 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3825 # Check whether --with-suffix was given.
3826 if test "${with_suffix+set}" = set; then
3827 withval=$with_suffix;
3828 case $withval in
3829 no) EXEEXT=;;
3830 yes) EXEEXT=.exe;;
3831 *) EXEEXT=$withval;;
3832 esac
3835 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3836 echo "${ECHO_T}$EXEEXT" >&6; }
3838 # Test whether we're running on a non-case-sensitive system, in which
3839 # case we give a warning if no ext is given
3841 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3842 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3843 if test ! -d CaseSensitiveTestDir; then
3844 mkdir CaseSensitiveTestDir
3847 if test -d casesensitivetestdir
3848 then
3849 { echo "$as_me:$LINENO: result: yes" >&5
3850 echo "${ECHO_T}yes" >&6; }
3851 BUILDEXEEXT=.exe
3852 else
3853 { echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6; }
3855 BUILDEXEEXT=$EXEEXT
3857 rmdir CaseSensitiveTestDir
3859 case $MACHDEP in
3860 bsdos*)
3861 case $CC in
3862 gcc) CC="$CC -D_HAVE_BSDI";;
3863 esac;;
3864 esac
3866 case $ac_sys_system in
3867 hp*|HP*)
3868 case $CC in
3869 cc|*/cc) CC="$CC -Ae";;
3870 esac;;
3871 Monterey*)
3872 case $CC in
3873 cc) CC="$CC -Wl,-Bexport";;
3874 esac;;
3875 SunOS*)
3876 # Some functions have a prototype only with that define, e.g. confstr
3878 cat >>confdefs.h <<\_ACEOF
3879 #define __EXTENSIONS__ 1
3880 _ACEOF
3883 esac
3887 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3888 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3889 if test -z "$LIBRARY"
3890 then
3891 LIBRARY='libpython$(VERSION).a'
3893 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3894 echo "${ECHO_T}$LIBRARY" >&6; }
3896 # LDLIBRARY is the name of the library to link against (as opposed to the
3897 # name of the library into which to insert object files). BLDLIBRARY is also
3898 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3899 # is blank as the main program is not linked directly against LDLIBRARY.
3900 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3901 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3902 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3903 # DLLLIBRARY is the shared (i.e., DLL) library.
3905 # RUNSHARED is used to run shared python without installed libraries
3907 # INSTSONAME is the name of the shared library that will be use to install
3908 # on the system - some systems like version suffix, others don't
3915 LDLIBRARY="$LIBRARY"
3916 BLDLIBRARY='$(LDLIBRARY)'
3917 INSTSONAME='$(LDLIBRARY)'
3918 DLLLIBRARY=''
3919 LDLIBRARYDIR=''
3920 RUNSHARED=''
3922 # LINKCC is the command that links the python executable -- default is $(CC).
3923 # If CXX is set, and if it is needed to link a main function that was
3924 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3925 # python might then depend on the C++ runtime
3926 # This is altered for AIX in order to build the export list before
3927 # linking.
3929 { echo "$as_me:$LINENO: checking LINKCC" >&5
3930 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3931 if test -z "$LINKCC"
3932 then
3933 LINKCC='$(PURIFY) $(MAINCC)'
3934 case $ac_sys_system in
3935 AIX*)
3936 exp_extra="\"\""
3937 if test $ac_sys_release -ge 5 -o \
3938 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3939 exp_extra="."
3941 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3942 Monterey64*)
3943 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3944 QNX*)
3945 # qcc must be used because the other compilers do not
3946 # support -N.
3947 LINKCC=qcc;;
3948 esac
3950 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3951 echo "${ECHO_T}$LINKCC" >&6; }
3953 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3954 # make sure we default having it set to "no": this is used by
3955 # distutils.unixccompiler to know if it should add --enable-new-dtags
3956 # to linker command lines, and failing to detect GNU ld simply results
3957 # in the same bahaviour as before.
3959 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3960 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3961 ac_prog=ld
3962 if test "$GCC" = yes; then
3963 ac_prog=`$CC -print-prog-name=ld`
3965 case `"$ac_prog" -V 2>&1 < /dev/null` in
3966 *GNU*)
3967 GNULD=yes;;
3969 GNULD=no;;
3970 esac
3971 { echo "$as_me:$LINENO: result: $GNULD" >&5
3972 echo "${ECHO_T}$GNULD" >&6; }
3974 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3975 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3976 # Check whether --enable-shared was given.
3977 if test "${enable_shared+set}" = set; then
3978 enableval=$enable_shared;
3982 if test -z "$enable_shared"
3983 then
3984 case $ac_sys_system in
3985 CYGWIN* | atheos*)
3986 enable_shared="yes";;
3988 enable_shared="no";;
3989 esac
3991 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3992 echo "${ECHO_T}$enable_shared" >&6; }
3994 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3995 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3996 # Check whether --enable-profiling was given.
3997 if test "${enable_profiling+set}" = set; then
3998 enableval=$enable_profiling; ac_save_cc="$CC"
3999 CC="$CC -pg"
4000 if test "$cross_compiling" = yes; then
4001 ac_enable_profiling="no"
4002 else
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 int main() { return 0; }
4010 _ACEOF
4011 rm -f conftest$ac_exeext
4012 if { (ac_try="$ac_link"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_link") 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4022 { (case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_try") 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4031 ac_enable_profiling="yes"
4032 else
4033 echo "$as_me: program exited with status $ac_status" >&5
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 ( exit $ac_status )
4038 ac_enable_profiling="no"
4040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4044 CC="$ac_save_cc"
4047 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4048 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4050 case "$ac_enable_profiling" in
4051 "yes")
4052 BASECFLAGS="-pg $BASECFLAGS"
4053 LDFLAGS="-pg $LDFLAGS"
4055 esac
4057 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4058 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4060 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4061 # library that we build, but we do not want to link against it (we
4062 # will find it with a -framework option). For this reason there is an
4063 # extra variable BLDLIBRARY against which Python and the extension
4064 # modules are linked, BLDLIBRARY. This is normally the same as
4065 # LDLIBRARY, but empty for MacOSX framework builds.
4066 if test "$enable_framework"
4067 then
4068 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4069 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4070 BLDLIBRARY=''
4071 else
4072 BLDLIBRARY='$(LDLIBRARY)'
4075 # Other platforms follow
4076 if test $enable_shared = "yes"; then
4078 cat >>confdefs.h <<\_ACEOF
4079 #define Py_ENABLE_SHARED 1
4080 _ACEOF
4082 case $ac_sys_system in
4083 CYGWIN*)
4084 LDLIBRARY='libpython$(VERSION).dll.a'
4085 DLLLIBRARY='libpython$(VERSION).dll'
4087 SunOS*)
4088 LDLIBRARY='libpython$(VERSION).so'
4089 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4090 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4091 INSTSONAME="$LDLIBRARY".$SOVERSION
4093 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4094 LDLIBRARY='libpython$(VERSION).so'
4095 BLDLIBRARY='-L. -lpython$(VERSION)'
4096 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4097 case $ac_sys_system in
4098 FreeBSD*)
4099 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4101 esac
4102 INSTSONAME="$LDLIBRARY".$SOVERSION
4104 hp*|HP*)
4105 case `uname -m` in
4106 ia64)
4107 LDLIBRARY='libpython$(VERSION).so'
4110 LDLIBRARY='libpython$(VERSION).sl'
4112 esac
4113 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4114 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4116 OSF*)
4117 LDLIBRARY='libpython$(VERSION).so'
4118 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4119 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4121 atheos*)
4122 LDLIBRARY='libpython$(VERSION).so'
4123 BLDLIBRARY='-L. -lpython$(VERSION)'
4124 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4126 Darwin*)
4127 LDLIBRARY='libpython$(VERSION).dylib'
4128 BLDLIBRARY='-L. -lpython$(VERSION)'
4129 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4132 esac
4133 else # shared is disabled
4134 case $ac_sys_system in
4135 CYGWIN*)
4136 BLDLIBRARY='$(LIBRARY)'
4137 LDLIBRARY='libpython$(VERSION).dll.a'
4139 esac
4142 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4143 echo "${ECHO_T}$LDLIBRARY" >&6; }
4145 if test -n "$ac_tool_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4147 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4150 if test "${ac_cv_prog_RANLIB+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 if test -n "$RANLIB"; then
4154 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4163 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4167 done
4168 done
4169 IFS=$as_save_IFS
4173 RANLIB=$ac_cv_prog_RANLIB
4174 if test -n "$RANLIB"; then
4175 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4176 echo "${ECHO_T}$RANLIB" >&6; }
4177 else
4178 { echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6; }
4184 if test -z "$ac_cv_prog_RANLIB"; then
4185 ac_ct_RANLIB=$RANLIB
4186 # Extract the first word of "ranlib", so it can be a program name with args.
4187 set dummy ranlib; ac_word=$2
4188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4190 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 if test -n "$ac_ct_RANLIB"; then
4194 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 ac_cv_prog_ac_ct_RANLIB="ranlib"
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4207 done
4208 done
4209 IFS=$as_save_IFS
4213 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4214 if test -n "$ac_ct_RANLIB"; then
4215 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4216 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4217 else
4218 { echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6; }
4222 if test "x$ac_ct_RANLIB" = x; then
4223 RANLIB=":"
4224 else
4225 case $cross_compiling:$ac_tool_warned in
4226 yes:)
4227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4228 whose name does not start with the host triplet. If you think this
4229 configuration is useful to you, please write to autoconf@gnu.org." >&5
4230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4231 whose name does not start with the host triplet. If you think this
4232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4233 ac_tool_warned=yes ;;
4234 esac
4235 RANLIB=$ac_ct_RANLIB
4237 else
4238 RANLIB="$ac_cv_prog_RANLIB"
4242 for ac_prog in ar aal
4244 # Extract the first word of "$ac_prog", so it can be a program name with args.
4245 set dummy $ac_prog; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_AR+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 if test -n "$AR"; then
4252 ac_cv_prog_AR="$AR" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_AR="$ac_prog"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4265 done
4266 done
4267 IFS=$as_save_IFS
4271 AR=$ac_cv_prog_AR
4272 if test -n "$AR"; then
4273 { echo "$as_me:$LINENO: result: $AR" >&5
4274 echo "${ECHO_T}$AR" >&6; }
4275 else
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4281 test -n "$AR" && break
4282 done
4283 test -n "$AR" || AR="ar"
4286 # tweak ARFLAGS only if the user didn't set it on the command line
4288 if test -z "$ARFLAGS"
4289 then
4290 ARFLAGS="rc"
4294 # Extract the first word of "svnversion", so it can be a program name with args.
4295 set dummy svnversion; ac_word=$2
4296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 if test -n "$SVNVERSION"; then
4302 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_SVNVERSION="found"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4315 done
4316 done
4317 IFS=$as_save_IFS
4319 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4322 SVNVERSION=$ac_cv_prog_SVNVERSION
4323 if test -n "$SVNVERSION"; then
4324 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4325 echo "${ECHO_T}$SVNVERSION" >&6; }
4326 else
4327 { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4332 if test $SVNVERSION = found
4333 then
4334 SVNVERSION="svnversion \$(srcdir)"
4335 else
4336 SVNVERSION="echo Unversioned directory"
4339 case $MACHDEP in
4340 bsdos*|hp*|HP*)
4341 # install -d does not work on BSDI or HP-UX
4342 if test -z "$INSTALL"
4343 then
4344 INSTALL="${srcdir}/install-sh -c"
4346 esac
4347 ac_aux_dir=
4348 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4349 if test -f "$ac_dir/install-sh"; then
4350 ac_aux_dir=$ac_dir
4351 ac_install_sh="$ac_aux_dir/install-sh -c"
4352 break
4353 elif test -f "$ac_dir/install.sh"; then
4354 ac_aux_dir=$ac_dir
4355 ac_install_sh="$ac_aux_dir/install.sh -c"
4356 break
4357 elif test -f "$ac_dir/shtool"; then
4358 ac_aux_dir=$ac_dir
4359 ac_install_sh="$ac_aux_dir/shtool install -c"
4360 break
4362 done
4363 if test -z "$ac_aux_dir"; then
4364 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4365 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4366 { (exit 1); exit 1; }; }
4369 # These three variables are undocumented and unsupported,
4370 # and are intended to be withdrawn in a future Autoconf release.
4371 # They can cause serious problems if a builder's source tree is in a directory
4372 # whose full name contains unusual characters.
4373 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4374 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4375 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4378 # Find a good install program. We prefer a C program (faster),
4379 # so one script is as good as another. But avoid the broken or
4380 # incompatible versions:
4381 # SysV /etc/install, /usr/sbin/install
4382 # SunOS /usr/etc/install
4383 # IRIX /sbin/install
4384 # AIX /bin/install
4385 # AmigaOS /C/install, which installs bootblocks on floppy discs
4386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4389 # OS/2's system install, which has a completely different semantic
4390 # ./install, which can be erroneously created by make from ./install.sh.
4391 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4392 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4393 if test -z "$INSTALL"; then
4394 if test "${ac_cv_path_install+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 # Account for people who put trailing slashes in PATH elements.
4403 case $as_dir/ in
4404 ./ | .// | /cC/* | \
4405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4406 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4407 /usr/ucb/* ) ;;
4409 # OSF1 and SCO ODT 3.0 have their own names for install.
4410 # Don't use installbsd from OSF since it installs stuff as root
4411 # by default.
4412 for ac_prog in ginstall scoinst install; do
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4415 if test $ac_prog = install &&
4416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4417 # AIX install. It has an incompatible calling convention.
4419 elif test $ac_prog = install &&
4420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4421 # program-specific install script used by HP pwplus--don't use.
4423 else
4424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4425 break 3
4428 done
4429 done
4431 esac
4432 done
4433 IFS=$as_save_IFS
4437 if test "${ac_cv_path_install+set}" = set; then
4438 INSTALL=$ac_cv_path_install
4439 else
4440 # As a last resort, use the slow shell script. Don't cache a
4441 # value for INSTALL within a source directory, because that will
4442 # break other packages using the cache if that directory is
4443 # removed, or if the value is a relative name.
4444 INSTALL=$ac_install_sh
4447 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4448 echo "${ECHO_T}$INSTALL" >&6; }
4450 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4451 # It thinks the first close brace ends the variable substitution.
4452 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4454 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4456 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4459 # Not every filesystem supports hard links
4461 if test -z "$LN" ; then
4462 case $ac_sys_system in
4463 CYGWIN*) LN="ln -s";;
4464 atheos*) LN="ln -s";;
4465 *) LN=ln;;
4466 esac
4469 # Check for --with-pydebug
4470 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4471 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4473 # Check whether --with-pydebug was given.
4474 if test "${with_pydebug+set}" = set; then
4475 withval=$with_pydebug;
4476 if test "$withval" != no
4477 then
4479 cat >>confdefs.h <<\_ACEOF
4480 #define Py_DEBUG 1
4481 _ACEOF
4483 { echo "$as_me:$LINENO: result: yes" >&5
4484 echo "${ECHO_T}yes" >&6; };
4485 Py_DEBUG='true'
4486 else { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4489 else
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4495 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4496 # merged with this chunk of code?
4498 # Optimizer/debugger flags
4499 # ------------------------
4500 # (The following bit of code is complicated enough - please keep things
4501 # indented properly. Just pretend you're editing Python code. ;-)
4503 # There are two parallel sets of case statements below, one that checks to
4504 # see if OPT was set and one that does BASECFLAGS setting based upon
4505 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4506 # user set OPT.
4508 # tweak OPT based on compiler and platform, only if the user didn't set
4509 # it on the command line
4511 if test -z "$OPT"
4512 then
4513 case $GCC in
4514 yes)
4515 if test "$CC" != 'g++' ; then
4516 STRICT_PROTO="-Wstrict-prototypes"
4518 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4519 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4520 WRAP="-fwrapv"
4522 case $ac_cv_prog_cc_g in
4523 yes)
4524 if test "$Py_DEBUG" = 'true' ; then
4525 # Optimization messes up debuggers, so turn it off for
4526 # debug builds.
4527 OPT="-g -Wall $STRICT_PROTO"
4528 else
4529 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4533 OPT="-O3 -Wall $STRICT_PROTO"
4535 esac
4536 case $ac_sys_system in
4537 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4539 esac
4543 OPT="-O"
4545 esac
4547 # The current (beta) Monterey compiler dies with optimizations
4548 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4549 case $ac_sys_system in
4550 Monterey*)
4551 OPT=""
4553 esac
4559 # The -arch flags for universal builds on OSX
4560 UNIVERSAL_ARCH_FLAGS=
4563 # tweak BASECFLAGS based on compiler and platform
4564 case $GCC in
4565 yes)
4566 # Python violates C99 rules, by casting between incompatible
4567 # pointer types. GCC may generate bad code as a result of that,
4568 # so use -fno-strict-aliasing if supported.
4569 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4570 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4571 ac_save_cc="$CC"
4572 CC="$CC -fno-strict-aliasing"
4573 if test "$cross_compiling" = yes; then
4574 ac_cv_no_strict_aliasing_ok=no
4575 else
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 int main() { return 0; }
4583 _ACEOF
4584 rm -f conftest$ac_exeext
4585 if { (ac_try="$ac_link"
4586 case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589 esac
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_link") 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_try") 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_cv_no_strict_aliasing_ok=yes
4605 else
4606 echo "$as_me: program exited with status $ac_status" >&5
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ( exit $ac_status )
4611 ac_cv_no_strict_aliasing_ok=no
4613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4617 CC="$ac_save_cc"
4618 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4619 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4620 if test $ac_cv_no_strict_aliasing_ok = yes
4621 then
4622 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4625 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4626 # support. Without this, treatment of subnormals doesn't follow
4627 # the standard.
4628 case $ac_sys_machine in
4629 alpha*)
4630 BASECFLAGS="$BASECFLAGS -mieee"
4632 esac
4634 case $ac_sys_system in
4635 SCO_SV*)
4636 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4638 # is there any other compiler on Darwin besides gcc?
4639 Darwin*)
4640 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4641 # used to be here, but non-Apple gcc doesn't accept them.
4644 if test "${enable_universalsdk}"; then
4645 UNIVERSAL_ARCH_FLAGS=""
4646 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4647 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4648 ARCH_RUN_32BIT=""
4650 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4651 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4653 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4654 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4655 ARCH_RUN_32BIT="arch -i386 -ppc"
4657 else
4658 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4659 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4660 { (exit 1); exit 1; }; }
4665 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4666 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4667 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4668 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4672 # Calculate the right deployment target for this build.
4674 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4675 if test ${cur_target} '>' 10.2; then
4676 cur_target=10.3
4678 if test "${UNIVERSAL_ARCHS}" = "all"; then
4679 # Ensure that the default platform for a 4-way
4680 # universal build is OSX 10.5, that's the first
4681 # OS release where 4-way builds make sense.
4682 cur_target='10.5'
4684 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4686 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4687 # environment with a value that is the same as what we'll use
4688 # in the Makefile to ensure that we'll get the same compiler
4689 # environment during configure and build time.
4690 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4691 export MACOSX_DEPLOYMENT_TARGET
4692 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4695 OSF*)
4696 BASECFLAGS="$BASECFLAGS -mieee"
4698 esac
4702 case $ac_sys_system in
4703 OpenUNIX*|UnixWare*)
4704 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4706 OSF*)
4707 BASECFLAGS="$BASECFLAGS -ieee -std"
4709 SCO_SV*)
4710 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4712 esac
4714 esac
4716 if test "$Py_DEBUG" = 'true'; then
4718 else
4719 OPT="-DNDEBUG $OPT"
4722 if test "$ac_arch_flags"
4723 then
4724 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4727 # disable check for icc since it seems to pass, but generates a warning
4728 if test "$CC" = icc
4729 then
4730 ac_cv_opt_olimit_ok=no
4733 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4734 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4735 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 ac_save_cc="$CC"
4739 CC="$CC -OPT:Olimit=0"
4740 if test "$cross_compiling" = yes; then
4741 ac_cv_opt_olimit_ok=no
4742 else
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 int main() { return 0; }
4750 _ACEOF
4751 rm -f conftest$ac_exeext
4752 if { (ac_try="$ac_link"
4753 case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756 esac
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758 (eval "$ac_link") 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4762 { (case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765 esac
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_try") 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; }; then
4771 ac_cv_opt_olimit_ok=yes
4772 else
4773 echo "$as_me: program exited with status $ac_status" >&5
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 ( exit $ac_status )
4778 ac_cv_opt_olimit_ok=no
4780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4784 CC="$ac_save_cc"
4787 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4788 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4789 if test $ac_cv_opt_olimit_ok = yes; then
4790 case $ac_sys_system in
4791 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4792 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4793 # environment?
4794 Darwin*)
4797 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4799 esac
4800 else
4801 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4802 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4803 if test "${ac_cv_olimit_ok+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 ac_save_cc="$CC"
4807 CC="$CC -Olimit 1500"
4808 if test "$cross_compiling" = yes; then
4809 ac_cv_olimit_ok=no
4810 else
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 int main() { return 0; }
4818 _ACEOF
4819 rm -f conftest$ac_exeext
4820 if { (ac_try="$ac_link"
4821 case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824 esac
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_link") 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4830 { (case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_try") 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4839 ac_cv_olimit_ok=yes
4840 else
4841 echo "$as_me: program exited with status $ac_status" >&5
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4845 ( exit $ac_status )
4846 ac_cv_olimit_ok=no
4848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4852 CC="$ac_save_cc"
4855 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4856 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4857 if test $ac_cv_olimit_ok = yes; then
4858 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4862 # Check whether GCC supports PyArg_ParseTuple format
4863 if test "$GCC" = "yes"
4864 then
4865 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4866 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4867 save_CFLAGS=$CFLAGS
4868 CFLAGS="$CFLAGS -Werror"
4869 cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h. */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4876 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4879 main ()
4883 return 0;
4885 _ACEOF
4886 rm -f conftest.$ac_objext
4887 if { (ac_try="$ac_compile"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_compile") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4904 cat >>confdefs.h <<\_ACEOF
4905 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4906 _ACEOF
4908 { echo "$as_me:$LINENO: result: yes" >&5
4909 echo "${ECHO_T}yes" >&6; }
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 CFLAGS=$save_CFLAGS
4923 # On some compilers, pthreads are available without further options
4924 # (e.g. MacOS X). On some of these systems, the compiler will not
4925 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4926 # So we have to see first whether pthreads are available without
4927 # options before we can check whether -Kpthread improves anything.
4928 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4929 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4930 if test "${ac_cv_pthread_is_default+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933 if test "$cross_compiling" = yes; then
4934 ac_cv_pthread_is_default=no
4935 else
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4943 #include <pthread.h>
4945 void* routine(void* p){return NULL;}
4947 int main(){
4948 pthread_t p;
4949 if(pthread_create(&p,NULL,routine,NULL)!=0)
4950 return 1;
4951 (void)pthread_detach(p);
4952 return 0;
4955 _ACEOF
4956 rm -f conftest$ac_exeext
4957 if { (ac_try="$ac_link"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_link") 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4967 { (case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_try") 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4977 ac_cv_pthread_is_default=yes
4978 ac_cv_kthread=no
4979 ac_cv_pthread=no
4981 else
4982 echo "$as_me: program exited with status $ac_status" >&5
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 ( exit $ac_status )
4987 ac_cv_pthread_is_default=no
4989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4996 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4997 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5000 if test $ac_cv_pthread_is_default = yes
5001 then
5002 ac_cv_kpthread=no
5003 else
5004 # -Kpthread, if available, provides the right #defines
5005 # and linker options to make pthread_create available
5006 # Some compilers won't report that they do not support -Kpthread,
5007 # so we need to run a program to see whether it really made the
5008 # function available.
5009 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5010 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5011 if test "${ac_cv_kpthread+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014 ac_save_cc="$CC"
5015 CC="$CC -Kpthread"
5016 if test "$cross_compiling" = yes; then
5017 ac_cv_kpthread=no
5018 else
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5026 #include <pthread.h>
5028 void* routine(void* p){return NULL;}
5030 int main(){
5031 pthread_t p;
5032 if(pthread_create(&p,NULL,routine,NULL)!=0)
5033 return 1;
5034 (void)pthread_detach(p);
5035 return 0;
5038 _ACEOF
5039 rm -f conftest$ac_exeext
5040 if { (ac_try="$ac_link"
5041 case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044 esac
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_link") 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5050 { (case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053 esac
5054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_try") 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5059 ac_cv_kpthread=yes
5060 else
5061 echo "$as_me: program exited with status $ac_status" >&5
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 ( exit $ac_status )
5066 ac_cv_kpthread=no
5068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5072 CC="$ac_save_cc"
5075 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5076 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5079 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5080 then
5081 # -Kthread, if available, provides the right #defines
5082 # and linker options to make pthread_create available
5083 # Some compilers won't report that they do not support -Kthread,
5084 # so we need to run a program to see whether it really made the
5085 # function available.
5086 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5087 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5088 if test "${ac_cv_kthread+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 ac_save_cc="$CC"
5092 CC="$CC -Kthread"
5093 if test "$cross_compiling" = yes; then
5094 ac_cv_kthread=no
5095 else
5096 cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h. */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5103 #include <pthread.h>
5105 void* routine(void* p){return NULL;}
5107 int main(){
5108 pthread_t p;
5109 if(pthread_create(&p,NULL,routine,NULL)!=0)
5110 return 1;
5111 (void)pthread_detach(p);
5112 return 0;
5115 _ACEOF
5116 rm -f conftest$ac_exeext
5117 if { (ac_try="$ac_link"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_link") 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5127 { (case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130 esac
5131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_try") 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 ac_cv_kthread=yes
5137 else
5138 echo "$as_me: program exited with status $ac_status" >&5
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 ( exit $ac_status )
5143 ac_cv_kthread=no
5145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5149 CC="$ac_save_cc"
5152 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5153 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5156 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5157 then
5158 # -pthread, if available, provides the right #defines
5159 # and linker options to make pthread_create available
5160 # Some compilers won't report that they do not support -pthread,
5161 # so we need to run a program to see whether it really made the
5162 # function available.
5163 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5164 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5165 if test "${ac_cv_thread+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 ac_save_cc="$CC"
5169 CC="$CC -pthread"
5170 if test "$cross_compiling" = yes; then
5171 ac_cv_pthread=no
5172 else
5173 cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h. */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5180 #include <pthread.h>
5182 void* routine(void* p){return NULL;}
5184 int main(){
5185 pthread_t p;
5186 if(pthread_create(&p,NULL,routine,NULL)!=0)
5187 return 1;
5188 (void)pthread_detach(p);
5189 return 0;
5192 _ACEOF
5193 rm -f conftest$ac_exeext
5194 if { (ac_try="$ac_link"
5195 case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_link") 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5204 { (case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_try") 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 ac_cv_pthread=yes
5214 else
5215 echo "$as_me: program exited with status $ac_status" >&5
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ( exit $ac_status )
5220 ac_cv_pthread=no
5222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5226 CC="$ac_save_cc"
5229 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5230 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5233 # If we have set a CC compiler flag for thread support then
5234 # check if it works for CXX, too.
5235 ac_cv_cxx_thread=no
5236 if test ! -z "$CXX"
5237 then
5238 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5239 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5240 ac_save_cxx="$CXX"
5242 if test "$ac_cv_kpthread" = "yes"
5243 then
5244 CXX="$CXX -Kpthread"
5245 ac_cv_cxx_thread=yes
5246 elif test "$ac_cv_kthread" = "yes"
5247 then
5248 CXX="$CXX -Kthread"
5249 ac_cv_cxx_thread=yes
5250 elif test "$ac_cv_pthread" = "yes"
5251 then
5252 CXX="$CXX -pthread"
5253 ac_cv_cxx_thread=yes
5256 if test $ac_cv_cxx_thread = yes
5257 then
5258 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5259 $CXX -c conftest.$ac_ext 2>&5
5260 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5261 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5262 then
5263 ac_cv_cxx_thread=yes
5264 else
5265 ac_cv_cxx_thread=no
5267 rm -fr conftest*
5269 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5270 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5272 CXX="$ac_save_cxx"
5275 # checks for header files
5276 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5278 if test "${ac_cv_header_stdc+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h. */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 #include <stdlib.h>
5288 #include <stdarg.h>
5289 #include <string.h>
5290 #include <float.h>
5293 main ()
5297 return 0;
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5302 case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.$ac_objext; then
5317 ac_cv_header_stdc=yes
5318 else
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5322 ac_cv_header_stdc=no
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 if test $ac_cv_header_stdc = yes; then
5328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 #include <string.h>
5337 _ACEOF
5338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339 $EGREP "memchr" >/dev/null 2>&1; then
5341 else
5342 ac_cv_header_stdc=no
5344 rm -f conftest*
5348 if test $ac_cv_header_stdc = yes; then
5349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 #include <stdlib.h>
5358 _ACEOF
5359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "free" >/dev/null 2>&1; then
5362 else
5363 ac_cv_header_stdc=no
5365 rm -f conftest*
5369 if test $ac_cv_header_stdc = yes; then
5370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5371 if test "$cross_compiling" = yes; then
5373 else
5374 cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h. */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 #include <ctype.h>
5381 #include <stdlib.h>
5382 #if ((' ' & 0x0FF) == 0x020)
5383 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5384 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5385 #else
5386 # define ISLOWER(c) \
5387 (('a' <= (c) && (c) <= 'i') \
5388 || ('j' <= (c) && (c) <= 'r') \
5389 || ('s' <= (c) && (c) <= 'z'))
5390 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5391 #endif
5393 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5395 main ()
5397 int i;
5398 for (i = 0; i < 256; i++)
5399 if (XOR (islower (i), ISLOWER (i))
5400 || toupper (i) != TOUPPER (i))
5401 return 2;
5402 return 0;
5404 _ACEOF
5405 rm -f conftest$ac_exeext
5406 if { (ac_try="$ac_link"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_link") 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5416 { (case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_try") 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5426 else
5427 echo "$as_me: program exited with status $ac_status" >&5
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5431 ( exit $ac_status )
5432 ac_cv_header_stdc=no
5434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5440 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5441 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5442 if test $ac_cv_header_stdc = yes; then
5444 cat >>confdefs.h <<\_ACEOF
5445 #define STDC_HEADERS 1
5446 _ACEOF
5450 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5461 inttypes.h stdint.h unistd.h
5463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 $ac_includes_default
5477 #include <$ac_header>
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (ac_try="$ac_compile"
5481 case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compile") 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && {
5493 test -z "$ac_c_werror_flag" ||
5494 test ! -s conftest.err
5495 } && test -s conftest.$ac_objext; then
5496 eval "$as_ac_Header=yes"
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 eval "$as_ac_Header=no"
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 ac_res=`eval echo '${'$as_ac_Header'}'`
5507 { echo "$as_me:$LINENO: result: $ac_res" >&5
5508 echo "${ECHO_T}$ac_res" >&6; }
5509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5510 cat >>confdefs.h <<_ACEOF
5511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5512 _ACEOF
5516 done
5573 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5574 fcntl.h grp.h \
5575 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5576 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5577 unistd.h utime.h \
5578 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5579 sys/lock.h sys/mkdev.h sys/modem.h \
5580 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5581 sys/termio.h sys/time.h \
5582 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5583 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5584 bluetooth/bluetooth.h linux/tipc.h
5586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 ac_res=`eval echo '${'$as_ac_Header'}'`
5594 { echo "$as_me:$LINENO: result: $ac_res" >&5
5595 echo "${ECHO_T}$ac_res" >&6; }
5596 else
5597 # Is the header compilable?
5598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 $ac_includes_default
5607 #include <$ac_header>
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (ac_try="$ac_compile"
5611 case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614 esac
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_compile") 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && {
5623 test -z "$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest.$ac_objext; then
5626 ac_header_compiler=yes
5627 else
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5631 ac_header_compiler=no
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5636 echo "${ECHO_T}$ac_header_compiler" >&6; }
5638 # Is the header present?
5639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <$ac_header>
5648 _ACEOF
5649 if { (ac_try="$ac_cpp conftest.$ac_ext"
5650 case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653 esac
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } >/dev/null && {
5662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 }; then
5665 ac_header_preproc=yes
5666 else
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 ac_header_preproc=no
5673 rm -f conftest.err conftest.$ac_ext
5674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5675 echo "${ECHO_T}$ac_header_preproc" >&6; }
5677 # So? What about this header?
5678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5679 yes:no: )
5680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5684 ac_header_preproc=yes
5686 no:yes:* )
5687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5699 ( cat <<\_ASBOX
5700 ## -------------------------------------- ##
5701 ## Report this to http://bugs.python.org/ ##
5702 ## -------------------------------------- ##
5703 _ASBOX
5704 ) | sed "s/^/$as_me: WARNING: /" >&2
5706 esac
5707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712 eval "$as_ac_Header=\$ac_header_preproc"
5714 ac_res=`eval echo '${'$as_ac_Header'}'`
5715 { echo "$as_me:$LINENO: result: $ac_res" >&5
5716 echo "${ECHO_T}$ac_res" >&6; }
5719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5720 cat >>confdefs.h <<_ACEOF
5721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5722 _ACEOF
5726 done
5733 ac_header_dirent=no
5734 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5735 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5736 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5737 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741 cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h. */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 #include <sys/types.h>
5748 #include <$ac_hdr>
5751 main ()
5753 if ((DIR *) 0)
5754 return 0;
5756 return 0;
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (ac_try="$ac_compile"
5761 case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compile") 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && {
5773 test -z "$ac_c_werror_flag" ||
5774 test ! -s conftest.err
5775 } && test -s conftest.$ac_objext; then
5776 eval "$as_ac_Header=yes"
5777 else
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5781 eval "$as_ac_Header=no"
5784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 ac_res=`eval echo '${'$as_ac_Header'}'`
5787 { echo "$as_me:$LINENO: result: $ac_res" >&5
5788 echo "${ECHO_T}$ac_res" >&6; }
5789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5790 cat >>confdefs.h <<_ACEOF
5791 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5792 _ACEOF
5794 ac_header_dirent=$ac_hdr; break
5797 done
5798 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5799 if test $ac_header_dirent = dirent.h; then
5800 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5801 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5802 if test "${ac_cv_search_opendir+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805 ac_func_search_save_LIBS=$LIBS
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5813 /* Override any GCC internal prototype to avoid an error.
5814 Use char because int might match the return type of a GCC
5815 builtin and then its argument prototype would still apply. */
5816 #ifdef __cplusplus
5817 extern "C"
5818 #endif
5819 char opendir ();
5821 main ()
5823 return opendir ();
5825 return 0;
5827 _ACEOF
5828 for ac_lib in '' dir; do
5829 if test -z "$ac_lib"; then
5830 ac_res="none required"
5831 else
5832 ac_res=-l$ac_lib
5833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5835 rm -f conftest.$ac_objext conftest$ac_exeext
5836 if { (ac_try="$ac_link"
5837 case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_link") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest$ac_exeext &&
5852 $as_test_x conftest$ac_exeext; then
5853 ac_cv_search_opendir=$ac_res
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5862 conftest$ac_exeext
5863 if test "${ac_cv_search_opendir+set}" = set; then
5864 break
5866 done
5867 if test "${ac_cv_search_opendir+set}" = set; then
5869 else
5870 ac_cv_search_opendir=no
5872 rm conftest.$ac_ext
5873 LIBS=$ac_func_search_save_LIBS
5875 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5876 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5877 ac_res=$ac_cv_search_opendir
5878 if test "$ac_res" != no; then
5879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5883 else
5884 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5885 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5886 if test "${ac_cv_search_opendir+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 ac_func_search_save_LIBS=$LIBS
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5900 #ifdef __cplusplus
5901 extern "C"
5902 #endif
5903 char opendir ();
5905 main ()
5907 return opendir ();
5909 return 0;
5911 _ACEOF
5912 for ac_lib in '' x; do
5913 if test -z "$ac_lib"; then
5914 ac_res="none required"
5915 else
5916 ac_res=-l$ac_lib
5917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (ac_try="$ac_link"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_link") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest$ac_exeext &&
5936 $as_test_x conftest$ac_exeext; then
5937 ac_cv_search_opendir=$ac_res
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5946 conftest$ac_exeext
5947 if test "${ac_cv_search_opendir+set}" = set; then
5948 break
5950 done
5951 if test "${ac_cv_search_opendir+set}" = set; then
5953 else
5954 ac_cv_search_opendir=no
5956 rm conftest.$ac_ext
5957 LIBS=$ac_func_search_save_LIBS
5959 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5960 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5961 ac_res=$ac_cv_search_opendir
5962 if test "$ac_res" != no; then
5963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5969 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5970 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5971 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <sys/types.h>
5982 main ()
5984 return makedev(0, 0);
5986 return 0;
5988 _ACEOF
5989 rm -f conftest.$ac_objext conftest$ac_exeext
5990 if { (ac_try="$ac_link"
5991 case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994 esac
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_link") 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && {
6003 test -z "$ac_c_werror_flag" ||
6004 test ! -s conftest.err
6005 } && test -s conftest$ac_exeext &&
6006 $as_test_x conftest$ac_exeext; then
6007 ac_cv_header_sys_types_h_makedev=yes
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_cv_header_sys_types_h_makedev=no
6015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6016 conftest$ac_exeext conftest.$ac_ext
6019 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6020 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6022 if test $ac_cv_header_sys_types_h_makedev = no; then
6023 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6024 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6025 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6026 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6030 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6031 else
6032 # Is the header compilable?
6033 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6034 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 $ac_includes_default
6042 #include <sys/mkdev.h>
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6046 case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest.$ac_objext; then
6061 ac_header_compiler=yes
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 ac_header_compiler=no
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6071 echo "${ECHO_T}$ac_header_compiler" >&6; }
6073 # Is the header present?
6074 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6075 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <sys/mkdev.h>
6083 _ACEOF
6084 if { (ac_try="$ac_cpp conftest.$ac_ext"
6085 case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null && {
6097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 }; then
6100 ac_header_preproc=yes
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_header_preproc=no
6108 rm -f conftest.err conftest.$ac_ext
6109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6110 echo "${ECHO_T}$ac_header_preproc" >&6; }
6112 # So? What about this header?
6113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6114 yes:no: )
6115 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6116 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6118 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6119 ac_header_preproc=yes
6121 no:yes:* )
6122 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6123 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6124 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6125 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6126 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6127 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6129 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6131 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6133 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6134 ( cat <<\_ASBOX
6135 ## -------------------------------------- ##
6136 ## Report this to http://bugs.python.org/ ##
6137 ## -------------------------------------- ##
6138 _ASBOX
6139 ) | sed "s/^/$as_me: WARNING: /" >&2
6141 esac
6142 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6143 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6144 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6149 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6150 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6153 if test $ac_cv_header_sys_mkdev_h = yes; then
6155 cat >>confdefs.h <<\_ACEOF
6156 #define MAJOR_IN_MKDEV 1
6157 _ACEOF
6163 if test $ac_cv_header_sys_mkdev_h = no; then
6164 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6165 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6166 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6167 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6171 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6172 else
6173 # Is the header compilable?
6174 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6175 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6176 cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h. */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 $ac_includes_default
6183 #include <sys/sysmacros.h>
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6187 case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && {
6199 test -z "$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 } && test -s conftest.$ac_objext; then
6202 ac_header_compiler=yes
6203 else
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 ac_header_compiler=no
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6212 echo "${ECHO_T}$ac_header_compiler" >&6; }
6214 # Is the header present?
6215 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6216 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h. */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <sys/sysmacros.h>
6224 _ACEOF
6225 if { (ac_try="$ac_cpp conftest.$ac_ext"
6226 case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229 esac
6230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } >/dev/null && {
6238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6239 test ! -s conftest.err
6240 }; then
6241 ac_header_preproc=yes
6242 else
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_header_preproc=no
6249 rm -f conftest.err conftest.$ac_ext
6250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6251 echo "${ECHO_T}$ac_header_preproc" >&6; }
6253 # So? What about this header?
6254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6255 yes:no: )
6256 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6257 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6258 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6259 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6260 ac_header_preproc=yes
6262 no:yes:* )
6263 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6264 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6266 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6268 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6270 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6272 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6274 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6275 ( cat <<\_ASBOX
6276 ## -------------------------------------- ##
6277 ## Report this to http://bugs.python.org/ ##
6278 ## -------------------------------------- ##
6279 _ASBOX
6280 ) | sed "s/^/$as_me: WARNING: /" >&2
6282 esac
6283 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6284 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6285 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6290 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6291 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6294 if test $ac_cv_header_sys_sysmacros_h = yes; then
6296 cat >>confdefs.h <<\_ACEOF
6297 #define MAJOR_IN_SYSMACROS 1
6298 _ACEOF
6307 # On Solaris, term.h requires curses.h
6309 for ac_header in term.h
6311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6324 #ifdef HAVE_CURSES_H
6325 #include <curses.h>
6326 #endif
6329 #include <$ac_header>
6330 _ACEOF
6331 rm -f conftest.$ac_objext
6332 if { (ac_try="$ac_compile"
6333 case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336 esac
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compile") 2>conftest.er1
6339 ac_status=$?
6340 grep -v '^ *+' conftest.er1 >conftest.err
6341 rm -f conftest.er1
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && {
6345 test -z "$ac_c_werror_flag" ||
6346 test ! -s conftest.err
6347 } && test -s conftest.$ac_objext; then
6348 eval "$as_ac_Header=yes"
6349 else
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 eval "$as_ac_Header=no"
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 ac_res=`eval echo '${'$as_ac_Header'}'`
6359 { echo "$as_me:$LINENO: result: $ac_res" >&5
6360 echo "${ECHO_T}$ac_res" >&6; }
6361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6362 cat >>confdefs.h <<_ACEOF
6363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6364 _ACEOF
6368 done
6371 # On Linux, netlink.h requires asm/types.h
6373 for ac_header in linux/netlink.h
6375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6388 #ifdef HAVE_ASM_TYPES_H
6389 #include <asm/types.h>
6390 #endif
6391 #ifdef HAVE_SYS_SOCKET_H
6392 #include <sys/socket.h>
6393 #endif
6396 #include <$ac_header>
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (ac_try="$ac_compile"
6400 case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403 esac
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest.$ac_objext; then
6415 eval "$as_ac_Header=yes"
6416 else
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 eval "$as_ac_Header=no"
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 ac_res=`eval echo '${'$as_ac_Header'}'`
6426 { echo "$as_me:$LINENO: result: $ac_res" >&5
6427 echo "${ECHO_T}$ac_res" >&6; }
6428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6429 cat >>confdefs.h <<_ACEOF
6430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6431 _ACEOF
6435 done
6438 # checks for typedefs
6439 was_it_defined=no
6440 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6441 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6442 cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h. */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6448 #include <time.h>
6450 _ACEOF
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452 $EGREP "clock_t" >/dev/null 2>&1; then
6453 was_it_defined=yes
6454 else
6457 cat >>confdefs.h <<\_ACEOF
6458 #define clock_t long
6459 _ACEOF
6463 rm -f conftest*
6465 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6466 echo "${ECHO_T}$was_it_defined" >&6; }
6468 # Check whether using makedev requires defining _OSF_SOURCE
6469 { echo "$as_me:$LINENO: checking for makedev" >&5
6470 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <sys/types.h>
6479 main ()
6481 makedev(0, 0)
6483 return 0;
6485 _ACEOF
6486 rm -f conftest.$ac_objext conftest$ac_exeext
6487 if { (ac_try="$ac_link"
6488 case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6491 esac
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_link") 2>conftest.er1
6494 ac_status=$?
6495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } && {
6500 test -z "$ac_c_werror_flag" ||
6501 test ! -s conftest.err
6502 } && test -s conftest$ac_exeext &&
6503 $as_test_x conftest$ac_exeext; then
6504 ac_cv_has_makedev=yes
6505 else
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6509 ac_cv_has_makedev=no
6512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6513 conftest$ac_exeext conftest.$ac_ext
6514 if test "$ac_cv_has_makedev" = "no"; then
6515 # we didn't link, try if _OSF_SOURCE will allow us to link
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6523 #define _OSF_SOURCE 1
6524 #include <sys/types.h>
6527 main ()
6529 makedev(0, 0)
6531 return 0;
6533 _ACEOF
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (ac_try="$ac_link"
6536 case "(($ac_try" in
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6539 esac
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_link") 2>conftest.er1
6542 ac_status=$?
6543 grep -v '^ *+' conftest.er1 >conftest.err
6544 rm -f conftest.er1
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } && {
6548 test -z "$ac_c_werror_flag" ||
6549 test ! -s conftest.err
6550 } && test -s conftest$ac_exeext &&
6551 $as_test_x conftest$ac_exeext; then
6552 ac_cv_has_makedev=yes
6553 else
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 ac_cv_has_makedev=no
6560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6561 conftest$ac_exeext conftest.$ac_ext
6562 if test "$ac_cv_has_makedev" = "yes"; then
6564 cat >>confdefs.h <<\_ACEOF
6565 #define _OSF_SOURCE 1
6566 _ACEOF
6570 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6571 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6572 if test "$ac_cv_has_makedev" = "yes"; then
6574 cat >>confdefs.h <<\_ACEOF
6575 #define HAVE_MAKEDEV 1
6576 _ACEOF
6580 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6581 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6582 # defined, but the compiler does not support pragma redefine_extname,
6583 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6584 # structures (such as rlimit64) without declaring them. As a
6585 # work-around, disable LFS on such configurations
6587 use_lfs=yes
6588 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6589 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6590 cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h. */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6597 #define _LARGEFILE_SOURCE 1
6598 #define _FILE_OFFSET_BITS 64
6599 #include <sys/resource.h>
6602 main ()
6604 struct rlimit foo;
6606 return 0;
6608 _ACEOF
6609 rm -f conftest.$ac_objext
6610 if { (ac_try="$ac_compile"
6611 case "(($ac_try" in
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6614 esac
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_compile") 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && {
6623 test -z "$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest.$ac_objext; then
6626 sol_lfs_bug=no
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 sol_lfs_bug=yes
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6636 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6637 if test "$sol_lfs_bug" = "yes"; then
6638 use_lfs=no
6641 if test "$use_lfs" = "yes"; then
6642 # Two defines needed to enable largefile support on various platforms
6643 # These may affect some typedefs
6645 cat >>confdefs.h <<\_ACEOF
6646 #define _LARGEFILE_SOURCE 1
6647 _ACEOF
6650 cat >>confdefs.h <<\_ACEOF
6651 #define _FILE_OFFSET_BITS 64
6652 _ACEOF
6656 # Add some code to confdefs.h so that the test for off_t works on SCO
6657 cat >> confdefs.h <<\EOF
6658 #if defined(SCO_DS)
6659 #undef _OFF_T
6660 #endif
6663 # Type availability checks
6664 { echo "$as_me:$LINENO: checking for mode_t" >&5
6665 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6666 if test "${ac_cv_type_mode_t+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 $ac_includes_default
6676 typedef mode_t ac__type_new_;
6678 main ()
6680 if ((ac__type_new_ *) 0)
6681 return 0;
6682 if (sizeof (ac__type_new_))
6683 return 0;
6685 return 0;
6687 _ACEOF
6688 rm -f conftest.$ac_objext
6689 if { (ac_try="$ac_compile"
6690 case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 ac_cv_type_mode_t=yes
6706 else
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 ac_cv_type_mode_t=no
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6716 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6717 if test $ac_cv_type_mode_t = yes; then
6719 else
6721 cat >>confdefs.h <<_ACEOF
6722 #define mode_t int
6723 _ACEOF
6727 { echo "$as_me:$LINENO: checking for off_t" >&5
6728 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6729 if test "${ac_cv_type_off_t+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 $ac_includes_default
6739 typedef off_t ac__type_new_;
6741 main ()
6743 if ((ac__type_new_ *) 0)
6744 return 0;
6745 if (sizeof (ac__type_new_))
6746 return 0;
6748 return 0;
6750 _ACEOF
6751 rm -f conftest.$ac_objext
6752 if { (ac_try="$ac_compile"
6753 case "(($ac_try" in
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6756 esac
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758 (eval "$ac_compile") 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 } && test -s conftest.$ac_objext; then
6768 ac_cv_type_off_t=yes
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 ac_cv_type_off_t=no
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6779 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6780 if test $ac_cv_type_off_t = yes; then
6782 else
6784 cat >>confdefs.h <<_ACEOF
6785 #define off_t long int
6786 _ACEOF
6790 { echo "$as_me:$LINENO: checking for pid_t" >&5
6791 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6792 if test "${ac_cv_type_pid_t+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 $ac_includes_default
6802 typedef pid_t ac__type_new_;
6804 main ()
6806 if ((ac__type_new_ *) 0)
6807 return 0;
6808 if (sizeof (ac__type_new_))
6809 return 0;
6811 return 0;
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6816 case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.$ac_objext; then
6831 ac_cv_type_pid_t=yes
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 ac_cv_type_pid_t=no
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6842 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6843 if test $ac_cv_type_pid_t = yes; then
6845 else
6847 cat >>confdefs.h <<_ACEOF
6848 #define pid_t int
6849 _ACEOF
6853 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6854 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6855 if test "${ac_cv_type_signal+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 #include <sys/types.h>
6865 #include <signal.h>
6868 main ()
6870 return *(signal (0, 0)) (0) == 1;
6872 return 0;
6874 _ACEOF
6875 rm -f conftest.$ac_objext
6876 if { (ac_try="$ac_compile"
6877 case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880 esac
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_compile") 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest.$ac_objext; then
6892 ac_cv_type_signal=int
6893 else
6894 echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6897 ac_cv_type_signal=void
6900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6903 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6905 cat >>confdefs.h <<_ACEOF
6906 #define RETSIGTYPE $ac_cv_type_signal
6907 _ACEOF
6910 { echo "$as_me:$LINENO: checking for size_t" >&5
6911 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6912 if test "${ac_cv_type_size_t+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915 cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h. */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921 $ac_includes_default
6922 typedef size_t ac__type_new_;
6924 main ()
6926 if ((ac__type_new_ *) 0)
6927 return 0;
6928 if (sizeof (ac__type_new_))
6929 return 0;
6931 return 0;
6933 _ACEOF
6934 rm -f conftest.$ac_objext
6935 if { (ac_try="$ac_compile"
6936 case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939 esac
6940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6941 (eval "$ac_compile") 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest.$ac_objext; then
6951 ac_cv_type_size_t=yes
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_cv_type_size_t=no
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6962 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6963 if test $ac_cv_type_size_t = yes; then
6965 else
6967 cat >>confdefs.h <<_ACEOF
6968 #define size_t unsigned int
6969 _ACEOF
6973 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6974 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6975 if test "${ac_cv_type_uid_t+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h. */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 #include <sys/types.h>
6986 _ACEOF
6987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6988 $EGREP "uid_t" >/dev/null 2>&1; then
6989 ac_cv_type_uid_t=yes
6990 else
6991 ac_cv_type_uid_t=no
6993 rm -f conftest*
6996 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6997 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6998 if test $ac_cv_type_uid_t = no; then
7000 cat >>confdefs.h <<\_ACEOF
7001 #define uid_t int
7002 _ACEOF
7005 cat >>confdefs.h <<\_ACEOF
7006 #define gid_t int
7007 _ACEOF
7012 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7013 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7014 if test "${ac_cv_c_uint32_t+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017 ac_cv_c_uint32_t=no
7018 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7019 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 $ac_includes_default
7028 main ()
7030 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7031 test_array [0] = 0
7034 return 0;
7036 _ACEOF
7037 rm -f conftest.$ac_objext
7038 if { (ac_try="$ac_compile"
7039 case "(($ac_try" in
7040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7041 *) ac_try_echo=$ac_try;;
7042 esac
7043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7044 (eval "$ac_compile") 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && {
7051 test -z "$ac_c_werror_flag" ||
7052 test ! -s conftest.err
7053 } && test -s conftest.$ac_objext; then
7054 case $ac_type in
7055 uint32_t) ac_cv_c_uint32_t=yes ;;
7056 *) ac_cv_c_uint32_t=$ac_type ;;
7057 esac
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 test "$ac_cv_c_uint32_t" != no && break
7068 done
7070 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7071 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7072 case $ac_cv_c_uint32_t in #(
7073 no|yes) ;; #(
7076 cat >>confdefs.h <<\_ACEOF
7077 #define _UINT32_T 1
7078 _ACEOF
7081 cat >>confdefs.h <<_ACEOF
7082 #define uint32_t $ac_cv_c_uint32_t
7083 _ACEOF
7085 esac
7088 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7089 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7090 if test "${ac_cv_c_uint64_t+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 ac_cv_c_uint64_t=no
7094 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7095 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h. */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 $ac_includes_default
7104 main ()
7106 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7107 test_array [0] = 0
7110 return 0;
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 case $ac_type in
7131 uint64_t) ac_cv_c_uint64_t=yes ;;
7132 *) ac_cv_c_uint64_t=$ac_type ;;
7133 esac
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143 test "$ac_cv_c_uint64_t" != no && break
7144 done
7146 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7147 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7148 case $ac_cv_c_uint64_t in #(
7149 no|yes) ;; #(
7152 cat >>confdefs.h <<\_ACEOF
7153 #define _UINT64_T 1
7154 _ACEOF
7157 cat >>confdefs.h <<_ACEOF
7158 #define uint64_t $ac_cv_c_uint64_t
7159 _ACEOF
7161 esac
7164 { echo "$as_me:$LINENO: checking for int32_t" >&5
7165 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7166 if test "${ac_cv_c_int32_t+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169 ac_cv_c_int32_t=no
7170 for ac_type in 'int32_t' 'int' 'long int' \
7171 'long long int' 'short int' 'signed char'; do
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7180 main ()
7182 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7183 test_array [0] = 0
7186 return 0;
7188 _ACEOF
7189 rm -f conftest.$ac_objext
7190 if { (ac_try="$ac_compile"
7191 case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194 esac
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_compile") 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest.$ac_objext; then
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 $ac_includes_default
7214 main ()
7216 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7217 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7218 test_array [0] = 0
7221 return 0;
7223 _ACEOF
7224 rm -f conftest.$ac_objext
7225 if { (ac_try="$ac_compile"
7226 case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229 esac
7230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7232 ac_status=$?
7233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7242 else
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 case $ac_type in
7247 int32_t) ac_cv_c_int32_t=yes ;;
7248 *) ac_cv_c_int32_t=$ac_type ;;
7249 esac
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 else
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262 test "$ac_cv_c_int32_t" != no && break
7263 done
7265 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7266 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7267 case $ac_cv_c_int32_t in #(
7268 no|yes) ;; #(
7271 cat >>confdefs.h <<_ACEOF
7272 #define int32_t $ac_cv_c_int32_t
7273 _ACEOF
7275 esac
7278 { echo "$as_me:$LINENO: checking for int64_t" >&5
7279 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7280 if test "${ac_cv_c_int64_t+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 ac_cv_c_int64_t=no
7284 for ac_type in 'int64_t' 'int' 'long int' \
7285 'long long int' 'short int' 'signed char'; do
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h. */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 $ac_includes_default
7294 main ()
7296 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7297 test_array [0] = 0
7300 return 0;
7302 _ACEOF
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7305 case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308 esac
7309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_compile") 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.$ac_objext; then
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h. */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 $ac_includes_default
7328 main ()
7330 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7331 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7332 test_array [0] = 0
7335 return 0;
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (ac_try="$ac_compile"
7340 case "(($ac_try" in
7341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7343 esac
7344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345 (eval "$ac_compile") 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } && {
7352 test -z "$ac_c_werror_flag" ||
7353 test ! -s conftest.err
7354 } && test -s conftest.$ac_objext; then
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 case $ac_type in
7361 int64_t) ac_cv_c_int64_t=yes ;;
7362 *) ac_cv_c_int64_t=$ac_type ;;
7363 esac
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 test "$ac_cv_c_int64_t" != no && break
7377 done
7379 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7380 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7381 case $ac_cv_c_int64_t in #(
7382 no|yes) ;; #(
7385 cat >>confdefs.h <<_ACEOF
7386 #define int64_t $ac_cv_c_int64_t
7387 _ACEOF
7389 esac
7391 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7392 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7393 if test "${ac_cv_type_ssize_t+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7403 typedef ssize_t ac__type_new_;
7405 main ()
7407 if ((ac__type_new_ *) 0)
7408 return 0;
7409 if (sizeof (ac__type_new_))
7410 return 0;
7412 return 0;
7414 _ACEOF
7415 rm -f conftest.$ac_objext
7416 if { (ac_try="$ac_compile"
7417 case "(($ac_try" in
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7420 esac
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_compile") 2>conftest.er1
7423 ac_status=$?
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest.$ac_objext; then
7432 ac_cv_type_ssize_t=yes
7433 else
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7437 ac_cv_type_ssize_t=no
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7443 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7444 if test $ac_cv_type_ssize_t = yes; then
7446 cat >>confdefs.h <<\_ACEOF
7447 #define HAVE_SSIZE_T 1
7448 _ACEOF
7453 # Sizes of various common basic types
7454 # ANSI C requires sizeof(char) == 1, so no need to check it
7455 { echo "$as_me:$LINENO: checking for int" >&5
7456 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7457 if test "${ac_cv_type_int+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460 cat >conftest.$ac_ext <<_ACEOF
7461 /* confdefs.h. */
7462 _ACEOF
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 $ac_includes_default
7467 typedef int ac__type_new_;
7469 main ()
7471 if ((ac__type_new_ *) 0)
7472 return 0;
7473 if (sizeof (ac__type_new_))
7474 return 0;
7476 return 0;
7478 _ACEOF
7479 rm -f conftest.$ac_objext
7480 if { (ac_try="$ac_compile"
7481 case "(($ac_try" in
7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7484 esac
7485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7486 (eval "$ac_compile") 2>conftest.er1
7487 ac_status=$?
7488 grep -v '^ *+' conftest.er1 >conftest.err
7489 rm -f conftest.er1
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } && {
7493 test -z "$ac_c_werror_flag" ||
7494 test ! -s conftest.err
7495 } && test -s conftest.$ac_objext; then
7496 ac_cv_type_int=yes
7497 else
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7501 ac_cv_type_int=no
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7507 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7509 # The cast to long int works around a bug in the HP C Compiler
7510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7512 # This bug is HP SR number 8606223364.
7513 { echo "$as_me:$LINENO: checking size of int" >&5
7514 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7515 if test "${ac_cv_sizeof_int+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 if test "$cross_compiling" = yes; then
7519 # Depending upon the size, compute the lo and hi bounds.
7520 cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h. */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 $ac_includes_default
7527 typedef int ac__type_sizeof_;
7529 main ()
7531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7532 test_array [0] = 0
7535 return 0;
7537 _ACEOF
7538 rm -f conftest.$ac_objext
7539 if { (ac_try="$ac_compile"
7540 case "(($ac_try" in
7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7543 esac
7544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545 (eval "$ac_compile") 2>conftest.er1
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } && {
7552 test -z "$ac_c_werror_flag" ||
7553 test ! -s conftest.err
7554 } && test -s conftest.$ac_objext; then
7555 ac_lo=0 ac_mid=0
7556 while :; do
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h. */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 $ac_includes_default
7564 typedef int ac__type_sizeof_;
7566 main ()
7568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7569 test_array [0] = 0
7572 return 0;
7574 _ACEOF
7575 rm -f conftest.$ac_objext
7576 if { (ac_try="$ac_compile"
7577 case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580 esac
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_compile") 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest.$ac_objext; then
7592 ac_hi=$ac_mid; break
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_lo=`expr $ac_mid + 1`
7598 if test $ac_lo -le $ac_mid; then
7599 ac_lo= ac_hi=
7600 break
7602 ac_mid=`expr 2 '*' $ac_mid + 1`
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 done
7607 else
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 typedef int ac__type_sizeof_;
7620 main ()
7622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7623 test_array [0] = 0
7626 return 0;
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (ac_try="$ac_compile"
7631 case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.$ac_objext; then
7646 ac_hi=-1 ac_mid=-1
7647 while :; do
7648 cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h. */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 $ac_includes_default
7655 typedef int ac__type_sizeof_;
7657 main ()
7659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7660 test_array [0] = 0
7663 return 0;
7665 _ACEOF
7666 rm -f conftest.$ac_objext
7667 if { (ac_try="$ac_compile"
7668 case "(($ac_try" in
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7683 ac_lo=$ac_mid; break
7684 else
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 ac_hi=`expr '(' $ac_mid ')' - 1`
7689 if test $ac_mid -le $ac_hi; then
7690 ac_lo= ac_hi=
7691 break
7693 ac_mid=`expr 2 '*' $ac_mid`
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 done
7698 else
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 ac_lo= ac_hi=
7705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 # Binary search between lo and hi bounds.
7710 while test "x$ac_lo" != "x$ac_hi"; do
7711 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719 typedef int ac__type_sizeof_;
7721 main ()
7723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7724 test_array [0] = 0
7727 return 0;
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (ac_try="$ac_compile"
7732 case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735 esac
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_compile") 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.$ac_objext; then
7747 ac_hi=$ac_mid
7748 else
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7752 ac_lo=`expr '(' $ac_mid ')' + 1`
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 done
7757 case $ac_lo in
7758 ?*) ac_cv_sizeof_int=$ac_lo;;
7759 '') if test "$ac_cv_type_int" = yes; then
7760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7761 See \`config.log' for more details." >&5
7762 echo "$as_me: error: cannot compute sizeof (int)
7763 See \`config.log' for more details." >&2;}
7764 { (exit 77); exit 77; }; }
7765 else
7766 ac_cv_sizeof_int=0
7767 fi ;;
7768 esac
7769 else
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7777 typedef int ac__type_sizeof_;
7778 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7779 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7780 #include <stdio.h>
7781 #include <stdlib.h>
7783 main ()
7786 FILE *f = fopen ("conftest.val", "w");
7787 if (! f)
7788 return 1;
7789 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7791 long int i = longval ();
7792 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7793 return 1;
7794 fprintf (f, "%ld\n", i);
7796 else
7798 unsigned long int i = ulongval ();
7799 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7800 return 1;
7801 fprintf (f, "%lu\n", i);
7803 return ferror (f) || fclose (f) != 0;
7806 return 0;
7808 _ACEOF
7809 rm -f conftest$ac_exeext
7810 if { (ac_try="$ac_link"
7811 case "(($ac_try" in
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7814 esac
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816 (eval "$ac_link") 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7820 { (case "(($ac_try" in
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7823 esac
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_try") 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; }; then
7829 ac_cv_sizeof_int=`cat conftest.val`
7830 else
7831 echo "$as_me: program exited with status $ac_status" >&5
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 ( exit $ac_status )
7836 if test "$ac_cv_type_int" = yes; then
7837 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7838 See \`config.log' for more details." >&5
7839 echo "$as_me: error: cannot compute sizeof (int)
7840 See \`config.log' for more details." >&2;}
7841 { (exit 77); exit 77; }; }
7842 else
7843 ac_cv_sizeof_int=0
7846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7848 rm -f conftest.val
7850 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7851 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7855 cat >>confdefs.h <<_ACEOF
7856 #define SIZEOF_INT $ac_cv_sizeof_int
7857 _ACEOF
7860 { echo "$as_me:$LINENO: checking for long" >&5
7861 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7862 if test "${ac_cv_type_long+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h. */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 $ac_includes_default
7872 typedef long ac__type_new_;
7874 main ()
7876 if ((ac__type_new_ *) 0)
7877 return 0;
7878 if (sizeof (ac__type_new_))
7879 return 0;
7881 return 0;
7883 _ACEOF
7884 rm -f conftest.$ac_objext
7885 if { (ac_try="$ac_compile"
7886 case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889 esac
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_compile") 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest.$ac_objext; then
7901 ac_cv_type_long=yes
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 ac_cv_type_long=no
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7912 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7914 # The cast to long int works around a bug in the HP C Compiler
7915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7917 # This bug is HP SR number 8606223364.
7918 { echo "$as_me:$LINENO: checking size of long" >&5
7919 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7920 if test "${ac_cv_sizeof_long+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 if test "$cross_compiling" = yes; then
7924 # Depending upon the size, compute the lo and hi bounds.
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 $ac_includes_default
7932 typedef long ac__type_sizeof_;
7934 main ()
7936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7937 test_array [0] = 0
7940 return 0;
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7945 case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7960 ac_lo=0 ac_mid=0
7961 while :; do
7962 cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h. */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 typedef long ac__type_sizeof_;
7971 main ()
7973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7974 test_array [0] = 0
7977 return 0;
7979 _ACEOF
7980 rm -f conftest.$ac_objext
7981 if { (ac_try="$ac_compile"
7982 case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7985 esac
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_compile") 2>conftest.er1
7988 ac_status=$?
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } && {
7994 test -z "$ac_c_werror_flag" ||
7995 test ! -s conftest.err
7996 } && test -s conftest.$ac_objext; then
7997 ac_hi=$ac_mid; break
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_lo=`expr $ac_mid + 1`
8003 if test $ac_lo -le $ac_mid; then
8004 ac_lo= ac_hi=
8005 break
8007 ac_mid=`expr 2 '*' $ac_mid + 1`
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 done
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 $ac_includes_default
8023 typedef long ac__type_sizeof_;
8025 main ()
8027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8028 test_array [0] = 0
8031 return 0;
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8036 case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.$ac_objext; then
8051 ac_hi=-1 ac_mid=-1
8052 while :; do
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h. */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 $ac_includes_default
8060 typedef long ac__type_sizeof_;
8062 main ()
8064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8065 test_array [0] = 0
8068 return 0;
8070 _ACEOF
8071 rm -f conftest.$ac_objext
8072 if { (ac_try="$ac_compile"
8073 case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_compile") 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } && {
8085 test -z "$ac_c_werror_flag" ||
8086 test ! -s conftest.err
8087 } && test -s conftest.$ac_objext; then
8088 ac_lo=$ac_mid; break
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8093 ac_hi=`expr '(' $ac_mid ')' - 1`
8094 if test $ac_mid -le $ac_hi; then
8095 ac_lo= ac_hi=
8096 break
8098 ac_mid=`expr 2 '*' $ac_mid`
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 done
8103 else
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 ac_lo= ac_hi=
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 # Binary search between lo and hi bounds.
8115 while test "x$ac_lo" != "x$ac_hi"; do
8116 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 $ac_includes_default
8124 typedef long ac__type_sizeof_;
8126 main ()
8128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8129 test_array [0] = 0
8132 return 0;
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8137 case "(($ac_try" in
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_compile") 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
8152 ac_hi=$ac_mid
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_lo=`expr '(' $ac_mid ')' + 1`
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 done
8162 case $ac_lo in
8163 ?*) ac_cv_sizeof_long=$ac_lo;;
8164 '') if test "$ac_cv_type_long" = yes; then
8165 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8166 See \`config.log' for more details." >&5
8167 echo "$as_me: error: cannot compute sizeof (long)
8168 See \`config.log' for more details." >&2;}
8169 { (exit 77); exit 77; }; }
8170 else
8171 ac_cv_sizeof_long=0
8172 fi ;;
8173 esac
8174 else
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 typedef long ac__type_sizeof_;
8183 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8184 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8185 #include <stdio.h>
8186 #include <stdlib.h>
8188 main ()
8191 FILE *f = fopen ("conftest.val", "w");
8192 if (! f)
8193 return 1;
8194 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8196 long int i = longval ();
8197 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8198 return 1;
8199 fprintf (f, "%ld\n", i);
8201 else
8203 unsigned long int i = ulongval ();
8204 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8205 return 1;
8206 fprintf (f, "%lu\n", i);
8208 return ferror (f) || fclose (f) != 0;
8211 return 0;
8213 _ACEOF
8214 rm -f conftest$ac_exeext
8215 if { (ac_try="$ac_link"
8216 case "(($ac_try" in
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8219 esac
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_link") 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_sizeof_long=`cat conftest.val`
8235 else
8236 echo "$as_me: program exited with status $ac_status" >&5
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 ( exit $ac_status )
8241 if test "$ac_cv_type_long" = yes; then
8242 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8243 See \`config.log' for more details." >&5
8244 echo "$as_me: error: cannot compute sizeof (long)
8245 See \`config.log' for more details." >&2;}
8246 { (exit 77); exit 77; }; }
8247 else
8248 ac_cv_sizeof_long=0
8251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8253 rm -f conftest.val
8255 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8256 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8260 cat >>confdefs.h <<_ACEOF
8261 #define SIZEOF_LONG $ac_cv_sizeof_long
8262 _ACEOF
8265 { echo "$as_me:$LINENO: checking for void *" >&5
8266 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8267 if test "${ac_cv_type_void_p+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 typedef void * ac__type_new_;
8279 main ()
8281 if ((ac__type_new_ *) 0)
8282 return 0;
8283 if (sizeof (ac__type_new_))
8284 return 0;
8286 return 0;
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.$ac_objext; then
8306 ac_cv_type_void_p=yes
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 ac_cv_type_void_p=no
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8317 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8319 # The cast to long int works around a bug in the HP C Compiler
8320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8322 # This bug is HP SR number 8606223364.
8323 { echo "$as_me:$LINENO: checking size of void *" >&5
8324 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8325 if test "${ac_cv_sizeof_void_p+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328 if test "$cross_compiling" = yes; then
8329 # Depending upon the size, compute the lo and hi bounds.
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h. */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 $ac_includes_default
8337 typedef void * ac__type_sizeof_;
8339 main ()
8341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8342 test_array [0] = 0
8345 return 0;
8347 _ACEOF
8348 rm -f conftest.$ac_objext
8349 if { (ac_try="$ac_compile"
8350 case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_compile") 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && {
8362 test -z "$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 } && test -s conftest.$ac_objext; then
8365 ac_lo=0 ac_mid=0
8366 while :; do
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8374 typedef void * ac__type_sizeof_;
8376 main ()
8378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8379 test_array [0] = 0
8382 return 0;
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (ac_try="$ac_compile"
8387 case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_compile") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } && {
8399 test -z "$ac_c_werror_flag" ||
8400 test ! -s conftest.err
8401 } && test -s conftest.$ac_objext; then
8402 ac_hi=$ac_mid; break
8403 else
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8407 ac_lo=`expr $ac_mid + 1`
8408 if test $ac_lo -le $ac_mid; then
8409 ac_lo= ac_hi=
8410 break
8412 ac_mid=`expr 2 '*' $ac_mid + 1`
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 done
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 typedef void * ac__type_sizeof_;
8430 main ()
8432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8433 test_array [0] = 0
8436 return 0;
8438 _ACEOF
8439 rm -f conftest.$ac_objext
8440 if { (ac_try="$ac_compile"
8441 case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8444 esac
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_compile") 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest.$ac_objext; then
8456 ac_hi=-1 ac_mid=-1
8457 while :; do
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 $ac_includes_default
8465 typedef void * ac__type_sizeof_;
8467 main ()
8469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8470 test_array [0] = 0
8473 return 0;
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8478 case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_compile") 2>conftest.er1
8484 ac_status=$?
8485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && {
8490 test -z "$ac_c_werror_flag" ||
8491 test ! -s conftest.err
8492 } && test -s conftest.$ac_objext; then
8493 ac_lo=$ac_mid; break
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8498 ac_hi=`expr '(' $ac_mid ')' - 1`
8499 if test $ac_mid -le $ac_hi; then
8500 ac_lo= ac_hi=
8501 break
8503 ac_mid=`expr 2 '*' $ac_mid`
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 done
8508 else
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8512 ac_lo= ac_hi=
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 # Binary search between lo and hi bounds.
8520 while test "x$ac_lo" != "x$ac_hi"; do
8521 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8522 cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h. */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 $ac_includes_default
8529 typedef void * ac__type_sizeof_;
8531 main ()
8533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8534 test_array [0] = 0
8537 return 0;
8539 _ACEOF
8540 rm -f conftest.$ac_objext
8541 if { (ac_try="$ac_compile"
8542 case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_compile") 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && {
8554 test -z "$ac_c_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest.$ac_objext; then
8557 ac_hi=$ac_mid
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_lo=`expr '(' $ac_mid ')' + 1`
8565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 done
8567 case $ac_lo in
8568 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8569 '') if test "$ac_cv_type_void_p" = yes; then
8570 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8571 See \`config.log' for more details." >&5
8572 echo "$as_me: error: cannot compute sizeof (void *)
8573 See \`config.log' for more details." >&2;}
8574 { (exit 77); exit 77; }; }
8575 else
8576 ac_cv_sizeof_void_p=0
8577 fi ;;
8578 esac
8579 else
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h. */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 $ac_includes_default
8587 typedef void * ac__type_sizeof_;
8588 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8589 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8590 #include <stdio.h>
8591 #include <stdlib.h>
8593 main ()
8596 FILE *f = fopen ("conftest.val", "w");
8597 if (! f)
8598 return 1;
8599 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8601 long int i = longval ();
8602 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8603 return 1;
8604 fprintf (f, "%ld\n", i);
8606 else
8608 unsigned long int i = ulongval ();
8609 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8610 return 1;
8611 fprintf (f, "%lu\n", i);
8613 return ferror (f) || fclose (f) != 0;
8616 return 0;
8618 _ACEOF
8619 rm -f conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8621 case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8630 { (case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633 esac
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_try") 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 ac_cv_sizeof_void_p=`cat conftest.val`
8640 else
8641 echo "$as_me: program exited with status $ac_status" >&5
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ( exit $ac_status )
8646 if test "$ac_cv_type_void_p" = yes; then
8647 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8648 See \`config.log' for more details." >&5
8649 echo "$as_me: error: cannot compute sizeof (void *)
8650 See \`config.log' for more details." >&2;}
8651 { (exit 77); exit 77; }; }
8652 else
8653 ac_cv_sizeof_void_p=0
8656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8658 rm -f conftest.val
8660 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8661 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8665 cat >>confdefs.h <<_ACEOF
8666 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8667 _ACEOF
8670 { echo "$as_me:$LINENO: checking for short" >&5
8671 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8672 if test "${ac_cv_type_short+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h. */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 $ac_includes_default
8682 typedef short ac__type_new_;
8684 main ()
8686 if ((ac__type_new_ *) 0)
8687 return 0;
8688 if (sizeof (ac__type_new_))
8689 return 0;
8691 return 0;
8693 _ACEOF
8694 rm -f conftest.$ac_objext
8695 if { (ac_try="$ac_compile"
8696 case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8699 esac
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_compile") 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } && {
8708 test -z "$ac_c_werror_flag" ||
8709 test ! -s conftest.err
8710 } && test -s conftest.$ac_objext; then
8711 ac_cv_type_short=yes
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_cv_type_short=no
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8722 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8724 # The cast to long int works around a bug in the HP C Compiler
8725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8727 # This bug is HP SR number 8606223364.
8728 { echo "$as_me:$LINENO: checking size of short" >&5
8729 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8730 if test "${ac_cv_sizeof_short+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733 if test "$cross_compiling" = yes; then
8734 # Depending upon the size, compute the lo and hi bounds.
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h. */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 $ac_includes_default
8742 typedef short ac__type_sizeof_;
8744 main ()
8746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8747 test_array [0] = 0
8750 return 0;
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (ac_try="$ac_compile"
8755 case "(($ac_try" in
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8758 esac
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_compile") 2>conftest.er1
8761 ac_status=$?
8762 grep -v '^ *+' conftest.er1 >conftest.err
8763 rm -f conftest.er1
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } && {
8767 test -z "$ac_c_werror_flag" ||
8768 test ! -s conftest.err
8769 } && test -s conftest.$ac_objext; then
8770 ac_lo=0 ac_mid=0
8771 while :; do
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h. */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8778 $ac_includes_default
8779 typedef short ac__type_sizeof_;
8781 main ()
8783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8784 test_array [0] = 0
8787 return 0;
8789 _ACEOF
8790 rm -f conftest.$ac_objext
8791 if { (ac_try="$ac_compile"
8792 case "(($ac_try" in
8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 *) ac_try_echo=$ac_try;;
8795 esac
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797 (eval "$ac_compile") 2>conftest.er1
8798 ac_status=$?
8799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } && {
8804 test -z "$ac_c_werror_flag" ||
8805 test ! -s conftest.err
8806 } && test -s conftest.$ac_objext; then
8807 ac_hi=$ac_mid; break
8808 else
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 ac_lo=`expr $ac_mid + 1`
8813 if test $ac_lo -le $ac_mid; then
8814 ac_lo= ac_hi=
8815 break
8817 ac_mid=`expr 2 '*' $ac_mid + 1`
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 done
8822 else
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 $ac_includes_default
8833 typedef short ac__type_sizeof_;
8835 main ()
8837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8838 test_array [0] = 0
8841 return 0;
8843 _ACEOF
8844 rm -f conftest.$ac_objext
8845 if { (ac_try="$ac_compile"
8846 case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849 esac
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_compile") 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } && {
8858 test -z "$ac_c_werror_flag" ||
8859 test ! -s conftest.err
8860 } && test -s conftest.$ac_objext; then
8861 ac_hi=-1 ac_mid=-1
8862 while :; do
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 $ac_includes_default
8870 typedef short ac__type_sizeof_;
8872 main ()
8874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8875 test_array [0] = 0
8878 return 0;
8880 _ACEOF
8881 rm -f conftest.$ac_objext
8882 if { (ac_try="$ac_compile"
8883 case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8886 esac
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_compile") 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && {
8895 test -z "$ac_c_werror_flag" ||
8896 test ! -s conftest.err
8897 } && test -s conftest.$ac_objext; then
8898 ac_lo=$ac_mid; break
8899 else
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 ac_hi=`expr '(' $ac_mid ')' - 1`
8904 if test $ac_mid -le $ac_hi; then
8905 ac_lo= ac_hi=
8906 break
8908 ac_mid=`expr 2 '*' $ac_mid`
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 done
8913 else
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_lo= ac_hi=
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 # Binary search between lo and hi bounds.
8925 while test "x$ac_lo" != "x$ac_hi"; do
8926 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8927 cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h. */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 $ac_includes_default
8934 typedef short ac__type_sizeof_;
8936 main ()
8938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8939 test_array [0] = 0
8942 return 0;
8944 _ACEOF
8945 rm -f conftest.$ac_objext
8946 if { (ac_try="$ac_compile"
8947 case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_compile") 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest.$ac_objext; then
8962 ac_hi=$ac_mid
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ac_lo=`expr '(' $ac_mid ')' + 1`
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 done
8972 case $ac_lo in
8973 ?*) ac_cv_sizeof_short=$ac_lo;;
8974 '') if test "$ac_cv_type_short" = yes; then
8975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8976 See \`config.log' for more details." >&5
8977 echo "$as_me: error: cannot compute sizeof (short)
8978 See \`config.log' for more details." >&2;}
8979 { (exit 77); exit 77; }; }
8980 else
8981 ac_cv_sizeof_short=0
8982 fi ;;
8983 esac
8984 else
8985 cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h. */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8991 $ac_includes_default
8992 typedef short ac__type_sizeof_;
8993 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8994 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8995 #include <stdio.h>
8996 #include <stdlib.h>
8998 main ()
9001 FILE *f = fopen ("conftest.val", "w");
9002 if (! f)
9003 return 1;
9004 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9006 long int i = longval ();
9007 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9008 return 1;
9009 fprintf (f, "%ld\n", i);
9011 else
9013 unsigned long int i = ulongval ();
9014 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9015 return 1;
9016 fprintf (f, "%lu\n", i);
9018 return ferror (f) || fclose (f) != 0;
9021 return 0;
9023 _ACEOF
9024 rm -f conftest$ac_exeext
9025 if { (ac_try="$ac_link"
9026 case "(($ac_try" in
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9029 esac
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031 (eval "$ac_link") 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9035 { (case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038 esac
9039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_try") 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_cv_sizeof_short=`cat conftest.val`
9045 else
9046 echo "$as_me: program exited with status $ac_status" >&5
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9050 ( exit $ac_status )
9051 if test "$ac_cv_type_short" = yes; then
9052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9053 See \`config.log' for more details." >&5
9054 echo "$as_me: error: cannot compute sizeof (short)
9055 See \`config.log' for more details." >&2;}
9056 { (exit 77); exit 77; }; }
9057 else
9058 ac_cv_sizeof_short=0
9061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9063 rm -f conftest.val
9065 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9066 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9070 cat >>confdefs.h <<_ACEOF
9071 #define SIZEOF_SHORT $ac_cv_sizeof_short
9072 _ACEOF
9075 { echo "$as_me:$LINENO: checking for float" >&5
9076 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9077 if test "${ac_cv_type_float+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h. */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086 $ac_includes_default
9087 typedef float ac__type_new_;
9089 main ()
9091 if ((ac__type_new_ *) 0)
9092 return 0;
9093 if (sizeof (ac__type_new_))
9094 return 0;
9096 return 0;
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (ac_try="$ac_compile"
9101 case "(($ac_try" in
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9104 esac
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && {
9113 test -z "$ac_c_werror_flag" ||
9114 test ! -s conftest.err
9115 } && test -s conftest.$ac_objext; then
9116 ac_cv_type_float=yes
9117 else
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9121 ac_cv_type_float=no
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9127 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9129 # The cast to long int works around a bug in the HP C Compiler
9130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9132 # This bug is HP SR number 8606223364.
9133 { echo "$as_me:$LINENO: checking size of float" >&5
9134 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9135 if test "${ac_cv_sizeof_float+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138 if test "$cross_compiling" = yes; then
9139 # Depending upon the size, compute the lo and hi bounds.
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9147 typedef float ac__type_sizeof_;
9149 main ()
9151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9152 test_array [0] = 0
9155 return 0;
9157 _ACEOF
9158 rm -f conftest.$ac_objext
9159 if { (ac_try="$ac_compile"
9160 case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9163 esac
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_compile") 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && {
9172 test -z "$ac_c_werror_flag" ||
9173 test ! -s conftest.err
9174 } && test -s conftest.$ac_objext; then
9175 ac_lo=0 ac_mid=0
9176 while :; do
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 $ac_includes_default
9184 typedef float ac__type_sizeof_;
9186 main ()
9188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9189 test_array [0] = 0
9192 return 0;
9194 _ACEOF
9195 rm -f conftest.$ac_objext
9196 if { (ac_try="$ac_compile"
9197 case "(($ac_try" in
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9200 esac
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_compile") 2>conftest.er1
9203 ac_status=$?
9204 grep -v '^ *+' conftest.er1 >conftest.err
9205 rm -f conftest.er1
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && {
9209 test -z "$ac_c_werror_flag" ||
9210 test ! -s conftest.err
9211 } && test -s conftest.$ac_objext; then
9212 ac_hi=$ac_mid; break
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_lo=`expr $ac_mid + 1`
9218 if test $ac_lo -le $ac_mid; then
9219 ac_lo= ac_hi=
9220 break
9222 ac_mid=`expr 2 '*' $ac_mid + 1`
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 done
9227 else
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 $ac_includes_default
9238 typedef float ac__type_sizeof_;
9240 main ()
9242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9243 test_array [0] = 0
9246 return 0;
9248 _ACEOF
9249 rm -f conftest.$ac_objext
9250 if { (ac_try="$ac_compile"
9251 case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_compile") 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest.$ac_objext; then
9266 ac_hi=-1 ac_mid=-1
9267 while :; do
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h. */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 $ac_includes_default
9275 typedef float ac__type_sizeof_;
9277 main ()
9279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9280 test_array [0] = 0
9283 return 0;
9285 _ACEOF
9286 rm -f conftest.$ac_objext
9287 if { (ac_try="$ac_compile"
9288 case "(($ac_try" in
9289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9291 esac
9292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293 (eval "$ac_compile") 2>conftest.er1
9294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } && {
9300 test -z "$ac_c_werror_flag" ||
9301 test ! -s conftest.err
9302 } && test -s conftest.$ac_objext; then
9303 ac_lo=$ac_mid; break
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9308 ac_hi=`expr '(' $ac_mid ')' - 1`
9309 if test $ac_mid -le $ac_hi; then
9310 ac_lo= ac_hi=
9311 break
9313 ac_mid=`expr 2 '*' $ac_mid`
9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 done
9318 else
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9322 ac_lo= ac_hi=
9325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329 # Binary search between lo and hi bounds.
9330 while test "x$ac_lo" != "x$ac_hi"; do
9331 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 $ac_includes_default
9339 typedef float ac__type_sizeof_;
9341 main ()
9343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9344 test_array [0] = 0
9347 return 0;
9349 _ACEOF
9350 rm -f conftest.$ac_objext
9351 if { (ac_try="$ac_compile"
9352 case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9355 esac
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_compile") 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } && {
9364 test -z "$ac_c_werror_flag" ||
9365 test ! -s conftest.err
9366 } && test -s conftest.$ac_objext; then
9367 ac_hi=$ac_mid
9368 else
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 ac_lo=`expr '(' $ac_mid ')' + 1`
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 done
9377 case $ac_lo in
9378 ?*) ac_cv_sizeof_float=$ac_lo;;
9379 '') if test "$ac_cv_type_float" = yes; then
9380 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9381 See \`config.log' for more details." >&5
9382 echo "$as_me: error: cannot compute sizeof (float)
9383 See \`config.log' for more details." >&2;}
9384 { (exit 77); exit 77; }; }
9385 else
9386 ac_cv_sizeof_float=0
9387 fi ;;
9388 esac
9389 else
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9397 typedef float ac__type_sizeof_;
9398 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9399 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9400 #include <stdio.h>
9401 #include <stdlib.h>
9403 main ()
9406 FILE *f = fopen ("conftest.val", "w");
9407 if (! f)
9408 return 1;
9409 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9411 long int i = longval ();
9412 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9413 return 1;
9414 fprintf (f, "%ld\n", i);
9416 else
9418 unsigned long int i = ulongval ();
9419 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9420 return 1;
9421 fprintf (f, "%lu\n", i);
9423 return ferror (f) || fclose (f) != 0;
9426 return 0;
9428 _ACEOF
9429 rm -f conftest$ac_exeext
9430 if { (ac_try="$ac_link"
9431 case "(($ac_try" in
9432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9433 *) ac_try_echo=$ac_try;;
9434 esac
9435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9436 (eval "$ac_link") 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9440 { (case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_try") 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_sizeof_float=`cat conftest.val`
9450 else
9451 echo "$as_me: program exited with status $ac_status" >&5
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9455 ( exit $ac_status )
9456 if test "$ac_cv_type_float" = yes; then
9457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9458 See \`config.log' for more details." >&5
9459 echo "$as_me: error: cannot compute sizeof (float)
9460 See \`config.log' for more details." >&2;}
9461 { (exit 77); exit 77; }; }
9462 else
9463 ac_cv_sizeof_float=0
9466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9468 rm -f conftest.val
9470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9471 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9475 cat >>confdefs.h <<_ACEOF
9476 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9477 _ACEOF
9480 { echo "$as_me:$LINENO: checking for double" >&5
9481 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9482 if test "${ac_cv_type_double+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485 cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h. */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 $ac_includes_default
9492 typedef double ac__type_new_;
9494 main ()
9496 if ((ac__type_new_ *) 0)
9497 return 0;
9498 if (sizeof (ac__type_new_))
9499 return 0;
9501 return 0;
9503 _ACEOF
9504 rm -f conftest.$ac_objext
9505 if { (ac_try="$ac_compile"
9506 case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_compile") 2>conftest.er1
9512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest.$ac_objext; then
9521 ac_cv_type_double=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_cv_type_double=no
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9532 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9534 # The cast to long int works around a bug in the HP C Compiler
9535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9537 # This bug is HP SR number 8606223364.
9538 { echo "$as_me:$LINENO: checking size of double" >&5
9539 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9540 if test "${ac_cv_sizeof_double+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 if test "$cross_compiling" = yes; then
9544 # Depending upon the size, compute the lo and hi bounds.
9545 cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h. */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 $ac_includes_default
9552 typedef double ac__type_sizeof_;
9554 main ()
9556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9557 test_array [0] = 0
9560 return 0;
9562 _ACEOF
9563 rm -f conftest.$ac_objext
9564 if { (ac_try="$ac_compile"
9565 case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9568 esac
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_compile") 2>conftest.er1
9571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && {
9577 test -z "$ac_c_werror_flag" ||
9578 test ! -s conftest.err
9579 } && test -s conftest.$ac_objext; then
9580 ac_lo=0 ac_mid=0
9581 while :; do
9582 cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h. */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 $ac_includes_default
9589 typedef double ac__type_sizeof_;
9591 main ()
9593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9594 test_array [0] = 0
9597 return 0;
9599 _ACEOF
9600 rm -f conftest.$ac_objext
9601 if { (ac_try="$ac_compile"
9602 case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_compile") 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest.$ac_objext; then
9617 ac_hi=$ac_mid; break
9618 else
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9622 ac_lo=`expr $ac_mid + 1`
9623 if test $ac_lo -le $ac_mid; then
9624 ac_lo= ac_hi=
9625 break
9627 ac_mid=`expr 2 '*' $ac_mid + 1`
9630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9631 done
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642 $ac_includes_default
9643 typedef double ac__type_sizeof_;
9645 main ()
9647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9648 test_array [0] = 0
9651 return 0;
9653 _ACEOF
9654 rm -f conftest.$ac_objext
9655 if { (ac_try="$ac_compile"
9656 case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_compile") 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest.$ac_objext; then
9671 ac_hi=-1 ac_mid=-1
9672 while :; do
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 $ac_includes_default
9680 typedef double ac__type_sizeof_;
9682 main ()
9684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9685 test_array [0] = 0
9688 return 0;
9690 _ACEOF
9691 rm -f conftest.$ac_objext
9692 if { (ac_try="$ac_compile"
9693 case "(($ac_try" in
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9696 esac
9697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_compile") 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && {
9705 test -z "$ac_c_werror_flag" ||
9706 test ! -s conftest.err
9707 } && test -s conftest.$ac_objext; then
9708 ac_lo=$ac_mid; break
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 ac_hi=`expr '(' $ac_mid ')' - 1`
9714 if test $ac_mid -le $ac_hi; then
9715 ac_lo= ac_hi=
9716 break
9718 ac_mid=`expr 2 '*' $ac_mid`
9721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9722 done
9723 else
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_lo= ac_hi=
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734 # Binary search between lo and hi bounds.
9735 while test "x$ac_lo" != "x$ac_hi"; do
9736 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9744 typedef double ac__type_sizeof_;
9746 main ()
9748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9749 test_array [0] = 0
9752 return 0;
9754 _ACEOF
9755 rm -f conftest.$ac_objext
9756 if { (ac_try="$ac_compile"
9757 case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_compile") 2>conftest.er1
9763 ac_status=$?
9764 grep -v '^ *+' conftest.er1 >conftest.err
9765 rm -f conftest.er1
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } && {
9769 test -z "$ac_c_werror_flag" ||
9770 test ! -s conftest.err
9771 } && test -s conftest.$ac_objext; then
9772 ac_hi=$ac_mid
9773 else
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_lo=`expr '(' $ac_mid ')' + 1`
9780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781 done
9782 case $ac_lo in
9783 ?*) ac_cv_sizeof_double=$ac_lo;;
9784 '') if test "$ac_cv_type_double" = yes; then
9785 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9786 See \`config.log' for more details." >&5
9787 echo "$as_me: error: cannot compute sizeof (double)
9788 See \`config.log' for more details." >&2;}
9789 { (exit 77); exit 77; }; }
9790 else
9791 ac_cv_sizeof_double=0
9792 fi ;;
9793 esac
9794 else
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 $ac_includes_default
9802 typedef double ac__type_sizeof_;
9803 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9804 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9805 #include <stdio.h>
9806 #include <stdlib.h>
9808 main ()
9811 FILE *f = fopen ("conftest.val", "w");
9812 if (! f)
9813 return 1;
9814 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9816 long int i = longval ();
9817 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9818 return 1;
9819 fprintf (f, "%ld\n", i);
9821 else
9823 unsigned long int i = ulongval ();
9824 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9825 return 1;
9826 fprintf (f, "%lu\n", i);
9828 return ferror (f) || fclose (f) != 0;
9831 return 0;
9833 _ACEOF
9834 rm -f conftest$ac_exeext
9835 if { (ac_try="$ac_link"
9836 case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_link") 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 ac_cv_sizeof_double=`cat conftest.val`
9855 else
9856 echo "$as_me: program exited with status $ac_status" >&5
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 ( exit $ac_status )
9861 if test "$ac_cv_type_double" = yes; then
9862 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9863 See \`config.log' for more details." >&5
9864 echo "$as_me: error: cannot compute sizeof (double)
9865 See \`config.log' for more details." >&2;}
9866 { (exit 77); exit 77; }; }
9867 else
9868 ac_cv_sizeof_double=0
9871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9873 rm -f conftest.val
9875 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9876 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9880 cat >>confdefs.h <<_ACEOF
9881 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9882 _ACEOF
9885 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9886 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9887 if test "${ac_cv_type_fpos_t+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h. */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 $ac_includes_default
9897 typedef fpos_t ac__type_new_;
9899 main ()
9901 if ((ac__type_new_ *) 0)
9902 return 0;
9903 if (sizeof (ac__type_new_))
9904 return 0;
9906 return 0;
9908 _ACEOF
9909 rm -f conftest.$ac_objext
9910 if { (ac_try="$ac_compile"
9911 case "(($ac_try" in
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_compile") 2>conftest.er1
9917 ac_status=$?
9918 grep -v '^ *+' conftest.er1 >conftest.err
9919 rm -f conftest.er1
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } && {
9923 test -z "$ac_c_werror_flag" ||
9924 test ! -s conftest.err
9925 } && test -s conftest.$ac_objext; then
9926 ac_cv_type_fpos_t=yes
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_cv_type_fpos_t=no
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9937 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9939 # The cast to long int works around a bug in the HP C Compiler
9940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9942 # This bug is HP SR number 8606223364.
9943 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9944 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9945 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948 if test "$cross_compiling" = yes; then
9949 # Depending upon the size, compute the lo and hi bounds.
9950 cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h. */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 $ac_includes_default
9957 typedef fpos_t ac__type_sizeof_;
9959 main ()
9961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9962 test_array [0] = 0
9965 return 0;
9967 _ACEOF
9968 rm -f conftest.$ac_objext
9969 if { (ac_try="$ac_compile"
9970 case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_compile") 2>conftest.er1
9976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } && {
9982 test -z "$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 } && test -s conftest.$ac_objext; then
9985 ac_lo=0 ac_mid=0
9986 while :; do
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9994 typedef fpos_t ac__type_sizeof_;
9996 main ()
9998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9999 test_array [0] = 0
10002 return 0;
10004 _ACEOF
10005 rm -f conftest.$ac_objext
10006 if { (ac_try="$ac_compile"
10007 case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010 esac
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_compile") 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } && {
10019 test -z "$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 } && test -s conftest.$ac_objext; then
10022 ac_hi=$ac_mid; break
10023 else
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10027 ac_lo=`expr $ac_mid + 1`
10028 if test $ac_lo -le $ac_mid; then
10029 ac_lo= ac_hi=
10030 break
10032 ac_mid=`expr 2 '*' $ac_mid + 1`
10035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036 done
10037 else
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h. */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 $ac_includes_default
10048 typedef fpos_t ac__type_sizeof_;
10050 main ()
10052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10053 test_array [0] = 0
10056 return 0;
10058 _ACEOF
10059 rm -f conftest.$ac_objext
10060 if { (ac_try="$ac_compile"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_compile") 2>conftest.er1
10067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && {
10073 test -z "$ac_c_werror_flag" ||
10074 test ! -s conftest.err
10075 } && test -s conftest.$ac_objext; then
10076 ac_hi=-1 ac_mid=-1
10077 while :; do
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 typedef fpos_t ac__type_sizeof_;
10087 main ()
10089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10090 test_array [0] = 0
10093 return 0;
10095 _ACEOF
10096 rm -f conftest.$ac_objext
10097 if { (ac_try="$ac_compile"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_compile") 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest.$ac_objext; then
10113 ac_lo=$ac_mid; break
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_hi=`expr '(' $ac_mid ')' - 1`
10119 if test $ac_mid -le $ac_hi; then
10120 ac_lo= ac_hi=
10121 break
10123 ac_mid=`expr 2 '*' $ac_mid`
10126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127 done
10128 else
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_lo= ac_hi=
10135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 # Binary search between lo and hi bounds.
10140 while test "x$ac_lo" != "x$ac_hi"; do
10141 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 $ac_includes_default
10149 typedef fpos_t ac__type_sizeof_;
10151 main ()
10153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10154 test_array [0] = 0
10157 return 0;
10159 _ACEOF
10160 rm -f conftest.$ac_objext
10161 if { (ac_try="$ac_compile"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_compile") 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest.$ac_objext; then
10177 ac_hi=$ac_mid
10178 else
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_lo=`expr '(' $ac_mid ')' + 1`
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186 done
10187 case $ac_lo in
10188 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10189 '') if test "$ac_cv_type_fpos_t" = yes; then
10190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10191 See \`config.log' for more details." >&5
10192 echo "$as_me: error: cannot compute sizeof (fpos_t)
10193 See \`config.log' for more details." >&2;}
10194 { (exit 77); exit 77; }; }
10195 else
10196 ac_cv_sizeof_fpos_t=0
10197 fi ;;
10198 esac
10199 else
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 $ac_includes_default
10207 typedef fpos_t ac__type_sizeof_;
10208 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10209 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10210 #include <stdio.h>
10211 #include <stdlib.h>
10213 main ()
10216 FILE *f = fopen ("conftest.val", "w");
10217 if (! f)
10218 return 1;
10219 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10221 long int i = longval ();
10222 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10223 return 1;
10224 fprintf (f, "%ld\n", i);
10226 else
10228 unsigned long int i = ulongval ();
10229 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10230 return 1;
10231 fprintf (f, "%lu\n", i);
10233 return ferror (f) || fclose (f) != 0;
10236 return 0;
10238 _ACEOF
10239 rm -f conftest$ac_exeext
10240 if { (ac_try="$ac_link"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_link") 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 ac_cv_sizeof_fpos_t=`cat conftest.val`
10260 else
10261 echo "$as_me: program exited with status $ac_status" >&5
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ( exit $ac_status )
10266 if test "$ac_cv_type_fpos_t" = yes; then
10267 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10268 See \`config.log' for more details." >&5
10269 echo "$as_me: error: cannot compute sizeof (fpos_t)
10270 See \`config.log' for more details." >&2;}
10271 { (exit 77); exit 77; }; }
10272 else
10273 ac_cv_sizeof_fpos_t=0
10276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10278 rm -f conftest.val
10280 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10281 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10285 cat >>confdefs.h <<_ACEOF
10286 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10287 _ACEOF
10290 { echo "$as_me:$LINENO: checking for size_t" >&5
10291 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10292 if test "${ac_cv_type_size_t+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h. */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 $ac_includes_default
10302 typedef size_t ac__type_new_;
10304 main ()
10306 if ((ac__type_new_ *) 0)
10307 return 0;
10308 if (sizeof (ac__type_new_))
10309 return 0;
10311 return 0;
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (ac_try="$ac_compile"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_compile") 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && {
10328 test -z "$ac_c_werror_flag" ||
10329 test ! -s conftest.err
10330 } && test -s conftest.$ac_objext; then
10331 ac_cv_type_size_t=yes
10332 else
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ac_cv_type_size_t=no
10339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10342 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10344 # The cast to long int works around a bug in the HP C Compiler
10345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10347 # This bug is HP SR number 8606223364.
10348 { echo "$as_me:$LINENO: checking size of size_t" >&5
10349 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10350 if test "${ac_cv_sizeof_size_t+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353 if test "$cross_compiling" = yes; then
10354 # Depending upon the size, compute the lo and hi bounds.
10355 cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h. */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 $ac_includes_default
10362 typedef size_t ac__type_sizeof_;
10364 main ()
10366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10367 test_array [0] = 0
10370 return 0;
10372 _ACEOF
10373 rm -f conftest.$ac_objext
10374 if { (ac_try="$ac_compile"
10375 case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_compile") 2>conftest.er1
10381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } && {
10387 test -z "$ac_c_werror_flag" ||
10388 test ! -s conftest.err
10389 } && test -s conftest.$ac_objext; then
10390 ac_lo=0 ac_mid=0
10391 while :; do
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h. */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 $ac_includes_default
10399 typedef size_t ac__type_sizeof_;
10401 main ()
10403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10404 test_array [0] = 0
10407 return 0;
10409 _ACEOF
10410 rm -f conftest.$ac_objext
10411 if { (ac_try="$ac_compile"
10412 case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415 esac
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_compile") 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest.$ac_objext; then
10427 ac_hi=$ac_mid; break
10428 else
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 ac_lo=`expr $ac_mid + 1`
10433 if test $ac_lo -le $ac_mid; then
10434 ac_lo= ac_hi=
10435 break
10437 ac_mid=`expr 2 '*' $ac_mid + 1`
10440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 done
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h. */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452 $ac_includes_default
10453 typedef size_t ac__type_sizeof_;
10455 main ()
10457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10458 test_array [0] = 0
10461 return 0;
10463 _ACEOF
10464 rm -f conftest.$ac_objext
10465 if { (ac_try="$ac_compile"
10466 case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469 esac
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_compile") 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && {
10478 test -z "$ac_c_werror_flag" ||
10479 test ! -s conftest.err
10480 } && test -s conftest.$ac_objext; then
10481 ac_hi=-1 ac_mid=-1
10482 while :; do
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 $ac_includes_default
10490 typedef size_t ac__type_sizeof_;
10492 main ()
10494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10495 test_array [0] = 0
10498 return 0;
10500 _ACEOF
10501 rm -f conftest.$ac_objext
10502 if { (ac_try="$ac_compile"
10503 case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10506 esac
10507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_compile") 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } && {
10515 test -z "$ac_c_werror_flag" ||
10516 test ! -s conftest.err
10517 } && test -s conftest.$ac_objext; then
10518 ac_lo=$ac_mid; break
10519 else
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10523 ac_hi=`expr '(' $ac_mid ')' - 1`
10524 if test $ac_mid -le $ac_hi; then
10525 ac_lo= ac_hi=
10526 break
10528 ac_mid=`expr 2 '*' $ac_mid`
10531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10532 done
10533 else
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10537 ac_lo= ac_hi=
10540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 # Binary search between lo and hi bounds.
10545 while test "x$ac_lo" != "x$ac_hi"; do
10546 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10547 cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h. */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 $ac_includes_default
10554 typedef size_t ac__type_sizeof_;
10556 main ()
10558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10559 test_array [0] = 0
10562 return 0;
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (ac_try="$ac_compile"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570 esac
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_compile") 2>conftest.er1
10573 ac_status=$?
10574 grep -v '^ *+' conftest.er1 >conftest.err
10575 rm -f conftest.er1
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } && {
10579 test -z "$ac_c_werror_flag" ||
10580 test ! -s conftest.err
10581 } && test -s conftest.$ac_objext; then
10582 ac_hi=$ac_mid
10583 else
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10587 ac_lo=`expr '(' $ac_mid ')' + 1`
10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10591 done
10592 case $ac_lo in
10593 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10594 '') if test "$ac_cv_type_size_t" = yes; then
10595 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10596 See \`config.log' for more details." >&5
10597 echo "$as_me: error: cannot compute sizeof (size_t)
10598 See \`config.log' for more details." >&2;}
10599 { (exit 77); exit 77; }; }
10600 else
10601 ac_cv_sizeof_size_t=0
10602 fi ;;
10603 esac
10604 else
10605 cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h. */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 $ac_includes_default
10612 typedef size_t ac__type_sizeof_;
10613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10615 #include <stdio.h>
10616 #include <stdlib.h>
10618 main ()
10621 FILE *f = fopen ("conftest.val", "w");
10622 if (! f)
10623 return 1;
10624 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10626 long int i = longval ();
10627 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10628 return 1;
10629 fprintf (f, "%ld\n", i);
10631 else
10633 unsigned long int i = ulongval ();
10634 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10635 return 1;
10636 fprintf (f, "%lu\n", i);
10638 return ferror (f) || fclose (f) != 0;
10641 return 0;
10643 _ACEOF
10644 rm -f conftest$ac_exeext
10645 if { (ac_try="$ac_link"
10646 case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10649 esac
10650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651 (eval "$ac_link") 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10655 { (case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658 esac
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_try") 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_sizeof_size_t=`cat conftest.val`
10665 else
10666 echo "$as_me: program exited with status $ac_status" >&5
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ( exit $ac_status )
10671 if test "$ac_cv_type_size_t" = yes; then
10672 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10673 See \`config.log' for more details." >&5
10674 echo "$as_me: error: cannot compute sizeof (size_t)
10675 See \`config.log' for more details." >&2;}
10676 { (exit 77); exit 77; }; }
10677 else
10678 ac_cv_sizeof_size_t=0
10681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10683 rm -f conftest.val
10685 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10686 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10690 cat >>confdefs.h <<_ACEOF
10691 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10692 _ACEOF
10695 { echo "$as_me:$LINENO: checking for pid_t" >&5
10696 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10697 if test "${ac_cv_type_pid_t+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h. */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 $ac_includes_default
10707 typedef pid_t ac__type_new_;
10709 main ()
10711 if ((ac__type_new_ *) 0)
10712 return 0;
10713 if (sizeof (ac__type_new_))
10714 return 0;
10716 return 0;
10718 _ACEOF
10719 rm -f conftest.$ac_objext
10720 if { (ac_try="$ac_compile"
10721 case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724 esac
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_compile") 2>conftest.er1
10727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } && {
10733 test -z "$ac_c_werror_flag" ||
10734 test ! -s conftest.err
10735 } && test -s conftest.$ac_objext; then
10736 ac_cv_type_pid_t=yes
10737 else
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_type_pid_t=no
10744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10747 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10749 # The cast to long int works around a bug in the HP C Compiler
10750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10752 # This bug is HP SR number 8606223364.
10753 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10754 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10755 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758 if test "$cross_compiling" = yes; then
10759 # Depending upon the size, compute the lo and hi bounds.
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h. */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10767 typedef pid_t ac__type_sizeof_;
10769 main ()
10771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10772 test_array [0] = 0
10775 return 0;
10777 _ACEOF
10778 rm -f conftest.$ac_objext
10779 if { (ac_try="$ac_compile"
10780 case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10783 esac
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_compile") 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest.$ac_objext; then
10795 ac_lo=0 ac_mid=0
10796 while :; do
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 typedef pid_t ac__type_sizeof_;
10806 main ()
10808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10809 test_array [0] = 0
10812 return 0;
10814 _ACEOF
10815 rm -f conftest.$ac_objext
10816 if { (ac_try="$ac_compile"
10817 case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_compile") 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest.$ac_objext; then
10832 ac_hi=$ac_mid; break
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10837 ac_lo=`expr $ac_mid + 1`
10838 if test $ac_lo -le $ac_mid; then
10839 ac_lo= ac_hi=
10840 break
10842 ac_mid=`expr 2 '*' $ac_mid + 1`
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846 done
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h. */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 $ac_includes_default
10858 typedef pid_t ac__type_sizeof_;
10860 main ()
10862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10863 test_array [0] = 0
10866 return 0;
10868 _ACEOF
10869 rm -f conftest.$ac_objext
10870 if { (ac_try="$ac_compile"
10871 case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10874 esac
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_compile") 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } && {
10883 test -z "$ac_c_werror_flag" ||
10884 test ! -s conftest.err
10885 } && test -s conftest.$ac_objext; then
10886 ac_hi=-1 ac_mid=-1
10887 while :; do
10888 cat >conftest.$ac_ext <<_ACEOF
10889 /* confdefs.h. */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 $ac_includes_default
10895 typedef pid_t ac__type_sizeof_;
10897 main ()
10899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10900 test_array [0] = 0
10903 return 0;
10905 _ACEOF
10906 rm -f conftest.$ac_objext
10907 if { (ac_try="$ac_compile"
10908 case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_compile") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } && {
10920 test -z "$ac_c_werror_flag" ||
10921 test ! -s conftest.err
10922 } && test -s conftest.$ac_objext; then
10923 ac_lo=$ac_mid; break
10924 else
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 ac_hi=`expr '(' $ac_mid ')' - 1`
10929 if test $ac_mid -le $ac_hi; then
10930 ac_lo= ac_hi=
10931 break
10933 ac_mid=`expr 2 '*' $ac_mid`
10936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 done
10938 else
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_lo= ac_hi=
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10949 # Binary search between lo and hi bounds.
10950 while test "x$ac_lo" != "x$ac_hi"; do
10951 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10952 cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h. */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 $ac_includes_default
10959 typedef pid_t ac__type_sizeof_;
10961 main ()
10963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10964 test_array [0] = 0
10967 return 0;
10969 _ACEOF
10970 rm -f conftest.$ac_objext
10971 if { (ac_try="$ac_compile"
10972 case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_compile") 2>conftest.er1
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && {
10984 test -z "$ac_c_werror_flag" ||
10985 test ! -s conftest.err
10986 } && test -s conftest.$ac_objext; then
10987 ac_hi=$ac_mid
10988 else
10989 echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10992 ac_lo=`expr '(' $ac_mid ')' + 1`
10995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10996 done
10997 case $ac_lo in
10998 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10999 '') if test "$ac_cv_type_pid_t" = yes; then
11000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11001 See \`config.log' for more details." >&5
11002 echo "$as_me: error: cannot compute sizeof (pid_t)
11003 See \`config.log' for more details." >&2;}
11004 { (exit 77); exit 77; }; }
11005 else
11006 ac_cv_sizeof_pid_t=0
11007 fi ;;
11008 esac
11009 else
11010 cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h. */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 $ac_includes_default
11017 typedef pid_t ac__type_sizeof_;
11018 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11019 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11020 #include <stdio.h>
11021 #include <stdlib.h>
11023 main ()
11026 FILE *f = fopen ("conftest.val", "w");
11027 if (! f)
11028 return 1;
11029 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11031 long int i = longval ();
11032 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11033 return 1;
11034 fprintf (f, "%ld\n", i);
11036 else
11038 unsigned long int i = ulongval ();
11039 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11040 return 1;
11041 fprintf (f, "%lu\n", i);
11043 return ferror (f) || fclose (f) != 0;
11046 return 0;
11048 _ACEOF
11049 rm -f conftest$ac_exeext
11050 if { (ac_try="$ac_link"
11051 case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_link") 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11060 { (case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_try") 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; }; then
11069 ac_cv_sizeof_pid_t=`cat conftest.val`
11070 else
11071 echo "$as_me: program exited with status $ac_status" >&5
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 ( exit $ac_status )
11076 if test "$ac_cv_type_pid_t" = yes; then
11077 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11078 See \`config.log' for more details." >&5
11079 echo "$as_me: error: cannot compute sizeof (pid_t)
11080 See \`config.log' for more details." >&2;}
11081 { (exit 77); exit 77; }; }
11082 else
11083 ac_cv_sizeof_pid_t=0
11086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11088 rm -f conftest.val
11090 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11091 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11095 cat >>confdefs.h <<_ACEOF
11096 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11097 _ACEOF
11101 { echo "$as_me:$LINENO: checking for long long support" >&5
11102 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11103 have_long_long=no
11104 cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h. */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11112 main ()
11114 long long x; x = (long long)0;
11116 return 0;
11118 _ACEOF
11119 rm -f conftest.$ac_objext
11120 if { (ac_try="$ac_compile"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_compile") 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest.$ac_objext; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define HAVE_LONG_LONG 1
11140 _ACEOF
11142 have_long_long=yes
11144 else
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11153 echo "${ECHO_T}$have_long_long" >&6; }
11154 if test "$have_long_long" = yes ; then
11155 { echo "$as_me:$LINENO: checking for long long" >&5
11156 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11157 if test "${ac_cv_type_long_long+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 $ac_includes_default
11167 typedef long long ac__type_new_;
11169 main ()
11171 if ((ac__type_new_ *) 0)
11172 return 0;
11173 if (sizeof (ac__type_new_))
11174 return 0;
11176 return 0;
11178 _ACEOF
11179 rm -f conftest.$ac_objext
11180 if { (ac_try="$ac_compile"
11181 case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_compile") 2>conftest.er1
11187 ac_status=$?
11188 grep -v '^ *+' conftest.er1 >conftest.err
11189 rm -f conftest.er1
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } && {
11193 test -z "$ac_c_werror_flag" ||
11194 test ! -s conftest.err
11195 } && test -s conftest.$ac_objext; then
11196 ac_cv_type_long_long=yes
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_cv_type_long_long=no
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11207 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11209 # The cast to long int works around a bug in the HP C Compiler
11210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11212 # This bug is HP SR number 8606223364.
11213 { echo "$as_me:$LINENO: checking size of long long" >&5
11214 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11215 if test "${ac_cv_sizeof_long_long+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218 if test "$cross_compiling" = yes; then
11219 # Depending upon the size, compute the lo and hi bounds.
11220 cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h. */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 $ac_includes_default
11227 typedef long long ac__type_sizeof_;
11229 main ()
11231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11232 test_array [0] = 0
11235 return 0;
11237 _ACEOF
11238 rm -f conftest.$ac_objext
11239 if { (ac_try="$ac_compile"
11240 case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11243 esac
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245 (eval "$ac_compile") 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } && {
11252 test -z "$ac_c_werror_flag" ||
11253 test ! -s conftest.err
11254 } && test -s conftest.$ac_objext; then
11255 ac_lo=0 ac_mid=0
11256 while :; do
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 $ac_includes_default
11264 typedef long long ac__type_sizeof_;
11266 main ()
11268 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11269 test_array [0] = 0
11272 return 0;
11274 _ACEOF
11275 rm -f conftest.$ac_objext
11276 if { (ac_try="$ac_compile"
11277 case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_compile") 2>conftest.er1
11283 ac_status=$?
11284 grep -v '^ *+' conftest.er1 >conftest.err
11285 rm -f conftest.er1
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } && {
11289 test -z "$ac_c_werror_flag" ||
11290 test ! -s conftest.err
11291 } && test -s conftest.$ac_objext; then
11292 ac_hi=$ac_mid; break
11293 else
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 ac_lo=`expr $ac_mid + 1`
11298 if test $ac_lo -le $ac_mid; then
11299 ac_lo= ac_hi=
11300 break
11302 ac_mid=`expr 2 '*' $ac_mid + 1`
11305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11306 done
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11318 typedef long long ac__type_sizeof_;
11320 main ()
11322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11323 test_array [0] = 0
11326 return 0;
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (ac_try="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest.$ac_objext; then
11346 ac_hi=-1 ac_mid=-1
11347 while :; do
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h. */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 $ac_includes_default
11355 typedef long long ac__type_sizeof_;
11357 main ()
11359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11360 test_array [0] = 0
11363 return 0;
11365 _ACEOF
11366 rm -f conftest.$ac_objext
11367 if { (ac_try="$ac_compile"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_compile") 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } && {
11380 test -z "$ac_c_werror_flag" ||
11381 test ! -s conftest.err
11382 } && test -s conftest.$ac_objext; then
11383 ac_lo=$ac_mid; break
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 ac_hi=`expr '(' $ac_mid ')' - 1`
11389 if test $ac_mid -le $ac_hi; then
11390 ac_lo= ac_hi=
11391 break
11393 ac_mid=`expr 2 '*' $ac_mid`
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 done
11398 else
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 ac_lo= ac_hi=
11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409 # Binary search between lo and hi bounds.
11410 while test "x$ac_lo" != "x$ac_hi"; do
11411 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 $ac_includes_default
11419 typedef long long ac__type_sizeof_;
11421 main ()
11423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11424 test_array [0] = 0
11427 return 0;
11429 _ACEOF
11430 rm -f conftest.$ac_objext
11431 if { (ac_try="$ac_compile"
11432 case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435 esac
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_compile") 2>conftest.er1
11438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest.$ac_objext; then
11447 ac_hi=$ac_mid
11448 else
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 ac_lo=`expr '(' $ac_mid ')' + 1`
11455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456 done
11457 case $ac_lo in
11458 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11459 '') if test "$ac_cv_type_long_long" = yes; then
11460 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11461 See \`config.log' for more details." >&5
11462 echo "$as_me: error: cannot compute sizeof (long long)
11463 See \`config.log' for more details." >&2;}
11464 { (exit 77); exit 77; }; }
11465 else
11466 ac_cv_sizeof_long_long=0
11467 fi ;;
11468 esac
11469 else
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h. */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 $ac_includes_default
11477 typedef long long ac__type_sizeof_;
11478 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11479 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11480 #include <stdio.h>
11481 #include <stdlib.h>
11483 main ()
11486 FILE *f = fopen ("conftest.val", "w");
11487 if (! f)
11488 return 1;
11489 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11491 long int i = longval ();
11492 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11493 return 1;
11494 fprintf (f, "%ld\n", i);
11496 else
11498 unsigned long int i = ulongval ();
11499 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11500 return 1;
11501 fprintf (f, "%lu\n", i);
11503 return ferror (f) || fclose (f) != 0;
11506 return 0;
11508 _ACEOF
11509 rm -f conftest$ac_exeext
11510 if { (ac_try="$ac_link"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514 esac
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_link") 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11520 { (case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_try") 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; }; then
11529 ac_cv_sizeof_long_long=`cat conftest.val`
11530 else
11531 echo "$as_me: program exited with status $ac_status" >&5
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ( exit $ac_status )
11536 if test "$ac_cv_type_long_long" = yes; then
11537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11538 See \`config.log' for more details." >&5
11539 echo "$as_me: error: cannot compute sizeof (long long)
11540 See \`config.log' for more details." >&2;}
11541 { (exit 77); exit 77; }; }
11542 else
11543 ac_cv_sizeof_long_long=0
11546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11548 rm -f conftest.val
11550 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11551 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11555 cat >>confdefs.h <<_ACEOF
11556 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11557 _ACEOF
11562 { echo "$as_me:$LINENO: checking for long double support" >&5
11563 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11564 have_long_double=no
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h. */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11573 main ()
11575 long double x; x = (long double)0;
11577 return 0;
11579 _ACEOF
11580 rm -f conftest.$ac_objext
11581 if { (ac_try="$ac_compile"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_compile") 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 } && test -s conftest.$ac_objext; then
11599 cat >>confdefs.h <<\_ACEOF
11600 #define HAVE_LONG_DOUBLE 1
11601 _ACEOF
11603 have_long_double=yes
11605 else
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11614 echo "${ECHO_T}$have_long_double" >&6; }
11615 if test "$have_long_double" = yes ; then
11616 { echo "$as_me:$LINENO: checking for long double" >&5
11617 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11618 if test "${ac_cv_type_long_double+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621 cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h. */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 $ac_includes_default
11628 typedef long double ac__type_new_;
11630 main ()
11632 if ((ac__type_new_ *) 0)
11633 return 0;
11634 if (sizeof (ac__type_new_))
11635 return 0;
11637 return 0;
11639 _ACEOF
11640 rm -f conftest.$ac_objext
11641 if { (ac_try="$ac_compile"
11642 case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11645 esac
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_compile") 2>conftest.er1
11648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } && {
11654 test -z "$ac_c_werror_flag" ||
11655 test ! -s conftest.err
11656 } && test -s conftest.$ac_objext; then
11657 ac_cv_type_long_double=yes
11658 else
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 ac_cv_type_long_double=no
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11667 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11668 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11670 # The cast to long int works around a bug in the HP C Compiler
11671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11673 # This bug is HP SR number 8606223364.
11674 { echo "$as_me:$LINENO: checking size of long double" >&5
11675 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11676 if test "${ac_cv_sizeof_long_double+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679 if test "$cross_compiling" = yes; then
11680 # Depending upon the size, compute the lo and hi bounds.
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 $ac_includes_default
11688 typedef long double ac__type_sizeof_;
11690 main ()
11692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11693 test_array [0] = 0
11696 return 0;
11698 _ACEOF
11699 rm -f conftest.$ac_objext
11700 if { (ac_try="$ac_compile"
11701 case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704 esac
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_compile") 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } && {
11713 test -z "$ac_c_werror_flag" ||
11714 test ! -s conftest.err
11715 } && test -s conftest.$ac_objext; then
11716 ac_lo=0 ac_mid=0
11717 while :; do
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h. */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 $ac_includes_default
11725 typedef long double ac__type_sizeof_;
11727 main ()
11729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11730 test_array [0] = 0
11733 return 0;
11735 _ACEOF
11736 rm -f conftest.$ac_objext
11737 if { (ac_try="$ac_compile"
11738 case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11741 esac
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743 (eval "$ac_compile") 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && {
11750 test -z "$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11752 } && test -s conftest.$ac_objext; then
11753 ac_hi=$ac_mid; break
11754 else
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11758 ac_lo=`expr $ac_mid + 1`
11759 if test $ac_lo -le $ac_mid; then
11760 ac_lo= ac_hi=
11761 break
11763 ac_mid=`expr 2 '*' $ac_mid + 1`
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 done
11768 else
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11772 cat >conftest.$ac_ext <<_ACEOF
11773 /* confdefs.h. */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 $ac_includes_default
11779 typedef long double ac__type_sizeof_;
11781 main ()
11783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11784 test_array [0] = 0
11787 return 0;
11789 _ACEOF
11790 rm -f conftest.$ac_objext
11791 if { (ac_try="$ac_compile"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_compile") 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } && {
11804 test -z "$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 } && test -s conftest.$ac_objext; then
11807 ac_hi=-1 ac_mid=-1
11808 while :; do
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 typedef long double ac__type_sizeof_;
11818 main ()
11820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11821 test_array [0] = 0
11824 return 0;
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (ac_try="$ac_compile"
11829 case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_lo=$ac_mid; break
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_hi=`expr '(' $ac_mid ')' - 1`
11850 if test $ac_mid -le $ac_hi; then
11851 ac_lo= ac_hi=
11852 break
11854 ac_mid=`expr 2 '*' $ac_mid`
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 done
11859 else
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11863 ac_lo= ac_hi=
11866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 # Binary search between lo and hi bounds.
11871 while test "x$ac_lo" != "x$ac_hi"; do
11872 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 $ac_includes_default
11880 typedef long double ac__type_sizeof_;
11882 main ()
11884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11885 test_array [0] = 0
11888 return 0;
11890 _ACEOF
11891 rm -f conftest.$ac_objext
11892 if { (ac_try="$ac_compile"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11896 esac
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_compile") 2>conftest.er1
11899 ac_status=$?
11900 grep -v '^ *+' conftest.er1 >conftest.err
11901 rm -f conftest.er1
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && {
11905 test -z "$ac_c_werror_flag" ||
11906 test ! -s conftest.err
11907 } && test -s conftest.$ac_objext; then
11908 ac_hi=$ac_mid
11909 else
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ac_lo=`expr '(' $ac_mid ')' + 1`
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 done
11918 case $ac_lo in
11919 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11920 '') if test "$ac_cv_type_long_double" = yes; then
11921 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11922 See \`config.log' for more details." >&5
11923 echo "$as_me: error: cannot compute sizeof (long double)
11924 See \`config.log' for more details." >&2;}
11925 { (exit 77); exit 77; }; }
11926 else
11927 ac_cv_sizeof_long_double=0
11928 fi ;;
11929 esac
11930 else
11931 cat >conftest.$ac_ext <<_ACEOF
11932 /* confdefs.h. */
11933 _ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11937 $ac_includes_default
11938 typedef long double ac__type_sizeof_;
11939 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11940 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11941 #include <stdio.h>
11942 #include <stdlib.h>
11944 main ()
11947 FILE *f = fopen ("conftest.val", "w");
11948 if (! f)
11949 return 1;
11950 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11952 long int i = longval ();
11953 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11954 return 1;
11955 fprintf (f, "%ld\n", i);
11957 else
11959 unsigned long int i = ulongval ();
11960 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11961 return 1;
11962 fprintf (f, "%lu\n", i);
11964 return ferror (f) || fclose (f) != 0;
11967 return 0;
11969 _ACEOF
11970 rm -f conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11981 { (case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984 esac
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_try") 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 ac_cv_sizeof_long_double=`cat conftest.val`
11991 else
11992 echo "$as_me: program exited with status $ac_status" >&5
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ( exit $ac_status )
11997 if test "$ac_cv_type_long_double" = yes; then
11998 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11999 See \`config.log' for more details." >&5
12000 echo "$as_me: error: cannot compute sizeof (long double)
12001 See \`config.log' for more details." >&2;}
12002 { (exit 77); exit 77; }; }
12003 else
12004 ac_cv_sizeof_long_double=0
12007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12009 rm -f conftest.val
12011 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12012 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12016 cat >>confdefs.h <<_ACEOF
12017 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12018 _ACEOF
12024 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12025 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12026 have_c99_bool=no
12027 cat >conftest.$ac_ext <<_ACEOF
12028 /* confdefs.h. */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12035 main ()
12037 _Bool x; x = (_Bool)0;
12039 return 0;
12041 _ACEOF
12042 rm -f conftest.$ac_objext
12043 if { (ac_try="$ac_compile"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_compile") 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && {
12056 test -z "$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 } && test -s conftest.$ac_objext; then
12061 cat >>confdefs.h <<\_ACEOF
12062 #define HAVE_C99_BOOL 1
12063 _ACEOF
12065 have_c99_bool=yes
12067 else
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12076 echo "${ECHO_T}$have_c99_bool" >&6; }
12077 if test "$have_c99_bool" = yes ; then
12078 { echo "$as_me:$LINENO: checking for _Bool" >&5
12079 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12080 if test "${ac_cv_type__Bool+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083 cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h. */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 $ac_includes_default
12090 typedef _Bool ac__type_new_;
12092 main ()
12094 if ((ac__type_new_ *) 0)
12095 return 0;
12096 if (sizeof (ac__type_new_))
12097 return 0;
12099 return 0;
12101 _ACEOF
12102 rm -f conftest.$ac_objext
12103 if { (ac_try="$ac_compile"
12104 case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12107 esac
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_compile") 2>conftest.er1
12110 ac_status=$?
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && {
12116 test -z "$ac_c_werror_flag" ||
12117 test ! -s conftest.err
12118 } && test -s conftest.$ac_objext; then
12119 ac_cv_type__Bool=yes
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ac_cv_type__Bool=no
12127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12130 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12132 # The cast to long int works around a bug in the HP C Compiler
12133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12135 # This bug is HP SR number 8606223364.
12136 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12137 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12138 if test "${ac_cv_sizeof__Bool+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141 if test "$cross_compiling" = yes; then
12142 # Depending upon the size, compute the lo and hi bounds.
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h. */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149 $ac_includes_default
12150 typedef _Bool ac__type_sizeof_;
12152 main ()
12154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12155 test_array [0] = 0
12158 return 0;
12160 _ACEOF
12161 rm -f conftest.$ac_objext
12162 if { (ac_try="$ac_compile"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_compile") 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } && {
12175 test -z "$ac_c_werror_flag" ||
12176 test ! -s conftest.err
12177 } && test -s conftest.$ac_objext; then
12178 ac_lo=0 ac_mid=0
12179 while :; do
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 $ac_includes_default
12187 typedef _Bool ac__type_sizeof_;
12189 main ()
12191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12192 test_array [0] = 0
12195 return 0;
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203 esac
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_compile") 2>conftest.er1
12206 ac_status=$?
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } && {
12212 test -z "$ac_c_werror_flag" ||
12213 test ! -s conftest.err
12214 } && test -s conftest.$ac_objext; then
12215 ac_hi=$ac_mid; break
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_lo=`expr $ac_mid + 1`
12221 if test $ac_lo -le $ac_mid; then
12222 ac_lo= ac_hi=
12223 break
12225 ac_mid=`expr 2 '*' $ac_mid + 1`
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229 done
12230 else
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 $ac_includes_default
12241 typedef _Bool ac__type_sizeof_;
12243 main ()
12245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12246 test_array [0] = 0
12249 return 0;
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (ac_try="$ac_compile"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_compile") 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest.$ac_objext; then
12269 ac_hi=-1 ac_mid=-1
12270 while :; do
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h. */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 $ac_includes_default
12278 typedef _Bool ac__type_sizeof_;
12280 main ()
12282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12283 test_array [0] = 0
12286 return 0;
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 ac_lo=$ac_mid; break
12307 else
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 ac_hi=`expr '(' $ac_mid ')' - 1`
12312 if test $ac_mid -le $ac_hi; then
12313 ac_lo= ac_hi=
12314 break
12316 ac_mid=`expr 2 '*' $ac_mid`
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 done
12321 else
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_lo= ac_hi=
12328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 # Binary search between lo and hi bounds.
12333 while test "x$ac_lo" != "x$ac_hi"; do
12334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12335 cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h. */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341 $ac_includes_default
12342 typedef _Bool ac__type_sizeof_;
12344 main ()
12346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12347 test_array [0] = 0
12350 return 0;
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (ac_try="$ac_compile"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_compile") 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && {
12367 test -z "$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 } && test -s conftest.$ac_objext; then
12370 ac_hi=$ac_mid
12371 else
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ac_lo=`expr '(' $ac_mid ')' + 1`
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 done
12380 case $ac_lo in
12381 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12382 '') if test "$ac_cv_type__Bool" = yes; then
12383 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12384 See \`config.log' for more details." >&5
12385 echo "$as_me: error: cannot compute sizeof (_Bool)
12386 See \`config.log' for more details." >&2;}
12387 { (exit 77); exit 77; }; }
12388 else
12389 ac_cv_sizeof__Bool=0
12390 fi ;;
12391 esac
12392 else
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 $ac_includes_default
12400 typedef _Bool ac__type_sizeof_;
12401 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12402 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12403 #include <stdio.h>
12404 #include <stdlib.h>
12406 main ()
12409 FILE *f = fopen ("conftest.val", "w");
12410 if (! f)
12411 return 1;
12412 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12414 long int i = longval ();
12415 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12416 return 1;
12417 fprintf (f, "%ld\n", i);
12419 else
12421 unsigned long int i = ulongval ();
12422 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12423 return 1;
12424 fprintf (f, "%lu\n", i);
12426 return ferror (f) || fclose (f) != 0;
12429 return 0;
12431 _ACEOF
12432 rm -f conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_link") 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_sizeof__Bool=`cat conftest.val`
12453 else
12454 echo "$as_me: program exited with status $ac_status" >&5
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ( exit $ac_status )
12459 if test "$ac_cv_type__Bool" = yes; then
12460 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12461 See \`config.log' for more details." >&5
12462 echo "$as_me: error: cannot compute sizeof (_Bool)
12463 See \`config.log' for more details." >&2;}
12464 { (exit 77); exit 77; }; }
12465 else
12466 ac_cv_sizeof__Bool=0
12469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12471 rm -f conftest.val
12473 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12474 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12478 cat >>confdefs.h <<_ACEOF
12479 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12480 _ACEOF
12485 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12486 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12487 if test "${ac_cv_type_uintptr_t+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 #ifdef HAVE_STDINT_H
12497 #include <stdint.h>
12498 #endif
12500 typedef uintptr_t ac__type_new_;
12502 main ()
12504 if ((ac__type_new_ *) 0)
12505 return 0;
12506 if (sizeof (ac__type_new_))
12507 return 0;
12509 return 0;
12511 _ACEOF
12512 rm -f conftest.$ac_objext
12513 if { (ac_try="$ac_compile"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_compile") 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && {
12526 test -z "$ac_c_werror_flag" ||
12527 test ! -s conftest.err
12528 } && test -s conftest.$ac_objext; then
12529 ac_cv_type_uintptr_t=yes
12530 else
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 ac_cv_type_uintptr_t=no
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12540 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12541 if test $ac_cv_type_uintptr_t = yes; then
12543 cat >>confdefs.h <<_ACEOF
12544 #define HAVE_UINTPTR_T 1
12545 _ACEOF
12547 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12548 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12549 if test "${ac_cv_type_uintptr_t+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 $ac_includes_default
12559 typedef uintptr_t ac__type_new_;
12561 main ()
12563 if ((ac__type_new_ *) 0)
12564 return 0;
12565 if (sizeof (ac__type_new_))
12566 return 0;
12568 return 0;
12570 _ACEOF
12571 rm -f conftest.$ac_objext
12572 if { (ac_try="$ac_compile"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_compile") 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12587 } && test -s conftest.$ac_objext; then
12588 ac_cv_type_uintptr_t=yes
12589 else
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12593 ac_cv_type_uintptr_t=no
12596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12598 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12601 # The cast to long int works around a bug in the HP C Compiler
12602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12604 # This bug is HP SR number 8606223364.
12605 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12606 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12607 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610 if test "$cross_compiling" = yes; then
12611 # Depending upon the size, compute the lo and hi bounds.
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h. */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 $ac_includes_default
12619 typedef uintptr_t ac__type_sizeof_;
12621 main ()
12623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12624 test_array [0] = 0
12627 return 0;
12629 _ACEOF
12630 rm -f conftest.$ac_objext
12631 if { (ac_try="$ac_compile"
12632 case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12635 esac
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_compile") 2>conftest.er1
12638 ac_status=$?
12639 grep -v '^ *+' conftest.er1 >conftest.err
12640 rm -f conftest.er1
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } && {
12644 test -z "$ac_c_werror_flag" ||
12645 test ! -s conftest.err
12646 } && test -s conftest.$ac_objext; then
12647 ac_lo=0 ac_mid=0
12648 while :; do
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h. */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655 $ac_includes_default
12656 typedef uintptr_t ac__type_sizeof_;
12658 main ()
12660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12661 test_array [0] = 0
12664 return 0;
12666 _ACEOF
12667 rm -f conftest.$ac_objext
12668 if { (ac_try="$ac_compile"
12669 case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_compile") 2>conftest.er1
12675 ac_status=$?
12676 grep -v '^ *+' conftest.er1 >conftest.err
12677 rm -f conftest.er1
12678 cat conftest.err >&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } && {
12681 test -z "$ac_c_werror_flag" ||
12682 test ! -s conftest.err
12683 } && test -s conftest.$ac_objext; then
12684 ac_hi=$ac_mid; break
12685 else
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12689 ac_lo=`expr $ac_mid + 1`
12690 if test $ac_lo -le $ac_mid; then
12691 ac_lo= ac_hi=
12692 break
12694 ac_mid=`expr 2 '*' $ac_mid + 1`
12697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 done
12699 else
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 $ac_includes_default
12710 typedef uintptr_t ac__type_sizeof_;
12712 main ()
12714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12715 test_array [0] = 0
12718 return 0;
12720 _ACEOF
12721 rm -f conftest.$ac_objext
12722 if { (ac_try="$ac_compile"
12723 case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_compile") 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } && {
12735 test -z "$ac_c_werror_flag" ||
12736 test ! -s conftest.err
12737 } && test -s conftest.$ac_objext; then
12738 ac_hi=-1 ac_mid=-1
12739 while :; do
12740 cat >conftest.$ac_ext <<_ACEOF
12741 /* confdefs.h. */
12742 _ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12746 $ac_includes_default
12747 typedef uintptr_t ac__type_sizeof_;
12749 main ()
12751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12752 test_array [0] = 0
12755 return 0;
12757 _ACEOF
12758 rm -f conftest.$ac_objext
12759 if { (ac_try="$ac_compile"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_compile") 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && {
12772 test -z "$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12774 } && test -s conftest.$ac_objext; then
12775 ac_lo=$ac_mid; break
12776 else
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_hi=`expr '(' $ac_mid ')' - 1`
12781 if test $ac_mid -le $ac_hi; then
12782 ac_lo= ac_hi=
12783 break
12785 ac_mid=`expr 2 '*' $ac_mid`
12788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789 done
12790 else
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12794 ac_lo= ac_hi=
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801 # Binary search between lo and hi bounds.
12802 while test "x$ac_lo" != "x$ac_hi"; do
12803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h. */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 $ac_includes_default
12811 typedef uintptr_t ac__type_sizeof_;
12813 main ()
12815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12816 test_array [0] = 0
12819 return 0;
12821 _ACEOF
12822 rm -f conftest.$ac_objext
12823 if { (ac_try="$ac_compile"
12824 case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12827 esac
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_compile") 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } && {
12836 test -z "$ac_c_werror_flag" ||
12837 test ! -s conftest.err
12838 } && test -s conftest.$ac_objext; then
12839 ac_hi=$ac_mid
12840 else
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 ac_lo=`expr '(' $ac_mid ')' + 1`
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848 done
12849 case $ac_lo in
12850 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12851 '') if test "$ac_cv_type_uintptr_t" = yes; then
12852 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12853 See \`config.log' for more details." >&5
12854 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12855 See \`config.log' for more details." >&2;}
12856 { (exit 77); exit 77; }; }
12857 else
12858 ac_cv_sizeof_uintptr_t=0
12859 fi ;;
12860 esac
12861 else
12862 cat >conftest.$ac_ext <<_ACEOF
12863 /* confdefs.h. */
12864 _ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 $ac_includes_default
12869 typedef uintptr_t ac__type_sizeof_;
12870 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12871 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12872 #include <stdio.h>
12873 #include <stdlib.h>
12875 main ()
12878 FILE *f = fopen ("conftest.val", "w");
12879 if (! f)
12880 return 1;
12881 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12883 long int i = longval ();
12884 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12885 return 1;
12886 fprintf (f, "%ld\n", i);
12888 else
12890 unsigned long int i = ulongval ();
12891 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12892 return 1;
12893 fprintf (f, "%lu\n", i);
12895 return ferror (f) || fclose (f) != 0;
12898 return 0;
12900 _ACEOF
12901 rm -f conftest$ac_exeext
12902 if { (ac_try="$ac_link"
12903 case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906 esac
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_link") 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12922 else
12923 echo "$as_me: program exited with status $ac_status" >&5
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 ( exit $ac_status )
12928 if test "$ac_cv_type_uintptr_t" = yes; then
12929 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12930 See \`config.log' for more details." >&5
12931 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12932 See \`config.log' for more details." >&2;}
12933 { (exit 77); exit 77; }; }
12934 else
12935 ac_cv_sizeof_uintptr_t=0
12938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12940 rm -f conftest.val
12942 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12943 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12947 cat >>confdefs.h <<_ACEOF
12948 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12949 _ACEOF
12956 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12957 { echo "$as_me:$LINENO: checking size of off_t" >&5
12958 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12959 if test "${ac_cv_sizeof_off_t+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962 if test "$cross_compiling" = yes; then
12963 ac_cv_sizeof_off_t=4
12964 else
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 #include <stdio.h>
12972 #include <sys/types.h>
12973 main()
12975 FILE *f=fopen("conftestval", "w");
12976 if (!f) exit(1);
12977 fprintf(f, "%d\n", sizeof(off_t));
12978 exit(0);
12980 _ACEOF
12981 rm -f conftest$ac_exeext
12982 if { (ac_try="$ac_link"
12983 case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12986 esac
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_link") 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12992 { (case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995 esac
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_try") 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_sizeof_off_t=`cat conftestval`
13002 else
13003 echo "$as_me: program exited with status $ac_status" >&5
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13007 ( exit $ac_status )
13008 ac_cv_sizeof_off_t=0
13010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13017 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13018 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13020 cat >>confdefs.h <<_ACEOF
13021 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13022 _ACEOF
13025 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13026 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13027 if test "$have_long_long" = yes -a \
13028 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13029 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13031 cat >>confdefs.h <<\_ACEOF
13032 #define HAVE_LARGEFILE_SUPPORT 1
13033 _ACEOF
13035 { echo "$as_me:$LINENO: result: yes" >&5
13036 echo "${ECHO_T}yes" >&6; }
13037 else
13038 { echo "$as_me:$LINENO: result: no" >&5
13039 echo "${ECHO_T}no" >&6; }
13042 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13043 { echo "$as_me:$LINENO: checking size of time_t" >&5
13044 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13045 if test "${ac_cv_sizeof_time_t+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048 if test "$cross_compiling" = yes; then
13049 ac_cv_sizeof_time_t=4
13050 else
13051 cat >conftest.$ac_ext <<_ACEOF
13052 /* confdefs.h. */
13053 _ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13057 #include <stdio.h>
13058 #include <time.h>
13059 main()
13061 FILE *f=fopen("conftestval", "w");
13062 if (!f) exit(1);
13063 fprintf(f, "%d\n", sizeof(time_t));
13064 exit(0);
13066 _ACEOF
13067 rm -f conftest$ac_exeext
13068 if { (ac_try="$ac_link"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_link") 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13078 { (case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_try") 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 ac_cv_sizeof_time_t=`cat conftestval`
13088 else
13089 echo "$as_me: program exited with status $ac_status" >&5
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13093 ( exit $ac_status )
13094 ac_cv_sizeof_time_t=0
13096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13103 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13104 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13106 cat >>confdefs.h <<_ACEOF
13107 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13108 _ACEOF
13112 # if have pthread_t then define SIZEOF_PTHREAD_T
13113 ac_save_cc="$CC"
13114 if test "$ac_cv_kpthread" = "yes"
13115 then CC="$CC -Kpthread"
13116 elif test "$ac_cv_kthread" = "yes"
13117 then CC="$CC -Kthread"
13118 elif test "$ac_cv_pthread" = "yes"
13119 then CC="$CC -pthread"
13121 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13122 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13123 have_pthread_t=no
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h. */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 #include <pthread.h>
13132 main ()
13134 pthread_t x; x = *(pthread_t*)0;
13136 return 0;
13138 _ACEOF
13139 rm -f conftest.$ac_objext
13140 if { (ac_try="$ac_compile"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compile") 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && {
13153 test -z "$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13155 } && test -s conftest.$ac_objext; then
13156 have_pthread_t=yes
13157 else
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13166 echo "${ECHO_T}$have_pthread_t" >&6; }
13167 if test "$have_pthread_t" = yes ; then
13168 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13169 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13170 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13171 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174 if test "$cross_compiling" = yes; then
13175 ac_cv_sizeof_pthread_t=4
13176 else
13177 cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h. */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 #include <stdio.h>
13184 #include <pthread.h>
13185 main()
13187 FILE *f=fopen("conftestval", "w");
13188 if (!f) exit(1);
13189 fprintf(f, "%d\n", sizeof(pthread_t));
13190 exit(0);
13192 _ACEOF
13193 rm -f conftest$ac_exeext
13194 if { (ac_try="$ac_link"
13195 case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198 esac
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13204 { (case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207 esac
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_try") 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 ac_cv_sizeof_pthread_t=`cat conftestval`
13214 else
13215 echo "$as_me: program exited with status $ac_status" >&5
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 ( exit $ac_status )
13220 ac_cv_sizeof_pthread_t=0
13222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13229 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13230 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13232 cat >>confdefs.h <<_ACEOF
13233 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13234 _ACEOF
13237 CC="$ac_save_cc"
13242 case $ac_sys_system/$ac_sys_release in
13243 Darwin/[01567]\..*)
13244 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13246 Darwin/*)
13247 OTHER_LIBTOOL_OPT=""
13249 esac
13252 case $ac_sys_system/$ac_sys_release in
13253 Darwin/[01567]\..*)
13254 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13255 if test "${enable_universalsdk}"; then
13257 else
13258 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13260 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13261 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13262 Darwin/*)
13263 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13264 if test ${gcc_version} '<' 4.0
13265 then
13266 LIBTOOL_CRUFT="-lcc_dynamic"
13267 else
13268 LIBTOOL_CRUFT=""
13270 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13271 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13272 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13273 esac
13275 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13276 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13277 if test "$enable_framework"
13278 then
13279 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13280 # -F. is needed to allow linking to the framework while
13281 # in the build location.
13283 cat >>confdefs.h <<\_ACEOF
13284 #define WITH_NEXT_FRAMEWORK 1
13285 _ACEOF
13287 { echo "$as_me:$LINENO: result: yes" >&5
13288 echo "${ECHO_T}yes" >&6; }
13289 if test $enable_shared = "yes"
13290 then
13291 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13292 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13293 { (exit 1); exit 1; }; }
13295 else
13296 { echo "$as_me:$LINENO: result: no" >&5
13297 echo "${ECHO_T}no" >&6; }
13300 { echo "$as_me:$LINENO: checking for dyld" >&5
13301 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13302 case $ac_sys_system/$ac_sys_release in
13303 Darwin/*)
13305 cat >>confdefs.h <<\_ACEOF
13306 #define WITH_DYLD 1
13307 _ACEOF
13309 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13310 echo "${ECHO_T}always on for Darwin" >&6; }
13313 { echo "$as_me:$LINENO: result: no" >&5
13314 echo "${ECHO_T}no" >&6; }
13316 esac
13318 # Set info about shared libraries.
13324 # SO is the extension of shared libraries `(including the dot!)
13325 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13326 { echo "$as_me:$LINENO: checking SO" >&5
13327 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13328 if test -z "$SO"
13329 then
13330 case $ac_sys_system in
13331 hp*|HP*)
13332 case `uname -m` in
13333 ia64) SO=.so;;
13334 *) SO=.sl;;
13335 esac
13337 CYGWIN*) SO=.dll;;
13338 *) SO=.so;;
13339 esac
13340 else
13341 # this might also be a termcap variable, see #610332
13342 echo
13343 echo '====================================================================='
13344 echo '+ +'
13345 echo '+ WARNING: You have set SO in your environment. +'
13346 echo '+ Do you really mean to change the extension for shared libraries? +'
13347 echo '+ Continuing in 10 seconds to let you to ponder. +'
13348 echo '+ +'
13349 echo '====================================================================='
13350 sleep 10
13352 { echo "$as_me:$LINENO: result: $SO" >&5
13353 echo "${ECHO_T}$SO" >&6; }
13356 cat >>confdefs.h <<_ACEOF
13357 #define SHLIB_EXT "$SO"
13358 _ACEOF
13360 # LDSHARED is the ld *command* used to create shared library
13361 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13362 # (Shared libraries in this instance are shared modules to be loaded into
13363 # Python, as opposed to building Python itself as a shared library.)
13364 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13365 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13366 if test -z "$LDSHARED"
13367 then
13368 case $ac_sys_system/$ac_sys_release in
13369 AIX*)
13370 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13371 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13373 IRIX/5*) LDSHARED="ld -shared";;
13374 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13375 SunOS/5*)
13376 if test "$GCC" = "yes"
13377 then LDSHARED='$(CC) -shared'
13378 else LDSHARED='$(CC) -G';
13379 fi ;;
13380 hp*|HP*)
13381 if test "$GCC" = "yes"
13382 then LDSHARED='$(CC) -shared'
13383 else LDSHARED='ld -b';
13384 fi ;;
13385 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13386 Darwin/1.3*)
13387 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13388 if test "$enable_framework" ; then
13389 # Link against the framework. All externals should be defined.
13390 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13391 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13392 else
13393 # No framework. Ignore undefined symbols, assuming they come from Python
13394 LDSHARED="$LDSHARED -undefined suppress"
13395 fi ;;
13396 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13397 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13398 if test "$enable_framework" ; then
13399 # Link against the framework. All externals should be defined.
13400 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13401 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13402 else
13403 # No framework, use the Python app as bundle-loader
13404 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13405 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13406 fi ;;
13407 Darwin/*)
13408 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13409 # This allows an extension to be used in any Python
13411 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13412 then
13413 if test "${enable_universalsdk}"; then
13414 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13416 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13417 BLDSHARED="$LDSHARED"
13418 else
13419 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13420 if test "$enable_framework" ; then
13421 # Link against the framework. All externals should be defined.
13422 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13423 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13424 else
13425 # No framework, use the Python app as bundle-loader
13426 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13427 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13431 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13432 BSD/OS*/4*) LDSHARED="gcc -shared";;
13433 FreeBSD*)
13434 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13435 then
13436 LDSHARED="$CC -shared ${LDFLAGS}"
13437 else
13438 LDSHARED="ld -Bshareable ${LDFLAGS}"
13439 fi;;
13440 OpenBSD*)
13441 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13442 then
13443 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13444 else
13445 case `uname -r` in
13446 [01].* | 2.[0-7] | 2.[0-7].*)
13447 LDSHARED="ld -Bshareable ${LDFLAGS}"
13450 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13452 esac
13453 fi;;
13454 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13455 OpenUNIX*|UnixWare*)
13456 if test "$GCC" = "yes"
13457 then LDSHARED='$(CC) -shared'
13458 else LDSHARED='$(CC) -G'
13459 fi;;
13460 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13461 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13462 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13463 atheos*) LDSHARED="gcc -shared";;
13464 *) LDSHARED="ld";;
13465 esac
13467 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13468 echo "${ECHO_T}$LDSHARED" >&6; }
13469 BLDSHARED=${BLDSHARED-$LDSHARED}
13470 # CCSHARED are the C *flags* used to create objects to go into a shared
13471 # library (module) -- this is only needed for a few systems
13472 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13473 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13474 if test -z "$CCSHARED"
13475 then
13476 case $ac_sys_system/$ac_sys_release in
13477 SunOS*) if test "$GCC" = yes;
13478 then CCSHARED="-fPIC";
13479 elif test `uname -p` = sparc;
13480 then CCSHARED="-xcode=pic32";
13481 else CCSHARED="-Kpic";
13482 fi;;
13483 hp*|HP*) if test "$GCC" = yes;
13484 then CCSHARED="-fPIC";
13485 else CCSHARED="+z";
13486 fi;;
13487 Linux*|GNU*) CCSHARED="-fPIC";;
13488 BSD/OS*/4*) CCSHARED="-fpic";;
13489 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13490 OpenUNIX*|UnixWare*)
13491 if test "$GCC" = "yes"
13492 then CCSHARED="-fPIC"
13493 else CCSHARED="-KPIC"
13494 fi;;
13495 SCO_SV*)
13496 if test "$GCC" = "yes"
13497 then CCSHARED="-fPIC"
13498 else CCSHARED="-Kpic -belf"
13499 fi;;
13500 Monterey*) CCSHARED="-G";;
13501 IRIX*/6*) case $CC in
13502 *gcc*) CCSHARED="-shared";;
13503 *) CCSHARED="";;
13504 esac;;
13505 atheos*) CCSHARED="-fPIC";;
13506 esac
13508 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13509 echo "${ECHO_T}$CCSHARED" >&6; }
13510 # LINKFORSHARED are the flags passed to the $(CC) command that links
13511 # the python executable -- this is only needed for a few systems
13512 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13513 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13514 if test -z "$LINKFORSHARED"
13515 then
13516 case $ac_sys_system/$ac_sys_release in
13517 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13518 hp*|HP*)
13519 LINKFORSHARED="-Wl,-E -Wl,+s";;
13520 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13521 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13522 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13523 # -u libsys_s pulls in all symbols in libsys
13524 Darwin/*)
13525 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13526 if test "$enable_framework"
13527 then
13528 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13530 LINKFORSHARED="$LINKFORSHARED";;
13531 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13532 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13533 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13534 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13535 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13536 then
13537 LINKFORSHARED="-Wl,--export-dynamic"
13538 fi;;
13539 SunOS/5*) case $CC in
13540 *gcc*)
13541 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13542 then
13543 LINKFORSHARED="-Xlinker --export-dynamic"
13544 fi;;
13545 esac;;
13546 CYGWIN*)
13547 if test $enable_shared = "no"
13548 then
13549 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13550 fi;;
13551 QNX*)
13552 # -Wl,-E causes the symbols to be added to the dynamic
13553 # symbol table so that they can be found when a module
13554 # is loaded. -N 2048K causes the stack size to be set
13555 # to 2048 kilobytes so that the stack doesn't overflow
13556 # when running test_compile.py.
13557 LINKFORSHARED='-Wl,-E -N 2048K';;
13558 esac
13560 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13561 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13565 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13566 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13567 if test ! "$LIBRARY" = "$LDLIBRARY"
13568 then
13569 case $ac_sys_system in
13570 CYGWIN*)
13571 # Cygwin needs CCSHARED when building extension DLLs
13572 # but not when building the interpreter DLL.
13573 CFLAGSFORSHARED='';;
13575 CFLAGSFORSHARED='$(CCSHARED)'
13576 esac
13578 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13579 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13581 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13582 # library (with --enable-shared).
13583 # For platforms on which shared libraries are not allowed to have unresolved
13584 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13585 # if it is not required, since it creates a dependency of the shared library
13586 # to LIBS. This, in turn, means that applications linking the shared libpython
13587 # don't need to link LIBS explicitly. The default should be only changed
13588 # on systems where this approach causes problems.
13590 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13591 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13592 case "$ac_sys_system" in
13594 SHLIBS='$(LIBS)';;
13595 esac
13596 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13597 echo "${ECHO_T}$SHLIBS" >&6; }
13600 # checks for libraries
13602 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13603 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13604 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 else
13607 ac_check_lib_save_LIBS=$LIBS
13608 LIBS="-ldl $LIBS"
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h. */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char dlopen ();
13624 main ()
13626 return dlopen ();
13628 return 0;
13630 _ACEOF
13631 rm -f conftest.$ac_objext conftest$ac_exeext
13632 if { (ac_try="$ac_link"
13633 case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13636 esac
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_link") 2>conftest.er1
13639 ac_status=$?
13640 grep -v '^ *+' conftest.er1 >conftest.err
13641 rm -f conftest.er1
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && {
13645 test -z "$ac_c_werror_flag" ||
13646 test ! -s conftest.err
13647 } && test -s conftest$ac_exeext &&
13648 $as_test_x conftest$ac_exeext; then
13649 ac_cv_lib_dl_dlopen=yes
13650 else
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 ac_cv_lib_dl_dlopen=no
13657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13658 conftest$ac_exeext conftest.$ac_ext
13659 LIBS=$ac_check_lib_save_LIBS
13661 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13662 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13663 if test $ac_cv_lib_dl_dlopen = yes; then
13664 cat >>confdefs.h <<_ACEOF
13665 #define HAVE_LIBDL 1
13666 _ACEOF
13668 LIBS="-ldl $LIBS"
13671 # Dynamic linking for SunOS/Solaris and SYSV
13673 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13674 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13675 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678 ac_check_lib_save_LIBS=$LIBS
13679 LIBS="-ldld $LIBS"
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h. */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13687 /* Override any GCC internal prototype to avoid an error.
13688 Use char because int might match the return type of a GCC
13689 builtin and then its argument prototype would still apply. */
13690 #ifdef __cplusplus
13691 extern "C"
13692 #endif
13693 char shl_load ();
13695 main ()
13697 return shl_load ();
13699 return 0;
13701 _ACEOF
13702 rm -f conftest.$ac_objext conftest$ac_exeext
13703 if { (ac_try="$ac_link"
13704 case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_link") 2>conftest.er1
13710 ac_status=$?
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest$ac_exeext &&
13719 $as_test_x conftest$ac_exeext; then
13720 ac_cv_lib_dld_shl_load=yes
13721 else
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13725 ac_cv_lib_dld_shl_load=no
13728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13729 conftest$ac_exeext conftest.$ac_ext
13730 LIBS=$ac_check_lib_save_LIBS
13732 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13733 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13734 if test $ac_cv_lib_dld_shl_load = yes; then
13735 cat >>confdefs.h <<_ACEOF
13736 #define HAVE_LIBDLD 1
13737 _ACEOF
13739 LIBS="-ldld $LIBS"
13742 # Dynamic linking for HP-UX
13744 # only check for sem_init if thread support is requested
13745 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13746 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13747 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13748 if test "${ac_cv_search_sem_init+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751 ac_func_search_save_LIBS=$LIBS
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13762 #ifdef __cplusplus
13763 extern "C"
13764 #endif
13765 char sem_init ();
13767 main ()
13769 return sem_init ();
13771 return 0;
13773 _ACEOF
13774 for ac_lib in '' pthread rt posix4; do
13775 if test -z "$ac_lib"; then
13776 ac_res="none required"
13777 else
13778 ac_res=-l$ac_lib
13779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13781 rm -f conftest.$ac_objext conftest$ac_exeext
13782 if { (ac_try="$ac_link"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786 esac
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_link") 2>conftest.er1
13789 ac_status=$?
13790 grep -v '^ *+' conftest.er1 >conftest.err
13791 rm -f conftest.er1
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } && {
13795 test -z "$ac_c_werror_flag" ||
13796 test ! -s conftest.err
13797 } && test -s conftest$ac_exeext &&
13798 $as_test_x conftest$ac_exeext; then
13799 ac_cv_search_sem_init=$ac_res
13800 else
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13808 conftest$ac_exeext
13809 if test "${ac_cv_search_sem_init+set}" = set; then
13810 break
13812 done
13813 if test "${ac_cv_search_sem_init+set}" = set; then
13815 else
13816 ac_cv_search_sem_init=no
13818 rm conftest.$ac_ext
13819 LIBS=$ac_func_search_save_LIBS
13821 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13822 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13823 ac_res=$ac_cv_search_sem_init
13824 if test "$ac_res" != no; then
13825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13828 # 'Real Time' functions on Solaris
13829 # posix4 on Solaris 2.6
13830 # pthread (first!) on Linux
13833 # check if we need libintl for locale functions
13834 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13835 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13836 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839 ac_check_lib_save_LIBS=$LIBS
13840 LIBS="-lintl $LIBS"
13841 cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h. */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13851 #ifdef __cplusplus
13852 extern "C"
13853 #endif
13854 char textdomain ();
13856 main ()
13858 return textdomain ();
13860 return 0;
13862 _ACEOF
13863 rm -f conftest.$ac_objext conftest$ac_exeext
13864 if { (ac_try="$ac_link"
13865 case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13868 esac
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_link") 2>conftest.er1
13871 ac_status=$?
13872 grep -v '^ *+' conftest.er1 >conftest.err
13873 rm -f conftest.er1
13874 cat conftest.err >&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } && {
13877 test -z "$ac_c_werror_flag" ||
13878 test ! -s conftest.err
13879 } && test -s conftest$ac_exeext &&
13880 $as_test_x conftest$ac_exeext; then
13881 ac_cv_lib_intl_textdomain=yes
13882 else
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13886 ac_cv_lib_intl_textdomain=no
13889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13890 conftest$ac_exeext conftest.$ac_ext
13891 LIBS=$ac_check_lib_save_LIBS
13893 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13894 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13895 if test $ac_cv_lib_intl_textdomain = yes; then
13897 cat >>confdefs.h <<\_ACEOF
13898 #define WITH_LIBINTL 1
13899 _ACEOF
13901 LIBS="-lintl $LIBS"
13905 # checks for system dependent C++ extensions support
13906 case "$ac_sys_system" in
13907 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13908 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13909 cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h. */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13915 #include "/usr/lpp/xlC/include/load.h"
13917 main ()
13919 loadAndInit("", 0, "")
13921 return 0;
13923 _ACEOF
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (ac_try="$ac_link"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929 esac
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_link") 2>conftest.er1
13932 ac_status=$?
13933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } && {
13938 test -z "$ac_c_werror_flag" ||
13939 test ! -s conftest.err
13940 } && test -s conftest$ac_exeext &&
13941 $as_test_x conftest$ac_exeext; then
13943 cat >>confdefs.h <<\_ACEOF
13944 #define AIX_GENUINE_CPLUSPLUS 1
13945 _ACEOF
13947 { echo "$as_me:$LINENO: result: yes" >&5
13948 echo "${ECHO_T}yes" >&6; }
13949 else
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 { echo "$as_me:$LINENO: result: no" >&5
13954 echo "${ECHO_T}no" >&6; }
13957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13958 conftest$ac_exeext conftest.$ac_ext;;
13959 *) ;;
13960 esac
13962 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13963 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13964 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13965 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 ac_check_lib_save_LIBS=$LIBS
13969 LIBS="-lnsl $LIBS"
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h. */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13977 /* Override any GCC internal prototype to avoid an error.
13978 Use char because int might match the return type of a GCC
13979 builtin and then its argument prototype would still apply. */
13980 #ifdef __cplusplus
13981 extern "C"
13982 #endif
13983 char t_open ();
13985 main ()
13987 return t_open ();
13989 return 0;
13991 _ACEOF
13992 rm -f conftest.$ac_objext conftest$ac_exeext
13993 if { (ac_try="$ac_link"
13994 case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13997 esac
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_link") 2>conftest.er1
14000 ac_status=$?
14001 grep -v '^ *+' conftest.er1 >conftest.err
14002 rm -f conftest.er1
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } && {
14006 test -z "$ac_c_werror_flag" ||
14007 test ! -s conftest.err
14008 } && test -s conftest$ac_exeext &&
14009 $as_test_x conftest$ac_exeext; then
14010 ac_cv_lib_nsl_t_open=yes
14011 else
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 ac_cv_lib_nsl_t_open=no
14018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14019 conftest$ac_exeext conftest.$ac_ext
14020 LIBS=$ac_check_lib_save_LIBS
14022 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14023 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14024 if test $ac_cv_lib_nsl_t_open = yes; then
14025 LIBS="-lnsl $LIBS"
14027 # SVR4
14028 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14029 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14030 if test "${ac_cv_lib_socket_socket+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 else
14033 ac_check_lib_save_LIBS=$LIBS
14034 LIBS="-lsocket $LIBS $LIBS"
14035 cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h. */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14045 #ifdef __cplusplus
14046 extern "C"
14047 #endif
14048 char socket ();
14050 main ()
14052 return socket ();
14054 return 0;
14056 _ACEOF
14057 rm -f conftest.$ac_objext conftest$ac_exeext
14058 if { (ac_try="$ac_link"
14059 case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14062 esac
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_link") 2>conftest.er1
14065 ac_status=$?
14066 grep -v '^ *+' conftest.er1 >conftest.err
14067 rm -f conftest.er1
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } && {
14071 test -z "$ac_c_werror_flag" ||
14072 test ! -s conftest.err
14073 } && test -s conftest$ac_exeext &&
14074 $as_test_x conftest$ac_exeext; then
14075 ac_cv_lib_socket_socket=yes
14076 else
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080 ac_cv_lib_socket_socket=no
14083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14084 conftest$ac_exeext conftest.$ac_ext
14085 LIBS=$ac_check_lib_save_LIBS
14087 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14088 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14089 if test $ac_cv_lib_socket_socket = yes; then
14090 LIBS="-lsocket $LIBS"
14092 # SVR4 sockets
14094 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14095 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14097 # Check whether --with-libs was given.
14098 if test "${with_libs+set}" = set; then
14099 withval=$with_libs;
14100 { echo "$as_me:$LINENO: result: $withval" >&5
14101 echo "${ECHO_T}$withval" >&6; }
14102 LIBS="$withval $LIBS"
14104 else
14105 { echo "$as_me:$LINENO: result: no" >&5
14106 echo "${ECHO_T}no" >&6; }
14110 # Check for use of the system libffi library
14111 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14112 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14114 # Check whether --with-system_ffi was given.
14115 if test "${with_system_ffi+set}" = set; then
14116 withval=$with_system_ffi;
14120 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14121 echo "${ECHO_T}$with_system_ffi" >&6; }
14123 # Check for --with-dbmliborder
14124 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14125 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14127 # Check whether --with-dbmliborder was given.
14128 if test "${with_dbmliborder+set}" = set; then
14129 withval=$with_dbmliborder;
14130 if test x$with_dbmliborder = xyes
14131 then
14132 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14133 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14134 { (exit 1); exit 1; }; }
14135 else
14136 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14137 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14138 then
14139 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14140 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14141 { (exit 1); exit 1; }; }
14143 done
14147 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14148 echo "${ECHO_T}$with_dbmliborder" >&6; }
14150 # Determine if signalmodule should be used.
14153 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14154 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14156 # Check whether --with-signal-module was given.
14157 if test "${with_signal_module+set}" = set; then
14158 withval=$with_signal_module;
14162 if test -z "$with_signal_module"
14163 then with_signal_module="yes"
14165 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14166 echo "${ECHO_T}$with_signal_module" >&6; }
14168 if test "${with_signal_module}" = "yes"; then
14169 USE_SIGNAL_MODULE=""
14170 SIGNAL_OBJS=""
14171 else
14172 USE_SIGNAL_MODULE="#"
14173 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14176 # This is used to generate Setup.config
14178 USE_THREAD_MODULE=""
14180 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14181 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14184 # Check whether --with-dec-threads was given.
14185 if test "${with_dec_threads+set}" = set; then
14186 withval=$with_dec_threads;
14187 { echo "$as_me:$LINENO: result: $withval" >&5
14188 echo "${ECHO_T}$withval" >&6; }
14189 LDLAST=-threads
14190 if test "${with_thread+set}" != set; then
14191 with_thread="$withval";
14193 else
14194 { echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6; }
14199 # Templates for things AC_DEFINEd more than once.
14200 # For a single AC_DEFINE, no template is needed.
14208 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14209 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14211 # Check whether --with-threads was given.
14212 if test "${with_threads+set}" = set; then
14213 withval=$with_threads;
14217 # --with-thread is deprecated, but check for it anyway
14219 # Check whether --with-thread was given.
14220 if test "${with_thread+set}" = set; then
14221 withval=$with_thread; with_threads=$with_thread
14225 if test -z "$with_threads"
14226 then with_threads="yes"
14228 { echo "$as_me:$LINENO: result: $with_threads" >&5
14229 echo "${ECHO_T}$with_threads" >&6; }
14232 if test "$with_threads" = "no"
14233 then
14234 USE_THREAD_MODULE="#"
14235 elif test "$ac_cv_pthread_is_default" = yes
14236 then
14237 cat >>confdefs.h <<\_ACEOF
14238 #define WITH_THREAD 1
14239 _ACEOF
14241 # Defining _REENTRANT on system with POSIX threads should not hurt.
14242 cat >>confdefs.h <<\_ACEOF
14243 #define _REENTRANT 1
14244 _ACEOF
14246 posix_threads=yes
14247 THREADOBJ="Python/thread.o"
14248 elif test "$ac_cv_kpthread" = "yes"
14249 then
14250 CC="$CC -Kpthread"
14251 if test "$ac_cv_cxx_thread" = "yes"; then
14252 CXX="$CXX -Kpthread"
14254 cat >>confdefs.h <<\_ACEOF
14255 #define WITH_THREAD 1
14256 _ACEOF
14258 posix_threads=yes
14259 THREADOBJ="Python/thread.o"
14260 elif test "$ac_cv_kthread" = "yes"
14261 then
14262 CC="$CC -Kthread"
14263 if test "$ac_cv_cxx_thread" = "yes"; then
14264 CXX="$CXX -Kthread"
14266 cat >>confdefs.h <<\_ACEOF
14267 #define WITH_THREAD 1
14268 _ACEOF
14270 posix_threads=yes
14271 THREADOBJ="Python/thread.o"
14272 elif test "$ac_cv_pthread" = "yes"
14273 then
14274 CC="$CC -pthread"
14275 if test "$ac_cv_cxx_thread" = "yes"; then
14276 CXX="$CXX -pthread"
14278 cat >>confdefs.h <<\_ACEOF
14279 #define WITH_THREAD 1
14280 _ACEOF
14282 posix_threads=yes
14283 THREADOBJ="Python/thread.o"
14284 else
14285 if test ! -z "$with_threads" -a -d "$with_threads"
14286 then LDFLAGS="$LDFLAGS -L$with_threads"
14288 if test ! -z "$withval" -a -d "$withval"
14289 then LDFLAGS="$LDFLAGS -L$withval"
14292 # According to the POSIX spec, a pthreads implementation must
14293 # define _POSIX_THREADS in unistd.h. Some apparently don't
14294 # (e.g. gnu pth with pthread emulation)
14295 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14296 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14297 cat >conftest.$ac_ext <<_ACEOF
14298 /* confdefs.h. */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14304 #include <unistd.h>
14305 #ifdef _POSIX_THREADS
14307 #endif
14309 _ACEOF
14310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14311 $EGREP "yes" >/dev/null 2>&1; then
14312 unistd_defines_pthreads=yes
14313 else
14314 unistd_defines_pthreads=no
14316 rm -f conftest*
14318 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14319 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14321 cat >>confdefs.h <<\_ACEOF
14322 #define _REENTRANT 1
14323 _ACEOF
14325 if test "${ac_cv_header_cthreads_h+set}" = set; then
14326 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14327 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14328 if test "${ac_cv_header_cthreads_h+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14332 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14333 else
14334 # Is the header compilable?
14335 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14336 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 $ac_includes_default
14344 #include <cthreads.h>
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (ac_try="$ac_compile"
14348 case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14351 esac
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_compile") 2>conftest.er1
14354 ac_status=$?
14355 grep -v '^ *+' conftest.er1 >conftest.err
14356 rm -f conftest.er1
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } && {
14360 test -z "$ac_c_werror_flag" ||
14361 test ! -s conftest.err
14362 } && test -s conftest.$ac_objext; then
14363 ac_header_compiler=yes
14364 else
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14368 ac_header_compiler=no
14371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14373 echo "${ECHO_T}$ac_header_compiler" >&6; }
14375 # Is the header present?
14376 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14377 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 #include <cthreads.h>
14385 _ACEOF
14386 if { (ac_try="$ac_cpp conftest.$ac_ext"
14387 case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14390 esac
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14393 ac_status=$?
14394 grep -v '^ *+' conftest.er1 >conftest.err
14395 rm -f conftest.er1
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } >/dev/null && {
14399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14400 test ! -s conftest.err
14401 }; then
14402 ac_header_preproc=yes
14403 else
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_header_preproc=no
14410 rm -f conftest.err conftest.$ac_ext
14411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14412 echo "${ECHO_T}$ac_header_preproc" >&6; }
14414 # So? What about this header?
14415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14416 yes:no: )
14417 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14418 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14420 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14421 ac_header_preproc=yes
14423 no:yes:* )
14424 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14425 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14426 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14427 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14428 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14429 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14430 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14431 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14432 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14433 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14435 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14436 ( cat <<\_ASBOX
14437 ## -------------------------------------- ##
14438 ## Report this to http://bugs.python.org/ ##
14439 ## -------------------------------------- ##
14440 _ASBOX
14441 ) | sed "s/^/$as_me: WARNING: /" >&2
14443 esac
14444 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14445 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14446 if test "${ac_cv_header_cthreads_h+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449 ac_cv_header_cthreads_h=$ac_header_preproc
14451 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14452 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14455 if test $ac_cv_header_cthreads_h = yes; then
14456 cat >>confdefs.h <<\_ACEOF
14457 #define WITH_THREAD 1
14458 _ACEOF
14460 cat >>confdefs.h <<\_ACEOF
14461 #define C_THREADS 1
14462 _ACEOF
14465 cat >>confdefs.h <<\_ACEOF
14466 #define HURD_C_THREADS 1
14467 _ACEOF
14469 LIBS="$LIBS -lthreads"
14470 THREADOBJ="Python/thread.o"
14471 else
14473 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14474 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14475 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14476 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14480 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14481 else
14482 # Is the header compilable?
14483 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14484 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 $ac_includes_default
14492 #include <mach/cthreads.h>
14493 _ACEOF
14494 rm -f conftest.$ac_objext
14495 if { (ac_try="$ac_compile"
14496 case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_compile") 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest.$ac_objext; then
14511 ac_header_compiler=yes
14512 else
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 ac_header_compiler=no
14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14521 echo "${ECHO_T}$ac_header_compiler" >&6; }
14523 # Is the header present?
14524 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14525 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h. */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 #include <mach/cthreads.h>
14533 _ACEOF
14534 if { (ac_try="$ac_cpp conftest.$ac_ext"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } >/dev/null && {
14547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 }; then
14550 ac_header_preproc=yes
14551 else
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 ac_header_preproc=no
14558 rm -f conftest.err conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14560 echo "${ECHO_T}$ac_header_preproc" >&6; }
14562 # So? What about this header?
14563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14564 yes:no: )
14565 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14566 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14568 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14569 ac_header_preproc=yes
14571 no:yes:* )
14572 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14573 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14575 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14577 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14579 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14581 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14583 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14584 ( cat <<\_ASBOX
14585 ## -------------------------------------- ##
14586 ## Report this to http://bugs.python.org/ ##
14587 ## -------------------------------------- ##
14588 _ASBOX
14589 ) | sed "s/^/$as_me: WARNING: /" >&2
14591 esac
14592 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14593 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14594 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 else
14597 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14599 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14600 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14603 if test $ac_cv_header_mach_cthreads_h = yes; then
14604 cat >>confdefs.h <<\_ACEOF
14605 #define WITH_THREAD 1
14606 _ACEOF
14608 cat >>confdefs.h <<\_ACEOF
14609 #define C_THREADS 1
14610 _ACEOF
14613 cat >>confdefs.h <<\_ACEOF
14614 #define MACH_C_THREADS 1
14615 _ACEOF
14617 THREADOBJ="Python/thread.o"
14618 else
14620 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14621 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14623 # Check whether --with-pth was given.
14624 if test "${with_pth+set}" = set; then
14625 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14626 echo "${ECHO_T}$withval" >&6; }
14627 cat >>confdefs.h <<\_ACEOF
14628 #define WITH_THREAD 1
14629 _ACEOF
14632 cat >>confdefs.h <<\_ACEOF
14633 #define HAVE_PTH 1
14634 _ACEOF
14636 LIBS="-lpth $LIBS"
14637 THREADOBJ="Python/thread.o"
14638 else
14639 { echo "$as_me:$LINENO: result: no" >&5
14640 echo "${ECHO_T}no" >&6; }
14642 # Just looking for pthread_create in libpthread is not enough:
14643 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14644 # So we really have to include pthread.h, and then link.
14645 _libs=$LIBS
14646 LIBS="$LIBS -lpthread"
14647 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14648 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14649 cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h. */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 #include <pthread.h>
14657 void * start_routine (void *arg) { exit (0); }
14659 main ()
14662 pthread_create (NULL, NULL, start_routine, NULL)
14664 return 0;
14666 _ACEOF
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (ac_try="$ac_link"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_link") 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest$ac_exeext &&
14684 $as_test_x conftest$ac_exeext; then
14686 { echo "$as_me:$LINENO: result: yes" >&5
14687 echo "${ECHO_T}yes" >&6; }
14688 cat >>confdefs.h <<\_ACEOF
14689 #define WITH_THREAD 1
14690 _ACEOF
14692 posix_threads=yes
14693 THREADOBJ="Python/thread.o"
14694 else
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14699 LIBS=$_libs
14700 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14701 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14702 if test "${ac_cv_func_pthread_detach+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705 cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h. */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14711 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14713 #define pthread_detach innocuous_pthread_detach
14715 /* System header to define __stub macros and hopefully few prototypes,
14716 which can conflict with char pthread_detach (); below.
14717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14718 <limits.h> exists even on freestanding compilers. */
14720 #ifdef __STDC__
14721 # include <limits.h>
14722 #else
14723 # include <assert.h>
14724 #endif
14726 #undef pthread_detach
14728 /* Override any GCC internal prototype to avoid an error.
14729 Use char because int might match the return type of a GCC
14730 builtin and then its argument prototype would still apply. */
14731 #ifdef __cplusplus
14732 extern "C"
14733 #endif
14734 char pthread_detach ();
14735 /* The GNU C library defines this for functions which it implements
14736 to always fail with ENOSYS. Some functions are actually named
14737 something starting with __ and the normal name is an alias. */
14738 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14739 choke me
14740 #endif
14743 main ()
14745 return pthread_detach ();
14747 return 0;
14749 _ACEOF
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (ac_try="$ac_link"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_link") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest$ac_exeext &&
14767 $as_test_x conftest$ac_exeext; then
14768 ac_cv_func_pthread_detach=yes
14769 else
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ac_cv_func_pthread_detach=no
14776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14777 conftest$ac_exeext conftest.$ac_ext
14779 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14780 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14781 if test $ac_cv_func_pthread_detach = yes; then
14782 cat >>confdefs.h <<\_ACEOF
14783 #define WITH_THREAD 1
14784 _ACEOF
14786 posix_threads=yes
14787 THREADOBJ="Python/thread.o"
14788 else
14790 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14791 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14792 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14793 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14797 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14798 else
14799 # Is the header compilable?
14800 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14801 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14802 cat >conftest.$ac_ext <<_ACEOF
14803 /* confdefs.h. */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 $ac_includes_default
14809 #include <atheos/threads.h>
14810 _ACEOF
14811 rm -f conftest.$ac_objext
14812 if { (ac_try="$ac_compile"
14813 case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14816 esac
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_compile") 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } && {
14825 test -z "$ac_c_werror_flag" ||
14826 test ! -s conftest.err
14827 } && test -s conftest.$ac_objext; then
14828 ac_header_compiler=yes
14829 else
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 ac_header_compiler=no
14836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14838 echo "${ECHO_T}$ac_header_compiler" >&6; }
14840 # Is the header present?
14841 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14842 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 #include <atheos/threads.h>
14850 _ACEOF
14851 if { (ac_try="$ac_cpp conftest.$ac_ext"
14852 case "(($ac_try" in
14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14855 esac
14856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } >/dev/null && {
14864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14866 }; then
14867 ac_header_preproc=yes
14868 else
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_header_preproc=no
14875 rm -f conftest.err conftest.$ac_ext
14876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 echo "${ECHO_T}$ac_header_preproc" >&6; }
14879 # So? What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14881 yes:no: )
14882 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14883 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14885 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14886 ac_header_preproc=yes
14888 no:yes:* )
14889 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14890 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14892 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14894 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14896 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14898 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14900 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14901 ( cat <<\_ASBOX
14902 ## -------------------------------------- ##
14903 ## Report this to http://bugs.python.org/ ##
14904 ## -------------------------------------- ##
14905 _ASBOX
14906 ) | sed "s/^/$as_me: WARNING: /" >&2
14908 esac
14909 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14910 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14911 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914 ac_cv_header_atheos_threads_h=$ac_header_preproc
14916 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14917 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14920 if test $ac_cv_header_atheos_threads_h = yes; then
14921 cat >>confdefs.h <<\_ACEOF
14922 #define WITH_THREAD 1
14923 _ACEOF
14926 cat >>confdefs.h <<\_ACEOF
14927 #define ATHEOS_THREADS 1
14928 _ACEOF
14930 THREADOBJ="Python/thread.o"
14931 else
14933 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14934 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14935 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938 ac_check_lib_save_LIBS=$LIBS
14939 LIBS="-lpthreads $LIBS"
14940 cat >conftest.$ac_ext <<_ACEOF
14941 /* confdefs.h. */
14942 _ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14947 /* Override any GCC internal prototype to avoid an error.
14948 Use char because int might match the return type of a GCC
14949 builtin and then its argument prototype would still apply. */
14950 #ifdef __cplusplus
14951 extern "C"
14952 #endif
14953 char pthread_create ();
14955 main ()
14957 return pthread_create ();
14959 return 0;
14961 _ACEOF
14962 rm -f conftest.$ac_objext conftest$ac_exeext
14963 if { (ac_try="$ac_link"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_link") 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest$ac_exeext &&
14979 $as_test_x conftest$ac_exeext; then
14980 ac_cv_lib_pthreads_pthread_create=yes
14981 else
14982 echo "$as_me: failed program was:" >&5
14983 sed 's/^/| /' conftest.$ac_ext >&5
14985 ac_cv_lib_pthreads_pthread_create=no
14988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14989 conftest$ac_exeext conftest.$ac_ext
14990 LIBS=$ac_check_lib_save_LIBS
14992 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14993 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14994 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14995 cat >>confdefs.h <<\_ACEOF
14996 #define WITH_THREAD 1
14997 _ACEOF
14999 posix_threads=yes
15000 LIBS="$LIBS -lpthreads"
15001 THREADOBJ="Python/thread.o"
15002 else
15004 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15005 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15006 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15009 ac_check_lib_save_LIBS=$LIBS
15010 LIBS="-lc_r $LIBS"
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15018 /* Override any GCC internal prototype to avoid an error.
15019 Use char because int might match the return type of a GCC
15020 builtin and then its argument prototype would still apply. */
15021 #ifdef __cplusplus
15022 extern "C"
15023 #endif
15024 char pthread_create ();
15026 main ()
15028 return pthread_create ();
15030 return 0;
15032 _ACEOF
15033 rm -f conftest.$ac_objext conftest$ac_exeext
15034 if { (ac_try="$ac_link"
15035 case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_link") 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } && {
15047 test -z "$ac_c_werror_flag" ||
15048 test ! -s conftest.err
15049 } && test -s conftest$ac_exeext &&
15050 $as_test_x conftest$ac_exeext; then
15051 ac_cv_lib_c_r_pthread_create=yes
15052 else
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15056 ac_cv_lib_c_r_pthread_create=no
15059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15060 conftest$ac_exeext conftest.$ac_ext
15061 LIBS=$ac_check_lib_save_LIBS
15063 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15064 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15065 if test $ac_cv_lib_c_r_pthread_create = yes; then
15066 cat >>confdefs.h <<\_ACEOF
15067 #define WITH_THREAD 1
15068 _ACEOF
15070 posix_threads=yes
15071 LIBS="$LIBS -lc_r"
15072 THREADOBJ="Python/thread.o"
15073 else
15075 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15076 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15077 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080 ac_check_lib_save_LIBS=$LIBS
15081 LIBS="-lpthread $LIBS"
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h. */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15089 /* Override any GCC internal prototype to avoid an error.
15090 Use char because int might match the return type of a GCC
15091 builtin and then its argument prototype would still apply. */
15092 #ifdef __cplusplus
15093 extern "C"
15094 #endif
15095 char __pthread_create_system ();
15097 main ()
15099 return __pthread_create_system ();
15101 return 0;
15103 _ACEOF
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (ac_try="$ac_link"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_link") 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest$ac_exeext &&
15121 $as_test_x conftest$ac_exeext; then
15122 ac_cv_lib_pthread___pthread_create_system=yes
15123 else
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ac_cv_lib_pthread___pthread_create_system=no
15130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15131 conftest$ac_exeext conftest.$ac_ext
15132 LIBS=$ac_check_lib_save_LIBS
15134 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15135 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15136 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15137 cat >>confdefs.h <<\_ACEOF
15138 #define WITH_THREAD 1
15139 _ACEOF
15141 posix_threads=yes
15142 LIBS="$LIBS -lpthread"
15143 THREADOBJ="Python/thread.o"
15144 else
15146 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15147 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15148 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 else
15151 ac_check_lib_save_LIBS=$LIBS
15152 LIBS="-lcma $LIBS"
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h. */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15160 /* Override any GCC internal prototype to avoid an error.
15161 Use char because int might match the return type of a GCC
15162 builtin and then its argument prototype would still apply. */
15163 #ifdef __cplusplus
15164 extern "C"
15165 #endif
15166 char pthread_create ();
15168 main ()
15170 return pthread_create ();
15172 return 0;
15174 _ACEOF
15175 rm -f conftest.$ac_objext conftest$ac_exeext
15176 if { (ac_try="$ac_link"
15177 case "(($ac_try" in
15178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179 *) ac_try_echo=$ac_try;;
15180 esac
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182 (eval "$ac_link") 2>conftest.er1
15183 ac_status=$?
15184 grep -v '^ *+' conftest.er1 >conftest.err
15185 rm -f conftest.er1
15186 cat conftest.err >&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } && {
15189 test -z "$ac_c_werror_flag" ||
15190 test ! -s conftest.err
15191 } && test -s conftest$ac_exeext &&
15192 $as_test_x conftest$ac_exeext; then
15193 ac_cv_lib_cma_pthread_create=yes
15194 else
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 ac_cv_lib_cma_pthread_create=no
15201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15202 conftest$ac_exeext conftest.$ac_ext
15203 LIBS=$ac_check_lib_save_LIBS
15205 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15206 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15207 if test $ac_cv_lib_cma_pthread_create = yes; then
15208 cat >>confdefs.h <<\_ACEOF
15209 #define WITH_THREAD 1
15210 _ACEOF
15212 posix_threads=yes
15213 LIBS="$LIBS -lcma"
15214 THREADOBJ="Python/thread.o"
15215 else
15217 USE_THREAD_MODULE="#"
15234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15235 conftest$ac_exeext conftest.$ac_ext
15245 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15246 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15247 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250 ac_check_lib_save_LIBS=$LIBS
15251 LIBS="-lmpc $LIBS"
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h. */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15259 /* Override any GCC internal prototype to avoid an error.
15260 Use char because int might match the return type of a GCC
15261 builtin and then its argument prototype would still apply. */
15262 #ifdef __cplusplus
15263 extern "C"
15264 #endif
15265 char usconfig ();
15267 main ()
15269 return usconfig ();
15271 return 0;
15273 _ACEOF
15274 rm -f conftest.$ac_objext conftest$ac_exeext
15275 if { (ac_try="$ac_link"
15276 case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15279 esac
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_link") 2>conftest.er1
15282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } && {
15288 test -z "$ac_c_werror_flag" ||
15289 test ! -s conftest.err
15290 } && test -s conftest$ac_exeext &&
15291 $as_test_x conftest$ac_exeext; then
15292 ac_cv_lib_mpc_usconfig=yes
15293 else
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15297 ac_cv_lib_mpc_usconfig=no
15300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15304 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15305 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15306 if test $ac_cv_lib_mpc_usconfig = yes; then
15307 cat >>confdefs.h <<\_ACEOF
15308 #define WITH_THREAD 1
15309 _ACEOF
15311 LIBS="$LIBS -lmpc"
15312 THREADOBJ="Python/thread.o"
15313 USE_THREAD_MODULE=""
15317 if test "$posix_threads" != "yes"; then
15318 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15319 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15320 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15321 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 else
15323 ac_check_lib_save_LIBS=$LIBS
15324 LIBS="-lthread $LIBS"
15325 cat >conftest.$ac_ext <<_ACEOF
15326 /* confdefs.h. */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15332 /* Override any GCC internal prototype to avoid an error.
15333 Use char because int might match the return type of a GCC
15334 builtin and then its argument prototype would still apply. */
15335 #ifdef __cplusplus
15336 extern "C"
15337 #endif
15338 char thr_create ();
15340 main ()
15342 return thr_create ();
15344 return 0;
15346 _ACEOF
15347 rm -f conftest.$ac_objext conftest$ac_exeext
15348 if { (ac_try="$ac_link"
15349 case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352 esac
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_link") 2>conftest.er1
15355 ac_status=$?
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } && {
15361 test -z "$ac_c_werror_flag" ||
15362 test ! -s conftest.err
15363 } && test -s conftest$ac_exeext &&
15364 $as_test_x conftest$ac_exeext; then
15365 ac_cv_lib_thread_thr_create=yes
15366 else
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_cv_lib_thread_thr_create=no
15373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15374 conftest$ac_exeext conftest.$ac_ext
15375 LIBS=$ac_check_lib_save_LIBS
15377 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15378 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15379 if test $ac_cv_lib_thread_thr_create = yes; then
15380 cat >>confdefs.h <<\_ACEOF
15381 #define WITH_THREAD 1
15382 _ACEOF
15384 LIBS="$LIBS -lthread"
15385 THREADOBJ="Python/thread.o"
15386 USE_THREAD_MODULE=""
15391 if test "$USE_THREAD_MODULE" != "#"
15392 then
15393 # If the above checks didn't disable threads, (at least) OSF1
15394 # needs this '-threads' argument during linking.
15395 case $ac_sys_system in
15396 OSF1) LDLAST=-threads;;
15397 esac
15401 if test "$posix_threads" = "yes"; then
15402 if test "$unistd_defines_pthreads" = "no"; then
15404 cat >>confdefs.h <<\_ACEOF
15405 #define _POSIX_THREADS 1
15406 _ACEOF
15410 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15411 case $ac_sys_system/$ac_sys_release in
15412 SunOS/5.6)
15413 cat >>confdefs.h <<\_ACEOF
15414 #define HAVE_PTHREAD_DESTRUCTOR 1
15415 _ACEOF
15418 SunOS/5.8)
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15421 _ACEOF
15424 AIX/5)
15425 cat >>confdefs.h <<\_ACEOF
15426 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15427 _ACEOF
15430 esac
15432 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15433 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15434 if test "${ac_cv_pthread_system_supported+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437 if test "$cross_compiling" = yes; then
15438 ac_cv_pthread_system_supported=no
15439 else
15440 cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h. */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446 #include <pthread.h>
15447 void *foo(void *parm) {
15448 return NULL;
15450 main() {
15451 pthread_attr_t attr;
15452 pthread_t id;
15453 if (pthread_attr_init(&attr)) exit(-1);
15454 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15455 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15456 exit(0);
15458 _ACEOF
15459 rm -f conftest$ac_exeext
15460 if { (ac_try="$ac_link"
15461 case "(($ac_try" in
15462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463 *) ac_try_echo=$ac_try;;
15464 esac
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466 (eval "$ac_link") 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15470 { (case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473 esac
15474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475 (eval "$ac_try") 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 ac_cv_pthread_system_supported=yes
15480 else
15481 echo "$as_me: program exited with status $ac_status" >&5
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ( exit $ac_status )
15486 ac_cv_pthread_system_supported=no
15488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15495 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15496 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15497 if test "$ac_cv_pthread_system_supported" = "yes"; then
15499 cat >>confdefs.h <<\_ACEOF
15500 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15501 _ACEOF
15505 for ac_func in pthread_sigmask
15507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h. */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15521 #define $ac_func innocuous_$ac_func
15523 /* System header to define __stub macros and hopefully few prototypes,
15524 which can conflict with char $ac_func (); below.
15525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15526 <limits.h> exists even on freestanding compilers. */
15528 #ifdef __STDC__
15529 # include <limits.h>
15530 #else
15531 # include <assert.h>
15532 #endif
15534 #undef $ac_func
15536 /* Override any GCC internal prototype to avoid an error.
15537 Use char because int might match the return type of a GCC
15538 builtin and then its argument prototype would still apply. */
15539 #ifdef __cplusplus
15540 extern "C"
15541 #endif
15542 char $ac_func ();
15543 /* The GNU C library defines this for functions which it implements
15544 to always fail with ENOSYS. Some functions are actually named
15545 something starting with __ and the normal name is an alias. */
15546 #if defined __stub_$ac_func || defined __stub___$ac_func
15547 choke me
15548 #endif
15551 main ()
15553 return $ac_func ();
15555 return 0;
15557 _ACEOF
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (ac_try="$ac_link"
15560 case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15563 esac
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_link") 2>conftest.er1
15566 ac_status=$?
15567 grep -v '^ *+' conftest.er1 >conftest.err
15568 rm -f conftest.er1
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } && {
15572 test -z "$ac_c_werror_flag" ||
15573 test ! -s conftest.err
15574 } && test -s conftest$ac_exeext &&
15575 $as_test_x conftest$ac_exeext; then
15576 eval "$as_ac_var=yes"
15577 else
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15581 eval "$as_ac_var=no"
15584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585 conftest$ac_exeext conftest.$ac_ext
15587 ac_res=`eval echo '${'$as_ac_var'}'`
15588 { echo "$as_me:$LINENO: result: $ac_res" >&5
15589 echo "${ECHO_T}$ac_res" >&6; }
15590 if test `eval echo '${'$as_ac_var'}'` = yes; then
15591 cat >>confdefs.h <<_ACEOF
15592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15593 _ACEOF
15594 case $ac_sys_system in
15595 CYGWIN*)
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15599 _ACEOF
15602 esac
15604 done
15609 # Check for enable-ipv6
15612 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15613 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15614 # Check whether --enable-ipv6 was given.
15615 if test "${enable_ipv6+set}" = set; then
15616 enableval=$enable_ipv6; case "$enableval" in
15618 { echo "$as_me:$LINENO: result: no" >&5
15619 echo "${ECHO_T}no" >&6; }
15620 ipv6=no
15622 *) { echo "$as_me:$LINENO: result: yes" >&5
15623 echo "${ECHO_T}yes" >&6; }
15624 cat >>confdefs.h <<\_ACEOF
15625 #define ENABLE_IPV6 1
15626 _ACEOF
15628 ipv6=yes
15630 esac
15631 else
15633 if test "$cross_compiling" = yes; then
15634 { echo "$as_me:$LINENO: result: no" >&5
15635 echo "${ECHO_T}no" >&6; }
15636 ipv6=no
15638 else
15639 cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h. */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645 /* AF_INET6 available check */
15646 #include <sys/types.h>
15647 #include <sys/socket.h>
15648 main()
15650 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15651 exit(1);
15652 else
15653 exit(0);
15656 _ACEOF
15657 rm -f conftest$ac_exeext
15658 if { (ac_try="$ac_link"
15659 case "(($ac_try" in
15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15662 esac
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664 (eval "$ac_link") 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15668 { (case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_try") 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 { echo "$as_me:$LINENO: result: yes" >&5
15678 echo "${ECHO_T}yes" >&6; }
15679 ipv6=yes
15680 else
15681 echo "$as_me: program exited with status $ac_status" >&5
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15685 ( exit $ac_status )
15686 { echo "$as_me:$LINENO: result: no" >&5
15687 echo "${ECHO_T}no" >&6; }
15688 ipv6=no
15690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15695 if test "$ipv6" = "yes"; then
15696 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15697 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15698 cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h. */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 #include <sys/types.h>
15705 #include <netinet/in.h>
15707 main ()
15709 struct sockaddr_in6 x;
15710 x.sin6_scope_id;
15712 return 0;
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720 esac
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest.$ac_objext; then
15732 { echo "$as_me:$LINENO: result: yes" >&5
15733 echo "${ECHO_T}yes" >&6; }
15734 ipv6=yes
15735 else
15736 echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 { echo "$as_me:$LINENO: result: no" >&5
15740 echo "${ECHO_T}no" >&6; }
15741 ipv6=no
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747 if test "$ipv6" = "yes"; then
15748 cat >>confdefs.h <<\_ACEOF
15749 #define ENABLE_IPV6 1
15750 _ACEOF
15757 ipv6type=unknown
15758 ipv6lib=none
15759 ipv6trylibc=no
15761 if test "$ipv6" = "yes"; then
15762 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15763 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15764 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15766 case $i in
15767 inria)
15768 cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h. */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15775 #include <netinet/in.h>
15776 #ifdef IPV6_INRIA_VERSION
15778 #endif
15779 _ACEOF
15780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15781 $EGREP "yes" >/dev/null 2>&1; then
15782 ipv6type=$i
15784 rm -f conftest*
15787 kame)
15788 cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h. */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15795 #include <netinet/in.h>
15796 #ifdef __KAME__
15798 #endif
15799 _ACEOF
15800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15801 $EGREP "yes" >/dev/null 2>&1; then
15802 ipv6type=$i;
15803 ipv6lib=inet6
15804 ipv6libdir=/usr/local/v6/lib
15805 ipv6trylibc=yes
15807 rm -f conftest*
15810 linux-glibc)
15811 cat >conftest.$ac_ext <<_ACEOF
15812 /* confdefs.h. */
15813 _ACEOF
15814 cat confdefs.h >>conftest.$ac_ext
15815 cat >>conftest.$ac_ext <<_ACEOF
15816 /* end confdefs.h. */
15818 #include <features.h>
15819 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15821 #endif
15822 _ACEOF
15823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15824 $EGREP "yes" >/dev/null 2>&1; then
15825 ipv6type=$i;
15826 ipv6trylibc=yes
15828 rm -f conftest*
15831 linux-inet6)
15832 if test -d /usr/inet6; then
15833 ipv6type=$i
15834 ipv6lib=inet6
15835 ipv6libdir=/usr/inet6/lib
15836 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15839 solaris)
15840 if test -f /etc/netconfig; then
15841 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15842 ipv6type=$i
15843 ipv6trylibc=yes
15847 toshiba)
15848 cat >conftest.$ac_ext <<_ACEOF
15849 /* confdefs.h. */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15855 #include <sys/param.h>
15856 #ifdef _TOSHIBA_INET6
15858 #endif
15859 _ACEOF
15860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15861 $EGREP "yes" >/dev/null 2>&1; then
15862 ipv6type=$i;
15863 ipv6lib=inet6;
15864 ipv6libdir=/usr/local/v6/lib
15866 rm -f conftest*
15869 v6d)
15870 cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h. */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15877 #include </usr/local/v6/include/sys/v6config.h>
15878 #ifdef __V6D__
15880 #endif
15881 _ACEOF
15882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15883 $EGREP "yes" >/dev/null 2>&1; then
15884 ipv6type=$i;
15885 ipv6lib=v6;
15886 ipv6libdir=/usr/local/v6/lib;
15887 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15889 rm -f conftest*
15892 zeta)
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15900 #include <sys/param.h>
15901 #ifdef _ZETA_MINAMI_INET6
15903 #endif
15904 _ACEOF
15905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15906 $EGREP "yes" >/dev/null 2>&1; then
15907 ipv6type=$i;
15908 ipv6lib=inet6;
15909 ipv6libdir=/usr/local/v6/lib
15911 rm -f conftest*
15914 esac
15915 if test "$ipv6type" != "unknown"; then
15916 break
15918 done
15919 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15920 echo "${ECHO_T}$ipv6type" >&6; }
15923 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15924 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15925 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15926 echo "using lib$ipv6lib"
15927 else
15928 if test $ipv6trylibc = "yes"; then
15929 echo "using libc"
15930 else
15931 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15932 echo "You need to fetch lib$ipv6lib.a from appropriate"
15933 echo 'ipv6 kit and compile beforehand.'
15934 exit 1
15939 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15940 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h. */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 #include <Carbon/Carbon.h>
15949 main ()
15951 FSIORefNum fRef = 0
15953 return 0;
15955 _ACEOF
15956 rm -f conftest.$ac_objext
15957 if { (ac_try="$ac_compile"
15958 case "(($ac_try" in
15959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960 *) ac_try_echo=$ac_try;;
15961 esac
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963 (eval "$ac_compile") 2>conftest.er1
15964 ac_status=$?
15965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } && {
15970 test -z "$ac_c_werror_flag" ||
15971 test ! -s conftest.err
15972 } && test -s conftest.$ac_objext; then
15974 cat >>confdefs.h <<\_ACEOF
15975 #define HAVE_OSX105_SDK 1
15976 _ACEOF
15978 { echo "$as_me:$LINENO: result: yes" >&5
15979 echo "${ECHO_T}yes" >&6; }
15980 else
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 { echo "$as_me:$LINENO: result: no" >&5
15985 echo "${ECHO_T}no" >&6; }
15989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 # Check for --with-doc-strings
15992 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15993 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15995 # Check whether --with-doc-strings was given.
15996 if test "${with_doc_strings+set}" = set; then
15997 withval=$with_doc_strings;
16001 if test -z "$with_doc_strings"
16002 then with_doc_strings="yes"
16004 if test "$with_doc_strings" != "no"
16005 then
16007 cat >>confdefs.h <<\_ACEOF
16008 #define WITH_DOC_STRINGS 1
16009 _ACEOF
16012 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16013 echo "${ECHO_T}$with_doc_strings" >&6; }
16015 # Check for Python-specific malloc support
16016 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16017 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16019 # Check whether --with-tsc was given.
16020 if test "${with_tsc+set}" = set; then
16021 withval=$with_tsc;
16022 if test "$withval" != no
16023 then
16025 cat >>confdefs.h <<\_ACEOF
16026 #define WITH_TSC 1
16027 _ACEOF
16029 { echo "$as_me:$LINENO: result: yes" >&5
16030 echo "${ECHO_T}yes" >&6; }
16031 else { echo "$as_me:$LINENO: result: no" >&5
16032 echo "${ECHO_T}no" >&6; }
16034 else
16035 { echo "$as_me:$LINENO: result: no" >&5
16036 echo "${ECHO_T}no" >&6; }
16040 # Check for Python-specific malloc support
16041 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16042 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16044 # Check whether --with-pymalloc was given.
16045 if test "${with_pymalloc+set}" = set; then
16046 withval=$with_pymalloc;
16050 if test -z "$with_pymalloc"
16051 then with_pymalloc="yes"
16053 if test "$with_pymalloc" != "no"
16054 then
16056 cat >>confdefs.h <<\_ACEOF
16057 #define WITH_PYMALLOC 1
16058 _ACEOF
16061 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16062 echo "${ECHO_T}$with_pymalloc" >&6; }
16064 # Check for --with-wctype-functions
16065 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16066 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16068 # Check whether --with-wctype-functions was given.
16069 if test "${with_wctype_functions+set}" = set; then
16070 withval=$with_wctype_functions;
16071 if test "$withval" != no
16072 then
16074 cat >>confdefs.h <<\_ACEOF
16075 #define WANT_WCTYPE_FUNCTIONS 1
16076 _ACEOF
16078 { echo "$as_me:$LINENO: result: yes" >&5
16079 echo "${ECHO_T}yes" >&6; }
16080 else { echo "$as_me:$LINENO: result: no" >&5
16081 echo "${ECHO_T}no" >&6; }
16083 else
16084 { echo "$as_me:$LINENO: result: no" >&5
16085 echo "${ECHO_T}no" >&6; }
16089 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16091 DLINCLDIR=.
16093 # the dlopen() function means we might want to use dynload_shlib.o. some
16094 # platforms, such as AIX, have dlopen(), but don't want to use it.
16096 for ac_func in dlopen
16098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h. */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16112 #define $ac_func innocuous_$ac_func
16114 /* System header to define __stub macros and hopefully few prototypes,
16115 which can conflict with char $ac_func (); below.
16116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16117 <limits.h> exists even on freestanding compilers. */
16119 #ifdef __STDC__
16120 # include <limits.h>
16121 #else
16122 # include <assert.h>
16123 #endif
16125 #undef $ac_func
16127 /* Override any GCC internal prototype to avoid an error.
16128 Use char because int might match the return type of a GCC
16129 builtin and then its argument prototype would still apply. */
16130 #ifdef __cplusplus
16131 extern "C"
16132 #endif
16133 char $ac_func ();
16134 /* The GNU C library defines this for functions which it implements
16135 to always fail with ENOSYS. Some functions are actually named
16136 something starting with __ and the normal name is an alias. */
16137 #if defined __stub_$ac_func || defined __stub___$ac_func
16138 choke me
16139 #endif
16142 main ()
16144 return $ac_func ();
16146 return 0;
16148 _ACEOF
16149 rm -f conftest.$ac_objext conftest$ac_exeext
16150 if { (ac_try="$ac_link"
16151 case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16154 esac
16155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_link") 2>conftest.er1
16157 ac_status=$?
16158 grep -v '^ *+' conftest.er1 >conftest.err
16159 rm -f conftest.er1
16160 cat conftest.err >&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && {
16163 test -z "$ac_c_werror_flag" ||
16164 test ! -s conftest.err
16165 } && test -s conftest$ac_exeext &&
16166 $as_test_x conftest$ac_exeext; then
16167 eval "$as_ac_var=yes"
16168 else
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 eval "$as_ac_var=no"
16175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16176 conftest$ac_exeext conftest.$ac_ext
16178 ac_res=`eval echo '${'$as_ac_var'}'`
16179 { echo "$as_me:$LINENO: result: $ac_res" >&5
16180 echo "${ECHO_T}$ac_res" >&6; }
16181 if test `eval echo '${'$as_ac_var'}'` = yes; then
16182 cat >>confdefs.h <<_ACEOF
16183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16184 _ACEOF
16187 done
16190 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16191 # loading of modules.
16193 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16194 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16195 if test -z "$DYNLOADFILE"
16196 then
16197 case $ac_sys_system/$ac_sys_release in
16198 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16199 if test "$ac_cv_func_dlopen" = yes
16200 then DYNLOADFILE="dynload_shlib.o"
16201 else DYNLOADFILE="dynload_aix.o"
16204 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16205 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16206 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16207 atheos*) DYNLOADFILE="dynload_atheos.o";;
16209 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16210 # out any dynamic loading
16211 if test "$ac_cv_func_dlopen" = yes
16212 then DYNLOADFILE="dynload_shlib.o"
16213 else DYNLOADFILE="dynload_stub.o"
16216 esac
16218 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16219 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16220 if test "$DYNLOADFILE" != "dynload_stub.o"
16221 then
16223 cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_DYNAMIC_LOADING 1
16225 _ACEOF
16229 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16232 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16233 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16234 if test -z "$MACHDEP_OBJS"
16235 then
16236 MACHDEP_OBJS=$extra_machdep_objs
16237 else
16238 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16240 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16241 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16243 # checks for library functions
16333 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16334 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16335 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16336 getpriority getpwent getspnam getspent getsid getwd \
16337 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16338 mremap nice pathconf pause plock poll pthread_init \
16339 putenv readlink realpath \
16340 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16341 setgid \
16342 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16343 sigaction siginterrupt sigrelse strftime strlcpy \
16344 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16345 truncate uname unsetenv utimes waitpid wait3 wait4 \
16346 wcscoll wcsftime wcsxfrm _getpty
16348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354 cat >conftest.$ac_ext <<_ACEOF
16355 /* confdefs.h. */
16356 _ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16362 #define $ac_func innocuous_$ac_func
16364 /* System header to define __stub macros and hopefully few prototypes,
16365 which can conflict with char $ac_func (); below.
16366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16367 <limits.h> exists even on freestanding compilers. */
16369 #ifdef __STDC__
16370 # include <limits.h>
16371 #else
16372 # include <assert.h>
16373 #endif
16375 #undef $ac_func
16377 /* Override any GCC internal prototype to avoid an error.
16378 Use char because int might match the return type of a GCC
16379 builtin and then its argument prototype would still apply. */
16380 #ifdef __cplusplus
16381 extern "C"
16382 #endif
16383 char $ac_func ();
16384 /* The GNU C library defines this for functions which it implements
16385 to always fail with ENOSYS. Some functions are actually named
16386 something starting with __ and the normal name is an alias. */
16387 #if defined __stub_$ac_func || defined __stub___$ac_func
16388 choke me
16389 #endif
16392 main ()
16394 return $ac_func ();
16396 return 0;
16398 _ACEOF
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (ac_try="$ac_link"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_link") 2>conftest.er1
16407 ac_status=$?
16408 grep -v '^ *+' conftest.er1 >conftest.err
16409 rm -f conftest.er1
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } && {
16413 test -z "$ac_c_werror_flag" ||
16414 test ! -s conftest.err
16415 } && test -s conftest$ac_exeext &&
16416 $as_test_x conftest$ac_exeext; then
16417 eval "$as_ac_var=yes"
16418 else
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 eval "$as_ac_var=no"
16425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16426 conftest$ac_exeext conftest.$ac_ext
16428 ac_res=`eval echo '${'$as_ac_var'}'`
16429 { echo "$as_me:$LINENO: result: $ac_res" >&5
16430 echo "${ECHO_T}$ac_res" >&6; }
16431 if test `eval echo '${'$as_ac_var'}'` = yes; then
16432 cat >>confdefs.h <<_ACEOF
16433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16434 _ACEOF
16437 done
16440 # For some functions, having a definition is not sufficient, since
16441 # we want to take their address.
16442 { echo "$as_me:$LINENO: checking for chroot" >&5
16443 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16444 cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h. */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <unistd.h>
16452 main ()
16454 void *x=chroot
16456 return 0;
16458 _ACEOF
16459 rm -f conftest.$ac_objext
16460 if { (ac_try="$ac_compile"
16461 case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16464 esac
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_compile") 2>conftest.er1
16467 ac_status=$?
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } && {
16473 test -z "$ac_c_werror_flag" ||
16474 test ! -s conftest.err
16475 } && test -s conftest.$ac_objext; then
16477 cat >>confdefs.h <<\_ACEOF
16478 #define HAVE_CHROOT 1
16479 _ACEOF
16481 { echo "$as_me:$LINENO: result: yes" >&5
16482 echo "${ECHO_T}yes" >&6; }
16483 else
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 { echo "$as_me:$LINENO: result: no" >&5
16488 echo "${ECHO_T}no" >&6; }
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493 { echo "$as_me:$LINENO: checking for link" >&5
16494 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16495 cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h. */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16501 #include <unistd.h>
16503 main ()
16505 void *x=link
16507 return 0;
16509 _ACEOF
16510 rm -f conftest.$ac_objext
16511 if { (ac_try="$ac_compile"
16512 case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16515 esac
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_compile") 2>conftest.er1
16518 ac_status=$?
16519 grep -v '^ *+' conftest.er1 >conftest.err
16520 rm -f conftest.er1
16521 cat conftest.err >&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } && {
16524 test -z "$ac_c_werror_flag" ||
16525 test ! -s conftest.err
16526 } && test -s conftest.$ac_objext; then
16528 cat >>confdefs.h <<\_ACEOF
16529 #define HAVE_LINK 1
16530 _ACEOF
16532 { echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6; }
16534 else
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 { echo "$as_me:$LINENO: result: no" >&5
16539 echo "${ECHO_T}no" >&6; }
16543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544 { echo "$as_me:$LINENO: checking for symlink" >&5
16545 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16546 cat >conftest.$ac_ext <<_ACEOF
16547 /* confdefs.h. */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 #include <unistd.h>
16554 main ()
16556 void *x=symlink
16558 return 0;
16560 _ACEOF
16561 rm -f conftest.$ac_objext
16562 if { (ac_try="$ac_compile"
16563 case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_compile") 2>conftest.er1
16569 ac_status=$?
16570 grep -v '^ *+' conftest.er1 >conftest.err
16571 rm -f conftest.er1
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } && {
16575 test -z "$ac_c_werror_flag" ||
16576 test ! -s conftest.err
16577 } && test -s conftest.$ac_objext; then
16579 cat >>confdefs.h <<\_ACEOF
16580 #define HAVE_SYMLINK 1
16581 _ACEOF
16583 { echo "$as_me:$LINENO: result: yes" >&5
16584 echo "${ECHO_T}yes" >&6; }
16585 else
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 { echo "$as_me:$LINENO: result: no" >&5
16590 echo "${ECHO_T}no" >&6; }
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 { echo "$as_me:$LINENO: checking for fchdir" >&5
16596 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16597 cat >conftest.$ac_ext <<_ACEOF
16598 /* confdefs.h. */
16599 _ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16603 #include <unistd.h>
16605 main ()
16607 void *x=fchdir
16609 return 0;
16611 _ACEOF
16612 rm -f conftest.$ac_objext
16613 if { (ac_try="$ac_compile"
16614 case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16617 esac
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_compile") 2>conftest.er1
16620 ac_status=$?
16621 grep -v '^ *+' conftest.er1 >conftest.err
16622 rm -f conftest.er1
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } && {
16626 test -z "$ac_c_werror_flag" ||
16627 test ! -s conftest.err
16628 } && test -s conftest.$ac_objext; then
16630 cat >>confdefs.h <<\_ACEOF
16631 #define HAVE_FCHDIR 1
16632 _ACEOF
16634 { echo "$as_me:$LINENO: result: yes" >&5
16635 echo "${ECHO_T}yes" >&6; }
16636 else
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16640 { echo "$as_me:$LINENO: result: no" >&5
16641 echo "${ECHO_T}no" >&6; }
16645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16646 { echo "$as_me:$LINENO: checking for fsync" >&5
16647 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16648 cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h. */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16654 #include <unistd.h>
16656 main ()
16658 void *x=fsync
16660 return 0;
16662 _ACEOF
16663 rm -f conftest.$ac_objext
16664 if { (ac_try="$ac_compile"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_compile") 2>conftest.er1
16671 ac_status=$?
16672 grep -v '^ *+' conftest.er1 >conftest.err
16673 rm -f conftest.er1
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } && {
16677 test -z "$ac_c_werror_flag" ||
16678 test ! -s conftest.err
16679 } && test -s conftest.$ac_objext; then
16681 cat >>confdefs.h <<\_ACEOF
16682 #define HAVE_FSYNC 1
16683 _ACEOF
16685 { echo "$as_me:$LINENO: result: yes" >&5
16686 echo "${ECHO_T}yes" >&6; }
16687 else
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 { echo "$as_me:$LINENO: result: no" >&5
16692 echo "${ECHO_T}no" >&6; }
16696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16697 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16698 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 #include <unistd.h>
16707 main ()
16709 void *x=fdatasync
16711 return 0;
16713 _ACEOF
16714 rm -f conftest.$ac_objext
16715 if { (ac_try="$ac_compile"
16716 case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16719 esac
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_compile") 2>conftest.er1
16722 ac_status=$?
16723 grep -v '^ *+' conftest.er1 >conftest.err
16724 rm -f conftest.er1
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } && {
16728 test -z "$ac_c_werror_flag" ||
16729 test ! -s conftest.err
16730 } && test -s conftest.$ac_objext; then
16732 cat >>confdefs.h <<\_ACEOF
16733 #define HAVE_FDATASYNC 1
16734 _ACEOF
16736 { echo "$as_me:$LINENO: result: yes" >&5
16737 echo "${ECHO_T}yes" >&6; }
16738 else
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16742 { echo "$as_me:$LINENO: result: no" >&5
16743 echo "${ECHO_T}no" >&6; }
16747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16748 { echo "$as_me:$LINENO: checking for epoll" >&5
16749 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16750 cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h. */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 #include <sys/epoll.h>
16758 main ()
16760 void *x=epoll_create
16762 return 0;
16764 _ACEOF
16765 rm -f conftest.$ac_objext
16766 if { (ac_try="$ac_compile"
16767 case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_compile") 2>conftest.er1
16773 ac_status=$?
16774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } && {
16779 test -z "$ac_c_werror_flag" ||
16780 test ! -s conftest.err
16781 } && test -s conftest.$ac_objext; then
16783 cat >>confdefs.h <<\_ACEOF
16784 #define HAVE_EPOLL 1
16785 _ACEOF
16787 { echo "$as_me:$LINENO: result: yes" >&5
16788 echo "${ECHO_T}yes" >&6; }
16789 else
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16793 { echo "$as_me:$LINENO: result: no" >&5
16794 echo "${ECHO_T}no" >&6; }
16798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16799 { echo "$as_me:$LINENO: checking for kqueue" >&5
16800 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16801 cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h. */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16808 #include <sys/types.h>
16809 #include <sys/event.h>
16812 main ()
16814 int x=kqueue()
16816 return 0;
16818 _ACEOF
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_compile") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest.$ac_objext; then
16837 cat >>confdefs.h <<\_ACEOF
16838 #define HAVE_KQUEUE 1
16839 _ACEOF
16841 { echo "$as_me:$LINENO: result: yes" >&5
16842 echo "${ECHO_T}yes" >&6; }
16843 else
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16847 { echo "$as_me:$LINENO: result: no" >&5
16848 echo "${ECHO_T}no" >&6; }
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853 # On some systems (eg. FreeBSD 5), we would find a definition of the
16854 # functions ctermid_r, setgroups in the library, but no prototype
16855 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16856 # address to avoid compiler warnings and potential miscompilations
16857 # because of the missing prototypes.
16859 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16860 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16861 cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h. */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16868 #include "confdefs.h"
16869 #include <stdio.h>
16872 main ()
16874 void* p = ctermid_r
16876 return 0;
16878 _ACEOF
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } && {
16893 test -z "$ac_c_werror_flag" ||
16894 test ! -s conftest.err
16895 } && test -s conftest.$ac_objext; then
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_CTERMID_R 1
16899 _ACEOF
16901 { echo "$as_me:$LINENO: result: yes" >&5
16902 echo "${ECHO_T}yes" >&6; }
16903 else
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16907 { echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6; }
16912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16914 { echo "$as_me:$LINENO: checking for flock" >&5
16915 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16916 cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h. */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16923 #include "confdefs.h"
16924 #include <sys/file.h>
16927 main ()
16929 void* p = flock
16931 return 0;
16933 _ACEOF
16934 rm -f conftest.$ac_objext
16935 if { (ac_try="$ac_compile"
16936 case "(($ac_try" in
16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938 *) ac_try_echo=$ac_try;;
16939 esac
16940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941 (eval "$ac_compile") 2>conftest.er1
16942 ac_status=$?
16943 grep -v '^ *+' conftest.er1 >conftest.err
16944 rm -f conftest.er1
16945 cat conftest.err >&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } && {
16948 test -z "$ac_c_werror_flag" ||
16949 test ! -s conftest.err
16950 } && test -s conftest.$ac_objext; then
16952 cat >>confdefs.h <<\_ACEOF
16953 #define HAVE_FLOCK 1
16954 _ACEOF
16956 { echo "$as_me:$LINENO: result: yes" >&5
16957 echo "${ECHO_T}yes" >&6; }
16958 else
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 { echo "$as_me:$LINENO: result: no" >&5
16963 echo "${ECHO_T}no" >&6; }
16967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16970 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16971 cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h. */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16978 #include "confdefs.h"
16979 #include <unistd.h>
16982 main ()
16984 void* p = getpagesize
16986 return 0;
16988 _ACEOF
16989 rm -f conftest.$ac_objext
16990 if { (ac_try="$ac_compile"
16991 case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_compile") 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } && {
17003 test -z "$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17005 } && test -s conftest.$ac_objext; then
17007 cat >>confdefs.h <<\_ACEOF
17008 #define HAVE_GETPAGESIZE 1
17009 _ACEOF
17011 { echo "$as_me:$LINENO: result: yes" >&5
17012 echo "${ECHO_T}yes" >&6; }
17013 else
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17017 { echo "$as_me:$LINENO: result: no" >&5
17018 echo "${ECHO_T}no" >&6; }
17022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024 for ac_prog in true
17026 # Extract the first word of "$ac_prog", so it can be a program name with args.
17027 set dummy $ac_prog; ac_word=$2
17028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17030 if test "${ac_cv_prog_TRUE+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033 if test -n "$TRUE"; then
17034 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17035 else
17036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17037 for as_dir in $PATH
17039 IFS=$as_save_IFS
17040 test -z "$as_dir" && as_dir=.
17041 for ac_exec_ext in '' $ac_executable_extensions; do
17042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17043 ac_cv_prog_TRUE="$ac_prog"
17044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17045 break 2
17047 done
17048 done
17049 IFS=$as_save_IFS
17053 TRUE=$ac_cv_prog_TRUE
17054 if test -n "$TRUE"; then
17055 { echo "$as_me:$LINENO: result: $TRUE" >&5
17056 echo "${ECHO_T}$TRUE" >&6; }
17057 else
17058 { echo "$as_me:$LINENO: result: no" >&5
17059 echo "${ECHO_T}no" >&6; }
17063 test -n "$TRUE" && break
17064 done
17065 test -n "$TRUE" || TRUE="/bin/true"
17068 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17069 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17070 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073 ac_check_lib_save_LIBS=$LIBS
17074 LIBS="-lc $LIBS"
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h. */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17082 /* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
17085 #ifdef __cplusplus
17086 extern "C"
17087 #endif
17088 char inet_aton ();
17090 main ()
17092 return inet_aton ();
17094 return 0;
17096 _ACEOF
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_link") 2>conftest.er1
17105 ac_status=$?
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest$ac_exeext &&
17114 $as_test_x conftest$ac_exeext; then
17115 ac_cv_lib_c_inet_aton=yes
17116 else
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 ac_cv_lib_c_inet_aton=no
17123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17124 conftest$ac_exeext conftest.$ac_ext
17125 LIBS=$ac_check_lib_save_LIBS
17127 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17128 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17129 if test $ac_cv_lib_c_inet_aton = yes; then
17130 $ac_cv_prog_TRUE
17131 else
17133 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17134 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17135 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 else
17138 ac_check_lib_save_LIBS=$LIBS
17139 LIBS="-lresolv $LIBS"
17140 cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h. */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17147 /* Override any GCC internal prototype to avoid an error.
17148 Use char because int might match the return type of a GCC
17149 builtin and then its argument prototype would still apply. */
17150 #ifdef __cplusplus
17151 extern "C"
17152 #endif
17153 char inet_aton ();
17155 main ()
17157 return inet_aton ();
17159 return 0;
17161 _ACEOF
17162 rm -f conftest.$ac_objext conftest$ac_exeext
17163 if { (ac_try="$ac_link"
17164 case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17167 esac
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_link") 2>conftest.er1
17170 ac_status=$?
17171 grep -v '^ *+' conftest.er1 >conftest.err
17172 rm -f conftest.er1
17173 cat conftest.err >&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } && {
17176 test -z "$ac_c_werror_flag" ||
17177 test ! -s conftest.err
17178 } && test -s conftest$ac_exeext &&
17179 $as_test_x conftest$ac_exeext; then
17180 ac_cv_lib_resolv_inet_aton=yes
17181 else
17182 echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17185 ac_cv_lib_resolv_inet_aton=no
17188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17189 conftest$ac_exeext conftest.$ac_ext
17190 LIBS=$ac_check_lib_save_LIBS
17192 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17193 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17194 if test $ac_cv_lib_resolv_inet_aton = yes; then
17195 cat >>confdefs.h <<_ACEOF
17196 #define HAVE_LIBRESOLV 1
17197 _ACEOF
17199 LIBS="-lresolv $LIBS"
17207 # On Tru64, chflags seems to be present, but calling it will
17208 # exit Python
17209 { echo "$as_me:$LINENO: checking for chflags" >&5
17210 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17211 if test "$cross_compiling" = yes; then
17212 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17213 See \`config.log' for more details." >&5
17214 echo "$as_me: error: cannot run test program while cross compiling
17215 See \`config.log' for more details." >&2;}
17216 { (exit 1); exit 1; }; }
17217 else
17218 cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h. */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17225 #include <sys/stat.h>
17226 #include <unistd.h>
17227 int main(int argc, char*argv[])
17229 if(chflags(argv[0], 0) != 0)
17230 return 1;
17231 return 0;
17234 _ACEOF
17235 rm -f conftest$ac_exeext
17236 if { (ac_try="$ac_link"
17237 case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240 esac
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_link") 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17246 { (case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_try") 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17256 cat >>confdefs.h <<\_ACEOF
17257 #define HAVE_CHFLAGS 1
17258 _ACEOF
17260 { echo "$as_me:$LINENO: result: yes" >&5
17261 echo "${ECHO_T}yes" >&6; }
17262 else
17263 echo "$as_me: program exited with status $ac_status" >&5
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ( exit $ac_status )
17268 { echo "$as_me:$LINENO: result: no" >&5
17269 echo "${ECHO_T}no" >&6; }
17272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17277 { echo "$as_me:$LINENO: checking for lchflags" >&5
17278 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17279 if test "$cross_compiling" = yes; then
17280 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17281 See \`config.log' for more details." >&5
17282 echo "$as_me: error: cannot run test program while cross compiling
17283 See \`config.log' for more details." >&2;}
17284 { (exit 1); exit 1; }; }
17285 else
17286 cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h. */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17293 #include <sys/stat.h>
17294 #include <unistd.h>
17295 int main(int argc, char*argv[])
17297 if(lchflags(argv[0], 0) != 0)
17298 return 1;
17299 return 0;
17302 _ACEOF
17303 rm -f conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17314 { (case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17317 esac
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_try") 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; }; then
17324 cat >>confdefs.h <<\_ACEOF
17325 #define HAVE_LCHFLAGS 1
17326 _ACEOF
17328 { echo "$as_me:$LINENO: result: yes" >&5
17329 echo "${ECHO_T}yes" >&6; }
17330 else
17331 echo "$as_me: program exited with status $ac_status" >&5
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ( exit $ac_status )
17336 { echo "$as_me:$LINENO: result: no" >&5
17337 echo "${ECHO_T}no" >&6; }
17340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17345 case $ac_sys_system/$ac_sys_release in
17346 Darwin/*)
17347 _CUR_CFLAGS="${CFLAGS}"
17348 _CUR_LDFLAGS="${LDFLAGS}"
17349 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17350 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17352 esac
17354 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17355 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17356 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359 ac_check_lib_save_LIBS=$LIBS
17360 LIBS="-lz $LIBS"
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h. */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17368 /* Override any GCC internal prototype to avoid an error.
17369 Use char because int might match the return type of a GCC
17370 builtin and then its argument prototype would still apply. */
17371 #ifdef __cplusplus
17372 extern "C"
17373 #endif
17374 char inflateCopy ();
17376 main ()
17378 return inflateCopy ();
17380 return 0;
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_link") 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } && {
17397 test -z "$ac_c_werror_flag" ||
17398 test ! -s conftest.err
17399 } && test -s conftest$ac_exeext &&
17400 $as_test_x conftest$ac_exeext; then
17401 ac_cv_lib_z_inflateCopy=yes
17402 else
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17406 ac_cv_lib_z_inflateCopy=no
17409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17410 conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS
17413 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17414 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17415 if test $ac_cv_lib_z_inflateCopy = yes; then
17417 cat >>confdefs.h <<\_ACEOF
17418 #define HAVE_ZLIB_COPY 1
17419 _ACEOF
17424 case $ac_sys_system/$ac_sys_release in
17425 Darwin/*)
17426 CFLAGS="${_CUR_CFLAGS}"
17427 LDFLAGS="${_CUR_LDFLAGS}"
17429 esac
17431 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17432 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17433 cat >conftest.$ac_ext <<_ACEOF
17434 /* confdefs.h. */
17435 _ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17440 #include "confdefs.h"
17441 #include <netdb.h>
17444 main ()
17446 void* p = hstrerror; hstrerror(0)
17448 return 0;
17450 _ACEOF
17451 rm -f conftest.$ac_objext conftest$ac_exeext
17452 if { (ac_try="$ac_link"
17453 case "(($ac_try" in
17454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455 *) ac_try_echo=$ac_try;;
17456 esac
17457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17458 (eval "$ac_link") 2>conftest.er1
17459 ac_status=$?
17460 grep -v '^ *+' conftest.er1 >conftest.err
17461 rm -f conftest.er1
17462 cat conftest.err >&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } && {
17465 test -z "$ac_c_werror_flag" ||
17466 test ! -s conftest.err
17467 } && test -s conftest$ac_exeext &&
17468 $as_test_x conftest$ac_exeext; then
17470 cat >>confdefs.h <<\_ACEOF
17471 #define HAVE_HSTRERROR 1
17472 _ACEOF
17474 { echo "$as_me:$LINENO: result: yes" >&5
17475 echo "${ECHO_T}yes" >&6; }
17476 else
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 { echo "$as_me:$LINENO: result: no" >&5
17481 echo "${ECHO_T}no" >&6; }
17485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17486 conftest$ac_exeext conftest.$ac_ext
17488 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17489 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17490 cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h. */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17497 #include "confdefs.h"
17498 #include <sys/types.h>
17499 #include <sys/socket.h>
17500 #include <netinet/in.h>
17501 #include <arpa/inet.h>
17504 main ()
17506 void* p = inet_aton;inet_aton(0,0)
17508 return 0;
17510 _ACEOF
17511 rm -f conftest.$ac_objext conftest$ac_exeext
17512 if { (ac_try="$ac_link"
17513 case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_link") 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest$ac_exeext &&
17528 $as_test_x conftest$ac_exeext; then
17530 cat >>confdefs.h <<\_ACEOF
17531 #define HAVE_INET_ATON 1
17532 _ACEOF
17534 { echo "$as_me:$LINENO: result: yes" >&5
17535 echo "${ECHO_T}yes" >&6; }
17536 else
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17540 { echo "$as_me:$LINENO: result: no" >&5
17541 echo "${ECHO_T}no" >&6; }
17545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17546 conftest$ac_exeext conftest.$ac_ext
17548 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17549 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17550 cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h. */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17557 #include "confdefs.h"
17558 #include <sys/types.h>
17559 #include <sys/socket.h>
17560 #include <netinet/in.h>
17561 #include <arpa/inet.h>
17564 main ()
17566 void* p = inet_pton
17568 return 0;
17570 _ACEOF
17571 rm -f conftest.$ac_objext
17572 if { (ac_try="$ac_compile"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17576 esac
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_compile") 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } && {
17585 test -z "$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17587 } && test -s conftest.$ac_objext; then
17589 cat >>confdefs.h <<\_ACEOF
17590 #define HAVE_INET_PTON 1
17591 _ACEOF
17593 { echo "$as_me:$LINENO: result: yes" >&5
17594 echo "${ECHO_T}yes" >&6; }
17595 else
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17599 { echo "$as_me:$LINENO: result: no" >&5
17600 echo "${ECHO_T}no" >&6; }
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17606 # On some systems, setgroups is in unistd.h, on others, in grp.h
17607 { echo "$as_me:$LINENO: checking for setgroups" >&5
17608 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17609 cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h. */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17616 #include "confdefs.h"
17617 #include <unistd.h>
17618 #ifdef HAVE_GRP_H
17619 #include <grp.h>
17620 #endif
17623 main ()
17625 void* p = setgroups
17627 return 0;
17629 _ACEOF
17630 rm -f conftest.$ac_objext
17631 if { (ac_try="$ac_compile"
17632 case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_compile") 2>conftest.er1
17638 ac_status=$?
17639 grep -v '^ *+' conftest.er1 >conftest.err
17640 rm -f conftest.er1
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && {
17644 test -z "$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17646 } && test -s conftest.$ac_objext; then
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_SETGROUPS 1
17650 _ACEOF
17652 { echo "$as_me:$LINENO: result: yes" >&5
17653 echo "${ECHO_T}yes" >&6; }
17654 else
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17658 { echo "$as_me:$LINENO: result: no" >&5
17659 echo "${ECHO_T}no" >&6; }
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17665 # check for openpty and forkpty
17668 for ac_func in openpty
17670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 else
17676 cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h. */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17684 #define $ac_func innocuous_$ac_func
17686 /* System header to define __stub macros and hopefully few prototypes,
17687 which can conflict with char $ac_func (); below.
17688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17689 <limits.h> exists even on freestanding compilers. */
17691 #ifdef __STDC__
17692 # include <limits.h>
17693 #else
17694 # include <assert.h>
17695 #endif
17697 #undef $ac_func
17699 /* Override any GCC internal prototype to avoid an error.
17700 Use char because int might match the return type of a GCC
17701 builtin and then its argument prototype would still apply. */
17702 #ifdef __cplusplus
17703 extern "C"
17704 #endif
17705 char $ac_func ();
17706 /* The GNU C library defines this for functions which it implements
17707 to always fail with ENOSYS. Some functions are actually named
17708 something starting with __ and the normal name is an alias. */
17709 #if defined __stub_$ac_func || defined __stub___$ac_func
17710 choke me
17711 #endif
17714 main ()
17716 return $ac_func ();
17718 return 0;
17720 _ACEOF
17721 rm -f conftest.$ac_objext conftest$ac_exeext
17722 if { (ac_try="$ac_link"
17723 case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17726 esac
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_link") 2>conftest.er1
17729 ac_status=$?
17730 grep -v '^ *+' conftest.er1 >conftest.err
17731 rm -f conftest.er1
17732 cat conftest.err >&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); } && {
17735 test -z "$ac_c_werror_flag" ||
17736 test ! -s conftest.err
17737 } && test -s conftest$ac_exeext &&
17738 $as_test_x conftest$ac_exeext; then
17739 eval "$as_ac_var=yes"
17740 else
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 eval "$as_ac_var=no"
17747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17748 conftest$ac_exeext conftest.$ac_ext
17750 ac_res=`eval echo '${'$as_ac_var'}'`
17751 { echo "$as_me:$LINENO: result: $ac_res" >&5
17752 echo "${ECHO_T}$ac_res" >&6; }
17753 if test `eval echo '${'$as_ac_var'}'` = yes; then
17754 cat >>confdefs.h <<_ACEOF
17755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17756 _ACEOF
17758 else
17759 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17760 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17761 if test "${ac_cv_lib_util_openpty+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764 ac_check_lib_save_LIBS=$LIBS
17765 LIBS="-lutil $LIBS"
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h. */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17773 /* Override any GCC internal prototype to avoid an error.
17774 Use char because int might match the return type of a GCC
17775 builtin and then its argument prototype would still apply. */
17776 #ifdef __cplusplus
17777 extern "C"
17778 #endif
17779 char openpty ();
17781 main ()
17783 return openpty ();
17785 return 0;
17787 _ACEOF
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (ac_try="$ac_link"
17790 case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17793 esac
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_link") 2>conftest.er1
17796 ac_status=$?
17797 grep -v '^ *+' conftest.er1 >conftest.err
17798 rm -f conftest.er1
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } && {
17802 test -z "$ac_c_werror_flag" ||
17803 test ! -s conftest.err
17804 } && test -s conftest$ac_exeext &&
17805 $as_test_x conftest$ac_exeext; then
17806 ac_cv_lib_util_openpty=yes
17807 else
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ac_cv_lib_util_openpty=no
17814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17815 conftest$ac_exeext conftest.$ac_ext
17816 LIBS=$ac_check_lib_save_LIBS
17818 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17819 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17820 if test $ac_cv_lib_util_openpty = yes; then
17821 cat >>confdefs.h <<\_ACEOF
17822 #define HAVE_OPENPTY 1
17823 _ACEOF
17824 LIBS="$LIBS -lutil"
17825 else
17826 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17827 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17828 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831 ac_check_lib_save_LIBS=$LIBS
17832 LIBS="-lbsd $LIBS"
17833 cat >conftest.$ac_ext <<_ACEOF
17834 /* confdefs.h. */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17843 #ifdef __cplusplus
17844 extern "C"
17845 #endif
17846 char openpty ();
17848 main ()
17850 return openpty ();
17852 return 0;
17854 _ACEOF
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (ac_try="$ac_link"
17857 case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17860 esac
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_link") 2>conftest.er1
17863 ac_status=$?
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } && {
17869 test -z "$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 } && test -s conftest$ac_exeext &&
17872 $as_test_x conftest$ac_exeext; then
17873 ac_cv_lib_bsd_openpty=yes
17874 else
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ac_cv_lib_bsd_openpty=no
17881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17882 conftest$ac_exeext conftest.$ac_ext
17883 LIBS=$ac_check_lib_save_LIBS
17885 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17886 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17887 if test $ac_cv_lib_bsd_openpty = yes; then
17888 cat >>confdefs.h <<\_ACEOF
17889 #define HAVE_OPENPTY 1
17890 _ACEOF
17891 LIBS="$LIBS -lbsd"
17899 done
17902 for ac_func in forkpty
17904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h. */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17918 #define $ac_func innocuous_$ac_func
17920 /* System header to define __stub macros and hopefully few prototypes,
17921 which can conflict with char $ac_func (); below.
17922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17923 <limits.h> exists even on freestanding compilers. */
17925 #ifdef __STDC__
17926 # include <limits.h>
17927 #else
17928 # include <assert.h>
17929 #endif
17931 #undef $ac_func
17933 /* Override any GCC internal prototype to avoid an error.
17934 Use char because int might match the return type of a GCC
17935 builtin and then its argument prototype would still apply. */
17936 #ifdef __cplusplus
17937 extern "C"
17938 #endif
17939 char $ac_func ();
17940 /* The GNU C library defines this for functions which it implements
17941 to always fail with ENOSYS. Some functions are actually named
17942 something starting with __ and the normal name is an alias. */
17943 #if defined __stub_$ac_func || defined __stub___$ac_func
17944 choke me
17945 #endif
17948 main ()
17950 return $ac_func ();
17952 return 0;
17954 _ACEOF
17955 rm -f conftest.$ac_objext conftest$ac_exeext
17956 if { (ac_try="$ac_link"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_link") 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } && {
17969 test -z "$ac_c_werror_flag" ||
17970 test ! -s conftest.err
17971 } && test -s conftest$ac_exeext &&
17972 $as_test_x conftest$ac_exeext; then
17973 eval "$as_ac_var=yes"
17974 else
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17978 eval "$as_ac_var=no"
17981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17982 conftest$ac_exeext conftest.$ac_ext
17984 ac_res=`eval echo '${'$as_ac_var'}'`
17985 { echo "$as_me:$LINENO: result: $ac_res" >&5
17986 echo "${ECHO_T}$ac_res" >&6; }
17987 if test `eval echo '${'$as_ac_var'}'` = yes; then
17988 cat >>confdefs.h <<_ACEOF
17989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17990 _ACEOF
17992 else
17993 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17994 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17995 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17996 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 else
17998 ac_check_lib_save_LIBS=$LIBS
17999 LIBS="-lutil $LIBS"
18000 cat >conftest.$ac_ext <<_ACEOF
18001 /* confdefs.h. */
18002 _ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18007 /* Override any GCC internal prototype to avoid an error.
18008 Use char because int might match the return type of a GCC
18009 builtin and then its argument prototype would still apply. */
18010 #ifdef __cplusplus
18011 extern "C"
18012 #endif
18013 char forkpty ();
18015 main ()
18017 return forkpty ();
18019 return 0;
18021 _ACEOF
18022 rm -f conftest.$ac_objext conftest$ac_exeext
18023 if { (ac_try="$ac_link"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18027 esac
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_link") 2>conftest.er1
18030 ac_status=$?
18031 grep -v '^ *+' conftest.er1 >conftest.err
18032 rm -f conftest.er1
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } && {
18036 test -z "$ac_c_werror_flag" ||
18037 test ! -s conftest.err
18038 } && test -s conftest$ac_exeext &&
18039 $as_test_x conftest$ac_exeext; then
18040 ac_cv_lib_util_forkpty=yes
18041 else
18042 echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18045 ac_cv_lib_util_forkpty=no
18048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18049 conftest$ac_exeext conftest.$ac_ext
18050 LIBS=$ac_check_lib_save_LIBS
18052 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18053 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18054 if test $ac_cv_lib_util_forkpty = yes; then
18055 cat >>confdefs.h <<\_ACEOF
18056 #define HAVE_FORKPTY 1
18057 _ACEOF
18058 LIBS="$LIBS -lutil"
18059 else
18060 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18061 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18062 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 else
18065 ac_check_lib_save_LIBS=$LIBS
18066 LIBS="-lbsd $LIBS"
18067 cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h. */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18074 /* Override any GCC internal prototype to avoid an error.
18075 Use char because int might match the return type of a GCC
18076 builtin and then its argument prototype would still apply. */
18077 #ifdef __cplusplus
18078 extern "C"
18079 #endif
18080 char forkpty ();
18082 main ()
18084 return forkpty ();
18086 return 0;
18088 _ACEOF
18089 rm -f conftest.$ac_objext conftest$ac_exeext
18090 if { (ac_try="$ac_link"
18091 case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_link") 2>conftest.er1
18097 ac_status=$?
18098 grep -v '^ *+' conftest.er1 >conftest.err
18099 rm -f conftest.er1
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } && {
18103 test -z "$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18105 } && test -s conftest$ac_exeext &&
18106 $as_test_x conftest$ac_exeext; then
18107 ac_cv_lib_bsd_forkpty=yes
18108 else
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_cv_lib_bsd_forkpty=no
18115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18116 conftest$ac_exeext conftest.$ac_ext
18117 LIBS=$ac_check_lib_save_LIBS
18119 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18120 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18121 if test $ac_cv_lib_bsd_forkpty = yes; then
18122 cat >>confdefs.h <<\_ACEOF
18123 #define HAVE_FORKPTY 1
18124 _ACEOF
18125 LIBS="$LIBS -lbsd"
18133 done
18136 # Stuff for expat.
18138 for ac_func in memmove
18140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146 cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h. */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18154 #define $ac_func innocuous_$ac_func
18156 /* System header to define __stub macros and hopefully few prototypes,
18157 which can conflict with char $ac_func (); below.
18158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18159 <limits.h> exists even on freestanding compilers. */
18161 #ifdef __STDC__
18162 # include <limits.h>
18163 #else
18164 # include <assert.h>
18165 #endif
18167 #undef $ac_func
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18172 #ifdef __cplusplus
18173 extern "C"
18174 #endif
18175 char $ac_func ();
18176 /* The GNU C library defines this for functions which it implements
18177 to always fail with ENOSYS. Some functions are actually named
18178 something starting with __ and the normal name is an alias. */
18179 #if defined __stub_$ac_func || defined __stub___$ac_func
18180 choke me
18181 #endif
18184 main ()
18186 return $ac_func ();
18188 return 0;
18190 _ACEOF
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_link") 2>conftest.er1
18199 ac_status=$?
18200 grep -v '^ *+' conftest.er1 >conftest.err
18201 rm -f conftest.er1
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && {
18205 test -z "$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 } && test -s conftest$ac_exeext &&
18208 $as_test_x conftest$ac_exeext; then
18209 eval "$as_ac_var=yes"
18210 else
18211 echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 eval "$as_ac_var=no"
18217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18218 conftest$ac_exeext conftest.$ac_ext
18220 ac_res=`eval echo '${'$as_ac_var'}'`
18221 { echo "$as_me:$LINENO: result: $ac_res" >&5
18222 echo "${ECHO_T}$ac_res" >&6; }
18223 if test `eval echo '${'$as_ac_var'}'` = yes; then
18224 cat >>confdefs.h <<_ACEOF
18225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18226 _ACEOF
18229 done
18232 # check for long file support functions
18239 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247 cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h. */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18255 #define $ac_func innocuous_$ac_func
18257 /* System header to define __stub macros and hopefully few prototypes,
18258 which can conflict with char $ac_func (); below.
18259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18260 <limits.h> exists even on freestanding compilers. */
18262 #ifdef __STDC__
18263 # include <limits.h>
18264 #else
18265 # include <assert.h>
18266 #endif
18268 #undef $ac_func
18270 /* Override any GCC internal prototype to avoid an error.
18271 Use char because int might match the return type of a GCC
18272 builtin and then its argument prototype would still apply. */
18273 #ifdef __cplusplus
18274 extern "C"
18275 #endif
18276 char $ac_func ();
18277 /* The GNU C library defines this for functions which it implements
18278 to always fail with ENOSYS. Some functions are actually named
18279 something starting with __ and the normal name is an alias. */
18280 #if defined __stub_$ac_func || defined __stub___$ac_func
18281 choke me
18282 #endif
18285 main ()
18287 return $ac_func ();
18289 return 0;
18291 _ACEOF
18292 rm -f conftest.$ac_objext conftest$ac_exeext
18293 if { (ac_try="$ac_link"
18294 case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297 esac
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_link") 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } && {
18306 test -z "$ac_c_werror_flag" ||
18307 test ! -s conftest.err
18308 } && test -s conftest$ac_exeext &&
18309 $as_test_x conftest$ac_exeext; then
18310 eval "$as_ac_var=yes"
18311 else
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 eval "$as_ac_var=no"
18318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18319 conftest$ac_exeext conftest.$ac_ext
18321 ac_res=`eval echo '${'$as_ac_var'}'`
18322 { echo "$as_me:$LINENO: result: $ac_res" >&5
18323 echo "${ECHO_T}$ac_res" >&6; }
18324 if test `eval echo '${'$as_ac_var'}'` = yes; then
18325 cat >>confdefs.h <<_ACEOF
18326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18327 _ACEOF
18330 done
18336 for ac_func in dup2 getcwd strdup
18338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18342 echo $ECHO_N "(cached) $ECHO_C" >&6
18343 else
18344 cat >conftest.$ac_ext <<_ACEOF
18345 /* confdefs.h. */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18352 #define $ac_func innocuous_$ac_func
18354 /* System header to define __stub macros and hopefully few prototypes,
18355 which can conflict with char $ac_func (); below.
18356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18357 <limits.h> exists even on freestanding compilers. */
18359 #ifdef __STDC__
18360 # include <limits.h>
18361 #else
18362 # include <assert.h>
18363 #endif
18365 #undef $ac_func
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18370 #ifdef __cplusplus
18371 extern "C"
18372 #endif
18373 char $ac_func ();
18374 /* The GNU C library defines this for functions which it implements
18375 to always fail with ENOSYS. Some functions are actually named
18376 something starting with __ and the normal name is an alias. */
18377 #if defined __stub_$ac_func || defined __stub___$ac_func
18378 choke me
18379 #endif
18382 main ()
18384 return $ac_func ();
18386 return 0;
18388 _ACEOF
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (ac_try="$ac_link"
18391 case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18394 esac
18395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_link") 2>conftest.er1
18397 ac_status=$?
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } && {
18403 test -z "$ac_c_werror_flag" ||
18404 test ! -s conftest.err
18405 } && test -s conftest$ac_exeext &&
18406 $as_test_x conftest$ac_exeext; then
18407 eval "$as_ac_var=yes"
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 eval "$as_ac_var=no"
18415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18416 conftest$ac_exeext conftest.$ac_ext
18418 ac_res=`eval echo '${'$as_ac_var'}'`
18419 { echo "$as_me:$LINENO: result: $ac_res" >&5
18420 echo "${ECHO_T}$ac_res" >&6; }
18421 if test `eval echo '${'$as_ac_var'}'` = yes; then
18422 cat >>confdefs.h <<_ACEOF
18423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18424 _ACEOF
18426 else
18427 case " $LIBOBJS " in
18428 *" $ac_func.$ac_objext "* ) ;;
18429 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18431 esac
18434 done
18438 for ac_func in getpgrp
18440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446 cat >conftest.$ac_ext <<_ACEOF
18447 /* confdefs.h. */
18448 _ACEOF
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h. */
18452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18454 #define $ac_func innocuous_$ac_func
18456 /* System header to define __stub macros and hopefully few prototypes,
18457 which can conflict with char $ac_func (); below.
18458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18459 <limits.h> exists even on freestanding compilers. */
18461 #ifdef __STDC__
18462 # include <limits.h>
18463 #else
18464 # include <assert.h>
18465 #endif
18467 #undef $ac_func
18469 /* Override any GCC internal prototype to avoid an error.
18470 Use char because int might match the return type of a GCC
18471 builtin and then its argument prototype would still apply. */
18472 #ifdef __cplusplus
18473 extern "C"
18474 #endif
18475 char $ac_func ();
18476 /* The GNU C library defines this for functions which it implements
18477 to always fail with ENOSYS. Some functions are actually named
18478 something starting with __ and the normal name is an alias. */
18479 #if defined __stub_$ac_func || defined __stub___$ac_func
18480 choke me
18481 #endif
18484 main ()
18486 return $ac_func ();
18488 return 0;
18490 _ACEOF
18491 rm -f conftest.$ac_objext conftest$ac_exeext
18492 if { (ac_try="$ac_link"
18493 case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18496 esac
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_link") 2>conftest.er1
18499 ac_status=$?
18500 grep -v '^ *+' conftest.er1 >conftest.err
18501 rm -f conftest.er1
18502 cat conftest.err >&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } && {
18505 test -z "$ac_c_werror_flag" ||
18506 test ! -s conftest.err
18507 } && test -s conftest$ac_exeext &&
18508 $as_test_x conftest$ac_exeext; then
18509 eval "$as_ac_var=yes"
18510 else
18511 echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18514 eval "$as_ac_var=no"
18517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18518 conftest$ac_exeext conftest.$ac_ext
18520 ac_res=`eval echo '${'$as_ac_var'}'`
18521 { echo "$as_me:$LINENO: result: $ac_res" >&5
18522 echo "${ECHO_T}$ac_res" >&6; }
18523 if test `eval echo '${'$as_ac_var'}'` = yes; then
18524 cat >>confdefs.h <<_ACEOF
18525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18526 _ACEOF
18527 cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h. */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 #include <unistd.h>
18535 main ()
18537 getpgrp(0);
18539 return 0;
18541 _ACEOF
18542 rm -f conftest.$ac_objext
18543 if { (ac_try="$ac_compile"
18544 case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_compile") 2>conftest.er1
18550 ac_status=$?
18551 grep -v '^ *+' conftest.er1 >conftest.err
18552 rm -f conftest.er1
18553 cat conftest.err >&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } && {
18556 test -z "$ac_c_werror_flag" ||
18557 test ! -s conftest.err
18558 } && test -s conftest.$ac_objext; then
18560 cat >>confdefs.h <<\_ACEOF
18561 #define GETPGRP_HAVE_ARG 1
18562 _ACEOF
18565 else
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18575 done
18578 for ac_func in setpgrp
18580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18585 else
18586 cat >conftest.$ac_ext <<_ACEOF
18587 /* confdefs.h. */
18588 _ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18594 #define $ac_func innocuous_$ac_func
18596 /* System header to define __stub macros and hopefully few prototypes,
18597 which can conflict with char $ac_func (); below.
18598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18599 <limits.h> exists even on freestanding compilers. */
18601 #ifdef __STDC__
18602 # include <limits.h>
18603 #else
18604 # include <assert.h>
18605 #endif
18607 #undef $ac_func
18609 /* Override any GCC internal prototype to avoid an error.
18610 Use char because int might match the return type of a GCC
18611 builtin and then its argument prototype would still apply. */
18612 #ifdef __cplusplus
18613 extern "C"
18614 #endif
18615 char $ac_func ();
18616 /* The GNU C library defines this for functions which it implements
18617 to always fail with ENOSYS. Some functions are actually named
18618 something starting with __ and the normal name is an alias. */
18619 #if defined __stub_$ac_func || defined __stub___$ac_func
18620 choke me
18621 #endif
18624 main ()
18626 return $ac_func ();
18628 return 0;
18630 _ACEOF
18631 rm -f conftest.$ac_objext conftest$ac_exeext
18632 if { (ac_try="$ac_link"
18633 case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18636 esac
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_link") 2>conftest.er1
18639 ac_status=$?
18640 grep -v '^ *+' conftest.er1 >conftest.err
18641 rm -f conftest.er1
18642 cat conftest.err >&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } && {
18645 test -z "$ac_c_werror_flag" ||
18646 test ! -s conftest.err
18647 } && test -s conftest$ac_exeext &&
18648 $as_test_x conftest$ac_exeext; then
18649 eval "$as_ac_var=yes"
18650 else
18651 echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18654 eval "$as_ac_var=no"
18657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18658 conftest$ac_exeext conftest.$ac_ext
18660 ac_res=`eval echo '${'$as_ac_var'}'`
18661 { echo "$as_me:$LINENO: result: $ac_res" >&5
18662 echo "${ECHO_T}$ac_res" >&6; }
18663 if test `eval echo '${'$as_ac_var'}'` = yes; then
18664 cat >>confdefs.h <<_ACEOF
18665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18666 _ACEOF
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include <unistd.h>
18675 main ()
18677 setpgrp(0,0);
18679 return 0;
18681 _ACEOF
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_compile") 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } && {
18696 test -z "$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 } && test -s conftest.$ac_objext; then
18700 cat >>confdefs.h <<\_ACEOF
18701 #define SETPGRP_HAVE_ARG 1
18702 _ACEOF
18705 else
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18715 done
18718 for ac_func in gettimeofday
18720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726 cat >conftest.$ac_ext <<_ACEOF
18727 /* confdefs.h. */
18728 _ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18734 #define $ac_func innocuous_$ac_func
18736 /* System header to define __stub macros and hopefully few prototypes,
18737 which can conflict with char $ac_func (); below.
18738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739 <limits.h> exists even on freestanding compilers. */
18741 #ifdef __STDC__
18742 # include <limits.h>
18743 #else
18744 # include <assert.h>
18745 #endif
18747 #undef $ac_func
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18752 #ifdef __cplusplus
18753 extern "C"
18754 #endif
18755 char $ac_func ();
18756 /* The GNU C library defines this for functions which it implements
18757 to always fail with ENOSYS. Some functions are actually named
18758 something starting with __ and the normal name is an alias. */
18759 #if defined __stub_$ac_func || defined __stub___$ac_func
18760 choke me
18761 #endif
18764 main ()
18766 return $ac_func ();
18768 return 0;
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776 esac
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18779 ac_status=$?
18780 grep -v '^ *+' conftest.er1 >conftest.err
18781 rm -f conftest.er1
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && {
18785 test -z "$ac_c_werror_flag" ||
18786 test ! -s conftest.err
18787 } && test -s conftest$ac_exeext &&
18788 $as_test_x conftest$ac_exeext; then
18789 eval "$as_ac_var=yes"
18790 else
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18794 eval "$as_ac_var=no"
18797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18798 conftest$ac_exeext conftest.$ac_ext
18800 ac_res=`eval echo '${'$as_ac_var'}'`
18801 { echo "$as_me:$LINENO: result: $ac_res" >&5
18802 echo "${ECHO_T}$ac_res" >&6; }
18803 if test `eval echo '${'$as_ac_var'}'` = yes; then
18804 cat >>confdefs.h <<_ACEOF
18805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18806 _ACEOF
18807 cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h. */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813 #include <sys/time.h>
18815 main ()
18817 gettimeofday((struct timeval*)0,(struct timezone*)0);
18819 return 0;
18821 _ACEOF
18822 rm -f conftest.$ac_objext
18823 if { (ac_try="$ac_compile"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_compile") 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest.$ac_objext; then
18840 else
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18845 cat >>confdefs.h <<\_ACEOF
18846 #define GETTIMEOFDAY_NO_TZ 1
18847 _ACEOF
18852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855 done
18858 { echo "$as_me:$LINENO: checking for major" >&5
18859 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18860 cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h. */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18867 #if defined(MAJOR_IN_MKDEV)
18868 #include <sys/mkdev.h>
18869 #elif defined(MAJOR_IN_SYSMACROS)
18870 #include <sys/sysmacros.h>
18871 #else
18872 #include <sys/types.h>
18873 #endif
18876 main ()
18879 makedev(major(0),minor(0));
18882 return 0;
18884 _ACEOF
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (ac_try="$ac_link"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18890 esac
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_link") 2>conftest.er1
18893 ac_status=$?
18894 grep -v '^ *+' conftest.er1 >conftest.err
18895 rm -f conftest.er1
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } && {
18899 test -z "$ac_c_werror_flag" ||
18900 test ! -s conftest.err
18901 } && test -s conftest$ac_exeext &&
18902 $as_test_x conftest$ac_exeext; then
18905 cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_DEVICE_MACROS 1
18907 _ACEOF
18909 { echo "$as_me:$LINENO: result: yes" >&5
18910 echo "${ECHO_T}yes" >&6; }
18912 else
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18917 { echo "$as_me:$LINENO: result: no" >&5
18918 echo "${ECHO_T}no" >&6; }
18922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18923 conftest$ac_exeext conftest.$ac_ext
18925 # On OSF/1 V5.1, getaddrinfo is available, but a define
18926 # for [no]getaddrinfo in netdb.h.
18927 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18928 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18936 #include <sys/types.h>
18937 #include <sys/socket.h>
18938 #include <netdb.h>
18939 #include <stdio.h>
18942 main ()
18945 getaddrinfo(NULL, NULL, NULL, NULL);
18948 return 0;
18950 _ACEOF
18951 rm -f conftest.$ac_objext conftest$ac_exeext
18952 if { (ac_try="$ac_link"
18953 case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18956 esac
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_link") 2>conftest.er1
18959 ac_status=$?
18960 grep -v '^ *+' conftest.er1 >conftest.err
18961 rm -f conftest.er1
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } && {
18965 test -z "$ac_c_werror_flag" ||
18966 test ! -s conftest.err
18967 } && test -s conftest$ac_exeext &&
18968 $as_test_x conftest$ac_exeext; then
18970 { echo "$as_me:$LINENO: result: yes" >&5
18971 echo "${ECHO_T}yes" >&6; }
18972 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18973 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18974 if test "$cross_compiling" = yes; then
18975 { echo "$as_me:$LINENO: result: buggy" >&5
18976 echo "${ECHO_T}buggy" >&6; }
18977 buggygetaddrinfo=yes
18978 else
18979 cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h. */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18986 #include <sys/types.h>
18987 #include <netdb.h>
18988 #include <string.h>
18989 #include <sys/socket.h>
18990 #include <netinet/in.h>
18992 main()
18994 int passive, gaierr, inet4 = 0, inet6 = 0;
18995 struct addrinfo hints, *ai, *aitop;
18996 char straddr[INET6_ADDRSTRLEN], strport[16];
18998 for (passive = 0; passive <= 1; passive++) {
18999 memset(&hints, 0, sizeof(hints));
19000 hints.ai_family = AF_UNSPEC;
19001 hints.ai_flags = passive ? AI_PASSIVE : 0;
19002 hints.ai_socktype = SOCK_STREAM;
19003 hints.ai_protocol = IPPROTO_TCP;
19004 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19005 (void)gai_strerror(gaierr);
19006 goto bad;
19008 for (ai = aitop; ai; ai = ai->ai_next) {
19009 if (ai->ai_addr == NULL ||
19010 ai->ai_addrlen == 0 ||
19011 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19012 straddr, sizeof(straddr), strport, sizeof(strport),
19013 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19014 goto bad;
19016 switch (ai->ai_family) {
19017 case AF_INET:
19018 if (strcmp(strport, "54321") != 0) {
19019 goto bad;
19021 if (passive) {
19022 if (strcmp(straddr, "0.0.0.0") != 0) {
19023 goto bad;
19025 } else {
19026 if (strcmp(straddr, "127.0.0.1") != 0) {
19027 goto bad;
19030 inet4++;
19031 break;
19032 case AF_INET6:
19033 if (strcmp(strport, "54321") != 0) {
19034 goto bad;
19036 if (passive) {
19037 if (strcmp(straddr, "::") != 0) {
19038 goto bad;
19040 } else {
19041 if (strcmp(straddr, "::1") != 0) {
19042 goto bad;
19045 inet6++;
19046 break;
19047 case AF_UNSPEC:
19048 goto bad;
19049 break;
19050 default:
19051 /* another family support? */
19052 break;
19057 if (!(inet4 == 0 || inet4 == 2))
19058 goto bad;
19059 if (!(inet6 == 0 || inet6 == 2))
19060 goto bad;
19062 if (aitop)
19063 freeaddrinfo(aitop);
19064 exit(0);
19066 bad:
19067 if (aitop)
19068 freeaddrinfo(aitop);
19069 exit(1);
19072 _ACEOF
19073 rm -f conftest$ac_exeext
19074 if { (ac_try="$ac_link"
19075 case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19078 esac
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_link") 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19084 { (case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_try") 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19093 { echo "$as_me:$LINENO: result: good" >&5
19094 echo "${ECHO_T}good" >&6; }
19095 buggygetaddrinfo=no
19096 else
19097 echo "$as_me: program exited with status $ac_status" >&5
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ( exit $ac_status )
19102 { echo "$as_me:$LINENO: result: buggy" >&5
19103 echo "${ECHO_T}buggy" >&6; }
19104 buggygetaddrinfo=yes
19106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19110 else
19111 echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19115 { echo "$as_me:$LINENO: result: no" >&5
19116 echo "${ECHO_T}no" >&6; }
19117 buggygetaddrinfo=yes
19121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19122 conftest$ac_exeext conftest.$ac_ext
19124 if test "$buggygetaddrinfo" = "yes"; then
19125 if test "$ipv6" = "yes"; then
19126 echo 'Fatal: You must get working getaddrinfo() function.'
19127 echo ' or you can specify "--disable-ipv6"'.
19128 exit 1
19130 else
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE_GETADDRINFO 1
19134 _ACEOF
19138 for ac_func in getnameinfo
19140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 else
19146 cat >conftest.$ac_ext <<_ACEOF
19147 /* confdefs.h. */
19148 _ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19154 #define $ac_func innocuous_$ac_func
19156 /* System header to define __stub macros and hopefully few prototypes,
19157 which can conflict with char $ac_func (); below.
19158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19159 <limits.h> exists even on freestanding compilers. */
19161 #ifdef __STDC__
19162 # include <limits.h>
19163 #else
19164 # include <assert.h>
19165 #endif
19167 #undef $ac_func
19169 /* Override any GCC internal prototype to avoid an error.
19170 Use char because int might match the return type of a GCC
19171 builtin and then its argument prototype would still apply. */
19172 #ifdef __cplusplus
19173 extern "C"
19174 #endif
19175 char $ac_func ();
19176 /* The GNU C library defines this for functions which it implements
19177 to always fail with ENOSYS. Some functions are actually named
19178 something starting with __ and the normal name is an alias. */
19179 #if defined __stub_$ac_func || defined __stub___$ac_func
19180 choke me
19181 #endif
19184 main ()
19186 return $ac_func ();
19188 return 0;
19190 _ACEOF
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (ac_try="$ac_link"
19193 case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19196 esac
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_link") 2>conftest.er1
19199 ac_status=$?
19200 grep -v '^ *+' conftest.er1 >conftest.err
19201 rm -f conftest.er1
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } && {
19205 test -z "$ac_c_werror_flag" ||
19206 test ! -s conftest.err
19207 } && test -s conftest$ac_exeext &&
19208 $as_test_x conftest$ac_exeext; then
19209 eval "$as_ac_var=yes"
19210 else
19211 echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19214 eval "$as_ac_var=no"
19217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19218 conftest$ac_exeext conftest.$ac_ext
19220 ac_res=`eval echo '${'$as_ac_var'}'`
19221 { echo "$as_me:$LINENO: result: $ac_res" >&5
19222 echo "${ECHO_T}$ac_res" >&6; }
19223 if test `eval echo '${'$as_ac_var'}'` = yes; then
19224 cat >>confdefs.h <<_ACEOF
19225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19226 _ACEOF
19229 done
19232 # checks for structures
19233 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19234 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19235 if test "${ac_cv_header_time+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h. */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 #include <sys/types.h>
19245 #include <sys/time.h>
19246 #include <time.h>
19249 main ()
19251 if ((struct tm *) 0)
19252 return 0;
19254 return 0;
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_compile") 2>conftest.er1
19265 ac_status=$?
19266 grep -v '^ *+' conftest.er1 >conftest.err
19267 rm -f conftest.er1
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest.$ac_objext; then
19274 ac_cv_header_time=yes
19275 else
19276 echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19279 ac_cv_header_time=no
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19285 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19286 if test $ac_cv_header_time = yes; then
19288 cat >>confdefs.h <<\_ACEOF
19289 #define TIME_WITH_SYS_TIME 1
19290 _ACEOF
19294 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19295 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19296 if test "${ac_cv_struct_tm+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19298 else
19299 cat >conftest.$ac_ext <<_ACEOF
19300 /* confdefs.h. */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 #include <sys/types.h>
19306 #include <time.h>
19309 main ()
19311 struct tm tm;
19312 int *p = &tm.tm_sec;
19313 return !p;
19315 return 0;
19317 _ACEOF
19318 rm -f conftest.$ac_objext
19319 if { (ac_try="$ac_compile"
19320 case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_compile") 2>conftest.er1
19326 ac_status=$?
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } && {
19332 test -z "$ac_c_werror_flag" ||
19333 test ! -s conftest.err
19334 } && test -s conftest.$ac_objext; then
19335 ac_cv_struct_tm=time.h
19336 else
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_struct_tm=sys/time.h
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19346 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19347 if test $ac_cv_struct_tm = sys/time.h; then
19349 cat >>confdefs.h <<\_ACEOF
19350 #define TM_IN_SYS_TIME 1
19351 _ACEOF
19355 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19356 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19357 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19358 echo $ECHO_N "(cached) $ECHO_C" >&6
19359 else
19360 cat >conftest.$ac_ext <<_ACEOF
19361 /* confdefs.h. */
19362 _ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19366 #include <sys/types.h>
19367 #include <$ac_cv_struct_tm>
19371 main ()
19373 static struct tm ac_aggr;
19374 if (ac_aggr.tm_zone)
19375 return 0;
19377 return 0;
19379 _ACEOF
19380 rm -f conftest.$ac_objext
19381 if { (ac_try="$ac_compile"
19382 case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19385 esac
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_compile") 2>conftest.er1
19388 ac_status=$?
19389 grep -v '^ *+' conftest.er1 >conftest.err
19390 rm -f conftest.er1
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } && {
19394 test -z "$ac_c_werror_flag" ||
19395 test ! -s conftest.err
19396 } && test -s conftest.$ac_objext; then
19397 ac_cv_member_struct_tm_tm_zone=yes
19398 else
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h. */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 #include <sys/types.h>
19409 #include <$ac_cv_struct_tm>
19413 main ()
19415 static struct tm ac_aggr;
19416 if (sizeof ac_aggr.tm_zone)
19417 return 0;
19419 return 0;
19421 _ACEOF
19422 rm -f conftest.$ac_objext
19423 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
19439 ac_cv_member_struct_tm_tm_zone=yes
19440 else
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19444 ac_cv_member_struct_tm_tm_zone=no
19447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19453 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19454 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19456 cat >>confdefs.h <<_ACEOF
19457 #define HAVE_STRUCT_TM_TM_ZONE 1
19458 _ACEOF
19463 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE_TM_ZONE 1
19467 _ACEOF
19469 else
19470 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19471 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19472 if test "${ac_cv_have_decl_tzname+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475 cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h. */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 #include <time.h>
19484 main ()
19486 #ifndef tzname
19487 (void) tzname;
19488 #endif
19491 return 0;
19493 _ACEOF
19494 rm -f conftest.$ac_objext
19495 if { (ac_try="$ac_compile"
19496 case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_compile") 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } && {
19508 test -z "$ac_c_werror_flag" ||
19509 test ! -s conftest.err
19510 } && test -s conftest.$ac_objext; then
19511 ac_cv_have_decl_tzname=yes
19512 else
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ac_cv_have_decl_tzname=no
19519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19522 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19523 if test $ac_cv_have_decl_tzname = yes; then
19525 cat >>confdefs.h <<_ACEOF
19526 #define HAVE_DECL_TZNAME 1
19527 _ACEOF
19530 else
19531 cat >>confdefs.h <<_ACEOF
19532 #define HAVE_DECL_TZNAME 0
19533 _ACEOF
19539 { echo "$as_me:$LINENO: checking for tzname" >&5
19540 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19541 if test "${ac_cv_var_tzname+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544 cat >conftest.$ac_ext <<_ACEOF
19545 /* confdefs.h. */
19546 _ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19550 #include <time.h>
19551 #if !HAVE_DECL_TZNAME
19552 extern char *tzname[];
19553 #endif
19556 main ()
19558 return tzname[0][0];
19560 return 0;
19562 _ACEOF
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (ac_try="$ac_link"
19565 case "(($ac_try" in
19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567 *) ac_try_echo=$ac_try;;
19568 esac
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_link") 2>conftest.er1
19571 ac_status=$?
19572 grep -v '^ *+' conftest.er1 >conftest.err
19573 rm -f conftest.er1
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } && {
19577 test -z "$ac_c_werror_flag" ||
19578 test ! -s conftest.err
19579 } && test -s conftest$ac_exeext &&
19580 $as_test_x conftest$ac_exeext; then
19581 ac_cv_var_tzname=yes
19582 else
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19586 ac_cv_var_tzname=no
19589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19590 conftest$ac_exeext conftest.$ac_ext
19592 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19593 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19594 if test $ac_cv_var_tzname = yes; then
19596 cat >>confdefs.h <<\_ACEOF
19597 #define HAVE_TZNAME 1
19598 _ACEOF
19603 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19604 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19605 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19606 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 else
19608 cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h. */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19614 $ac_includes_default
19616 main ()
19618 static struct stat ac_aggr;
19619 if (ac_aggr.st_rdev)
19620 return 0;
19622 return 0;
19624 _ACEOF
19625 rm -f conftest.$ac_objext
19626 if { (ac_try="$ac_compile"
19627 case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19630 esac
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_compile") 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } && {
19639 test -z "$ac_c_werror_flag" ||
19640 test ! -s conftest.err
19641 } && test -s conftest.$ac_objext; then
19642 ac_cv_member_struct_stat_st_rdev=yes
19643 else
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h. */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 $ac_includes_default
19655 main ()
19657 static struct stat ac_aggr;
19658 if (sizeof ac_aggr.st_rdev)
19659 return 0;
19661 return 0;
19663 _ACEOF
19664 rm -f conftest.$ac_objext
19665 if { (ac_try="$ac_compile"
19666 case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19669 esac
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_compile") 2>conftest.er1
19672 ac_status=$?
19673 grep -v '^ *+' conftest.er1 >conftest.err
19674 rm -f conftest.er1
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } && {
19678 test -z "$ac_c_werror_flag" ||
19679 test ! -s conftest.err
19680 } && test -s conftest.$ac_objext; then
19681 ac_cv_member_struct_stat_st_rdev=yes
19682 else
19683 echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19686 ac_cv_member_struct_stat_st_rdev=no
19689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19694 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19695 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19696 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19698 cat >>confdefs.h <<_ACEOF
19699 #define HAVE_STRUCT_STAT_ST_RDEV 1
19700 _ACEOF
19705 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19706 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19707 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 else
19710 cat >conftest.$ac_ext <<_ACEOF
19711 /* confdefs.h. */
19712 _ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h. */
19716 $ac_includes_default
19718 main ()
19720 static struct stat ac_aggr;
19721 if (ac_aggr.st_blksize)
19722 return 0;
19724 return 0;
19726 _ACEOF
19727 rm -f conftest.$ac_objext
19728 if { (ac_try="$ac_compile"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_compile") 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && {
19741 test -z "$ac_c_werror_flag" ||
19742 test ! -s conftest.err
19743 } && test -s conftest.$ac_objext; then
19744 ac_cv_member_struct_stat_st_blksize=yes
19745 else
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h. */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 $ac_includes_default
19757 main ()
19759 static struct stat ac_aggr;
19760 if (sizeof ac_aggr.st_blksize)
19761 return 0;
19763 return 0;
19765 _ACEOF
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_compile") 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } && {
19780 test -z "$ac_c_werror_flag" ||
19781 test ! -s conftest.err
19782 } && test -s conftest.$ac_objext; then
19783 ac_cv_member_struct_stat_st_blksize=yes
19784 else
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 ac_cv_member_struct_stat_st_blksize=no
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19796 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19797 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19798 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19800 cat >>confdefs.h <<_ACEOF
19801 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19802 _ACEOF
19807 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19808 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19809 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812 cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h. */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 $ac_includes_default
19820 main ()
19822 static struct stat ac_aggr;
19823 if (ac_aggr.st_flags)
19824 return 0;
19826 return 0;
19828 _ACEOF
19829 rm -f conftest.$ac_objext
19830 if { (ac_try="$ac_compile"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19834 esac
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_compile") 2>conftest.er1
19837 ac_status=$?
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } && {
19843 test -z "$ac_c_werror_flag" ||
19844 test ! -s conftest.err
19845 } && test -s conftest.$ac_objext; then
19846 ac_cv_member_struct_stat_st_flags=yes
19847 else
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h. */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 $ac_includes_default
19859 main ()
19861 static struct stat ac_aggr;
19862 if (sizeof ac_aggr.st_flags)
19863 return 0;
19865 return 0;
19867 _ACEOF
19868 rm -f conftest.$ac_objext
19869 if { (ac_try="$ac_compile"
19870 case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_compile") 2>conftest.er1
19876 ac_status=$?
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } && {
19882 test -z "$ac_c_werror_flag" ||
19883 test ! -s conftest.err
19884 } && test -s conftest.$ac_objext; then
19885 ac_cv_member_struct_stat_st_flags=yes
19886 else
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_member_struct_stat_st_flags=no
19893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19899 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19900 if test $ac_cv_member_struct_stat_st_flags = yes; then
19902 cat >>confdefs.h <<_ACEOF
19903 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19904 _ACEOF
19909 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19910 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19911 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 else
19914 cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h. */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 $ac_includes_default
19922 main ()
19924 static struct stat ac_aggr;
19925 if (ac_aggr.st_gen)
19926 return 0;
19928 return 0;
19930 _ACEOF
19931 rm -f conftest.$ac_objext
19932 if { (ac_try="$ac_compile"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_compile") 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest.$ac_objext; then
19948 ac_cv_member_struct_stat_st_gen=yes
19949 else
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19953 cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h. */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19959 $ac_includes_default
19961 main ()
19963 static struct stat ac_aggr;
19964 if (sizeof ac_aggr.st_gen)
19965 return 0;
19967 return 0;
19969 _ACEOF
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_compile") 2>conftest.er1
19978 ac_status=$?
19979 grep -v '^ *+' conftest.er1 >conftest.err
19980 rm -f conftest.er1
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest.$ac_objext; then
19987 ac_cv_member_struct_stat_st_gen=yes
19988 else
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19992 ac_cv_member_struct_stat_st_gen=no
19995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20000 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20001 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20002 if test $ac_cv_member_struct_stat_st_gen = yes; then
20004 cat >>confdefs.h <<_ACEOF
20005 #define HAVE_STRUCT_STAT_ST_GEN 1
20006 _ACEOF
20011 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20012 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20013 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 else
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 $ac_includes_default
20024 main ()
20026 static struct stat ac_aggr;
20027 if (ac_aggr.st_birthtime)
20028 return 0;
20030 return 0;
20032 _ACEOF
20033 rm -f conftest.$ac_objext
20034 if { (ac_try="$ac_compile"
20035 case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20038 esac
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_compile") 2>conftest.er1
20041 ac_status=$?
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } && {
20047 test -z "$ac_c_werror_flag" ||
20048 test ! -s conftest.err
20049 } && test -s conftest.$ac_objext; then
20050 ac_cv_member_struct_stat_st_birthtime=yes
20051 else
20052 echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 $ac_includes_default
20063 main ()
20065 static struct stat ac_aggr;
20066 if (sizeof ac_aggr.st_birthtime)
20067 return 0;
20069 return 0;
20071 _ACEOF
20072 rm -f conftest.$ac_objext
20073 if { (ac_try="$ac_compile"
20074 case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20077 esac
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079 (eval "$ac_compile") 2>conftest.er1
20080 ac_status=$?
20081 grep -v '^ *+' conftest.er1 >conftest.err
20082 rm -f conftest.er1
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } && {
20086 test -z "$ac_c_werror_flag" ||
20087 test ! -s conftest.err
20088 } && test -s conftest.$ac_objext; then
20089 ac_cv_member_struct_stat_st_birthtime=yes
20090 else
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 ac_cv_member_struct_stat_st_birthtime=no
20097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20103 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20104 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20106 cat >>confdefs.h <<_ACEOF
20107 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20108 _ACEOF
20113 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20114 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20115 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 $ac_includes_default
20126 main ()
20128 static struct stat ac_aggr;
20129 if (ac_aggr.st_blocks)
20130 return 0;
20132 return 0;
20134 _ACEOF
20135 rm -f conftest.$ac_objext
20136 if { (ac_try="$ac_compile"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140 esac
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_compile") 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } && {
20149 test -z "$ac_c_werror_flag" ||
20150 test ! -s conftest.err
20151 } && test -s conftest.$ac_objext; then
20152 ac_cv_member_struct_stat_st_blocks=yes
20153 else
20154 echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 $ac_includes_default
20165 main ()
20167 static struct stat ac_aggr;
20168 if (sizeof ac_aggr.st_blocks)
20169 return 0;
20171 return 0;
20173 _ACEOF
20174 rm -f conftest.$ac_objext
20175 if { (ac_try="$ac_compile"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20179 esac
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_compile") 2>conftest.er1
20182 ac_status=$?
20183 grep -v '^ *+' conftest.er1 >conftest.err
20184 rm -f conftest.er1
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } && {
20188 test -z "$ac_c_werror_flag" ||
20189 test ! -s conftest.err
20190 } && test -s conftest.$ac_objext; then
20191 ac_cv_member_struct_stat_st_blocks=yes
20192 else
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 ac_cv_member_struct_stat_st_blocks=no
20199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20205 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20206 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20208 cat >>confdefs.h <<_ACEOF
20209 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20210 _ACEOF
20213 cat >>confdefs.h <<\_ACEOF
20214 #define HAVE_ST_BLOCKS 1
20215 _ACEOF
20217 else
20218 case " $LIBOBJS " in
20219 *" fileblocks.$ac_objext "* ) ;;
20220 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20222 esac
20228 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20229 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20230 if test "${ac_cv_header_time_altzone+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20232 else
20233 cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h. */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20239 #include <time.h>
20241 main ()
20243 return altzone;
20245 return 0;
20247 _ACEOF
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20253 esac
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_compile") 2>conftest.er1
20256 ac_status=$?
20257 grep -v '^ *+' conftest.er1 >conftest.err
20258 rm -f conftest.er1
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } && {
20262 test -z "$ac_c_werror_flag" ||
20263 test ! -s conftest.err
20264 } && test -s conftest.$ac_objext; then
20265 ac_cv_header_time_altzone=yes
20266 else
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_cv_header_time_altzone=no
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20277 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20278 if test $ac_cv_header_time_altzone = yes; then
20280 cat >>confdefs.h <<\_ACEOF
20281 #define HAVE_ALTZONE 1
20282 _ACEOF
20286 was_it_defined=no
20287 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20288 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20289 cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h. */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 #include <sys/types.h>
20297 #include <sys/select.h>
20298 #include <sys/time.h>
20301 main ()
20305 return 0;
20307 _ACEOF
20308 rm -f conftest.$ac_objext
20309 if { (ac_try="$ac_compile"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_compile") 2>conftest.er1
20316 ac_status=$?
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest.$ac_objext; then
20327 cat >>confdefs.h <<\_ACEOF
20328 #define SYS_SELECT_WITH_SYS_TIME 1
20329 _ACEOF
20331 was_it_defined=yes
20333 else
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20341 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20342 echo "${ECHO_T}$was_it_defined" >&6; }
20344 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20345 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20346 if test "${ac_cv_struct_addrinfo+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. */
20356 # include <netdb.h>
20358 main ()
20360 struct addrinfo a
20362 return 0;
20364 _ACEOF
20365 rm -f conftest.$ac_objext
20366 if { (ac_try="$ac_compile"
20367 case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20370 esac
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_compile") 2>conftest.er1
20373 ac_status=$?
20374 grep -v '^ *+' conftest.er1 >conftest.err
20375 rm -f conftest.er1
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && {
20379 test -z "$ac_c_werror_flag" ||
20380 test ! -s conftest.err
20381 } && test -s conftest.$ac_objext; then
20382 ac_cv_struct_addrinfo=yes
20383 else
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 ac_cv_struct_addrinfo=no
20390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20394 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20395 if test $ac_cv_struct_addrinfo = yes; then
20397 cat >>confdefs.h <<\_ACEOF
20398 #define HAVE_ADDRINFO 1
20399 _ACEOF
20403 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20404 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20405 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h. */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20415 # include <sys/types.h>
20416 # include <sys/socket.h>
20418 main ()
20420 struct sockaddr_storage s
20422 return 0;
20424 _ACEOF
20425 rm -f conftest.$ac_objext
20426 if { (ac_try="$ac_compile"
20427 case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_compile") 2>conftest.er1
20433 ac_status=$?
20434 grep -v '^ *+' conftest.er1 >conftest.err
20435 rm -f conftest.er1
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && {
20439 test -z "$ac_c_werror_flag" ||
20440 test ! -s conftest.err
20441 } && test -s conftest.$ac_objext; then
20442 ac_cv_struct_sockaddr_storage=yes
20443 else
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_cv_struct_sockaddr_storage=no
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20454 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20455 if test $ac_cv_struct_sockaddr_storage = yes; then
20457 cat >>confdefs.h <<\_ACEOF
20458 #define HAVE_SOCKADDR_STORAGE 1
20459 _ACEOF
20463 # checks for compiler characteristics
20466 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20467 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20468 if test "${ac_cv_c_char_unsigned+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 $ac_includes_default
20479 main ()
20481 static int test_array [1 - 2 * !(((char) -1) < 0)];
20482 test_array [0] = 0
20485 return 0;
20487 _ACEOF
20488 rm -f conftest.$ac_objext
20489 if { (ac_try="$ac_compile"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_compile") 2>conftest.er1
20496 ac_status=$?
20497 grep -v '^ *+' conftest.er1 >conftest.err
20498 rm -f conftest.er1
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && {
20502 test -z "$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20504 } && test -s conftest.$ac_objext; then
20505 ac_cv_c_char_unsigned=no
20506 else
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20510 ac_cv_c_char_unsigned=yes
20513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20516 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20517 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20518 cat >>confdefs.h <<\_ACEOF
20519 #define __CHAR_UNSIGNED__ 1
20520 _ACEOF
20524 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20525 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20526 if test "${ac_cv_c_const+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529 cat >conftest.$ac_ext <<_ACEOF
20530 /* confdefs.h. */
20531 _ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h. */
20537 main ()
20539 /* FIXME: Include the comments suggested by Paul. */
20540 #ifndef __cplusplus
20541 /* Ultrix mips cc rejects this. */
20542 typedef int charset[2];
20543 const charset cs;
20544 /* SunOS 4.1.1 cc rejects this. */
20545 char const *const *pcpcc;
20546 char **ppc;
20547 /* NEC SVR4.0.2 mips cc rejects this. */
20548 struct point {int x, y;};
20549 static struct point const zero = {0,0};
20550 /* AIX XL C 1.02.0.0 rejects this.
20551 It does not let you subtract one const X* pointer from another in
20552 an arm of an if-expression whose if-part is not a constant
20553 expression */
20554 const char *g = "string";
20555 pcpcc = &g + (g ? g-g : 0);
20556 /* HPUX 7.0 cc rejects these. */
20557 ++pcpcc;
20558 ppc = (char**) pcpcc;
20559 pcpcc = (char const *const *) ppc;
20560 { /* SCO 3.2v4 cc rejects this. */
20561 char *t;
20562 char const *s = 0 ? (char *) 0 : (char const *) 0;
20564 *t++ = 0;
20565 if (s) return 0;
20567 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20568 int x[] = {25, 17};
20569 const int *foo = &x[0];
20570 ++foo;
20572 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20573 typedef const int *iptr;
20574 iptr p = 0;
20575 ++p;
20577 { /* AIX XL C 1.02.0.0 rejects this saying
20578 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20579 struct s { int j; const int *ap[3]; };
20580 struct s *b; b->j = 5;
20582 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20583 const int foo = 10;
20584 if (!foo) return 0;
20586 return !cs[0] && !zero.x;
20587 #endif
20590 return 0;
20592 _ACEOF
20593 rm -f conftest.$ac_objext
20594 if { (ac_try="$ac_compile"
20595 case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20598 esac
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600 (eval "$ac_compile") 2>conftest.er1
20601 ac_status=$?
20602 grep -v '^ *+' conftest.er1 >conftest.err
20603 rm -f conftest.er1
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } && {
20607 test -z "$ac_c_werror_flag" ||
20608 test ! -s conftest.err
20609 } && test -s conftest.$ac_objext; then
20610 ac_cv_c_const=yes
20611 else
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20615 ac_cv_c_const=no
20618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20620 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20621 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20622 if test $ac_cv_c_const = no; then
20624 cat >>confdefs.h <<\_ACEOF
20625 #define const
20626 _ACEOF
20631 works=no
20632 { echo "$as_me:$LINENO: checking for working volatile" >&5
20633 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20642 main ()
20644 volatile int x; x = 0;
20646 return 0;
20648 _ACEOF
20649 rm -f conftest.$ac_objext
20650 if { (ac_try="$ac_compile"
20651 case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20654 esac
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_compile") 2>conftest.er1
20657 ac_status=$?
20658 grep -v '^ *+' conftest.er1 >conftest.err
20659 rm -f conftest.er1
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && {
20663 test -z "$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20665 } && test -s conftest.$ac_objext; then
20666 works=yes
20667 else
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20672 cat >>confdefs.h <<\_ACEOF
20673 #define volatile
20674 _ACEOF
20679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680 { echo "$as_me:$LINENO: result: $works" >&5
20681 echo "${ECHO_T}$works" >&6; }
20683 works=no
20684 { echo "$as_me:$LINENO: checking for working signed char" >&5
20685 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20686 cat >conftest.$ac_ext <<_ACEOF
20687 /* confdefs.h. */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h. */
20694 main ()
20696 signed char c;
20698 return 0;
20700 _ACEOF
20701 rm -f conftest.$ac_objext
20702 if { (ac_try="$ac_compile"
20703 case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_compile") 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest.$ac_objext; then
20718 works=yes
20719 else
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20724 cat >>confdefs.h <<\_ACEOF
20725 #define signed
20726 _ACEOF
20731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20732 { echo "$as_me:$LINENO: result: $works" >&5
20733 echo "${ECHO_T}$works" >&6; }
20735 have_prototypes=no
20736 { echo "$as_me:$LINENO: checking for prototypes" >&5
20737 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 int foo(int x) { return 0; }
20746 main ()
20748 return foo(10);
20750 return 0;
20752 _ACEOF
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_compile") 2>conftest.er1
20761 ac_status=$?
20762 grep -v '^ *+' conftest.er1 >conftest.err
20763 rm -f conftest.er1
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } && {
20767 test -z "$ac_c_werror_flag" ||
20768 test ! -s conftest.err
20769 } && test -s conftest.$ac_objext; then
20772 cat >>confdefs.h <<\_ACEOF
20773 #define HAVE_PROTOTYPES 1
20774 _ACEOF
20776 have_prototypes=yes
20778 else
20779 echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20786 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20787 echo "${ECHO_T}$have_prototypes" >&6; }
20789 works=no
20790 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20791 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 #include <stdarg.h>
20800 int foo(int x, ...) {
20801 va_list va;
20802 va_start(va, x);
20803 va_arg(va, int);
20804 va_arg(va, char *);
20805 va_arg(va, double);
20806 return 0;
20810 main ()
20812 return foo(10, "", 3.14);
20814 return 0;
20816 _ACEOF
20817 rm -f conftest.$ac_objext
20818 if { (ac_try="$ac_compile"
20819 case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_compile") 2>conftest.er1
20825 ac_status=$?
20826 grep -v '^ *+' conftest.er1 >conftest.err
20827 rm -f conftest.er1
20828 cat conftest.err >&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } && {
20831 test -z "$ac_c_werror_flag" ||
20832 test ! -s conftest.err
20833 } && test -s conftest.$ac_objext; then
20836 cat >>confdefs.h <<\_ACEOF
20837 #define HAVE_STDARG_PROTOTYPES 1
20838 _ACEOF
20840 works=yes
20842 else
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850 { echo "$as_me:$LINENO: result: $works" >&5
20851 echo "${ECHO_T}$works" >&6; }
20853 # check for socketpair
20854 { echo "$as_me:$LINENO: checking for socketpair" >&5
20855 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20856 cat >conftest.$ac_ext <<_ACEOF
20857 /* confdefs.h. */
20858 _ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20863 #include <sys/types.h>
20864 #include <sys/socket.h>
20867 main ()
20869 void *x=socketpair
20871 return 0;
20873 _ACEOF
20874 rm -f conftest.$ac_objext
20875 if { (ac_try="$ac_compile"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_compile") 2>conftest.er1
20882 ac_status=$?
20883 grep -v '^ *+' conftest.er1 >conftest.err
20884 rm -f conftest.er1
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } && {
20888 test -z "$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20890 } && test -s conftest.$ac_objext; then
20892 cat >>confdefs.h <<\_ACEOF
20893 #define HAVE_SOCKETPAIR 1
20894 _ACEOF
20896 { echo "$as_me:$LINENO: result: yes" >&5
20897 echo "${ECHO_T}yes" >&6; }
20898 else
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 { echo "$as_me:$LINENO: result: no" >&5
20903 echo "${ECHO_T}no" >&6; }
20907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909 # check if sockaddr has sa_len member
20910 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20911 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20912 cat >conftest.$ac_ext <<_ACEOF
20913 /* confdefs.h. */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 #include <sys/types.h>
20919 #include <sys/socket.h>
20921 main ()
20923 struct sockaddr x;
20924 x.sa_len = 0;
20926 return 0;
20928 _ACEOF
20929 rm -f conftest.$ac_objext
20930 if { (ac_try="$ac_compile"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_compile") 2>conftest.er1
20937 ac_status=$?
20938 grep -v '^ *+' conftest.er1 >conftest.err
20939 rm -f conftest.er1
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } && {
20943 test -z "$ac_c_werror_flag" ||
20944 test ! -s conftest.err
20945 } && test -s conftest.$ac_objext; then
20946 { echo "$as_me:$LINENO: result: yes" >&5
20947 echo "${ECHO_T}yes" >&6; }
20949 cat >>confdefs.h <<\_ACEOF
20950 #define HAVE_SOCKADDR_SA_LEN 1
20951 _ACEOF
20953 else
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 { echo "$as_me:$LINENO: result: no" >&5
20958 echo "${ECHO_T}no" >&6; }
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 va_list_is_array=no
20964 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20965 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20973 #ifdef HAVE_STDARG_PROTOTYPES
20974 #include <stdarg.h>
20975 #else
20976 #include <varargs.h>
20977 #endif
20980 main ()
20982 va_list list1, list2; list1 = list2;
20984 return 0;
20986 _ACEOF
20987 rm -f conftest.$ac_objext
20988 if { (ac_try="$ac_compile"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20992 esac
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_compile") 2>conftest.er1
20995 ac_status=$?
20996 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest.$ac_objext; then
21005 else
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21011 cat >>confdefs.h <<\_ACEOF
21012 #define VA_LIST_IS_ARRAY 1
21013 _ACEOF
21015 va_list_is_array=yes
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21021 echo "${ECHO_T}$va_list_is_array" >&6; }
21023 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21027 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21028 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21029 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 else
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h. */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21040 #define gethostbyname_r innocuous_gethostbyname_r
21042 /* System header to define __stub macros and hopefully few prototypes,
21043 which can conflict with char gethostbyname_r (); below.
21044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21045 <limits.h> exists even on freestanding compilers. */
21047 #ifdef __STDC__
21048 # include <limits.h>
21049 #else
21050 # include <assert.h>
21051 #endif
21053 #undef gethostbyname_r
21055 /* Override any GCC internal prototype to avoid an error.
21056 Use char because int might match the return type of a GCC
21057 builtin and then its argument prototype would still apply. */
21058 #ifdef __cplusplus
21059 extern "C"
21060 #endif
21061 char gethostbyname_r ();
21062 /* The GNU C library defines this for functions which it implements
21063 to always fail with ENOSYS. Some functions are actually named
21064 something starting with __ and the normal name is an alias. */
21065 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21066 choke me
21067 #endif
21070 main ()
21072 return gethostbyname_r ();
21074 return 0;
21076 _ACEOF
21077 rm -f conftest.$ac_objext conftest$ac_exeext
21078 if { (ac_try="$ac_link"
21079 case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21082 esac
21083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_link") 2>conftest.er1
21085 ac_status=$?
21086 grep -v '^ *+' conftest.er1 >conftest.err
21087 rm -f conftest.er1
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } && {
21091 test -z "$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21093 } && test -s conftest$ac_exeext &&
21094 $as_test_x conftest$ac_exeext; then
21095 ac_cv_func_gethostbyname_r=yes
21096 else
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21100 ac_cv_func_gethostbyname_r=no
21103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21104 conftest$ac_exeext conftest.$ac_ext
21106 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21107 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21108 if test $ac_cv_func_gethostbyname_r = yes; then
21110 cat >>confdefs.h <<\_ACEOF
21111 #define HAVE_GETHOSTBYNAME_R 1
21112 _ACEOF
21114 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21115 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21116 OLD_CFLAGS=$CFLAGS
21117 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21118 cat >conftest.$ac_ext <<_ACEOF
21119 /* confdefs.h. */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21125 # include <netdb.h>
21128 main ()
21131 char *name;
21132 struct hostent *he, *res;
21133 char buffer[2048];
21134 int buflen = 2048;
21135 int h_errnop;
21137 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21140 return 0;
21142 _ACEOF
21143 rm -f conftest.$ac_objext
21144 if { (ac_try="$ac_compile"
21145 case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21148 esac
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_compile") 2>conftest.er1
21151 ac_status=$?
21152 grep -v '^ *+' conftest.er1 >conftest.err
21153 rm -f conftest.er1
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } && {
21157 test -z "$ac_c_werror_flag" ||
21158 test ! -s conftest.err
21159 } && test -s conftest.$ac_objext; then
21161 cat >>confdefs.h <<\_ACEOF
21162 #define HAVE_GETHOSTBYNAME_R 1
21163 _ACEOF
21166 cat >>confdefs.h <<\_ACEOF
21167 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21168 _ACEOF
21170 { echo "$as_me:$LINENO: result: yes" >&5
21171 echo "${ECHO_T}yes" >&6; }
21173 else
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21178 { echo "$as_me:$LINENO: result: no" >&5
21179 echo "${ECHO_T}no" >&6; }
21180 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21181 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21182 cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h. */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21189 # include <netdb.h>
21192 main ()
21195 char *name;
21196 struct hostent *he;
21197 char buffer[2048];
21198 int buflen = 2048;
21199 int h_errnop;
21201 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21204 return 0;
21206 _ACEOF
21207 rm -f conftest.$ac_objext
21208 if { (ac_try="$ac_compile"
21209 case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21212 esac
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214 (eval "$ac_compile") 2>conftest.er1
21215 ac_status=$?
21216 grep -v '^ *+' conftest.er1 >conftest.err
21217 rm -f conftest.er1
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && {
21221 test -z "$ac_c_werror_flag" ||
21222 test ! -s conftest.err
21223 } && test -s conftest.$ac_objext; then
21225 cat >>confdefs.h <<\_ACEOF
21226 #define HAVE_GETHOSTBYNAME_R 1
21227 _ACEOF
21230 cat >>confdefs.h <<\_ACEOF
21231 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21232 _ACEOF
21234 { echo "$as_me:$LINENO: result: yes" >&5
21235 echo "${ECHO_T}yes" >&6; }
21237 else
21238 echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21242 { echo "$as_me:$LINENO: result: no" >&5
21243 echo "${ECHO_T}no" >&6; }
21244 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21245 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21246 cat >conftest.$ac_ext <<_ACEOF
21247 /* confdefs.h. */
21248 _ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21253 # include <netdb.h>
21256 main ()
21259 char *name;
21260 struct hostent *he;
21261 struct hostent_data data;
21263 (void) gethostbyname_r(name, he, &data);
21266 return 0;
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21277 ac_status=$?
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21287 cat >>confdefs.h <<\_ACEOF
21288 #define HAVE_GETHOSTBYNAME_R 1
21289 _ACEOF
21292 cat >>confdefs.h <<\_ACEOF
21293 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21294 _ACEOF
21296 { echo "$as_me:$LINENO: result: yes" >&5
21297 echo "${ECHO_T}yes" >&6; }
21299 else
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21304 { echo "$as_me:$LINENO: result: no" >&5
21305 echo "${ECHO_T}no" >&6; }
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21318 CFLAGS=$OLD_CFLAGS
21320 else
21323 for ac_func in gethostbyname
21325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21331 cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h. */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21339 #define $ac_func innocuous_$ac_func
21341 /* System header to define __stub macros and hopefully few prototypes,
21342 which can conflict with char $ac_func (); below.
21343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21344 <limits.h> exists even on freestanding compilers. */
21346 #ifdef __STDC__
21347 # include <limits.h>
21348 #else
21349 # include <assert.h>
21350 #endif
21352 #undef $ac_func
21354 /* Override any GCC internal prototype to avoid an error.
21355 Use char because int might match the return type of a GCC
21356 builtin and then its argument prototype would still apply. */
21357 #ifdef __cplusplus
21358 extern "C"
21359 #endif
21360 char $ac_func ();
21361 /* The GNU C library defines this for functions which it implements
21362 to always fail with ENOSYS. Some functions are actually named
21363 something starting with __ and the normal name is an alias. */
21364 #if defined __stub_$ac_func || defined __stub___$ac_func
21365 choke me
21366 #endif
21369 main ()
21371 return $ac_func ();
21373 return 0;
21375 _ACEOF
21376 rm -f conftest.$ac_objext conftest$ac_exeext
21377 if { (ac_try="$ac_link"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_link") 2>conftest.er1
21384 ac_status=$?
21385 grep -v '^ *+' conftest.er1 >conftest.err
21386 rm -f conftest.er1
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } && {
21390 test -z "$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 } && test -s conftest$ac_exeext &&
21393 $as_test_x conftest$ac_exeext; then
21394 eval "$as_ac_var=yes"
21395 else
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 eval "$as_ac_var=no"
21402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21403 conftest$ac_exeext conftest.$ac_ext
21405 ac_res=`eval echo '${'$as_ac_var'}'`
21406 { echo "$as_me:$LINENO: result: $ac_res" >&5
21407 echo "${ECHO_T}$ac_res" >&6; }
21408 if test `eval echo '${'$as_ac_var'}'` = yes; then
21409 cat >>confdefs.h <<_ACEOF
21410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21411 _ACEOF
21414 done
21425 # checks for system services
21426 # (none yet)
21428 # Linux requires this for correct f.p. operations
21429 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21430 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21431 if test "${ac_cv_func___fpu_control+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434 cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h. */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21440 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21442 #define __fpu_control innocuous___fpu_control
21444 /* System header to define __stub macros and hopefully few prototypes,
21445 which can conflict with char __fpu_control (); below.
21446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21447 <limits.h> exists even on freestanding compilers. */
21449 #ifdef __STDC__
21450 # include <limits.h>
21451 #else
21452 # include <assert.h>
21453 #endif
21455 #undef __fpu_control
21457 /* Override any GCC internal prototype to avoid an error.
21458 Use char because int might match the return type of a GCC
21459 builtin and then its argument prototype would still apply. */
21460 #ifdef __cplusplus
21461 extern "C"
21462 #endif
21463 char __fpu_control ();
21464 /* The GNU C library defines this for functions which it implements
21465 to always fail with ENOSYS. Some functions are actually named
21466 something starting with __ and the normal name is an alias. */
21467 #if defined __stub___fpu_control || defined __stub_____fpu_control
21468 choke me
21469 #endif
21472 main ()
21474 return __fpu_control ();
21476 return 0;
21478 _ACEOF
21479 rm -f conftest.$ac_objext conftest$ac_exeext
21480 if { (ac_try="$ac_link"
21481 case "(($ac_try" in
21482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483 *) ac_try_echo=$ac_try;;
21484 esac
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486 (eval "$ac_link") 2>conftest.er1
21487 ac_status=$?
21488 grep -v '^ *+' conftest.er1 >conftest.err
21489 rm -f conftest.er1
21490 cat conftest.err >&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } && {
21493 test -z "$ac_c_werror_flag" ||
21494 test ! -s conftest.err
21495 } && test -s conftest$ac_exeext &&
21496 $as_test_x conftest$ac_exeext; then
21497 ac_cv_func___fpu_control=yes
21498 else
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 ac_cv_func___fpu_control=no
21505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21506 conftest$ac_exeext conftest.$ac_ext
21508 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21509 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21510 if test $ac_cv_func___fpu_control = yes; then
21512 else
21514 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21515 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21516 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 else
21519 ac_check_lib_save_LIBS=$LIBS
21520 LIBS="-lieee $LIBS"
21521 cat >conftest.$ac_ext <<_ACEOF
21522 /* confdefs.h. */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21528 /* Override any GCC internal prototype to avoid an error.
21529 Use char because int might match the return type of a GCC
21530 builtin and then its argument prototype would still apply. */
21531 #ifdef __cplusplus
21532 extern "C"
21533 #endif
21534 char __fpu_control ();
21536 main ()
21538 return __fpu_control ();
21540 return 0;
21542 _ACEOF
21543 rm -f conftest.$ac_objext conftest$ac_exeext
21544 if { (ac_try="$ac_link"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21548 esac
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_link") 2>conftest.er1
21551 ac_status=$?
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest$ac_exeext &&
21560 $as_test_x conftest$ac_exeext; then
21561 ac_cv_lib_ieee___fpu_control=yes
21562 else
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 ac_cv_lib_ieee___fpu_control=no
21569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21570 conftest$ac_exeext conftest.$ac_ext
21571 LIBS=$ac_check_lib_save_LIBS
21573 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21574 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21575 if test $ac_cv_lib_ieee___fpu_control = yes; then
21576 cat >>confdefs.h <<_ACEOF
21577 #define HAVE_LIBIEEE 1
21578 _ACEOF
21580 LIBS="-lieee $LIBS"
21588 # Check for --with-fpectl
21589 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21590 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21592 # Check whether --with-fpectl was given.
21593 if test "${with_fpectl+set}" = set; then
21594 withval=$with_fpectl;
21595 if test "$withval" != no
21596 then
21598 cat >>confdefs.h <<\_ACEOF
21599 #define WANT_SIGFPE_HANDLER 1
21600 _ACEOF
21602 { echo "$as_me:$LINENO: result: yes" >&5
21603 echo "${ECHO_T}yes" >&6; }
21604 else { echo "$as_me:$LINENO: result: no" >&5
21605 echo "${ECHO_T}no" >&6; }
21607 else
21608 { echo "$as_me:$LINENO: result: no" >&5
21609 echo "${ECHO_T}no" >&6; }
21613 # check for --with-libm=...
21615 case $ac_sys_system in
21616 Darwin) ;;
21617 *) LIBM=-lm
21618 esac
21619 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21620 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21622 # Check whether --with-libm was given.
21623 if test "${with_libm+set}" = set; then
21624 withval=$with_libm;
21625 if test "$withval" = no
21626 then LIBM=
21627 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21628 echo "${ECHO_T}force LIBM empty" >&6; }
21629 elif test "$withval" != yes
21630 then LIBM=$withval
21631 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21632 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21633 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21634 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21635 { (exit 1); exit 1; }; }
21637 else
21638 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21639 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21643 # check for --with-libc=...
21645 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21646 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21648 # Check whether --with-libc was given.
21649 if test "${with_libc+set}" = set; then
21650 withval=$with_libc;
21651 if test "$withval" = no
21652 then LIBC=
21653 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21654 echo "${ECHO_T}force LIBC empty" >&6; }
21655 elif test "$withval" != yes
21656 then LIBC=$withval
21657 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21658 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21659 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21660 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21661 { (exit 1); exit 1; }; }
21663 else
21664 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21665 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21669 # **************************************************
21670 # * Check for various properties of floating point *
21671 # **************************************************
21673 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
21674 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
21675 if test "${ac_cv_little_endian_double+set}" = set; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21679 if test "$cross_compiling" = yes; then
21680 ac_cv_little_endian_double=no
21681 else
21682 cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h. */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21689 #include <string.h>
21690 int main() {
21691 double x = 9006104071832581.0;
21692 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
21693 return 0;
21694 else
21695 return 1;
21698 _ACEOF
21699 rm -f conftest$ac_exeext
21700 if { (ac_try="$ac_link"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_link") 2>&5
21707 ac_status=$?
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21710 { (case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21713 esac
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_try") 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719 ac_cv_little_endian_double=yes
21720 else
21721 echo "$as_me: program exited with status $ac_status" >&5
21722 echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21725 ( exit $ac_status )
21726 ac_cv_little_endian_double=no
21728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21734 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
21735 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
21736 if test "$ac_cv_little_endian_double" = yes
21737 then
21739 cat >>confdefs.h <<\_ACEOF
21740 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
21741 _ACEOF
21745 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
21746 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
21747 if test "${ac_cv_big_endian_double+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21751 if test "$cross_compiling" = yes; then
21752 ac_cv_big_endian_double=no
21753 else
21754 cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h. */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21761 #include <string.h>
21762 int main() {
21763 double x = 9006104071832581.0;
21764 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
21765 return 0;
21766 else
21767 return 1;
21770 _ACEOF
21771 rm -f conftest$ac_exeext
21772 if { (ac_try="$ac_link"
21773 case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21776 esac
21777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_link") 2>&5
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21782 { (case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21785 esac
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787 (eval "$ac_try") 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 ac_cv_big_endian_double=yes
21792 else
21793 echo "$as_me: program exited with status $ac_status" >&5
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21797 ( exit $ac_status )
21798 ac_cv_big_endian_double=no
21800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21806 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
21807 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
21808 if test "$ac_cv_big_endian_double" = yes
21809 then
21811 cat >>confdefs.h <<\_ACEOF
21812 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
21813 _ACEOF
21817 # Some ARM platforms use a mixed-endian representation for doubles.
21818 # While Python doesn't currently have full support for these platforms
21819 # (see e.g., issue 1762561), we can at least make sure that float <-> string
21820 # conversions work.
21821 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
21822 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
21823 if test "${ac_cv_mixed_endian_double+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 else
21827 if test "$cross_compiling" = yes; then
21828 ac_cv_mixed_endian_double=no
21829 else
21830 cat >conftest.$ac_ext <<_ACEOF
21831 /* confdefs.h. */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21837 #include <string.h>
21838 int main() {
21839 double x = 9006104071832581.0;
21840 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
21841 return 0;
21842 else
21843 return 1;
21846 _ACEOF
21847 rm -f conftest$ac_exeext
21848 if { (ac_try="$ac_link"
21849 case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21852 esac
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_link") 2>&5
21855 ac_status=$?
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21858 { (case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21861 esac
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_try") 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; }; then
21867 ac_cv_mixed_endian_double=yes
21868 else
21869 echo "$as_me: program exited with status $ac_status" >&5
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21873 ( exit $ac_status )
21874 ac_cv_mixed_endian_double=no
21876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21882 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
21883 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
21884 if test "$ac_cv_mixed_endian_double" = yes
21885 then
21887 cat >>confdefs.h <<\_ACEOF
21888 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
21889 _ACEOF
21893 # The short float repr introduced in Python 3.1 requires the
21894 # correctly-rounded string <-> double conversion functions from
21895 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
21896 # rounding; this is a problem on x86, where the x87 FPU has a default
21897 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
21898 # using inline assembler to get and set the x87 FPU control word.
21899 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
21900 then
21901 # Check that it's okay to use gcc inline assembler to get and set
21902 # x87 control word. It should be, but you never know...
21903 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
21904 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
21905 cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h. */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21913 main ()
21916 unsigned short cw;
21917 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
21918 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
21921 return 0;
21923 _ACEOF
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21929 esac
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931 (eval "$ac_compile") 2>conftest.er1
21932 ac_status=$?
21933 grep -v '^ *+' conftest.er1 >conftest.err
21934 rm -f conftest.er1
21935 cat conftest.err >&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } && {
21938 test -z "$ac_c_werror_flag" ||
21939 test ! -s conftest.err
21940 } && test -s conftest.$ac_objext; then
21941 have_gcc_asm_for_x87=yes
21942 else
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 have_gcc_asm_for_x87=no
21949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21950 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
21951 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
21952 if test "$have_gcc_asm_for_x87" = yes
21953 then
21955 cat >>confdefs.h <<\_ACEOF
21956 #define HAVE_GCC_ASM_FOR_X87 1
21957 _ACEOF
21962 # Detect whether system arithmetic is subject to x87-style double
21963 # rounding issues. The result of this test has little meaning on non
21964 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21965 # mode is round-to-nearest and double rounding issues are present, and
21966 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21967 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21968 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21969 # $BASECFLAGS may affect the result
21970 ac_save_cc="$CC"
21971 CC="$CC $BASECFLAGS"
21972 if test "$cross_compiling" = yes; then
21973 ac_cv_x87_double_rounding=no
21974 else
21975 cat >conftest.$ac_ext <<_ACEOF
21976 /* confdefs.h. */
21977 _ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21982 #include <stdlib.h>
21983 #include <math.h>
21984 int main() {
21985 volatile double x, y, z;
21986 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21987 x = 0.99999999999999989; /* 1-2**-53 */
21988 y = 1./x;
21989 if (y != 1.)
21990 exit(0);
21991 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21992 x = 1e16;
21993 y = 2.99999;
21994 z = x + y;
21995 if (z != 1e16+4.)
21996 exit(0);
21997 /* both tests show evidence of double rounding */
21998 exit(1);
22001 _ACEOF
22002 rm -f conftest$ac_exeext
22003 if { (ac_try="$ac_link"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_link") 2>&5
22010 ac_status=$?
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22013 { (case "(($ac_try" in
22014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015 *) ac_try_echo=$ac_try;;
22016 esac
22017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018 (eval "$ac_try") 2>&5
22019 ac_status=$?
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); }; }; then
22022 ac_cv_x87_double_rounding=no
22023 else
22024 echo "$as_me: program exited with status $ac_status" >&5
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ( exit $ac_status )
22029 ac_cv_x87_double_rounding=yes
22031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22035 CC="$ac_save_cc"
22036 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22037 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22038 if test "$ac_cv_x87_double_rounding" = yes
22039 then
22041 cat >>confdefs.h <<\_ACEOF
22042 #define X87_DOUBLE_ROUNDING 1
22043 _ACEOF
22047 # ************************************
22048 # * Check for mathematical functions *
22049 # ************************************
22051 LIBS_SAVE=$LIBS
22052 LIBS="$LIBS $LIBM"
22054 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22055 # -0. on some architectures.
22056 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22057 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22058 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 else
22062 if test "$cross_compiling" = yes; then
22063 ac_cv_tanh_preserves_zero_sign=no
22064 else
22065 cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h. */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22072 #include <math.h>
22073 #include <stdlib.h>
22074 int main() {
22075 /* return 0 if either negative zeros don't exist
22076 on this platform or if negative zeros exist
22077 and tanh(-0.) == -0. */
22078 if (atan2(0., -1.) == atan2(-0., -1.) ||
22079 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22080 else exit(1);
22083 _ACEOF
22084 rm -f conftest$ac_exeext
22085 if { (ac_try="$ac_link"
22086 case "(($ac_try" in
22087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088 *) ac_try_echo=$ac_try;;
22089 esac
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091 (eval "$ac_link") 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22095 { (case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_try") 2>&5
22101 ac_status=$?
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 ac_cv_tanh_preserves_zero_sign=yes
22105 else
22106 echo "$as_me: program exited with status $ac_status" >&5
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22110 ( exit $ac_status )
22111 ac_cv_tanh_preserves_zero_sign=no
22113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22120 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22121 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22122 then
22124 cat >>confdefs.h <<\_ACEOF
22125 #define TANH_PRESERVES_ZERO_SIGN 1
22126 _ACEOF
22139 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22146 else
22147 cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h. */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22155 #define $ac_func innocuous_$ac_func
22157 /* System header to define __stub macros and hopefully few prototypes,
22158 which can conflict with char $ac_func (); below.
22159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22160 <limits.h> exists even on freestanding compilers. */
22162 #ifdef __STDC__
22163 # include <limits.h>
22164 #else
22165 # include <assert.h>
22166 #endif
22168 #undef $ac_func
22170 /* Override any GCC internal prototype to avoid an error.
22171 Use char because int might match the return type of a GCC
22172 builtin and then its argument prototype would still apply. */
22173 #ifdef __cplusplus
22174 extern "C"
22175 #endif
22176 char $ac_func ();
22177 /* The GNU C library defines this for functions which it implements
22178 to always fail with ENOSYS. Some functions are actually named
22179 something starting with __ and the normal name is an alias. */
22180 #if defined __stub_$ac_func || defined __stub___$ac_func
22181 choke me
22182 #endif
22185 main ()
22187 return $ac_func ();
22189 return 0;
22191 _ACEOF
22192 rm -f conftest.$ac_objext conftest$ac_exeext
22193 if { (ac_try="$ac_link"
22194 case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22197 esac
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199 (eval "$ac_link") 2>conftest.er1
22200 ac_status=$?
22201 grep -v '^ *+' conftest.er1 >conftest.err
22202 rm -f conftest.er1
22203 cat conftest.err >&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && {
22206 test -z "$ac_c_werror_flag" ||
22207 test ! -s conftest.err
22208 } && test -s conftest$ac_exeext &&
22209 $as_test_x conftest$ac_exeext; then
22210 eval "$as_ac_var=yes"
22211 else
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 eval "$as_ac_var=no"
22218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22219 conftest$ac_exeext conftest.$ac_ext
22221 ac_res=`eval echo '${'$as_ac_var'}'`
22222 { echo "$as_me:$LINENO: result: $ac_res" >&5
22223 echo "${ECHO_T}$ac_res" >&6; }
22224 if test `eval echo '${'$as_ac_var'}'` = yes; then
22225 cat >>confdefs.h <<_ACEOF
22226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22227 _ACEOF
22230 done
22232 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22233 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22234 if test "${ac_cv_have_decl_isinf+set}" = set; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22236 else
22237 cat >conftest.$ac_ext <<_ACEOF
22238 /* confdefs.h. */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22243 #include <math.h>
22246 main ()
22248 #ifndef isinf
22249 (void) isinf;
22250 #endif
22253 return 0;
22255 _ACEOF
22256 rm -f conftest.$ac_objext
22257 if { (ac_try="$ac_compile"
22258 case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_compile") 2>conftest.er1
22264 ac_status=$?
22265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } && {
22270 test -z "$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22272 } && test -s conftest.$ac_objext; then
22273 ac_cv_have_decl_isinf=yes
22274 else
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 ac_cv_have_decl_isinf=no
22281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22284 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22285 if test $ac_cv_have_decl_isinf = yes; then
22287 cat >>confdefs.h <<_ACEOF
22288 #define HAVE_DECL_ISINF 1
22289 _ACEOF
22292 else
22293 cat >>confdefs.h <<_ACEOF
22294 #define HAVE_DECL_ISINF 0
22295 _ACEOF
22299 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22300 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22301 if test "${ac_cv_have_decl_isnan+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304 cat >conftest.$ac_ext <<_ACEOF
22305 /* confdefs.h. */
22306 _ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 #include <math.h>
22313 main ()
22315 #ifndef isnan
22316 (void) isnan;
22317 #endif
22320 return 0;
22322 _ACEOF
22323 rm -f conftest.$ac_objext
22324 if { (ac_try="$ac_compile"
22325 case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22328 esac
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_compile") 2>conftest.er1
22331 ac_status=$?
22332 grep -v '^ *+' conftest.er1 >conftest.err
22333 rm -f conftest.er1
22334 cat conftest.err >&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); } && {
22337 test -z "$ac_c_werror_flag" ||
22338 test ! -s conftest.err
22339 } && test -s conftest.$ac_objext; then
22340 ac_cv_have_decl_isnan=yes
22341 else
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22345 ac_cv_have_decl_isnan=no
22348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22351 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22352 if test $ac_cv_have_decl_isnan = yes; then
22354 cat >>confdefs.h <<_ACEOF
22355 #define HAVE_DECL_ISNAN 1
22356 _ACEOF
22359 else
22360 cat >>confdefs.h <<_ACEOF
22361 #define HAVE_DECL_ISNAN 0
22362 _ACEOF
22366 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22367 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22368 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22370 else
22371 cat >conftest.$ac_ext <<_ACEOF
22372 /* confdefs.h. */
22373 _ACEOF
22374 cat confdefs.h >>conftest.$ac_ext
22375 cat >>conftest.$ac_ext <<_ACEOF
22376 /* end confdefs.h. */
22377 #include <math.h>
22380 main ()
22382 #ifndef isfinite
22383 (void) isfinite;
22384 #endif
22387 return 0;
22389 _ACEOF
22390 rm -f conftest.$ac_objext
22391 if { (ac_try="$ac_compile"
22392 case "(($ac_try" in
22393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22395 esac
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397 (eval "$ac_compile") 2>conftest.er1
22398 ac_status=$?
22399 grep -v '^ *+' conftest.er1 >conftest.err
22400 rm -f conftest.er1
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && {
22404 test -z "$ac_c_werror_flag" ||
22405 test ! -s conftest.err
22406 } && test -s conftest.$ac_objext; then
22407 ac_cv_have_decl_isfinite=yes
22408 else
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22412 ac_cv_have_decl_isfinite=no
22415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22418 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22419 if test $ac_cv_have_decl_isfinite = yes; then
22421 cat >>confdefs.h <<_ACEOF
22422 #define HAVE_DECL_ISFINITE 1
22423 _ACEOF
22426 else
22427 cat >>confdefs.h <<_ACEOF
22428 #define HAVE_DECL_ISFINITE 0
22429 _ACEOF
22436 LIBS=$LIBS_SAVE
22438 # Multiprocessing check for broken sem_getvalue
22439 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22440 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22441 if test "$cross_compiling" = yes; then
22442 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22443 See \`config.log' for more details." >&5
22444 echo "$as_me: error: cannot run test program while cross compiling
22445 See \`config.log' for more details." >&2;}
22446 { (exit 1); exit 1; }; }
22447 else
22448 cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h. */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22455 #include <unistd.h>
22456 #include <fcntl.h>
22457 #include <stdio.h>
22458 #include <semaphore.h>
22459 #include <sys/stat.h>
22461 int main(void){
22462 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22463 int count;
22464 int res;
22465 if(a==SEM_FAILED){
22466 perror("sem_open");
22467 return 1;
22470 res = sem_getvalue(a, &count);
22471 sem_close(a);
22472 return res==-1 ? 1 : 0;
22476 _ACEOF
22477 rm -f conftest$ac_exeext
22478 if { (ac_try="$ac_link"
22479 case "(($ac_try" in
22480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481 *) ac_try_echo=$ac_try;;
22482 esac
22483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22484 (eval "$ac_link") 2>&5
22485 ac_status=$?
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22488 { (case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22491 esac
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493 (eval "$ac_try") 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 { echo "$as_me:$LINENO: result: no" >&5
22498 echo "${ECHO_T}no" >&6; }
22499 else
22500 echo "$as_me: program exited with status $ac_status" >&5
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 ( exit $ac_status )
22505 { echo "$as_me:$LINENO: result: yes" >&5
22506 echo "${ECHO_T}yes" >&6; }
22508 cat >>confdefs.h <<\_ACEOF
22509 #define HAVE_BROKEN_SEM_GETVALUE 1
22510 _ACEOF
22514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22519 # determine what size digit to use for Python's longs
22520 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22521 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22522 # Check whether --enable-big-digits was given.
22523 if test "${enable_big_digits+set}" = set; then
22524 enableval=$enable_big_digits; case $enable_big_digits in
22525 yes)
22526 enable_big_digits=30 ;;
22528 enable_big_digits=15 ;;
22529 15|30)
22532 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22533 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22534 { (exit 1); exit 1; }; } ;;
22535 esac
22536 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22537 echo "${ECHO_T}$enable_big_digits" >&6; }
22539 cat >>confdefs.h <<_ACEOF
22540 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22541 _ACEOF
22544 else
22545 { echo "$as_me:$LINENO: result: no value specified" >&5
22546 echo "${ECHO_T}no value specified" >&6; }
22550 # check for wchar.h
22551 if test "${ac_cv_header_wchar_h+set}" = set; then
22552 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22553 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22554 if test "${ac_cv_header_wchar_h+set}" = set; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22558 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22559 else
22560 # Is the header compilable?
22561 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22562 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22563 cat >conftest.$ac_ext <<_ACEOF
22564 /* confdefs.h. */
22565 _ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22569 $ac_includes_default
22570 #include <wchar.h>
22571 _ACEOF
22572 rm -f conftest.$ac_objext
22573 if { (ac_try="$ac_compile"
22574 case "(($ac_try" in
22575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22577 esac
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579 (eval "$ac_compile") 2>conftest.er1
22580 ac_status=$?
22581 grep -v '^ *+' conftest.er1 >conftest.err
22582 rm -f conftest.er1
22583 cat conftest.err >&5
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } && {
22586 test -z "$ac_c_werror_flag" ||
22587 test ! -s conftest.err
22588 } && test -s conftest.$ac_objext; then
22589 ac_header_compiler=yes
22590 else
22591 echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22594 ac_header_compiler=no
22597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22599 echo "${ECHO_T}$ac_header_compiler" >&6; }
22601 # Is the header present?
22602 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22603 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22604 cat >conftest.$ac_ext <<_ACEOF
22605 /* confdefs.h. */
22606 _ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22610 #include <wchar.h>
22611 _ACEOF
22612 if { (ac_try="$ac_cpp conftest.$ac_ext"
22613 case "(($ac_try" in
22614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22615 *) ac_try_echo=$ac_try;;
22616 esac
22617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22619 ac_status=$?
22620 grep -v '^ *+' conftest.er1 >conftest.err
22621 rm -f conftest.er1
22622 cat conftest.err >&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } >/dev/null && {
22625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22626 test ! -s conftest.err
22627 }; then
22628 ac_header_preproc=yes
22629 else
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22633 ac_header_preproc=no
22636 rm -f conftest.err conftest.$ac_ext
22637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22638 echo "${ECHO_T}$ac_header_preproc" >&6; }
22640 # So? What about this header?
22641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22642 yes:no: )
22643 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22644 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22645 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22646 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22647 ac_header_preproc=yes
22649 no:yes:* )
22650 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22651 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22652 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22653 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22654 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22655 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22656 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22657 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22658 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22659 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22660 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22661 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22662 ( cat <<\_ASBOX
22663 ## -------------------------------------- ##
22664 ## Report this to http://bugs.python.org/ ##
22665 ## -------------------------------------- ##
22666 _ASBOX
22667 ) | sed "s/^/$as_me: WARNING: /" >&2
22669 esac
22670 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22671 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22672 if test "${ac_cv_header_wchar_h+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
22674 else
22675 ac_cv_header_wchar_h=$ac_header_preproc
22677 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22678 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22681 if test $ac_cv_header_wchar_h = yes; then
22684 cat >>confdefs.h <<\_ACEOF
22685 #define HAVE_WCHAR_H 1
22686 _ACEOF
22688 wchar_h="yes"
22690 else
22691 wchar_h="no"
22697 # determine wchar_t size
22698 if test "$wchar_h" = yes
22699 then
22700 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22701 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22702 if test "${ac_cv_type_wchar_t+set}" = set; then
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
22704 else
22705 cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h. */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22711 #include <wchar.h>
22713 typedef wchar_t ac__type_new_;
22715 main ()
22717 if ((ac__type_new_ *) 0)
22718 return 0;
22719 if (sizeof (ac__type_new_))
22720 return 0;
22722 return 0;
22724 _ACEOF
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22730 esac
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_cv_type_wchar_t=yes
22743 else
22744 echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ac_cv_type_wchar_t=no
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22752 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22753 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22755 # The cast to long int works around a bug in the HP C Compiler
22756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22758 # This bug is HP SR number 8606223364.
22759 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22760 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22761 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22762 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 else
22764 if test "$cross_compiling" = yes; then
22765 # Depending upon the size, compute the lo and hi bounds.
22766 cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h. */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22772 #include <wchar.h>
22774 typedef wchar_t ac__type_sizeof_;
22776 main ()
22778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22779 test_array [0] = 0
22782 return 0;
22784 _ACEOF
22785 rm -f conftest.$ac_objext
22786 if { (ac_try="$ac_compile"
22787 case "(($ac_try" in
22788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789 *) ac_try_echo=$ac_try;;
22790 esac
22791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22792 (eval "$ac_compile") 2>conftest.er1
22793 ac_status=$?
22794 grep -v '^ *+' conftest.er1 >conftest.err
22795 rm -f conftest.er1
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } && {
22799 test -z "$ac_c_werror_flag" ||
22800 test ! -s conftest.err
22801 } && test -s conftest.$ac_objext; then
22802 ac_lo=0 ac_mid=0
22803 while :; do
22804 cat >conftest.$ac_ext <<_ACEOF
22805 /* confdefs.h. */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h. */
22810 #include <wchar.h>
22812 typedef wchar_t ac__type_sizeof_;
22814 main ()
22816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22817 test_array [0] = 0
22820 return 0;
22822 _ACEOF
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827 *) ac_try_echo=$ac_try;;
22828 esac
22829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22830 (eval "$ac_compile") 2>conftest.er1
22831 ac_status=$?
22832 grep -v '^ *+' conftest.er1 >conftest.err
22833 rm -f conftest.er1
22834 cat conftest.err >&5
22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); } && {
22837 test -z "$ac_c_werror_flag" ||
22838 test ! -s conftest.err
22839 } && test -s conftest.$ac_objext; then
22840 ac_hi=$ac_mid; break
22841 else
22842 echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22845 ac_lo=`expr $ac_mid + 1`
22846 if test $ac_lo -le $ac_mid; then
22847 ac_lo= ac_hi=
22848 break
22850 ac_mid=`expr 2 '*' $ac_mid + 1`
22853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22854 done
22855 else
22856 echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 cat >conftest.$ac_ext <<_ACEOF
22860 /* confdefs.h. */
22861 _ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22865 #include <wchar.h>
22867 typedef wchar_t ac__type_sizeof_;
22869 main ()
22871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22872 test_array [0] = 0
22875 return 0;
22877 _ACEOF
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22883 esac
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885 (eval "$ac_compile") 2>conftest.er1
22886 ac_status=$?
22887 grep -v '^ *+' conftest.er1 >conftest.err
22888 rm -f conftest.er1
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } && {
22892 test -z "$ac_c_werror_flag" ||
22893 test ! -s conftest.err
22894 } && test -s conftest.$ac_objext; then
22895 ac_hi=-1 ac_mid=-1
22896 while :; do
22897 cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h. */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 #include <wchar.h>
22905 typedef wchar_t ac__type_sizeof_;
22907 main ()
22909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22910 test_array [0] = 0
22913 return 0;
22915 _ACEOF
22916 rm -f conftest.$ac_objext
22917 if { (ac_try="$ac_compile"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_compile") 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest.$ac_objext; then
22933 ac_lo=$ac_mid; break
22934 else
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_hi=`expr '(' $ac_mid ')' - 1`
22939 if test $ac_mid -le $ac_hi; then
22940 ac_lo= ac_hi=
22941 break
22943 ac_mid=`expr 2 '*' $ac_mid`
22946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22947 done
22948 else
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_lo= ac_hi=
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22959 # Binary search between lo and hi bounds.
22960 while test "x$ac_lo" != "x$ac_hi"; do
22961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22962 cat >conftest.$ac_ext <<_ACEOF
22963 /* confdefs.h. */
22964 _ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 #include <wchar.h>
22970 typedef wchar_t ac__type_sizeof_;
22972 main ()
22974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22975 test_array [0] = 0
22978 return 0;
22980 _ACEOF
22981 rm -f conftest.$ac_objext
22982 if { (ac_try="$ac_compile"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22986 esac
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_compile") 2>conftest.er1
22989 ac_status=$?
22990 grep -v '^ *+' conftest.er1 >conftest.err
22991 rm -f conftest.er1
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } && {
22995 test -z "$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 } && test -s conftest.$ac_objext; then
22998 ac_hi=$ac_mid
22999 else
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 ac_lo=`expr '(' $ac_mid ')' + 1`
23006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23007 done
23008 case $ac_lo in
23009 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23010 '') if test "$ac_cv_type_wchar_t" = yes; then
23011 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23012 See \`config.log' for more details." >&5
23013 echo "$as_me: error: cannot compute sizeof (wchar_t)
23014 See \`config.log' for more details." >&2;}
23015 { (exit 77); exit 77; }; }
23016 else
23017 ac_cv_sizeof_wchar_t=0
23018 fi ;;
23019 esac
23020 else
23021 cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h. */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 #include <wchar.h>
23029 typedef wchar_t ac__type_sizeof_;
23030 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23031 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23032 #include <stdio.h>
23033 #include <stdlib.h>
23035 main ()
23038 FILE *f = fopen ("conftest.val", "w");
23039 if (! f)
23040 return 1;
23041 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23043 long int i = longval ();
23044 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23045 return 1;
23046 fprintf (f, "%ld\n", i);
23048 else
23050 unsigned long int i = ulongval ();
23051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23052 return 1;
23053 fprintf (f, "%lu\n", i);
23055 return ferror (f) || fclose (f) != 0;
23058 return 0;
23060 _ACEOF
23061 rm -f conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_link") 2>&5
23069 ac_status=$?
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23072 { (case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23075 esac
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077 (eval "$ac_try") 2>&5
23078 ac_status=$?
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 ac_cv_sizeof_wchar_t=`cat conftest.val`
23082 else
23083 echo "$as_me: program exited with status $ac_status" >&5
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23087 ( exit $ac_status )
23088 if test "$ac_cv_type_wchar_t" = yes; then
23089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23090 See \`config.log' for more details." >&5
23091 echo "$as_me: error: cannot compute sizeof (wchar_t)
23092 See \`config.log' for more details." >&2;}
23093 { (exit 77); exit 77; }; }
23094 else
23095 ac_cv_sizeof_wchar_t=0
23098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23100 rm -f conftest.val
23102 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23103 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23107 cat >>confdefs.h <<_ACEOF
23108 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23109 _ACEOF
23114 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23115 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23116 have_ucs4_tcl=no
23117 cat >conftest.$ac_ext <<_ACEOF
23118 /* confdefs.h. */
23119 _ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23124 #include <tcl.h>
23125 #if TCL_UTF_MAX != 6
23126 # error "NOT UCS4_TCL"
23127 #endif
23129 main ()
23133 return 0;
23135 _ACEOF
23136 rm -f conftest.$ac_objext
23137 if { (ac_try="$ac_compile"
23138 case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23141 esac
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_compile") 2>conftest.er1
23144 ac_status=$?
23145 grep -v '^ *+' conftest.er1 >conftest.err
23146 rm -f conftest.er1
23147 cat conftest.err >&5
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); } && {
23150 test -z "$ac_c_werror_flag" ||
23151 test ! -s conftest.err
23152 } && test -s conftest.$ac_objext; then
23155 cat >>confdefs.h <<\_ACEOF
23156 #define HAVE_UCS4_TCL 1
23157 _ACEOF
23159 have_ucs4_tcl=yes
23161 else
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23170 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23172 # check whether wchar_t is signed or not
23173 if test "$wchar_h" = yes
23174 then
23175 # check whether wchar_t is signed or not
23176 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23177 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23178 if test "${ac_cv_wchar_t_signed+set}" = set; then
23179 echo $ECHO_N "(cached) $ECHO_C" >&6
23180 else
23182 if test "$cross_compiling" = yes; then
23183 ac_cv_wchar_t_signed=yes
23184 else
23185 cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h. */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23192 #include <wchar.h>
23193 int main()
23195 /* Success: exit code 0 */
23196 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23199 _ACEOF
23200 rm -f conftest$ac_exeext
23201 if { (ac_try="$ac_link"
23202 case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23205 esac
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_link") 2>&5
23208 ac_status=$?
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23211 { (case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23214 esac
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216 (eval "$ac_try") 2>&5
23217 ac_status=$?
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); }; }; then
23220 ac_cv_wchar_t_signed=yes
23221 else
23222 echo "$as_me: program exited with status $ac_status" >&5
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 ( exit $ac_status )
23227 ac_cv_wchar_t_signed=no
23229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23235 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23236 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23239 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23240 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23242 # Check whether --with-wide-unicode was given.
23243 if test "${with_wide_unicode+set}" = set; then
23244 withval=$with_wide_unicode;
23245 if test "$withval" != no
23246 then unicode_size="4"
23247 else unicode_size="2"
23250 else
23252 case "$have_ucs4_tcl" in
23253 yes) unicode_size="4" ;;
23254 *) unicode_size="2" ;;
23255 esac
23262 case "$unicode_size" in
23263 4) cat >>confdefs.h <<\_ACEOF
23264 #define Py_UNICODE_SIZE 4
23265 _ACEOF
23267 *) cat >>confdefs.h <<\_ACEOF
23268 #define Py_UNICODE_SIZE 2
23269 _ACEOF
23271 esac
23276 # wchar_t is only usable if it maps to an unsigned type
23277 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23278 -a "$ac_cv_wchar_t_signed" = "no"
23279 then
23280 PY_UNICODE_TYPE="wchar_t"
23282 cat >>confdefs.h <<\_ACEOF
23283 #define HAVE_USABLE_WCHAR_T 1
23284 _ACEOF
23286 cat >>confdefs.h <<\_ACEOF
23287 #define PY_UNICODE_TYPE wchar_t
23288 _ACEOF
23290 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23291 then
23292 PY_UNICODE_TYPE="unsigned short"
23293 cat >>confdefs.h <<\_ACEOF
23294 #define PY_UNICODE_TYPE unsigned short
23295 _ACEOF
23297 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23298 then
23299 PY_UNICODE_TYPE="unsigned long"
23300 cat >>confdefs.h <<\_ACEOF
23301 #define PY_UNICODE_TYPE unsigned long
23302 _ACEOF
23304 else
23305 PY_UNICODE_TYPE="no type found"
23307 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23308 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23310 # check for endianness
23311 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23312 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23313 if test "${ac_cv_c_bigendian+set}" = set; then
23314 echo $ECHO_N "(cached) $ECHO_C" >&6
23315 else
23316 # See if sys/param.h defines the BYTE_ORDER macro.
23317 cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h. */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 #include <sys/types.h>
23324 #include <sys/param.h>
23327 main ()
23329 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23330 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23331 bogus endian macros
23332 #endif
23335 return 0;
23337 _ACEOF
23338 rm -f conftest.$ac_objext
23339 if { (ac_try="$ac_compile"
23340 case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23343 esac
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_compile") 2>conftest.er1
23346 ac_status=$?
23347 grep -v '^ *+' conftest.er1 >conftest.err
23348 rm -f conftest.er1
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } && {
23352 test -z "$ac_c_werror_flag" ||
23353 test ! -s conftest.err
23354 } && test -s conftest.$ac_objext; then
23355 # It does; now see whether it defined to BIG_ENDIAN or not.
23356 cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h. */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 #include <sys/types.h>
23363 #include <sys/param.h>
23366 main ()
23368 #if BYTE_ORDER != BIG_ENDIAN
23369 not big endian
23370 #endif
23373 return 0;
23375 _ACEOF
23376 rm -f conftest.$ac_objext
23377 if { (ac_try="$ac_compile"
23378 case "(($ac_try" in
23379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23380 *) ac_try_echo=$ac_try;;
23381 esac
23382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23383 (eval "$ac_compile") 2>conftest.er1
23384 ac_status=$?
23385 grep -v '^ *+' conftest.er1 >conftest.err
23386 rm -f conftest.er1
23387 cat conftest.err >&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); } && {
23390 test -z "$ac_c_werror_flag" ||
23391 test ! -s conftest.err
23392 } && test -s conftest.$ac_objext; then
23393 ac_cv_c_bigendian=yes
23394 else
23395 echo "$as_me: failed program was:" >&5
23396 sed 's/^/| /' conftest.$ac_ext >&5
23398 ac_cv_c_bigendian=no
23401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402 else
23403 echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23406 # It does not; compile a test program.
23407 if test "$cross_compiling" = yes; then
23408 # try to guess the endianness by grepping values into an object file
23409 ac_cv_c_bigendian=unknown
23410 cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h. */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23417 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23418 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23419 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23420 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23421 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23423 main ()
23425 _ascii (); _ebcdic ();
23427 return 0;
23429 _ACEOF
23430 rm -f conftest.$ac_objext
23431 if { (ac_try="$ac_compile"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_compile") 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } && {
23444 test -z "$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 } && test -s conftest.$ac_objext; then
23447 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23448 ac_cv_c_bigendian=yes
23450 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23451 if test "$ac_cv_c_bigendian" = unknown; then
23452 ac_cv_c_bigendian=no
23453 else
23454 # finding both strings is unlikely to happen, but who knows?
23455 ac_cv_c_bigendian=unknown
23458 else
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466 else
23467 cat >conftest.$ac_ext <<_ACEOF
23468 /* confdefs.h. */
23469 _ACEOF
23470 cat confdefs.h >>conftest.$ac_ext
23471 cat >>conftest.$ac_ext <<_ACEOF
23472 /* end confdefs.h. */
23473 $ac_includes_default
23475 main ()
23478 /* Are we little or big endian? From Harbison&Steele. */
23479 union
23481 long int l;
23482 char c[sizeof (long int)];
23483 } u;
23484 u.l = 1;
23485 return u.c[sizeof (long int) - 1] == 1;
23488 return 0;
23490 _ACEOF
23491 rm -f conftest$ac_exeext
23492 if { (ac_try="$ac_link"
23493 case "(($ac_try" in
23494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23495 *) ac_try_echo=$ac_try;;
23496 esac
23497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23498 (eval "$ac_link") 2>&5
23499 ac_status=$?
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23502 { (case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23505 esac
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_try") 2>&5
23508 ac_status=$?
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); }; }; then
23511 ac_cv_c_bigendian=no
23512 else
23513 echo "$as_me: program exited with status $ac_status" >&5
23514 echo "$as_me: failed program was:" >&5
23515 sed 's/^/| /' conftest.$ac_ext >&5
23517 ( exit $ac_status )
23518 ac_cv_c_bigendian=yes
23520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23528 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23529 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23530 case $ac_cv_c_bigendian in
23531 yes)
23533 cat >>confdefs.h <<\_ACEOF
23534 #define WORDS_BIGENDIAN 1
23535 _ACEOF
23540 { { echo "$as_me:$LINENO: error: unknown endianness
23541 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23542 echo "$as_me: error: unknown endianness
23543 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23544 { (exit 1); exit 1; }; } ;;
23545 esac
23548 # Check whether right shifting a negative integer extends the sign bit
23549 # or fills with zeros (like the Cray J90, according to Tim Peters).
23550 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23551 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23552 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23553 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 else
23556 if test "$cross_compiling" = yes; then
23557 ac_cv_rshift_extends_sign=yes
23558 else
23559 cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h. */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23566 int main()
23568 exit(((-1)>>3 == -1) ? 0 : 1);
23571 _ACEOF
23572 rm -f conftest$ac_exeext
23573 if { (ac_try="$ac_link"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23577 esac
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_link") 2>&5
23580 ac_status=$?
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23583 { (case "(($ac_try" in
23584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585 *) ac_try_echo=$ac_try;;
23586 esac
23587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23588 (eval "$ac_try") 2>&5
23589 ac_status=$?
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; }; then
23592 ac_cv_rshift_extends_sign=yes
23593 else
23594 echo "$as_me: program exited with status $ac_status" >&5
23595 echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23598 ( exit $ac_status )
23599 ac_cv_rshift_extends_sign=no
23601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23607 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23608 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23609 if test "$ac_cv_rshift_extends_sign" = no
23610 then
23612 cat >>confdefs.h <<\_ACEOF
23613 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23614 _ACEOF
23618 # check for getc_unlocked and related locking functions
23619 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23620 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23621 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23622 echo $ECHO_N "(cached) $ECHO_C" >&6
23623 else
23625 cat >conftest.$ac_ext <<_ACEOF
23626 /* confdefs.h. */
23627 _ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23631 #include <stdio.h>
23633 main ()
23636 FILE *f = fopen("/dev/null", "r");
23637 flockfile(f);
23638 getc_unlocked(f);
23639 funlockfile(f);
23642 return 0;
23644 _ACEOF
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (ac_try="$ac_link"
23647 case "(($ac_try" in
23648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649 *) ac_try_echo=$ac_try;;
23650 esac
23651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23652 (eval "$ac_link") 2>conftest.er1
23653 ac_status=$?
23654 grep -v '^ *+' conftest.er1 >conftest.err
23655 rm -f conftest.er1
23656 cat conftest.err >&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } && {
23659 test -z "$ac_c_werror_flag" ||
23660 test ! -s conftest.err
23661 } && test -s conftest$ac_exeext &&
23662 $as_test_x conftest$ac_exeext; then
23663 ac_cv_have_getc_unlocked=yes
23664 else
23665 echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23668 ac_cv_have_getc_unlocked=no
23671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23672 conftest$ac_exeext conftest.$ac_ext
23675 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23676 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23677 if test "$ac_cv_have_getc_unlocked" = yes
23678 then
23680 cat >>confdefs.h <<\_ACEOF
23681 #define HAVE_GETC_UNLOCKED 1
23682 _ACEOF
23686 # check where readline lives
23687 # save the value of LIBS so we don't actually link Python with readline
23688 LIBS_no_readline=$LIBS
23690 # On some systems we need to link readline to a termcap compatible
23691 # library. NOTE: Keep the precedence of listed libraries synchronised
23692 # with setup.py.
23693 py_cv_lib_readline=no
23694 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23695 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23696 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23697 if test -z "$py_libtermcap"; then
23698 READLINE_LIBS="-lreadline"
23699 else
23700 READLINE_LIBS="-lreadline -l$py_libtermcap"
23702 LIBS="$READLINE_LIBS $LIBS_no_readline"
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h. */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23710 /* Override any GCC internal prototype to avoid an error.
23711 Use char because int might match the return type of a GCC
23712 builtin and then its argument prototype would still apply. */
23713 #ifdef __cplusplus
23714 extern "C"
23715 #endif
23716 char readline ();
23718 main ()
23720 return readline ();
23722 return 0;
23724 _ACEOF
23725 rm -f conftest.$ac_objext conftest$ac_exeext
23726 if { (ac_try="$ac_link"
23727 case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23730 esac
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732 (eval "$ac_link") 2>conftest.er1
23733 ac_status=$?
23734 grep -v '^ *+' conftest.er1 >conftest.err
23735 rm -f conftest.er1
23736 cat conftest.err >&5
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } && {
23739 test -z "$ac_c_werror_flag" ||
23740 test ! -s conftest.err
23741 } && test -s conftest$ac_exeext &&
23742 $as_test_x conftest$ac_exeext; then
23743 py_cv_lib_readline=yes
23744 else
23745 echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23752 conftest$ac_exeext conftest.$ac_ext
23753 if test $py_cv_lib_readline = yes; then
23754 break
23756 done
23757 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23758 #AC_SUBST([READLINE_LIBS])
23759 if test $py_cv_lib_readline = no; then
23760 { echo "$as_me:$LINENO: result: none" >&5
23761 echo "${ECHO_T}none" >&6; }
23762 else
23763 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23764 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23766 cat >>confdefs.h <<\_ACEOF
23767 #define HAVE_LIBREADLINE 1
23768 _ACEOF
23772 # check for readline 2.1
23773 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23774 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23775 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23776 echo $ECHO_N "(cached) $ECHO_C" >&6
23777 else
23778 ac_check_lib_save_LIBS=$LIBS
23779 LIBS="-lreadline $READLINE_LIBS $LIBS"
23780 cat >conftest.$ac_ext <<_ACEOF
23781 /* confdefs.h. */
23782 _ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h. */
23787 /* Override any GCC internal prototype to avoid an error.
23788 Use char because int might match the return type of a GCC
23789 builtin and then its argument prototype would still apply. */
23790 #ifdef __cplusplus
23791 extern "C"
23792 #endif
23793 char rl_callback_handler_install ();
23795 main ()
23797 return rl_callback_handler_install ();
23799 return 0;
23801 _ACEOF
23802 rm -f conftest.$ac_objext conftest$ac_exeext
23803 if { (ac_try="$ac_link"
23804 case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23807 esac
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809 (eval "$ac_link") 2>conftest.er1
23810 ac_status=$?
23811 grep -v '^ *+' conftest.er1 >conftest.err
23812 rm -f conftest.er1
23813 cat conftest.err >&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } && {
23816 test -z "$ac_c_werror_flag" ||
23817 test ! -s conftest.err
23818 } && test -s conftest$ac_exeext &&
23819 $as_test_x conftest$ac_exeext; then
23820 ac_cv_lib_readline_rl_callback_handler_install=yes
23821 else
23822 echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23825 ac_cv_lib_readline_rl_callback_handler_install=no
23828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23829 conftest$ac_exeext conftest.$ac_ext
23830 LIBS=$ac_check_lib_save_LIBS
23832 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23833 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23834 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23836 cat >>confdefs.h <<\_ACEOF
23837 #define HAVE_RL_CALLBACK 1
23838 _ACEOF
23843 # check for readline 2.2
23844 cat >conftest.$ac_ext <<_ACEOF
23845 /* confdefs.h. */
23846 _ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850 #include <readline/readline.h>
23851 _ACEOF
23852 if { (ac_try="$ac_cpp conftest.$ac_ext"
23853 case "(($ac_try" in
23854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855 *) ac_try_echo=$ac_try;;
23856 esac
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23859 ac_status=$?
23860 grep -v '^ *+' conftest.er1 >conftest.err
23861 rm -f conftest.er1
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } >/dev/null && {
23865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23866 test ! -s conftest.err
23867 }; then
23868 have_readline=yes
23869 else
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23873 have_readline=no
23876 rm -f conftest.err conftest.$ac_ext
23877 if test $have_readline = yes
23878 then
23879 cat >conftest.$ac_ext <<_ACEOF
23880 /* confdefs.h. */
23881 _ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23885 #include <readline/readline.h>
23887 _ACEOF
23888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23889 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23891 cat >>confdefs.h <<\_ACEOF
23892 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23893 _ACEOF
23896 rm -f conftest*
23900 # check for readline 4.0
23901 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23902 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23903 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23904 echo $ECHO_N "(cached) $ECHO_C" >&6
23905 else
23906 ac_check_lib_save_LIBS=$LIBS
23907 LIBS="-lreadline $READLINE_LIBS $LIBS"
23908 cat >conftest.$ac_ext <<_ACEOF
23909 /* confdefs.h. */
23910 _ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23915 /* Override any GCC internal prototype to avoid an error.
23916 Use char because int might match the return type of a GCC
23917 builtin and then its argument prototype would still apply. */
23918 #ifdef __cplusplus
23919 extern "C"
23920 #endif
23921 char rl_pre_input_hook ();
23923 main ()
23925 return rl_pre_input_hook ();
23927 return 0;
23929 _ACEOF
23930 rm -f conftest.$ac_objext conftest$ac_exeext
23931 if { (ac_try="$ac_link"
23932 case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23935 esac
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_link") 2>conftest.er1
23938 ac_status=$?
23939 grep -v '^ *+' conftest.er1 >conftest.err
23940 rm -f conftest.er1
23941 cat conftest.err >&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); } && {
23944 test -z "$ac_c_werror_flag" ||
23945 test ! -s conftest.err
23946 } && test -s conftest$ac_exeext &&
23947 $as_test_x conftest$ac_exeext; then
23948 ac_cv_lib_readline_rl_pre_input_hook=yes
23949 else
23950 echo "$as_me: failed program was:" >&5
23951 sed 's/^/| /' conftest.$ac_ext >&5
23953 ac_cv_lib_readline_rl_pre_input_hook=no
23956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23957 conftest$ac_exeext conftest.$ac_ext
23958 LIBS=$ac_check_lib_save_LIBS
23960 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23961 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23962 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_RL_PRE_INPUT_HOOK 1
23966 _ACEOF
23971 # also in 4.0
23972 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23973 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23974 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23976 else
23977 ac_check_lib_save_LIBS=$LIBS
23978 LIBS="-lreadline $READLINE_LIBS $LIBS"
23979 cat >conftest.$ac_ext <<_ACEOF
23980 /* confdefs.h. */
23981 _ACEOF
23982 cat confdefs.h >>conftest.$ac_ext
23983 cat >>conftest.$ac_ext <<_ACEOF
23984 /* end confdefs.h. */
23986 /* Override any GCC internal prototype to avoid an error.
23987 Use char because int might match the return type of a GCC
23988 builtin and then its argument prototype would still apply. */
23989 #ifdef __cplusplus
23990 extern "C"
23991 #endif
23992 char rl_completion_display_matches_hook ();
23994 main ()
23996 return rl_completion_display_matches_hook ();
23998 return 0;
24000 _ACEOF
24001 rm -f conftest.$ac_objext conftest$ac_exeext
24002 if { (ac_try="$ac_link"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_link") 2>conftest.er1
24009 ac_status=$?
24010 grep -v '^ *+' conftest.er1 >conftest.err
24011 rm -f conftest.er1
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } && {
24015 test -z "$ac_c_werror_flag" ||
24016 test ! -s conftest.err
24017 } && test -s conftest$ac_exeext &&
24018 $as_test_x conftest$ac_exeext; then
24019 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24020 else
24021 echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24024 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24028 conftest$ac_exeext conftest.$ac_ext
24029 LIBS=$ac_check_lib_save_LIBS
24031 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24032 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24033 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24035 cat >>confdefs.h <<\_ACEOF
24036 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24037 _ACEOF
24042 # check for readline 4.2
24043 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24044 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24045 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
24047 else
24048 ac_check_lib_save_LIBS=$LIBS
24049 LIBS="-lreadline $READLINE_LIBS $LIBS"
24050 cat >conftest.$ac_ext <<_ACEOF
24051 /* confdefs.h. */
24052 _ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h. */
24057 /* Override any GCC internal prototype to avoid an error.
24058 Use char because int might match the return type of a GCC
24059 builtin and then its argument prototype would still apply. */
24060 #ifdef __cplusplus
24061 extern "C"
24062 #endif
24063 char rl_completion_matches ();
24065 main ()
24067 return rl_completion_matches ();
24069 return 0;
24071 _ACEOF
24072 rm -f conftest.$ac_objext conftest$ac_exeext
24073 if { (ac_try="$ac_link"
24074 case "(($ac_try" in
24075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076 *) ac_try_echo=$ac_try;;
24077 esac
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079 (eval "$ac_link") 2>conftest.er1
24080 ac_status=$?
24081 grep -v '^ *+' conftest.er1 >conftest.err
24082 rm -f conftest.er1
24083 cat conftest.err >&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); } && {
24086 test -z "$ac_c_werror_flag" ||
24087 test ! -s conftest.err
24088 } && test -s conftest$ac_exeext &&
24089 $as_test_x conftest$ac_exeext; then
24090 ac_cv_lib_readline_rl_completion_matches=yes
24091 else
24092 echo "$as_me: failed program was:" >&5
24093 sed 's/^/| /' conftest.$ac_ext >&5
24095 ac_cv_lib_readline_rl_completion_matches=no
24098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24099 conftest$ac_exeext conftest.$ac_ext
24100 LIBS=$ac_check_lib_save_LIBS
24102 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24103 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24104 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24106 cat >>confdefs.h <<\_ACEOF
24107 #define HAVE_RL_COMPLETION_MATCHES 1
24108 _ACEOF
24113 # also in readline 4.2
24114 cat >conftest.$ac_ext <<_ACEOF
24115 /* confdefs.h. */
24116 _ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h. */
24120 #include <readline/readline.h>
24121 _ACEOF
24122 if { (ac_try="$ac_cpp conftest.$ac_ext"
24123 case "(($ac_try" in
24124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24126 esac
24127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24129 ac_status=$?
24130 grep -v '^ *+' conftest.er1 >conftest.err
24131 rm -f conftest.er1
24132 cat conftest.err >&5
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } >/dev/null && {
24135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24136 test ! -s conftest.err
24137 }; then
24138 have_readline=yes
24139 else
24140 echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24143 have_readline=no
24146 rm -f conftest.err conftest.$ac_ext
24147 if test $have_readline = yes
24148 then
24149 cat >conftest.$ac_ext <<_ACEOF
24150 /* confdefs.h. */
24151 _ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h. */
24155 #include <readline/readline.h>
24157 _ACEOF
24158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24159 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24161 cat >>confdefs.h <<\_ACEOF
24162 #define HAVE_RL_CATCH_SIGNAL 1
24163 _ACEOF
24166 rm -f conftest*
24170 # End of readline checks: restore LIBS
24171 LIBS=$LIBS_no_readline
24173 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24174 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24175 if test "${ac_cv_broken_nice+set}" = set; then
24176 echo $ECHO_N "(cached) $ECHO_C" >&6
24177 else
24179 if test "$cross_compiling" = yes; then
24180 ac_cv_broken_nice=no
24181 else
24182 cat >conftest.$ac_ext <<_ACEOF
24183 /* confdefs.h. */
24184 _ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24189 int main()
24191 int val1 = nice(1);
24192 if (val1 != -1 && val1 == nice(2))
24193 exit(0);
24194 exit(1);
24197 _ACEOF
24198 rm -f conftest$ac_exeext
24199 if { (ac_try="$ac_link"
24200 case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24203 esac
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_link") 2>&5
24206 ac_status=$?
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24209 { (case "(($ac_try" in
24210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24211 *) ac_try_echo=$ac_try;;
24212 esac
24213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24214 (eval "$ac_try") 2>&5
24215 ac_status=$?
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); }; }; then
24218 ac_cv_broken_nice=yes
24219 else
24220 echo "$as_me: program exited with status $ac_status" >&5
24221 echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24224 ( exit $ac_status )
24225 ac_cv_broken_nice=no
24227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24233 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24234 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24235 if test "$ac_cv_broken_nice" = yes
24236 then
24238 cat >>confdefs.h <<\_ACEOF
24239 #define HAVE_BROKEN_NICE 1
24240 _ACEOF
24244 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24245 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24246 if test "$cross_compiling" = yes; then
24247 ac_cv_broken_poll=no
24248 else
24249 cat >conftest.$ac_ext <<_ACEOF
24250 /* confdefs.h. */
24251 _ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h. */
24256 #include <poll.h>
24258 int main (void)
24260 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24262 close (42);
24264 int poll_test = poll (&poll_struct, 1, 0);
24266 if (poll_test < 0)
24268 exit(0);
24270 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24272 exit(0);
24274 else
24276 exit(1);
24280 _ACEOF
24281 rm -f conftest$ac_exeext
24282 if { (ac_try="$ac_link"
24283 case "(($ac_try" in
24284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285 *) ac_try_echo=$ac_try;;
24286 esac
24287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24288 (eval "$ac_link") 2>&5
24289 ac_status=$?
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24292 { (case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24295 esac
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_try") 2>&5
24298 ac_status=$?
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); }; }; then
24301 ac_cv_broken_poll=yes
24302 else
24303 echo "$as_me: program exited with status $ac_status" >&5
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24307 ( exit $ac_status )
24308 ac_cv_broken_poll=no
24310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24314 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24315 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24316 if test "$ac_cv_broken_poll" = yes
24317 then
24319 cat >>confdefs.h <<\_ACEOF
24320 #define HAVE_BROKEN_POLL 1
24321 _ACEOF
24325 # Before we can test tzset, we need to check if struct tm has a tm_zone
24326 # (which is not required by ISO C or UNIX spec) and/or if we support
24327 # tzname[]
24328 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24329 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24330 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24332 else
24333 cat >conftest.$ac_ext <<_ACEOF
24334 /* confdefs.h. */
24335 _ACEOF
24336 cat confdefs.h >>conftest.$ac_ext
24337 cat >>conftest.$ac_ext <<_ACEOF
24338 /* end confdefs.h. */
24339 #include <sys/types.h>
24340 #include <$ac_cv_struct_tm>
24344 main ()
24346 static struct tm ac_aggr;
24347 if (ac_aggr.tm_zone)
24348 return 0;
24350 return 0;
24352 _ACEOF
24353 rm -f conftest.$ac_objext
24354 if { (ac_try="$ac_compile"
24355 case "(($ac_try" in
24356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24357 *) ac_try_echo=$ac_try;;
24358 esac
24359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24360 (eval "$ac_compile") 2>conftest.er1
24361 ac_status=$?
24362 grep -v '^ *+' conftest.er1 >conftest.err
24363 rm -f conftest.er1
24364 cat conftest.err >&5
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); } && {
24367 test -z "$ac_c_werror_flag" ||
24368 test ! -s conftest.err
24369 } && test -s conftest.$ac_objext; then
24370 ac_cv_member_struct_tm_tm_zone=yes
24371 else
24372 echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.$ac_ext >&5
24375 cat >conftest.$ac_ext <<_ACEOF
24376 /* confdefs.h. */
24377 _ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 #include <sys/types.h>
24382 #include <$ac_cv_struct_tm>
24386 main ()
24388 static struct tm ac_aggr;
24389 if (sizeof ac_aggr.tm_zone)
24390 return 0;
24392 return 0;
24394 _ACEOF
24395 rm -f conftest.$ac_objext
24396 if { (ac_try="$ac_compile"
24397 case "(($ac_try" in
24398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24400 esac
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_compile") 2>conftest.er1
24403 ac_status=$?
24404 grep -v '^ *+' conftest.er1 >conftest.err
24405 rm -f conftest.er1
24406 cat conftest.err >&5
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); } && {
24409 test -z "$ac_c_werror_flag" ||
24410 test ! -s conftest.err
24411 } && test -s conftest.$ac_objext; then
24412 ac_cv_member_struct_tm_tm_zone=yes
24413 else
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24417 ac_cv_member_struct_tm_tm_zone=no
24420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24425 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24426 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24427 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24429 cat >>confdefs.h <<_ACEOF
24430 #define HAVE_STRUCT_TM_TM_ZONE 1
24431 _ACEOF
24436 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24438 cat >>confdefs.h <<\_ACEOF
24439 #define HAVE_TM_ZONE 1
24440 _ACEOF
24442 else
24443 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24444 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24445 if test "${ac_cv_have_decl_tzname+set}" = set; then
24446 echo $ECHO_N "(cached) $ECHO_C" >&6
24447 else
24448 cat >conftest.$ac_ext <<_ACEOF
24449 /* confdefs.h. */
24450 _ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h. */
24454 #include <time.h>
24457 main ()
24459 #ifndef tzname
24460 (void) tzname;
24461 #endif
24464 return 0;
24466 _ACEOF
24467 rm -f conftest.$ac_objext
24468 if { (ac_try="$ac_compile"
24469 case "(($ac_try" in
24470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471 *) ac_try_echo=$ac_try;;
24472 esac
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474 (eval "$ac_compile") 2>conftest.er1
24475 ac_status=$?
24476 grep -v '^ *+' conftest.er1 >conftest.err
24477 rm -f conftest.er1
24478 cat conftest.err >&5
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } && {
24481 test -z "$ac_c_werror_flag" ||
24482 test ! -s conftest.err
24483 } && test -s conftest.$ac_objext; then
24484 ac_cv_have_decl_tzname=yes
24485 else
24486 echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24489 ac_cv_have_decl_tzname=no
24492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24495 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24496 if test $ac_cv_have_decl_tzname = yes; then
24498 cat >>confdefs.h <<_ACEOF
24499 #define HAVE_DECL_TZNAME 1
24500 _ACEOF
24503 else
24504 cat >>confdefs.h <<_ACEOF
24505 #define HAVE_DECL_TZNAME 0
24506 _ACEOF
24512 { echo "$as_me:$LINENO: checking for tzname" >&5
24513 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24514 if test "${ac_cv_var_tzname+set}" = set; then
24515 echo $ECHO_N "(cached) $ECHO_C" >&6
24516 else
24517 cat >conftest.$ac_ext <<_ACEOF
24518 /* confdefs.h. */
24519 _ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h. */
24523 #include <time.h>
24524 #if !HAVE_DECL_TZNAME
24525 extern char *tzname[];
24526 #endif
24529 main ()
24531 return tzname[0][0];
24533 return 0;
24535 _ACEOF
24536 rm -f conftest.$ac_objext conftest$ac_exeext
24537 if { (ac_try="$ac_link"
24538 case "(($ac_try" in
24539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24540 *) ac_try_echo=$ac_try;;
24541 esac
24542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24543 (eval "$ac_link") 2>conftest.er1
24544 ac_status=$?
24545 grep -v '^ *+' conftest.er1 >conftest.err
24546 rm -f conftest.er1
24547 cat conftest.err >&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } && {
24550 test -z "$ac_c_werror_flag" ||
24551 test ! -s conftest.err
24552 } && test -s conftest$ac_exeext &&
24553 $as_test_x conftest$ac_exeext; then
24554 ac_cv_var_tzname=yes
24555 else
24556 echo "$as_me: failed program was:" >&5
24557 sed 's/^/| /' conftest.$ac_ext >&5
24559 ac_cv_var_tzname=no
24562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24563 conftest$ac_exeext conftest.$ac_ext
24565 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24566 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24567 if test $ac_cv_var_tzname = yes; then
24569 cat >>confdefs.h <<\_ACEOF
24570 #define HAVE_TZNAME 1
24571 _ACEOF
24577 # check tzset(3) exists and works like we expect it to
24578 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24579 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24580 if test "${ac_cv_working_tzset+set}" = set; then
24581 echo $ECHO_N "(cached) $ECHO_C" >&6
24582 else
24584 if test "$cross_compiling" = yes; then
24585 ac_cv_working_tzset=no
24586 else
24587 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h. */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24594 #include <stdlib.h>
24595 #include <time.h>
24596 #include <string.h>
24598 #if HAVE_TZNAME
24599 extern char *tzname[];
24600 #endif
24602 int main()
24604 /* Note that we need to ensure that not only does tzset(3)
24605 do 'something' with localtime, but it works as documented
24606 in the library reference and as expected by the test suite.
24607 This includes making sure that tzname is set properly if
24608 tm->tm_zone does not exist since it is the alternative way
24609 of getting timezone info.
24611 Red Hat 6.2 doesn't understand the southern hemisphere
24612 after New Year's Day.
24615 time_t groundhogday = 1044144000; /* GMT-based */
24616 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24618 putenv("TZ=UTC+0");
24619 tzset();
24620 if (localtime(&groundhogday)->tm_hour != 0)
24621 exit(1);
24622 #if HAVE_TZNAME
24623 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24624 if (strcmp(tzname[0], "UTC") ||
24625 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24626 exit(1);
24627 #endif
24629 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24630 tzset();
24631 if (localtime(&groundhogday)->tm_hour != 19)
24632 exit(1);
24633 #if HAVE_TZNAME
24634 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24635 exit(1);
24636 #endif
24638 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24639 tzset();
24640 if (localtime(&groundhogday)->tm_hour != 11)
24641 exit(1);
24642 #if HAVE_TZNAME
24643 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24644 exit(1);
24645 #endif
24647 #if HAVE_STRUCT_TM_TM_ZONE
24648 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24649 exit(1);
24650 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24651 exit(1);
24652 #endif
24654 exit(0);
24657 _ACEOF
24658 rm -f conftest$ac_exeext
24659 if { (ac_try="$ac_link"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_link") 2>&5
24666 ac_status=$?
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24669 { (case "(($ac_try" in
24670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24672 esac
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_try") 2>&5
24675 ac_status=$?
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; }; then
24678 ac_cv_working_tzset=yes
24679 else
24680 echo "$as_me: program exited with status $ac_status" >&5
24681 echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24684 ( exit $ac_status )
24685 ac_cv_working_tzset=no
24687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24693 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24694 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24695 if test "$ac_cv_working_tzset" = yes
24696 then
24698 cat >>confdefs.h <<\_ACEOF
24699 #define HAVE_WORKING_TZSET 1
24700 _ACEOF
24704 # Look for subsecond timestamps in struct stat
24705 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24706 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24707 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24708 echo $ECHO_N "(cached) $ECHO_C" >&6
24709 else
24710 cat >conftest.$ac_ext <<_ACEOF
24711 /* confdefs.h. */
24712 _ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24716 #include <sys/stat.h>
24718 main ()
24721 struct stat st;
24722 st.st_mtim.tv_nsec = 1;
24725 return 0;
24727 _ACEOF
24728 rm -f conftest.$ac_objext
24729 if { (ac_try="$ac_compile"
24730 case "(($ac_try" in
24731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732 *) ac_try_echo=$ac_try;;
24733 esac
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735 (eval "$ac_compile") 2>conftest.er1
24736 ac_status=$?
24737 grep -v '^ *+' conftest.er1 >conftest.err
24738 rm -f conftest.er1
24739 cat conftest.err >&5
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); } && {
24742 test -z "$ac_c_werror_flag" ||
24743 test ! -s conftest.err
24744 } && test -s conftest.$ac_objext; then
24745 ac_cv_stat_tv_nsec=yes
24746 else
24747 echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24750 ac_cv_stat_tv_nsec=no
24753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24756 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24757 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24758 if test "$ac_cv_stat_tv_nsec" = yes
24759 then
24761 cat >>confdefs.h <<\_ACEOF
24762 #define HAVE_STAT_TV_NSEC 1
24763 _ACEOF
24767 # Look for BSD style subsecond timestamps in struct stat
24768 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24769 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24770 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773 cat >conftest.$ac_ext <<_ACEOF
24774 /* confdefs.h. */
24775 _ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24779 #include <sys/stat.h>
24781 main ()
24784 struct stat st;
24785 st.st_mtimespec.tv_nsec = 1;
24788 return 0;
24790 _ACEOF
24791 rm -f conftest.$ac_objext
24792 if { (ac_try="$ac_compile"
24793 case "(($ac_try" in
24794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795 *) ac_try_echo=$ac_try;;
24796 esac
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798 (eval "$ac_compile") 2>conftest.er1
24799 ac_status=$?
24800 grep -v '^ *+' conftest.er1 >conftest.err
24801 rm -f conftest.er1
24802 cat conftest.err >&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } && {
24805 test -z "$ac_c_werror_flag" ||
24806 test ! -s conftest.err
24807 } && test -s conftest.$ac_objext; then
24808 ac_cv_stat_tv_nsec2=yes
24809 else
24810 echo "$as_me: failed program was:" >&5
24811 sed 's/^/| /' conftest.$ac_ext >&5
24813 ac_cv_stat_tv_nsec2=no
24816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24820 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24821 if test "$ac_cv_stat_tv_nsec2" = yes
24822 then
24824 cat >>confdefs.h <<\_ACEOF
24825 #define HAVE_STAT_TV_NSEC2 1
24826 _ACEOF
24830 # On HP/UX 11.0, mvwdelch is a block with a return statement
24831 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24832 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24833 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24834 echo $ECHO_N "(cached) $ECHO_C" >&6
24835 else
24836 cat >conftest.$ac_ext <<_ACEOF
24837 /* confdefs.h. */
24838 _ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h. */
24842 #include <curses.h>
24844 main ()
24847 int rtn;
24848 rtn = mvwdelch(0,0,0);
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
24871 ac_cv_mvwdelch_is_expression=yes
24872 else
24873 echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.$ac_ext >&5
24876 ac_cv_mvwdelch_is_expression=no
24879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24882 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24883 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24885 if test "$ac_cv_mvwdelch_is_expression" = yes
24886 then
24888 cat >>confdefs.h <<\_ACEOF
24889 #define MVWDELCH_IS_EXPRESSION 1
24890 _ACEOF
24894 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24895 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24896 if test "${ac_cv_window_has_flags+set}" = set; then
24897 echo $ECHO_N "(cached) $ECHO_C" >&6
24898 else
24899 cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h. */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h. */
24905 #include <curses.h>
24907 main ()
24910 WINDOW *w;
24911 w->_flags = 0;
24914 return 0;
24916 _ACEOF
24917 rm -f conftest.$ac_objext
24918 if { (ac_try="$ac_compile"
24919 case "(($ac_try" in
24920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24922 esac
24923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24924 (eval "$ac_compile") 2>conftest.er1
24925 ac_status=$?
24926 grep -v '^ *+' conftest.er1 >conftest.err
24927 rm -f conftest.er1
24928 cat conftest.err >&5
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); } && {
24931 test -z "$ac_c_werror_flag" ||
24932 test ! -s conftest.err
24933 } && test -s conftest.$ac_objext; then
24934 ac_cv_window_has_flags=yes
24935 else
24936 echo "$as_me: failed program was:" >&5
24937 sed 's/^/| /' conftest.$ac_ext >&5
24939 ac_cv_window_has_flags=no
24942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24945 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24946 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24949 if test "$ac_cv_window_has_flags" = yes
24950 then
24952 cat >>confdefs.h <<\_ACEOF
24953 #define WINDOW_HAS_FLAGS 1
24954 _ACEOF
24958 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24959 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24960 cat >conftest.$ac_ext <<_ACEOF
24961 /* confdefs.h. */
24962 _ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h. */
24966 #include <curses.h>
24968 main ()
24970 void *x=is_term_resized
24972 return 0;
24974 _ACEOF
24975 rm -f conftest.$ac_objext
24976 if { (ac_try="$ac_compile"
24977 case "(($ac_try" in
24978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979 *) ac_try_echo=$ac_try;;
24980 esac
24981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24982 (eval "$ac_compile") 2>conftest.er1
24983 ac_status=$?
24984 grep -v '^ *+' conftest.er1 >conftest.err
24985 rm -f conftest.er1
24986 cat conftest.err >&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); } && {
24989 test -z "$ac_c_werror_flag" ||
24990 test ! -s conftest.err
24991 } && test -s conftest.$ac_objext; then
24993 cat >>confdefs.h <<\_ACEOF
24994 #define HAVE_CURSES_IS_TERM_RESIZED 1
24995 _ACEOF
24997 { echo "$as_me:$LINENO: result: yes" >&5
24998 echo "${ECHO_T}yes" >&6; }
24999 else
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 { echo "$as_me:$LINENO: result: no" >&5
25004 echo "${ECHO_T}no" >&6; }
25008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25010 { echo "$as_me:$LINENO: checking for resize_term" >&5
25011 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25012 cat >conftest.$ac_ext <<_ACEOF
25013 /* confdefs.h. */
25014 _ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h. */
25018 #include <curses.h>
25020 main ()
25022 void *x=resize_term
25024 return 0;
25026 _ACEOF
25027 rm -f conftest.$ac_objext
25028 if { (ac_try="$ac_compile"
25029 case "(($ac_try" in
25030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25031 *) ac_try_echo=$ac_try;;
25032 esac
25033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25034 (eval "$ac_compile") 2>conftest.er1
25035 ac_status=$?
25036 grep -v '^ *+' conftest.er1 >conftest.err
25037 rm -f conftest.er1
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && {
25041 test -z "$ac_c_werror_flag" ||
25042 test ! -s conftest.err
25043 } && test -s conftest.$ac_objext; then
25045 cat >>confdefs.h <<\_ACEOF
25046 #define HAVE_CURSES_RESIZE_TERM 1
25047 _ACEOF
25049 { echo "$as_me:$LINENO: result: yes" >&5
25050 echo "${ECHO_T}yes" >&6; }
25051 else
25052 echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25055 { echo "$as_me:$LINENO: result: no" >&5
25056 echo "${ECHO_T}no" >&6; }
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25063 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25064 cat >conftest.$ac_ext <<_ACEOF
25065 /* confdefs.h. */
25066 _ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h. */
25070 #include <curses.h>
25072 main ()
25074 void *x=resizeterm
25076 return 0;
25078 _ACEOF
25079 rm -f conftest.$ac_objext
25080 if { (ac_try="$ac_compile"
25081 case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25084 esac
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086 (eval "$ac_compile") 2>conftest.er1
25087 ac_status=$?
25088 grep -v '^ *+' conftest.er1 >conftest.err
25089 rm -f conftest.er1
25090 cat conftest.err >&5
25091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092 (exit $ac_status); } && {
25093 test -z "$ac_c_werror_flag" ||
25094 test ! -s conftest.err
25095 } && test -s conftest.$ac_objext; then
25097 cat >>confdefs.h <<\_ACEOF
25098 #define HAVE_CURSES_RESIZETERM 1
25099 _ACEOF
25101 { echo "$as_me:$LINENO: result: yes" >&5
25102 echo "${ECHO_T}yes" >&6; }
25103 else
25104 echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25107 { echo "$as_me:$LINENO: result: no" >&5
25108 echo "${ECHO_T}no" >&6; }
25112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25114 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25115 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25117 if test -r /dev/ptmx
25118 then
25119 { echo "$as_me:$LINENO: result: yes" >&5
25120 echo "${ECHO_T}yes" >&6; }
25122 cat >>confdefs.h <<\_ACEOF
25123 #define HAVE_DEV_PTMX 1
25124 _ACEOF
25126 else
25127 { echo "$as_me:$LINENO: result: no" >&5
25128 echo "${ECHO_T}no" >&6; }
25131 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25132 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25134 if test -r /dev/ptc
25135 then
25136 { echo "$as_me:$LINENO: result: yes" >&5
25137 echo "${ECHO_T}yes" >&6; }
25139 cat >>confdefs.h <<\_ACEOF
25140 #define HAVE_DEV_PTC 1
25141 _ACEOF
25143 else
25144 { echo "$as_me:$LINENO: result: no" >&5
25145 echo "${ECHO_T}no" >&6; }
25148 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25149 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25150 if test "$cross_compiling" = yes; then
25151 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25152 See \`config.log' for more details." >&5
25153 echo "$as_me: error: cannot run test program while cross compiling
25154 See \`config.log' for more details." >&2;}
25155 { (exit 1); exit 1; }; }
25156 else
25157 cat >conftest.$ac_ext <<_ACEOF
25158 /* confdefs.h. */
25159 _ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h. */
25163 #include <stdio.h>
25164 #include <stddef.h>
25165 #include <string.h>
25167 #ifdef HAVE_SYS_TYPES_H
25168 #include <sys/types.h>
25169 #endif
25171 #ifdef HAVE_SSIZE_T
25172 typedef ssize_t Py_ssize_t;
25173 #elif SIZEOF_VOID_P == SIZEOF_LONG
25174 typedef long Py_ssize_t;
25175 #else
25176 typedef int Py_ssize_t;
25177 #endif
25179 int main()
25181 char buffer[256];
25183 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25184 return 1;
25186 if (strcmp(buffer, "123"))
25187 return 1;
25189 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25190 return 1;
25192 if (strcmp(buffer, "-123"))
25193 return 1;
25195 return 0;
25197 _ACEOF
25198 rm -f conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25203 esac
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>&5
25206 ac_status=$?
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25209 { (case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25212 esac
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_try") 2>&5
25215 ac_status=$?
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); }; }; then
25218 { echo "$as_me:$LINENO: result: yes" >&5
25219 echo "${ECHO_T}yes" >&6; }
25221 cat >>confdefs.h <<\_ACEOF
25222 #define PY_FORMAT_SIZE_T "z"
25223 _ACEOF
25225 else
25226 echo "$as_me: program exited with status $ac_status" >&5
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ( exit $ac_status )
25231 { echo "$as_me:$LINENO: result: no" >&5
25232 echo "${ECHO_T}no" >&6; }
25234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25239 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25240 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25241 if test "${ac_cv_type_socklen_t+set}" = set; then
25242 echo $ECHO_N "(cached) $ECHO_C" >&6
25243 else
25244 cat >conftest.$ac_ext <<_ACEOF
25245 /* confdefs.h. */
25246 _ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25251 #ifdef HAVE_SYS_TYPES_H
25252 #include <sys/types.h>
25253 #endif
25254 #ifdef HAVE_SYS_SOCKET_H
25255 #include <sys/socket.h>
25256 #endif
25259 typedef socklen_t ac__type_new_;
25261 main ()
25263 if ((ac__type_new_ *) 0)
25264 return 0;
25265 if (sizeof (ac__type_new_))
25266 return 0;
25268 return 0;
25270 _ACEOF
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25276 esac
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278 (eval "$ac_compile") 2>conftest.er1
25279 ac_status=$?
25280 grep -v '^ *+' conftest.er1 >conftest.err
25281 rm -f conftest.er1
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } && {
25285 test -z "$ac_c_werror_flag" ||
25286 test ! -s conftest.err
25287 } && test -s conftest.$ac_objext; then
25288 ac_cv_type_socklen_t=yes
25289 else
25290 echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25293 ac_cv_type_socklen_t=no
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25298 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25299 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25300 if test $ac_cv_type_socklen_t = yes; then
25302 else
25304 cat >>confdefs.h <<\_ACEOF
25305 #define socklen_t int
25306 _ACEOF
25311 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25312 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25313 if test "$cross_compiling" = yes; then
25314 ac_cv_broken_mbstowcs=no
25315 else
25316 cat >conftest.$ac_ext <<_ACEOF
25317 /* confdefs.h. */
25318 _ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25323 #include<stdlib.h>
25324 int main() {
25325 size_t len = -1;
25326 const char *str = "text";
25327 len = mbstowcs(NULL, str, 0);
25328 return (len != 4);
25331 _ACEOF
25332 rm -f conftest$ac_exeext
25333 if { (ac_try="$ac_link"
25334 case "(($ac_try" in
25335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336 *) ac_try_echo=$ac_try;;
25337 esac
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339 (eval "$ac_link") 2>&5
25340 ac_status=$?
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25343 { (case "(($ac_try" in
25344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345 *) ac_try_echo=$ac_try;;
25346 esac
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348 (eval "$ac_try") 2>&5
25349 ac_status=$?
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); }; }; then
25352 ac_cv_broken_mbstowcs=no
25353 else
25354 echo "$as_me: program exited with status $ac_status" >&5
25355 echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25358 ( exit $ac_status )
25359 ac_cv_broken_mbstowcs=yes
25361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25365 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25366 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25367 if test "$ac_cv_broken_mbstowcs" = yes
25368 then
25370 cat >>confdefs.h <<\_ACEOF
25371 #define HAVE_BROKEN_MBSTOWCS 1
25372 _ACEOF
25376 # Check for --with-computed-gotos
25377 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25378 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25380 # Check whether --with-computed-gotos was given.
25381 if test "${with_computed_gotos+set}" = set; then
25382 withval=$with_computed_gotos;
25383 if test "$withval" != no
25384 then
25386 cat >>confdefs.h <<\_ACEOF
25387 #define USE_COMPUTED_GOTOS 1
25388 _ACEOF
25390 { echo "$as_me:$LINENO: result: yes" >&5
25391 echo "${ECHO_T}yes" >&6; }
25392 else { echo "$as_me:$LINENO: result: no" >&5
25393 echo "${ECHO_T}no" >&6; }
25395 else
25396 { echo "$as_me:$LINENO: result: no" >&5
25397 echo "${ECHO_T}no" >&6; }
25404 for h in `(cd $srcdir;echo Python/thread_*.h)`
25406 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25407 done
25410 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25411 { echo "$as_me:$LINENO: checking for build directories" >&5
25412 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25413 for dir in $SRCDIRS; do
25414 if test ! -d $dir; then
25415 mkdir $dir
25417 done
25418 { echo "$as_me:$LINENO: result: done" >&5
25419 echo "${ECHO_T}done" >&6; }
25421 # generate output files
25422 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25424 cat >confcache <<\_ACEOF
25425 # This file is a shell script that caches the results of configure
25426 # tests run on this system so they can be shared between configure
25427 # scripts and configure runs, see configure's option --config-cache.
25428 # It is not useful on other systems. If it contains results you don't
25429 # want to keep, you may remove or edit it.
25431 # config.status only pays attention to the cache file if you give it
25432 # the --recheck option to rerun configure.
25434 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25436 # following values.
25438 _ACEOF
25440 # The following way of writing the cache mishandles newlines in values,
25441 # but we know of no workaround that is simple, portable, and efficient.
25442 # So, we kill variables containing newlines.
25443 # Ultrix sh set writes to stderr and can't be redirected directly,
25444 # and sets the high bit in the cache file unless we assign to the vars.
25446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25447 eval ac_val=\$$ac_var
25448 case $ac_val in #(
25449 *${as_nl}*)
25450 case $ac_var in #(
25451 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25452 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25453 esac
25454 case $ac_var in #(
25455 _ | IFS | as_nl) ;; #(
25456 *) $as_unset $ac_var ;;
25457 esac ;;
25458 esac
25459 done
25461 (set) 2>&1 |
25462 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25463 *${as_nl}ac_space=\ *)
25464 # `set' does not quote correctly, so add quotes (double-quote
25465 # substitution turns \\\\ into \\, and sed turns \\ into \).
25466 sed -n \
25467 "s/'/'\\\\''/g;
25468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25469 ;; #(
25471 # `set' quotes correctly as required by POSIX, so do not add quotes.
25472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25474 esac |
25475 sort
25477 sed '
25478 /^ac_cv_env_/b end
25479 t clear
25480 :clear
25481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25482 t end
25483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25484 :end' >>confcache
25485 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25486 if test -w "$cache_file"; then
25487 test "x$cache_file" != "x/dev/null" &&
25488 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25489 echo "$as_me: updating cache $cache_file" >&6;}
25490 cat confcache >$cache_file
25491 else
25492 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25493 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25496 rm -f confcache
25498 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25499 # Let make expand exec_prefix.
25500 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25502 DEFS=-DHAVE_CONFIG_H
25504 ac_libobjs=
25505 ac_ltlibobjs=
25506 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25507 # 1. Remove the extension, and $U if already installed.
25508 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25509 ac_i=`echo "$ac_i" | sed "$ac_script"`
25510 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25511 # will be set to the directory where LIBOBJS objects are built.
25512 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25513 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25514 done
25515 LIBOBJS=$ac_libobjs
25517 LTLIBOBJS=$ac_ltlibobjs
25521 : ${CONFIG_STATUS=./config.status}
25522 ac_clean_files_save=$ac_clean_files
25523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25524 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25525 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25526 cat >$CONFIG_STATUS <<_ACEOF
25527 #! $SHELL
25528 # Generated by $as_me.
25529 # Run this file to recreate the current configuration.
25530 # Compiler output produced by configure, useful for debugging
25531 # configure, is in config.log if it exists.
25533 debug=false
25534 ac_cs_recheck=false
25535 ac_cs_silent=false
25536 SHELL=\${CONFIG_SHELL-$SHELL}
25537 _ACEOF
25539 cat >>$CONFIG_STATUS <<\_ACEOF
25540 ## --------------------- ##
25541 ## M4sh Initialization. ##
25542 ## --------------------- ##
25544 # Be more Bourne compatible
25545 DUALCASE=1; export DUALCASE # for MKS sh
25546 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25547 emulate sh
25548 NULLCMD=:
25549 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25550 # is contrary to our usage. Disable this feature.
25551 alias -g '${1+"$@"}'='"$@"'
25552 setopt NO_GLOB_SUBST
25553 else
25554 case `(set -o) 2>/dev/null` in
25555 *posix*) set -o posix ;;
25556 esac
25563 # PATH needs CR
25564 # Avoid depending upon Character Ranges.
25565 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25566 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25567 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25568 as_cr_digits='0123456789'
25569 as_cr_alnum=$as_cr_Letters$as_cr_digits
25571 # The user is always right.
25572 if test "${PATH_SEPARATOR+set}" != set; then
25573 echo "#! /bin/sh" >conf$$.sh
25574 echo "exit 0" >>conf$$.sh
25575 chmod +x conf$$.sh
25576 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25577 PATH_SEPARATOR=';'
25578 else
25579 PATH_SEPARATOR=:
25581 rm -f conf$$.sh
25584 # Support unset when possible.
25585 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25586 as_unset=unset
25587 else
25588 as_unset=false
25592 # IFS
25593 # We need space, tab and new line, in precisely that order. Quoting is
25594 # there to prevent editors from complaining about space-tab.
25595 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25596 # splitting by setting IFS to empty value.)
25597 as_nl='
25599 IFS=" "" $as_nl"
25601 # Find who we are. Look in the path if we contain no directory separator.
25602 case $0 in
25603 *[\\/]* ) as_myself=$0 ;;
25604 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25605 for as_dir in $PATH
25607 IFS=$as_save_IFS
25608 test -z "$as_dir" && as_dir=.
25609 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25610 done
25611 IFS=$as_save_IFS
25614 esac
25615 # We did not find ourselves, most probably we were run as `sh COMMAND'
25616 # in which case we are not to be found in the path.
25617 if test "x$as_myself" = x; then
25618 as_myself=$0
25620 if test ! -f "$as_myself"; then
25621 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25622 { (exit 1); exit 1; }
25625 # Work around bugs in pre-3.0 UWIN ksh.
25626 for as_var in ENV MAIL MAILPATH
25627 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25628 done
25629 PS1='$ '
25630 PS2='> '
25631 PS4='+ '
25633 # NLS nuisances.
25634 for as_var in \
25635 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25636 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25637 LC_TELEPHONE LC_TIME
25639 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25640 eval $as_var=C; export $as_var
25641 else
25642 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25644 done
25646 # Required to use basename.
25647 if expr a : '\(a\)' >/dev/null 2>&1 &&
25648 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25649 as_expr=expr
25650 else
25651 as_expr=false
25654 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25655 as_basename=basename
25656 else
25657 as_basename=false
25661 # Name of the executable.
25662 as_me=`$as_basename -- "$0" ||
25663 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25664 X"$0" : 'X\(//\)$' \| \
25665 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25666 echo X/"$0" |
25667 sed '/^.*\/\([^/][^/]*\)\/*$/{
25668 s//\1/
25671 /^X\/\(\/\/\)$/{
25672 s//\1/
25675 /^X\/\(\/\).*/{
25676 s//\1/
25679 s/.*/./; q'`
25681 # CDPATH.
25682 $as_unset CDPATH
25686 as_lineno_1=$LINENO
25687 as_lineno_2=$LINENO
25688 test "x$as_lineno_1" != "x$as_lineno_2" &&
25689 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25691 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25692 # uniformly replaced by the line number. The first 'sed' inserts a
25693 # line-number line after each line using $LINENO; the second 'sed'
25694 # does the real work. The second script uses 'N' to pair each
25695 # line-number line with the line containing $LINENO, and appends
25696 # trailing '-' during substitution so that $LINENO is not a special
25697 # case at line end.
25698 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25699 # scripts with optimization help from Paolo Bonzini. Blame Lee
25700 # E. McMahon (1931-1989) for sed's syntax. :-)
25701 sed -n '
25703 /[$]LINENO/=
25704 ' <$as_myself |
25705 sed '
25706 s/[$]LINENO.*/&-/
25707 t lineno
25709 :lineno
25711 :loop
25712 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25713 t loop
25714 s/-\n.*//
25715 ' >$as_me.lineno &&
25716 chmod +x "$as_me.lineno" ||
25717 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25718 { (exit 1); exit 1; }; }
25720 # Don't try to exec as it changes $[0], causing all sort of problems
25721 # (the dirname of $[0] is not the place where we might find the
25722 # original and so on. Autoconf is especially sensitive to this).
25723 . "./$as_me.lineno"
25724 # Exit status is that of the last command.
25725 exit
25729 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25730 as_dirname=dirname
25731 else
25732 as_dirname=false
25735 ECHO_C= ECHO_N= ECHO_T=
25736 case `echo -n x` in
25737 -n*)
25738 case `echo 'x\c'` in
25739 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25740 *) ECHO_C='\c';;
25741 esac;;
25743 ECHO_N='-n';;
25744 esac
25746 if expr a : '\(a\)' >/dev/null 2>&1 &&
25747 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25748 as_expr=expr
25749 else
25750 as_expr=false
25753 rm -f conf$$ conf$$.exe conf$$.file
25754 if test -d conf$$.dir; then
25755 rm -f conf$$.dir/conf$$.file
25756 else
25757 rm -f conf$$.dir
25758 mkdir conf$$.dir
25760 echo >conf$$.file
25761 if ln -s conf$$.file conf$$ 2>/dev/null; then
25762 as_ln_s='ln -s'
25763 # ... but there are two gotchas:
25764 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25765 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25766 # In both cases, we have to default to `cp -p'.
25767 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25768 as_ln_s='cp -p'
25769 elif ln conf$$.file conf$$ 2>/dev/null; then
25770 as_ln_s=ln
25771 else
25772 as_ln_s='cp -p'
25774 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25775 rmdir conf$$.dir 2>/dev/null
25777 if mkdir -p . 2>/dev/null; then
25778 as_mkdir_p=:
25779 else
25780 test -d ./-p && rmdir ./-p
25781 as_mkdir_p=false
25784 if test -x / >/dev/null 2>&1; then
25785 as_test_x='test -x'
25786 else
25787 if ls -dL / >/dev/null 2>&1; then
25788 as_ls_L_option=L
25789 else
25790 as_ls_L_option=
25792 as_test_x='
25793 eval sh -c '\''
25794 if test -d "$1"; then
25795 test -d "$1/.";
25796 else
25797 case $1 in
25798 -*)set "./$1";;
25799 esac;
25800 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25801 ???[sx]*):;;*)false;;esac;fi
25802 '\'' sh
25805 as_executable_p=$as_test_x
25807 # Sed expression to map a string onto a valid CPP name.
25808 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25810 # Sed expression to map a string onto a valid variable name.
25811 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25814 exec 6>&1
25816 # Save the log message, to keep $[0] and so on meaningful, and to
25817 # report actual input values of CONFIG_FILES etc. instead of their
25818 # values after options handling.
25819 ac_log="
25820 This file was extended by python $as_me 3.1, which was
25821 generated by GNU Autoconf 2.61. Invocation command line was
25823 CONFIG_FILES = $CONFIG_FILES
25824 CONFIG_HEADERS = $CONFIG_HEADERS
25825 CONFIG_LINKS = $CONFIG_LINKS
25826 CONFIG_COMMANDS = $CONFIG_COMMANDS
25827 $ $0 $@
25829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25832 _ACEOF
25834 cat >>$CONFIG_STATUS <<_ACEOF
25835 # Files that config.status was made for.
25836 config_files="$ac_config_files"
25837 config_headers="$ac_config_headers"
25839 _ACEOF
25841 cat >>$CONFIG_STATUS <<\_ACEOF
25842 ac_cs_usage="\
25843 \`$as_me' instantiates files from templates according to the
25844 current configuration.
25846 Usage: $0 [OPTIONS] [FILE]...
25848 -h, --help print this help, then exit
25849 -V, --version print version number and configuration settings, then exit
25850 -q, --quiet do not print progress messages
25851 -d, --debug don't remove temporary files
25852 --recheck update $as_me by reconfiguring in the same conditions
25853 --file=FILE[:TEMPLATE]
25854 instantiate the configuration file FILE
25855 --header=FILE[:TEMPLATE]
25856 instantiate the configuration header FILE
25858 Configuration files:
25859 $config_files
25861 Configuration headers:
25862 $config_headers
25864 Report bugs to <bug-autoconf@gnu.org>."
25866 _ACEOF
25867 cat >>$CONFIG_STATUS <<_ACEOF
25868 ac_cs_version="\\
25869 python config.status 3.1
25870 configured by $0, generated by GNU Autoconf 2.61,
25871 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25873 Copyright (C) 2006 Free Software Foundation, Inc.
25874 This config.status script is free software; the Free Software Foundation
25875 gives unlimited permission to copy, distribute and modify it."
25877 ac_pwd='$ac_pwd'
25878 srcdir='$srcdir'
25879 INSTALL='$INSTALL'
25880 _ACEOF
25882 cat >>$CONFIG_STATUS <<\_ACEOF
25883 # If no file are specified by the user, then we need to provide default
25884 # value. By we need to know if files were specified by the user.
25885 ac_need_defaults=:
25886 while test $# != 0
25888 case $1 in
25889 --*=*)
25890 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25891 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25892 ac_shift=:
25895 ac_option=$1
25896 ac_optarg=$2
25897 ac_shift=shift
25899 esac
25901 case $ac_option in
25902 # Handling of the options.
25903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25904 ac_cs_recheck=: ;;
25905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25906 echo "$ac_cs_version"; exit ;;
25907 --debug | --debu | --deb | --de | --d | -d )
25908 debug=: ;;
25909 --file | --fil | --fi | --f )
25910 $ac_shift
25911 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25912 ac_need_defaults=false;;
25913 --header | --heade | --head | --hea )
25914 $ac_shift
25915 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25916 ac_need_defaults=false;;
25917 --he | --h)
25918 # Conflict between --help and --header
25919 { echo "$as_me: error: ambiguous option: $1
25920 Try \`$0 --help' for more information." >&2
25921 { (exit 1); exit 1; }; };;
25922 --help | --hel | -h )
25923 echo "$ac_cs_usage"; exit ;;
25924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25925 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25926 ac_cs_silent=: ;;
25928 # This is an error.
25929 -*) { echo "$as_me: error: unrecognized option: $1
25930 Try \`$0 --help' for more information." >&2
25931 { (exit 1); exit 1; }; } ;;
25933 *) ac_config_targets="$ac_config_targets $1"
25934 ac_need_defaults=false ;;
25936 esac
25937 shift
25938 done
25940 ac_configure_extra_args=
25942 if $ac_cs_silent; then
25943 exec 6>/dev/null
25944 ac_configure_extra_args="$ac_configure_extra_args --silent"
25947 _ACEOF
25948 cat >>$CONFIG_STATUS <<_ACEOF
25949 if \$ac_cs_recheck; then
25950 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25951 CONFIG_SHELL=$SHELL
25952 export CONFIG_SHELL
25953 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25956 _ACEOF
25957 cat >>$CONFIG_STATUS <<\_ACEOF
25958 exec 5>>config.log
25960 echo
25961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25962 ## Running $as_me. ##
25963 _ASBOX
25964 echo "$ac_log"
25965 } >&5
25967 _ACEOF
25968 cat >>$CONFIG_STATUS <<_ACEOF
25969 _ACEOF
25971 cat >>$CONFIG_STATUS <<\_ACEOF
25973 # Handling of arguments.
25974 for ac_config_target in $ac_config_targets
25976 case $ac_config_target in
25977 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25978 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25979 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25980 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25981 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25982 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25983 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25984 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
25986 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25987 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25988 { (exit 1); exit 1; }; };;
25989 esac
25990 done
25993 # If the user did not use the arguments to specify the items to instantiate,
25994 # then the envvar interface is used. Set only those that are not.
25995 # We use the long form for the default assignment because of an extremely
25996 # bizarre bug on SunOS 4.1.3.
25997 if $ac_need_defaults; then
25998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26002 # Have a temporary directory for convenience. Make it in the build tree
26003 # simply because there is no reason against having it here, and in addition,
26004 # creating and moving files from /tmp can sometimes cause problems.
26005 # Hook for its removal unless debugging.
26006 # Note that there is a small window in which the directory will not be cleaned:
26007 # after its creation but before its name has been assigned to `$tmp'.
26008 $debug ||
26010 tmp=
26011 trap 'exit_status=$?
26012 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26014 trap '{ (exit 1); exit 1; }' 1 2 13 15
26016 # Create a (secure) tmp directory for tmp files.
26019 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26020 test -n "$tmp" && test -d "$tmp"
26021 } ||
26023 tmp=./conf$$-$RANDOM
26024 (umask 077 && mkdir "$tmp")
26025 } ||
26027 echo "$me: cannot create a temporary directory in ." >&2
26028 { (exit 1); exit 1; }
26032 # Set up the sed scripts for CONFIG_FILES section.
26035 # No need to generate the scripts if there are no CONFIG_FILES.
26036 # This happens for instance when ./config.status config.h
26037 if test -n "$CONFIG_FILES"; then
26039 _ACEOF
26043 ac_delim='%!_!# '
26044 for ac_last_try in false false false false false :; do
26045 cat >conf$$subs.sed <<_ACEOF
26046 SHELL!$SHELL$ac_delim
26047 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26048 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26049 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26050 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26051 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26052 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26053 exec_prefix!$exec_prefix$ac_delim
26054 prefix!$prefix$ac_delim
26055 program_transform_name!$program_transform_name$ac_delim
26056 bindir!$bindir$ac_delim
26057 sbindir!$sbindir$ac_delim
26058 libexecdir!$libexecdir$ac_delim
26059 datarootdir!$datarootdir$ac_delim
26060 datadir!$datadir$ac_delim
26061 sysconfdir!$sysconfdir$ac_delim
26062 sharedstatedir!$sharedstatedir$ac_delim
26063 localstatedir!$localstatedir$ac_delim
26064 includedir!$includedir$ac_delim
26065 oldincludedir!$oldincludedir$ac_delim
26066 docdir!$docdir$ac_delim
26067 infodir!$infodir$ac_delim
26068 htmldir!$htmldir$ac_delim
26069 dvidir!$dvidir$ac_delim
26070 pdfdir!$pdfdir$ac_delim
26071 psdir!$psdir$ac_delim
26072 libdir!$libdir$ac_delim
26073 localedir!$localedir$ac_delim
26074 mandir!$mandir$ac_delim
26075 DEFS!$DEFS$ac_delim
26076 ECHO_C!$ECHO_C$ac_delim
26077 ECHO_N!$ECHO_N$ac_delim
26078 ECHO_T!$ECHO_T$ac_delim
26079 LIBS!$LIBS$ac_delim
26080 build_alias!$build_alias$ac_delim
26081 host_alias!$host_alias$ac_delim
26082 target_alias!$target_alias$ac_delim
26083 VERSION!$VERSION$ac_delim
26084 SOVERSION!$SOVERSION$ac_delim
26085 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26086 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26087 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26088 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26089 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26090 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26091 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26092 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26093 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26094 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26095 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26096 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26097 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26098 MACHDEP!$MACHDEP$ac_delim
26099 SGI_ABI!$SGI_ABI$ac_delim
26100 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26101 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26102 CC!$CC$ac_delim
26103 CFLAGS!$CFLAGS$ac_delim
26104 LDFLAGS!$LDFLAGS$ac_delim
26105 CPPFLAGS!$CPPFLAGS$ac_delim
26106 ac_ct_CC!$ac_ct_CC$ac_delim
26107 EXEEXT!$EXEEXT$ac_delim
26108 OBJEXT!$OBJEXT$ac_delim
26109 CXX!$CXX$ac_delim
26110 MAINCC!$MAINCC$ac_delim
26111 CPP!$CPP$ac_delim
26112 GREP!$GREP$ac_delim
26113 EGREP!$EGREP$ac_delim
26114 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26115 LIBRARY!$LIBRARY$ac_delim
26116 LDLIBRARY!$LDLIBRARY$ac_delim
26117 DLLLIBRARY!$DLLLIBRARY$ac_delim
26118 BLDLIBRARY!$BLDLIBRARY$ac_delim
26119 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26120 INSTSONAME!$INSTSONAME$ac_delim
26121 RUNSHARED!$RUNSHARED$ac_delim
26122 LINKCC!$LINKCC$ac_delim
26123 GNULD!$GNULD$ac_delim
26124 RANLIB!$RANLIB$ac_delim
26125 AR!$AR$ac_delim
26126 ARFLAGS!$ARFLAGS$ac_delim
26127 SVNVERSION!$SVNVERSION$ac_delim
26128 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26129 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26130 INSTALL_DATA!$INSTALL_DATA$ac_delim
26131 LN!$LN$ac_delim
26132 OPT!$OPT$ac_delim
26133 BASECFLAGS!$BASECFLAGS$ac_delim
26134 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26135 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26136 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26137 SO!$SO$ac_delim
26138 LDSHARED!$LDSHARED$ac_delim
26139 BLDSHARED!$BLDSHARED$ac_delim
26140 CCSHARED!$CCSHARED$ac_delim
26141 LINKFORSHARED!$LINKFORSHARED$ac_delim
26142 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26143 _ACEOF
26145 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26146 break
26147 elif $ac_last_try; then
26148 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26149 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26150 { (exit 1); exit 1; }; }
26151 else
26152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26154 done
26156 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26157 if test -n "$ac_eof"; then
26158 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26159 ac_eof=`expr $ac_eof + 1`
26162 cat >>$CONFIG_STATUS <<_ACEOF
26163 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26165 _ACEOF
26166 sed '
26167 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26168 s/^/s,@/; s/!/@,|#_!!_#|/
26171 s/'"$ac_delim"'$/,g/; t
26172 s/$/\\/; p
26173 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26174 ' >>$CONFIG_STATUS <conf$$subs.sed
26175 rm -f conf$$subs.sed
26176 cat >>$CONFIG_STATUS <<_ACEOF
26177 CEOF$ac_eof
26178 _ACEOF
26181 ac_delim='%!_!# '
26182 for ac_last_try in false false false false false :; do
26183 cat >conf$$subs.sed <<_ACEOF
26184 SHLIBS!$SHLIBS$ac_delim
26185 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26186 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26187 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26188 LDLAST!$LDLAST$ac_delim
26189 THREADOBJ!$THREADOBJ$ac_delim
26190 DLINCLDIR!$DLINCLDIR$ac_delim
26191 DYNLOADFILE!$DYNLOADFILE$ac_delim
26192 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26193 TRUE!$TRUE$ac_delim
26194 LIBOBJS!$LIBOBJS$ac_delim
26195 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26196 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26197 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26198 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26199 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26200 LIBM!$LIBM$ac_delim
26201 LIBC!$LIBC$ac_delim
26202 THREADHEADERS!$THREADHEADERS$ac_delim
26203 SRCDIRS!$SRCDIRS$ac_delim
26204 LTLIBOBJS!$LTLIBOBJS$ac_delim
26205 _ACEOF
26207 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
26208 break
26209 elif $ac_last_try; then
26210 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26211 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26212 { (exit 1); exit 1; }; }
26213 else
26214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26216 done
26218 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26219 if test -n "$ac_eof"; then
26220 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26221 ac_eof=`expr $ac_eof + 1`
26224 cat >>$CONFIG_STATUS <<_ACEOF
26225 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26227 _ACEOF
26228 sed '
26229 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26230 s/^/s,@/; s/!/@,|#_!!_#|/
26233 s/'"$ac_delim"'$/,g/; t
26234 s/$/\\/; p
26235 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26236 ' >>$CONFIG_STATUS <conf$$subs.sed
26237 rm -f conf$$subs.sed
26238 cat >>$CONFIG_STATUS <<_ACEOF
26239 :end
26240 s/|#_!!_#|//g
26241 CEOF$ac_eof
26242 _ACEOF
26245 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26246 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26247 # trailing colons and then remove the whole line if VPATH becomes empty
26248 # (actually we leave an empty line to preserve line numbers).
26249 if test "x$srcdir" = x.; then
26250 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26251 s/:*\$(srcdir):*/:/
26252 s/:*\${srcdir}:*/:/
26253 s/:*@srcdir@:*/:/
26254 s/^\([^=]*=[ ]*\):*/\1/
26255 s/:*$//
26256 s/^[^=]*=[ ]*$//
26260 cat >>$CONFIG_STATUS <<\_ACEOF
26261 fi # test -n "$CONFIG_FILES"
26264 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26266 case $ac_tag in
26267 :[FHLC]) ac_mode=$ac_tag; continue;;
26268 esac
26269 case $ac_mode$ac_tag in
26270 :[FHL]*:*);;
26271 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26272 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26273 { (exit 1); exit 1; }; };;
26274 :[FH]-) ac_tag=-:-;;
26275 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26276 esac
26277 ac_save_IFS=$IFS
26278 IFS=:
26279 set x $ac_tag
26280 IFS=$ac_save_IFS
26281 shift
26282 ac_file=$1
26283 shift
26285 case $ac_mode in
26286 :L) ac_source=$1;;
26287 :[FH])
26288 ac_file_inputs=
26289 for ac_f
26291 case $ac_f in
26292 -) ac_f="$tmp/stdin";;
26293 *) # Look for the file first in the build tree, then in the source tree
26294 # (if the path is not absolute). The absolute path cannot be DOS-style,
26295 # because $ac_f cannot contain `:'.
26296 test -f "$ac_f" ||
26297 case $ac_f in
26298 [\\/$]*) false;;
26299 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26300 esac ||
26301 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26302 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26303 { (exit 1); exit 1; }; };;
26304 esac
26305 ac_file_inputs="$ac_file_inputs $ac_f"
26306 done
26308 # Let's still pretend it is `configure' which instantiates (i.e., don't
26309 # use $as_me), people would be surprised to read:
26310 # /* config.h. Generated by config.status. */
26311 configure_input="Generated from "`IFS=:
26312 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26313 if test x"$ac_file" != x-; then
26314 configure_input="$ac_file. $configure_input"
26315 { echo "$as_me:$LINENO: creating $ac_file" >&5
26316 echo "$as_me: creating $ac_file" >&6;}
26319 case $ac_tag in
26320 *:-:* | *:-) cat >"$tmp/stdin";;
26321 esac
26323 esac
26325 ac_dir=`$as_dirname -- "$ac_file" ||
26326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26327 X"$ac_file" : 'X\(//\)[^/]' \| \
26328 X"$ac_file" : 'X\(//\)$' \| \
26329 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26330 echo X"$ac_file" |
26331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26332 s//\1/
26335 /^X\(\/\/\)[^/].*/{
26336 s//\1/
26339 /^X\(\/\/\)$/{
26340 s//\1/
26343 /^X\(\/\).*/{
26344 s//\1/
26347 s/.*/./; q'`
26348 { as_dir="$ac_dir"
26349 case $as_dir in #(
26350 -*) as_dir=./$as_dir;;
26351 esac
26352 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26353 as_dirs=
26354 while :; do
26355 case $as_dir in #(
26356 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26357 *) as_qdir=$as_dir;;
26358 esac
26359 as_dirs="'$as_qdir' $as_dirs"
26360 as_dir=`$as_dirname -- "$as_dir" ||
26361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26362 X"$as_dir" : 'X\(//\)[^/]' \| \
26363 X"$as_dir" : 'X\(//\)$' \| \
26364 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26365 echo X"$as_dir" |
26366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26367 s//\1/
26370 /^X\(\/\/\)[^/].*/{
26371 s//\1/
26374 /^X\(\/\/\)$/{
26375 s//\1/
26378 /^X\(\/\).*/{
26379 s//\1/
26382 s/.*/./; q'`
26383 test -d "$as_dir" && break
26384 done
26385 test -z "$as_dirs" || eval "mkdir $as_dirs"
26386 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26387 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26388 { (exit 1); exit 1; }; }; }
26389 ac_builddir=.
26391 case "$ac_dir" in
26392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26395 # A ".." for each directory in $ac_dir_suffix.
26396 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26397 case $ac_top_builddir_sub in
26398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26400 esac ;;
26401 esac
26402 ac_abs_top_builddir=$ac_pwd
26403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26404 # for backward compatibility:
26405 ac_top_builddir=$ac_top_build_prefix
26407 case $srcdir in
26408 .) # We are building in place.
26409 ac_srcdir=.
26410 ac_top_srcdir=$ac_top_builddir_sub
26411 ac_abs_top_srcdir=$ac_pwd ;;
26412 [\\/]* | ?:[\\/]* ) # Absolute name.
26413 ac_srcdir=$srcdir$ac_dir_suffix;
26414 ac_top_srcdir=$srcdir
26415 ac_abs_top_srcdir=$srcdir ;;
26416 *) # Relative name.
26417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26418 ac_top_srcdir=$ac_top_build_prefix$srcdir
26419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26420 esac
26421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26424 case $ac_mode in
26427 # CONFIG_FILE
26430 case $INSTALL in
26431 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26432 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26433 esac
26434 _ACEOF
26436 cat >>$CONFIG_STATUS <<\_ACEOF
26437 # If the template does not know about datarootdir, expand it.
26438 # FIXME: This hack should be removed a few years after 2.60.
26439 ac_datarootdir_hack=; ac_datarootdir_seen=
26441 case `sed -n '/datarootdir/ {
26445 /@datadir@/p
26446 /@docdir@/p
26447 /@infodir@/p
26448 /@localedir@/p
26449 /@mandir@/p
26450 ' $ac_file_inputs` in
26451 *datarootdir*) ac_datarootdir_seen=yes;;
26452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26453 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26454 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26455 _ACEOF
26456 cat >>$CONFIG_STATUS <<_ACEOF
26457 ac_datarootdir_hack='
26458 s&@datadir@&$datadir&g
26459 s&@docdir@&$docdir&g
26460 s&@infodir@&$infodir&g
26461 s&@localedir@&$localedir&g
26462 s&@mandir@&$mandir&g
26463 s&\\\${datarootdir}&$datarootdir&g' ;;
26464 esac
26465 _ACEOF
26467 # Neutralize VPATH when `$srcdir' = `.'.
26468 # Shell code in configure.ac might set extrasub.
26469 # FIXME: do we really want to maintain this feature?
26470 cat >>$CONFIG_STATUS <<_ACEOF
26471 sed "$ac_vpsub
26472 $extrasub
26473 _ACEOF
26474 cat >>$CONFIG_STATUS <<\_ACEOF
26476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26477 s&@configure_input@&$configure_input&;t t
26478 s&@top_builddir@&$ac_top_builddir_sub&;t t
26479 s&@srcdir@&$ac_srcdir&;t t
26480 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26481 s&@top_srcdir@&$ac_top_srcdir&;t t
26482 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26483 s&@builddir@&$ac_builddir&;t t
26484 s&@abs_builddir@&$ac_abs_builddir&;t t
26485 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26486 s&@INSTALL@&$ac_INSTALL&;t t
26487 $ac_datarootdir_hack
26488 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26490 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26491 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26492 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26493 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26494 which seems to be undefined. Please make sure it is defined." >&5
26495 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26496 which seems to be undefined. Please make sure it is defined." >&2;}
26498 rm -f "$tmp/stdin"
26499 case $ac_file in
26500 -) cat "$tmp/out"; rm -f "$tmp/out";;
26501 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26502 esac
26506 # CONFIG_HEADER
26508 _ACEOF
26510 # Transform confdefs.h into a sed script `conftest.defines', that
26511 # substitutes the proper values into config.h.in to produce config.h.
26512 rm -f conftest.defines conftest.tail
26513 # First, append a space to every undef/define line, to ease matching.
26514 echo 's/$/ /' >conftest.defines
26515 # Then, protect against being on the right side of a sed subst, or in
26516 # an unquoted here document, in config.status. If some macros were
26517 # called several times there might be several #defines for the same
26518 # symbol, which is useless. But do not sort them, since the last
26519 # AC_DEFINE must be honored.
26520 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26521 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26522 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26523 # PARAMS is the parameter list in the macro definition--in most cases, it's
26524 # just an empty string.
26525 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26526 ac_dB='\\)[ (].*,\\1define\\2'
26527 ac_dC=' '
26528 ac_dD=' ,'
26530 uniq confdefs.h |
26531 sed -n '
26532 t rset
26533 :rset
26534 s/^[ ]*#[ ]*define[ ][ ]*//
26535 t ok
26538 s/[\\&,]/\\&/g
26539 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26540 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26541 ' >>conftest.defines
26543 # Remove the space that was appended to ease matching.
26544 # Then replace #undef with comments. This is necessary, for
26545 # example, in the case of _POSIX_SOURCE, which is predefined and required
26546 # on some systems where configure will not decide to define it.
26547 # (The regexp can be short, since the line contains either #define or #undef.)
26548 echo 's/ $//
26549 s,^[ #]*u.*,/* & */,' >>conftest.defines
26551 # Break up conftest.defines:
26552 ac_max_sed_lines=50
26554 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26555 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26556 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26557 # et cetera.
26558 ac_in='$ac_file_inputs'
26559 ac_out='"$tmp/out1"'
26560 ac_nxt='"$tmp/out2"'
26562 while :
26564 # Write a here document:
26565 cat >>$CONFIG_STATUS <<_ACEOF
26566 # First, check the format of the line:
26567 cat >"\$tmp/defines.sed" <<\\CEOF
26568 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26569 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26571 :def
26572 _ACEOF
26573 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26574 echo 'CEOF
26575 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26576 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26577 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26578 grep . conftest.tail >/dev/null || break
26579 rm -f conftest.defines
26580 mv conftest.tail conftest.defines
26581 done
26582 rm -f conftest.defines conftest.tail
26584 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26585 cat >>$CONFIG_STATUS <<\_ACEOF
26586 if test x"$ac_file" != x-; then
26587 echo "/* $configure_input */" >"$tmp/config.h"
26588 cat "$ac_result" >>"$tmp/config.h"
26589 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26590 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26591 echo "$as_me: $ac_file is unchanged" >&6;}
26592 else
26593 rm -f $ac_file
26594 mv "$tmp/config.h" $ac_file
26596 else
26597 echo "/* $configure_input */"
26598 cat "$ac_result"
26600 rm -f "$tmp/out12"
26604 esac
26606 done # for ac_tag
26609 { (exit 0); exit 0; }
26610 _ACEOF
26611 chmod +x $CONFIG_STATUS
26612 ac_clean_files=$ac_clean_files_save
26615 # configure is writing to config.log, and then calls config.status.
26616 # config.status does its own redirection, appending to config.log.
26617 # Unfortunately, on DOS this fails, as config.log is still kept open
26618 # by configure, so config.status won't be able to write to it; its
26619 # output is simply discarded. So we exec the FD to /dev/null,
26620 # effectively closing config.log, so it can be properly (re)opened and
26621 # appended to by config.status. When coming back to configure, we
26622 # need to make the FD available again.
26623 if test "$no_create" != yes; then
26624 ac_cs_success=:
26625 ac_config_status_args=
26626 test "$silent" = yes &&
26627 ac_config_status_args="$ac_config_status_args --quiet"
26628 exec 5>/dev/null
26629 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26630 exec 5>>config.log
26631 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26632 # would make configure fail if this is the last instruction.
26633 $ac_cs_success || { (exit 1); exit 1; }
26637 echo "creating Modules/Setup"
26638 if test ! -f Modules/Setup
26639 then
26640 cp $srcdir/Modules/Setup.dist Modules/Setup
26643 echo "creating Modules/Setup.local"
26644 if test ! -f Modules/Setup.local
26645 then
26646 echo "# Edit this file for local setup changes" >Modules/Setup.local
26649 echo "creating Makefile"
26650 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26651 -s Modules Modules/Setup.config \
26652 Modules/Setup.local Modules/Setup
26653 mv config.c Modules