Address double-rounding scenarios by setting all variables to long doubles.
[python.git] / configure
blob2abce67f94ecac356a26f132aac5aa93b90b8448
1 #! /bin/sh
2 # From configure.in Revision: 63955 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.6'
579 PACKAGE_STRING='python 2.6'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
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 PYTHONFRAMEWORK
661 PYTHONFRAMEWORKIDENTIFIER
662 PYTHONFRAMEWORKDIR
663 PYTHONFRAMEWORKPREFIX
664 PYTHONFRAMEWORKINSTALLDIR
665 FRAMEWORKINSTALLFIRST
666 FRAMEWORKINSTALLLAST
667 FRAMEWORKALTINSTALLFIRST
668 FRAMEWORKALTINSTALLLAST
669 FRAMEWORKUNIXTOOLSPREFIX
670 MACHDEP
671 SGI_ABI
672 EXTRAPLATDIR
673 EXTRAMACHDEPPATH
674 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
675 EXPORT_MACOSX_DEPLOYMENT_TARGET
677 CFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CC
681 EXEEXT
682 OBJEXT
684 MAINCC
686 GREP
687 EGREP
688 BUILDEXEEXT
689 LIBRARY
690 LDLIBRARY
691 DLLLIBRARY
692 BLDLIBRARY
693 LDLIBRARYDIR
694 INSTSONAME
695 RUNSHARED
696 LINKCC
697 RANLIB
699 SVNVERSION
700 INSTALL_PROGRAM
701 INSTALL_SCRIPT
702 INSTALL_DATA
705 BASECFLAGS
706 UNIVERSAL_ARCH_FLAGS
707 OTHER_LIBTOOL_OPT
708 LIBTOOL_CRUFT
710 LDSHARED
711 BLDSHARED
712 CCSHARED
713 LINKFORSHARED
714 CFLAGSFORSHARED
715 SHLIBS
716 USE_SIGNAL_MODULE
717 SIGNAL_OBJS
718 USE_THREAD_MODULE
719 LDLAST
720 THREADOBJ
721 DLINCLDIR
722 DYNLOADFILE
723 MACHDEP_OBJS
724 TRUE
725 LIBOBJS
726 HAVE_GETHOSTBYNAME_R_6_ARG
727 HAVE_GETHOSTBYNAME_R_5_ARG
728 HAVE_GETHOSTBYNAME_R_3_ARG
729 HAVE_GETHOSTBYNAME_R
730 HAVE_GETHOSTBYNAME
731 LIBM
732 LIBC
733 UNICODE_OBJS
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 2.6 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 2.6:";;
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-toolbox-glue disable/enable MacOSX glue code for extensions
1324 --enable-ipv6 Enable ipv6 (with ipv4) support
1325 --disable-ipv6 Disable ipv6 support
1326 --enable-unicode[=ucs[24]]
1327 Enable Unicode strings (default is yes)
1329 Optional Packages:
1330 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1331 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1332 --with-universal-archs=ARCH
1333 select architectures for universal build ("32-bit",
1334 "64-bit" or "all")
1335 --with-framework-name=FRAMEWORK
1336 specify an alternate name of the framework built
1337 with --enable-framework
1338 --without-gcc never use gcc
1339 --with-cxx-main=<compiler>
1340 compile main() and link python executable with C++
1341 compiler
1342 --with-suffix=.exe set executable suffix
1343 --with-pydebug build with Py_DEBUG defined
1344 --with-libs='lib1 ...' link against additional libs
1345 --with-system-ffi build _ctypes module using an installed ffi library
1346 --with-signal-module disable/enable signal module
1347 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1348 --with(out)-threads[=DIRECTORY]
1349 disable/enable thread support
1350 --with(out)-thread[=DIRECTORY]
1351 deprecated; use --with(out)-threads
1352 --with-pth use GNU pth threading libraries
1353 --with(out)-doc-strings disable/enable documentation strings
1354 --with(out)-tsc enable/disable timestamp counter profile
1355 --with(out)-pymalloc disable/enable specialized mallocs
1356 --with-wctype-functions use wctype.h functions
1357 --with-fpectl enable SIGFPE catching
1358 --with-libm=STRING math library
1359 --with-libc=STRING C library
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1371 Use these variables to override the choices made by `configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1374 Report bugs to <http://www.python.org/python-bugs>.
1375 _ACEOF
1376 ac_status=$?
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 python configure 2.6
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by python $as_me 2.6, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1452 $ $0 $@
1454 _ACEOF
1455 exec 5>>config.log
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1479 _ASUNAME
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1490 } >&5
1492 cat >&5 <<_ACEOF
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1499 _ACEOF
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1513 for ac_arg
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1558 echo
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1592 esac |
1593 sort
1595 echo
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1694 shift
1695 for ac_site_file
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1703 done
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1722 # Check that the precious variables saved in the cache have kept the same
1723 # value.
1724 ac_cache_corrupted=false
1725 for ac_var in $ac_precious_vars; do
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
1730 case $ac_old_set,$ac_new_set in
1731 set,)
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1733 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1735 ,set)
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1737 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1739 ,);;
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
1742 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1743 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1744 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1745 echo "$as_me: former value: $ac_old_val" >&2;}
1746 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1747 echo "$as_me: current value: $ac_new_val" >&2;}
1748 ac_cache_corrupted=:
1749 fi;;
1750 esac
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1753 case $ac_new_val in
1754 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1756 esac
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1760 esac
1762 done
1763 if $ac_cache_corrupted; then
1764 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1765 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1766 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1767 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1768 { (exit 1); exit 1; }; }
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 ac_config_headers="$ac_config_headers pyconfig.h"
1811 # We don't use PACKAGE_ variables, and they cause conflicts
1812 # with other autoconf-based packages that include Python.h
1813 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1814 rm confdefs.h
1815 mv confdefs.h.new confdefs.h
1818 VERSION=2.6
1821 SOVERSION=1.0
1823 # The later defininition of _XOPEN_SOURCE disables certain features
1824 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1826 cat >>confdefs.h <<\_ACEOF
1827 #define _GNU_SOURCE 1
1828 _ACEOF
1831 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1832 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1833 # them.
1835 cat >>confdefs.h <<\_ACEOF
1836 #define _NETBSD_SOURCE 1
1837 _ACEOF
1840 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1841 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1842 # them.
1844 cat >>confdefs.h <<\_ACEOF
1845 #define __BSD_VISIBLE 1
1846 _ACEOF
1849 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1850 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1852 cat >>confdefs.h <<\_ACEOF
1853 #define _BSD_TYPES 1
1854 _ACEOF
1857 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1858 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1859 # them.
1861 cat >>confdefs.h <<\_ACEOF
1862 #define _DARWIN_C_SOURCE 1
1863 _ACEOF
1867 define_xopen_source=yes
1869 # Arguments passed to configure.
1871 CONFIG_ARGS="$ac_configure_args"
1873 # Check whether --enable-universalsdk was given.
1874 if test "${enable_universalsdk+set}" = set; then
1875 enableval=$enable_universalsdk;
1876 case $enableval in
1877 yes)
1878 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1880 esac
1881 case $enableval in
1883 UNIVERSALSDK=
1884 enable_universalsdk=
1887 UNIVERSALSDK=$enableval
1889 esac
1891 else
1893 UNIVERSALSDK=
1894 enable_universalsdk=
1900 UNIVERSAL_ARCHS="32-bit"
1901 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1902 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1904 # Check whether --with-universal-archs was given.
1905 if test "${with_universal_archs+set}" = set; then
1906 withval=$with_universal_archs;
1907 { echo "$as_me:$LINENO: result: $withval" >&5
1908 echo "${ECHO_T}$withval" >&6; }
1909 UNIVERSAL_ARCHS="$withval"
1911 else
1913 { echo "$as_me:$LINENO: result: 32-bit" >&5
1914 echo "${ECHO_T}32-bit" >&6; }
1922 # Check whether --with-framework-name was given.
1923 if test "${with_framework_name+set}" = set; then
1924 withval=$with_framework_name;
1925 PYTHONFRAMEWORK=${withval}
1926 PYTHONFRAMEWORKDIR=${withval}.framework
1927 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1929 else
1931 PYTHONFRAMEWORK=Python
1932 PYTHONFRAMEWORKDIR=Python.framework
1933 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1937 # Check whether --enable-framework was given.
1938 if test "${enable_framework+set}" = set; then
1939 enableval=$enable_framework;
1940 case $enableval in
1941 yes)
1942 enableval=/Library/Frameworks
1943 esac
1944 case $enableval in
1946 PYTHONFRAMEWORK=
1947 PYTHONFRAMEWORKDIR=no-framework
1948 PYTHONFRAMEWORKPREFIX=
1949 PYTHONFRAMEWORKINSTALLDIR=
1950 FRAMEWORKINSTALLFIRST=
1951 FRAMEWORKINSTALLLAST=
1952 FRAMEWORKALTINSTALLFIRST=
1953 FRAMEWORKALTINSTALLLAST=
1954 if test "x${prefix}" = "xNONE"; then
1955 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1956 else
1957 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1959 enable_framework=
1962 PYTHONFRAMEWORKPREFIX=$enableval
1963 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1964 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1965 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1966 if test "$UNIVERSAL_ARCHS" = "all"
1967 then
1968 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1969 else
1970 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1973 if test "x${prefix}" = "xNONE" ; then
1974 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1975 else
1976 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1978 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1980 # Add files for Mac specific code to the list of output
1981 # files:
1982 ac_config_files="$ac_config_files Mac/Makefile"
1984 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1986 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1988 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1990 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1992 esac
1994 else
1996 PYTHONFRAMEWORK=
1997 PYTHONFRAMEWORKDIR=no-framework
1998 PYTHONFRAMEWORKPREFIX=
1999 PYTHONFRAMEWORKINSTALLDIR=
2000 FRAMEWORKINSTALLFIRST=
2001 FRAMEWORKINSTALLLAST=
2002 FRAMEWORKALTINSTALLFIRST=
2003 FRAMEWORKALTINSTALLLAST=
2004 if test "x${prefix}" = "xNONE" ; then
2005 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2006 else
2007 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2009 enable_framework=
2011 if test "$UNIVERSAL_ARCHS" = "all"
2012 then
2013 FRAMEWORKINSTALLLAST=update4wayuniversal
2014 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2030 ##AC_ARG_WITH(dyld,
2031 ## AC_HELP_STRING(--with-dyld,
2032 ## Use (OpenStep|Rhapsody) dynamic linker))
2034 # Set name for machine-dependent library files
2036 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2037 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2038 if test -z "$MACHDEP"
2039 then
2040 ac_sys_system=`uname -s`
2041 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2042 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2043 ac_sys_release=`uname -v`
2044 else
2045 ac_sys_release=`uname -r`
2047 ac_md_system=`echo $ac_sys_system |
2048 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2049 ac_md_release=`echo $ac_sys_release |
2050 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2051 MACHDEP="$ac_md_system$ac_md_release"
2053 case $MACHDEP in
2054 cygwin*) MACHDEP="cygwin";;
2055 darwin*) MACHDEP="darwin";;
2056 atheos*) MACHDEP="atheos";;
2057 irix646) MACHDEP="irix6";;
2058 '') MACHDEP="unknown";;
2059 esac
2062 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2063 # disable features if it is defined, without any means to access these
2064 # features as extensions. For these systems, we skip the definition of
2065 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2066 # some feature, make sure there is no alternative way to access this
2067 # feature. Also, when using wildcards, make sure you have verified the
2068 # need for not defining _XOPEN_SOURCE on all systems matching the
2069 # wildcard, and that the wildcard does not include future systems
2070 # (which may remove their limitations).
2071 case $ac_sys_system/$ac_sys_release in
2072 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2073 # even though select is a POSIX function. Reported by J. Ribbens.
2074 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2075 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2076 define_xopen_source=no
2077 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2078 # also defined. This can be overridden by defining _BSD_SOURCE
2079 # As this has a different meaning on Linux, only define it on OpenBSD
2081 cat >>confdefs.h <<\_ACEOF
2082 #define _BSD_SOURCE 1
2083 _ACEOF
2086 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2087 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2088 # Marc Recht
2089 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2090 define_xopen_source=no;;
2091 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2092 # of union __?sigval. Reported by Stuart Bishop.
2093 SunOS/5.6)
2094 define_xopen_source=no;;
2095 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2096 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2097 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2098 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2099 define_xopen_source=no;;
2100 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2101 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2102 SCO_SV/3.2)
2103 define_xopen_source=no;;
2104 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2105 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2106 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2107 # This should hopefully be fixed in FreeBSD 4.9
2108 FreeBSD/4.8* | Darwin/6* )
2109 define_xopen_source=no;;
2110 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2111 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2112 # or has another value. By not (re)defining it, the defaults come in place.
2113 AIX/4)
2114 define_xopen_source=no;;
2115 AIX/5)
2116 if test `uname -r` -eq 1; then
2117 define_xopen_source=no
2120 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2121 # disables platform specific features beyond repair.
2122 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2123 # has no effect, don't bother defining them
2124 Darwin/[789].*)
2125 define_xopen_source=no
2127 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2128 # defining NI_NUMERICHOST.
2129 QNX/6.3.2)
2130 define_xopen_source=no
2133 esac
2135 if test $define_xopen_source = yes
2136 then
2137 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2138 # defined precisely as g++ defines it
2139 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2140 # compiler
2141 case $ac_sys_system/$ac_sys_release in
2142 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2144 cat >>confdefs.h <<\_ACEOF
2145 #define _XOPEN_SOURCE 500
2146 _ACEOF
2151 cat >>confdefs.h <<\_ACEOF
2152 #define _XOPEN_SOURCE 600
2153 _ACEOF
2156 esac
2158 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2159 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2160 # several APIs are not declared. Since this is also needed in some
2161 # cases for HP-UX, we define it globally.
2162 # except for Solaris 10, where it must not be defined,
2163 # as it implies XPG4.2
2164 case $ac_sys_system/$ac_sys_release in
2165 SunOS/5.10)
2169 cat >>confdefs.h <<\_ACEOF
2170 #define _XOPEN_SOURCE_EXTENDED 1
2171 _ACEOF
2174 esac
2177 cat >>confdefs.h <<\_ACEOF
2178 #define _POSIX_C_SOURCE 200112L
2179 _ACEOF
2185 # SGI compilers allow the specification of the both the ABI and the
2186 # ISA on the command line. Depending on the values of these switches,
2187 # different and often incompatable code will be generated.
2189 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2190 # thus supply support for various ABI/ISA combinations. The MACHDEP
2191 # variable is also adjusted.
2194 if test ! -z "$SGI_ABI"
2195 then
2196 CC="cc $SGI_ABI"
2197 LDFLAGS="$SGI_ABI $LDFLAGS"
2198 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2200 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2201 echo "${ECHO_T}$MACHDEP" >&6; }
2203 # And add extra plat-mac for darwin
2206 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2207 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2208 if test -z "$EXTRAPLATDIR"
2209 then
2210 case $MACHDEP in
2211 darwin)
2212 EXTRAPLATDIR="\$(PLATMACDIRS)"
2213 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2216 EXTRAPLATDIR=""
2217 EXTRAMACHDEPPATH=""
2219 esac
2221 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2222 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2224 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2225 # it may influence the way we can build extensions, so distutils
2226 # needs to check it
2229 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2230 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2232 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2233 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2234 ac_sys_machine=`uname -m`
2235 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2236 echo "${ECHO_T}$ac_sys_machine" >&6; }
2238 # checks for alternative programs
2240 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2241 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2242 # just to get things to compile and link. Users are free to override OPT
2243 # when running configure or make. The build should not break if they do.
2244 # BASECFLAGS should generally not be messed with, however.
2246 # XXX shouldn't some/most/all of this code be merged with the stuff later
2247 # on that fiddles with OPT and BASECFLAGS?
2248 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2249 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2251 # Check whether --with-gcc was given.
2252 if test "${with_gcc+set}" = set; then
2253 withval=$with_gcc;
2254 case $withval in
2255 no) CC=cc
2256 without_gcc=yes;;
2257 yes) CC=gcc
2258 without_gcc=no;;
2259 *) CC=$withval
2260 without_gcc=$withval;;
2261 esac
2262 else
2264 case $ac_sys_system in
2265 AIX*) CC=cc_r
2266 without_gcc=;;
2267 BeOS*)
2268 case $BE_HOST_CPU in
2269 ppc)
2270 CC=mwcc
2271 without_gcc=yes
2272 BASECFLAGS="$BASECFLAGS -export pragma"
2273 OPT="$OPT -O"
2274 LDFLAGS="$LDFLAGS -nodup"
2276 x86)
2277 CC=gcc
2278 without_gcc=no
2279 OPT="$OPT -O"
2282 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2283 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2284 { (exit 1); exit 1; }; }
2286 esac
2287 AR="\$(srcdir)/Modules/ar_beos"
2288 RANLIB=:
2290 Monterey*)
2291 RANLIB=:
2292 without_gcc=;;
2293 *) without_gcc=no;;
2294 esac
2297 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2298 echo "${ECHO_T}$without_gcc" >&6; }
2300 # If the user switches compilers, we can't believe the cache
2301 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2302 then
2303 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2304 (it is also a good idea to do 'make clean' before compiling)" >&5
2305 echo "$as_me: error: cached CC is different -- throw away $cache_file
2306 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2307 { (exit 1); exit 1; }; }
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2337 done
2338 done
2339 IFS=$as_save_IFS
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345 { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2347 else
2348 { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2354 if test -z "$ac_cv_prog_CC"; then
2355 ac_ct_CC=$CC
2356 # Extract the first word of "gcc", so it can be a program name with args.
2357 set dummy gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 if test -n "$ac_ct_CC"; then
2364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_ac_ct_CC="gcc"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 break 2
2377 done
2378 done
2379 IFS=$as_save_IFS
2383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2384 if test -n "$ac_ct_CC"; then
2385 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2386 echo "${ECHO_T}$ac_ct_CC" >&6; }
2387 else
2388 { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2392 if test "x$ac_ct_CC" = x; then
2393 CC=""
2394 else
2395 case $cross_compiling:$ac_tool_warned in
2396 yes:)
2397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2398 whose name does not start with the host triplet. If you think this
2399 configuration is useful to you, please write to autoconf@gnu.org." >&5
2400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2401 whose name does not start with the host triplet. If you think this
2402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2403 ac_tool_warned=yes ;;
2404 esac
2405 CC=$ac_ct_CC
2407 else
2408 CC="$ac_cv_prog_CC"
2411 if test -z "$CC"; then
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}cc; ac_word=$2
2415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_CC="${ac_tool_prefix}cc"
2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2434 done
2435 done
2436 IFS=$as_save_IFS
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442 { echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6; }
2444 else
2445 { echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6; }
2452 if test -z "$CC"; then
2453 # Extract the first word of "cc", so it can be a program name with args.
2454 set dummy cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2462 else
2463 ac_prog_rejected=no
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2472 ac_prog_rejected=yes
2473 continue
2475 ac_cv_prog_CC="cc"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2479 done
2480 done
2481 IFS=$as_save_IFS
2483 if test $ac_prog_rejected = yes; then
2484 # We found a bogon in the path, so make sure we never use it.
2485 set dummy $ac_cv_prog_CC
2486 shift
2487 if test $# != 0; then
2488 # We chose a different compiler from the bogus one.
2489 # However, it has the same basename, so the bogon will be chosen
2490 # first if we set CC to just the basename; use the full file name.
2491 shift
2492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2497 CC=$ac_cv_prog_CC
2498 if test -n "$CC"; then
2499 { echo "$as_me:$LINENO: result: $CC" >&5
2500 echo "${ECHO_T}$CC" >&6; }
2501 else
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2508 if test -z "$CC"; then
2509 if test -n "$ac_tool_prefix"; then
2510 for ac_prog in cl.exe
2512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2533 done
2534 done
2535 IFS=$as_save_IFS
2539 CC=$ac_cv_prog_CC
2540 if test -n "$CC"; then
2541 { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2543 else
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2549 test -n "$CC" && break
2550 done
2552 if test -z "$CC"; then
2553 ac_ct_CC=$CC
2554 for ac_prog in cl.exe
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563 if test -n "$ac_ct_CC"; then
2564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_CC="$ac_prog"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2577 done
2578 done
2579 IFS=$as_save_IFS
2583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2584 if test -n "$ac_ct_CC"; then
2585 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2586 echo "${ECHO_T}$ac_ct_CC" >&6; }
2587 else
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2593 test -n "$ac_ct_CC" && break
2594 done
2596 if test "x$ac_ct_CC" = x; then
2597 CC=""
2598 else
2599 case $cross_compiling:$ac_tool_warned in
2600 yes:)
2601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2602 whose name does not start with the host triplet. If you think this
2603 configuration is useful to you, please write to autoconf@gnu.org." >&5
2604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet. If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607 ac_tool_warned=yes ;;
2608 esac
2609 CC=$ac_ct_CC
2616 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: no acceptable C compiler found in \$PATH
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2622 # Provide some information about the compiler.
2623 echo "$as_me:$LINENO: checking for C compiler version" >&5
2624 ac_compiler=`set X $ac_compile; echo $2`
2625 { (ac_try="$ac_compiler --version >&5"
2626 case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_compiler --version >&5") 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }
2635 { (ac_try="$ac_compiler -v >&5"
2636 case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_compiler -v >&5") 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }
2645 { (ac_try="$ac_compiler -V >&5"
2646 case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compiler -V >&5") 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }
2656 cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h. */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2664 main ()
2668 return 0;
2670 _ACEOF
2671 ac_clean_files_save=$ac_clean_files
2672 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2673 # Try to create an executable without -o first, disregard a.out.
2674 # It will help us diagnose broken compilers, and finding out an intuition
2675 # of exeext.
2676 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2677 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2678 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2680 # List of possible output files, starting from the most likely.
2681 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2682 # only as a last resort. b.out is created by i960 compilers.
2683 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2685 # The IRIX 6 linker writes into existing files which may not be
2686 # executable, retaining their permissions. Remove them first so a
2687 # subsequent execution test works.
2688 ac_rmfiles=
2689 for ac_file in $ac_files
2691 case $ac_file in
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2693 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2694 esac
2695 done
2696 rm -f $ac_rmfiles
2698 if { (ac_try="$ac_link_default"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_link_default") 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; then
2708 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2709 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2710 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2711 # so that the user can short-circuit this test for compilers unknown to
2712 # Autoconf.
2713 for ac_file in $ac_files ''
2715 test -f "$ac_file" || continue
2716 case $ac_file in
2717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2719 [ab].out )
2720 # We found the default executable, but exeext='' is most
2721 # certainly right.
2722 break;;
2723 *.* )
2724 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2725 then :; else
2726 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2728 # We set ac_cv_exeext here because the later test for it is not
2729 # safe: cross compilers may not add the suffix if given an `-o'
2730 # argument, so we may need to know it at that point already.
2731 # Even if this section looks crufty: it has the advantage of
2732 # actually working.
2733 break;;
2735 break;;
2736 esac
2737 done
2738 test "$ac_cv_exeext" = no && ac_cv_exeext=
2740 else
2741 ac_file=''
2744 { echo "$as_me:$LINENO: result: $ac_file" >&5
2745 echo "${ECHO_T}$ac_file" >&6; }
2746 if test -z "$ac_file"; then
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2750 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2751 See \`config.log' for more details." >&5
2752 echo "$as_me: error: C compiler cannot create executables
2753 See \`config.log' for more details." >&2;}
2754 { (exit 77); exit 77; }; }
2757 ac_exeext=$ac_cv_exeext
2759 # Check that the compiler produces executables we can run. If not, either
2760 # the compiler is broken, or we cross compile.
2761 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2762 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2763 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2764 # If not cross compiling, check that we can run a simple program.
2765 if test "$cross_compiling" != yes; then
2766 if { ac_try='./$ac_file'
2767 { (case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_try") 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 cross_compiling=no
2777 else
2778 if test "$cross_compiling" = maybe; then
2779 cross_compiling=yes
2780 else
2781 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2782 If you meant to cross compile, use \`--host'.
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: cannot run C compiled programs.
2785 If you meant to cross compile, use \`--host'.
2786 See \`config.log' for more details." >&2;}
2787 { (exit 1); exit 1; }; }
2791 { echo "$as_me:$LINENO: result: yes" >&5
2792 echo "${ECHO_T}yes" >&6; }
2794 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2795 ac_clean_files=$ac_clean_files_save
2796 # Check that the compiler produces executables we can run. If not, either
2797 # the compiler is broken, or we cross compile.
2798 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2799 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2800 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2801 echo "${ECHO_T}$cross_compiling" >&6; }
2803 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2804 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2805 if { (ac_try="$ac_link"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link") 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
2815 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2816 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2817 # work properly (i.e., refer to `conftest.exe'), while it won't with
2818 # `rm'.
2819 for ac_file in conftest.exe conftest conftest.*; do
2820 test -f "$ac_file" || continue
2821 case $ac_file in
2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2823 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2824 break;;
2825 * ) break;;
2826 esac
2827 done
2828 else
2829 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2832 See \`config.log' for more details." >&2;}
2833 { (exit 1); exit 1; }; }
2836 rm -f conftest$ac_cv_exeext
2837 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2838 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2840 rm -f conftest.$ac_ext
2841 EXEEXT=$ac_cv_exeext
2842 ac_exeext=$EXEEXT
2843 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2844 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2845 if test "${ac_cv_objext+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2856 main ()
2860 return 0;
2862 _ACEOF
2863 rm -f conftest.o conftest.obj
2864 if { (ac_try="$ac_compile"
2865 case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_compile") 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; then
2874 for ac_file in conftest.o conftest.obj conftest.*; do
2875 test -f "$ac_file" || continue;
2876 case $ac_file in
2877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2878 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2879 break;;
2880 esac
2881 done
2882 else
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2886 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2889 See \`config.log' for more details." >&2;}
2890 { (exit 1); exit 1; }; }
2893 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2895 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2896 echo "${ECHO_T}$ac_cv_objext" >&6; }
2897 OBJEXT=$ac_cv_objext
2898 ac_objext=$OBJEXT
2899 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2900 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2901 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2912 main ()
2914 #ifndef __GNUC__
2915 choke me
2916 #endif
2919 return 0;
2921 _ACEOF
2922 rm -f conftest.$ac_objext
2923 if { (ac_try="$ac_compile"
2924 case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_compile") 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } && {
2936 test -z "$ac_c_werror_flag" ||
2937 test ! -s conftest.err
2938 } && test -s conftest.$ac_objext; then
2939 ac_compiler_gnu=yes
2940 else
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2944 ac_compiler_gnu=no
2947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2951 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2952 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2953 GCC=`test $ac_compiler_gnu = yes && echo yes`
2954 ac_test_CFLAGS=${CFLAGS+set}
2955 ac_save_CFLAGS=$CFLAGS
2956 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2957 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2958 if test "${ac_cv_prog_cc_g+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961 ac_save_c_werror_flag=$ac_c_werror_flag
2962 ac_c_werror_flag=yes
2963 ac_cv_prog_cc_g=no
2964 CFLAGS="-g"
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2973 main ()
2977 return 0;
2979 _ACEOF
2980 rm -f conftest.$ac_objext
2981 if { (ac_try="$ac_compile"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && {
2994 test -z "$ac_c_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.$ac_objext; then
2997 ac_cv_prog_cc_g=yes
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 CFLAGS=""
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3011 main ()
3015 return 0;
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && {
3032 test -z "$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3034 } && test -s conftest.$ac_objext; then
3036 else
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 ac_c_werror_flag=$ac_save_c_werror_flag
3041 CFLAGS="-g"
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3050 main ()
3054 return 0;
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } && {
3071 test -z "$ac_c_werror_flag" ||
3072 test ! -s conftest.err
3073 } && test -s conftest.$ac_objext; then
3074 ac_cv_prog_cc_g=yes
3075 else
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 ac_c_werror_flag=$ac_save_c_werror_flag
3091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3092 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3093 if test "$ac_test_CFLAGS" = set; then
3094 CFLAGS=$ac_save_CFLAGS
3095 elif test $ac_cv_prog_cc_g = yes; then
3096 if test "$GCC" = yes; then
3097 CFLAGS="-g -O2"
3098 else
3099 CFLAGS="-g"
3101 else
3102 if test "$GCC" = yes; then
3103 CFLAGS="-O2"
3104 else
3105 CFLAGS=
3108 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3109 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3110 if test "${ac_cv_prog_cc_c89+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 ac_cv_prog_cc_c89=no
3114 ac_save_CC=$CC
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 #include <stdarg.h>
3122 #include <stdio.h>
3123 #include <sys/types.h>
3124 #include <sys/stat.h>
3125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3126 struct buf { int x; };
3127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3128 static char *e (p, i)
3129 char **p;
3130 int i;
3132 return p[i];
3134 static char *f (char * (*g) (char **, int), char **p, ...)
3136 char *s;
3137 va_list v;
3138 va_start (v,p);
3139 s = g (p, va_arg (v,int));
3140 va_end (v);
3141 return s;
3144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3145 function prototypes and stuff, but not '\xHH' hex character constants.
3146 These don't provoke an error unfortunately, instead are silently treated
3147 as 'x'. The following induces an error, until -std is added to get
3148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3149 array size at least. It's necessary to write '\x00'==0 to get something
3150 that's true only with -std. */
3151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3154 inside strings and character constants. */
3155 #define FOO(x) 'x'
3156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3158 int test (int i, double x);
3159 struct s1 {int (*f) (int a);};
3160 struct s2 {int (*f) (double a);};
3161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3162 int argc;
3163 char **argv;
3165 main ()
3167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3169 return 0;
3171 _ACEOF
3172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3175 CC="$ac_save_CC $ac_arg"
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3184 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3193 ac_cv_prog_cc_c89=$ac_arg
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext
3202 test "x$ac_cv_prog_cc_c89" != "xno" && break
3203 done
3204 rm -f conftest.$ac_ext
3205 CC=$ac_save_CC
3208 # AC_CACHE_VAL
3209 case "x$ac_cv_prog_cc_c89" in
3211 { echo "$as_me:$LINENO: result: none needed" >&5
3212 echo "${ECHO_T}none needed" >&6; } ;;
3213 xno)
3214 { echo "$as_me:$LINENO: result: unsupported" >&5
3215 echo "${ECHO_T}unsupported" >&6; } ;;
3217 CC="$CC $ac_cv_prog_cc_c89"
3218 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3219 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3220 esac
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3233 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3235 # Check whether --with-cxx_main was given.
3236 if test "${with_cxx_main+set}" = set; then
3237 withval=$with_cxx_main;
3239 case $withval in
3240 no) with_cxx_main=no
3241 MAINCC='$(CC)';;
3242 yes) with_cxx_main=yes
3243 MAINCC='$(CXX)';;
3244 *) with_cxx_main=yes
3245 MAINCC=$withval
3246 if test -z "$CXX"
3247 then
3248 CXX=$withval
3249 fi;;
3250 esac
3251 else
3253 with_cxx_main=no
3254 MAINCC='$(CC)'
3258 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3259 echo "${ECHO_T}$with_cxx_main" >&6; }
3261 preset_cxx="$CXX"
3262 if test -z "$CXX"
3263 then
3264 case "$CC" in
3265 gcc) # Extract the first word of "g++", so it can be a program name with args.
3266 set dummy g++; ac_word=$2
3267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3269 if test "${ac_cv_path_CXX+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 case $CXX in
3273 [\\/]* | ?:[\\/]*)
3274 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in notfound
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3288 done
3289 done
3290 IFS=$as_save_IFS
3292 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3294 esac
3296 CXX=$ac_cv_path_CXX
3297 if test -n "$CXX"; then
3298 { echo "$as_me:$LINENO: result: $CXX" >&5
3299 echo "${ECHO_T}$CXX" >&6; }
3300 else
3301 { echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6; }
3306 cc) # Extract the first word of "c++", so it can be a program name with args.
3307 set dummy c++; ac_word=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_path_CXX+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 case $CXX in
3314 [\\/]* | ?:[\\/]*)
3315 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in notfound
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3329 done
3330 done
3331 IFS=$as_save_IFS
3333 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3335 esac
3337 CXX=$ac_cv_path_CXX
3338 if test -n "$CXX"; then
3339 { echo "$as_me:$LINENO: result: $CXX" >&5
3340 echo "${ECHO_T}$CXX" >&6; }
3341 else
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3347 esac
3348 if test "$CXX" = "notfound"
3349 then
3350 CXX=""
3353 if test -z "$CXX"
3354 then
3355 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_CXX+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 if test -n "$CXX"; then
3365 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374 ac_cv_prog_CXX="$ac_prog"
3375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3378 done
3379 done
3380 IFS=$as_save_IFS
3384 CXX=$ac_cv_prog_CXX
3385 if test -n "$CXX"; then
3386 { echo "$as_me:$LINENO: result: $CXX" >&5
3387 echo "${ECHO_T}$CXX" >&6; }
3388 else
3389 { echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6; }
3394 test -n "$CXX" && break
3395 done
3396 test -n "$CXX" || CXX="notfound"
3398 if test "$CXX" = "notfound"
3399 then
3400 CXX=""
3403 if test "$preset_cxx" != "$CXX"
3404 then
3405 { echo "$as_me:$LINENO: WARNING:
3407 By default, distutils will build C++ extension modules with \"$CXX\".
3408 If this is not intended, then set CXX on the configure command line.
3409 " >&5
3410 echo "$as_me: WARNING:
3412 By default, distutils will build C++ extension modules with \"$CXX\".
3413 If this is not intended, then set CXX on the configure command line.
3414 " >&2;}
3418 # checks for UNIX variants that set C preprocessor variables
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3426 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3427 # On Suns, sometimes $CPP names a directory.
3428 if test -n "$CPP" && test -d "$CPP"; then
3429 CPP=
3431 if test -z "$CPP"; then
3432 if test "${ac_cv_prog_CPP+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 # Double quotes because CPP needs to be expanded
3436 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3438 ac_preproc_ok=false
3439 for ac_c_preproc_warn_flag in '' yes
3441 # Use a header file that comes with gcc, so configuring glibc
3442 # with a fresh cross-compiler works.
3443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3444 # <limits.h> exists even on freestanding compilers.
3445 # On the NeXT, cc -E runs the code through the compiler's parser,
3446 # not just through cpp. "Syntax error" is here to catch this case.
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #ifdef __STDC__
3454 # include <limits.h>
3455 #else
3456 # include <assert.h>
3457 #endif
3458 Syntax error
3459 _ACEOF
3460 if { (ac_try="$ac_cpp conftest.$ac_ext"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null && {
3473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3475 }; then
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 # Broken: fails on valid input.
3482 continue
3485 rm -f conftest.err conftest.$ac_ext
3487 # OK, works on sane cases. Now check whether nonexistent headers
3488 # can be detected and how.
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h. */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <ac_nonexistent.h>
3496 _ACEOF
3497 if { (ac_try="$ac_cpp conftest.$ac_ext"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev/null && {
3510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3512 }; then
3513 # Broken: success on invalid input.
3514 continue
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 # Passes both tests.
3520 ac_preproc_ok=:
3521 break
3524 rm -f conftest.err conftest.$ac_ext
3526 done
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.err conftest.$ac_ext
3529 if $ac_preproc_ok; then
3530 break
3533 done
3534 ac_cv_prog_CPP=$CPP
3537 CPP=$ac_cv_prog_CPP
3538 else
3539 ac_cv_prog_CPP=$CPP
3541 { echo "$as_me:$LINENO: result: $CPP" >&5
3542 echo "${ECHO_T}$CPP" >&6; }
3543 ac_preproc_ok=false
3544 for ac_c_preproc_warn_flag in '' yes
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 #ifdef __STDC__
3559 # include <limits.h>
3560 #else
3561 # include <assert.h>
3562 #endif
3563 Syntax error
3564 _ACEOF
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev/null && {
3578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 }; then
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 # Broken: fails on valid input.
3587 continue
3590 rm -f conftest.err conftest.$ac_ext
3592 # OK, works on sane cases. Now check whether nonexistent headers
3593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 #include <ac_nonexistent.h>
3601 _ACEOF
3602 if { (ac_try="$ac_cpp conftest.$ac_ext"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } >/dev/null && {
3615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3616 test ! -s conftest.err
3617 }; then
3618 # Broken: success on invalid input.
3619 continue
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Passes both tests.
3625 ac_preproc_ok=:
3626 break
3629 rm -f conftest.err conftest.$ac_ext
3631 done
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3636 else
3637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&5
3639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 # Extract the first word of "grep ggrep" to use in msg output
3657 if test -z "$GREP"; then
3658 set dummy grep ggrep; ac_prog_name=$2
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 ac_path_GREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_prog in grep ggrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3673 # Check for GNU ac_path_GREP and select it if it is found.
3674 # Check for GNU $ac_path_GREP
3675 case `"$ac_path_GREP" --version 2>&1` in
3676 *GNU*)
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3679 ac_count=0
3680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681 while :
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 echo 'GREP' >> "conftest.nl"
3687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 ac_count=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 esac
3702 $ac_path_GREP_found && break 3
3703 done
3704 done
3706 done
3707 IFS=$as_save_IFS
3712 GREP="$ac_cv_path_GREP"
3713 if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3719 else
3720 ac_cv_path_GREP=$GREP
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727 GREP="$ac_cv_path_GREP"
3730 { echo "$as_me:$LINENO: checking for egrep" >&5
3731 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732 if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736 then ac_cv_path_EGREP="$GREP -E"
3737 else
3738 # Extract the first word of "egrep" to use in msg output
3739 if test -z "$EGREP"; then
3740 set dummy egrep; ac_prog_name=$2
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744 ac_path_EGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3758 *GNU*)
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3761 ac_count=0
3762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3763 while :
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 echo 'EGREP' >> "conftest.nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 ac_count=`expr $ac_count + 1`
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3779 done
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781 esac
3784 $ac_path_EGREP_found && break 3
3785 done
3786 done
3788 done
3789 IFS=$as_save_IFS
3794 EGREP="$ac_cv_path_EGREP"
3795 if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3801 else
3802 ac_cv_path_EGREP=$EGREP
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810 EGREP="$ac_cv_path_EGREP"
3814 { echo "$as_me:$LINENO: checking for AIX" >&5
3815 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822 #ifdef _AIX
3824 #endif
3826 _ACEOF
3827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3828 $EGREP "yes" >/dev/null 2>&1; then
3829 { echo "$as_me:$LINENO: result: yes" >&5
3830 echo "${ECHO_T}yes" >&6; }
3831 cat >>confdefs.h <<\_ACEOF
3832 #define _ALL_SOURCE 1
3833 _ACEOF
3835 else
3836 { echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6; }
3839 rm -f conftest*
3843 # Check for unsupported systems
3844 case $ac_sys_system/$ac_sys_release in
3845 atheos*|Linux*/1*)
3846 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3847 echo See README for details.
3848 exit 1;;
3849 esac
3852 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3853 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3855 # Check whether --with-suffix was given.
3856 if test "${with_suffix+set}" = set; then
3857 withval=$with_suffix;
3858 case $withval in
3859 no) EXEEXT=;;
3860 yes) EXEEXT=.exe;;
3861 *) EXEEXT=$withval;;
3862 esac
3865 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3866 echo "${ECHO_T}$EXEEXT" >&6; }
3868 # Test whether we're running on a non-case-sensitive system, in which
3869 # case we give a warning if no ext is given
3871 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3872 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3873 if test ! -d CaseSensitiveTestDir; then
3874 mkdir CaseSensitiveTestDir
3877 if test -d casesensitivetestdir
3878 then
3879 { echo "$as_me:$LINENO: result: yes" >&5
3880 echo "${ECHO_T}yes" >&6; }
3881 BUILDEXEEXT=.exe
3882 else
3883 { echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6; }
3885 BUILDEXEEXT=$EXEEXT
3887 rmdir CaseSensitiveTestDir
3889 case $MACHDEP in
3890 bsdos*)
3891 case $CC in
3892 gcc) CC="$CC -D_HAVE_BSDI";;
3893 esac;;
3894 esac
3896 case $ac_sys_system in
3897 hp*|HP*)
3898 case $CC in
3899 cc|*/cc) CC="$CC -Ae";;
3900 esac;;
3901 Monterey*)
3902 case $CC in
3903 cc) CC="$CC -Wl,-Bexport";;
3904 esac;;
3905 SunOS*)
3906 # Some functions have a prototype only with that define, e.g. confstr
3908 cat >>confdefs.h <<\_ACEOF
3909 #define __EXTENSIONS__ 1
3910 _ACEOF
3913 esac
3917 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3918 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3919 if test -z "$LIBRARY"
3920 then
3921 LIBRARY='libpython$(VERSION).a'
3923 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3924 echo "${ECHO_T}$LIBRARY" >&6; }
3926 # LDLIBRARY is the name of the library to link against (as opposed to the
3927 # name of the library into which to insert object files). BLDLIBRARY is also
3928 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3929 # is blank as the main program is not linked directly against LDLIBRARY.
3930 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3931 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3932 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3933 # DLLLIBRARY is the shared (i.e., DLL) library.
3935 # RUNSHARED is used to run shared python without installed libraries
3937 # INSTSONAME is the name of the shared library that will be use to install
3938 # on the system - some systems like version suffix, others don't
3945 LDLIBRARY="$LIBRARY"
3946 BLDLIBRARY='$(LDLIBRARY)'
3947 INSTSONAME='$(LDLIBRARY)'
3948 DLLLIBRARY=''
3949 LDLIBRARYDIR=''
3950 RUNSHARED=''
3952 # LINKCC is the command that links the python executable -- default is $(CC).
3953 # If CXX is set, and if it is needed to link a main function that was
3954 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3955 # python might then depend on the C++ runtime
3956 # This is altered for AIX in order to build the export list before
3957 # linking.
3959 { echo "$as_me:$LINENO: checking LINKCC" >&5
3960 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3961 if test -z "$LINKCC"
3962 then
3963 LINKCC='$(PURIFY) $(MAINCC)'
3964 case $ac_sys_system in
3965 AIX*)
3966 exp_extra="\"\""
3967 if test $ac_sys_release -ge 5 -o \
3968 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3969 exp_extra="."
3971 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3972 Monterey64*)
3973 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3974 QNX*)
3975 # qcc must be used because the other compilers do not
3976 # support -N.
3977 LINKCC=qcc;;
3978 esac
3980 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3981 echo "${ECHO_T}$LINKCC" >&6; }
3983 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3984 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3985 # Check whether --enable-shared was given.
3986 if test "${enable_shared+set}" = set; then
3987 enableval=$enable_shared;
3991 if test -z "$enable_shared"
3992 then
3993 case $ac_sys_system in
3994 CYGWIN* | atheos*)
3995 enable_shared="yes";;
3997 enable_shared="no";;
3998 esac
4000 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4001 echo "${ECHO_T}$enable_shared" >&6; }
4003 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4004 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4005 # Check whether --enable-profiling was given.
4006 if test "${enable_profiling+set}" = set; then
4007 enableval=$enable_profiling; ac_save_cc="$CC"
4008 CC="$CC -pg"
4009 if test "$cross_compiling" = yes; then
4010 ac_enable_profiling="no"
4011 else
4012 cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h. */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 int main() { return 0; }
4019 _ACEOF
4020 rm -f conftest$ac_exeext
4021 if { (ac_try="$ac_link"
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_link") 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4031 { (case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_try") 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_enable_profiling="yes"
4041 else
4042 echo "$as_me: program exited with status $ac_status" >&5
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 ( exit $ac_status )
4047 ac_enable_profiling="no"
4049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4053 CC="$ac_save_cc"
4056 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4057 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4059 case "$ac_enable_profiling" in
4060 "yes")
4061 BASECFLAGS="-pg $BASECFLAGS"
4062 LDFLAGS="-pg $LDFLAGS"
4064 esac
4066 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4067 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4069 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4070 # library that we build, but we do not want to link against it (we
4071 # will find it with a -framework option). For this reason there is an
4072 # extra variable BLDLIBRARY against which Python and the extension
4073 # modules are linked, BLDLIBRARY. This is normally the same as
4074 # LDLIBRARY, but empty for MacOSX framework builds.
4075 if test "$enable_framework"
4076 then
4077 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4078 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4079 BLDLIBRARY=''
4080 else
4081 BLDLIBRARY='$(LDLIBRARY)'
4084 # Other platforms follow
4085 if test $enable_shared = "yes"; then
4087 cat >>confdefs.h <<\_ACEOF
4088 #define Py_ENABLE_SHARED 1
4089 _ACEOF
4091 case $ac_sys_system in
4092 BeOS*)
4093 LDLIBRARY='libpython$(VERSION).so'
4095 CYGWIN*)
4096 LDLIBRARY='libpython$(VERSION).dll.a'
4097 DLLLIBRARY='libpython$(VERSION).dll'
4099 SunOS*)
4100 LDLIBRARY='libpython$(VERSION).so'
4101 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4102 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4103 INSTSONAME="$LDLIBRARY".$SOVERSION
4105 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4106 LDLIBRARY='libpython$(VERSION).so'
4107 BLDLIBRARY='-L. -lpython$(VERSION)'
4108 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4109 case $ac_sys_system in
4110 FreeBSD*)
4111 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4113 esac
4114 INSTSONAME="$LDLIBRARY".$SOVERSION
4116 hp*|HP*)
4117 case `uname -m` in
4118 ia64)
4119 LDLIBRARY='libpython$(VERSION).so'
4122 LDLIBRARY='libpython$(VERSION).sl'
4124 esac
4125 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4126 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4128 OSF*)
4129 LDLIBRARY='libpython$(VERSION).so'
4130 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4131 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4133 atheos*)
4134 LDLIBRARY='libpython$(VERSION).so'
4135 BLDLIBRARY='-L. -lpython$(VERSION)'
4136 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4138 esac
4139 else # shared is disabled
4140 case $ac_sys_system in
4141 CYGWIN*)
4142 BLDLIBRARY='$(LIBRARY)'
4143 LDLIBRARY='libpython$(VERSION).dll.a'
4145 esac
4148 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4149 echo "${ECHO_T}$LDLIBRARY" >&6; }
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4156 if test "${ac_cv_prog_RANLIB+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 if test -n "$RANLIB"; then
4160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4173 done
4174 done
4175 IFS=$as_save_IFS
4179 RANLIB=$ac_cv_prog_RANLIB
4180 if test -n "$RANLIB"; then
4181 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4182 echo "${ECHO_T}$RANLIB" >&6; }
4183 else
4184 { echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6; }
4190 if test -z "$ac_cv_prog_RANLIB"; then
4191 ac_ct_RANLIB=$RANLIB
4192 # Extract the first word of "ranlib", so it can be a program name with args.
4193 set dummy ranlib; ac_word=$2
4194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4196 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 if test -n "$ac_ct_RANLIB"; then
4200 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_ac_ct_RANLIB="ranlib"
4210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 break 2
4213 done
4214 done
4215 IFS=$as_save_IFS
4219 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4220 if test -n "$ac_ct_RANLIB"; then
4221 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4222 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4223 else
4224 { echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6; }
4228 if test "x$ac_ct_RANLIB" = x; then
4229 RANLIB=":"
4230 else
4231 case $cross_compiling:$ac_tool_warned in
4232 yes:)
4233 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4234 whose name does not start with the host triplet. If you think this
4235 configuration is useful to you, please write to autoconf@gnu.org." >&5
4236 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4237 whose name does not start with the host triplet. If you think this
4238 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4239 ac_tool_warned=yes ;;
4240 esac
4241 RANLIB=$ac_ct_RANLIB
4243 else
4244 RANLIB="$ac_cv_prog_RANLIB"
4248 for ac_prog in ar aal
4250 # Extract the first word of "$ac_prog", so it can be a program name with args.
4251 set dummy $ac_prog; ac_word=$2
4252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4254 if test "${ac_cv_prog_AR+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257 if test -n "$AR"; then
4258 ac_cv_prog_AR="$AR" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 ac_cv_prog_AR="$ac_prog"
4268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 break 2
4271 done
4272 done
4273 IFS=$as_save_IFS
4277 AR=$ac_cv_prog_AR
4278 if test -n "$AR"; then
4279 { echo "$as_me:$LINENO: result: $AR" >&5
4280 echo "${ECHO_T}$AR" >&6; }
4281 else
4282 { echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6; }
4287 test -n "$AR" && break
4288 done
4289 test -n "$AR" || AR="ar"
4293 # Extract the first word of "svnversion", so it can be a program name with args.
4294 set dummy svnversion; ac_word=$2
4295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300 if test -n "$SVNVERSION"; then
4301 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310 ac_cv_prog_SVNVERSION="found"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4314 done
4315 done
4316 IFS=$as_save_IFS
4318 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4321 SVNVERSION=$ac_cv_prog_SVNVERSION
4322 if test -n "$SVNVERSION"; then
4323 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4324 echo "${ECHO_T}$SVNVERSION" >&6; }
4325 else
4326 { echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6; }
4331 if test $SVNVERSION = found
4332 then
4333 SVNVERSION="svnversion \$(srcdir)"
4334 else
4335 SVNVERSION="echo exported"
4338 case $MACHDEP in
4339 bsdos*|hp*|HP*)
4340 # install -d does not work on BSDI or HP-UX
4341 if test -z "$INSTALL"
4342 then
4343 INSTALL="${srcdir}/install-sh -c"
4345 esac
4346 ac_aux_dir=
4347 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4348 if test -f "$ac_dir/install-sh"; then
4349 ac_aux_dir=$ac_dir
4350 ac_install_sh="$ac_aux_dir/install-sh -c"
4351 break
4352 elif test -f "$ac_dir/install.sh"; then
4353 ac_aux_dir=$ac_dir
4354 ac_install_sh="$ac_aux_dir/install.sh -c"
4355 break
4356 elif test -f "$ac_dir/shtool"; then
4357 ac_aux_dir=$ac_dir
4358 ac_install_sh="$ac_aux_dir/shtool install -c"
4359 break
4361 done
4362 if test -z "$ac_aux_dir"; then
4363 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4364 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4365 { (exit 1); exit 1; }; }
4368 # These three variables are undocumented and unsupported,
4369 # and are intended to be withdrawn in a future Autoconf release.
4370 # They can cause serious problems if a builder's source tree is in a directory
4371 # whose full name contains unusual characters.
4372 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4373 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4374 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4377 # Find a good install program. We prefer a C program (faster),
4378 # so one script is as good as another. But avoid the broken or
4379 # incompatible versions:
4380 # SysV /etc/install, /usr/sbin/install
4381 # SunOS /usr/etc/install
4382 # IRIX /sbin/install
4383 # AIX /bin/install
4384 # AmigaOS /C/install, which installs bootblocks on floppy discs
4385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4388 # OS/2's system install, which has a completely different semantic
4389 # ./install, which can be erroneously created by make from ./install.sh.
4390 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4391 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4392 if test -z "$INSTALL"; then
4393 if test "${ac_cv_path_install+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 # Account for people who put trailing slashes in PATH elements.
4402 case $as_dir/ in
4403 ./ | .// | /cC/* | \
4404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4405 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4406 /usr/ucb/* ) ;;
4408 # OSF1 and SCO ODT 3.0 have their own names for install.
4409 # Don't use installbsd from OSF since it installs stuff as root
4410 # by default.
4411 for ac_prog in ginstall scoinst install; do
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4414 if test $ac_prog = install &&
4415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4416 # AIX install. It has an incompatible calling convention.
4418 elif test $ac_prog = install &&
4419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4420 # program-specific install script used by HP pwplus--don't use.
4422 else
4423 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4424 break 3
4427 done
4428 done
4430 esac
4431 done
4432 IFS=$as_save_IFS
4436 if test "${ac_cv_path_install+set}" = set; then
4437 INSTALL=$ac_cv_path_install
4438 else
4439 # As a last resort, use the slow shell script. Don't cache a
4440 # value for INSTALL within a source directory, because that will
4441 # break other packages using the cache if that directory is
4442 # removed, or if the value is a relative name.
4443 INSTALL=$ac_install_sh
4446 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4447 echo "${ECHO_T}$INSTALL" >&6; }
4449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4450 # It thinks the first close brace ends the variable substitution.
4451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4458 # Not every filesystem supports hard links
4460 if test -z "$LN" ; then
4461 case $ac_sys_system in
4462 BeOS*) LN="ln -s";;
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.
4642 if test "${enable_universalsdk}"; then
4643 UNIVERSAL_ARCH_FLAGS=""
4644 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4645 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4647 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4648 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4650 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4651 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4653 else
4654 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4655 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4656 { (exit 1); exit 1; }; }
4661 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4662 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4666 OSF*)
4667 BASECFLAGS="$BASECFLAGS -mieee"
4669 esac
4673 case $ac_sys_system in
4674 OpenUNIX*|UnixWare*)
4675 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4677 OSF*)
4678 BASECFLAGS="$BASECFLAGS -ieee -std"
4680 SCO_SV*)
4681 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4683 esac
4685 esac
4687 if test "$Py_DEBUG" = 'true'; then
4689 else
4690 OPT="-DNDEBUG $OPT"
4693 if test "$ac_arch_flags"
4694 then
4695 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4698 # disable check for icc since it seems to pass, but generates a warning
4699 if test "$CC" = icc
4700 then
4701 ac_cv_opt_olimit_ok=no
4704 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4705 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4706 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 ac_save_cc="$CC"
4710 CC="$CC -OPT:Olimit=0"
4711 if test "$cross_compiling" = yes; then
4712 ac_cv_opt_olimit_ok=no
4713 else
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h. */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 int main() { return 0; }
4721 _ACEOF
4722 rm -f conftest$ac_exeext
4723 if { (ac_try="$ac_link"
4724 case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727 esac
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_link") 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4733 { (case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_try") 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_opt_olimit_ok=yes
4743 else
4744 echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ( exit $ac_status )
4749 ac_cv_opt_olimit_ok=no
4751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4755 CC="$ac_save_cc"
4758 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4759 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4760 if test $ac_cv_opt_olimit_ok = yes; then
4761 case $ac_sys_system in
4762 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4763 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4764 # environment?
4765 Darwin*)
4768 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4770 esac
4771 else
4772 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4773 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4774 if test "${ac_cv_olimit_ok+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 ac_save_cc="$CC"
4778 CC="$CC -Olimit 1500"
4779 if test "$cross_compiling" = yes; then
4780 ac_cv_olimit_ok=no
4781 else
4782 cat >conftest.$ac_ext <<_ACEOF
4783 /* confdefs.h. */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788 int main() { return 0; }
4789 _ACEOF
4790 rm -f conftest$ac_exeext
4791 if { (ac_try="$ac_link"
4792 case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795 esac
4796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797 (eval "$ac_link") 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4801 { (case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804 esac
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_try") 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_olimit_ok=yes
4811 else
4812 echo "$as_me: program exited with status $ac_status" >&5
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 ( exit $ac_status )
4817 ac_cv_olimit_ok=no
4819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4823 CC="$ac_save_cc"
4826 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4827 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4828 if test $ac_cv_olimit_ok = yes; then
4829 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4833 # Check whether GCC supports PyArg_ParseTuple format
4834 if test "$GCC" = "yes"
4835 then
4836 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4837 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4838 save_CFLAGS=$CFLAGS
4839 CFLAGS="$CFLAGS -Werror"
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4847 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4850 main ()
4854 return 0;
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (ac_try="$ac_compile"
4859 case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_compile") 2>conftest.er1
4865 ac_status=$?
4866 grep -v '^ *+' conftest.er1 >conftest.err
4867 rm -f conftest.er1
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } && {
4871 test -z "$ac_c_werror_flag" ||
4872 test ! -s conftest.err
4873 } && test -s conftest.$ac_objext; then
4875 cat >>confdefs.h <<\_ACEOF
4876 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4877 _ACEOF
4879 { echo "$as_me:$LINENO: result: yes" >&5
4880 echo "${ECHO_T}yes" >&6; }
4881 else
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 CFLAGS=$save_CFLAGS
4894 # On some compilers, pthreads are available without further options
4895 # (e.g. MacOS X). On some of these systems, the compiler will not
4896 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4897 # So we have to see first whether pthreads are available without
4898 # options before we can check whether -Kpthread improves anything.
4899 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4900 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4901 if test "${ac_cv_pthread_is_default+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 if test "$cross_compiling" = yes; then
4905 ac_cv_pthread_is_default=no
4906 else
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4914 #include <pthread.h>
4916 void* routine(void* p){return NULL;}
4918 int main(){
4919 pthread_t p;
4920 if(pthread_create(&p,NULL,routine,NULL)!=0)
4921 return 1;
4922 (void)pthread_detach(p);
4923 return 0;
4926 _ACEOF
4927 rm -f conftest$ac_exeext
4928 if { (ac_try="$ac_link"
4929 case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932 esac
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_link") 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4938 { (case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_try") 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4948 ac_cv_pthread_is_default=yes
4949 ac_cv_kthread=no
4950 ac_cv_pthread=no
4952 else
4953 echo "$as_me: program exited with status $ac_status" >&5
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 ( exit $ac_status )
4958 ac_cv_pthread_is_default=no
4960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4967 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4968 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4971 if test $ac_cv_pthread_is_default = yes
4972 then
4973 ac_cv_kpthread=no
4974 else
4975 # -Kpthread, if available, provides the right #defines
4976 # and linker options to make pthread_create available
4977 # Some compilers won't report that they do not support -Kpthread,
4978 # so we need to run a program to see whether it really made the
4979 # function available.
4980 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4981 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4982 if test "${ac_cv_kpthread+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 ac_save_cc="$CC"
4986 CC="$CC -Kpthread"
4987 if test "$cross_compiling" = yes; then
4988 ac_cv_kpthread=no
4989 else
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4997 #include <pthread.h>
4999 void* routine(void* p){return NULL;}
5001 int main(){
5002 pthread_t p;
5003 if(pthread_create(&p,NULL,routine,NULL)!=0)
5004 return 1;
5005 (void)pthread_detach(p);
5006 return 0;
5009 _ACEOF
5010 rm -f conftest$ac_exeext
5011 if { (ac_try="$ac_link"
5012 case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015 esac
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_link") 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5021 { (case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_try") 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_kpthread=yes
5031 else
5032 echo "$as_me: program exited with status $ac_status" >&5
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 ( exit $ac_status )
5037 ac_cv_kpthread=no
5039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5043 CC="$ac_save_cc"
5046 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5047 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5050 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5051 then
5052 # -Kthread, if available, provides the right #defines
5053 # and linker options to make pthread_create available
5054 # Some compilers won't report that they do not support -Kthread,
5055 # so we need to run a program to see whether it really made the
5056 # function available.
5057 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5058 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5059 if test "${ac_cv_kthread+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062 ac_save_cc="$CC"
5063 CC="$CC -Kthread"
5064 if test "$cross_compiling" = yes; then
5065 ac_cv_kthread=no
5066 else
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5074 #include <pthread.h>
5076 void* routine(void* p){return NULL;}
5078 int main(){
5079 pthread_t p;
5080 if(pthread_create(&p,NULL,routine,NULL)!=0)
5081 return 1;
5082 (void)pthread_detach(p);
5083 return 0;
5086 _ACEOF
5087 rm -f conftest$ac_exeext
5088 if { (ac_try="$ac_link"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_link") 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5098 { (case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_try") 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 ac_cv_kthread=yes
5108 else
5109 echo "$as_me: program exited with status $ac_status" >&5
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 ( exit $ac_status )
5114 ac_cv_kthread=no
5116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5120 CC="$ac_save_cc"
5123 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5124 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5127 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5128 then
5129 # -pthread, if available, provides the right #defines
5130 # and linker options to make pthread_create available
5131 # Some compilers won't report that they do not support -pthread,
5132 # so we need to run a program to see whether it really made the
5133 # function available.
5134 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5135 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5136 if test "${ac_cv_thread+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139 ac_save_cc="$CC"
5140 CC="$CC -pthread"
5141 if test "$cross_compiling" = yes; then
5142 ac_cv_pthread=no
5143 else
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5151 #include <pthread.h>
5153 void* routine(void* p){return NULL;}
5155 int main(){
5156 pthread_t p;
5157 if(pthread_create(&p,NULL,routine,NULL)!=0)
5158 return 1;
5159 (void)pthread_detach(p);
5160 return 0;
5163 _ACEOF
5164 rm -f conftest$ac_exeext
5165 if { (ac_try="$ac_link"
5166 case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169 esac
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_link") 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5175 { (case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_try") 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 ac_cv_pthread=yes
5185 else
5186 echo "$as_me: program exited with status $ac_status" >&5
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 ( exit $ac_status )
5191 ac_cv_pthread=no
5193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5197 CC="$ac_save_cc"
5200 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5201 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5204 # If we have set a CC compiler flag for thread support then
5205 # check if it works for CXX, too.
5206 ac_cv_cxx_thread=no
5207 if test ! -z "$CXX"
5208 then
5209 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5210 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5211 ac_save_cxx="$CXX"
5213 if test "$ac_cv_kpthread" = "yes"
5214 then
5215 CXX="$CXX -Kpthread"
5216 ac_cv_cxx_thread=yes
5217 elif test "$ac_cv_kthread" = "yes"
5218 then
5219 CXX="$CXX -Kthread"
5220 ac_cv_cxx_thread=yes
5221 elif test "$ac_cv_pthread" = "yes"
5222 then
5223 CXX="$CXX -pthread"
5224 ac_cv_cxx_thread=yes
5227 if test $ac_cv_cxx_thread = yes
5228 then
5229 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5230 $CXX -c conftest.$ac_ext 2>&5
5231 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5232 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5233 then
5234 ac_cv_cxx_thread=yes
5235 else
5236 ac_cv_cxx_thread=no
5238 rm -fr conftest*
5240 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5241 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5243 CXX="$ac_save_cxx"
5246 # checks for header files
5247 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5248 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5249 if test "${ac_cv_header_stdc+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 #include <stdlib.h>
5259 #include <stdarg.h>
5260 #include <string.h>
5261 #include <float.h>
5264 main ()
5268 return 0;
5270 _ACEOF
5271 rm -f conftest.$ac_objext
5272 if { (ac_try="$ac_compile"
5273 case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_compile") 2>conftest.er1
5279 ac_status=$?
5280 grep -v '^ *+' conftest.er1 >conftest.err
5281 rm -f conftest.er1
5282 cat conftest.err >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } && {
5285 test -z "$ac_c_werror_flag" ||
5286 test ! -s conftest.err
5287 } && test -s conftest.$ac_objext; then
5288 ac_cv_header_stdc=yes
5289 else
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293 ac_cv_header_stdc=no
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 if test $ac_cv_header_stdc = yes; then
5299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 #include <string.h>
5308 _ACEOF
5309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310 $EGREP "memchr" >/dev/null 2>&1; then
5312 else
5313 ac_cv_header_stdc=no
5315 rm -f conftest*
5319 if test $ac_cv_header_stdc = yes; then
5320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <stdlib.h>
5329 _ACEOF
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 $EGREP "free" >/dev/null 2>&1; then
5333 else
5334 ac_cv_header_stdc=no
5336 rm -f conftest*
5340 if test $ac_cv_header_stdc = yes; then
5341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342 if test "$cross_compiling" = yes; then
5344 else
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #include <ctype.h>
5352 #include <stdlib.h>
5353 #if ((' ' & 0x0FF) == 0x020)
5354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5356 #else
5357 # define ISLOWER(c) \
5358 (('a' <= (c) && (c) <= 'i') \
5359 || ('j' <= (c) && (c) <= 'r') \
5360 || ('s' <= (c) && (c) <= 'z'))
5361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5362 #endif
5364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5366 main ()
5368 int i;
5369 for (i = 0; i < 256; i++)
5370 if (XOR (islower (i), ISLOWER (i))
5371 || toupper (i) != TOUPPER (i))
5372 return 2;
5373 return 0;
5375 _ACEOF
5376 rm -f conftest$ac_exeext
5377 if { (ac_try="$ac_link"
5378 case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_link") 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5387 { (case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_try") 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5397 else
5398 echo "$as_me: program exited with status $ac_status" >&5
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5402 ( exit $ac_status )
5403 ac_cv_header_stdc=no
5405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5411 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5412 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5413 if test $ac_cv_header_stdc = yes; then
5415 cat >>confdefs.h <<\_ACEOF
5416 #define STDC_HEADERS 1
5417 _ACEOF
5421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5432 inttypes.h stdint.h unistd.h
5434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440 cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 $ac_includes_default
5448 #include <$ac_header>
5449 _ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (ac_try="$ac_compile"
5452 case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455 esac
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_compile") 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } && {
5464 test -z "$ac_c_werror_flag" ||
5465 test ! -s conftest.err
5466 } && test -s conftest.$ac_objext; then
5467 eval "$as_ac_Header=yes"
5468 else
5469 echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5472 eval "$as_ac_Header=no"
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 ac_res=`eval echo '${'$as_ac_Header'}'`
5478 { echo "$as_me:$LINENO: result: $ac_res" >&5
5479 echo "${ECHO_T}$ac_res" >&6; }
5480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5481 cat >>confdefs.h <<_ACEOF
5482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5483 _ACEOF
5487 done
5544 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5545 fcntl.h grp.h \
5546 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5547 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5548 unistd.h utime.h \
5549 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5550 sys/lock.h sys/mkdev.h sys/modem.h \
5551 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5552 sys/termio.h sys/time.h \
5553 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5554 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5555 bluetooth/bluetooth.h linux/tipc.h
5557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 ac_res=`eval echo '${'$as_ac_Header'}'`
5565 { echo "$as_me:$LINENO: result: $ac_res" >&5
5566 echo "${ECHO_T}$ac_res" >&6; }
5567 else
5568 # Is the header compilable?
5569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5571 cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h. */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 $ac_includes_default
5578 #include <$ac_header>
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.$ac_objext; then
5597 ac_header_compiler=yes
5598 else
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 ac_header_compiler=no
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5607 echo "${ECHO_T}$ac_header_compiler" >&6; }
5609 # Is the header present?
5610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 #include <$ac_header>
5619 _ACEOF
5620 if { (ac_try="$ac_cpp conftest.$ac_ext"
5621 case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } >/dev/null && {
5633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 }; then
5636 ac_header_preproc=yes
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 ac_header_preproc=no
5644 rm -f conftest.err conftest.$ac_ext
5645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5646 echo "${ECHO_T}$ac_header_preproc" >&6; }
5648 # So? What about this header?
5649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5650 yes:no: )
5651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5655 ac_header_preproc=yes
5657 no:yes:* )
5658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5670 ( cat <<\_ASBOX
5671 ## ------------------------------------------------ ##
5672 ## Report this to http://www.python.org/python-bugs ##
5673 ## ------------------------------------------------ ##
5674 _ASBOX
5675 ) | sed "s/^/$as_me: WARNING: /" >&2
5677 esac
5678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 eval "$as_ac_Header=\$ac_header_preproc"
5685 ac_res=`eval echo '${'$as_ac_Header'}'`
5686 { echo "$as_me:$LINENO: result: $ac_res" >&5
5687 echo "${ECHO_T}$ac_res" >&6; }
5690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5691 cat >>confdefs.h <<_ACEOF
5692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5693 _ACEOF
5697 done
5704 ac_header_dirent=no
5705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5706 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5707 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $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 cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h. */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #include <sys/types.h>
5719 #include <$ac_hdr>
5722 main ()
5724 if ((DIR *) 0)
5725 return 0;
5727 return 0;
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5732 case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && {
5744 test -z "$ac_c_werror_flag" ||
5745 test ! -s conftest.err
5746 } && test -s conftest.$ac_objext; then
5747 eval "$as_ac_Header=yes"
5748 else
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5752 eval "$as_ac_Header=no"
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 ac_res=`eval echo '${'$as_ac_Header'}'`
5758 { echo "$as_me:$LINENO: result: $ac_res" >&5
5759 echo "${ECHO_T}$ac_res" >&6; }
5760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5761 cat >>confdefs.h <<_ACEOF
5762 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5763 _ACEOF
5765 ac_header_dirent=$ac_hdr; break
5768 done
5769 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5770 if test $ac_header_dirent = dirent.h; then
5771 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5772 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5773 if test "${ac_cv_search_opendir+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776 ac_func_search_save_LIBS=$LIBS
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h. */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5784 /* Override any GCC internal prototype to avoid an error.
5785 Use char because int might match the return type of a GCC
5786 builtin and then its argument prototype would still apply. */
5787 #ifdef __cplusplus
5788 extern "C"
5789 #endif
5790 char opendir ();
5792 main ()
5794 return opendir ();
5796 return 0;
5798 _ACEOF
5799 for ac_lib in '' dir; do
5800 if test -z "$ac_lib"; then
5801 ac_res="none required"
5802 else
5803 ac_res=-l$ac_lib
5804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5806 rm -f conftest.$ac_objext conftest$ac_exeext
5807 if { (ac_try="$ac_link"
5808 case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_link") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest$ac_exeext &&
5823 $as_test_x conftest$ac_exeext; then
5824 ac_cv_search_opendir=$ac_res
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5833 conftest$ac_exeext
5834 if test "${ac_cv_search_opendir+set}" = set; then
5835 break
5837 done
5838 if test "${ac_cv_search_opendir+set}" = set; then
5840 else
5841 ac_cv_search_opendir=no
5843 rm conftest.$ac_ext
5844 LIBS=$ac_func_search_save_LIBS
5846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5848 ac_res=$ac_cv_search_opendir
5849 if test "$ac_res" != no; then
5850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5854 else
5855 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5856 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5857 if test "${ac_cv_search_opendir+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 ac_func_search_save_LIBS=$LIBS
5861 cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h. */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5871 #ifdef __cplusplus
5872 extern "C"
5873 #endif
5874 char opendir ();
5876 main ()
5878 return opendir ();
5880 return 0;
5882 _ACEOF
5883 for ac_lib in '' x; do
5884 if test -z "$ac_lib"; then
5885 ac_res="none required"
5886 else
5887 ac_res=-l$ac_lib
5888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5890 rm -f conftest.$ac_objext conftest$ac_exeext
5891 if { (ac_try="$ac_link"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_link") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest$ac_exeext &&
5907 $as_test_x conftest$ac_exeext; then
5908 ac_cv_search_opendir=$ac_res
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5917 conftest$ac_exeext
5918 if test "${ac_cv_search_opendir+set}" = set; then
5919 break
5921 done
5922 if test "${ac_cv_search_opendir+set}" = set; then
5924 else
5925 ac_cv_search_opendir=no
5927 rm conftest.$ac_ext
5928 LIBS=$ac_func_search_save_LIBS
5930 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5931 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5932 ac_res=$ac_cv_search_opendir
5933 if test "$ac_res" != no; then
5934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5940 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5941 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5942 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #include <sys/types.h>
5953 main ()
5955 return makedev(0, 0);
5957 return 0;
5959 _ACEOF
5960 rm -f conftest.$ac_objext conftest$ac_exeext
5961 if { (ac_try="$ac_link"
5962 case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_link") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_c_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest$ac_exeext &&
5977 $as_test_x conftest$ac_exeext; then
5978 ac_cv_header_sys_types_h_makedev=yes
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 ac_cv_header_sys_types_h_makedev=no
5986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5987 conftest$ac_exeext conftest.$ac_ext
5990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5991 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5993 if test $ac_cv_header_sys_types_h_makedev = no; then
5994 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5995 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5996 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5997 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6001 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6002 else
6003 # Is the header compilable?
6004 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6005 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 $ac_includes_default
6013 #include <sys/mkdev.h>
6014 _ACEOF
6015 rm -f conftest.$ac_objext
6016 if { (ac_try="$ac_compile"
6017 case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compile") 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && {
6029 test -z "$ac_c_werror_flag" ||
6030 test ! -s conftest.err
6031 } && test -s conftest.$ac_objext; then
6032 ac_header_compiler=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_header_compiler=no
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6042 echo "${ECHO_T}$ac_header_compiler" >&6; }
6044 # Is the header present?
6045 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6046 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 #include <sys/mkdev.h>
6054 _ACEOF
6055 if { (ac_try="$ac_cpp conftest.$ac_ext"
6056 case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } >/dev/null && {
6068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 }; then
6071 ac_header_preproc=yes
6072 else
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 ac_header_preproc=no
6079 rm -f conftest.err conftest.$ac_ext
6080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6081 echo "${ECHO_T}$ac_header_preproc" >&6; }
6083 # So? What about this header?
6084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6085 yes:no: )
6086 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6087 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6088 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6089 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6090 ac_header_preproc=yes
6092 no:yes:* )
6093 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6094 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6095 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6096 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6098 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6099 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6100 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6102 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6104 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6105 ( cat <<\_ASBOX
6106 ## ------------------------------------------------ ##
6107 ## Report this to http://www.python.org/python-bugs ##
6108 ## ------------------------------------------------ ##
6109 _ASBOX
6110 ) | sed "s/^/$as_me: WARNING: /" >&2
6112 esac
6113 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6114 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6115 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6120 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6121 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6124 if test $ac_cv_header_sys_mkdev_h = yes; then
6126 cat >>confdefs.h <<\_ACEOF
6127 #define MAJOR_IN_MKDEV 1
6128 _ACEOF
6134 if test $ac_cv_header_sys_mkdev_h = no; then
6135 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6136 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6137 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6138 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6142 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6143 else
6144 # Is the header compilable?
6145 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6146 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6147 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h. */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 $ac_includes_default
6154 #include <sys/sysmacros.h>
6155 _ACEOF
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_compile") 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.$ac_objext; then
6173 ac_header_compiler=yes
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_header_compiler=no
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6183 echo "${ECHO_T}$ac_header_compiler" >&6; }
6185 # Is the header present?
6186 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6187 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <sys/sysmacros.h>
6195 _ACEOF
6196 if { (ac_try="$ac_cpp conftest.$ac_ext"
6197 case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200 esac
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } >/dev/null && {
6209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6211 }; then
6212 ac_header_preproc=yes
6213 else
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6217 ac_header_preproc=no
6220 rm -f conftest.err conftest.$ac_ext
6221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6222 echo "${ECHO_T}$ac_header_preproc" >&6; }
6224 # So? What about this header?
6225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6226 yes:no: )
6227 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6228 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6230 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6231 ac_header_preproc=yes
6233 no:yes:* )
6234 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6235 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6237 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6239 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6241 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6243 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6245 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6246 ( cat <<\_ASBOX
6247 ## ------------------------------------------------ ##
6248 ## Report this to http://www.python.org/python-bugs ##
6249 ## ------------------------------------------------ ##
6250 _ASBOX
6251 ) | sed "s/^/$as_me: WARNING: /" >&2
6253 esac
6254 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6255 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6256 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6261 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6262 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6265 if test $ac_cv_header_sys_sysmacros_h = yes; then
6267 cat >>confdefs.h <<\_ACEOF
6268 #define MAJOR_IN_SYSMACROS 1
6269 _ACEOF
6278 # On Solaris, term.h requires curses.h
6280 for ac_header in term.h
6282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6295 #ifdef HAVE_CURSES_H
6296 #include <curses.h>
6297 #endif
6300 #include <$ac_header>
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6304 case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compile") 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } && {
6316 test -z "$ac_c_werror_flag" ||
6317 test ! -s conftest.err
6318 } && test -s conftest.$ac_objext; then
6319 eval "$as_ac_Header=yes"
6320 else
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 eval "$as_ac_Header=no"
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 ac_res=`eval echo '${'$as_ac_Header'}'`
6330 { echo "$as_me:$LINENO: result: $ac_res" >&5
6331 echo "${ECHO_T}$ac_res" >&6; }
6332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6333 cat >>confdefs.h <<_ACEOF
6334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6335 _ACEOF
6339 done
6342 # On Linux, netlink.h requires asm/types.h
6344 for ac_header in linux/netlink.h
6346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352 cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h. */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6359 #ifdef HAVE_ASM_TYPES_H
6360 #include <asm/types.h>
6361 #endif
6362 #ifdef HAVE_SYS_SOCKET_H
6363 #include <sys/socket.h>
6364 #endif
6367 #include <$ac_header>
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (ac_try="$ac_compile"
6371 case "(($ac_try" in
6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6374 esac
6375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376 (eval "$ac_compile") 2>conftest.er1
6377 ac_status=$?
6378 grep -v '^ *+' conftest.er1 >conftest.err
6379 rm -f conftest.er1
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } && {
6383 test -z "$ac_c_werror_flag" ||
6384 test ! -s conftest.err
6385 } && test -s conftest.$ac_objext; then
6386 eval "$as_ac_Header=yes"
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 eval "$as_ac_Header=no"
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 ac_res=`eval echo '${'$as_ac_Header'}'`
6397 { echo "$as_me:$LINENO: result: $ac_res" >&5
6398 echo "${ECHO_T}$ac_res" >&6; }
6399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6400 cat >>confdefs.h <<_ACEOF
6401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6402 _ACEOF
6406 done
6409 # checks for typedefs
6410 was_it_defined=no
6411 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6412 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 #include <time.h>
6421 _ACEOF
6422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6423 $EGREP "clock_t" >/dev/null 2>&1; then
6424 was_it_defined=yes
6425 else
6428 cat >>confdefs.h <<\_ACEOF
6429 #define clock_t long
6430 _ACEOF
6434 rm -f conftest*
6436 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6437 echo "${ECHO_T}$was_it_defined" >&6; }
6439 # Check whether using makedev requires defining _OSF_SOURCE
6440 { echo "$as_me:$LINENO: checking for makedev" >&5
6441 echo $ECHO_N "checking for makedev... $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 <sys/types.h>
6450 main ()
6452 makedev(0, 0)
6454 return 0;
6456 _ACEOF
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (ac_try="$ac_link"
6459 case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_link") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest$ac_exeext &&
6474 $as_test_x conftest$ac_exeext; then
6475 ac_cv_has_makedev=yes
6476 else
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6480 ac_cv_has_makedev=no
6483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6484 conftest$ac_exeext conftest.$ac_ext
6485 if test "$ac_cv_has_makedev" = "no"; then
6486 # we didn't link, try if _OSF_SOURCE will allow us to link
6487 cat >conftest.$ac_ext <<_ACEOF
6488 /* confdefs.h. */
6489 _ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6494 #define _OSF_SOURCE 1
6495 #include <sys/types.h>
6498 main ()
6500 makedev(0, 0)
6502 return 0;
6504 _ACEOF
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (ac_try="$ac_link"
6507 case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510 esac
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_link") 2>conftest.er1
6513 ac_status=$?
6514 grep -v '^ *+' conftest.er1 >conftest.err
6515 rm -f conftest.er1
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest$ac_exeext &&
6522 $as_test_x conftest$ac_exeext; then
6523 ac_cv_has_makedev=yes
6524 else
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 ac_cv_has_makedev=no
6531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6532 conftest$ac_exeext conftest.$ac_ext
6533 if test "$ac_cv_has_makedev" = "yes"; then
6535 cat >>confdefs.h <<\_ACEOF
6536 #define _OSF_SOURCE 1
6537 _ACEOF
6541 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6542 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6543 if test "$ac_cv_has_makedev" = "yes"; then
6545 cat >>confdefs.h <<\_ACEOF
6546 #define HAVE_MAKEDEV 1
6547 _ACEOF
6551 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6552 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6553 # defined, but the compiler does not support pragma redefine_extname,
6554 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6555 # structures (such as rlimit64) without declaring them. As a
6556 # work-around, disable LFS on such configurations
6558 use_lfs=yes
6559 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6560 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6561 cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h. */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6568 #define _LARGEFILE_SOURCE 1
6569 #define _FILE_OFFSET_BITS 64
6570 #include <sys/resource.h>
6573 main ()
6575 struct rlimit foo;
6577 return 0;
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (ac_try="$ac_compile"
6582 case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585 esac
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6588 ac_status=$?
6589 grep -v '^ *+' conftest.er1 >conftest.err
6590 rm -f conftest.er1
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest.$ac_objext; then
6597 sol_lfs_bug=no
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 sol_lfs_bug=yes
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6607 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6608 if test "$sol_lfs_bug" = "yes"; then
6609 use_lfs=no
6612 if test "$use_lfs" = "yes"; then
6613 # Two defines needed to enable largefile support on various platforms
6614 # These may affect some typedefs
6616 cat >>confdefs.h <<\_ACEOF
6617 #define _LARGEFILE_SOURCE 1
6618 _ACEOF
6621 cat >>confdefs.h <<\_ACEOF
6622 #define _FILE_OFFSET_BITS 64
6623 _ACEOF
6627 # Add some code to confdefs.h so that the test for off_t works on SCO
6628 cat >> confdefs.h <<\EOF
6629 #if defined(SCO_DS)
6630 #undef _OFF_T
6631 #endif
6634 # Type availability checks
6635 { echo "$as_me:$LINENO: checking for mode_t" >&5
6636 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6637 if test "${ac_cv_type_mode_t+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h. */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 $ac_includes_default
6647 typedef mode_t ac__type_new_;
6649 main ()
6651 if ((ac__type_new_ *) 0)
6652 return 0;
6653 if (sizeof (ac__type_new_))
6654 return 0;
6656 return 0;
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (ac_try="$ac_compile"
6661 case "(($ac_try" in
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6664 esac
6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666 (eval "$ac_compile") 2>conftest.er1
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && {
6673 test -z "$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6675 } && test -s conftest.$ac_objext; then
6676 ac_cv_type_mode_t=yes
6677 else
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 ac_cv_type_mode_t=no
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6687 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6688 if test $ac_cv_type_mode_t = yes; then
6690 else
6692 cat >>confdefs.h <<_ACEOF
6693 #define mode_t int
6694 _ACEOF
6698 { echo "$as_me:$LINENO: checking for off_t" >&5
6699 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6700 if test "${ac_cv_type_off_t+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703 cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h. */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 $ac_includes_default
6710 typedef off_t ac__type_new_;
6712 main ()
6714 if ((ac__type_new_ *) 0)
6715 return 0;
6716 if (sizeof (ac__type_new_))
6717 return 0;
6719 return 0;
6721 _ACEOF
6722 rm -f conftest.$ac_objext
6723 if { (ac_try="$ac_compile"
6724 case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727 esac
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_compile") 2>conftest.er1
6730 ac_status=$?
6731 grep -v '^ *+' conftest.er1 >conftest.err
6732 rm -f conftest.er1
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest.$ac_objext; then
6739 ac_cv_type_off_t=yes
6740 else
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_cv_type_off_t=no
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6750 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6751 if test $ac_cv_type_off_t = yes; then
6753 else
6755 cat >>confdefs.h <<_ACEOF
6756 #define off_t long int
6757 _ACEOF
6761 { echo "$as_me:$LINENO: checking for pid_t" >&5
6762 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6763 if test "${ac_cv_type_pid_t+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h. */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 $ac_includes_default
6773 typedef pid_t ac__type_new_;
6775 main ()
6777 if ((ac__type_new_ *) 0)
6778 return 0;
6779 if (sizeof (ac__type_new_))
6780 return 0;
6782 return 0;
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (ac_try="$ac_compile"
6787 case "(($ac_try" in
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6790 esac
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_compile") 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest.$ac_objext; then
6802 ac_cv_type_pid_t=yes
6803 else
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6807 ac_cv_type_pid_t=no
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6813 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6814 if test $ac_cv_type_pid_t = yes; then
6816 else
6818 cat >>confdefs.h <<_ACEOF
6819 #define pid_t int
6820 _ACEOF
6824 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6825 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6826 if test "${ac_cv_type_signal+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <sys/types.h>
6836 #include <signal.h>
6839 main ()
6841 return *(signal (0, 0)) (0) == 1;
6843 return 0;
6845 _ACEOF
6846 rm -f conftest.$ac_objext
6847 if { (ac_try="$ac_compile"
6848 case "(($ac_try" in
6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6851 esac
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853 (eval "$ac_compile") 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest.$ac_objext; then
6863 ac_cv_type_signal=int
6864 else
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 ac_cv_type_signal=void
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6874 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6876 cat >>confdefs.h <<_ACEOF
6877 #define RETSIGTYPE $ac_cv_type_signal
6878 _ACEOF
6881 { echo "$as_me:$LINENO: checking for size_t" >&5
6882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6883 if test "${ac_cv_type_size_t+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6893 typedef size_t ac__type_new_;
6895 main ()
6897 if ((ac__type_new_ *) 0)
6898 return 0;
6899 if (sizeof (ac__type_new_))
6900 return 0;
6902 return 0;
6904 _ACEOF
6905 rm -f conftest.$ac_objext
6906 if { (ac_try="$ac_compile"
6907 case "(($ac_try" in
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_compile") 2>conftest.er1
6913 ac_status=$?
6914 grep -v '^ *+' conftest.er1 >conftest.err
6915 rm -f conftest.er1
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest.$ac_objext; then
6922 ac_cv_type_size_t=yes
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 ac_cv_type_size_t=no
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6933 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6934 if test $ac_cv_type_size_t = yes; then
6936 else
6938 cat >>confdefs.h <<_ACEOF
6939 #define size_t unsigned int
6940 _ACEOF
6944 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6945 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6946 if test "${ac_cv_type_uid_t+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <sys/types.h>
6957 _ACEOF
6958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6959 $EGREP "uid_t" >/dev/null 2>&1; then
6960 ac_cv_type_uid_t=yes
6961 else
6962 ac_cv_type_uid_t=no
6964 rm -f conftest*
6967 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6968 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6969 if test $ac_cv_type_uid_t = no; then
6971 cat >>confdefs.h <<\_ACEOF
6972 #define uid_t int
6973 _ACEOF
6976 cat >>confdefs.h <<\_ACEOF
6977 #define gid_t int
6978 _ACEOF
6982 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6983 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6984 if test "${ac_cv_type_ssize_t+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6994 typedef ssize_t ac__type_new_;
6996 main ()
6998 if ((ac__type_new_ *) 0)
6999 return 0;
7000 if (sizeof (ac__type_new_))
7001 return 0;
7003 return 0;
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7023 ac_cv_type_ssize_t=yes
7024 else
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 ac_cv_type_ssize_t=no
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7034 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7035 if test $ac_cv_type_ssize_t = yes; then
7037 cat >>confdefs.h <<\_ACEOF
7038 #define HAVE_SSIZE_T 1
7039 _ACEOF
7044 # Sizes of various common basic types
7045 # ANSI C requires sizeof(char) == 1, so no need to check it
7046 { echo "$as_me:$LINENO: checking for int" >&5
7047 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7048 if test "${ac_cv_type_int+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 $ac_includes_default
7058 typedef int ac__type_new_;
7060 main ()
7062 if ((ac__type_new_ *) 0)
7063 return 0;
7064 if (sizeof (ac__type_new_))
7065 return 0;
7067 return 0;
7069 _ACEOF
7070 rm -f conftest.$ac_objext
7071 if { (ac_try="$ac_compile"
7072 case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_compile") 2>conftest.er1
7078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && {
7084 test -z "$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7086 } && test -s conftest.$ac_objext; then
7087 ac_cv_type_int=yes
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 ac_cv_type_int=no
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7098 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7100 # The cast to long int works around a bug in the HP C Compiler
7101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7103 # This bug is HP SR number 8606223364.
7104 { echo "$as_me:$LINENO: checking size of int" >&5
7105 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7106 if test "${ac_cv_sizeof_int+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 if test "$cross_compiling" = yes; then
7110 # Depending upon the size, compute the lo and hi bounds.
7111 cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h. */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 $ac_includes_default
7118 typedef int ac__type_sizeof_;
7120 main ()
7122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7123 test_array [0] = 0
7126 return 0;
7128 _ACEOF
7129 rm -f conftest.$ac_objext
7130 if { (ac_try="$ac_compile"
7131 case "(($ac_try" in
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7134 esac
7135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136 (eval "$ac_compile") 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_c_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest.$ac_objext; then
7146 ac_lo=0 ac_mid=0
7147 while :; do
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h. */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 $ac_includes_default
7155 typedef int ac__type_sizeof_;
7157 main ()
7159 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7160 test_array [0] = 0
7163 return 0;
7165 _ACEOF
7166 rm -f conftest.$ac_objext
7167 if { (ac_try="$ac_compile"
7168 case "(($ac_try" in
7169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7171 esac
7172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173 (eval "$ac_compile") 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest.$ac_objext; then
7183 ac_hi=$ac_mid; break
7184 else
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7188 ac_lo=`expr $ac_mid + 1`
7189 if test $ac_lo -le $ac_mid; then
7190 ac_lo= ac_hi=
7191 break
7193 ac_mid=`expr 2 '*' $ac_mid + 1`
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 done
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h. */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7209 typedef int ac__type_sizeof_;
7211 main ()
7213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7214 test_array [0] = 0
7217 return 0;
7219 _ACEOF
7220 rm -f conftest.$ac_objext
7221 if { (ac_try="$ac_compile"
7222 case "(($ac_try" in
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7225 esac
7226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7227 (eval "$ac_compile") 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && {
7234 test -z "$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7236 } && test -s conftest.$ac_objext; then
7237 ac_hi=-1 ac_mid=-1
7238 while :; do
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7246 typedef int ac__type_sizeof_;
7248 main ()
7250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7251 test_array [0] = 0
7254 return 0;
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7259 case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.$ac_objext; then
7274 ac_lo=$ac_mid; break
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 ac_hi=`expr '(' $ac_mid ')' - 1`
7280 if test $ac_mid -le $ac_hi; then
7281 ac_lo= ac_hi=
7282 break
7284 ac_mid=`expr 2 '*' $ac_mid`
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 done
7289 else
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 ac_lo= ac_hi=
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 # Binary search between lo and hi bounds.
7301 while test "x$ac_lo" != "x$ac_hi"; do
7302 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 typedef int ac__type_sizeof_;
7312 main ()
7314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7315 test_array [0] = 0
7318 return 0;
7320 _ACEOF
7321 rm -f conftest.$ac_objext
7322 if { (ac_try="$ac_compile"
7323 case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326 esac
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_compile") 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && {
7335 test -z "$ac_c_werror_flag" ||
7336 test ! -s conftest.err
7337 } && test -s conftest.$ac_objext; then
7338 ac_hi=$ac_mid
7339 else
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7343 ac_lo=`expr '(' $ac_mid ')' + 1`
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 done
7348 case $ac_lo in
7349 ?*) ac_cv_sizeof_int=$ac_lo;;
7350 '') if test "$ac_cv_type_int" = yes; then
7351 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7352 See \`config.log' for more details." >&5
7353 echo "$as_me: error: cannot compute sizeof (int)
7354 See \`config.log' for more details." >&2;}
7355 { (exit 77); exit 77; }; }
7356 else
7357 ac_cv_sizeof_int=0
7358 fi ;;
7359 esac
7360 else
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 $ac_includes_default
7368 typedef int ac__type_sizeof_;
7369 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7370 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7371 #include <stdio.h>
7372 #include <stdlib.h>
7374 main ()
7377 FILE *f = fopen ("conftest.val", "w");
7378 if (! f)
7379 return 1;
7380 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7382 long int i = longval ();
7383 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7384 return 1;
7385 fprintf (f, "%ld\n", i);
7387 else
7389 unsigned long int i = ulongval ();
7390 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7391 return 1;
7392 fprintf (f, "%lu\n", i);
7394 return ferror (f) || fclose (f) != 0;
7397 return 0;
7399 _ACEOF
7400 rm -f conftest$ac_exeext
7401 if { (ac_try="$ac_link"
7402 case "(($ac_try" in
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7405 esac
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_link") 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7411 { (case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_try") 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_cv_sizeof_int=`cat conftest.val`
7421 else
7422 echo "$as_me: program exited with status $ac_status" >&5
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7426 ( exit $ac_status )
7427 if test "$ac_cv_type_int" = yes; then
7428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7429 See \`config.log' for more details." >&5
7430 echo "$as_me: error: cannot compute sizeof (int)
7431 See \`config.log' for more details." >&2;}
7432 { (exit 77); exit 77; }; }
7433 else
7434 ac_cv_sizeof_int=0
7437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7439 rm -f conftest.val
7441 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7442 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7446 cat >>confdefs.h <<_ACEOF
7447 #define SIZEOF_INT $ac_cv_sizeof_int
7448 _ACEOF
7451 { echo "$as_me:$LINENO: checking for long" >&5
7452 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7453 if test "${ac_cv_type_long+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 $ac_includes_default
7463 typedef long ac__type_new_;
7465 main ()
7467 if ((ac__type_new_ *) 0)
7468 return 0;
7469 if (sizeof (ac__type_new_))
7470 return 0;
7472 return 0;
7474 _ACEOF
7475 rm -f conftest.$ac_objext
7476 if { (ac_try="$ac_compile"
7477 case "(($ac_try" in
7478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479 *) ac_try_echo=$ac_try;;
7480 esac
7481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7482 (eval "$ac_compile") 2>conftest.er1
7483 ac_status=$?
7484 grep -v '^ *+' conftest.er1 >conftest.err
7485 rm -f conftest.er1
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_c_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest.$ac_objext; then
7492 ac_cv_type_long=yes
7493 else
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7497 ac_cv_type_long=no
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7503 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7505 # The cast to long int works around a bug in the HP C Compiler
7506 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7507 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7508 # This bug is HP SR number 8606223364.
7509 { echo "$as_me:$LINENO: checking size of long" >&5
7510 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7511 if test "${ac_cv_sizeof_long+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514 if test "$cross_compiling" = yes; then
7515 # Depending upon the size, compute the lo and hi bounds.
7516 cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h. */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7522 $ac_includes_default
7523 typedef long ac__type_sizeof_;
7525 main ()
7527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7528 test_array [0] = 0
7531 return 0;
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7536 case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539 esac
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7551 ac_lo=0 ac_mid=0
7552 while :; do
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 $ac_includes_default
7560 typedef long ac__type_sizeof_;
7562 main ()
7564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7565 test_array [0] = 0
7568 return 0;
7570 _ACEOF
7571 rm -f conftest.$ac_objext
7572 if { (ac_try="$ac_compile"
7573 case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576 esac
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_compile") 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } && {
7585 test -z "$ac_c_werror_flag" ||
7586 test ! -s conftest.err
7587 } && test -s conftest.$ac_objext; then
7588 ac_hi=$ac_mid; break
7589 else
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 ac_lo=`expr $ac_mid + 1`
7594 if test $ac_lo -le $ac_mid; then
7595 ac_lo= ac_hi=
7596 break
7598 ac_mid=`expr 2 '*' $ac_mid + 1`
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 done
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7614 typedef long ac__type_sizeof_;
7616 main ()
7618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7619 test_array [0] = 0
7622 return 0;
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7627 case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_compile") 2>conftest.er1
7633 ac_status=$?
7634 grep -v '^ *+' conftest.er1 >conftest.err
7635 rm -f conftest.er1
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest.$ac_objext; then
7642 ac_hi=-1 ac_mid=-1
7643 while :; do
7644 cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h. */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 $ac_includes_default
7651 typedef long ac__type_sizeof_;
7653 main ()
7655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7656 test_array [0] = 0
7659 return 0;
7661 _ACEOF
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7664 case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667 esac
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7670 ac_status=$?
7671 grep -v '^ *+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 ac_lo=$ac_mid; break
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_hi=`expr '(' $ac_mid ')' - 1`
7685 if test $ac_mid -le $ac_hi; then
7686 ac_lo= ac_hi=
7687 break
7689 ac_mid=`expr 2 '*' $ac_mid`
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 done
7694 else
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7698 ac_lo= ac_hi=
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 # Binary search between lo and hi bounds.
7706 while test "x$ac_lo" != "x$ac_hi"; do
7707 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h. */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 $ac_includes_default
7715 typedef long ac__type_sizeof_;
7717 main ()
7719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7720 test_array [0] = 0
7723 return 0;
7725 _ACEOF
7726 rm -f conftest.$ac_objext
7727 if { (ac_try="$ac_compile"
7728 case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731 esac
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.$ac_objext; then
7743 ac_hi=$ac_mid
7744 else
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 ac_lo=`expr '(' $ac_mid ')' + 1`
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 done
7753 case $ac_lo in
7754 ?*) ac_cv_sizeof_long=$ac_lo;;
7755 '') if test "$ac_cv_type_long" = yes; then
7756 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7757 See \`config.log' for more details." >&5
7758 echo "$as_me: error: cannot compute sizeof (long)
7759 See \`config.log' for more details." >&2;}
7760 { (exit 77); exit 77; }; }
7761 else
7762 ac_cv_sizeof_long=0
7763 fi ;;
7764 esac
7765 else
7766 cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h. */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772 $ac_includes_default
7773 typedef long ac__type_sizeof_;
7774 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7775 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7776 #include <stdio.h>
7777 #include <stdlib.h>
7779 main ()
7782 FILE *f = fopen ("conftest.val", "w");
7783 if (! f)
7784 return 1;
7785 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7787 long int i = longval ();
7788 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7789 return 1;
7790 fprintf (f, "%ld\n", i);
7792 else
7794 unsigned long int i = ulongval ();
7795 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7796 return 1;
7797 fprintf (f, "%lu\n", i);
7799 return ferror (f) || fclose (f) != 0;
7802 return 0;
7804 _ACEOF
7805 rm -f conftest$ac_exeext
7806 if { (ac_try="$ac_link"
7807 case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7810 esac
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_link") 2>&5
7813 ac_status=$?
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7816 { (case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7819 esac
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_try") 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_cv_sizeof_long=`cat conftest.val`
7826 else
7827 echo "$as_me: program exited with status $ac_status" >&5
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ( exit $ac_status )
7832 if test "$ac_cv_type_long" = yes; then
7833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7834 See \`config.log' for more details." >&5
7835 echo "$as_me: error: cannot compute sizeof (long)
7836 See \`config.log' for more details." >&2;}
7837 { (exit 77); exit 77; }; }
7838 else
7839 ac_cv_sizeof_long=0
7842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7844 rm -f conftest.val
7846 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7847 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7851 cat >>confdefs.h <<_ACEOF
7852 #define SIZEOF_LONG $ac_cv_sizeof_long
7853 _ACEOF
7856 { echo "$as_me:$LINENO: checking for void *" >&5
7857 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7858 if test "${ac_cv_type_void_p+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 $ac_includes_default
7868 typedef void * ac__type_new_;
7870 main ()
7872 if ((ac__type_new_ *) 0)
7873 return 0;
7874 if (sizeof (ac__type_new_))
7875 return 0;
7877 return 0;
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7882 case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.$ac_objext; then
7897 ac_cv_type_void_p=yes
7898 else
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_cv_type_void_p=no
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7908 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7910 # The cast to long int works around a bug in the HP C Compiler
7911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7913 # This bug is HP SR number 8606223364.
7914 { echo "$as_me:$LINENO: checking size of void *" >&5
7915 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7916 if test "${ac_cv_sizeof_void_p+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919 if test "$cross_compiling" = yes; then
7920 # Depending upon the size, compute the lo and hi bounds.
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 $ac_includes_default
7928 typedef void * ac__type_sizeof_;
7930 main ()
7932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7933 test_array [0] = 0
7936 return 0;
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7941 case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.$ac_objext; then
7956 ac_lo=0 ac_mid=0
7957 while :; do
7958 cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h. */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 $ac_includes_default
7965 typedef void * ac__type_sizeof_;
7967 main ()
7969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7970 test_array [0] = 0
7973 return 0;
7975 _ACEOF
7976 rm -f conftest.$ac_objext
7977 if { (ac_try="$ac_compile"
7978 case "(($ac_try" in
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7981 esac
7982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7983 (eval "$ac_compile") 2>conftest.er1
7984 ac_status=$?
7985 grep -v '^ *+' conftest.er1 >conftest.err
7986 rm -f conftest.er1
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } && {
7990 test -z "$ac_c_werror_flag" ||
7991 test ! -s conftest.err
7992 } && test -s conftest.$ac_objext; then
7993 ac_hi=$ac_mid; break
7994 else
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7998 ac_lo=`expr $ac_mid + 1`
7999 if test $ac_lo -le $ac_mid; then
8000 ac_lo= ac_hi=
8001 break
8003 ac_mid=`expr 2 '*' $ac_mid + 1`
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 done
8008 else
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 typedef void * ac__type_sizeof_;
8021 main ()
8023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8024 test_array [0] = 0
8027 return 0;
8029 _ACEOF
8030 rm -f conftest.$ac_objext
8031 if { (ac_try="$ac_compile"
8032 case "(($ac_try" in
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8035 esac
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_compile") 2>conftest.er1
8038 ac_status=$?
8039 grep -v '^ *+' conftest.er1 >conftest.err
8040 rm -f conftest.er1
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && {
8044 test -z "$ac_c_werror_flag" ||
8045 test ! -s conftest.err
8046 } && test -s conftest.$ac_objext; then
8047 ac_hi=-1 ac_mid=-1
8048 while :; do
8049 cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h. */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8055 $ac_includes_default
8056 typedef void * ac__type_sizeof_;
8058 main ()
8060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8061 test_array [0] = 0
8064 return 0;
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8069 case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072 esac
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_compile") 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest.$ac_objext; then
8084 ac_lo=$ac_mid; break
8085 else
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8089 ac_hi=`expr '(' $ac_mid ')' - 1`
8090 if test $ac_mid -le $ac_hi; then
8091 ac_lo= ac_hi=
8092 break
8094 ac_mid=`expr 2 '*' $ac_mid`
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 done
8099 else
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8103 ac_lo= ac_hi=
8106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 # Binary search between lo and hi bounds.
8111 while test "x$ac_lo" != "x$ac_hi"; do
8112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8120 typedef void * ac__type_sizeof_;
8122 main ()
8124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8125 test_array [0] = 0
8128 return 0;
8130 _ACEOF
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8133 case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.$ac_objext; then
8148 ac_hi=$ac_mid
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_lo=`expr '(' $ac_mid ')' + 1`
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 done
8158 case $ac_lo in
8159 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8160 '') if test "$ac_cv_type_void_p" = yes; then
8161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8162 See \`config.log' for more details." >&5
8163 echo "$as_me: error: cannot compute sizeof (void *)
8164 See \`config.log' for more details." >&2;}
8165 { (exit 77); exit 77; }; }
8166 else
8167 ac_cv_sizeof_void_p=0
8168 fi ;;
8169 esac
8170 else
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h. */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 typedef void * ac__type_sizeof_;
8179 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8180 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8181 #include <stdio.h>
8182 #include <stdlib.h>
8184 main ()
8187 FILE *f = fopen ("conftest.val", "w");
8188 if (! f)
8189 return 1;
8190 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8192 long int i = longval ();
8193 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8194 return 1;
8195 fprintf (f, "%ld\n", i);
8197 else
8199 unsigned long int i = ulongval ();
8200 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8201 return 1;
8202 fprintf (f, "%lu\n", i);
8204 return ferror (f) || fclose (f) != 0;
8207 return 0;
8209 _ACEOF
8210 rm -f conftest$ac_exeext
8211 if { (ac_try="$ac_link"
8212 case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8215 esac
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_link") 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8224 esac
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_try") 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_sizeof_void_p=`cat conftest.val`
8231 else
8232 echo "$as_me: program exited with status $ac_status" >&5
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8236 ( exit $ac_status )
8237 if test "$ac_cv_type_void_p" = yes; then
8238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8239 See \`config.log' for more details." >&5
8240 echo "$as_me: error: cannot compute sizeof (void *)
8241 See \`config.log' for more details." >&2;}
8242 { (exit 77); exit 77; }; }
8243 else
8244 ac_cv_sizeof_void_p=0
8247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8249 rm -f conftest.val
8251 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8252 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8256 cat >>confdefs.h <<_ACEOF
8257 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8258 _ACEOF
8261 { echo "$as_me:$LINENO: checking for short" >&5
8262 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8263 if test "${ac_cv_type_short+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 typedef short ac__type_new_;
8275 main ()
8277 if ((ac__type_new_ *) 0)
8278 return 0;
8279 if (sizeof (ac__type_new_))
8280 return 0;
8282 return 0;
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8287 case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8293 ac_status=$?
8294 grep -v '^ *+' conftest.er1 >conftest.err
8295 rm -f conftest.er1
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_c_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest.$ac_objext; then
8302 ac_cv_type_short=yes
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_cv_type_short=no
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8313 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8315 # The cast to long int works around a bug in the HP C Compiler
8316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8318 # This bug is HP SR number 8606223364.
8319 { echo "$as_me:$LINENO: checking size of short" >&5
8320 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8321 if test "${ac_cv_sizeof_short+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 if test "$cross_compiling" = yes; then
8325 # Depending upon the size, compute the lo and hi bounds.
8326 cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h. */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 $ac_includes_default
8333 typedef short ac__type_sizeof_;
8335 main ()
8337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8338 test_array [0] = 0
8341 return 0;
8343 _ACEOF
8344 rm -f conftest.$ac_objext
8345 if { (ac_try="$ac_compile"
8346 case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8349 esac
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } && {
8358 test -z "$ac_c_werror_flag" ||
8359 test ! -s conftest.err
8360 } && test -s conftest.$ac_objext; then
8361 ac_lo=0 ac_mid=0
8362 while :; do
8363 cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h. */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 $ac_includes_default
8370 typedef short ac__type_sizeof_;
8372 main ()
8374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8375 test_array [0] = 0
8378 return 0;
8380 _ACEOF
8381 rm -f conftest.$ac_objext
8382 if { (ac_try="$ac_compile"
8383 case "(($ac_try" in
8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 *) ac_try_echo=$ac_try;;
8386 esac
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_compile") 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && {
8395 test -z "$ac_c_werror_flag" ||
8396 test ! -s conftest.err
8397 } && test -s conftest.$ac_objext; then
8398 ac_hi=$ac_mid; break
8399 else
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 ac_lo=`expr $ac_mid + 1`
8404 if test $ac_lo -le $ac_mid; then
8405 ac_lo= ac_hi=
8406 break
8408 ac_mid=`expr 2 '*' $ac_mid + 1`
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412 done
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h. */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 $ac_includes_default
8424 typedef short ac__type_sizeof_;
8426 main ()
8428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8429 test_array [0] = 0
8432 return 0;
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.$ac_objext; then
8452 ac_hi=-1 ac_mid=-1
8453 while :; do
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h. */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 $ac_includes_default
8461 typedef short ac__type_sizeof_;
8463 main ()
8465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8466 test_array [0] = 0
8469 return 0;
8471 _ACEOF
8472 rm -f conftest.$ac_objext
8473 if { (ac_try="$ac_compile"
8474 case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.$ac_objext; then
8489 ac_lo=$ac_mid; break
8490 else
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 ac_hi=`expr '(' $ac_mid ')' - 1`
8495 if test $ac_mid -le $ac_hi; then
8496 ac_lo= ac_hi=
8497 break
8499 ac_mid=`expr 2 '*' $ac_mid`
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 done
8504 else
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_lo= ac_hi=
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515 # Binary search between lo and hi bounds.
8516 while test "x$ac_lo" != "x$ac_hi"; do
8517 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h. */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 $ac_includes_default
8525 typedef short ac__type_sizeof_;
8527 main ()
8529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8530 test_array [0] = 0
8533 return 0;
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (ac_try="$ac_compile"
8538 case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_compile") 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } && {
8550 test -z "$ac_c_werror_flag" ||
8551 test ! -s conftest.err
8552 } && test -s conftest.$ac_objext; then
8553 ac_hi=$ac_mid
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 ac_lo=`expr '(' $ac_mid ')' + 1`
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 done
8563 case $ac_lo in
8564 ?*) ac_cv_sizeof_short=$ac_lo;;
8565 '') if test "$ac_cv_type_short" = yes; then
8566 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8567 See \`config.log' for more details." >&5
8568 echo "$as_me: error: cannot compute sizeof (short)
8569 See \`config.log' for more details." >&2;}
8570 { (exit 77); exit 77; }; }
8571 else
8572 ac_cv_sizeof_short=0
8573 fi ;;
8574 esac
8575 else
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 typedef short ac__type_sizeof_;
8584 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8585 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8586 #include <stdio.h>
8587 #include <stdlib.h>
8589 main ()
8592 FILE *f = fopen ("conftest.val", "w");
8593 if (! f)
8594 return 1;
8595 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8597 long int i = longval ();
8598 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8599 return 1;
8600 fprintf (f, "%ld\n", i);
8602 else
8604 unsigned long int i = ulongval ();
8605 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8606 return 1;
8607 fprintf (f, "%lu\n", i);
8609 return ferror (f) || fclose (f) != 0;
8612 return 0;
8614 _ACEOF
8615 rm -f conftest$ac_exeext
8616 if { (ac_try="$ac_link"
8617 case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8620 esac
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_link") 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_sizeof_short=`cat conftest.val`
8636 else
8637 echo "$as_me: program exited with status $ac_status" >&5
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 ( exit $ac_status )
8642 if test "$ac_cv_type_short" = yes; then
8643 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8644 See \`config.log' for more details." >&5
8645 echo "$as_me: error: cannot compute sizeof (short)
8646 See \`config.log' for more details." >&2;}
8647 { (exit 77); exit 77; }; }
8648 else
8649 ac_cv_sizeof_short=0
8652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8654 rm -f conftest.val
8656 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8657 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8661 cat >>confdefs.h <<_ACEOF
8662 #define SIZEOF_SHORT $ac_cv_sizeof_short
8663 _ACEOF
8666 { echo "$as_me:$LINENO: checking for float" >&5
8667 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8668 if test "${ac_cv_type_float+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671 cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h. */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 $ac_includes_default
8678 typedef float ac__type_new_;
8680 main ()
8682 if ((ac__type_new_ *) 0)
8683 return 0;
8684 if (sizeof (ac__type_new_))
8685 return 0;
8687 return 0;
8689 _ACEOF
8690 rm -f conftest.$ac_objext
8691 if { (ac_try="$ac_compile"
8692 case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695 esac
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_compile") 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } && {
8704 test -z "$ac_c_werror_flag" ||
8705 test ! -s conftest.err
8706 } && test -s conftest.$ac_objext; then
8707 ac_cv_type_float=yes
8708 else
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8712 ac_cv_type_float=no
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8718 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8720 # The cast to long int works around a bug in the HP C Compiler
8721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8723 # This bug is HP SR number 8606223364.
8724 { echo "$as_me:$LINENO: checking size of float" >&5
8725 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8726 if test "${ac_cv_sizeof_float+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 if test "$cross_compiling" = yes; then
8730 # Depending upon the size, compute the lo and hi bounds.
8731 cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h. */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 $ac_includes_default
8738 typedef float ac__type_sizeof_;
8740 main ()
8742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8743 test_array [0] = 0
8746 return 0;
8748 _ACEOF
8749 rm -f conftest.$ac_objext
8750 if { (ac_try="$ac_compile"
8751 case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754 esac
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_compile") 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest.$ac_objext; then
8766 ac_lo=0 ac_mid=0
8767 while :; do
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 typedef float ac__type_sizeof_;
8777 main ()
8779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8780 test_array [0] = 0
8783 return 0;
8785 _ACEOF
8786 rm -f conftest.$ac_objext
8787 if { (ac_try="$ac_compile"
8788 case "(($ac_try" in
8789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8790 *) ac_try_echo=$ac_try;;
8791 esac
8792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8793 (eval "$ac_compile") 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } && {
8800 test -z "$ac_c_werror_flag" ||
8801 test ! -s conftest.err
8802 } && test -s conftest.$ac_objext; then
8803 ac_hi=$ac_mid; break
8804 else
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 ac_lo=`expr $ac_mid + 1`
8809 if test $ac_lo -le $ac_mid; then
8810 ac_lo= ac_hi=
8811 break
8813 ac_mid=`expr 2 '*' $ac_mid + 1`
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817 done
8818 else
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 $ac_includes_default
8829 typedef float ac__type_sizeof_;
8831 main ()
8833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8834 test_array [0] = 0
8837 return 0;
8839 _ACEOF
8840 rm -f conftest.$ac_objext
8841 if { (ac_try="$ac_compile"
8842 case "(($ac_try" in
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8845 esac
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_compile") 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } && {
8854 test -z "$ac_c_werror_flag" ||
8855 test ! -s conftest.err
8856 } && test -s conftest.$ac_objext; then
8857 ac_hi=-1 ac_mid=-1
8858 while :; do
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 typedef float ac__type_sizeof_;
8868 main ()
8870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8871 test_array [0] = 0
8874 return 0;
8876 _ACEOF
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8879 case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882 esac
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_compile") 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && {
8891 test -z "$ac_c_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest.$ac_objext; then
8894 ac_lo=$ac_mid; break
8895 else
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 ac_hi=`expr '(' $ac_mid ')' - 1`
8900 if test $ac_mid -le $ac_hi; then
8901 ac_lo= ac_hi=
8902 break
8904 ac_mid=`expr 2 '*' $ac_mid`
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 done
8909 else
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_lo= ac_hi=
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8920 # Binary search between lo and hi bounds.
8921 while test "x$ac_lo" != "x$ac_hi"; do
8922 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 $ac_includes_default
8930 typedef float ac__type_sizeof_;
8932 main ()
8934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8935 test_array [0] = 0
8938 return 0;
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8943 case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest.$ac_objext; then
8958 ac_hi=$ac_mid
8959 else
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 ac_lo=`expr '(' $ac_mid ')' + 1`
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 done
8968 case $ac_lo in
8969 ?*) ac_cv_sizeof_float=$ac_lo;;
8970 '') if test "$ac_cv_type_float" = yes; then
8971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8972 See \`config.log' for more details." >&5
8973 echo "$as_me: error: cannot compute sizeof (float)
8974 See \`config.log' for more details." >&2;}
8975 { (exit 77); exit 77; }; }
8976 else
8977 ac_cv_sizeof_float=0
8978 fi ;;
8979 esac
8980 else
8981 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h. */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987 $ac_includes_default
8988 typedef float ac__type_sizeof_;
8989 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8990 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8991 #include <stdio.h>
8992 #include <stdlib.h>
8994 main ()
8997 FILE *f = fopen ("conftest.val", "w");
8998 if (! f)
8999 return 1;
9000 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9002 long int i = longval ();
9003 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9004 return 1;
9005 fprintf (f, "%ld\n", i);
9007 else
9009 unsigned long int i = ulongval ();
9010 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9011 return 1;
9012 fprintf (f, "%lu\n", i);
9014 return ferror (f) || fclose (f) != 0;
9017 return 0;
9019 _ACEOF
9020 rm -f conftest$ac_exeext
9021 if { (ac_try="$ac_link"
9022 case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025 esac
9026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_link") 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9031 { (case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9034 esac
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_try") 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_cv_sizeof_float=`cat conftest.val`
9041 else
9042 echo "$as_me: program exited with status $ac_status" >&5
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9046 ( exit $ac_status )
9047 if test "$ac_cv_type_float" = yes; then
9048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9049 See \`config.log' for more details." >&5
9050 echo "$as_me: error: cannot compute sizeof (float)
9051 See \`config.log' for more details." >&2;}
9052 { (exit 77); exit 77; }; }
9053 else
9054 ac_cv_sizeof_float=0
9057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9059 rm -f conftest.val
9061 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9062 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9066 cat >>confdefs.h <<_ACEOF
9067 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9068 _ACEOF
9071 { echo "$as_me:$LINENO: checking for double" >&5
9072 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9073 if test "${ac_cv_type_double+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 else
9076 cat >conftest.$ac_ext <<_ACEOF
9077 /* confdefs.h. */
9078 _ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9082 $ac_includes_default
9083 typedef double ac__type_new_;
9085 main ()
9087 if ((ac__type_new_ *) 0)
9088 return 0;
9089 if (sizeof (ac__type_new_))
9090 return 0;
9092 return 0;
9094 _ACEOF
9095 rm -f conftest.$ac_objext
9096 if { (ac_try="$ac_compile"
9097 case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9100 esac
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_compile") 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } && {
9109 test -z "$ac_c_werror_flag" ||
9110 test ! -s conftest.err
9111 } && test -s conftest.$ac_objext; then
9112 ac_cv_type_double=yes
9113 else
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9117 ac_cv_type_double=no
9120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9123 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9125 # The cast to long int works around a bug in the HP C Compiler
9126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9128 # This bug is HP SR number 8606223364.
9129 { echo "$as_me:$LINENO: checking size of double" >&5
9130 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9131 if test "${ac_cv_sizeof_double+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134 if test "$cross_compiling" = yes; then
9135 # Depending upon the size, compute the lo and hi bounds.
9136 cat >conftest.$ac_ext <<_ACEOF
9137 /* confdefs.h. */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9142 $ac_includes_default
9143 typedef double ac__type_sizeof_;
9145 main ()
9147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9148 test_array [0] = 0
9151 return 0;
9153 _ACEOF
9154 rm -f conftest.$ac_objext
9155 if { (ac_try="$ac_compile"
9156 case "(($ac_try" in
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9159 esac
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161 (eval "$ac_compile") 2>conftest.er1
9162 ac_status=$?
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && {
9168 test -z "$ac_c_werror_flag" ||
9169 test ! -s conftest.err
9170 } && test -s conftest.$ac_objext; then
9171 ac_lo=0 ac_mid=0
9172 while :; do
9173 cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h. */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9179 $ac_includes_default
9180 typedef double ac__type_sizeof_;
9182 main ()
9184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9185 test_array [0] = 0
9188 return 0;
9190 _ACEOF
9191 rm -f conftest.$ac_objext
9192 if { (ac_try="$ac_compile"
9193 case "(($ac_try" in
9194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195 *) ac_try_echo=$ac_try;;
9196 esac
9197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198 (eval "$ac_compile") 2>conftest.er1
9199 ac_status=$?
9200 grep -v '^ *+' conftest.er1 >conftest.err
9201 rm -f conftest.er1
9202 cat conftest.err >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && {
9205 test -z "$ac_c_werror_flag" ||
9206 test ! -s conftest.err
9207 } && test -s conftest.$ac_objext; then
9208 ac_hi=$ac_mid; break
9209 else
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 ac_lo=`expr $ac_mid + 1`
9214 if test $ac_lo -le $ac_mid; then
9215 ac_lo= ac_hi=
9216 break
9218 ac_mid=`expr 2 '*' $ac_mid + 1`
9221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222 done
9223 else
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h. */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 $ac_includes_default
9234 typedef double ac__type_sizeof_;
9236 main ()
9238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9239 test_array [0] = 0
9242 return 0;
9244 _ACEOF
9245 rm -f conftest.$ac_objext
9246 if { (ac_try="$ac_compile"
9247 case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9250 esac
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_compile") 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_c_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest.$ac_objext; then
9262 ac_hi=-1 ac_mid=-1
9263 while :; do
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 $ac_includes_default
9271 typedef double ac__type_sizeof_;
9273 main ()
9275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9276 test_array [0] = 0
9279 return 0;
9281 _ACEOF
9282 rm -f conftest.$ac_objext
9283 if { (ac_try="$ac_compile"
9284 case "(($ac_try" in
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9287 esac
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_compile") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && {
9296 test -z "$ac_c_werror_flag" ||
9297 test ! -s conftest.err
9298 } && test -s conftest.$ac_objext; then
9299 ac_lo=$ac_mid; break
9300 else
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 ac_hi=`expr '(' $ac_mid ')' - 1`
9305 if test $ac_mid -le $ac_hi; then
9306 ac_lo= ac_hi=
9307 break
9309 ac_mid=`expr 2 '*' $ac_mid`
9312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313 done
9314 else
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9318 ac_lo= ac_hi=
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325 # Binary search between lo and hi bounds.
9326 while test "x$ac_lo" != "x$ac_hi"; do
9327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 $ac_includes_default
9335 typedef double ac__type_sizeof_;
9337 main ()
9339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9340 test_array [0] = 0
9343 return 0;
9345 _ACEOF
9346 rm -f conftest.$ac_objext
9347 if { (ac_try="$ac_compile"
9348 case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9351 esac
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_compile") 2>conftest.er1
9354 ac_status=$?
9355 grep -v '^ *+' conftest.er1 >conftest.err
9356 rm -f conftest.er1
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && {
9360 test -z "$ac_c_werror_flag" ||
9361 test ! -s conftest.err
9362 } && test -s conftest.$ac_objext; then
9363 ac_hi=$ac_mid
9364 else
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9368 ac_lo=`expr '(' $ac_mid ')' + 1`
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 done
9373 case $ac_lo in
9374 ?*) ac_cv_sizeof_double=$ac_lo;;
9375 '') if test "$ac_cv_type_double" = yes; then
9376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9377 See \`config.log' for more details." >&5
9378 echo "$as_me: error: cannot compute sizeof (double)
9379 See \`config.log' for more details." >&2;}
9380 { (exit 77); exit 77; }; }
9381 else
9382 ac_cv_sizeof_double=0
9383 fi ;;
9384 esac
9385 else
9386 cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h. */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 $ac_includes_default
9393 typedef double ac__type_sizeof_;
9394 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9395 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9396 #include <stdio.h>
9397 #include <stdlib.h>
9399 main ()
9402 FILE *f = fopen ("conftest.val", "w");
9403 if (! f)
9404 return 1;
9405 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9407 long int i = longval ();
9408 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9409 return 1;
9410 fprintf (f, "%ld\n", i);
9412 else
9414 unsigned long int i = ulongval ();
9415 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9416 return 1;
9417 fprintf (f, "%lu\n", i);
9419 return ferror (f) || fclose (f) != 0;
9422 return 0;
9424 _ACEOF
9425 rm -f conftest$ac_exeext
9426 if { (ac_try="$ac_link"
9427 case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9430 esac
9431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9432 (eval "$ac_link") 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9436 { (case "(($ac_try" in
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9439 esac
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_try") 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 ac_cv_sizeof_double=`cat conftest.val`
9446 else
9447 echo "$as_me: program exited with status $ac_status" >&5
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ( exit $ac_status )
9452 if test "$ac_cv_type_double" = yes; then
9453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9454 See \`config.log' for more details." >&5
9455 echo "$as_me: error: cannot compute sizeof (double)
9456 See \`config.log' for more details." >&2;}
9457 { (exit 77); exit 77; }; }
9458 else
9459 ac_cv_sizeof_double=0
9462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9464 rm -f conftest.val
9466 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9467 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9471 cat >>confdefs.h <<_ACEOF
9472 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9473 _ACEOF
9476 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9477 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9478 if test "${ac_cv_type_fpos_t+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h. */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 $ac_includes_default
9488 typedef fpos_t ac__type_new_;
9490 main ()
9492 if ((ac__type_new_ *) 0)
9493 return 0;
9494 if (sizeof (ac__type_new_))
9495 return 0;
9497 return 0;
9499 _ACEOF
9500 rm -f conftest.$ac_objext
9501 if { (ac_try="$ac_compile"
9502 case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505 esac
9506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_compile") 2>conftest.er1
9508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } && {
9514 test -z "$ac_c_werror_flag" ||
9515 test ! -s conftest.err
9516 } && test -s conftest.$ac_objext; then
9517 ac_cv_type_fpos_t=yes
9518 else
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 ac_cv_type_fpos_t=no
9525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9528 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9530 # The cast to long int works around a bug in the HP C Compiler
9531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9533 # This bug is HP SR number 8606223364.
9534 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9535 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9536 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539 if test "$cross_compiling" = yes; then
9540 # Depending upon the size, compute the lo and hi bounds.
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h. */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 $ac_includes_default
9548 typedef fpos_t ac__type_sizeof_;
9550 main ()
9552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9553 test_array [0] = 0
9556 return 0;
9558 _ACEOF
9559 rm -f conftest.$ac_objext
9560 if { (ac_try="$ac_compile"
9561 case "(($ac_try" in
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9564 esac
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_compile") 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && {
9573 test -z "$ac_c_werror_flag" ||
9574 test ! -s conftest.err
9575 } && test -s conftest.$ac_objext; then
9576 ac_lo=0 ac_mid=0
9577 while :; do
9578 cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h. */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9584 $ac_includes_default
9585 typedef fpos_t ac__type_sizeof_;
9587 main ()
9589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9590 test_array [0] = 0
9593 return 0;
9595 _ACEOF
9596 rm -f conftest.$ac_objext
9597 if { (ac_try="$ac_compile"
9598 case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_compile") 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest.$ac_objext; then
9613 ac_hi=$ac_mid; break
9614 else
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9618 ac_lo=`expr $ac_mid + 1`
9619 if test $ac_lo -le $ac_mid; then
9620 ac_lo= ac_hi=
9621 break
9623 ac_mid=`expr 2 '*' $ac_mid + 1`
9626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627 done
9628 else
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h. */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9638 $ac_includes_default
9639 typedef fpos_t ac__type_sizeof_;
9641 main ()
9643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9644 test_array [0] = 0
9647 return 0;
9649 _ACEOF
9650 rm -f conftest.$ac_objext
9651 if { (ac_try="$ac_compile"
9652 case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_compile") 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest.$ac_objext; then
9667 ac_hi=-1 ac_mid=-1
9668 while :; do
9669 cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h. */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9675 $ac_includes_default
9676 typedef fpos_t ac__type_sizeof_;
9678 main ()
9680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9681 test_array [0] = 0
9684 return 0;
9686 _ACEOF
9687 rm -f conftest.$ac_objext
9688 if { (ac_try="$ac_compile"
9689 case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_compile") 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest.$ac_objext; then
9704 ac_lo=$ac_mid; break
9705 else
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9709 ac_hi=`expr '(' $ac_mid ')' - 1`
9710 if test $ac_mid -le $ac_hi; then
9711 ac_lo= ac_hi=
9712 break
9714 ac_mid=`expr 2 '*' $ac_mid`
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718 done
9719 else
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9723 ac_lo= ac_hi=
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 # Binary search between lo and hi bounds.
9731 while test "x$ac_lo" != "x$ac_hi"; do
9732 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9733 cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h. */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 $ac_includes_default
9740 typedef fpos_t ac__type_sizeof_;
9742 main ()
9744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9745 test_array [0] = 0
9748 return 0;
9750 _ACEOF
9751 rm -f conftest.$ac_objext
9752 if { (ac_try="$ac_compile"
9753 case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9756 esac
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_compile") 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } && {
9765 test -z "$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 } && test -s conftest.$ac_objext; then
9768 ac_hi=$ac_mid
9769 else
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9773 ac_lo=`expr '(' $ac_mid ')' + 1`
9776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9777 done
9778 case $ac_lo in
9779 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9780 '') if test "$ac_cv_type_fpos_t" = yes; then
9781 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9782 See \`config.log' for more details." >&5
9783 echo "$as_me: error: cannot compute sizeof (fpos_t)
9784 See \`config.log' for more details." >&2;}
9785 { (exit 77); exit 77; }; }
9786 else
9787 ac_cv_sizeof_fpos_t=0
9788 fi ;;
9789 esac
9790 else
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h. */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 $ac_includes_default
9798 typedef fpos_t ac__type_sizeof_;
9799 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9800 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9801 #include <stdio.h>
9802 #include <stdlib.h>
9804 main ()
9807 FILE *f = fopen ("conftest.val", "w");
9808 if (! f)
9809 return 1;
9810 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9812 long int i = longval ();
9813 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9814 return 1;
9815 fprintf (f, "%ld\n", i);
9817 else
9819 unsigned long int i = ulongval ();
9820 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9821 return 1;
9822 fprintf (f, "%lu\n", i);
9824 return ferror (f) || fclose (f) != 0;
9827 return 0;
9829 _ACEOF
9830 rm -f conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9832 case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_sizeof_fpos_t=`cat conftest.val`
9851 else
9852 echo "$as_me: program exited with status $ac_status" >&5
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ( exit $ac_status )
9857 if test "$ac_cv_type_fpos_t" = yes; then
9858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9859 See \`config.log' for more details." >&5
9860 echo "$as_me: error: cannot compute sizeof (fpos_t)
9861 See \`config.log' for more details." >&2;}
9862 { (exit 77); exit 77; }; }
9863 else
9864 ac_cv_sizeof_fpos_t=0
9867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9869 rm -f conftest.val
9871 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9872 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9876 cat >>confdefs.h <<_ACEOF
9877 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9878 _ACEOF
9881 { echo "$as_me:$LINENO: checking for size_t" >&5
9882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9883 if test "${ac_cv_type_size_t+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 cat >conftest.$ac_ext <<_ACEOF
9887 /* confdefs.h. */
9888 _ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892 $ac_includes_default
9893 typedef size_t ac__type_new_;
9895 main ()
9897 if ((ac__type_new_ *) 0)
9898 return 0;
9899 if (sizeof (ac__type_new_))
9900 return 0;
9902 return 0;
9904 _ACEOF
9905 rm -f conftest.$ac_objext
9906 if { (ac_try="$ac_compile"
9907 case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_compile") 2>conftest.er1
9913 ac_status=$?
9914 grep -v '^ *+' conftest.er1 >conftest.err
9915 rm -f conftest.er1
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && {
9919 test -z "$ac_c_werror_flag" ||
9920 test ! -s conftest.err
9921 } && test -s conftest.$ac_objext; then
9922 ac_cv_type_size_t=yes
9923 else
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_cv_type_size_t=no
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9933 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9935 # The cast to long int works around a bug in the HP C Compiler
9936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9938 # This bug is HP SR number 8606223364.
9939 { echo "$as_me:$LINENO: checking size of size_t" >&5
9940 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9941 if test "${ac_cv_sizeof_size_t+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944 if test "$cross_compiling" = yes; then
9945 # Depending upon the size, compute the lo and hi bounds.
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9953 typedef size_t ac__type_sizeof_;
9955 main ()
9957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9958 test_array [0] = 0
9961 return 0;
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (ac_try="$ac_compile"
9966 case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_compile") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest.$ac_objext; then
9981 ac_lo=0 ac_mid=0
9982 while :; do
9983 cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h. */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 typedef size_t ac__type_sizeof_;
9992 main ()
9994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9995 test_array [0] = 0
9998 return 0;
10000 _ACEOF
10001 rm -f conftest.$ac_objext
10002 if { (ac_try="$ac_compile"
10003 case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_compile") 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest.$ac_objext; then
10018 ac_hi=$ac_mid; break
10019 else
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_lo=`expr $ac_mid + 1`
10024 if test $ac_lo -le $ac_mid; then
10025 ac_lo= ac_hi=
10026 break
10028 ac_mid=`expr 2 '*' $ac_mid + 1`
10031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10032 done
10033 else
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10043 $ac_includes_default
10044 typedef size_t ac__type_sizeof_;
10046 main ()
10048 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10049 test_array [0] = 0
10052 return 0;
10054 _ACEOF
10055 rm -f conftest.$ac_objext
10056 if { (ac_try="$ac_compile"
10057 case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060 esac
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_compile") 2>conftest.er1
10063 ac_status=$?
10064 grep -v '^ *+' conftest.er1 >conftest.err
10065 rm -f conftest.er1
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && {
10069 test -z "$ac_c_werror_flag" ||
10070 test ! -s conftest.err
10071 } && test -s conftest.$ac_objext; then
10072 ac_hi=-1 ac_mid=-1
10073 while :; do
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 $ac_includes_default
10081 typedef size_t ac__type_sizeof_;
10083 main ()
10085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10086 test_array [0] = 0
10089 return 0;
10091 _ACEOF
10092 rm -f conftest.$ac_objext
10093 if { (ac_try="$ac_compile"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_compile") 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest.$ac_objext; then
10109 ac_lo=$ac_mid; break
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_hi=`expr '(' $ac_mid ')' - 1`
10115 if test $ac_mid -le $ac_hi; then
10116 ac_lo= ac_hi=
10117 break
10119 ac_mid=`expr 2 '*' $ac_mid`
10122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10123 done
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_lo= ac_hi=
10131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135 # Binary search between lo and hi bounds.
10136 while test "x$ac_lo" != "x$ac_hi"; do
10137 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h. */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 $ac_includes_default
10145 typedef size_t ac__type_sizeof_;
10147 main ()
10149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10150 test_array [0] = 0
10153 return 0;
10155 _ACEOF
10156 rm -f conftest.$ac_objext
10157 if { (ac_try="$ac_compile"
10158 case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_compile") 2>conftest.er1
10164 ac_status=$?
10165 grep -v '^ *+' conftest.er1 >conftest.err
10166 rm -f conftest.er1
10167 cat conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } && {
10170 test -z "$ac_c_werror_flag" ||
10171 test ! -s conftest.err
10172 } && test -s conftest.$ac_objext; then
10173 ac_hi=$ac_mid
10174 else
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ac_lo=`expr '(' $ac_mid ')' + 1`
10181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182 done
10183 case $ac_lo in
10184 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10185 '') if test "$ac_cv_type_size_t" = yes; then
10186 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10187 See \`config.log' for more details." >&5
10188 echo "$as_me: error: cannot compute sizeof (size_t)
10189 See \`config.log' for more details." >&2;}
10190 { (exit 77); exit 77; }; }
10191 else
10192 ac_cv_sizeof_size_t=0
10193 fi ;;
10194 esac
10195 else
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h. */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202 $ac_includes_default
10203 typedef size_t ac__type_sizeof_;
10204 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10205 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10206 #include <stdio.h>
10207 #include <stdlib.h>
10209 main ()
10212 FILE *f = fopen ("conftest.val", "w");
10213 if (! f)
10214 return 1;
10215 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10217 long int i = longval ();
10218 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10219 return 1;
10220 fprintf (f, "%ld\n", i);
10222 else
10224 unsigned long int i = ulongval ();
10225 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10226 return 1;
10227 fprintf (f, "%lu\n", i);
10229 return ferror (f) || fclose (f) != 0;
10232 return 0;
10234 _ACEOF
10235 rm -f conftest$ac_exeext
10236 if { (ac_try="$ac_link"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10240 esac
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_link") 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10246 { (case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249 esac
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_try") 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_sizeof_size_t=`cat conftest.val`
10256 else
10257 echo "$as_me: program exited with status $ac_status" >&5
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 ( exit $ac_status )
10262 if test "$ac_cv_type_size_t" = yes; then
10263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10264 See \`config.log' for more details." >&5
10265 echo "$as_me: error: cannot compute sizeof (size_t)
10266 See \`config.log' for more details." >&2;}
10267 { (exit 77); exit 77; }; }
10268 else
10269 ac_cv_sizeof_size_t=0
10272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10274 rm -f conftest.val
10276 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10277 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10281 cat >>confdefs.h <<_ACEOF
10282 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10283 _ACEOF
10286 { echo "$as_me:$LINENO: checking for pid_t" >&5
10287 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10288 if test "${ac_cv_type_pid_t+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291 cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h. */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 $ac_includes_default
10298 typedef pid_t ac__type_new_;
10300 main ()
10302 if ((ac__type_new_ *) 0)
10303 return 0;
10304 if (sizeof (ac__type_new_))
10305 return 0;
10307 return 0;
10309 _ACEOF
10310 rm -f conftest.$ac_objext
10311 if { (ac_try="$ac_compile"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_compile") 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest.$ac_objext; then
10327 ac_cv_type_pid_t=yes
10328 else
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 ac_cv_type_pid_t=no
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10338 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10340 # The cast to long int works around a bug in the HP C Compiler
10341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10343 # This bug is HP SR number 8606223364.
10344 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10345 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10346 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 else
10349 if test "$cross_compiling" = yes; then
10350 # Depending upon the size, compute the lo and hi bounds.
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h. */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 typedef pid_t ac__type_sizeof_;
10360 main ()
10362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10363 test_array [0] = 0
10366 return 0;
10368 _ACEOF
10369 rm -f conftest.$ac_objext
10370 if { (ac_try="$ac_compile"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374 esac
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_compile") 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && {
10383 test -z "$ac_c_werror_flag" ||
10384 test ! -s conftest.err
10385 } && test -s conftest.$ac_objext; then
10386 ac_lo=0 ac_mid=0
10387 while :; do
10388 cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h. */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10395 typedef pid_t ac__type_sizeof_;
10397 main ()
10399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10400 test_array [0] = 0
10403 return 0;
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (ac_try="$ac_compile"
10408 case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10411 esac
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_compile") 2>conftest.er1
10414 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && {
10420 test -z "$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 } && test -s conftest.$ac_objext; then
10423 ac_hi=$ac_mid; break
10424 else
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10428 ac_lo=`expr $ac_mid + 1`
10429 if test $ac_lo -le $ac_mid; then
10430 ac_lo= ac_hi=
10431 break
10433 ac_mid=`expr 2 '*' $ac_mid + 1`
10436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437 done
10438 else
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h. */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10448 $ac_includes_default
10449 typedef pid_t ac__type_sizeof_;
10451 main ()
10453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10454 test_array [0] = 0
10457 return 0;
10459 _ACEOF
10460 rm -f conftest.$ac_objext
10461 if { (ac_try="$ac_compile"
10462 case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10465 esac
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_compile") 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
10476 } && test -s conftest.$ac_objext; then
10477 ac_hi=-1 ac_mid=-1
10478 while :; do
10479 cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h. */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 $ac_includes_default
10486 typedef pid_t ac__type_sizeof_;
10488 main ()
10490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10491 test_array [0] = 0
10494 return 0;
10496 _ACEOF
10497 rm -f conftest.$ac_objext
10498 if { (ac_try="$ac_compile"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_compile") 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } && {
10511 test -z "$ac_c_werror_flag" ||
10512 test ! -s conftest.err
10513 } && test -s conftest.$ac_objext; then
10514 ac_lo=$ac_mid; break
10515 else
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10519 ac_hi=`expr '(' $ac_mid ')' - 1`
10520 if test $ac_mid -le $ac_hi; then
10521 ac_lo= ac_hi=
10522 break
10524 ac_mid=`expr 2 '*' $ac_mid`
10527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10528 done
10529 else
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ac_lo= ac_hi=
10536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540 # Binary search between lo and hi bounds.
10541 while test "x$ac_lo" != "x$ac_hi"; do
10542 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10543 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h. */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 $ac_includes_default
10550 typedef pid_t ac__type_sizeof_;
10552 main ()
10554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10555 test_array [0] = 0
10558 return 0;
10560 _ACEOF
10561 rm -f conftest.$ac_objext
10562 if { (ac_try="$ac_compile"
10563 case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566 esac
10567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_compile") 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } && {
10575 test -z "$ac_c_werror_flag" ||
10576 test ! -s conftest.err
10577 } && test -s conftest.$ac_objext; then
10578 ac_hi=$ac_mid
10579 else
10580 echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10583 ac_lo=`expr '(' $ac_mid ')' + 1`
10586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10587 done
10588 case $ac_lo in
10589 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10590 '') if test "$ac_cv_type_pid_t" = yes; then
10591 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10592 See \`config.log' for more details." >&5
10593 echo "$as_me: error: cannot compute sizeof (pid_t)
10594 See \`config.log' for more details." >&2;}
10595 { (exit 77); exit 77; }; }
10596 else
10597 ac_cv_sizeof_pid_t=0
10598 fi ;;
10599 esac
10600 else
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 $ac_includes_default
10608 typedef pid_t ac__type_sizeof_;
10609 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10610 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10611 #include <stdio.h>
10612 #include <stdlib.h>
10614 main ()
10617 FILE *f = fopen ("conftest.val", "w");
10618 if (! f)
10619 return 1;
10620 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10622 long int i = longval ();
10623 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10624 return 1;
10625 fprintf (f, "%ld\n", i);
10627 else
10629 unsigned long int i = ulongval ();
10630 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10631 return 1;
10632 fprintf (f, "%lu\n", i);
10634 return ferror (f) || fclose (f) != 0;
10637 return 0;
10639 _ACEOF
10640 rm -f conftest$ac_exeext
10641 if { (ac_try="$ac_link"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645 esac
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_link") 2>&5
10648 ac_status=$?
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10651 { (case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654 esac
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_try") 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_sizeof_pid_t=`cat conftest.val`
10661 else
10662 echo "$as_me: program exited with status $ac_status" >&5
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 ( exit $ac_status )
10667 if test "$ac_cv_type_pid_t" = yes; then
10668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10669 See \`config.log' for more details." >&5
10670 echo "$as_me: error: cannot compute sizeof (pid_t)
10671 See \`config.log' for more details." >&2;}
10672 { (exit 77); exit 77; }; }
10673 else
10674 ac_cv_sizeof_pid_t=0
10677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10679 rm -f conftest.val
10681 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10682 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10686 cat >>confdefs.h <<_ACEOF
10687 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10688 _ACEOF
10692 { echo "$as_me:$LINENO: checking for long long support" >&5
10693 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10694 have_long_long=no
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10703 main ()
10705 long long x; x = (long long)0;
10707 return 0;
10709 _ACEOF
10710 rm -f conftest.$ac_objext
10711 if { (ac_try="$ac_compile"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715 esac
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_compile") 2>conftest.er1
10718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest.$ac_objext; then
10729 cat >>confdefs.h <<\_ACEOF
10730 #define HAVE_LONG_LONG 1
10731 _ACEOF
10733 have_long_long=yes
10735 else
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10744 echo "${ECHO_T}$have_long_long" >&6; }
10745 if test "$have_long_long" = yes ; then
10746 { echo "$as_me:$LINENO: checking for long long" >&5
10747 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10748 if test "${ac_cv_type_long_long+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h. */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 $ac_includes_default
10758 typedef long long ac__type_new_;
10760 main ()
10762 if ((ac__type_new_ *) 0)
10763 return 0;
10764 if (sizeof (ac__type_new_))
10765 return 0;
10767 return 0;
10769 _ACEOF
10770 rm -f conftest.$ac_objext
10771 if { (ac_try="$ac_compile"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_compile") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest.$ac_objext; then
10787 ac_cv_type_long_long=yes
10788 else
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 ac_cv_type_long_long=no
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10798 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10800 # The cast to long int works around a bug in the HP C Compiler
10801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10803 # This bug is HP SR number 8606223364.
10804 { echo "$as_me:$LINENO: checking size of long long" >&5
10805 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10806 if test "${ac_cv_sizeof_long_long+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809 if test "$cross_compiling" = yes; then
10810 # Depending upon the size, compute the lo and hi bounds.
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h. */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 $ac_includes_default
10818 typedef long long ac__type_sizeof_;
10820 main ()
10822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10823 test_array [0] = 0
10826 return 0;
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_compile") 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest.$ac_objext; then
10846 ac_lo=0 ac_mid=0
10847 while :; do
10848 cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h. */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 $ac_includes_default
10855 typedef long long ac__type_sizeof_;
10857 main ()
10859 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10860 test_array [0] = 0
10863 return 0;
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (ac_try="$ac_compile"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest.$ac_objext; then
10883 ac_hi=$ac_mid; break
10884 else
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_lo=`expr $ac_mid + 1`
10889 if test $ac_lo -le $ac_mid; then
10890 ac_lo= ac_hi=
10891 break
10893 ac_mid=`expr 2 '*' $ac_mid + 1`
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 done
10898 else
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h. */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 $ac_includes_default
10909 typedef long long ac__type_sizeof_;
10911 main ()
10913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10914 test_array [0] = 0
10917 return 0;
10919 _ACEOF
10920 rm -f conftest.$ac_objext
10921 if { (ac_try="$ac_compile"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_compile") 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest.$ac_objext; then
10937 ac_hi=-1 ac_mid=-1
10938 while :; do
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h. */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 $ac_includes_default
10946 typedef long long ac__type_sizeof_;
10948 main ()
10950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10951 test_array [0] = 0
10954 return 0;
10956 _ACEOF
10957 rm -f conftest.$ac_objext
10958 if { (ac_try="$ac_compile"
10959 case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_compile") 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } && {
10971 test -z "$ac_c_werror_flag" ||
10972 test ! -s conftest.err
10973 } && test -s conftest.$ac_objext; then
10974 ac_lo=$ac_mid; break
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 ac_hi=`expr '(' $ac_mid ')' - 1`
10980 if test $ac_mid -le $ac_hi; then
10981 ac_lo= ac_hi=
10982 break
10984 ac_mid=`expr 2 '*' $ac_mid`
10987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988 done
10989 else
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 ac_lo= ac_hi=
10996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 # Binary search between lo and hi bounds.
11001 while test "x$ac_lo" != "x$ac_hi"; do
11002 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11003 cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h. */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 $ac_includes_default
11010 typedef long long ac__type_sizeof_;
11012 main ()
11014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11015 test_array [0] = 0
11018 return 0;
11020 _ACEOF
11021 rm -f conftest.$ac_objext
11022 if { (ac_try="$ac_compile"
11023 case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11026 esac
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_compile") 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } && {
11035 test -z "$ac_c_werror_flag" ||
11036 test ! -s conftest.err
11037 } && test -s conftest.$ac_objext; then
11038 ac_hi=$ac_mid
11039 else
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 ac_lo=`expr '(' $ac_mid ')' + 1`
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047 done
11048 case $ac_lo in
11049 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11050 '') if test "$ac_cv_type_long_long" = yes; then
11051 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11052 See \`config.log' for more details." >&5
11053 echo "$as_me: error: cannot compute sizeof (long long)
11054 See \`config.log' for more details." >&2;}
11055 { (exit 77); exit 77; }; }
11056 else
11057 ac_cv_sizeof_long_long=0
11058 fi ;;
11059 esac
11060 else
11061 cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h. */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 $ac_includes_default
11068 typedef long long ac__type_sizeof_;
11069 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11070 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11071 #include <stdio.h>
11072 #include <stdlib.h>
11074 main ()
11077 FILE *f = fopen ("conftest.val", "w");
11078 if (! f)
11079 return 1;
11080 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11082 long int i = longval ();
11083 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11084 return 1;
11085 fprintf (f, "%ld\n", i);
11087 else
11089 unsigned long int i = ulongval ();
11090 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11091 return 1;
11092 fprintf (f, "%lu\n", i);
11094 return ferror (f) || fclose (f) != 0;
11097 return 0;
11099 _ACEOF
11100 rm -f conftest$ac_exeext
11101 if { (ac_try="$ac_link"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_link") 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11111 { (case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11114 esac
11115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_try") 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; }; then
11120 ac_cv_sizeof_long_long=`cat conftest.val`
11121 else
11122 echo "$as_me: program exited with status $ac_status" >&5
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 ( exit $ac_status )
11127 if test "$ac_cv_type_long_long" = yes; then
11128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11129 See \`config.log' for more details." >&5
11130 echo "$as_me: error: cannot compute sizeof (long long)
11131 See \`config.log' for more details." >&2;}
11132 { (exit 77); exit 77; }; }
11133 else
11134 ac_cv_sizeof_long_long=0
11137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11139 rm -f conftest.val
11141 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11142 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11146 cat >>confdefs.h <<_ACEOF
11147 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11148 _ACEOF
11153 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11154 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11155 have_c99_bool=no
11156 cat >conftest.$ac_ext <<_ACEOF
11157 /* confdefs.h. */
11158 _ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11164 main ()
11166 _Bool x; x = (_Bool)0;
11168 return 0;
11170 _ACEOF
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && {
11185 test -z "$ac_c_werror_flag" ||
11186 test ! -s conftest.err
11187 } && test -s conftest.$ac_objext; then
11190 cat >>confdefs.h <<\_ACEOF
11191 #define HAVE_C99_BOOL 1
11192 _ACEOF
11194 have_c99_bool=yes
11196 else
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11205 echo "${ECHO_T}$have_c99_bool" >&6; }
11206 if test "$have_c99_bool" = yes ; then
11207 { echo "$as_me:$LINENO: checking for _Bool" >&5
11208 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11209 if test "${ac_cv_type__Bool+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 else
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h. */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 $ac_includes_default
11219 typedef _Bool ac__type_new_;
11221 main ()
11223 if ((ac__type_new_ *) 0)
11224 return 0;
11225 if (sizeof (ac__type_new_))
11226 return 0;
11228 return 0;
11230 _ACEOF
11231 rm -f conftest.$ac_objext
11232 if { (ac_try="$ac_compile"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_compile") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest.$ac_objext; then
11248 ac_cv_type__Bool=yes
11249 else
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 ac_cv_type__Bool=no
11256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11259 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11261 # The cast to long int works around a bug in the HP C Compiler
11262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11264 # This bug is HP SR number 8606223364.
11265 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11266 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11267 if test "${ac_cv_sizeof__Bool+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270 if test "$cross_compiling" = yes; then
11271 # Depending upon the size, compute the lo and hi bounds.
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h. */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 $ac_includes_default
11279 typedef _Bool ac__type_sizeof_;
11281 main ()
11283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11284 test_array [0] = 0
11287 return 0;
11289 _ACEOF
11290 rm -f conftest.$ac_objext
11291 if { (ac_try="$ac_compile"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && {
11304 test -z "$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 } && test -s conftest.$ac_objext; then
11307 ac_lo=0 ac_mid=0
11308 while :; do
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 $ac_includes_default
11316 typedef _Bool ac__type_sizeof_;
11318 main ()
11320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11321 test_array [0] = 0
11324 return 0;
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest.$ac_objext; then
11344 ac_hi=$ac_mid; break
11345 else
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 ac_lo=`expr $ac_mid + 1`
11350 if test $ac_lo -le $ac_mid; then
11351 ac_lo= ac_hi=
11352 break
11354 ac_mid=`expr 2 '*' $ac_mid + 1`
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 done
11359 else
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 $ac_includes_default
11370 typedef _Bool ac__type_sizeof_;
11372 main ()
11374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11375 test_array [0] = 0
11378 return 0;
11380 _ACEOF
11381 rm -f conftest.$ac_objext
11382 if { (ac_try="$ac_compile"
11383 case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11386 esac
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_compile") 2>conftest.er1
11389 ac_status=$?
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } && {
11395 test -z "$ac_c_werror_flag" ||
11396 test ! -s conftest.err
11397 } && test -s conftest.$ac_objext; then
11398 ac_hi=-1 ac_mid=-1
11399 while :; do
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h. */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 $ac_includes_default
11407 typedef _Bool ac__type_sizeof_;
11409 main ()
11411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11412 test_array [0] = 0
11415 return 0;
11417 _ACEOF
11418 rm -f conftest.$ac_objext
11419 if { (ac_try="$ac_compile"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_compile") 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } && {
11432 test -z "$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11434 } && test -s conftest.$ac_objext; then
11435 ac_lo=$ac_mid; break
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_hi=`expr '(' $ac_mid ')' - 1`
11441 if test $ac_mid -le $ac_hi; then
11442 ac_lo= ac_hi=
11443 break
11445 ac_mid=`expr 2 '*' $ac_mid`
11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11449 done
11450 else
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_lo= ac_hi=
11457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 # Binary search between lo and hi bounds.
11462 while test "x$ac_lo" != "x$ac_hi"; do
11463 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11464 cat >conftest.$ac_ext <<_ACEOF
11465 /* confdefs.h. */
11466 _ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h. */
11470 $ac_includes_default
11471 typedef _Bool ac__type_sizeof_;
11473 main ()
11475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11476 test_array [0] = 0
11479 return 0;
11481 _ACEOF
11482 rm -f conftest.$ac_objext
11483 if { (ac_try="$ac_compile"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_compile") 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && {
11496 test -z "$ac_c_werror_flag" ||
11497 test ! -s conftest.err
11498 } && test -s conftest.$ac_objext; then
11499 ac_hi=$ac_mid
11500 else
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 ac_lo=`expr '(' $ac_mid ')' + 1`
11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508 done
11509 case $ac_lo in
11510 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11511 '') if test "$ac_cv_type__Bool" = yes; then
11512 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11513 See \`config.log' for more details." >&5
11514 echo "$as_me: error: cannot compute sizeof (_Bool)
11515 See \`config.log' for more details." >&2;}
11516 { (exit 77); exit 77; }; }
11517 else
11518 ac_cv_sizeof__Bool=0
11519 fi ;;
11520 esac
11521 else
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h. */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 $ac_includes_default
11529 typedef _Bool ac__type_sizeof_;
11530 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11531 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11532 #include <stdio.h>
11533 #include <stdlib.h>
11535 main ()
11538 FILE *f = fopen ("conftest.val", "w");
11539 if (! f)
11540 return 1;
11541 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11543 long int i = longval ();
11544 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11545 return 1;
11546 fprintf (f, "%ld\n", i);
11548 else
11550 unsigned long int i = ulongval ();
11551 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11552 return 1;
11553 fprintf (f, "%lu\n", i);
11555 return ferror (f) || fclose (f) != 0;
11558 return 0;
11560 _ACEOF
11561 rm -f conftest$ac_exeext
11562 if { (ac_try="$ac_link"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_link") 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11572 { (case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_try") 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }; then
11581 ac_cv_sizeof__Bool=`cat conftest.val`
11582 else
11583 echo "$as_me: program exited with status $ac_status" >&5
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 ( exit $ac_status )
11588 if test "$ac_cv_type__Bool" = yes; then
11589 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11590 See \`config.log' for more details." >&5
11591 echo "$as_me: error: cannot compute sizeof (_Bool)
11592 See \`config.log' for more details." >&2;}
11593 { (exit 77); exit 77; }; }
11594 else
11595 ac_cv_sizeof__Bool=0
11598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11600 rm -f conftest.val
11602 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11603 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11607 cat >>confdefs.h <<_ACEOF
11608 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11609 _ACEOF
11614 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11615 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11616 if test "${ac_cv_type_uintptr_t+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619 cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h. */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 #ifdef HAVE_STDINT_H
11626 #include <stdint.h>
11627 #endif
11629 typedef uintptr_t ac__type_new_;
11631 main ()
11633 if ((ac__type_new_ *) 0)
11634 return 0;
11635 if (sizeof (ac__type_new_))
11636 return 0;
11638 return 0;
11640 _ACEOF
11641 rm -f conftest.$ac_objext
11642 if { (ac_try="$ac_compile"
11643 case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11646 esac
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_compile") 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } && {
11655 test -z "$ac_c_werror_flag" ||
11656 test ! -s conftest.err
11657 } && test -s conftest.$ac_objext; then
11658 ac_cv_type_uintptr_t=yes
11659 else
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 ac_cv_type_uintptr_t=no
11666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11669 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11670 if test $ac_cv_type_uintptr_t = yes; then
11672 cat >>confdefs.h <<_ACEOF
11673 #define HAVE_UINTPTR_T 1
11674 _ACEOF
11676 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11677 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11678 if test "${ac_cv_type_uintptr_t+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
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 uintptr_t ac__type_new_;
11690 main ()
11692 if ((ac__type_new_ *) 0)
11693 return 0;
11694 if (sizeof (ac__type_new_))
11695 return 0;
11697 return 0;
11699 _ACEOF
11700 rm -f conftest.$ac_objext
11701 if { (ac_try="$ac_compile"
11702 case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705 esac
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707 (eval "$ac_compile") 2>conftest.er1
11708 ac_status=$?
11709 grep -v '^ *+' conftest.er1 >conftest.err
11710 rm -f conftest.er1
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } && {
11714 test -z "$ac_c_werror_flag" ||
11715 test ! -s conftest.err
11716 } && test -s conftest.$ac_objext; then
11717 ac_cv_type_uintptr_t=yes
11718 else
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11722 ac_cv_type_uintptr_t=no
11725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11727 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11728 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11730 # The cast to long int works around a bug in the HP C Compiler
11731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11733 # This bug is HP SR number 8606223364.
11734 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11735 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11736 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739 if test "$cross_compiling" = yes; then
11740 # Depending upon the size, compute the lo and hi bounds.
11741 cat >conftest.$ac_ext <<_ACEOF
11742 /* confdefs.h. */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11748 typedef uintptr_t ac__type_sizeof_;
11750 main ()
11752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11753 test_array [0] = 0
11756 return 0;
11758 _ACEOF
11759 rm -f conftest.$ac_objext
11760 if { (ac_try="$ac_compile"
11761 case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_compile") 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest.$ac_objext; then
11776 ac_lo=0 ac_mid=0
11777 while :; do
11778 cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h. */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 $ac_includes_default
11785 typedef uintptr_t ac__type_sizeof_;
11787 main ()
11789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11790 test_array [0] = 0
11793 return 0;
11795 _ACEOF
11796 rm -f conftest.$ac_objext
11797 if { (ac_try="$ac_compile"
11798 case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11801 esac
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_compile") 2>conftest.er1
11804 ac_status=$?
11805 grep -v '^ *+' conftest.er1 >conftest.err
11806 rm -f conftest.er1
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } && {
11810 test -z "$ac_c_werror_flag" ||
11811 test ! -s conftest.err
11812 } && test -s conftest.$ac_objext; then
11813 ac_hi=$ac_mid; break
11814 else
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 ac_lo=`expr $ac_mid + 1`
11819 if test $ac_lo -le $ac_mid; then
11820 ac_lo= ac_hi=
11821 break
11823 ac_mid=`expr 2 '*' $ac_mid + 1`
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 done
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h. */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 $ac_includes_default
11839 typedef uintptr_t ac__type_sizeof_;
11841 main ()
11843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11844 test_array [0] = 0
11847 return 0;
11849 _ACEOF
11850 rm -f conftest.$ac_objext
11851 if { (ac_try="$ac_compile"
11852 case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_compile") 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } && {
11864 test -z "$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11866 } && test -s conftest.$ac_objext; then
11867 ac_hi=-1 ac_mid=-1
11868 while :; do
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h. */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11875 $ac_includes_default
11876 typedef uintptr_t ac__type_sizeof_;
11878 main ()
11880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11881 test_array [0] = 0
11884 return 0;
11886 _ACEOF
11887 rm -f conftest.$ac_objext
11888 if { (ac_try="$ac_compile"
11889 case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_compile") 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } && {
11901 test -z "$ac_c_werror_flag" ||
11902 test ! -s conftest.err
11903 } && test -s conftest.$ac_objext; then
11904 ac_lo=$ac_mid; break
11905 else
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11909 ac_hi=`expr '(' $ac_mid ')' - 1`
11910 if test $ac_mid -le $ac_hi; then
11911 ac_lo= ac_hi=
11912 break
11914 ac_mid=`expr 2 '*' $ac_mid`
11917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918 done
11919 else
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_lo= ac_hi=
11926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 # Binary search between lo and hi bounds.
11931 while test "x$ac_lo" != "x$ac_hi"; do
11932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h. */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 $ac_includes_default
11940 typedef uintptr_t ac__type_sizeof_;
11942 main ()
11944 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11945 test_array [0] = 0
11948 return 0;
11950 _ACEOF
11951 rm -f conftest.$ac_objext
11952 if { (ac_try="$ac_compile"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956 esac
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest.$ac_objext; then
11968 ac_hi=$ac_mid
11969 else
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_lo=`expr '(' $ac_mid ')' + 1`
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 done
11978 case $ac_lo in
11979 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11980 '') if test "$ac_cv_type_uintptr_t" = yes; then
11981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11982 See \`config.log' for more details." >&5
11983 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11984 See \`config.log' for more details." >&2;}
11985 { (exit 77); exit 77; }; }
11986 else
11987 ac_cv_sizeof_uintptr_t=0
11988 fi ;;
11989 esac
11990 else
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 $ac_includes_default
11998 typedef uintptr_t ac__type_sizeof_;
11999 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12000 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12001 #include <stdio.h>
12002 #include <stdlib.h>
12004 main ()
12007 FILE *f = fopen ("conftest.val", "w");
12008 if (! f)
12009 return 1;
12010 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12012 long int i = longval ();
12013 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12014 return 1;
12015 fprintf (f, "%ld\n", i);
12017 else
12019 unsigned long int i = ulongval ();
12020 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12021 return 1;
12022 fprintf (f, "%lu\n", i);
12024 return ferror (f) || fclose (f) != 0;
12027 return 0;
12029 _ACEOF
12030 rm -f conftest$ac_exeext
12031 if { (ac_try="$ac_link"
12032 case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12035 esac
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_link") 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12041 { (case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12044 esac
12045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_try") 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12051 else
12052 echo "$as_me: program exited with status $ac_status" >&5
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 ( exit $ac_status )
12057 if test "$ac_cv_type_uintptr_t" = yes; then
12058 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12059 See \`config.log' for more details." >&5
12060 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12061 See \`config.log' for more details." >&2;}
12062 { (exit 77); exit 77; }; }
12063 else
12064 ac_cv_sizeof_uintptr_t=0
12067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12069 rm -f conftest.val
12071 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12072 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12076 cat >>confdefs.h <<_ACEOF
12077 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12078 _ACEOF
12085 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12086 { echo "$as_me:$LINENO: checking size of off_t" >&5
12087 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12088 if test "${ac_cv_sizeof_off_t+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091 if test "$cross_compiling" = yes; then
12092 ac_cv_sizeof_off_t=4
12093 else
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h. */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 #include <stdio.h>
12101 #include <sys/types.h>
12102 main()
12104 FILE *f=fopen("conftestval", "w");
12105 if (!f) exit(1);
12106 fprintf(f, "%d\n", sizeof(off_t));
12107 exit(0);
12109 _ACEOF
12110 rm -f conftest$ac_exeext
12111 if { (ac_try="$ac_link"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115 esac
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_link") 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12121 { (case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_try") 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 ac_cv_sizeof_off_t=`cat conftestval`
12131 else
12132 echo "$as_me: program exited with status $ac_status" >&5
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 ( exit $ac_status )
12137 ac_cv_sizeof_off_t=0
12139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12146 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12147 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12149 cat >>confdefs.h <<_ACEOF
12150 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12151 _ACEOF
12154 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12155 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12156 if test "$have_long_long" = yes -a \
12157 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12158 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12160 cat >>confdefs.h <<\_ACEOF
12161 #define HAVE_LARGEFILE_SUPPORT 1
12162 _ACEOF
12164 { echo "$as_me:$LINENO: result: yes" >&5
12165 echo "${ECHO_T}yes" >&6; }
12166 else
12167 { echo "$as_me:$LINENO: result: no" >&5
12168 echo "${ECHO_T}no" >&6; }
12171 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12172 { echo "$as_me:$LINENO: checking size of time_t" >&5
12173 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12174 if test "${ac_cv_sizeof_time_t+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177 if test "$cross_compiling" = yes; then
12178 ac_cv_sizeof_time_t=4
12179 else
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 #include <stdio.h>
12187 #include <time.h>
12188 main()
12190 FILE *f=fopen("conftestval", "w");
12191 if (!f) exit(1);
12192 fprintf(f, "%d\n", sizeof(time_t));
12193 exit(0);
12195 _ACEOF
12196 rm -f conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_sizeof_time_t=`cat conftestval`
12217 else
12218 echo "$as_me: program exited with status $ac_status" >&5
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ( exit $ac_status )
12223 ac_cv_sizeof_time_t=0
12225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12232 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12233 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12235 cat >>confdefs.h <<_ACEOF
12236 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12237 _ACEOF
12241 # if have pthread_t then define SIZEOF_PTHREAD_T
12242 ac_save_cc="$CC"
12243 if test "$ac_cv_kpthread" = "yes"
12244 then CC="$CC -Kpthread"
12245 elif test "$ac_cv_kthread" = "yes"
12246 then CC="$CC -Kthread"
12247 elif test "$ac_cv_pthread" = "yes"
12248 then CC="$CC -pthread"
12250 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12251 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12252 have_pthread_t=no
12253 cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h. */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 #include <pthread.h>
12261 main ()
12263 pthread_t x; x = *(pthread_t*)0;
12265 return 0;
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (ac_try="$ac_compile"
12270 case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12273 esac
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_compile") 2>conftest.er1
12276 ac_status=$?
12277 grep -v '^ *+' conftest.er1 >conftest.err
12278 rm -f conftest.er1
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && {
12282 test -z "$ac_c_werror_flag" ||
12283 test ! -s conftest.err
12284 } && test -s conftest.$ac_objext; then
12285 have_pthread_t=yes
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12294 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12295 echo "${ECHO_T}$have_pthread_t" >&6; }
12296 if test "$have_pthread_t" = yes ; then
12297 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12298 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12299 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12300 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303 if test "$cross_compiling" = yes; then
12304 ac_cv_sizeof_pthread_t=4
12305 else
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 #include <stdio.h>
12313 #include <pthread.h>
12314 main()
12316 FILE *f=fopen("conftestval", "w");
12317 if (!f) exit(1);
12318 fprintf(f, "%d\n", sizeof(pthread_t));
12319 exit(0);
12321 _ACEOF
12322 rm -f conftest$ac_exeext
12323 if { (ac_try="$ac_link"
12324 case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_link") 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12333 { (case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_try") 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_sizeof_pthread_t=`cat conftestval`
12343 else
12344 echo "$as_me: program exited with status $ac_status" >&5
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ( exit $ac_status )
12349 ac_cv_sizeof_pthread_t=0
12351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12358 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12359 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12361 cat >>confdefs.h <<_ACEOF
12362 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12363 _ACEOF
12366 CC="$ac_save_cc"
12368 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12369 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12370 # Check whether --enable-toolbox-glue was given.
12371 if test "${enable_toolbox_glue+set}" = set; then
12372 enableval=$enable_toolbox_glue;
12376 if test -z "$enable_toolbox_glue"
12377 then
12378 case $ac_sys_system/$ac_sys_release in
12379 Darwin/*)
12380 enable_toolbox_glue="yes";;
12382 enable_toolbox_glue="no";;
12383 esac
12385 case "$enable_toolbox_glue" in
12386 yes)
12387 extra_machdep_objs="Python/mactoolboxglue.o"
12388 extra_undefs="-u _PyMac_Error"
12390 cat >>confdefs.h <<\_ACEOF
12391 #define USE_TOOLBOX_OBJECT_GLUE 1
12392 _ACEOF
12396 extra_machdep_objs=""
12397 extra_undefs=""
12399 esac
12400 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12401 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12405 case $ac_sys_system/$ac_sys_release in
12406 Darwin/[01567]\..*)
12407 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12409 Darwin/*)
12410 OTHER_LIBTOOL_OPT=""
12412 esac
12415 case $ac_sys_system/$ac_sys_release in
12416 Darwin/[01567]\..*)
12417 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12418 if test "${enable_universalsdk}"; then
12420 else
12421 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
12423 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12424 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12425 Darwin/*)
12426 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12427 if test ${gcc_version} '<' 4.0
12428 then
12429 LIBTOOL_CRUFT="-lcc_dynamic"
12430 else
12431 LIBTOOL_CRUFT=""
12433 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
12434 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12435 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12436 esac
12438 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12439 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12440 if test "$enable_framework"
12441 then
12442 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12443 # -F. is needed to allow linking to the framework while
12444 # in the build location.
12446 cat >>confdefs.h <<\_ACEOF
12447 #define WITH_NEXT_FRAMEWORK 1
12448 _ACEOF
12450 { echo "$as_me:$LINENO: result: yes" >&5
12451 echo "${ECHO_T}yes" >&6; }
12452 else
12453 { echo "$as_me:$LINENO: result: no" >&5
12454 echo "${ECHO_T}no" >&6; }
12457 { echo "$as_me:$LINENO: checking for dyld" >&5
12458 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12459 case $ac_sys_system/$ac_sys_release in
12460 Darwin/*)
12462 cat >>confdefs.h <<\_ACEOF
12463 #define WITH_DYLD 1
12464 _ACEOF
12466 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12467 echo "${ECHO_T}always on for Darwin" >&6; }
12470 { echo "$as_me:$LINENO: result: no" >&5
12471 echo "${ECHO_T}no" >&6; }
12473 esac
12475 # Set info about shared libraries.
12481 # SO is the extension of shared libraries `(including the dot!)
12482 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12483 { echo "$as_me:$LINENO: checking SO" >&5
12484 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12485 if test -z "$SO"
12486 then
12487 case $ac_sys_system in
12488 hp*|HP*)
12489 case `uname -m` in
12490 ia64) SO=.so;;
12491 *) SO=.sl;;
12492 esac
12494 CYGWIN*) SO=.dll;;
12495 *) SO=.so;;
12496 esac
12497 else
12498 # this might also be a termcap variable, see #610332
12499 echo
12500 echo '====================================================================='
12501 echo '+ +'
12502 echo '+ WARNING: You have set SO in your environment. +'
12503 echo '+ Do you really mean to change the extension for shared libraries? +'
12504 echo '+ Continuing in 10 seconds to let you to ponder. +'
12505 echo '+ +'
12506 echo '====================================================================='
12507 sleep 10
12509 { echo "$as_me:$LINENO: result: $SO" >&5
12510 echo "${ECHO_T}$SO" >&6; }
12512 cat >>confdefs.h <<_ACEOF
12513 #define SHLIB_EXT "$SO"
12514 _ACEOF
12516 # LDSHARED is the ld *command* used to create shared library
12517 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12518 # (Shared libraries in this instance are shared modules to be loaded into
12519 # Python, as opposed to building Python itself as a shared library.)
12520 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12521 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12522 if test -z "$LDSHARED"
12523 then
12524 case $ac_sys_system/$ac_sys_release in
12525 AIX*)
12526 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12527 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12529 BeOS*)
12530 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12531 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12533 IRIX/5*) LDSHARED="ld -shared";;
12534 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
12535 SunOS/5*)
12536 if test "$GCC" = "yes"
12537 then LDSHARED='$(CC) -shared'
12538 else LDSHARED='$(CC) -G';
12539 fi ;;
12540 hp*|HP*)
12541 if test "$GCC" = "yes"
12542 then LDSHARED='$(CC) -shared'
12543 else LDSHARED='ld -b';
12544 fi ;;
12545 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
12546 Darwin/1.3*)
12547 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12548 if test "$enable_framework" ; then
12549 # Link against the framework. All externals should be defined.
12550 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12551 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12552 else
12553 # No framework. Ignore undefined symbols, assuming they come from Python
12554 LDSHARED="$LDSHARED -undefined suppress"
12555 fi ;;
12556 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12557 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12558 if test "$enable_framework" ; then
12559 # Link against the framework. All externals should be defined.
12560 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12561 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12562 else
12563 # No framework, use the Python app as bundle-loader
12564 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12565 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12566 fi ;;
12567 Darwin/*)
12568 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12569 # This allows an extension to be used in any Python
12570 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12571 if test ${cur_target} '>' 10.2; then
12572 cur_target=10.3
12574 if test "${UNIVERSAL_ARCHS}" = "all"; then
12575 # Ensure that the default platform for a 4-way
12576 # universal build is OSX 10.5, that's the first
12577 # OS release where 4-way builds make sense.
12578 cur_target='10.5'
12580 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12582 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12583 # environment with a value that is the same as what we'll use
12584 # in the Makefile to ensure that we'll get the same compiler
12585 # environment during configure and build time.
12586 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12587 export MACOSX_DEPLOYMENT_TARGET
12589 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
12590 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
12591 then
12592 if test "${enable_universalsdk}"; then
12593 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12595 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12596 BLDSHARED="$LDSHARED"
12597 else
12598 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12599 if test "$enable_framework" ; then
12600 # Link against the framework. All externals should be defined.
12601 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12602 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12603 else
12604 # No framework, use the Python app as bundle-loader
12605 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12606 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12610 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
12611 BSD/OS*/4*) LDSHARED="gcc -shared";;
12612 FreeBSD*)
12613 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12614 then
12615 LDSHARED="$CC -shared ${LDFLAGS}"
12616 else
12617 LDSHARED="ld -Bshareable ${LDFLAGS}"
12618 fi;;
12619 OpenBSD*)
12620 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12621 then
12622 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12623 else
12624 case `uname -r` in
12625 [01].* | 2.[0-7] | 2.[0-7].*)
12626 LDSHARED="ld -Bshareable ${LDFLAGS}"
12629 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12631 esac
12632 fi;;
12633 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
12634 OpenUNIX*|UnixWare*)
12635 if test "$GCC" = "yes"
12636 then LDSHARED='$(CC) -shared'
12637 else LDSHARED='$(CC) -G'
12638 fi;;
12639 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
12640 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12641 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
12642 atheos*) LDSHARED="gcc -shared";;
12643 *) LDSHARED="ld";;
12644 esac
12646 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12647 echo "${ECHO_T}$LDSHARED" >&6; }
12648 BLDSHARED=${BLDSHARED-$LDSHARED}
12649 # CCSHARED are the C *flags* used to create objects to go into a shared
12650 # library (module) -- this is only needed for a few systems
12651 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12652 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12653 if test -z "$CCSHARED"
12654 then
12655 case $ac_sys_system/$ac_sys_release in
12656 SunOS*) if test "$GCC" = yes;
12657 then CCSHARED="-fPIC";
12658 elif test `uname -p` = sparc;
12659 then CCSHARED="-xcode=pic32";
12660 else CCSHARED="-Kpic";
12661 fi;;
12662 hp*|HP*) if test "$GCC" = yes;
12663 then CCSHARED="-fPIC";
12664 else CCSHARED="+z";
12665 fi;;
12666 Linux*|GNU*) CCSHARED="-fPIC";;
12667 BSD/OS*/4*) CCSHARED="-fpic";;
12668 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
12669 OpenUNIX*|UnixWare*)
12670 if test "$GCC" = "yes"
12671 then CCSHARED="-fPIC"
12672 else CCSHARED="-KPIC"
12673 fi;;
12674 SCO_SV*)
12675 if test "$GCC" = "yes"
12676 then CCSHARED="-fPIC"
12677 else CCSHARED="-Kpic -belf"
12678 fi;;
12679 Monterey*) CCSHARED="-G";;
12680 IRIX*/6*) case $CC in
12681 *gcc*) CCSHARED="-shared";;
12682 *) CCSHARED="";;
12683 esac;;
12684 atheos*) CCSHARED="-fPIC";;
12685 esac
12687 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12688 echo "${ECHO_T}$CCSHARED" >&6; }
12689 # LINKFORSHARED are the flags passed to the $(CC) command that links
12690 # the python executable -- this is only needed for a few systems
12691 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12692 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12693 if test -z "$LINKFORSHARED"
12694 then
12695 case $ac_sys_system/$ac_sys_release in
12696 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
12697 hp*|HP*)
12698 LINKFORSHARED="-Wl,-E -Wl,+s";;
12699 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12700 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
12701 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
12702 # -u libsys_s pulls in all symbols in libsys
12703 Darwin/*)
12704 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12705 # which is
12706 # not used by the core itself but which needs to be in the core so
12707 # that dynamically loaded extension modules have access to it.
12708 # -prebind is no longer used, because it actually seems to give a
12709 # slowdown in stead of a speedup, maybe due to the large number of
12710 # dynamic loads Python does.
12712 LINKFORSHARED="$extra_undefs"
12713 if test "$enable_framework"
12714 then
12715 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12717 LINKFORSHARED="$LINKFORSHARED";;
12718 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
12719 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
12720 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
12721 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
12722 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12723 then
12724 LINKFORSHARED="-Wl,--export-dynamic"
12725 fi;;
12726 SunOS/5*) case $CC in
12727 *gcc*)
12728 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
12729 then
12730 LINKFORSHARED="-Xlinker --export-dynamic"
12731 fi;;
12732 esac;;
12733 CYGWIN*)
12734 if test $enable_shared = "no"
12735 then
12736 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
12737 fi;;
12738 QNX*)
12739 # -Wl,-E causes the symbols to be added to the dynamic
12740 # symbol table so that they can be found when a module
12741 # is loaded. -N 2048K causes the stack size to be set
12742 # to 2048 kilobytes so that the stack doesn't overflow
12743 # when running test_compile.py.
12744 LINKFORSHARED='-Wl,-E -N 2048K';;
12745 esac
12747 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12748 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12752 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12753 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12754 if test ! "$LIBRARY" = "$LDLIBRARY"
12755 then
12756 case $ac_sys_system in
12757 CYGWIN*)
12758 # Cygwin needs CCSHARED when building extension DLLs
12759 # but not when building the interpreter DLL.
12760 CFLAGSFORSHARED='';;
12762 CFLAGSFORSHARED='$(CCSHARED)'
12763 esac
12765 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12766 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12768 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12769 # library (with --enable-shared).
12770 # For platforms on which shared libraries are not allowed to have unresolved
12771 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12772 # if it is not required, since it creates a dependency of the shared library
12773 # to LIBS. This, in turn, means that applications linking the shared libpython
12774 # don't need to link LIBS explicitly. The default should be only changed
12775 # on systems where this approach causes problems.
12777 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12778 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12779 case "$ac_sys_system" in
12781 SHLIBS='$(LIBS)';;
12782 esac
12783 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12784 echo "${ECHO_T}$SHLIBS" >&6; }
12787 # checks for libraries
12789 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 else
12794 ac_check_lib_save_LIBS=$LIBS
12795 LIBS="-ldl $LIBS"
12796 cat >conftest.$ac_ext <<_ACEOF
12797 /* confdefs.h. */
12798 _ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12803 /* Override any GCC internal prototype to avoid an error.
12804 Use char because int might match the return type of a GCC
12805 builtin and then its argument prototype would still apply. */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 char dlopen ();
12811 main ()
12813 return dlopen ();
12815 return 0;
12817 _ACEOF
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (ac_try="$ac_link"
12820 case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823 esac
12824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825 (eval "$ac_link") 2>conftest.er1
12826 ac_status=$?
12827 grep -v '^ *+' conftest.er1 >conftest.err
12828 rm -f conftest.er1
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } && {
12832 test -z "$ac_c_werror_flag" ||
12833 test ! -s conftest.err
12834 } && test -s conftest$ac_exeext &&
12835 $as_test_x conftest$ac_exeext; then
12836 ac_cv_lib_dl_dlopen=yes
12837 else
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841 ac_cv_lib_dl_dlopen=no
12844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12845 conftest$ac_exeext conftest.$ac_ext
12846 LIBS=$ac_check_lib_save_LIBS
12848 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12850 if test $ac_cv_lib_dl_dlopen = yes; then
12851 cat >>confdefs.h <<_ACEOF
12852 #define HAVE_LIBDL 1
12853 _ACEOF
12855 LIBS="-ldl $LIBS"
12858 # Dynamic linking for SunOS/Solaris and SYSV
12860 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12861 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12862 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865 ac_check_lib_save_LIBS=$LIBS
12866 LIBS="-ldld $LIBS"
12867 cat >conftest.$ac_ext <<_ACEOF
12868 /* confdefs.h. */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12874 /* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12877 #ifdef __cplusplus
12878 extern "C"
12879 #endif
12880 char shl_load ();
12882 main ()
12884 return shl_load ();
12886 return 0;
12888 _ACEOF
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (ac_try="$ac_link"
12891 case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } && {
12903 test -z "$ac_c_werror_flag" ||
12904 test ! -s conftest.err
12905 } && test -s conftest$ac_exeext &&
12906 $as_test_x conftest$ac_exeext; then
12907 ac_cv_lib_dld_shl_load=yes
12908 else
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ac_cv_lib_dld_shl_load=no
12915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12916 conftest$ac_exeext conftest.$ac_ext
12917 LIBS=$ac_check_lib_save_LIBS
12919 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12920 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12921 if test $ac_cv_lib_dld_shl_load = yes; then
12922 cat >>confdefs.h <<_ACEOF
12923 #define HAVE_LIBDLD 1
12924 _ACEOF
12926 LIBS="-ldld $LIBS"
12929 # Dynamic linking for HP-UX
12931 # only check for sem_ini if thread support is requested
12932 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12933 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12934 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12935 if test "${ac_cv_search_sem_init+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938 ac_func_search_save_LIBS=$LIBS
12939 cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h. */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12946 /* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12949 #ifdef __cplusplus
12950 extern "C"
12951 #endif
12952 char sem_init ();
12954 main ()
12956 return sem_init ();
12958 return 0;
12960 _ACEOF
12961 for ac_lib in '' pthread rt posix4; do
12962 if test -z "$ac_lib"; then
12963 ac_res="none required"
12964 else
12965 ac_res=-l$ac_lib
12966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (ac_try="$ac_link"
12970 case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973 esac
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_link") 2>conftest.er1
12976 ac_status=$?
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest$ac_exeext &&
12985 $as_test_x conftest$ac_exeext; then
12986 ac_cv_search_sem_init=$ac_res
12987 else
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12995 conftest$ac_exeext
12996 if test "${ac_cv_search_sem_init+set}" = set; then
12997 break
12999 done
13000 if test "${ac_cv_search_sem_init+set}" = set; then
13002 else
13003 ac_cv_search_sem_init=no
13005 rm conftest.$ac_ext
13006 LIBS=$ac_func_search_save_LIBS
13008 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13009 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13010 ac_res=$ac_cv_search_sem_init
13011 if test "$ac_res" != no; then
13012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13015 # 'Real Time' functions on Solaris
13016 # posix4 on Solaris 2.6
13017 # pthread (first!) on Linux
13020 # check if we need libintl for locale functions
13021 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13022 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13023 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026 ac_check_lib_save_LIBS=$LIBS
13027 LIBS="-lintl $LIBS"
13028 cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h. */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 char textdomain ();
13043 main ()
13045 return textdomain ();
13047 return 0;
13049 _ACEOF
13050 rm -f conftest.$ac_objext conftest$ac_exeext
13051 if { (ac_try="$ac_link"
13052 case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13055 esac
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057 (eval "$ac_link") 2>conftest.er1
13058 ac_status=$?
13059 grep -v '^ *+' conftest.er1 >conftest.err
13060 rm -f conftest.er1
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } && {
13064 test -z "$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 } && test -s conftest$ac_exeext &&
13067 $as_test_x conftest$ac_exeext; then
13068 ac_cv_lib_intl_textdomain=yes
13069 else
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ac_cv_lib_intl_textdomain=no
13076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13077 conftest$ac_exeext conftest.$ac_ext
13078 LIBS=$ac_check_lib_save_LIBS
13080 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13081 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13082 if test $ac_cv_lib_intl_textdomain = yes; then
13084 cat >>confdefs.h <<\_ACEOF
13085 #define WITH_LIBINTL 1
13086 _ACEOF
13091 # checks for system dependent C++ extensions support
13092 case "$ac_sys_system" in
13093 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13094 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 #include "/usr/lpp/xlC/include/load.h"
13103 main ()
13105 loadAndInit("", 0, "")
13107 return 0;
13109 _ACEOF
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (ac_try="$ac_link"
13112 case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115 esac
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_link") 2>conftest.er1
13118 ac_status=$?
13119 grep -v '^ *+' conftest.er1 >conftest.err
13120 rm -f conftest.er1
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } && {
13124 test -z "$ac_c_werror_flag" ||
13125 test ! -s conftest.err
13126 } && test -s conftest$ac_exeext &&
13127 $as_test_x conftest$ac_exeext; then
13129 cat >>confdefs.h <<\_ACEOF
13130 #define AIX_GENUINE_CPLUSPLUS 1
13131 _ACEOF
13133 { echo "$as_me:$LINENO: result: yes" >&5
13134 echo "${ECHO_T}yes" >&6; }
13135 else
13136 echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13139 { echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6; }
13143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13144 conftest$ac_exeext conftest.$ac_ext;;
13145 *) ;;
13146 esac
13148 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13149 # BeOS' sockets are stashed in libnet.
13150 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13151 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13152 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155 ac_check_lib_save_LIBS=$LIBS
13156 LIBS="-lnsl $LIBS"
13157 cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h. */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13164 /* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13167 #ifdef __cplusplus
13168 extern "C"
13169 #endif
13170 char t_open ();
13172 main ()
13174 return t_open ();
13176 return 0;
13178 _ACEOF
13179 rm -f conftest.$ac_objext conftest$ac_exeext
13180 if { (ac_try="$ac_link"
13181 case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184 esac
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_link") 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } && {
13193 test -z "$ac_c_werror_flag" ||
13194 test ! -s conftest.err
13195 } && test -s conftest$ac_exeext &&
13196 $as_test_x conftest$ac_exeext; then
13197 ac_cv_lib_nsl_t_open=yes
13198 else
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13202 ac_cv_lib_nsl_t_open=no
13205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13206 conftest$ac_exeext conftest.$ac_ext
13207 LIBS=$ac_check_lib_save_LIBS
13209 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13210 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13211 if test $ac_cv_lib_nsl_t_open = yes; then
13212 LIBS="-lnsl $LIBS"
13214 # SVR4
13215 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13216 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13217 if test "${ac_cv_lib_socket_socket+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220 ac_check_lib_save_LIBS=$LIBS
13221 LIBS="-lsocket $LIBS $LIBS"
13222 cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h. */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13229 /* Override any GCC internal prototype to avoid an error.
13230 Use char because int might match the return type of a GCC
13231 builtin and then its argument prototype would still apply. */
13232 #ifdef __cplusplus
13233 extern "C"
13234 #endif
13235 char socket ();
13237 main ()
13239 return socket ();
13241 return 0;
13243 _ACEOF
13244 rm -f conftest.$ac_objext conftest$ac_exeext
13245 if { (ac_try="$ac_link"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_link") 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest$ac_exeext &&
13261 $as_test_x conftest$ac_exeext; then
13262 ac_cv_lib_socket_socket=yes
13263 else
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 ac_cv_lib_socket_socket=no
13270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13271 conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS
13274 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13275 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13276 if test $ac_cv_lib_socket_socket = yes; then
13277 LIBS="-lsocket $LIBS"
13279 # SVR4 sockets
13281 case "$ac_sys_system" in
13282 BeOS*)
13283 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13284 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13285 if test "${ac_cv_lib_net_socket+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288 ac_check_lib_save_LIBS=$LIBS
13289 LIBS="-lnet $LIBS $LIBS"
13290 cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h. */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13297 /* Override any GCC internal prototype to avoid an error.
13298 Use char because int might match the return type of a GCC
13299 builtin and then its argument prototype would still apply. */
13300 #ifdef __cplusplus
13301 extern "C"
13302 #endif
13303 char socket ();
13305 main ()
13307 return socket ();
13309 return 0;
13311 _ACEOF
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } && {
13326 test -z "$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13328 } && test -s conftest$ac_exeext &&
13329 $as_test_x conftest$ac_exeext; then
13330 ac_cv_lib_net_socket=yes
13331 else
13332 echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13335 ac_cv_lib_net_socket=no
13338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13339 conftest$ac_exeext conftest.$ac_ext
13340 LIBS=$ac_check_lib_save_LIBS
13342 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13343 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13344 if test $ac_cv_lib_net_socket = yes; then
13345 LIBS="-lnet $LIBS"
13347 # BeOS
13349 esac
13351 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13352 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13354 # Check whether --with-libs was given.
13355 if test "${with_libs+set}" = set; then
13356 withval=$with_libs;
13357 { echo "$as_me:$LINENO: result: $withval" >&5
13358 echo "${ECHO_T}$withval" >&6; }
13359 LIBS="$withval $LIBS"
13361 else
13362 { echo "$as_me:$LINENO: result: no" >&5
13363 echo "${ECHO_T}no" >&6; }
13367 # Check for use of the system libffi library
13368 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13369 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13371 # Check whether --with-system_ffi was given.
13372 if test "${with_system_ffi+set}" = set; then
13373 withval=$with_system_ffi;
13377 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13378 echo "${ECHO_T}$with_system_ffi" >&6; }
13380 # Determine if signalmodule should be used.
13383 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13384 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13386 # Check whether --with-signal-module was given.
13387 if test "${with_signal_module+set}" = set; then
13388 withval=$with_signal_module;
13392 if test -z "$with_signal_module"
13393 then with_signal_module="yes"
13395 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13396 echo "${ECHO_T}$with_signal_module" >&6; }
13398 if test "${with_signal_module}" = "yes"; then
13399 USE_SIGNAL_MODULE=""
13400 SIGNAL_OBJS=""
13401 else
13402 USE_SIGNAL_MODULE="#"
13403 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13406 # This is used to generate Setup.config
13408 USE_THREAD_MODULE=""
13410 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13411 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13414 # Check whether --with-dec-threads was given.
13415 if test "${with_dec_threads+set}" = set; then
13416 withval=$with_dec_threads;
13417 { echo "$as_me:$LINENO: result: $withval" >&5
13418 echo "${ECHO_T}$withval" >&6; }
13419 LDLAST=-threads
13420 if test "${with_thread+set}" != set; then
13421 with_thread="$withval";
13423 else
13424 { echo "$as_me:$LINENO: result: no" >&5
13425 echo "${ECHO_T}no" >&6; }
13429 # Templates for things AC_DEFINEd more than once.
13430 # For a single AC_DEFINE, no template is needed.
13438 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13439 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13441 # Check whether --with-threads was given.
13442 if test "${with_threads+set}" = set; then
13443 withval=$with_threads;
13447 # --with-thread is deprecated, but check for it anyway
13449 # Check whether --with-thread was given.
13450 if test "${with_thread+set}" = set; then
13451 withval=$with_thread; with_threads=$with_thread
13455 if test -z "$with_threads"
13456 then with_threads="yes"
13458 { echo "$as_me:$LINENO: result: $with_threads" >&5
13459 echo "${ECHO_T}$with_threads" >&6; }
13462 if test "$with_threads" = "no"
13463 then
13464 USE_THREAD_MODULE="#"
13465 elif test "$ac_cv_pthread_is_default" = yes
13466 then
13467 cat >>confdefs.h <<\_ACEOF
13468 #define WITH_THREAD 1
13469 _ACEOF
13471 # Defining _REENTRANT on system with POSIX threads should not hurt.
13472 cat >>confdefs.h <<\_ACEOF
13473 #define _REENTRANT 1
13474 _ACEOF
13476 posix_threads=yes
13477 THREADOBJ="Python/thread.o"
13478 elif test "$ac_cv_kpthread" = "yes"
13479 then
13480 CC="$CC -Kpthread"
13481 if test "$ac_cv_cxx_thread" = "yes"; then
13482 CXX="$CXX -Kpthread"
13484 cat >>confdefs.h <<\_ACEOF
13485 #define WITH_THREAD 1
13486 _ACEOF
13488 posix_threads=yes
13489 THREADOBJ="Python/thread.o"
13490 elif test "$ac_cv_kthread" = "yes"
13491 then
13492 CC="$CC -Kthread"
13493 if test "$ac_cv_cxx_thread" = "yes"; then
13494 CXX="$CXX -Kthread"
13496 cat >>confdefs.h <<\_ACEOF
13497 #define WITH_THREAD 1
13498 _ACEOF
13500 posix_threads=yes
13501 THREADOBJ="Python/thread.o"
13502 elif test "$ac_cv_pthread" = "yes"
13503 then
13504 CC="$CC -pthread"
13505 if test "$ac_cv_cxx_thread" = "yes"; then
13506 CXX="$CXX -pthread"
13508 cat >>confdefs.h <<\_ACEOF
13509 #define WITH_THREAD 1
13510 _ACEOF
13512 posix_threads=yes
13513 THREADOBJ="Python/thread.o"
13514 else
13515 if test ! -z "$with_threads" -a -d "$with_threads"
13516 then LDFLAGS="$LDFLAGS -L$with_threads"
13518 if test ! -z "$withval" -a -d "$withval"
13519 then LDFLAGS="$LDFLAGS -L$withval"
13522 # According to the POSIX spec, a pthreads implementation must
13523 # define _POSIX_THREADS in unistd.h. Some apparently don't
13524 # (e.g. gnu pth with pthread emulation)
13525 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13526 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13527 cat >conftest.$ac_ext <<_ACEOF
13528 /* confdefs.h. */
13529 _ACEOF
13530 cat confdefs.h >>conftest.$ac_ext
13531 cat >>conftest.$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13534 #include <unistd.h>
13535 #ifdef _POSIX_THREADS
13537 #endif
13539 _ACEOF
13540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13541 $EGREP "yes" >/dev/null 2>&1; then
13542 unistd_defines_pthreads=yes
13543 else
13544 unistd_defines_pthreads=no
13546 rm -f conftest*
13548 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13549 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13551 cat >>confdefs.h <<\_ACEOF
13552 #define _REENTRANT 1
13553 _ACEOF
13555 if test "${ac_cv_header_cthreads_h+set}" = set; then
13556 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13557 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13558 if test "${ac_cv_header_cthreads_h+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13562 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13563 else
13564 # Is the header compilable?
13565 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13566 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13567 cat >conftest.$ac_ext <<_ACEOF
13568 /* confdefs.h. */
13569 _ACEOF
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13573 $ac_includes_default
13574 #include <cthreads.h>
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (ac_try="$ac_compile"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_compile") 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest.$ac_objext; then
13593 ac_header_compiler=yes
13594 else
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 ac_header_compiler=no
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13603 echo "${ECHO_T}$ac_header_compiler" >&6; }
13605 # Is the header present?
13606 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13607 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13608 cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h. */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 #include <cthreads.h>
13615 _ACEOF
13616 if { (ac_try="$ac_cpp conftest.$ac_ext"
13617 case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } >/dev/null && {
13629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13630 test ! -s conftest.err
13631 }; then
13632 ac_header_preproc=yes
13633 else
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 ac_header_preproc=no
13640 rm -f conftest.err conftest.$ac_ext
13641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13642 echo "${ECHO_T}$ac_header_preproc" >&6; }
13644 # So? What about this header?
13645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13646 yes:no: )
13647 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13648 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13650 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13651 ac_header_preproc=yes
13653 no:yes:* )
13654 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13655 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13657 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13659 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13661 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13663 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13665 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13666 ( cat <<\_ASBOX
13667 ## ------------------------------------------------ ##
13668 ## Report this to http://www.python.org/python-bugs ##
13669 ## ------------------------------------------------ ##
13670 _ASBOX
13671 ) | sed "s/^/$as_me: WARNING: /" >&2
13673 esac
13674 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13675 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13676 if test "${ac_cv_header_cthreads_h+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679 ac_cv_header_cthreads_h=$ac_header_preproc
13681 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13682 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13685 if test $ac_cv_header_cthreads_h = yes; then
13686 cat >>confdefs.h <<\_ACEOF
13687 #define WITH_THREAD 1
13688 _ACEOF
13690 cat >>confdefs.h <<\_ACEOF
13691 #define C_THREADS 1
13692 _ACEOF
13695 cat >>confdefs.h <<\_ACEOF
13696 #define HURD_C_THREADS 1
13697 _ACEOF
13699 LIBS="$LIBS -lthreads"
13700 THREADOBJ="Python/thread.o"
13701 else
13703 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13704 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13705 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13706 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13710 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13711 else
13712 # Is the header compilable?
13713 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13714 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 $ac_includes_default
13722 #include <mach/cthreads.h>
13723 _ACEOF
13724 rm -f conftest.$ac_objext
13725 if { (ac_try="$ac_compile"
13726 case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13729 esac
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_compile") 2>conftest.er1
13732 ac_status=$?
13733 grep -v '^ *+' conftest.er1 >conftest.err
13734 rm -f conftest.er1
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } && {
13738 test -z "$ac_c_werror_flag" ||
13739 test ! -s conftest.err
13740 } && test -s conftest.$ac_objext; then
13741 ac_header_compiler=yes
13742 else
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13746 ac_header_compiler=no
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13751 echo "${ECHO_T}$ac_header_compiler" >&6; }
13753 # Is the header present?
13754 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13755 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13756 cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h. */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13762 #include <mach/cthreads.h>
13763 _ACEOF
13764 if { (ac_try="$ac_cpp conftest.$ac_ext"
13765 case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } >/dev/null && {
13777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13778 test ! -s conftest.err
13779 }; then
13780 ac_header_preproc=yes
13781 else
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 ac_header_preproc=no
13788 rm -f conftest.err conftest.$ac_ext
13789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13790 echo "${ECHO_T}$ac_header_preproc" >&6; }
13792 # So? What about this header?
13793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13794 yes:no: )
13795 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13796 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13798 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13799 ac_header_preproc=yes
13801 no:yes:* )
13802 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13803 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13805 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13807 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13809 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13811 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13813 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13814 ( cat <<\_ASBOX
13815 ## ------------------------------------------------ ##
13816 ## Report this to http://www.python.org/python-bugs ##
13817 ## ------------------------------------------------ ##
13818 _ASBOX
13819 ) | sed "s/^/$as_me: WARNING: /" >&2
13821 esac
13822 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13823 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13824 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827 ac_cv_header_mach_cthreads_h=$ac_header_preproc
13829 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13830 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13833 if test $ac_cv_header_mach_cthreads_h = yes; then
13834 cat >>confdefs.h <<\_ACEOF
13835 #define WITH_THREAD 1
13836 _ACEOF
13838 cat >>confdefs.h <<\_ACEOF
13839 #define C_THREADS 1
13840 _ACEOF
13843 cat >>confdefs.h <<\_ACEOF
13844 #define MACH_C_THREADS 1
13845 _ACEOF
13847 THREADOBJ="Python/thread.o"
13848 else
13850 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13851 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13853 # Check whether --with-pth was given.
13854 if test "${with_pth+set}" = set; then
13855 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13856 echo "${ECHO_T}$withval" >&6; }
13857 cat >>confdefs.h <<\_ACEOF
13858 #define WITH_THREAD 1
13859 _ACEOF
13862 cat >>confdefs.h <<\_ACEOF
13863 #define HAVE_PTH 1
13864 _ACEOF
13866 LIBS="-lpth $LIBS"
13867 THREADOBJ="Python/thread.o"
13868 else
13869 { echo "$as_me:$LINENO: result: no" >&5
13870 echo "${ECHO_T}no" >&6; }
13872 # Just looking for pthread_create in libpthread is not enough:
13873 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13874 # So we really have to include pthread.h, and then link.
13875 _libs=$LIBS
13876 LIBS="$LIBS -lpthread"
13877 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13878 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13879 cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h. */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 #include <pthread.h>
13887 void * start_routine (void *arg) { exit (0); }
13889 main ()
13892 pthread_create (NULL, NULL, start_routine, NULL)
13894 return 0;
13896 _ACEOF
13897 rm -f conftest.$ac_objext conftest$ac_exeext
13898 if { (ac_try="$ac_link"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_link") 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } && {
13911 test -z "$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13913 } && test -s conftest$ac_exeext &&
13914 $as_test_x conftest$ac_exeext; then
13916 { echo "$as_me:$LINENO: result: yes" >&5
13917 echo "${ECHO_T}yes" >&6; }
13918 cat >>confdefs.h <<\_ACEOF
13919 #define WITH_THREAD 1
13920 _ACEOF
13922 posix_threads=yes
13923 THREADOBJ="Python/thread.o"
13924 else
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13929 LIBS=$_libs
13930 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13931 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13932 if test "${ac_cv_func_pthread_detach+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935 cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h. */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13943 #define pthread_detach innocuous_pthread_detach
13945 /* System header to define __stub macros and hopefully few prototypes,
13946 which can conflict with char pthread_detach (); below.
13947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13948 <limits.h> exists even on freestanding compilers. */
13950 #ifdef __STDC__
13951 # include <limits.h>
13952 #else
13953 # include <assert.h>
13954 #endif
13956 #undef pthread_detach
13958 /* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13961 #ifdef __cplusplus
13962 extern "C"
13963 #endif
13964 char pthread_detach ();
13965 /* The GNU C library defines this for functions which it implements
13966 to always fail with ENOSYS. Some functions are actually named
13967 something starting with __ and the normal name is an alias. */
13968 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13969 choke me
13970 #endif
13973 main ()
13975 return pthread_detach ();
13977 return 0;
13979 _ACEOF
13980 rm -f conftest.$ac_objext conftest$ac_exeext
13981 if { (ac_try="$ac_link"
13982 case "(($ac_try" in
13983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984 *) ac_try_echo=$ac_try;;
13985 esac
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987 (eval "$ac_link") 2>conftest.er1
13988 ac_status=$?
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } && {
13994 test -z "$ac_c_werror_flag" ||
13995 test ! -s conftest.err
13996 } && test -s conftest$ac_exeext &&
13997 $as_test_x conftest$ac_exeext; then
13998 ac_cv_func_pthread_detach=yes
13999 else
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ac_cv_func_pthread_detach=no
14006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14007 conftest$ac_exeext conftest.$ac_ext
14009 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14010 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14011 if test $ac_cv_func_pthread_detach = yes; then
14012 cat >>confdefs.h <<\_ACEOF
14013 #define WITH_THREAD 1
14014 _ACEOF
14016 posix_threads=yes
14017 THREADOBJ="Python/thread.o"
14018 else
14020 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14021 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14022 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14023 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14027 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14028 else
14029 # Is the header compilable?
14030 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14031 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14032 cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h. */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 $ac_includes_default
14039 #include <atheos/threads.h>
14040 _ACEOF
14041 rm -f conftest.$ac_objext
14042 if { (ac_try="$ac_compile"
14043 case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046 esac
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_compile") 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } && {
14055 test -z "$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14057 } && test -s conftest.$ac_objext; then
14058 ac_header_compiler=yes
14059 else
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14063 ac_header_compiler=no
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14068 echo "${ECHO_T}$ac_header_compiler" >&6; }
14070 # Is the header present?
14071 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14072 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14073 cat >conftest.$ac_ext <<_ACEOF
14074 /* confdefs.h. */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 #include <atheos/threads.h>
14080 _ACEOF
14081 if { (ac_try="$ac_cpp conftest.$ac_ext"
14082 case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14085 esac
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14088 ac_status=$?
14089 grep -v '^ *+' conftest.er1 >conftest.err
14090 rm -f conftest.er1
14091 cat conftest.err >&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } >/dev/null && {
14094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14095 test ! -s conftest.err
14096 }; then
14097 ac_header_preproc=yes
14098 else
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_header_preproc=no
14105 rm -f conftest.err conftest.$ac_ext
14106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14107 echo "${ECHO_T}$ac_header_preproc" >&6; }
14109 # So? What about this header?
14110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14111 yes:no: )
14112 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14113 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14115 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14116 ac_header_preproc=yes
14118 no:yes:* )
14119 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14120 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14122 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14124 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14126 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14128 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14130 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14131 ( cat <<\_ASBOX
14132 ## ------------------------------------------------ ##
14133 ## Report this to http://www.python.org/python-bugs ##
14134 ## ------------------------------------------------ ##
14135 _ASBOX
14136 ) | sed "s/^/$as_me: WARNING: /" >&2
14138 esac
14139 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14140 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14141 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 else
14144 ac_cv_header_atheos_threads_h=$ac_header_preproc
14146 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14147 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14150 if test $ac_cv_header_atheos_threads_h = yes; then
14151 cat >>confdefs.h <<\_ACEOF
14152 #define WITH_THREAD 1
14153 _ACEOF
14156 cat >>confdefs.h <<\_ACEOF
14157 #define ATHEOS_THREADS 1
14158 _ACEOF
14160 THREADOBJ="Python/thread.o"
14161 else
14163 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14164 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14165 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14166 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14170 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14171 else
14172 # Is the header compilable?
14173 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14174 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14175 cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h. */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 $ac_includes_default
14182 #include <kernel/OS.h>
14183 _ACEOF
14184 rm -f conftest.$ac_objext
14185 if { (ac_try="$ac_compile"
14186 case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14189 esac
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_compile") 2>conftest.er1
14192 ac_status=$?
14193 grep -v '^ *+' conftest.er1 >conftest.err
14194 rm -f conftest.er1
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } && {
14198 test -z "$ac_c_werror_flag" ||
14199 test ! -s conftest.err
14200 } && test -s conftest.$ac_objext; then
14201 ac_header_compiler=yes
14202 else
14203 echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.$ac_ext >&5
14206 ac_header_compiler=no
14209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14211 echo "${ECHO_T}$ac_header_compiler" >&6; }
14213 # Is the header present?
14214 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14215 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14216 cat >conftest.$ac_ext <<_ACEOF
14217 /* confdefs.h. */
14218 _ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14222 #include <kernel/OS.h>
14223 _ACEOF
14224 if { (ac_try="$ac_cpp conftest.$ac_ext"
14225 case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14231 ac_status=$?
14232 grep -v '^ *+' conftest.er1 >conftest.err
14233 rm -f conftest.er1
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } >/dev/null && {
14237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14238 test ! -s conftest.err
14239 }; then
14240 ac_header_preproc=yes
14241 else
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14245 ac_header_preproc=no
14248 rm -f conftest.err conftest.$ac_ext
14249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14250 echo "${ECHO_T}$ac_header_preproc" >&6; }
14252 # So? What about this header?
14253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14254 yes:no: )
14255 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14256 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14258 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14259 ac_header_preproc=yes
14261 no:yes:* )
14262 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14263 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14264 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14265 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14266 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14267 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14269 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14270 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14271 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14272 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14273 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14274 ( cat <<\_ASBOX
14275 ## ------------------------------------------------ ##
14276 ## Report this to http://www.python.org/python-bugs ##
14277 ## ------------------------------------------------ ##
14278 _ASBOX
14279 ) | sed "s/^/$as_me: WARNING: /" >&2
14281 esac
14282 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14283 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14284 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287 ac_cv_header_kernel_OS_h=$ac_header_preproc
14289 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14290 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14293 if test $ac_cv_header_kernel_OS_h = yes; then
14294 cat >>confdefs.h <<\_ACEOF
14295 #define WITH_THREAD 1
14296 _ACEOF
14299 cat >>confdefs.h <<\_ACEOF
14300 #define BEOS_THREADS 1
14301 _ACEOF
14303 THREADOBJ="Python/thread.o"
14304 else
14306 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14307 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14308 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311 ac_check_lib_save_LIBS=$LIBS
14312 LIBS="-lpthreads $LIBS"
14313 cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h. */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14320 /* Override any GCC internal prototype to avoid an error.
14321 Use char because int might match the return type of a GCC
14322 builtin and then its argument prototype would still apply. */
14323 #ifdef __cplusplus
14324 extern "C"
14325 #endif
14326 char pthread_create ();
14328 main ()
14330 return pthread_create ();
14332 return 0;
14334 _ACEOF
14335 rm -f conftest.$ac_objext conftest$ac_exeext
14336 if { (ac_try="$ac_link"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340 esac
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_link") 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && {
14349 test -z "$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 } && test -s conftest$ac_exeext &&
14352 $as_test_x conftest$ac_exeext; then
14353 ac_cv_lib_pthreads_pthread_create=yes
14354 else
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14358 ac_cv_lib_pthreads_pthread_create=no
14361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14362 conftest$ac_exeext conftest.$ac_ext
14363 LIBS=$ac_check_lib_save_LIBS
14365 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14366 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14367 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14368 cat >>confdefs.h <<\_ACEOF
14369 #define WITH_THREAD 1
14370 _ACEOF
14372 posix_threads=yes
14373 LIBS="$LIBS -lpthreads"
14374 THREADOBJ="Python/thread.o"
14375 else
14377 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14378 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14379 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382 ac_check_lib_save_LIBS=$LIBS
14383 LIBS="-lc_r $LIBS"
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14391 /* Override any GCC internal prototype to avoid an error.
14392 Use char because int might match the return type of a GCC
14393 builtin and then its argument prototype would still apply. */
14394 #ifdef __cplusplus
14395 extern "C"
14396 #endif
14397 char pthread_create ();
14399 main ()
14401 return pthread_create ();
14403 return 0;
14405 _ACEOF
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (ac_try="$ac_link"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_link") 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest$ac_exeext &&
14423 $as_test_x conftest$ac_exeext; then
14424 ac_cv_lib_c_r_pthread_create=yes
14425 else
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 ac_cv_lib_c_r_pthread_create=no
14432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14433 conftest$ac_exeext conftest.$ac_ext
14434 LIBS=$ac_check_lib_save_LIBS
14436 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14437 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14438 if test $ac_cv_lib_c_r_pthread_create = yes; then
14439 cat >>confdefs.h <<\_ACEOF
14440 #define WITH_THREAD 1
14441 _ACEOF
14443 posix_threads=yes
14444 LIBS="$LIBS -lc_r"
14445 THREADOBJ="Python/thread.o"
14446 else
14448 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14449 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14450 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 else
14453 ac_check_lib_save_LIBS=$LIBS
14454 LIBS="-lpthread $LIBS"
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14462 /* Override any GCC internal prototype to avoid an error.
14463 Use char because int might match the return type of a GCC
14464 builtin and then its argument prototype would still apply. */
14465 #ifdef __cplusplus
14466 extern "C"
14467 #endif
14468 char __pthread_create_system ();
14470 main ()
14472 return __pthread_create_system ();
14474 return 0;
14476 _ACEOF
14477 rm -f conftest.$ac_objext conftest$ac_exeext
14478 if { (ac_try="$ac_link"
14479 case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14482 esac
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_link") 2>conftest.er1
14485 ac_status=$?
14486 grep -v '^ *+' conftest.er1 >conftest.err
14487 rm -f conftest.er1
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } && {
14491 test -z "$ac_c_werror_flag" ||
14492 test ! -s conftest.err
14493 } && test -s conftest$ac_exeext &&
14494 $as_test_x conftest$ac_exeext; then
14495 ac_cv_lib_pthread___pthread_create_system=yes
14496 else
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 ac_cv_lib_pthread___pthread_create_system=no
14503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14504 conftest$ac_exeext conftest.$ac_ext
14505 LIBS=$ac_check_lib_save_LIBS
14507 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14508 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14509 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14510 cat >>confdefs.h <<\_ACEOF
14511 #define WITH_THREAD 1
14512 _ACEOF
14514 posix_threads=yes
14515 LIBS="$LIBS -lpthread"
14516 THREADOBJ="Python/thread.o"
14517 else
14519 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14520 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14521 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524 ac_check_lib_save_LIBS=$LIBS
14525 LIBS="-lcma $LIBS"
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. */
14533 /* Override any GCC internal prototype to avoid an error.
14534 Use char because int might match the return type of a GCC
14535 builtin and then its argument prototype would still apply. */
14536 #ifdef __cplusplus
14537 extern "C"
14538 #endif
14539 char pthread_create ();
14541 main ()
14543 return pthread_create ();
14545 return 0;
14547 _ACEOF
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (ac_try="$ac_link"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553 esac
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_link") 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest$ac_exeext &&
14565 $as_test_x conftest$ac_exeext; then
14566 ac_cv_lib_cma_pthread_create=yes
14567 else
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_cv_lib_cma_pthread_create=no
14574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14578 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14579 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14580 if test $ac_cv_lib_cma_pthread_create = yes; then
14581 cat >>confdefs.h <<\_ACEOF
14582 #define WITH_THREAD 1
14583 _ACEOF
14585 posix_threads=yes
14586 LIBS="$LIBS -lcma"
14587 THREADOBJ="Python/thread.o"
14588 else
14590 USE_THREAD_MODULE="#"
14610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14611 conftest$ac_exeext conftest.$ac_ext
14621 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14622 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14623 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626 ac_check_lib_save_LIBS=$LIBS
14627 LIBS="-lmpc $LIBS"
14628 cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h. */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14635 /* Override any GCC internal prototype to avoid an error.
14636 Use char because int might match the return type of a GCC
14637 builtin and then its argument prototype would still apply. */
14638 #ifdef __cplusplus
14639 extern "C"
14640 #endif
14641 char usconfig ();
14643 main ()
14645 return usconfig ();
14647 return 0;
14649 _ACEOF
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (ac_try="$ac_link"
14652 case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14655 esac
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_link") 2>conftest.er1
14658 ac_status=$?
14659 grep -v '^ *+' conftest.er1 >conftest.err
14660 rm -f conftest.er1
14661 cat conftest.err >&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } && {
14664 test -z "$ac_c_werror_flag" ||
14665 test ! -s conftest.err
14666 } && test -s conftest$ac_exeext &&
14667 $as_test_x conftest$ac_exeext; then
14668 ac_cv_lib_mpc_usconfig=yes
14669 else
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 ac_cv_lib_mpc_usconfig=no
14676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14677 conftest$ac_exeext conftest.$ac_ext
14678 LIBS=$ac_check_lib_save_LIBS
14680 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14681 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14682 if test $ac_cv_lib_mpc_usconfig = yes; then
14683 cat >>confdefs.h <<\_ACEOF
14684 #define WITH_THREAD 1
14685 _ACEOF
14687 LIBS="$LIBS -lmpc"
14688 THREADOBJ="Python/thread.o"
14689 USE_THREAD_MODULE=""
14693 if test "$posix_threads" != "yes"; then
14694 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14695 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14696 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699 ac_check_lib_save_LIBS=$LIBS
14700 LIBS="-lthread $LIBS"
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
14711 #ifdef __cplusplus
14712 extern "C"
14713 #endif
14714 char thr_create ();
14716 main ()
14718 return thr_create ();
14720 return 0;
14722 _ACEOF
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (ac_try="$ac_link"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_link") 2>conftest.er1
14731 ac_status=$?
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } && {
14737 test -z "$ac_c_werror_flag" ||
14738 test ! -s conftest.err
14739 } && test -s conftest$ac_exeext &&
14740 $as_test_x conftest$ac_exeext; then
14741 ac_cv_lib_thread_thr_create=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_lib_thread_thr_create=no
14749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14750 conftest$ac_exeext conftest.$ac_ext
14751 LIBS=$ac_check_lib_save_LIBS
14753 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14754 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14755 if test $ac_cv_lib_thread_thr_create = yes; then
14756 cat >>confdefs.h <<\_ACEOF
14757 #define WITH_THREAD 1
14758 _ACEOF
14760 LIBS="$LIBS -lthread"
14761 THREADOBJ="Python/thread.o"
14762 USE_THREAD_MODULE=""
14767 if test "$USE_THREAD_MODULE" != "#"
14768 then
14769 # If the above checks didn't disable threads, (at least) OSF1
14770 # needs this '-threads' argument during linking.
14771 case $ac_sys_system in
14772 OSF1) LDLAST=-threads;;
14773 esac
14777 if test "$posix_threads" = "yes"; then
14778 if test "$unistd_defines_pthreads" = "no"; then
14780 cat >>confdefs.h <<\_ACEOF
14781 #define _POSIX_THREADS 1
14782 _ACEOF
14786 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14787 case $ac_sys_system/$ac_sys_release in
14788 SunOS/5.6)
14789 cat >>confdefs.h <<\_ACEOF
14790 #define HAVE_PTHREAD_DESTRUCTOR 1
14791 _ACEOF
14794 SunOS/5.8)
14795 cat >>confdefs.h <<\_ACEOF
14796 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14797 _ACEOF
14800 AIX/5)
14801 cat >>confdefs.h <<\_ACEOF
14802 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14803 _ACEOF
14806 esac
14808 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14809 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14810 if test "${ac_cv_pthread_system_supported+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 else
14813 if test "$cross_compiling" = yes; then
14814 ac_cv_pthread_system_supported=no
14815 else
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h. */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 #include <pthread.h>
14823 void *foo(void *parm) {
14824 return NULL;
14826 main() {
14827 pthread_attr_t attr;
14828 pthread_t id;
14829 if (pthread_attr_init(&attr)) exit(-1);
14830 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14831 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14832 exit(0);
14834 _ACEOF
14835 rm -f conftest$ac_exeext
14836 if { (ac_try="$ac_link"
14837 case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_link") 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14846 { (case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_try") 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 ac_cv_pthread_system_supported=yes
14856 else
14857 echo "$as_me: program exited with status $ac_status" >&5
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 ( exit $ac_status )
14862 ac_cv_pthread_system_supported=no
14864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14871 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14872 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14873 if test "$ac_cv_pthread_system_supported" = "yes"; then
14875 cat >>confdefs.h <<\_ACEOF
14876 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14877 _ACEOF
14881 for ac_func in pthread_sigmask
14883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14887 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 else
14889 cat >conftest.$ac_ext <<_ACEOF
14890 /* confdefs.h. */
14891 _ACEOF
14892 cat confdefs.h >>conftest.$ac_ext
14893 cat >>conftest.$ac_ext <<_ACEOF
14894 /* end confdefs.h. */
14895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14897 #define $ac_func innocuous_$ac_func
14899 /* System header to define __stub macros and hopefully few prototypes,
14900 which can conflict with char $ac_func (); below.
14901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14902 <limits.h> exists even on freestanding compilers. */
14904 #ifdef __STDC__
14905 # include <limits.h>
14906 #else
14907 # include <assert.h>
14908 #endif
14910 #undef $ac_func
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14915 #ifdef __cplusplus
14916 extern "C"
14917 #endif
14918 char $ac_func ();
14919 /* The GNU C library defines this for functions which it implements
14920 to always fail with ENOSYS. Some functions are actually named
14921 something starting with __ and the normal name is an alias. */
14922 #if defined __stub_$ac_func || defined __stub___$ac_func
14923 choke me
14924 #endif
14927 main ()
14929 return $ac_func ();
14931 return 0;
14933 _ACEOF
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (ac_try="$ac_link"
14936 case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14939 esac
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941 (eval "$ac_link") 2>conftest.er1
14942 ac_status=$?
14943 grep -v '^ *+' conftest.er1 >conftest.err
14944 rm -f conftest.er1
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } && {
14948 test -z "$ac_c_werror_flag" ||
14949 test ! -s conftest.err
14950 } && test -s conftest$ac_exeext &&
14951 $as_test_x conftest$ac_exeext; then
14952 eval "$as_ac_var=yes"
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14957 eval "$as_ac_var=no"
14960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14961 conftest$ac_exeext conftest.$ac_ext
14963 ac_res=`eval echo '${'$as_ac_var'}'`
14964 { echo "$as_me:$LINENO: result: $ac_res" >&5
14965 echo "${ECHO_T}$ac_res" >&6; }
14966 if test `eval echo '${'$as_ac_var'}'` = yes; then
14967 cat >>confdefs.h <<_ACEOF
14968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14969 _ACEOF
14970 case $ac_sys_system in
14971 CYGWIN*)
14973 cat >>confdefs.h <<\_ACEOF
14974 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14975 _ACEOF
14978 esac
14980 done
14985 # Check for enable-ipv6
14988 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14989 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14990 # Check whether --enable-ipv6 was given.
14991 if test "${enable_ipv6+set}" = set; then
14992 enableval=$enable_ipv6; case "$enableval" in
14994 { echo "$as_me:$LINENO: result: no" >&5
14995 echo "${ECHO_T}no" >&6; }
14996 ipv6=no
14998 *) { echo "$as_me:$LINENO: result: yes" >&5
14999 echo "${ECHO_T}yes" >&6; }
15000 cat >>confdefs.h <<\_ACEOF
15001 #define ENABLE_IPV6 1
15002 _ACEOF
15004 ipv6=yes
15006 esac
15007 else
15009 if test "$cross_compiling" = yes; then
15010 { echo "$as_me:$LINENO: result: no" >&5
15011 echo "${ECHO_T}no" >&6; }
15012 ipv6=no
15014 else
15015 cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h. */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15021 /* AF_INET6 available check */
15022 #include <sys/types.h>
15023 #include <sys/socket.h>
15024 main()
15026 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15027 exit(1);
15028 else
15029 exit(0);
15032 _ACEOF
15033 rm -f 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>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15044 { (case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_try") 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 { echo "$as_me:$LINENO: result: yes" >&5
15054 echo "${ECHO_T}yes" >&6; }
15055 ipv6=yes
15056 else
15057 echo "$as_me: program exited with status $ac_status" >&5
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 ( exit $ac_status )
15062 { echo "$as_me:$LINENO: result: no" >&5
15063 echo "${ECHO_T}no" >&6; }
15064 ipv6=no
15066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15071 if test "$ipv6" = "yes"; then
15072 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15073 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <sys/types.h>
15081 #include <netinet/in.h>
15083 main ()
15085 struct sockaddr_in6 x;
15086 x.sin6_scope_id;
15088 return 0;
15090 _ACEOF
15091 rm -f conftest.$ac_objext
15092 if { (ac_try="$ac_compile"
15093 case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_compile") 2>conftest.er1
15099 ac_status=$?
15100 grep -v '^ *+' conftest.er1 >conftest.err
15101 rm -f conftest.er1
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } && {
15105 test -z "$ac_c_werror_flag" ||
15106 test ! -s conftest.err
15107 } && test -s conftest.$ac_objext; then
15108 { echo "$as_me:$LINENO: result: yes" >&5
15109 echo "${ECHO_T}yes" >&6; }
15110 ipv6=yes
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 { echo "$as_me:$LINENO: result: no" >&5
15116 echo "${ECHO_T}no" >&6; }
15117 ipv6=no
15120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15123 if test "$ipv6" = "yes"; then
15124 cat >>confdefs.h <<\_ACEOF
15125 #define ENABLE_IPV6 1
15126 _ACEOF
15133 ipv6type=unknown
15134 ipv6lib=none
15135 ipv6trylibc=no
15137 if test "$ipv6" = "yes"; then
15138 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15139 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15140 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15142 case $i in
15143 inria)
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h. */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15151 #include <netinet/in.h>
15152 #ifdef IPV6_INRIA_VERSION
15154 #endif
15155 _ACEOF
15156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15157 $EGREP "yes" >/dev/null 2>&1; then
15158 ipv6type=$i
15160 rm -f conftest*
15163 kame)
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15171 #include <netinet/in.h>
15172 #ifdef __KAME__
15174 #endif
15175 _ACEOF
15176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15177 $EGREP "yes" >/dev/null 2>&1; then
15178 ipv6type=$i;
15179 ipv6lib=inet6
15180 ipv6libdir=/usr/local/v6/lib
15181 ipv6trylibc=yes
15183 rm -f conftest*
15186 linux-glibc)
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 #include <features.h>
15195 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15197 #endif
15198 _ACEOF
15199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15200 $EGREP "yes" >/dev/null 2>&1; then
15201 ipv6type=$i;
15202 ipv6trylibc=yes
15204 rm -f conftest*
15207 linux-inet6)
15208 if test -d /usr/inet6; then
15209 ipv6type=$i
15210 ipv6lib=inet6
15211 ipv6libdir=/usr/inet6/lib
15212 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15215 solaris)
15216 if test -f /etc/netconfig; then
15217 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15218 ipv6type=$i
15219 ipv6trylibc=yes
15223 toshiba)
15224 cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h. */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15231 #include <sys/param.h>
15232 #ifdef _TOSHIBA_INET6
15234 #endif
15235 _ACEOF
15236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15237 $EGREP "yes" >/dev/null 2>&1; then
15238 ipv6type=$i;
15239 ipv6lib=inet6;
15240 ipv6libdir=/usr/local/v6/lib
15242 rm -f conftest*
15245 v6d)
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15253 #include </usr/local/v6/include/sys/v6config.h>
15254 #ifdef __V6D__
15256 #endif
15257 _ACEOF
15258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15259 $EGREP "yes" >/dev/null 2>&1; then
15260 ipv6type=$i;
15261 ipv6lib=v6;
15262 ipv6libdir=/usr/local/v6/lib;
15263 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15265 rm -f conftest*
15268 zeta)
15269 cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h. */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15276 #include <sys/param.h>
15277 #ifdef _ZETA_MINAMI_INET6
15279 #endif
15280 _ACEOF
15281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15282 $EGREP "yes" >/dev/null 2>&1; then
15283 ipv6type=$i;
15284 ipv6lib=inet6;
15285 ipv6libdir=/usr/local/v6/lib
15287 rm -f conftest*
15290 esac
15291 if test "$ipv6type" != "unknown"; then
15292 break
15294 done
15295 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15296 echo "${ECHO_T}$ipv6type" >&6; }
15299 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15300 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15301 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15302 echo "using lib$ipv6lib"
15303 else
15304 if test $ipv6trylibc = "yes"; then
15305 echo "using libc"
15306 else
15307 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15308 echo "You need to fetch lib$ipv6lib.a from appropriate"
15309 echo 'ipv6 kit and compile beforehand.'
15310 exit 1
15315 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15316 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15317 cat >conftest.$ac_ext <<_ACEOF
15318 /* confdefs.h. */
15319 _ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 #include <Carbon/Carbon.h>
15325 main ()
15327 FSIORefNum fRef = 0
15329 return 0;
15331 _ACEOF
15332 rm -f conftest.$ac_objext
15333 if { (ac_try="$ac_compile"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_compile") 2>conftest.er1
15340 ac_status=$?
15341 grep -v '^ *+' conftest.er1 >conftest.err
15342 rm -f conftest.er1
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest.$ac_objext; then
15350 cat >>confdefs.h <<\_ACEOF
15351 #define HAVE_OSX105_SDK 1
15352 _ACEOF
15354 { echo "$as_me:$LINENO: result: yes" >&5
15355 echo "${ECHO_T}yes" >&6; }
15356 else
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 { echo "$as_me:$LINENO: result: no" >&5
15361 echo "${ECHO_T}no" >&6; }
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 # Check for --with-doc-strings
15368 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15369 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15371 # Check whether --with-doc-strings was given.
15372 if test "${with_doc_strings+set}" = set; then
15373 withval=$with_doc_strings;
15377 if test -z "$with_doc_strings"
15378 then with_doc_strings="yes"
15380 if test "$with_doc_strings" != "no"
15381 then
15383 cat >>confdefs.h <<\_ACEOF
15384 #define WITH_DOC_STRINGS 1
15385 _ACEOF
15388 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15389 echo "${ECHO_T}$with_doc_strings" >&6; }
15391 # Check for Python-specific malloc support
15392 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15393 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15395 # Check whether --with-tsc was given.
15396 if test "${with_tsc+set}" = set; then
15397 withval=$with_tsc;
15398 if test "$withval" != no
15399 then
15401 cat >>confdefs.h <<\_ACEOF
15402 #define WITH_TSC 1
15403 _ACEOF
15405 { echo "$as_me:$LINENO: result: yes" >&5
15406 echo "${ECHO_T}yes" >&6; }
15407 else { echo "$as_me:$LINENO: result: no" >&5
15408 echo "${ECHO_T}no" >&6; }
15410 else
15411 { echo "$as_me:$LINENO: result: no" >&5
15412 echo "${ECHO_T}no" >&6; }
15416 # Check for Python-specific malloc support
15417 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15418 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15420 # Check whether --with-pymalloc was given.
15421 if test "${with_pymalloc+set}" = set; then
15422 withval=$with_pymalloc;
15426 if test -z "$with_pymalloc"
15427 then with_pymalloc="yes"
15429 if test "$with_pymalloc" != "no"
15430 then
15432 cat >>confdefs.h <<\_ACEOF
15433 #define WITH_PYMALLOC 1
15434 _ACEOF
15437 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15438 echo "${ECHO_T}$with_pymalloc" >&6; }
15440 # Check for --with-wctype-functions
15441 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15442 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15444 # Check whether --with-wctype-functions was given.
15445 if test "${with_wctype_functions+set}" = set; then
15446 withval=$with_wctype_functions;
15447 if test "$withval" != no
15448 then
15450 cat >>confdefs.h <<\_ACEOF
15451 #define WANT_WCTYPE_FUNCTIONS 1
15452 _ACEOF
15454 { echo "$as_me:$LINENO: result: yes" >&5
15455 echo "${ECHO_T}yes" >&6; }
15456 else { echo "$as_me:$LINENO: result: no" >&5
15457 echo "${ECHO_T}no" >&6; }
15459 else
15460 { echo "$as_me:$LINENO: result: no" >&5
15461 echo "${ECHO_T}no" >&6; }
15465 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15467 DLINCLDIR=.
15469 # the dlopen() function means we might want to use dynload_shlib.o. some
15470 # platforms, such as AIX, have dlopen(), but don't want to use it.
15472 for ac_func in dlopen
15474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15479 else
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h. */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15488 #define $ac_func innocuous_$ac_func
15490 /* System header to define __stub macros and hopefully few prototypes,
15491 which can conflict with char $ac_func (); below.
15492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15493 <limits.h> exists even on freestanding compilers. */
15495 #ifdef __STDC__
15496 # include <limits.h>
15497 #else
15498 # include <assert.h>
15499 #endif
15501 #undef $ac_func
15503 /* Override any GCC internal prototype to avoid an error.
15504 Use char because int might match the return type of a GCC
15505 builtin and then its argument prototype would still apply. */
15506 #ifdef __cplusplus
15507 extern "C"
15508 #endif
15509 char $ac_func ();
15510 /* The GNU C library defines this for functions which it implements
15511 to always fail with ENOSYS. Some functions are actually named
15512 something starting with __ and the normal name is an alias. */
15513 #if defined __stub_$ac_func || defined __stub___$ac_func
15514 choke me
15515 #endif
15518 main ()
15520 return $ac_func ();
15522 return 0;
15524 _ACEOF
15525 rm -f conftest.$ac_objext conftest$ac_exeext
15526 if { (ac_try="$ac_link"
15527 case "(($ac_try" in
15528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529 *) ac_try_echo=$ac_try;;
15530 esac
15531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532 (eval "$ac_link") 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } && {
15539 test -z "$ac_c_werror_flag" ||
15540 test ! -s conftest.err
15541 } && test -s conftest$ac_exeext &&
15542 $as_test_x conftest$ac_exeext; then
15543 eval "$as_ac_var=yes"
15544 else
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 eval "$as_ac_var=no"
15551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15552 conftest$ac_exeext conftest.$ac_ext
15554 ac_res=`eval echo '${'$as_ac_var'}'`
15555 { echo "$as_me:$LINENO: result: $ac_res" >&5
15556 echo "${ECHO_T}$ac_res" >&6; }
15557 if test `eval echo '${'$as_ac_var'}'` = yes; then
15558 cat >>confdefs.h <<_ACEOF
15559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15560 _ACEOF
15563 done
15566 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15567 # loading of modules.
15569 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15570 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15571 if test -z "$DYNLOADFILE"
15572 then
15573 case $ac_sys_system/$ac_sys_release in
15574 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15575 if test "$ac_cv_func_dlopen" = yes
15576 then DYNLOADFILE="dynload_shlib.o"
15577 else DYNLOADFILE="dynload_aix.o"
15580 BeOS*) DYNLOADFILE="dynload_beos.o";;
15581 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15582 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15583 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15584 atheos*) DYNLOADFILE="dynload_atheos.o";;
15586 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15587 # out any dynamic loading
15588 if test "$ac_cv_func_dlopen" = yes
15589 then DYNLOADFILE="dynload_shlib.o"
15590 else DYNLOADFILE="dynload_stub.o"
15593 esac
15595 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15596 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15597 if test "$DYNLOADFILE" != "dynload_stub.o"
15598 then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define HAVE_DYNAMIC_LOADING 1
15602 _ACEOF
15606 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15609 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15610 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15611 if test -z "$MACHDEP_OBJS"
15612 then
15613 MACHDEP_OBJS=$extra_machdep_objs
15614 else
15615 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15617 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15618 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15620 # checks for library functions
15702 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
15703 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15704 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15705 getpriority getpwent getspnam getspent getsid getwd \
15706 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15707 mremap nice pathconf pause plock poll pthread_init \
15708 putenv readlink realpath \
15709 select setegid seteuid setgid \
15710 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15711 sigaction siginterrupt sigrelse strftime \
15712 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15713 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721 cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h. */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15729 #define $ac_func innocuous_$ac_func
15731 /* System header to define __stub macros and hopefully few prototypes,
15732 which can conflict with char $ac_func (); below.
15733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15734 <limits.h> exists even on freestanding compilers. */
15736 #ifdef __STDC__
15737 # include <limits.h>
15738 #else
15739 # include <assert.h>
15740 #endif
15742 #undef $ac_func
15744 /* Override any GCC internal prototype to avoid an error.
15745 Use char because int might match the return type of a GCC
15746 builtin and then its argument prototype would still apply. */
15747 #ifdef __cplusplus
15748 extern "C"
15749 #endif
15750 char $ac_func ();
15751 /* The GNU C library defines this for functions which it implements
15752 to always fail with ENOSYS. Some functions are actually named
15753 something starting with __ and the normal name is an alias. */
15754 #if defined __stub_$ac_func || defined __stub___$ac_func
15755 choke me
15756 #endif
15759 main ()
15761 return $ac_func ();
15763 return 0;
15765 _ACEOF
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (ac_try="$ac_link"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_link") 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest$ac_exeext &&
15783 $as_test_x conftest$ac_exeext; then
15784 eval "$as_ac_var=yes"
15785 else
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 eval "$as_ac_var=no"
15792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15793 conftest$ac_exeext conftest.$ac_ext
15795 ac_res=`eval echo '${'$as_ac_var'}'`
15796 { echo "$as_me:$LINENO: result: $ac_res" >&5
15797 echo "${ECHO_T}$ac_res" >&6; }
15798 if test `eval echo '${'$as_ac_var'}'` = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15801 _ACEOF
15804 done
15807 # For some functions, having a definition is not sufficient, since
15808 # we want to take their address.
15809 { echo "$as_me:$LINENO: checking for chroot" >&5
15810 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
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. */
15817 #include <unistd.h>
15819 main ()
15821 void *x=chroot
15823 return 0;
15825 _ACEOF
15826 rm -f conftest.$ac_objext
15827 if { (ac_try="$ac_compile"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_compile") 2>conftest.er1
15834 ac_status=$?
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } && {
15840 test -z "$ac_c_werror_flag" ||
15841 test ! -s conftest.err
15842 } && test -s conftest.$ac_objext; then
15844 cat >>confdefs.h <<\_ACEOF
15845 #define HAVE_CHROOT 1
15846 _ACEOF
15848 { echo "$as_me:$LINENO: result: yes" >&5
15849 echo "${ECHO_T}yes" >&6; }
15850 else
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15854 { echo "$as_me:$LINENO: result: no" >&5
15855 echo "${ECHO_T}no" >&6; }
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 { echo "$as_me:$LINENO: checking for link" >&5
15861 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15862 cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h. */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15868 #include <unistd.h>
15870 main ()
15872 void *x=link
15874 return 0;
15876 _ACEOF
15877 rm -f conftest.$ac_objext
15878 if { (ac_try="$ac_compile"
15879 case "(($ac_try" in
15880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15882 esac
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884 (eval "$ac_compile") 2>conftest.er1
15885 ac_status=$?
15886 grep -v '^ *+' conftest.er1 >conftest.err
15887 rm -f conftest.er1
15888 cat conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } && {
15891 test -z "$ac_c_werror_flag" ||
15892 test ! -s conftest.err
15893 } && test -s conftest.$ac_objext; then
15895 cat >>confdefs.h <<\_ACEOF
15896 #define HAVE_LINK 1
15897 _ACEOF
15899 { echo "$as_me:$LINENO: result: yes" >&5
15900 echo "${ECHO_T}yes" >&6; }
15901 else
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 { echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6; }
15910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911 { echo "$as_me:$LINENO: checking for symlink" >&5
15912 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15913 cat >conftest.$ac_ext <<_ACEOF
15914 /* confdefs.h. */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 #include <unistd.h>
15921 main ()
15923 void *x=symlink
15925 return 0;
15927 _ACEOF
15928 rm -f conftest.$ac_objext
15929 if { (ac_try="$ac_compile"
15930 case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15933 esac
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_compile") 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } && {
15942 test -z "$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15944 } && test -s conftest.$ac_objext; then
15946 cat >>confdefs.h <<\_ACEOF
15947 #define HAVE_SYMLINK 1
15948 _ACEOF
15950 { echo "$as_me:$LINENO: result: yes" >&5
15951 echo "${ECHO_T}yes" >&6; }
15952 else
15953 echo "$as_me: failed program was:" >&5
15954 sed 's/^/| /' conftest.$ac_ext >&5
15956 { echo "$as_me:$LINENO: result: no" >&5
15957 echo "${ECHO_T}no" >&6; }
15961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962 { echo "$as_me:$LINENO: checking for fchdir" >&5
15963 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15964 cat >conftest.$ac_ext <<_ACEOF
15965 /* confdefs.h. */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15970 #include <unistd.h>
15972 main ()
15974 void *x=fchdir
15976 return 0;
15978 _ACEOF
15979 rm -f conftest.$ac_objext
15980 if { (ac_try="$ac_compile"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_compile") 2>conftest.er1
15987 ac_status=$?
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest.$ac_objext; then
15997 cat >>confdefs.h <<\_ACEOF
15998 #define HAVE_FCHDIR 1
15999 _ACEOF
16001 { echo "$as_me:$LINENO: result: yes" >&5
16002 echo "${ECHO_T}yes" >&6; }
16003 else
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 { echo "$as_me:$LINENO: result: no" >&5
16008 echo "${ECHO_T}no" >&6; }
16012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16013 { echo "$as_me:$LINENO: checking for fsync" >&5
16014 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16015 cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h. */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 #include <unistd.h>
16023 main ()
16025 void *x=fsync
16027 return 0;
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (ac_try="$ac_compile"
16032 case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16035 esac
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_compile") 2>conftest.er1
16038 ac_status=$?
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && {
16044 test -z "$ac_c_werror_flag" ||
16045 test ! -s conftest.err
16046 } && test -s conftest.$ac_objext; then
16048 cat >>confdefs.h <<\_ACEOF
16049 #define HAVE_FSYNC 1
16050 _ACEOF
16052 { echo "$as_me:$LINENO: result: yes" >&5
16053 echo "${ECHO_T}yes" >&6; }
16054 else
16055 echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16058 { echo "$as_me:$LINENO: result: no" >&5
16059 echo "${ECHO_T}no" >&6; }
16063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16064 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16065 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16066 cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h. */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 #include <unistd.h>
16074 main ()
16076 void *x=fdatasync
16078 return 0;
16080 _ACEOF
16081 rm -f conftest.$ac_objext
16082 if { (ac_try="$ac_compile"
16083 case "(($ac_try" in
16084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16086 esac
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_compile") 2>conftest.er1
16089 ac_status=$?
16090 grep -v '^ *+' conftest.er1 >conftest.err
16091 rm -f conftest.er1
16092 cat conftest.err >&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } && {
16095 test -z "$ac_c_werror_flag" ||
16096 test ! -s conftest.err
16097 } && test -s conftest.$ac_objext; then
16099 cat >>confdefs.h <<\_ACEOF
16100 #define HAVE_FDATASYNC 1
16101 _ACEOF
16103 { echo "$as_me:$LINENO: result: yes" >&5
16104 echo "${ECHO_T}yes" >&6; }
16105 else
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 { echo "$as_me:$LINENO: result: no" >&5
16110 echo "${ECHO_T}no" >&6; }
16114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115 { echo "$as_me:$LINENO: checking for epoll" >&5
16116 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16117 cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h. */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 #include <sys/epoll.h>
16125 main ()
16127 void *x=epoll_create
16129 return 0;
16131 _ACEOF
16132 rm -f conftest.$ac_objext
16133 if { (ac_try="$ac_compile"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137 esac
16138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_compile") 2>conftest.er1
16140 ac_status=$?
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } && {
16146 test -z "$ac_c_werror_flag" ||
16147 test ! -s conftest.err
16148 } && test -s conftest.$ac_objext; then
16150 cat >>confdefs.h <<\_ACEOF
16151 #define HAVE_EPOLL 1
16152 _ACEOF
16154 { echo "$as_me:$LINENO: result: yes" >&5
16155 echo "${ECHO_T}yes" >&6; }
16156 else
16157 echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.$ac_ext >&5
16160 { echo "$as_me:$LINENO: result: no" >&5
16161 echo "${ECHO_T}no" >&6; }
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 { echo "$as_me:$LINENO: checking for kqueue" >&5
16167 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16168 cat >conftest.$ac_ext <<_ACEOF
16169 /* confdefs.h. */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16175 #include <sys/types.h>
16176 #include <sys/event.h>
16179 main ()
16181 int x=kqueue()
16183 return 0;
16185 _ACEOF
16186 rm -f conftest.$ac_objext
16187 if { (ac_try="$ac_compile"
16188 case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16191 esac
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_compile") 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 } && test -s conftest.$ac_objext; then
16204 cat >>confdefs.h <<\_ACEOF
16205 #define HAVE_KQUEUE 1
16206 _ACEOF
16208 { echo "$as_me:$LINENO: result: yes" >&5
16209 echo "${ECHO_T}yes" >&6; }
16210 else
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 { echo "$as_me:$LINENO: result: no" >&5
16215 echo "${ECHO_T}no" >&6; }
16219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16220 # On some systems (eg. FreeBSD 5), we would find a definition of the
16221 # functions ctermid_r, setgroups in the library, but no prototype
16222 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16223 # address to avoid compiler warnings and potential miscompilations
16224 # because of the missing prototypes.
16226 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16227 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16228 cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h. */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16235 #include "confdefs.h"
16236 #include <stdio.h>
16239 main ()
16241 void* p = ctermid_r
16243 return 0;
16245 _ACEOF
16246 rm -f conftest.$ac_objext
16247 if { (ac_try="$ac_compile"
16248 case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16251 esac
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_compile") 2>conftest.er1
16254 ac_status=$?
16255 grep -v '^ *+' conftest.er1 >conftest.err
16256 rm -f conftest.er1
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } && {
16260 test -z "$ac_c_werror_flag" ||
16261 test ! -s conftest.err
16262 } && test -s conftest.$ac_objext; then
16264 cat >>confdefs.h <<\_ACEOF
16265 #define HAVE_CTERMID_R 1
16266 _ACEOF
16268 { echo "$as_me:$LINENO: result: yes" >&5
16269 echo "${ECHO_T}yes" >&6; }
16270 else
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16274 { echo "$as_me:$LINENO: result: no" >&5
16275 echo "${ECHO_T}no" >&6; }
16279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16281 { echo "$as_me:$LINENO: checking for flock" >&5
16282 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16283 cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h. */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16290 #include "confdefs.h"
16291 #include <sys/file.h>
16294 main ()
16296 void* p = flock
16298 return 0;
16300 _ACEOF
16301 rm -f conftest.$ac_objext
16302 if { (ac_try="$ac_compile"
16303 case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_compile") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } && {
16315 test -z "$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 } && test -s conftest.$ac_objext; then
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_FLOCK 1
16321 _ACEOF
16323 { echo "$as_me:$LINENO: result: yes" >&5
16324 echo "${ECHO_T}yes" >&6; }
16325 else
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 { echo "$as_me:$LINENO: result: no" >&5
16330 echo "${ECHO_T}no" >&6; }
16334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16337 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h. */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16345 #include "confdefs.h"
16346 #include <unistd.h>
16349 main ()
16351 void* p = getpagesize
16353 return 0;
16355 _ACEOF
16356 rm -f conftest.$ac_objext
16357 if { (ac_try="$ac_compile"
16358 case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16361 esac
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_compile") 2>conftest.er1
16364 ac_status=$?
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } && {
16370 test -z "$ac_c_werror_flag" ||
16371 test ! -s conftest.err
16372 } && test -s conftest.$ac_objext; then
16374 cat >>confdefs.h <<\_ACEOF
16375 #define HAVE_GETPAGESIZE 1
16376 _ACEOF
16378 { echo "$as_me:$LINENO: result: yes" >&5
16379 echo "${ECHO_T}yes" >&6; }
16380 else
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 { echo "$as_me:$LINENO: result: no" >&5
16385 echo "${ECHO_T}no" >&6; }
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 for ac_prog in true
16393 # Extract the first word of "$ac_prog", so it can be a program name with args.
16394 set dummy $ac_prog; ac_word=$2
16395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16397 if test "${ac_cv_prog_TRUE+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400 if test -n "$TRUE"; then
16401 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16402 else
16403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16404 for as_dir in $PATH
16406 IFS=$as_save_IFS
16407 test -z "$as_dir" && as_dir=.
16408 for ac_exec_ext in '' $ac_executable_extensions; do
16409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16410 ac_cv_prog_TRUE="$ac_prog"
16411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16412 break 2
16414 done
16415 done
16416 IFS=$as_save_IFS
16420 TRUE=$ac_cv_prog_TRUE
16421 if test -n "$TRUE"; then
16422 { echo "$as_me:$LINENO: result: $TRUE" >&5
16423 echo "${ECHO_T}$TRUE" >&6; }
16424 else
16425 { echo "$as_me:$LINENO: result: no" >&5
16426 echo "${ECHO_T}no" >&6; }
16430 test -n "$TRUE" && break
16431 done
16432 test -n "$TRUE" || TRUE="/bin/true"
16435 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16436 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16437 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440 ac_check_lib_save_LIBS=$LIBS
16441 LIBS="-lc $LIBS"
16442 cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h. */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16449 /* Override any GCC internal prototype to avoid an error.
16450 Use char because int might match the return type of a GCC
16451 builtin and then its argument prototype would still apply. */
16452 #ifdef __cplusplus
16453 extern "C"
16454 #endif
16455 char inet_aton ();
16457 main ()
16459 return inet_aton ();
16461 return 0;
16463 _ACEOF
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_link") 2>conftest.er1
16472 ac_status=$?
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } && {
16478 test -z "$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 } && test -s conftest$ac_exeext &&
16481 $as_test_x conftest$ac_exeext; then
16482 ac_cv_lib_c_inet_aton=yes
16483 else
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ac_cv_lib_c_inet_aton=no
16490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16491 conftest$ac_exeext conftest.$ac_ext
16492 LIBS=$ac_check_lib_save_LIBS
16494 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16495 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16496 if test $ac_cv_lib_c_inet_aton = yes; then
16497 $ac_cv_prog_TRUE
16498 else
16500 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16501 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16502 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lresolv $LIBS"
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16514 /* Override any GCC internal prototype to avoid an error.
16515 Use char because int might match the return type of a GCC
16516 builtin and then its argument prototype would still apply. */
16517 #ifdef __cplusplus
16518 extern "C"
16519 #endif
16520 char inet_aton ();
16522 main ()
16524 return inet_aton ();
16526 return 0;
16528 _ACEOF
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (ac_try="$ac_link"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_link") 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest$ac_exeext &&
16546 $as_test_x conftest$ac_exeext; then
16547 ac_cv_lib_resolv_inet_aton=yes
16548 else
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16552 ac_cv_lib_resolv_inet_aton=no
16555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16556 conftest$ac_exeext conftest.$ac_ext
16557 LIBS=$ac_check_lib_save_LIBS
16559 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16560 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16561 if test $ac_cv_lib_resolv_inet_aton = yes; then
16562 cat >>confdefs.h <<_ACEOF
16563 #define HAVE_LIBRESOLV 1
16564 _ACEOF
16566 LIBS="-lresolv $LIBS"
16574 # On Tru64, chflags seems to be present, but calling it will
16575 # exit Python
16576 { echo "$as_me:$LINENO: checking for chflags" >&5
16577 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16578 if test "$cross_compiling" = yes; then
16579 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16580 See \`config.log' for more details." >&5
16581 echo "$as_me: error: cannot run test program while cross compiling
16582 See \`config.log' for more details." >&2;}
16583 { (exit 1); exit 1; }; }
16584 else
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16592 #include <sys/stat.h>
16593 #include <unistd.h>
16594 int main(int argc, char*argv[])
16596 if(chflags(argv[0], 0) != 0)
16597 return 1;
16598 return 0;
16601 _ACEOF
16602 rm -f conftest$ac_exeext
16603 if { (ac_try="$ac_link"
16604 case "(($ac_try" in
16605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16607 esac
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_link") 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16613 { (case "(($ac_try" in
16614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615 *) ac_try_echo=$ac_try;;
16616 esac
16617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16618 (eval "$ac_try") 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16623 cat >>confdefs.h <<\_ACEOF
16624 #define HAVE_CHFLAGS 1
16625 _ACEOF
16627 { echo "$as_me:$LINENO: result: yes" >&5
16628 echo "${ECHO_T}yes" >&6; }
16629 else
16630 echo "$as_me: program exited with status $ac_status" >&5
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16634 ( exit $ac_status )
16635 { echo "$as_me:$LINENO: result: no" >&5
16636 echo "${ECHO_T}no" >&6; }
16639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16644 { echo "$as_me:$LINENO: checking for lchflags" >&5
16645 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
16646 if test "$cross_compiling" = yes; then
16647 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16648 See \`config.log' for more details." >&5
16649 echo "$as_me: error: cannot run test program while cross compiling
16650 See \`config.log' for more details." >&2;}
16651 { (exit 1); exit 1; }; }
16652 else
16653 cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h. */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16660 #include <sys/stat.h>
16661 #include <unistd.h>
16662 int main(int argc, char*argv[])
16664 if(lchflags(argv[0], 0) != 0)
16665 return 1;
16666 return 0;
16669 _ACEOF
16670 rm -f conftest$ac_exeext
16671 if { (ac_try="$ac_link"
16672 case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16675 esac
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_link") 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16681 { (case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_try") 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16691 cat >>confdefs.h <<\_ACEOF
16692 #define HAVE_LCHFLAGS 1
16693 _ACEOF
16695 { echo "$as_me:$LINENO: result: yes" >&5
16696 echo "${ECHO_T}yes" >&6; }
16697 else
16698 echo "$as_me: program exited with status $ac_status" >&5
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 ( exit $ac_status )
16703 { echo "$as_me:$LINENO: result: no" >&5
16704 echo "${ECHO_T}no" >&6; }
16707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16712 case $ac_sys_system/$ac_sys_release in
16713 Darwin/*)
16714 _CUR_CFLAGS="${CFLAGS}"
16715 _CUR_LDFLAGS="${LDFLAGS}"
16716 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16717 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16719 esac
16721 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16722 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16723 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16725 else
16726 ac_check_lib_save_LIBS=$LIBS
16727 LIBS="-lz $LIBS"
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16735 /* Override any GCC internal prototype to avoid an error.
16736 Use char because int might match the return type of a GCC
16737 builtin and then its argument prototype would still apply. */
16738 #ifdef __cplusplus
16739 extern "C"
16740 #endif
16741 char inflateCopy ();
16743 main ()
16745 return inflateCopy ();
16747 return 0;
16749 _ACEOF
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (ac_try="$ac_link"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_link") 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } && {
16764 test -z "$ac_c_werror_flag" ||
16765 test ! -s conftest.err
16766 } && test -s conftest$ac_exeext &&
16767 $as_test_x conftest$ac_exeext; then
16768 ac_cv_lib_z_inflateCopy=yes
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_cv_lib_z_inflateCopy=no
16776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16777 conftest$ac_exeext conftest.$ac_ext
16778 LIBS=$ac_check_lib_save_LIBS
16780 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16781 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16782 if test $ac_cv_lib_z_inflateCopy = yes; then
16784 cat >>confdefs.h <<\_ACEOF
16785 #define HAVE_ZLIB_COPY 1
16786 _ACEOF
16791 case $ac_sys_system/$ac_sys_release in
16792 Darwin/*)
16793 CFLAGS="${_CUR_CFLAGS}"
16794 LDFLAGS="${_CUR_LDFLAGS}"
16796 esac
16798 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16799 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h. */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16807 #include "confdefs.h"
16808 #include <netdb.h>
16811 main ()
16813 void* p = hstrerror; hstrerror(0)
16815 return 0;
16817 _ACEOF
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_link") 2>conftest.er1
16826 ac_status=$?
16827 grep -v '^ *+' conftest.er1 >conftest.err
16828 rm -f conftest.er1
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } && {
16832 test -z "$ac_c_werror_flag" ||
16833 test ! -s conftest.err
16834 } && test -s conftest$ac_exeext &&
16835 $as_test_x conftest$ac_exeext; then
16837 cat >>confdefs.h <<\_ACEOF
16838 #define HAVE_HSTRERROR 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_ipa8_conftest.oo \
16853 conftest$ac_exeext conftest.$ac_ext
16855 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16856 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16857 cat >conftest.$ac_ext <<_ACEOF
16858 /* confdefs.h. */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16864 #include "confdefs.h"
16865 #include <sys/types.h>
16866 #include <sys/socket.h>
16867 #include <netinet/in.h>
16868 #include <arpa/inet.h>
16871 main ()
16873 void* p = inet_aton;inet_aton(0,0)
16875 return 0;
16877 _ACEOF
16878 rm -f conftest.$ac_objext conftest$ac_exeext
16879 if { (ac_try="$ac_link"
16880 case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16883 esac
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_link") 2>conftest.er1
16886 ac_status=$?
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext &&
16895 $as_test_x conftest$ac_exeext; then
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_INET_ATON 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_ipa8_conftest.oo \
16913 conftest$ac_exeext conftest.$ac_ext
16915 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16916 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16917 cat >conftest.$ac_ext <<_ACEOF
16918 /* confdefs.h. */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16924 #include "confdefs.h"
16925 #include <sys/types.h>
16926 #include <sys/socket.h>
16927 #include <netinet/in.h>
16928 #include <arpa/inet.h>
16931 main ()
16933 void* p = inet_pton
16935 return 0;
16937 _ACEOF
16938 rm -f conftest.$ac_objext
16939 if { (ac_try="$ac_compile"
16940 case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16943 esac
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_compile") 2>conftest.er1
16946 ac_status=$?
16947 grep -v '^ *+' conftest.er1 >conftest.err
16948 rm -f conftest.er1
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } && {
16952 test -z "$ac_c_werror_flag" ||
16953 test ! -s conftest.err
16954 } && test -s conftest.$ac_objext; then
16956 cat >>confdefs.h <<\_ACEOF
16957 #define HAVE_INET_PTON 1
16958 _ACEOF
16960 { echo "$as_me:$LINENO: result: yes" >&5
16961 echo "${ECHO_T}yes" >&6; }
16962 else
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 { echo "$as_me:$LINENO: result: no" >&5
16967 echo "${ECHO_T}no" >&6; }
16971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16973 # On some systems, setgroups is in unistd.h, on others, in grp.h
16974 { echo "$as_me:$LINENO: checking for setgroups" >&5
16975 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h. */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16983 #include "confdefs.h"
16984 #include <unistd.h>
16985 #ifdef HAVE_GRP_H
16986 #include <grp.h>
16987 #endif
16990 main ()
16992 void* p = setgroups
16994 return 0;
16996 _ACEOF
16997 rm -f conftest.$ac_objext
16998 if { (ac_try="$ac_compile"
16999 case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002 esac
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_compile") 2>conftest.er1
17005 ac_status=$?
17006 grep -v '^ *+' conftest.er1 >conftest.err
17007 rm -f conftest.er1
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } && {
17011 test -z "$ac_c_werror_flag" ||
17012 test ! -s conftest.err
17013 } && test -s conftest.$ac_objext; then
17015 cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_SETGROUPS 1
17017 _ACEOF
17019 { echo "$as_me:$LINENO: result: yes" >&5
17020 echo "${ECHO_T}yes" >&6; }
17021 else
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 { echo "$as_me:$LINENO: result: no" >&5
17026 echo "${ECHO_T}no" >&6; }
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 # check for openpty and forkpty
17035 for ac_func in openpty
17037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 else
17043 cat >conftest.$ac_ext <<_ACEOF
17044 /* confdefs.h. */
17045 _ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17051 #define $ac_func innocuous_$ac_func
17053 /* System header to define __stub macros and hopefully few prototypes,
17054 which can conflict with char $ac_func (); below.
17055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17056 <limits.h> exists even on freestanding compilers. */
17058 #ifdef __STDC__
17059 # include <limits.h>
17060 #else
17061 # include <assert.h>
17062 #endif
17064 #undef $ac_func
17066 /* Override any GCC internal prototype to avoid an error.
17067 Use char because int might match the return type of a GCC
17068 builtin and then its argument prototype would still apply. */
17069 #ifdef __cplusplus
17070 extern "C"
17071 #endif
17072 char $ac_func ();
17073 /* The GNU C library defines this for functions which it implements
17074 to always fail with ENOSYS. Some functions are actually named
17075 something starting with __ and the normal name is an alias. */
17076 #if defined __stub_$ac_func || defined __stub___$ac_func
17077 choke me
17078 #endif
17081 main ()
17083 return $ac_func ();
17085 return 0;
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_link") 2>conftest.er1
17096 ac_status=$?
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest$ac_exeext &&
17105 $as_test_x conftest$ac_exeext; then
17106 eval "$as_ac_var=yes"
17107 else
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17111 eval "$as_ac_var=no"
17114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17115 conftest$ac_exeext conftest.$ac_ext
17117 ac_res=`eval echo '${'$as_ac_var'}'`
17118 { echo "$as_me:$LINENO: result: $ac_res" >&5
17119 echo "${ECHO_T}$ac_res" >&6; }
17120 if test `eval echo '${'$as_ac_var'}'` = yes; then
17121 cat >>confdefs.h <<_ACEOF
17122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17123 _ACEOF
17125 else
17126 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17127 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17128 if test "${ac_cv_lib_util_openpty+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 else
17131 ac_check_lib_save_LIBS=$LIBS
17132 LIBS="-lutil $LIBS"
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17140 /* Override any GCC internal prototype to avoid an error.
17141 Use char because int might match the return type of a GCC
17142 builtin and then its argument prototype would still apply. */
17143 #ifdef __cplusplus
17144 extern "C"
17145 #endif
17146 char openpty ();
17148 main ()
17150 return openpty ();
17152 return 0;
17154 _ACEOF
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_link") 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest$ac_exeext &&
17172 $as_test_x conftest$ac_exeext; then
17173 ac_cv_lib_util_openpty=yes
17174 else
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17178 ac_cv_lib_util_openpty=no
17181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17182 conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17185 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17186 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17187 if test $ac_cv_lib_util_openpty = yes; then
17188 cat >>confdefs.h <<\_ACEOF
17189 #define HAVE_OPENPTY 1
17190 _ACEOF
17191 LIBS="$LIBS -lutil"
17192 else
17193 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17194 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17195 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198 ac_check_lib_save_LIBS=$LIBS
17199 LIBS="-lbsd $LIBS"
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h. */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17210 #ifdef __cplusplus
17211 extern "C"
17212 #endif
17213 char openpty ();
17215 main ()
17217 return openpty ();
17219 return 0;
17221 _ACEOF
17222 rm -f conftest.$ac_objext conftest$ac_exeext
17223 if { (ac_try="$ac_link"
17224 case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17227 esac
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_link") 2>conftest.er1
17230 ac_status=$?
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } && {
17236 test -z "$ac_c_werror_flag" ||
17237 test ! -s conftest.err
17238 } && test -s conftest$ac_exeext &&
17239 $as_test_x conftest$ac_exeext; then
17240 ac_cv_lib_bsd_openpty=yes
17241 else
17242 echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17245 ac_cv_lib_bsd_openpty=no
17248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17249 conftest$ac_exeext conftest.$ac_ext
17250 LIBS=$ac_check_lib_save_LIBS
17252 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17253 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17254 if test $ac_cv_lib_bsd_openpty = yes; then
17255 cat >>confdefs.h <<\_ACEOF
17256 #define HAVE_OPENPTY 1
17257 _ACEOF
17258 LIBS="$LIBS -lbsd"
17266 done
17269 for ac_func in forkpty
17271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277 cat >conftest.$ac_ext <<_ACEOF
17278 /* confdefs.h. */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17285 #define $ac_func innocuous_$ac_func
17287 /* System header to define __stub macros and hopefully few prototypes,
17288 which can conflict with char $ac_func (); below.
17289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17290 <limits.h> exists even on freestanding compilers. */
17292 #ifdef __STDC__
17293 # include <limits.h>
17294 #else
17295 # include <assert.h>
17296 #endif
17298 #undef $ac_func
17300 /* Override any GCC internal prototype to avoid an error.
17301 Use char because int might match the return type of a GCC
17302 builtin and then its argument prototype would still apply. */
17303 #ifdef __cplusplus
17304 extern "C"
17305 #endif
17306 char $ac_func ();
17307 /* The GNU C library defines this for functions which it implements
17308 to always fail with ENOSYS. Some functions are actually named
17309 something starting with __ and the normal name is an alias. */
17310 #if defined __stub_$ac_func || defined __stub___$ac_func
17311 choke me
17312 #endif
17315 main ()
17317 return $ac_func ();
17319 return 0;
17321 _ACEOF
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (ac_try="$ac_link"
17324 case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17327 esac
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_link") 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest$ac_exeext &&
17339 $as_test_x conftest$ac_exeext; then
17340 eval "$as_ac_var=yes"
17341 else
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17345 eval "$as_ac_var=no"
17348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17349 conftest$ac_exeext conftest.$ac_ext
17351 ac_res=`eval echo '${'$as_ac_var'}'`
17352 { echo "$as_me:$LINENO: result: $ac_res" >&5
17353 echo "${ECHO_T}$ac_res" >&6; }
17354 if test `eval echo '${'$as_ac_var'}'` = yes; then
17355 cat >>confdefs.h <<_ACEOF
17356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17357 _ACEOF
17359 else
17360 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17361 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17362 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365 ac_check_lib_save_LIBS=$LIBS
17366 LIBS="-lutil $LIBS"
17367 cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h. */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17374 /* Override any GCC internal prototype to avoid an error.
17375 Use char because int might match the return type of a GCC
17376 builtin and then its argument prototype would still apply. */
17377 #ifdef __cplusplus
17378 extern "C"
17379 #endif
17380 char forkpty ();
17382 main ()
17384 return forkpty ();
17386 return 0;
17388 _ACEOF
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (ac_try="$ac_link"
17391 case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_link") 2>conftest.er1
17397 ac_status=$?
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && {
17403 test -z "$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17405 } && test -s conftest$ac_exeext &&
17406 $as_test_x conftest$ac_exeext; then
17407 ac_cv_lib_util_forkpty=yes
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_cv_lib_util_forkpty=no
17415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17416 conftest$ac_exeext conftest.$ac_ext
17417 LIBS=$ac_check_lib_save_LIBS
17419 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17420 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17421 if test $ac_cv_lib_util_forkpty = yes; then
17422 cat >>confdefs.h <<\_ACEOF
17423 #define HAVE_FORKPTY 1
17424 _ACEOF
17425 LIBS="$LIBS -lutil"
17426 else
17427 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17428 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17429 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432 ac_check_lib_save_LIBS=$LIBS
17433 LIBS="-lbsd $LIBS"
17434 cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h. */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17441 /* Override any GCC internal prototype to avoid an error.
17442 Use char because int might match the return type of a GCC
17443 builtin and then its argument prototype would still apply. */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 char forkpty ();
17449 main ()
17451 return forkpty ();
17453 return 0;
17455 _ACEOF
17456 rm -f conftest.$ac_objext conftest$ac_exeext
17457 if { (ac_try="$ac_link"
17458 case "(($ac_try" in
17459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17461 esac
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_link") 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } && {
17470 test -z "$ac_c_werror_flag" ||
17471 test ! -s conftest.err
17472 } && test -s conftest$ac_exeext &&
17473 $as_test_x conftest$ac_exeext; then
17474 ac_cv_lib_bsd_forkpty=yes
17475 else
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ac_cv_lib_bsd_forkpty=no
17482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17483 conftest$ac_exeext conftest.$ac_ext
17484 LIBS=$ac_check_lib_save_LIBS
17486 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17487 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17488 if test $ac_cv_lib_bsd_forkpty = yes; then
17489 cat >>confdefs.h <<\_ACEOF
17490 #define HAVE_FORKPTY 1
17491 _ACEOF
17492 LIBS="$LIBS -lbsd"
17500 done
17503 # Stuff for expat.
17505 for ac_func in memmove
17507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513 cat >conftest.$ac_ext <<_ACEOF
17514 /* confdefs.h. */
17515 _ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17521 #define $ac_func innocuous_$ac_func
17523 /* System header to define __stub macros and hopefully few prototypes,
17524 which can conflict with char $ac_func (); below.
17525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17526 <limits.h> exists even on freestanding compilers. */
17528 #ifdef __STDC__
17529 # include <limits.h>
17530 #else
17531 # include <assert.h>
17532 #endif
17534 #undef $ac_func
17536 /* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
17539 #ifdef __cplusplus
17540 extern "C"
17541 #endif
17542 char $ac_func ();
17543 /* The GNU C library defines this for functions which it implements
17544 to always fail with ENOSYS. Some functions are actually named
17545 something starting with __ and the normal name is an alias. */
17546 #if defined __stub_$ac_func || defined __stub___$ac_func
17547 choke me
17548 #endif
17551 main ()
17553 return $ac_func ();
17555 return 0;
17557 _ACEOF
17558 rm -f conftest.$ac_objext conftest$ac_exeext
17559 if { (ac_try="$ac_link"
17560 case "(($ac_try" in
17561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562 *) ac_try_echo=$ac_try;;
17563 esac
17564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565 (eval "$ac_link") 2>conftest.er1
17566 ac_status=$?
17567 grep -v '^ *+' conftest.er1 >conftest.err
17568 rm -f conftest.er1
17569 cat conftest.err >&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } && {
17572 test -z "$ac_c_werror_flag" ||
17573 test ! -s conftest.err
17574 } && test -s conftest$ac_exeext &&
17575 $as_test_x conftest$ac_exeext; then
17576 eval "$as_ac_var=yes"
17577 else
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17581 eval "$as_ac_var=no"
17584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17585 conftest$ac_exeext conftest.$ac_ext
17587 ac_res=`eval echo '${'$as_ac_var'}'`
17588 { echo "$as_me:$LINENO: result: $ac_res" >&5
17589 echo "${ECHO_T}$ac_res" >&6; }
17590 if test `eval echo '${'$as_ac_var'}'` = yes; then
17591 cat >>confdefs.h <<_ACEOF
17592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17593 _ACEOF
17596 done
17599 # check for long file support functions
17606 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 else
17614 cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h. */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17622 #define $ac_func innocuous_$ac_func
17624 /* System header to define __stub macros and hopefully few prototypes,
17625 which can conflict with char $ac_func (); below.
17626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17627 <limits.h> exists even on freestanding compilers. */
17629 #ifdef __STDC__
17630 # include <limits.h>
17631 #else
17632 # include <assert.h>
17633 #endif
17635 #undef $ac_func
17637 /* Override any GCC internal prototype to avoid an error.
17638 Use char because int might match the return type of a GCC
17639 builtin and then its argument prototype would still apply. */
17640 #ifdef __cplusplus
17641 extern "C"
17642 #endif
17643 char $ac_func ();
17644 /* The GNU C library defines this for functions which it implements
17645 to always fail with ENOSYS. Some functions are actually named
17646 something starting with __ and the normal name is an alias. */
17647 #if defined __stub_$ac_func || defined __stub___$ac_func
17648 choke me
17649 #endif
17652 main ()
17654 return $ac_func ();
17656 return 0;
17658 _ACEOF
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_link") 2>conftest.er1
17667 ac_status=$?
17668 grep -v '^ *+' conftest.er1 >conftest.err
17669 rm -f conftest.er1
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } && {
17673 test -z "$ac_c_werror_flag" ||
17674 test ! -s conftest.err
17675 } && test -s conftest$ac_exeext &&
17676 $as_test_x conftest$ac_exeext; then
17677 eval "$as_ac_var=yes"
17678 else
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17682 eval "$as_ac_var=no"
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686 conftest$ac_exeext conftest.$ac_ext
17688 ac_res=`eval echo '${'$as_ac_var'}'`
17689 { echo "$as_me:$LINENO: result: $ac_res" >&5
17690 echo "${ECHO_T}$ac_res" >&6; }
17691 if test `eval echo '${'$as_ac_var'}'` = yes; then
17692 cat >>confdefs.h <<_ACEOF
17693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17694 _ACEOF
17697 done
17703 for ac_func in dup2 getcwd strdup
17705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711 cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h. */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17719 #define $ac_func innocuous_$ac_func
17721 /* System header to define __stub macros and hopefully few prototypes,
17722 which can conflict with char $ac_func (); below.
17723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17724 <limits.h> exists even on freestanding compilers. */
17726 #ifdef __STDC__
17727 # include <limits.h>
17728 #else
17729 # include <assert.h>
17730 #endif
17732 #undef $ac_func
17734 /* Override any GCC internal prototype to avoid an error.
17735 Use char because int might match the return type of a GCC
17736 builtin and then its argument prototype would still apply. */
17737 #ifdef __cplusplus
17738 extern "C"
17739 #endif
17740 char $ac_func ();
17741 /* The GNU C library defines this for functions which it implements
17742 to always fail with ENOSYS. Some functions are actually named
17743 something starting with __ and the normal name is an alias. */
17744 #if defined __stub_$ac_func || defined __stub___$ac_func
17745 choke me
17746 #endif
17749 main ()
17751 return $ac_func ();
17753 return 0;
17755 _ACEOF
17756 rm -f conftest.$ac_objext conftest$ac_exeext
17757 if { (ac_try="$ac_link"
17758 case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_link") 2>conftest.er1
17764 ac_status=$?
17765 grep -v '^ *+' conftest.er1 >conftest.err
17766 rm -f conftest.er1
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } && {
17770 test -z "$ac_c_werror_flag" ||
17771 test ! -s conftest.err
17772 } && test -s conftest$ac_exeext &&
17773 $as_test_x conftest$ac_exeext; then
17774 eval "$as_ac_var=yes"
17775 else
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17779 eval "$as_ac_var=no"
17782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17783 conftest$ac_exeext conftest.$ac_ext
17785 ac_res=`eval echo '${'$as_ac_var'}'`
17786 { echo "$as_me:$LINENO: result: $ac_res" >&5
17787 echo "${ECHO_T}$ac_res" >&6; }
17788 if test `eval echo '${'$as_ac_var'}'` = yes; then
17789 cat >>confdefs.h <<_ACEOF
17790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17791 _ACEOF
17793 else
17794 case " $LIBOBJS " in
17795 *" $ac_func.$ac_objext "* ) ;;
17796 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17798 esac
17801 done
17805 for ac_func in getpgrp
17807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 else
17813 cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h. */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17821 #define $ac_func innocuous_$ac_func
17823 /* System header to define __stub macros and hopefully few prototypes,
17824 which can conflict with char $ac_func (); below.
17825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17826 <limits.h> exists even on freestanding compilers. */
17828 #ifdef __STDC__
17829 # include <limits.h>
17830 #else
17831 # include <assert.h>
17832 #endif
17834 #undef $ac_func
17836 /* Override any GCC internal prototype to avoid an error.
17837 Use char because int might match the return type of a GCC
17838 builtin and then its argument prototype would still apply. */
17839 #ifdef __cplusplus
17840 extern "C"
17841 #endif
17842 char $ac_func ();
17843 /* The GNU C library defines this for functions which it implements
17844 to always fail with ENOSYS. Some functions are actually named
17845 something starting with __ and the normal name is an alias. */
17846 #if defined __stub_$ac_func || defined __stub___$ac_func
17847 choke me
17848 #endif
17851 main ()
17853 return $ac_func ();
17855 return 0;
17857 _ACEOF
17858 rm -f conftest.$ac_objext conftest$ac_exeext
17859 if { (ac_try="$ac_link"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_link") 2>conftest.er1
17866 ac_status=$?
17867 grep -v '^ *+' conftest.er1 >conftest.err
17868 rm -f conftest.er1
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } && {
17872 test -z "$ac_c_werror_flag" ||
17873 test ! -s conftest.err
17874 } && test -s conftest$ac_exeext &&
17875 $as_test_x conftest$ac_exeext; then
17876 eval "$as_ac_var=yes"
17877 else
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 eval "$as_ac_var=no"
17884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885 conftest$ac_exeext conftest.$ac_ext
17887 ac_res=`eval echo '${'$as_ac_var'}'`
17888 { echo "$as_me:$LINENO: result: $ac_res" >&5
17889 echo "${ECHO_T}$ac_res" >&6; }
17890 if test `eval echo '${'$as_ac_var'}'` = yes; then
17891 cat >>confdefs.h <<_ACEOF
17892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17893 _ACEOF
17894 cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h. */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 #include <unistd.h>
17902 main ()
17904 getpgrp(0);
17906 return 0;
17908 _ACEOF
17909 rm -f conftest.$ac_objext
17910 if { (ac_try="$ac_compile"
17911 case "(($ac_try" in
17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913 *) ac_try_echo=$ac_try;;
17914 esac
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916 (eval "$ac_compile") 2>conftest.er1
17917 ac_status=$?
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } && {
17923 test -z "$ac_c_werror_flag" ||
17924 test ! -s conftest.err
17925 } && test -s conftest.$ac_objext; then
17927 cat >>confdefs.h <<\_ACEOF
17928 #define GETPGRP_HAVE_ARG 1
17929 _ACEOF
17932 else
17933 echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17942 done
17945 for ac_func in setpgrp
17947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17952 else
17953 cat >conftest.$ac_ext <<_ACEOF
17954 /* confdefs.h. */
17955 _ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17961 #define $ac_func innocuous_$ac_func
17963 /* System header to define __stub macros and hopefully few prototypes,
17964 which can conflict with char $ac_func (); below.
17965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17966 <limits.h> exists even on freestanding compilers. */
17968 #ifdef __STDC__
17969 # include <limits.h>
17970 #else
17971 # include <assert.h>
17972 #endif
17974 #undef $ac_func
17976 /* Override any GCC internal prototype to avoid an error.
17977 Use char because int might match the return type of a GCC
17978 builtin and then its argument prototype would still apply. */
17979 #ifdef __cplusplus
17980 extern "C"
17981 #endif
17982 char $ac_func ();
17983 /* The GNU C library defines this for functions which it implements
17984 to always fail with ENOSYS. Some functions are actually named
17985 something starting with __ and the normal name is an alias. */
17986 #if defined __stub_$ac_func || defined __stub___$ac_func
17987 choke me
17988 #endif
17991 main ()
17993 return $ac_func ();
17995 return 0;
17997 _ACEOF
17998 rm -f conftest.$ac_objext conftest$ac_exeext
17999 if { (ac_try="$ac_link"
18000 case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18003 esac
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_link") 2>conftest.er1
18006 ac_status=$?
18007 grep -v '^ *+' conftest.er1 >conftest.err
18008 rm -f conftest.er1
18009 cat conftest.err >&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } && {
18012 test -z "$ac_c_werror_flag" ||
18013 test ! -s conftest.err
18014 } && test -s conftest$ac_exeext &&
18015 $as_test_x conftest$ac_exeext; then
18016 eval "$as_ac_var=yes"
18017 else
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 eval "$as_ac_var=no"
18024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18025 conftest$ac_exeext conftest.$ac_ext
18027 ac_res=`eval echo '${'$as_ac_var'}'`
18028 { echo "$as_me:$LINENO: result: $ac_res" >&5
18029 echo "${ECHO_T}$ac_res" >&6; }
18030 if test `eval echo '${'$as_ac_var'}'` = yes; then
18031 cat >>confdefs.h <<_ACEOF
18032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18033 _ACEOF
18034 cat >conftest.$ac_ext <<_ACEOF
18035 /* confdefs.h. */
18036 _ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18040 #include <unistd.h>
18042 main ()
18044 setpgrp(0,0);
18046 return 0;
18048 _ACEOF
18049 rm -f conftest.$ac_objext
18050 if { (ac_try="$ac_compile"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_compile") 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest.$ac_objext; then
18067 cat >>confdefs.h <<\_ACEOF
18068 #define SETPGRP_HAVE_ARG 1
18069 _ACEOF
18072 else
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18082 done
18085 for ac_func in gettimeofday
18087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 else
18093 cat >conftest.$ac_ext <<_ACEOF
18094 /* confdefs.h. */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18101 #define $ac_func innocuous_$ac_func
18103 /* System header to define __stub macros and hopefully few prototypes,
18104 which can conflict with char $ac_func (); below.
18105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18106 <limits.h> exists even on freestanding compilers. */
18108 #ifdef __STDC__
18109 # include <limits.h>
18110 #else
18111 # include <assert.h>
18112 #endif
18114 #undef $ac_func
18116 /* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18119 #ifdef __cplusplus
18120 extern "C"
18121 #endif
18122 char $ac_func ();
18123 /* The GNU C library defines this for functions which it implements
18124 to always fail with ENOSYS. Some functions are actually named
18125 something starting with __ and the normal name is an alias. */
18126 #if defined __stub_$ac_func || defined __stub___$ac_func
18127 choke me
18128 #endif
18131 main ()
18133 return $ac_func ();
18135 return 0;
18137 _ACEOF
18138 rm -f conftest.$ac_objext conftest$ac_exeext
18139 if { (ac_try="$ac_link"
18140 case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18143 esac
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_link") 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest$ac_exeext &&
18155 $as_test_x conftest$ac_exeext; then
18156 eval "$as_ac_var=yes"
18157 else
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 eval "$as_ac_var=no"
18164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18165 conftest$ac_exeext conftest.$ac_ext
18167 ac_res=`eval echo '${'$as_ac_var'}'`
18168 { echo "$as_me:$LINENO: result: $ac_res" >&5
18169 echo "${ECHO_T}$ac_res" >&6; }
18170 if test `eval echo '${'$as_ac_var'}'` = yes; then
18171 cat >>confdefs.h <<_ACEOF
18172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18173 _ACEOF
18174 cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h. */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 #include <sys/time.h>
18182 main ()
18184 gettimeofday((struct timeval*)0,(struct timezone*)0);
18186 return 0;
18188 _ACEOF
18189 rm -f conftest.$ac_objext
18190 if { (ac_try="$ac_compile"
18191 case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18194 esac
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_compile") 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } && {
18203 test -z "$ac_c_werror_flag" ||
18204 test ! -s conftest.err
18205 } && test -s conftest.$ac_objext; then
18207 else
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18212 cat >>confdefs.h <<\_ACEOF
18213 #define GETTIMEOFDAY_NO_TZ 1
18214 _ACEOF
18219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18222 done
18225 { echo "$as_me:$LINENO: checking for major" >&5
18226 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18227 cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h. */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18234 #if defined(MAJOR_IN_MKDEV)
18235 #include <sys/mkdev.h>
18236 #elif defined(MAJOR_IN_SYSMACROS)
18237 #include <sys/sysmacros.h>
18238 #else
18239 #include <sys/types.h>
18240 #endif
18243 main ()
18246 makedev(major(0),minor(0));
18249 return 0;
18251 _ACEOF
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (ac_try="$ac_link"
18254 case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18257 esac
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_link") 2>conftest.er1
18260 ac_status=$?
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } && {
18266 test -z "$ac_c_werror_flag" ||
18267 test ! -s conftest.err
18268 } && test -s conftest$ac_exeext &&
18269 $as_test_x conftest$ac_exeext; then
18272 cat >>confdefs.h <<\_ACEOF
18273 #define HAVE_DEVICE_MACROS 1
18274 _ACEOF
18276 { echo "$as_me:$LINENO: result: yes" >&5
18277 echo "${ECHO_T}yes" >&6; }
18279 else
18280 echo "$as_me: failed program was:" >&5
18281 sed 's/^/| /' conftest.$ac_ext >&5
18284 { echo "$as_me:$LINENO: result: no" >&5
18285 echo "${ECHO_T}no" >&6; }
18289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18290 conftest$ac_exeext conftest.$ac_ext
18292 # On OSF/1 V5.1, getaddrinfo is available, but a define
18293 # for [no]getaddrinfo in netdb.h.
18294 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18295 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h. */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18303 #include <sys/types.h>
18304 #include <sys/socket.h>
18305 #include <netdb.h>
18306 #include <stdio.h>
18309 main ()
18312 getaddrinfo(NULL, NULL, NULL, NULL);
18315 return 0;
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_link") 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } && {
18332 test -z "$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18334 } && test -s conftest$ac_exeext &&
18335 $as_test_x conftest$ac_exeext; then
18337 { echo "$as_me:$LINENO: result: yes" >&5
18338 echo "${ECHO_T}yes" >&6; }
18339 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18340 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18341 if test "$cross_compiling" = yes; then
18342 { echo "$as_me:$LINENO: result: buggy" >&5
18343 echo "${ECHO_T}buggy" >&6; }
18344 buggygetaddrinfo=yes
18345 else
18346 cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h. */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18353 #include <sys/types.h>
18354 #include <netdb.h>
18355 #include <string.h>
18356 #include <sys/socket.h>
18357 #include <netinet/in.h>
18359 main()
18361 int passive, gaierr, inet4 = 0, inet6 = 0;
18362 struct addrinfo hints, *ai, *aitop;
18363 char straddr[INET6_ADDRSTRLEN], strport[16];
18365 for (passive = 0; passive <= 1; passive++) {
18366 memset(&hints, 0, sizeof(hints));
18367 hints.ai_family = AF_UNSPEC;
18368 hints.ai_flags = passive ? AI_PASSIVE : 0;
18369 hints.ai_socktype = SOCK_STREAM;
18370 hints.ai_protocol = IPPROTO_TCP;
18371 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18372 (void)gai_strerror(gaierr);
18373 goto bad;
18375 for (ai = aitop; ai; ai = ai->ai_next) {
18376 if (ai->ai_addr == NULL ||
18377 ai->ai_addrlen == 0 ||
18378 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18379 straddr, sizeof(straddr), strport, sizeof(strport),
18380 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18381 goto bad;
18383 switch (ai->ai_family) {
18384 case AF_INET:
18385 if (strcmp(strport, "54321") != 0) {
18386 goto bad;
18388 if (passive) {
18389 if (strcmp(straddr, "0.0.0.0") != 0) {
18390 goto bad;
18392 } else {
18393 if (strcmp(straddr, "127.0.0.1") != 0) {
18394 goto bad;
18397 inet4++;
18398 break;
18399 case AF_INET6:
18400 if (strcmp(strport, "54321") != 0) {
18401 goto bad;
18403 if (passive) {
18404 if (strcmp(straddr, "::") != 0) {
18405 goto bad;
18407 } else {
18408 if (strcmp(straddr, "::1") != 0) {
18409 goto bad;
18412 inet6++;
18413 break;
18414 case AF_UNSPEC:
18415 goto bad;
18416 break;
18417 default:
18418 /* another family support? */
18419 break;
18424 if (!(inet4 == 0 || inet4 == 2))
18425 goto bad;
18426 if (!(inet6 == 0 || inet6 == 2))
18427 goto bad;
18429 if (aitop)
18430 freeaddrinfo(aitop);
18431 exit(0);
18433 bad:
18434 if (aitop)
18435 freeaddrinfo(aitop);
18436 exit(1);
18439 _ACEOF
18440 rm -f conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18451 { (case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18454 esac
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456 (eval "$ac_try") 2>&5
18457 ac_status=$?
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; }; then
18460 { echo "$as_me:$LINENO: result: good" >&5
18461 echo "${ECHO_T}good" >&6; }
18462 buggygetaddrinfo=no
18463 else
18464 echo "$as_me: program exited with status $ac_status" >&5
18465 echo "$as_me: failed program was:" >&5
18466 sed 's/^/| /' conftest.$ac_ext >&5
18468 ( exit $ac_status )
18469 { echo "$as_me:$LINENO: result: buggy" >&5
18470 echo "${ECHO_T}buggy" >&6; }
18471 buggygetaddrinfo=yes
18473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18477 else
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18482 { echo "$as_me:$LINENO: result: no" >&5
18483 echo "${ECHO_T}no" >&6; }
18484 buggygetaddrinfo=yes
18488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18489 conftest$ac_exeext conftest.$ac_ext
18491 if test "$buggygetaddrinfo" = "yes"; then
18492 if test "$ipv6" = "yes"; then
18493 echo 'Fatal: You must get working getaddrinfo() function.'
18494 echo ' or you can specify "--disable-ipv6"'.
18495 exit 1
18497 else
18499 cat >>confdefs.h <<\_ACEOF
18500 #define HAVE_GETADDRINFO 1
18501 _ACEOF
18505 for ac_func in getnameinfo
18507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513 cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h. */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18521 #define $ac_func innocuous_$ac_func
18523 /* System header to define __stub macros and hopefully few prototypes,
18524 which can conflict with char $ac_func (); below.
18525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18526 <limits.h> exists even on freestanding compilers. */
18528 #ifdef __STDC__
18529 # include <limits.h>
18530 #else
18531 # include <assert.h>
18532 #endif
18534 #undef $ac_func
18536 /* Override any GCC internal prototype to avoid an error.
18537 Use char because int might match the return type of a GCC
18538 builtin and then its argument prototype would still apply. */
18539 #ifdef __cplusplus
18540 extern "C"
18541 #endif
18542 char $ac_func ();
18543 /* The GNU C library defines this for functions which it implements
18544 to always fail with ENOSYS. Some functions are actually named
18545 something starting with __ and the normal name is an alias. */
18546 #if defined __stub_$ac_func || defined __stub___$ac_func
18547 choke me
18548 #endif
18551 main ()
18553 return $ac_func ();
18555 return 0;
18557 _ACEOF
18558 rm -f conftest.$ac_objext conftest$ac_exeext
18559 if { (ac_try="$ac_link"
18560 case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18563 esac
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_link") 2>conftest.er1
18566 ac_status=$?
18567 grep -v '^ *+' conftest.er1 >conftest.err
18568 rm -f conftest.er1
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } && {
18572 test -z "$ac_c_werror_flag" ||
18573 test ! -s conftest.err
18574 } && test -s conftest$ac_exeext &&
18575 $as_test_x conftest$ac_exeext; then
18576 eval "$as_ac_var=yes"
18577 else
18578 echo "$as_me: failed program was:" >&5
18579 sed 's/^/| /' conftest.$ac_ext >&5
18581 eval "$as_ac_var=no"
18584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18585 conftest$ac_exeext conftest.$ac_ext
18587 ac_res=`eval echo '${'$as_ac_var'}'`
18588 { echo "$as_me:$LINENO: result: $ac_res" >&5
18589 echo "${ECHO_T}$ac_res" >&6; }
18590 if test `eval echo '${'$as_ac_var'}'` = yes; then
18591 cat >>confdefs.h <<_ACEOF
18592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18593 _ACEOF
18596 done
18599 # checks for structures
18600 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18601 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18602 if test "${ac_cv_header_time+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604 else
18605 cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h. */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 #include <sys/types.h>
18612 #include <sys/time.h>
18613 #include <time.h>
18616 main ()
18618 if ((struct tm *) 0)
18619 return 0;
18621 return 0;
18623 _ACEOF
18624 rm -f conftest.$ac_objext
18625 if { (ac_try="$ac_compile"
18626 case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18629 esac
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_compile") 2>conftest.er1
18632 ac_status=$?
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest.$ac_objext; then
18641 ac_cv_header_time=yes
18642 else
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 ac_cv_header_time=no
18649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18651 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18652 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18653 if test $ac_cv_header_time = yes; then
18655 cat >>confdefs.h <<\_ACEOF
18656 #define TIME_WITH_SYS_TIME 1
18657 _ACEOF
18661 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18662 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18663 if test "${ac_cv_struct_tm+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 #include <sys/types.h>
18673 #include <time.h>
18676 main ()
18678 struct tm tm;
18679 int *p = &tm.tm_sec;
18680 return !p;
18682 return 0;
18684 _ACEOF
18685 rm -f conftest.$ac_objext
18686 if { (ac_try="$ac_compile"
18687 case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18690 esac
18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692 (eval "$ac_compile") 2>conftest.er1
18693 ac_status=$?
18694 grep -v '^ *+' conftest.er1 >conftest.err
18695 rm -f conftest.er1
18696 cat conftest.err >&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); } && {
18699 test -z "$ac_c_werror_flag" ||
18700 test ! -s conftest.err
18701 } && test -s conftest.$ac_objext; then
18702 ac_cv_struct_tm=time.h
18703 else
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_struct_tm=sys/time.h
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18712 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18713 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18714 if test $ac_cv_struct_tm = sys/time.h; then
18716 cat >>confdefs.h <<\_ACEOF
18717 #define TM_IN_SYS_TIME 1
18718 _ACEOF
18722 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18723 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18724 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 else
18727 cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h. */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 #include <sys/types.h>
18734 #include <$ac_cv_struct_tm>
18738 main ()
18740 static struct tm ac_aggr;
18741 if (ac_aggr.tm_zone)
18742 return 0;
18744 return 0;
18746 _ACEOF
18747 rm -f conftest.$ac_objext
18748 if { (ac_try="$ac_compile"
18749 case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18752 esac
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_compile") 2>conftest.er1
18755 ac_status=$?
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } && {
18761 test -z "$ac_c_werror_flag" ||
18762 test ! -s conftest.err
18763 } && test -s conftest.$ac_objext; then
18764 ac_cv_member_struct_tm_tm_zone=yes
18765 else
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18769 cat >conftest.$ac_ext <<_ACEOF
18770 /* confdefs.h. */
18771 _ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18775 #include <sys/types.h>
18776 #include <$ac_cv_struct_tm>
18780 main ()
18782 static struct tm ac_aggr;
18783 if (sizeof ac_aggr.tm_zone)
18784 return 0;
18786 return 0;
18788 _ACEOF
18789 rm -f conftest.$ac_objext
18790 if { (ac_try="$ac_compile"
18791 case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_compile") 2>conftest.er1
18797 ac_status=$?
18798 grep -v '^ *+' conftest.er1 >conftest.err
18799 rm -f conftest.er1
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest.$ac_objext; then
18806 ac_cv_member_struct_tm_tm_zone=yes
18807 else
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 ac_cv_member_struct_tm_tm_zone=no
18814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18819 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18820 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18821 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18823 cat >>confdefs.h <<_ACEOF
18824 #define HAVE_STRUCT_TM_TM_ZONE 1
18825 _ACEOF
18830 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18832 cat >>confdefs.h <<\_ACEOF
18833 #define HAVE_TM_ZONE 1
18834 _ACEOF
18836 else
18837 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18838 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18839 if test "${ac_cv_have_decl_tzname+set}" = set; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 else
18842 cat >conftest.$ac_ext <<_ACEOF
18843 /* confdefs.h. */
18844 _ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18848 #include <time.h>
18851 main ()
18853 #ifndef tzname
18854 (void) tzname;
18855 #endif
18858 return 0;
18860 _ACEOF
18861 rm -f conftest.$ac_objext
18862 if { (ac_try="$ac_compile"
18863 case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_compile") 2>conftest.er1
18869 ac_status=$?
18870 grep -v '^ *+' conftest.er1 >conftest.err
18871 rm -f conftest.er1
18872 cat conftest.err >&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } && {
18875 test -z "$ac_c_werror_flag" ||
18876 test ! -s conftest.err
18877 } && test -s conftest.$ac_objext; then
18878 ac_cv_have_decl_tzname=yes
18879 else
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18883 ac_cv_have_decl_tzname=no
18886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18888 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18889 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18890 if test $ac_cv_have_decl_tzname = yes; then
18892 cat >>confdefs.h <<_ACEOF
18893 #define HAVE_DECL_TZNAME 1
18894 _ACEOF
18897 else
18898 cat >>confdefs.h <<_ACEOF
18899 #define HAVE_DECL_TZNAME 0
18900 _ACEOF
18906 { echo "$as_me:$LINENO: checking for tzname" >&5
18907 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18908 if test "${ac_cv_var_tzname+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18910 else
18911 cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h. */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18917 #include <time.h>
18918 #if !HAVE_DECL_TZNAME
18919 extern char *tzname[];
18920 #endif
18923 main ()
18925 return tzname[0][0];
18927 return 0;
18929 _ACEOF
18930 rm -f conftest.$ac_objext conftest$ac_exeext
18931 if { (ac_try="$ac_link"
18932 case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18935 esac
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_link") 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } && {
18944 test -z "$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18946 } && test -s conftest$ac_exeext &&
18947 $as_test_x conftest$ac_exeext; then
18948 ac_cv_var_tzname=yes
18949 else
18950 echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18953 ac_cv_var_tzname=no
18956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18957 conftest$ac_exeext conftest.$ac_ext
18959 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18960 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18961 if test $ac_cv_var_tzname = yes; then
18963 cat >>confdefs.h <<\_ACEOF
18964 #define HAVE_TZNAME 1
18965 _ACEOF
18970 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18971 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18972 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 else
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h. */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 $ac_includes_default
18983 main ()
18985 static struct stat ac_aggr;
18986 if (ac_aggr.st_rdev)
18987 return 0;
18989 return 0;
18991 _ACEOF
18992 rm -f conftest.$ac_objext
18993 if { (ac_try="$ac_compile"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18997 esac
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_compile") 2>conftest.er1
19000 ac_status=$?
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } && {
19006 test -z "$ac_c_werror_flag" ||
19007 test ! -s conftest.err
19008 } && test -s conftest.$ac_objext; then
19009 ac_cv_member_struct_stat_st_rdev=yes
19010 else
19011 echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 $ac_includes_default
19022 main ()
19024 static struct stat ac_aggr;
19025 if (sizeof ac_aggr.st_rdev)
19026 return 0;
19028 return 0;
19030 _ACEOF
19031 rm -f conftest.$ac_objext
19032 if { (ac_try="$ac_compile"
19033 case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_compile") 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest.$ac_objext; then
19048 ac_cv_member_struct_stat_st_rdev=yes
19049 else
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19053 ac_cv_member_struct_stat_st_rdev=no
19056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19061 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19062 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19063 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19065 cat >>confdefs.h <<_ACEOF
19066 #define HAVE_STRUCT_STAT_ST_RDEV 1
19067 _ACEOF
19072 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19073 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19074 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19076 else
19077 cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h. */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 $ac_includes_default
19085 main ()
19087 static struct stat ac_aggr;
19088 if (ac_aggr.st_blksize)
19089 return 0;
19091 return 0;
19093 _ACEOF
19094 rm -f conftest.$ac_objext
19095 if { (ac_try="$ac_compile"
19096 case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19099 esac
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_compile") 2>conftest.er1
19102 ac_status=$?
19103 grep -v '^ *+' conftest.er1 >conftest.err
19104 rm -f conftest.er1
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } && {
19108 test -z "$ac_c_werror_flag" ||
19109 test ! -s conftest.err
19110 } && test -s conftest.$ac_objext; then
19111 ac_cv_member_struct_stat_st_blksize=yes
19112 else
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 cat >conftest.$ac_ext <<_ACEOF
19117 /* confdefs.h. */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19122 $ac_includes_default
19124 main ()
19126 static struct stat ac_aggr;
19127 if (sizeof ac_aggr.st_blksize)
19128 return 0;
19130 return 0;
19132 _ACEOF
19133 rm -f conftest.$ac_objext
19134 if { (ac_try="$ac_compile"
19135 case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19138 esac
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_compile") 2>conftest.er1
19141 ac_status=$?
19142 grep -v '^ *+' conftest.er1 >conftest.err
19143 rm -f conftest.er1
19144 cat conftest.err >&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } && {
19147 test -z "$ac_c_werror_flag" ||
19148 test ! -s conftest.err
19149 } && test -s conftest.$ac_objext; then
19150 ac_cv_member_struct_stat_st_blksize=yes
19151 else
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 ac_cv_member_struct_stat_st_blksize=no
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19164 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19165 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19167 cat >>confdefs.h <<_ACEOF
19168 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19169 _ACEOF
19174 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19175 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19176 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179 cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h. */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 $ac_includes_default
19187 main ()
19189 static struct stat ac_aggr;
19190 if (ac_aggr.st_flags)
19191 return 0;
19193 return 0;
19195 _ACEOF
19196 rm -f conftest.$ac_objext
19197 if { (ac_try="$ac_compile"
19198 case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19201 esac
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_compile") 2>conftest.er1
19204 ac_status=$?
19205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } && {
19210 test -z "$ac_c_werror_flag" ||
19211 test ! -s conftest.err
19212 } && test -s conftest.$ac_objext; then
19213 ac_cv_member_struct_stat_st_flags=yes
19214 else
19215 echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19218 cat >conftest.$ac_ext <<_ACEOF
19219 /* confdefs.h. */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224 $ac_includes_default
19226 main ()
19228 static struct stat ac_aggr;
19229 if (sizeof ac_aggr.st_flags)
19230 return 0;
19232 return 0;
19234 _ACEOF
19235 rm -f conftest.$ac_objext
19236 if { (ac_try="$ac_compile"
19237 case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19240 esac
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_compile") 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } && {
19249 test -z "$ac_c_werror_flag" ||
19250 test ! -s conftest.err
19251 } && test -s conftest.$ac_objext; then
19252 ac_cv_member_struct_stat_st_flags=yes
19253 else
19254 echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19257 ac_cv_member_struct_stat_st_flags=no
19260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19266 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19267 if test $ac_cv_member_struct_stat_st_flags = yes; then
19269 cat >>confdefs.h <<_ACEOF
19270 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19271 _ACEOF
19276 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19277 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19278 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19280 else
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 $ac_includes_default
19289 main ()
19291 static struct stat ac_aggr;
19292 if (ac_aggr.st_gen)
19293 return 0;
19295 return 0;
19297 _ACEOF
19298 rm -f conftest.$ac_objext
19299 if { (ac_try="$ac_compile"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303 esac
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_compile") 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } && {
19312 test -z "$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19314 } && test -s conftest.$ac_objext; then
19315 ac_cv_member_struct_stat_st_gen=yes
19316 else
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h. */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19326 $ac_includes_default
19328 main ()
19330 static struct stat ac_aggr;
19331 if (sizeof ac_aggr.st_gen)
19332 return 0;
19334 return 0;
19336 _ACEOF
19337 rm -f conftest.$ac_objext
19338 if { (ac_try="$ac_compile"
19339 case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19342 esac
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_compile") 2>conftest.er1
19345 ac_status=$?
19346 grep -v '^ *+' conftest.er1 >conftest.err
19347 rm -f conftest.er1
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } && {
19351 test -z "$ac_c_werror_flag" ||
19352 test ! -s conftest.err
19353 } && test -s conftest.$ac_objext; then
19354 ac_cv_member_struct_stat_st_gen=yes
19355 else
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19359 ac_cv_member_struct_stat_st_gen=no
19362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19367 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19368 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19369 if test $ac_cv_member_struct_stat_st_gen = yes; then
19371 cat >>confdefs.h <<_ACEOF
19372 #define HAVE_STRUCT_STAT_ST_GEN 1
19373 _ACEOF
19378 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19379 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19380 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383 cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h. */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19389 $ac_includes_default
19391 main ()
19393 static struct stat ac_aggr;
19394 if (ac_aggr.st_birthtime)
19395 return 0;
19397 return 0;
19399 _ACEOF
19400 rm -f conftest.$ac_objext
19401 if { (ac_try="$ac_compile"
19402 case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405 esac
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest.$ac_objext; then
19417 ac_cv_member_struct_stat_st_birthtime=yes
19418 else
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h. */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428 $ac_includes_default
19430 main ()
19432 static struct stat ac_aggr;
19433 if (sizeof ac_aggr.st_birthtime)
19434 return 0;
19436 return 0;
19438 _ACEOF
19439 rm -f conftest.$ac_objext
19440 if { (ac_try="$ac_compile"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_compile") 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } && {
19453 test -z "$ac_c_werror_flag" ||
19454 test ! -s conftest.err
19455 } && test -s conftest.$ac_objext; then
19456 ac_cv_member_struct_stat_st_birthtime=yes
19457 else
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 ac_cv_member_struct_stat_st_birthtime=no
19464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19470 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19471 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19473 cat >>confdefs.h <<_ACEOF
19474 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19475 _ACEOF
19480 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19481 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19482 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485 cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h. */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491 $ac_includes_default
19493 main ()
19495 static struct stat ac_aggr;
19496 if (ac_aggr.st_blocks)
19497 return 0;
19499 return 0;
19501 _ACEOF
19502 rm -f conftest.$ac_objext
19503 if { (ac_try="$ac_compile"
19504 case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19507 esac
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_compile") 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } && {
19516 test -z "$ac_c_werror_flag" ||
19517 test ! -s conftest.err
19518 } && test -s conftest.$ac_objext; then
19519 ac_cv_member_struct_stat_st_blocks=yes
19520 else
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19524 cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h. */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19530 $ac_includes_default
19532 main ()
19534 static struct stat ac_aggr;
19535 if (sizeof ac_aggr.st_blocks)
19536 return 0;
19538 return 0;
19540 _ACEOF
19541 rm -f conftest.$ac_objext
19542 if { (ac_try="$ac_compile"
19543 case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19546 esac
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_compile") 2>conftest.er1
19549 ac_status=$?
19550 grep -v '^ *+' conftest.er1 >conftest.err
19551 rm -f conftest.er1
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } && {
19555 test -z "$ac_c_werror_flag" ||
19556 test ! -s conftest.err
19557 } && test -s conftest.$ac_objext; then
19558 ac_cv_member_struct_stat_st_blocks=yes
19559 else
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ac_cv_member_struct_stat_st_blocks=no
19566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19572 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19573 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19575 cat >>confdefs.h <<_ACEOF
19576 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19577 _ACEOF
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE_ST_BLOCKS 1
19582 _ACEOF
19584 else
19585 case " $LIBOBJS " in
19586 *" fileblocks.$ac_objext "* ) ;;
19587 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19589 esac
19595 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19596 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19597 if test "${ac_cv_header_time_altzone+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600 cat >conftest.$ac_ext <<_ACEOF
19601 /* confdefs.h. */
19602 _ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19606 #include <time.h>
19608 main ()
19610 return altzone;
19612 return 0;
19614 _ACEOF
19615 rm -f conftest.$ac_objext
19616 if { (ac_try="$ac_compile"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_compile") 2>conftest.er1
19623 ac_status=$?
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest.$ac_objext; then
19632 ac_cv_header_time_altzone=yes
19633 else
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 ac_cv_header_time_altzone=no
19640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19643 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19644 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19645 if test $ac_cv_header_time_altzone = yes; then
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE_ALTZONE 1
19649 _ACEOF
19653 was_it_defined=no
19654 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19655 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19656 cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h. */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19663 #include <sys/types.h>
19664 #include <sys/select.h>
19665 #include <sys/time.h>
19668 main ()
19672 return 0;
19674 _ACEOF
19675 rm -f conftest.$ac_objext
19676 if { (ac_try="$ac_compile"
19677 case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19680 esac
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_compile") 2>conftest.er1
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } && {
19689 test -z "$ac_c_werror_flag" ||
19690 test ! -s conftest.err
19691 } && test -s conftest.$ac_objext; then
19694 cat >>confdefs.h <<\_ACEOF
19695 #define SYS_SELECT_WITH_SYS_TIME 1
19696 _ACEOF
19698 was_it_defined=yes
19700 else
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19709 echo "${ECHO_T}$was_it_defined" >&6; }
19711 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19712 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19713 if test "${ac_cv_struct_addrinfo+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 else
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h. */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19723 # include <netdb.h>
19725 main ()
19727 struct addrinfo a
19729 return 0;
19731 _ACEOF
19732 rm -f conftest.$ac_objext
19733 if { (ac_try="$ac_compile"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_compile") 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest.$ac_objext; then
19749 ac_cv_struct_addrinfo=yes
19750 else
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_struct_addrinfo=no
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19760 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19761 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19762 if test $ac_cv_struct_addrinfo = yes; then
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_ADDRINFO 1
19766 _ACEOF
19770 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19771 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19772 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775 cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h. */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19782 # include <sys/types.h>
19783 # include <sys/socket.h>
19785 main ()
19787 struct sockaddr_storage s
19789 return 0;
19791 _ACEOF
19792 rm -f conftest.$ac_objext
19793 if { (ac_try="$ac_compile"
19794 case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19797 esac
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_compile") 2>conftest.er1
19800 ac_status=$?
19801 grep -v '^ *+' conftest.er1 >conftest.err
19802 rm -f conftest.er1
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } && {
19806 test -z "$ac_c_werror_flag" ||
19807 test ! -s conftest.err
19808 } && test -s conftest.$ac_objext; then
19809 ac_cv_struct_sockaddr_storage=yes
19810 else
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19814 ac_cv_struct_sockaddr_storage=no
19817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19821 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19822 if test $ac_cv_struct_sockaddr_storage = yes; then
19824 cat >>confdefs.h <<\_ACEOF
19825 #define HAVE_SOCKADDR_STORAGE 1
19826 _ACEOF
19830 # checks for compiler characteristics
19833 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19834 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19835 if test "${ac_cv_c_char_unsigned+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h. */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 $ac_includes_default
19846 main ()
19848 static int test_array [1 - 2 * !(((char) -1) < 0)];
19849 test_array [0] = 0
19852 return 0;
19854 _ACEOF
19855 rm -f conftest.$ac_objext
19856 if { (ac_try="$ac_compile"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_compile") 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest.$ac_objext; then
19872 ac_cv_c_char_unsigned=no
19873 else
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_cv_c_char_unsigned=yes
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19882 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19883 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19884 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19885 cat >>confdefs.h <<\_ACEOF
19886 #define __CHAR_UNSIGNED__ 1
19887 _ACEOF
19891 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19892 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19893 if test "${ac_cv_c_const+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19904 main ()
19906 /* FIXME: Include the comments suggested by Paul. */
19907 #ifndef __cplusplus
19908 /* Ultrix mips cc rejects this. */
19909 typedef int charset[2];
19910 const charset cs;
19911 /* SunOS 4.1.1 cc rejects this. */
19912 char const *const *pcpcc;
19913 char **ppc;
19914 /* NEC SVR4.0.2 mips cc rejects this. */
19915 struct point {int x, y;};
19916 static struct point const zero = {0,0};
19917 /* AIX XL C 1.02.0.0 rejects this.
19918 It does not let you subtract one const X* pointer from another in
19919 an arm of an if-expression whose if-part is not a constant
19920 expression */
19921 const char *g = "string";
19922 pcpcc = &g + (g ? g-g : 0);
19923 /* HPUX 7.0 cc rejects these. */
19924 ++pcpcc;
19925 ppc = (char**) pcpcc;
19926 pcpcc = (char const *const *) ppc;
19927 { /* SCO 3.2v4 cc rejects this. */
19928 char *t;
19929 char const *s = 0 ? (char *) 0 : (char const *) 0;
19931 *t++ = 0;
19932 if (s) return 0;
19934 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19935 int x[] = {25, 17};
19936 const int *foo = &x[0];
19937 ++foo;
19939 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19940 typedef const int *iptr;
19941 iptr p = 0;
19942 ++p;
19944 { /* AIX XL C 1.02.0.0 rejects this saying
19945 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19946 struct s { int j; const int *ap[3]; };
19947 struct s *b; b->j = 5;
19949 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19950 const int foo = 10;
19951 if (!foo) return 0;
19953 return !cs[0] && !zero.x;
19954 #endif
19957 return 0;
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest.$ac_objext; then
19977 ac_cv_c_const=yes
19978 else
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_cv_c_const=no
19985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19987 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19988 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19989 if test $ac_cv_c_const = no; then
19991 cat >>confdefs.h <<\_ACEOF
19992 #define const
19993 _ACEOF
19998 works=no
19999 { echo "$as_me:$LINENO: checking for working volatile" >&5
20000 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h. */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20009 main ()
20011 volatile int x; x = 0;
20013 return 0;
20015 _ACEOF
20016 rm -f conftest.$ac_objext
20017 if { (ac_try="$ac_compile"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20021 esac
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_compile") 2>conftest.er1
20024 ac_status=$?
20025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } && {
20030 test -z "$ac_c_werror_flag" ||
20031 test ! -s conftest.err
20032 } && test -s conftest.$ac_objext; then
20033 works=yes
20034 else
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20039 cat >>confdefs.h <<\_ACEOF
20040 #define volatile
20041 _ACEOF
20046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20047 { echo "$as_me:$LINENO: result: $works" >&5
20048 echo "${ECHO_T}$works" >&6; }
20050 works=no
20051 { echo "$as_me:$LINENO: checking for working signed char" >&5
20052 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20053 cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h. */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20061 main ()
20063 signed char c;
20065 return 0;
20067 _ACEOF
20068 rm -f conftest.$ac_objext
20069 if { (ac_try="$ac_compile"
20070 case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_compile") 2>conftest.er1
20076 ac_status=$?
20077 grep -v '^ *+' conftest.er1 >conftest.err
20078 rm -f conftest.er1
20079 cat conftest.err >&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } && {
20082 test -z "$ac_c_werror_flag" ||
20083 test ! -s conftest.err
20084 } && test -s conftest.$ac_objext; then
20085 works=yes
20086 else
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20091 cat >>confdefs.h <<\_ACEOF
20092 #define signed
20093 _ACEOF
20098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20099 { echo "$as_me:$LINENO: result: $works" >&5
20100 echo "${ECHO_T}$works" >&6; }
20102 have_prototypes=no
20103 { echo "$as_me:$LINENO: checking for prototypes" >&5
20104 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h. */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111 int foo(int x) { return 0; }
20113 main ()
20115 return foo(10);
20117 return 0;
20119 _ACEOF
20120 rm -f conftest.$ac_objext
20121 if { (ac_try="$ac_compile"
20122 case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20125 esac
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_compile") 2>conftest.er1
20128 ac_status=$?
20129 grep -v '^ *+' conftest.er1 >conftest.err
20130 rm -f conftest.er1
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } && {
20134 test -z "$ac_c_werror_flag" ||
20135 test ! -s conftest.err
20136 } && test -s conftest.$ac_objext; then
20139 cat >>confdefs.h <<\_ACEOF
20140 #define HAVE_PROTOTYPES 1
20141 _ACEOF
20143 have_prototypes=yes
20145 else
20146 echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20153 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20154 echo "${ECHO_T}$have_prototypes" >&6; }
20156 works=no
20157 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20158 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20159 cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h. */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20166 #include <stdarg.h>
20167 int foo(int x, ...) {
20168 va_list va;
20169 va_start(va, x);
20170 va_arg(va, int);
20171 va_arg(va, char *);
20172 va_arg(va, double);
20173 return 0;
20177 main ()
20179 return foo(10, "", 3.14);
20181 return 0;
20183 _ACEOF
20184 rm -f conftest.$ac_objext
20185 if { (ac_try="$ac_compile"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189 esac
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_compile") 2>conftest.er1
20192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest.$ac_objext; then
20203 cat >>confdefs.h <<\_ACEOF
20204 #define HAVE_STDARG_PROTOTYPES 1
20205 _ACEOF
20207 works=yes
20209 else
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20217 { echo "$as_me:$LINENO: result: $works" >&5
20218 echo "${ECHO_T}$works" >&6; }
20220 # check for socketpair
20221 { echo "$as_me:$LINENO: checking for socketpair" >&5
20222 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20223 cat >conftest.$ac_ext <<_ACEOF
20224 /* confdefs.h. */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20230 #include <sys/types.h>
20231 #include <sys/socket.h>
20234 main ()
20236 void *x=socketpair
20238 return 0;
20240 _ACEOF
20241 rm -f conftest.$ac_objext
20242 if { (ac_try="$ac_compile"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_compile") 2>conftest.er1
20249 ac_status=$?
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest.$ac_objext; then
20259 cat >>confdefs.h <<\_ACEOF
20260 #define HAVE_SOCKETPAIR 1
20261 _ACEOF
20263 { echo "$as_me:$LINENO: result: yes" >&5
20264 echo "${ECHO_T}yes" >&6; }
20265 else
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20269 { echo "$as_me:$LINENO: result: no" >&5
20270 echo "${ECHO_T}no" >&6; }
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 # check if sockaddr has sa_len member
20277 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20278 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h. */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 #include <sys/types.h>
20286 #include <sys/socket.h>
20288 main ()
20290 struct sockaddr x;
20291 x.sa_len = 0;
20293 return 0;
20295 _ACEOF
20296 rm -f conftest.$ac_objext
20297 if { (ac_try="$ac_compile"
20298 case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20301 esac
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_compile") 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && {
20310 test -z "$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20312 } && test -s conftest.$ac_objext; then
20313 { echo "$as_me:$LINENO: result: yes" >&5
20314 echo "${ECHO_T}yes" >&6; }
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE_SOCKADDR_SA_LEN 1
20318 _ACEOF
20320 else
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 { echo "$as_me:$LINENO: result: no" >&5
20325 echo "${ECHO_T}no" >&6; }
20328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 va_list_is_array=no
20331 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20332 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20333 cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h. */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20340 #ifdef HAVE_STDARG_PROTOTYPES
20341 #include <stdarg.h>
20342 #else
20343 #include <varargs.h>
20344 #endif
20347 main ()
20349 va_list list1, list2; list1 = list2;
20351 return 0;
20353 _ACEOF
20354 rm -f conftest.$ac_objext
20355 if { (ac_try="$ac_compile"
20356 case "(($ac_try" in
20357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358 *) ac_try_echo=$ac_try;;
20359 esac
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361 (eval "$ac_compile") 2>conftest.er1
20362 ac_status=$?
20363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && {
20368 test -z "$ac_c_werror_flag" ||
20369 test ! -s conftest.err
20370 } && test -s conftest.$ac_objext; then
20372 else
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20378 cat >>confdefs.h <<\_ACEOF
20379 #define VA_LIST_IS_ARRAY 1
20380 _ACEOF
20382 va_list_is_array=yes
20386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20387 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20388 echo "${ECHO_T}$va_list_is_array" >&6; }
20390 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20394 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20395 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20396 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h. */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20407 #define gethostbyname_r innocuous_gethostbyname_r
20409 /* System header to define __stub macros and hopefully few prototypes,
20410 which can conflict with char gethostbyname_r (); below.
20411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412 <limits.h> exists even on freestanding compilers. */
20414 #ifdef __STDC__
20415 # include <limits.h>
20416 #else
20417 # include <assert.h>
20418 #endif
20420 #undef gethostbyname_r
20422 /* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
20425 #ifdef __cplusplus
20426 extern "C"
20427 #endif
20428 char gethostbyname_r ();
20429 /* The GNU C library defines this for functions which it implements
20430 to always fail with ENOSYS. Some functions are actually named
20431 something starting with __ and the normal name is an alias. */
20432 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20433 choke me
20434 #endif
20437 main ()
20439 return gethostbyname_r ();
20441 return 0;
20443 _ACEOF
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_link") 2>conftest.er1
20452 ac_status=$?
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } && {
20458 test -z "$ac_c_werror_flag" ||
20459 test ! -s conftest.err
20460 } && test -s conftest$ac_exeext &&
20461 $as_test_x conftest$ac_exeext; then
20462 ac_cv_func_gethostbyname_r=yes
20463 else
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_cv_func_gethostbyname_r=no
20470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20471 conftest$ac_exeext conftest.$ac_ext
20473 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20474 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20475 if test $ac_cv_func_gethostbyname_r = yes; then
20477 cat >>confdefs.h <<\_ACEOF
20478 #define HAVE_GETHOSTBYNAME_R 1
20479 _ACEOF
20481 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20482 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20483 OLD_CFLAGS=$CFLAGS
20484 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h. */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20492 # include <netdb.h>
20495 main ()
20498 char *name;
20499 struct hostent *he, *res;
20500 char buffer[2048];
20501 int buflen = 2048;
20502 int h_errnop;
20504 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20507 return 0;
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_compile") 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } && {
20524 test -z "$ac_c_werror_flag" ||
20525 test ! -s conftest.err
20526 } && test -s conftest.$ac_objext; then
20528 cat >>confdefs.h <<\_ACEOF
20529 #define HAVE_GETHOSTBYNAME_R 1
20530 _ACEOF
20533 cat >>confdefs.h <<\_ACEOF
20534 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20535 _ACEOF
20537 { echo "$as_me:$LINENO: result: yes" >&5
20538 echo "${ECHO_T}yes" >&6; }
20540 else
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20545 { echo "$as_me:$LINENO: result: no" >&5
20546 echo "${ECHO_T}no" >&6; }
20547 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20548 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20549 cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h. */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20556 # include <netdb.h>
20559 main ()
20562 char *name;
20563 struct hostent *he;
20564 char buffer[2048];
20565 int buflen = 2048;
20566 int h_errnop;
20568 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20571 return 0;
20573 _ACEOF
20574 rm -f conftest.$ac_objext
20575 if { (ac_try="$ac_compile"
20576 case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20579 esac
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_compile") 2>conftest.er1
20582 ac_status=$?
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } && {
20588 test -z "$ac_c_werror_flag" ||
20589 test ! -s conftest.err
20590 } && test -s conftest.$ac_objext; then
20592 cat >>confdefs.h <<\_ACEOF
20593 #define HAVE_GETHOSTBYNAME_R 1
20594 _ACEOF
20597 cat >>confdefs.h <<\_ACEOF
20598 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20599 _ACEOF
20601 { echo "$as_me:$LINENO: result: yes" >&5
20602 echo "${ECHO_T}yes" >&6; }
20604 else
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20609 { echo "$as_me:$LINENO: result: no" >&5
20610 echo "${ECHO_T}no" >&6; }
20611 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20612 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20613 cat >conftest.$ac_ext <<_ACEOF
20614 /* confdefs.h. */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20620 # include <netdb.h>
20623 main ()
20626 char *name;
20627 struct hostent *he;
20628 struct hostent_data data;
20630 (void) gethostbyname_r(name, he, &data);
20633 return 0;
20635 _ACEOF
20636 rm -f conftest.$ac_objext
20637 if { (ac_try="$ac_compile"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_compile") 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } && {
20650 test -z "$ac_c_werror_flag" ||
20651 test ! -s conftest.err
20652 } && test -s conftest.$ac_objext; then
20654 cat >>confdefs.h <<\_ACEOF
20655 #define HAVE_GETHOSTBYNAME_R 1
20656 _ACEOF
20659 cat >>confdefs.h <<\_ACEOF
20660 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20661 _ACEOF
20663 { echo "$as_me:$LINENO: result: yes" >&5
20664 echo "${ECHO_T}yes" >&6; }
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20671 { echo "$as_me:$LINENO: result: no" >&5
20672 echo "${ECHO_T}no" >&6; }
20676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20685 CFLAGS=$OLD_CFLAGS
20687 else
20690 for ac_func in gethostbyname
20692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20706 #define $ac_func innocuous_$ac_func
20708 /* System header to define __stub macros and hopefully few prototypes,
20709 which can conflict with char $ac_func (); below.
20710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20711 <limits.h> exists even on freestanding compilers. */
20713 #ifdef __STDC__
20714 # include <limits.h>
20715 #else
20716 # include <assert.h>
20717 #endif
20719 #undef $ac_func
20721 /* Override any GCC internal prototype to avoid an error.
20722 Use char because int might match the return type of a GCC
20723 builtin and then its argument prototype would still apply. */
20724 #ifdef __cplusplus
20725 extern "C"
20726 #endif
20727 char $ac_func ();
20728 /* The GNU C library defines this for functions which it implements
20729 to always fail with ENOSYS. Some functions are actually named
20730 something starting with __ and the normal name is an alias. */
20731 #if defined __stub_$ac_func || defined __stub___$ac_func
20732 choke me
20733 #endif
20736 main ()
20738 return $ac_func ();
20740 return 0;
20742 _ACEOF
20743 rm -f conftest.$ac_objext conftest$ac_exeext
20744 if { (ac_try="$ac_link"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_link") 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest$ac_exeext &&
20760 $as_test_x conftest$ac_exeext; then
20761 eval "$as_ac_var=yes"
20762 else
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 eval "$as_ac_var=no"
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770 conftest$ac_exeext conftest.$ac_ext
20772 ac_res=`eval echo '${'$as_ac_var'}'`
20773 { echo "$as_me:$LINENO: result: $ac_res" >&5
20774 echo "${ECHO_T}$ac_res" >&6; }
20775 if test `eval echo '${'$as_ac_var'}'` = yes; then
20776 cat >>confdefs.h <<_ACEOF
20777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20778 _ACEOF
20781 done
20792 # checks for system services
20793 # (none yet)
20795 # Linux requires this for correct f.p. operations
20796 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20797 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20798 if test "${ac_cv_func___fpu_control+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20800 else
20801 cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h. */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20809 #define __fpu_control innocuous___fpu_control
20811 /* System header to define __stub macros and hopefully few prototypes,
20812 which can conflict with char __fpu_control (); below.
20813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20814 <limits.h> exists even on freestanding compilers. */
20816 #ifdef __STDC__
20817 # include <limits.h>
20818 #else
20819 # include <assert.h>
20820 #endif
20822 #undef __fpu_control
20824 /* Override any GCC internal prototype to avoid an error.
20825 Use char because int might match the return type of a GCC
20826 builtin and then its argument prototype would still apply. */
20827 #ifdef __cplusplus
20828 extern "C"
20829 #endif
20830 char __fpu_control ();
20831 /* The GNU C library defines this for functions which it implements
20832 to always fail with ENOSYS. Some functions are actually named
20833 something starting with __ and the normal name is an alias. */
20834 #if defined __stub___fpu_control || defined __stub_____fpu_control
20835 choke me
20836 #endif
20839 main ()
20841 return __fpu_control ();
20843 return 0;
20845 _ACEOF
20846 rm -f conftest.$ac_objext conftest$ac_exeext
20847 if { (ac_try="$ac_link"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_link") 2>conftest.er1
20854 ac_status=$?
20855 grep -v '^ *+' conftest.er1 >conftest.err
20856 rm -f conftest.er1
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest$ac_exeext &&
20863 $as_test_x conftest$ac_exeext; then
20864 ac_cv_func___fpu_control=yes
20865 else
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20869 ac_cv_func___fpu_control=no
20872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20873 conftest$ac_exeext conftest.$ac_ext
20875 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20876 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20877 if test $ac_cv_func___fpu_control = yes; then
20879 else
20881 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20882 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20883 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20885 else
20886 ac_check_lib_save_LIBS=$LIBS
20887 LIBS="-lieee $LIBS"
20888 cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h. */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20895 /* Override any GCC internal prototype to avoid an error.
20896 Use char because int might match the return type of a GCC
20897 builtin and then its argument prototype would still apply. */
20898 #ifdef __cplusplus
20899 extern "C"
20900 #endif
20901 char __fpu_control ();
20903 main ()
20905 return __fpu_control ();
20907 return 0;
20909 _ACEOF
20910 rm -f conftest.$ac_objext conftest$ac_exeext
20911 if { (ac_try="$ac_link"
20912 case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20915 esac
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_link") 2>conftest.er1
20918 ac_status=$?
20919 grep -v '^ *+' conftest.er1 >conftest.err
20920 rm -f conftest.er1
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } && {
20924 test -z "$ac_c_werror_flag" ||
20925 test ! -s conftest.err
20926 } && test -s conftest$ac_exeext &&
20927 $as_test_x conftest$ac_exeext; then
20928 ac_cv_lib_ieee___fpu_control=yes
20929 else
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20933 ac_cv_lib_ieee___fpu_control=no
20936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20937 conftest$ac_exeext conftest.$ac_ext
20938 LIBS=$ac_check_lib_save_LIBS
20940 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20941 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20942 if test $ac_cv_lib_ieee___fpu_control = yes; then
20943 cat >>confdefs.h <<_ACEOF
20944 #define HAVE_LIBIEEE 1
20945 _ACEOF
20947 LIBS="-lieee $LIBS"
20955 # Check for --with-fpectl
20956 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20957 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20959 # Check whether --with-fpectl was given.
20960 if test "${with_fpectl+set}" = set; then
20961 withval=$with_fpectl;
20962 if test "$withval" != no
20963 then
20965 cat >>confdefs.h <<\_ACEOF
20966 #define WANT_SIGFPE_HANDLER 1
20967 _ACEOF
20969 { echo "$as_me:$LINENO: result: yes" >&5
20970 echo "${ECHO_T}yes" >&6; }
20971 else { echo "$as_me:$LINENO: result: no" >&5
20972 echo "${ECHO_T}no" >&6; }
20974 else
20975 { echo "$as_me:$LINENO: result: no" >&5
20976 echo "${ECHO_T}no" >&6; }
20980 # check for --with-libm=...
20982 case $ac_sys_system in
20983 Darwin) ;;
20984 BeOS) ;;
20985 *) LIBM=-lm
20986 esac
20987 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20988 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20990 # Check whether --with-libm was given.
20991 if test "${with_libm+set}" = set; then
20992 withval=$with_libm;
20993 if test "$withval" = no
20994 then LIBM=
20995 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20996 echo "${ECHO_T}force LIBM empty" >&6; }
20997 elif test "$withval" != yes
20998 then LIBM=$withval
20999 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21000 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21001 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21002 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21003 { (exit 1); exit 1; }; }
21005 else
21006 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21007 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21011 # check for --with-libc=...
21013 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21014 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21016 # Check whether --with-libc was given.
21017 if test "${with_libc+set}" = set; then
21018 withval=$with_libc;
21019 if test "$withval" = no
21020 then LIBC=
21021 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21022 echo "${ECHO_T}force LIBC empty" >&6; }
21023 elif test "$withval" != yes
21024 then LIBC=$withval
21025 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21026 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21027 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21028 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21029 { (exit 1); exit 1; }; }
21031 else
21032 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21033 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21037 # ************************************
21038 # * Check for mathematical functions *
21039 # ************************************
21041 LIBS_SAVE=$LIBS
21042 LIBS="$LIBS $LIBM"
21044 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21045 # -0. on some architectures.
21046 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21047 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21048 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 else
21052 if test "$cross_compiling" = yes; then
21053 ac_cv_tanh_preserves_zero_sign=no
21054 else
21055 cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h. */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21062 #include <math.h>
21063 #include <stdlib.h>
21064 int main() {
21065 /* return 0 if either negative zeros don't exist
21066 on this platform or if negative zeros exist
21067 and tanh(-0.) == -0. */
21068 if (atan2(0., -1.) == atan2(-0., -1.) ||
21069 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21070 else exit(1);
21073 _ACEOF
21074 rm -f conftest$ac_exeext
21075 if { (ac_try="$ac_link"
21076 case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_link") 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21085 { (case "(($ac_try" in
21086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_try") 2>&5
21091 ac_status=$?
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
21094 ac_cv_tanh_preserves_zero_sign=yes
21095 else
21096 echo "$as_me: program exited with status $ac_status" >&5
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21100 ( exit $ac_status )
21101 ac_cv_tanh_preserves_zero_sign=no
21103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21109 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21110 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21111 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21112 then
21114 cat >>confdefs.h <<\_ACEOF
21115 #define TANH_PRESERVES_ZERO_SIGN 1
21116 _ACEOF
21121 for ac_func in hypot
21123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
21128 else
21129 cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h. */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21137 #define $ac_func innocuous_$ac_func
21139 /* System header to define __stub macros and hopefully few prototypes,
21140 which can conflict with char $ac_func (); below.
21141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21142 <limits.h> exists even on freestanding compilers. */
21144 #ifdef __STDC__
21145 # include <limits.h>
21146 #else
21147 # include <assert.h>
21148 #endif
21150 #undef $ac_func
21152 /* Override any GCC internal prototype to avoid an error.
21153 Use char because int might match the return type of a GCC
21154 builtin and then its argument prototype would still apply. */
21155 #ifdef __cplusplus
21156 extern "C"
21157 #endif
21158 char $ac_func ();
21159 /* The GNU C library defines this for functions which it implements
21160 to always fail with ENOSYS. Some functions are actually named
21161 something starting with __ and the normal name is an alias. */
21162 #if defined __stub_$ac_func || defined __stub___$ac_func
21163 choke me
21164 #endif
21167 main ()
21169 return $ac_func ();
21171 return 0;
21173 _ACEOF
21174 rm -f conftest.$ac_objext conftest$ac_exeext
21175 if { (ac_try="$ac_link"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_link") 2>conftest.er1
21182 ac_status=$?
21183 grep -v '^ *+' conftest.er1 >conftest.err
21184 rm -f conftest.er1
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest$ac_exeext &&
21191 $as_test_x conftest$ac_exeext; then
21192 eval "$as_ac_var=yes"
21193 else
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 eval "$as_ac_var=no"
21200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21201 conftest$ac_exeext conftest.$ac_ext
21203 ac_res=`eval echo '${'$as_ac_var'}'`
21204 { echo "$as_me:$LINENO: result: $ac_res" >&5
21205 echo "${ECHO_T}$ac_res" >&6; }
21206 if test `eval echo '${'$as_ac_var'}'` = yes; then
21207 cat >>confdefs.h <<_ACEOF
21208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21209 _ACEOF
21211 else
21212 case " $LIBOBJS " in
21213 *" $ac_func.$ac_objext "* ) ;;
21214 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21216 esac
21219 done
21232 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21238 echo $ECHO_N "(cached) $ECHO_C" >&6
21239 else
21240 cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h. */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21248 #define $ac_func innocuous_$ac_func
21250 /* System header to define __stub macros and hopefully few prototypes,
21251 which can conflict with char $ac_func (); below.
21252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21253 <limits.h> exists even on freestanding compilers. */
21255 #ifdef __STDC__
21256 # include <limits.h>
21257 #else
21258 # include <assert.h>
21259 #endif
21261 #undef $ac_func
21263 /* Override any GCC internal prototype to avoid an error.
21264 Use char because int might match the return type of a GCC
21265 builtin and then its argument prototype would still apply. */
21266 #ifdef __cplusplus
21267 extern "C"
21268 #endif
21269 char $ac_func ();
21270 /* The GNU C library defines this for functions which it implements
21271 to always fail with ENOSYS. Some functions are actually named
21272 something starting with __ and the normal name is an alias. */
21273 #if defined __stub_$ac_func || defined __stub___$ac_func
21274 choke me
21275 #endif
21278 main ()
21280 return $ac_func ();
21282 return 0;
21284 _ACEOF
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (ac_try="$ac_link"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_link") 2>conftest.er1
21293 ac_status=$?
21294 grep -v '^ *+' conftest.er1 >conftest.err
21295 rm -f conftest.er1
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest$ac_exeext &&
21302 $as_test_x conftest$ac_exeext; then
21303 eval "$as_ac_var=yes"
21304 else
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 eval "$as_ac_var=no"
21311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21312 conftest$ac_exeext conftest.$ac_ext
21314 ac_res=`eval echo '${'$as_ac_var'}'`
21315 { echo "$as_me:$LINENO: result: $ac_res" >&5
21316 echo "${ECHO_T}$ac_res" >&6; }
21317 if test `eval echo '${'$as_ac_var'}'` = yes; then
21318 cat >>confdefs.h <<_ACEOF
21319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21320 _ACEOF
21323 done
21326 LIBS=$LIBS_SAVE
21328 # check for wchar.h
21329 if test "${ac_cv_header_wchar_h+set}" = set; then
21330 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21331 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21332 if test "${ac_cv_header_wchar_h+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21336 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21337 else
21338 # Is the header compilable?
21339 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21340 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h. */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 $ac_includes_default
21348 #include <wchar.h>
21349 _ACEOF
21350 rm -f conftest.$ac_objext
21351 if { (ac_try="$ac_compile"
21352 case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21355 esac
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_compile") 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest.$ac_objext; then
21367 ac_header_compiler=yes
21368 else
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21372 ac_header_compiler=no
21375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21377 echo "${ECHO_T}$ac_header_compiler" >&6; }
21379 # Is the header present?
21380 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21381 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h. */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 #include <wchar.h>
21389 _ACEOF
21390 if { (ac_try="$ac_cpp conftest.$ac_ext"
21391 case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21394 esac
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21397 ac_status=$?
21398 grep -v '^ *+' conftest.er1 >conftest.err
21399 rm -f conftest.er1
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } >/dev/null && {
21403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21404 test ! -s conftest.err
21405 }; then
21406 ac_header_preproc=yes
21407 else
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ac_header_preproc=no
21414 rm -f conftest.err conftest.$ac_ext
21415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21416 echo "${ECHO_T}$ac_header_preproc" >&6; }
21418 # So? What about this header?
21419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21420 yes:no: )
21421 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21422 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21423 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21424 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21425 ac_header_preproc=yes
21427 no:yes:* )
21428 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21429 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21430 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21431 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21433 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21434 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21435 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21436 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21437 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21438 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21439 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21440 ( cat <<\_ASBOX
21441 ## ------------------------------------------------ ##
21442 ## Report this to http://www.python.org/python-bugs ##
21443 ## ------------------------------------------------ ##
21444 _ASBOX
21445 ) | sed "s/^/$as_me: WARNING: /" >&2
21447 esac
21448 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21449 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21450 if test "${ac_cv_header_wchar_h+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453 ac_cv_header_wchar_h=$ac_header_preproc
21455 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21456 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21459 if test $ac_cv_header_wchar_h = yes; then
21462 cat >>confdefs.h <<\_ACEOF
21463 #define HAVE_WCHAR_H 1
21464 _ACEOF
21466 wchar_h="yes"
21468 else
21469 wchar_h="no"
21475 # determine wchar_t size
21476 if test "$wchar_h" = yes
21477 then
21478 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21479 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21480 if test "${ac_cv_type_wchar_t+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 else
21483 cat >conftest.$ac_ext <<_ACEOF
21484 /* confdefs.h. */
21485 _ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h. */
21489 #include <wchar.h>
21491 typedef wchar_t ac__type_new_;
21493 main ()
21495 if ((ac__type_new_ *) 0)
21496 return 0;
21497 if (sizeof (ac__type_new_))
21498 return 0;
21500 return 0;
21502 _ACEOF
21503 rm -f conftest.$ac_objext
21504 if { (ac_try="$ac_compile"
21505 case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21508 esac
21509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510 (eval "$ac_compile") 2>conftest.er1
21511 ac_status=$?
21512 grep -v '^ *+' conftest.er1 >conftest.err
21513 rm -f conftest.er1
21514 cat conftest.err >&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } && {
21517 test -z "$ac_c_werror_flag" ||
21518 test ! -s conftest.err
21519 } && test -s conftest.$ac_objext; then
21520 ac_cv_type_wchar_t=yes
21521 else
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21525 ac_cv_type_wchar_t=no
21528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21531 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21533 # The cast to long int works around a bug in the HP C Compiler
21534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21536 # This bug is HP SR number 8606223364.
21537 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21538 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21539 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541 else
21542 if test "$cross_compiling" = yes; then
21543 # Depending upon the size, compute the lo and hi bounds.
21544 cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h. */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21550 #include <wchar.h>
21552 typedef wchar_t ac__type_sizeof_;
21554 main ()
21556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21557 test_array [0] = 0
21560 return 0;
21562 _ACEOF
21563 rm -f conftest.$ac_objext
21564 if { (ac_try="$ac_compile"
21565 case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21568 esac
21569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21570 (eval "$ac_compile") 2>conftest.er1
21571 ac_status=$?
21572 grep -v '^ *+' conftest.er1 >conftest.err
21573 rm -f conftest.er1
21574 cat conftest.err >&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } && {
21577 test -z "$ac_c_werror_flag" ||
21578 test ! -s conftest.err
21579 } && test -s conftest.$ac_objext; then
21580 ac_lo=0 ac_mid=0
21581 while :; do
21582 cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h. */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 #include <wchar.h>
21590 typedef wchar_t ac__type_sizeof_;
21592 main ()
21594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21595 test_array [0] = 0
21598 return 0;
21600 _ACEOF
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_compile") 2>conftest.er1
21609 ac_status=$?
21610 grep -v '^ *+' conftest.er1 >conftest.err
21611 rm -f conftest.er1
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } && {
21615 test -z "$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21617 } && test -s conftest.$ac_objext; then
21618 ac_hi=$ac_mid; break
21619 else
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 ac_lo=`expr $ac_mid + 1`
21624 if test $ac_lo -le $ac_mid; then
21625 ac_lo= ac_hi=
21626 break
21628 ac_mid=`expr 2 '*' $ac_mid + 1`
21631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21632 done
21633 else
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21637 cat >conftest.$ac_ext <<_ACEOF
21638 /* confdefs.h. */
21639 _ACEOF
21640 cat confdefs.h >>conftest.$ac_ext
21641 cat >>conftest.$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21643 #include <wchar.h>
21645 typedef wchar_t ac__type_sizeof_;
21647 main ()
21649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21650 test_array [0] = 0
21653 return 0;
21655 _ACEOF
21656 rm -f conftest.$ac_objext
21657 if { (ac_try="$ac_compile"
21658 case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_compile") 2>conftest.er1
21664 ac_status=$?
21665 grep -v '^ *+' conftest.er1 >conftest.err
21666 rm -f conftest.er1
21667 cat conftest.err >&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } && {
21670 test -z "$ac_c_werror_flag" ||
21671 test ! -s conftest.err
21672 } && test -s conftest.$ac_objext; then
21673 ac_hi=-1 ac_mid=-1
21674 while :; do
21675 cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h. */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 #include <wchar.h>
21683 typedef wchar_t ac__type_sizeof_;
21685 main ()
21687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21688 test_array [0] = 0
21691 return 0;
21693 _ACEOF
21694 rm -f conftest.$ac_objext
21695 if { (ac_try="$ac_compile"
21696 case "(($ac_try" in
21697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698 *) ac_try_echo=$ac_try;;
21699 esac
21700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21701 (eval "$ac_compile") 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest.$ac_objext; then
21711 ac_lo=$ac_mid; break
21712 else
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21716 ac_hi=`expr '(' $ac_mid ')' - 1`
21717 if test $ac_mid -le $ac_hi; then
21718 ac_lo= ac_hi=
21719 break
21721 ac_mid=`expr 2 '*' $ac_mid`
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 done
21726 else
21727 echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21730 ac_lo= ac_hi=
21733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737 # Binary search between lo and hi bounds.
21738 while test "x$ac_lo" != "x$ac_hi"; do
21739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21740 cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h. */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 #include <wchar.h>
21748 typedef wchar_t ac__type_sizeof_;
21750 main ()
21752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21753 test_array [0] = 0
21756 return 0;
21758 _ACEOF
21759 rm -f conftest.$ac_objext
21760 if { (ac_try="$ac_compile"
21761 case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21764 esac
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766 (eval "$ac_compile") 2>conftest.er1
21767 ac_status=$?
21768 grep -v '^ *+' conftest.er1 >conftest.err
21769 rm -f conftest.er1
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } && {
21773 test -z "$ac_c_werror_flag" ||
21774 test ! -s conftest.err
21775 } && test -s conftest.$ac_objext; then
21776 ac_hi=$ac_mid
21777 else
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_lo=`expr '(' $ac_mid ')' + 1`
21784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785 done
21786 case $ac_lo in
21787 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21788 '') if test "$ac_cv_type_wchar_t" = yes; then
21789 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21790 See \`config.log' for more details." >&5
21791 echo "$as_me: error: cannot compute sizeof (wchar_t)
21792 See \`config.log' for more details." >&2;}
21793 { (exit 77); exit 77; }; }
21794 else
21795 ac_cv_sizeof_wchar_t=0
21796 fi ;;
21797 esac
21798 else
21799 cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h. */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21805 #include <wchar.h>
21807 typedef wchar_t ac__type_sizeof_;
21808 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21809 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21810 #include <stdio.h>
21811 #include <stdlib.h>
21813 main ()
21816 FILE *f = fopen ("conftest.val", "w");
21817 if (! f)
21818 return 1;
21819 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21821 long int i = longval ();
21822 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21823 return 1;
21824 fprintf (f, "%ld\n", i);
21826 else
21828 unsigned long int i = ulongval ();
21829 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21830 return 1;
21831 fprintf (f, "%lu\n", i);
21833 return ferror (f) || fclose (f) != 0;
21836 return 0;
21838 _ACEOF
21839 rm -f conftest$ac_exeext
21840 if { (ac_try="$ac_link"
21841 case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21844 esac
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_link") 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21850 { (case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_try") 2>&5
21856 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; }; then
21859 ac_cv_sizeof_wchar_t=`cat conftest.val`
21860 else
21861 echo "$as_me: program exited with status $ac_status" >&5
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21865 ( exit $ac_status )
21866 if test "$ac_cv_type_wchar_t" = yes; then
21867 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21868 See \`config.log' for more details." >&5
21869 echo "$as_me: error: cannot compute sizeof (wchar_t)
21870 See \`config.log' for more details." >&2;}
21871 { (exit 77); exit 77; }; }
21872 else
21873 ac_cv_sizeof_wchar_t=0
21876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21878 rm -f conftest.val
21880 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21881 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21885 cat >>confdefs.h <<_ACEOF
21886 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21887 _ACEOF
21892 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21893 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21894 have_ucs4_tcl=no
21895 cat >conftest.$ac_ext <<_ACEOF
21896 /* confdefs.h. */
21897 _ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h. */
21902 #include <tcl.h>
21903 #if TCL_UTF_MAX != 6
21904 # error "NOT UCS4_TCL"
21905 #endif
21907 main ()
21911 return 0;
21913 _ACEOF
21914 rm -f conftest.$ac_objext
21915 if { (ac_try="$ac_compile"
21916 case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21919 esac
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921 (eval "$ac_compile") 2>conftest.er1
21922 ac_status=$?
21923 grep -v '^ *+' conftest.er1 >conftest.err
21924 rm -f conftest.er1
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } && {
21928 test -z "$ac_c_werror_flag" ||
21929 test ! -s conftest.err
21930 } && test -s conftest.$ac_objext; then
21933 cat >>confdefs.h <<\_ACEOF
21934 #define HAVE_UCS4_TCL 1
21935 _ACEOF
21937 have_ucs4_tcl=yes
21939 else
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21948 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21950 # check whether wchar_t is signed or not
21951 if test "$wchar_h" = yes
21952 then
21953 # check whether wchar_t is signed or not
21954 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21955 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21956 if test "${ac_cv_wchar_t_signed+set}" = set; then
21957 echo $ECHO_N "(cached) $ECHO_C" >&6
21958 else
21960 if test "$cross_compiling" = yes; then
21961 ac_cv_wchar_t_signed=yes
21962 else
21963 cat >conftest.$ac_ext <<_ACEOF
21964 /* confdefs.h. */
21965 _ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21970 #include <wchar.h>
21971 int main()
21973 /* Success: exit code 0 */
21974 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21977 _ACEOF
21978 rm -f conftest$ac_exeext
21979 if { (ac_try="$ac_link"
21980 case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21983 esac
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_link") 2>&5
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21989 { (case "(($ac_try" in
21990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21992 esac
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994 (eval "$ac_try") 2>&5
21995 ac_status=$?
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; }; then
21998 ac_cv_wchar_t_signed=yes
21999 else
22000 echo "$as_me: program exited with status $ac_status" >&5
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ( exit $ac_status )
22005 ac_cv_wchar_t_signed=no
22007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22013 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22014 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22017 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
22018 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
22019 # Check whether --enable-unicode was given.
22020 if test "${enable_unicode+set}" = set; then
22021 enableval=$enable_unicode;
22022 else
22023 enable_unicode=yes
22027 if test $enable_unicode = yes
22028 then
22029 # Without any arguments, Py_UNICODE defaults to two-byte mode
22030 case "$have_ucs4_tcl" in
22031 yes) enable_unicode="ucs4"
22033 *) enable_unicode="ucs2"
22035 esac
22040 case "$enable_unicode" in
22041 ucs2) unicode_size="2"
22042 cat >>confdefs.h <<\_ACEOF
22043 #define Py_UNICODE_SIZE 2
22044 _ACEOF
22047 ucs4) unicode_size="4"
22048 cat >>confdefs.h <<\_ACEOF
22049 #define Py_UNICODE_SIZE 4
22050 _ACEOF
22053 esac
22059 if test "$enable_unicode" = "no"
22060 then
22061 UNICODE_OBJS=""
22062 { echo "$as_me:$LINENO: result: not used" >&5
22063 echo "${ECHO_T}not used" >&6; }
22064 else
22065 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
22067 cat >>confdefs.h <<\_ACEOF
22068 #define Py_USING_UNICODE 1
22069 _ACEOF
22072 # wchar_t is only usable if it maps to an unsigned type
22073 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22074 -a "$ac_cv_wchar_t_signed" = "no"
22075 then
22076 PY_UNICODE_TYPE="wchar_t"
22078 cat >>confdefs.h <<\_ACEOF
22079 #define HAVE_USABLE_WCHAR_T 1
22080 _ACEOF
22082 cat >>confdefs.h <<\_ACEOF
22083 #define PY_UNICODE_TYPE wchar_t
22084 _ACEOF
22086 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22087 then
22088 PY_UNICODE_TYPE="unsigned short"
22089 cat >>confdefs.h <<\_ACEOF
22090 #define PY_UNICODE_TYPE unsigned short
22091 _ACEOF
22093 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22094 then
22095 PY_UNICODE_TYPE="unsigned long"
22096 cat >>confdefs.h <<\_ACEOF
22097 #define PY_UNICODE_TYPE unsigned long
22098 _ACEOF
22100 else
22101 PY_UNICODE_TYPE="no type found"
22103 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22104 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22107 # check for endianness
22108 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22109 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22110 if test "${ac_cv_c_bigendian+set}" = set; then
22111 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 else
22113 # See if sys/param.h defines the BYTE_ORDER macro.
22114 cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h. */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 #include <sys/types.h>
22121 #include <sys/param.h>
22124 main ()
22126 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22127 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22128 bogus endian macros
22129 #endif
22132 return 0;
22134 _ACEOF
22135 rm -f conftest.$ac_objext
22136 if { (ac_try="$ac_compile"
22137 case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22140 esac
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142 (eval "$ac_compile") 2>conftest.er1
22143 ac_status=$?
22144 grep -v '^ *+' conftest.er1 >conftest.err
22145 rm -f conftest.er1
22146 cat conftest.err >&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } && {
22149 test -z "$ac_c_werror_flag" ||
22150 test ! -s conftest.err
22151 } && test -s conftest.$ac_objext; then
22152 # It does; now see whether it defined to BIG_ENDIAN or not.
22153 cat >conftest.$ac_ext <<_ACEOF
22154 /* confdefs.h. */
22155 _ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 #include <sys/types.h>
22160 #include <sys/param.h>
22163 main ()
22165 #if BYTE_ORDER != BIG_ENDIAN
22166 not big endian
22167 #endif
22170 return 0;
22172 _ACEOF
22173 rm -f conftest.$ac_objext
22174 if { (ac_try="$ac_compile"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_compile") 2>conftest.er1
22181 ac_status=$?
22182 grep -v '^ *+' conftest.er1 >conftest.err
22183 rm -f conftest.er1
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } && {
22187 test -z "$ac_c_werror_flag" ||
22188 test ! -s conftest.err
22189 } && test -s conftest.$ac_objext; then
22190 ac_cv_c_bigendian=yes
22191 else
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ac_cv_c_bigendian=no
22198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22199 else
22200 echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22203 # It does not; compile a test program.
22204 if test "$cross_compiling" = yes; then
22205 # try to guess the endianness by grepping values into an object file
22206 ac_cv_c_bigendian=unknown
22207 cat >conftest.$ac_ext <<_ACEOF
22208 /* confdefs.h. */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22213 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22214 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22215 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22216 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22217 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22218 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22220 main ()
22222 _ascii (); _ebcdic ();
22224 return 0;
22226 _ACEOF
22227 rm -f conftest.$ac_objext
22228 if { (ac_try="$ac_compile"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22232 esac
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_compile") 2>conftest.er1
22235 ac_status=$?
22236 grep -v '^ *+' conftest.er1 >conftest.err
22237 rm -f conftest.er1
22238 cat conftest.err >&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } && {
22241 test -z "$ac_c_werror_flag" ||
22242 test ! -s conftest.err
22243 } && test -s conftest.$ac_objext; then
22244 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22245 ac_cv_c_bigendian=yes
22247 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22248 if test "$ac_cv_c_bigendian" = unknown; then
22249 ac_cv_c_bigendian=no
22250 else
22251 # finding both strings is unlikely to happen, but who knows?
22252 ac_cv_c_bigendian=unknown
22255 else
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 else
22264 cat >conftest.$ac_ext <<_ACEOF
22265 /* confdefs.h. */
22266 _ACEOF
22267 cat confdefs.h >>conftest.$ac_ext
22268 cat >>conftest.$ac_ext <<_ACEOF
22269 /* end confdefs.h. */
22270 $ac_includes_default
22272 main ()
22275 /* Are we little or big endian? From Harbison&Steele. */
22276 union
22278 long int l;
22279 char c[sizeof (long int)];
22280 } u;
22281 u.l = 1;
22282 return u.c[sizeof (long int) - 1] == 1;
22285 return 0;
22287 _ACEOF
22288 rm -f conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22299 { (case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_try") 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_cv_c_bigendian=no
22309 else
22310 echo "$as_me: program exited with status $ac_status" >&5
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 ( exit $ac_status )
22315 ac_cv_c_bigendian=yes
22317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22325 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22326 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22327 case $ac_cv_c_bigendian in
22328 yes)
22330 cat >>confdefs.h <<\_ACEOF
22331 #define WORDS_BIGENDIAN 1
22332 _ACEOF
22337 { { echo "$as_me:$LINENO: error: unknown endianness
22338 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22339 echo "$as_me: error: unknown endianness
22340 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22341 { (exit 1); exit 1; }; } ;;
22342 esac
22345 # Check whether right shifting a negative integer extends the sign bit
22346 # or fills with zeros (like the Cray J90, according to Tim Peters).
22347 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22348 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22349 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 else
22353 if test "$cross_compiling" = yes; then
22354 ac_cv_rshift_extends_sign=yes
22355 else
22356 cat >conftest.$ac_ext <<_ACEOF
22357 /* confdefs.h. */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22363 int main()
22365 exit(((-1)>>3 == -1) ? 0 : 1);
22368 _ACEOF
22369 rm -f conftest$ac_exeext
22370 if { (ac_try="$ac_link"
22371 case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22374 esac
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_link") 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22380 { (case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22383 esac
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_try") 2>&5
22386 ac_status=$?
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; }; then
22389 ac_cv_rshift_extends_sign=yes
22390 else
22391 echo "$as_me: program exited with status $ac_status" >&5
22392 echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22395 ( exit $ac_status )
22396 ac_cv_rshift_extends_sign=no
22398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22404 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22405 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22406 if test "$ac_cv_rshift_extends_sign" = no
22407 then
22409 cat >>confdefs.h <<\_ACEOF
22410 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22411 _ACEOF
22415 # check for getc_unlocked and related locking functions
22416 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22417 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22418 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22420 else
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h. */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22428 #include <stdio.h>
22430 main ()
22433 FILE *f = fopen("/dev/null", "r");
22434 flockfile(f);
22435 getc_unlocked(f);
22436 funlockfile(f);
22439 return 0;
22441 _ACEOF
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_link") 2>conftest.er1
22450 ac_status=$?
22451 grep -v '^ *+' conftest.er1 >conftest.err
22452 rm -f conftest.er1
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest$ac_exeext &&
22459 $as_test_x conftest$ac_exeext; then
22460 ac_cv_have_getc_unlocked=yes
22461 else
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22465 ac_cv_have_getc_unlocked=no
22468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22469 conftest$ac_exeext conftest.$ac_ext
22472 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22473 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22474 if test "$ac_cv_have_getc_unlocked" = yes
22475 then
22477 cat >>confdefs.h <<\_ACEOF
22478 #define HAVE_GETC_UNLOCKED 1
22479 _ACEOF
22483 # check where readline lives
22484 # save the value of LIBS so we don't actually link Python with readline
22485 LIBS_no_readline=$LIBS
22487 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22488 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22489 if test "${ac_cv_lib_readline_readline+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22491 else
22492 ac_check_lib_save_LIBS=$LIBS
22493 LIBS="-lreadline $LIBS"
22494 cat >conftest.$ac_ext <<_ACEOF
22495 /* confdefs.h. */
22496 _ACEOF
22497 cat confdefs.h >>conftest.$ac_ext
22498 cat >>conftest.$ac_ext <<_ACEOF
22499 /* end confdefs.h. */
22501 /* Override any GCC internal prototype to avoid an error.
22502 Use char because int might match the return type of a GCC
22503 builtin and then its argument prototype would still apply. */
22504 #ifdef __cplusplus
22505 extern "C"
22506 #endif
22507 char readline ();
22509 main ()
22511 return readline ();
22513 return 0;
22515 _ACEOF
22516 rm -f conftest.$ac_objext conftest$ac_exeext
22517 if { (ac_try="$ac_link"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22521 esac
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_link") 2>conftest.er1
22524 ac_status=$?
22525 grep -v '^ *+' conftest.er1 >conftest.err
22526 rm -f conftest.er1
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } && {
22530 test -z "$ac_c_werror_flag" ||
22531 test ! -s conftest.err
22532 } && test -s conftest$ac_exeext &&
22533 $as_test_x conftest$ac_exeext; then
22534 ac_cv_lib_readline_readline=yes
22535 else
22536 echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22539 ac_cv_lib_readline_readline=no
22542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22543 conftest$ac_exeext conftest.$ac_ext
22544 LIBS=$ac_check_lib_save_LIBS
22546 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22547 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22548 if test $ac_cv_lib_readline_readline = yes; then
22549 cat >>confdefs.h <<_ACEOF
22550 #define HAVE_LIBREADLINE 1
22551 _ACEOF
22553 LIBS="-lreadline $LIBS"
22557 if test "$ac_cv_have_readline_readline" = no
22558 then
22560 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22561 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22562 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22564 else
22565 ac_check_lib_save_LIBS=$LIBS
22566 LIBS="-ltermcap $LIBS"
22567 cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h. */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22574 /* Override any GCC internal prototype to avoid an error.
22575 Use char because int might match the return type of a GCC
22576 builtin and then its argument prototype would still apply. */
22577 #ifdef __cplusplus
22578 extern "C"
22579 #endif
22580 char readline ();
22582 main ()
22584 return readline ();
22586 return 0;
22588 _ACEOF
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (ac_try="$ac_link"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_link") 2>conftest.er1
22597 ac_status=$?
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest$ac_exeext &&
22606 $as_test_x conftest$ac_exeext; then
22607 ac_cv_lib_termcap_readline=yes
22608 else
22609 echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22612 ac_cv_lib_termcap_readline=no
22615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22616 conftest$ac_exeext conftest.$ac_ext
22617 LIBS=$ac_check_lib_save_LIBS
22619 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22620 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22621 if test $ac_cv_lib_termcap_readline = yes; then
22622 cat >>confdefs.h <<_ACEOF
22623 #define HAVE_LIBTERMCAP 1
22624 _ACEOF
22626 LIBS="-ltermcap $LIBS"
22632 # check for readline 2.1
22633 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22634 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22635 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22636 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 else
22638 ac_check_lib_save_LIBS=$LIBS
22639 LIBS="-lreadline $LIBS"
22640 cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h. */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22647 /* Override any GCC internal prototype to avoid an error.
22648 Use char because int might match the return type of a GCC
22649 builtin and then its argument prototype would still apply. */
22650 #ifdef __cplusplus
22651 extern "C"
22652 #endif
22653 char rl_callback_handler_install ();
22655 main ()
22657 return rl_callback_handler_install ();
22659 return 0;
22661 _ACEOF
22662 rm -f conftest.$ac_objext conftest$ac_exeext
22663 if { (ac_try="$ac_link"
22664 case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22667 esac
22668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_link") 2>conftest.er1
22670 ac_status=$?
22671 grep -v '^ *+' conftest.er1 >conftest.err
22672 rm -f conftest.er1
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest$ac_exeext &&
22679 $as_test_x conftest$ac_exeext; then
22680 ac_cv_lib_readline_rl_callback_handler_install=yes
22681 else
22682 echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22685 ac_cv_lib_readline_rl_callback_handler_install=no
22688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22689 conftest$ac_exeext conftest.$ac_ext
22690 LIBS=$ac_check_lib_save_LIBS
22692 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22693 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22694 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_RL_CALLBACK 1
22698 _ACEOF
22703 # check for readline 2.2
22704 cat >conftest.$ac_ext <<_ACEOF
22705 /* confdefs.h. */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710 #include <readline/readline.h>
22711 _ACEOF
22712 if { (ac_try="$ac_cpp conftest.$ac_ext"
22713 case "(($ac_try" in
22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715 *) ac_try_echo=$ac_try;;
22716 esac
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22719 ac_status=$?
22720 grep -v '^ *+' conftest.er1 >conftest.err
22721 rm -f conftest.er1
22722 cat conftest.err >&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } >/dev/null && {
22725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 }; then
22728 have_readline=yes
22729 else
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 have_readline=no
22736 rm -f conftest.err conftest.$ac_ext
22737 if test $have_readline = yes
22738 then
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 #include <readline/readline.h>
22747 _ACEOF
22748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22749 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
22751 cat >>confdefs.h <<\_ACEOF
22752 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22753 _ACEOF
22756 rm -f conftest*
22760 # check for readline 4.0
22761 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22762 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22763 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22765 else
22766 ac_check_lib_save_LIBS=$LIBS
22767 LIBS="-lreadline $LIBS"
22768 cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h. */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h. */
22775 /* Override any GCC internal prototype to avoid an error.
22776 Use char because int might match the return type of a GCC
22777 builtin and then its argument prototype would still apply. */
22778 #ifdef __cplusplus
22779 extern "C"
22780 #endif
22781 char rl_pre_input_hook ();
22783 main ()
22785 return rl_pre_input_hook ();
22787 return 0;
22789 _ACEOF
22790 rm -f conftest.$ac_objext conftest$ac_exeext
22791 if { (ac_try="$ac_link"
22792 case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22795 esac
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797 (eval "$ac_link") 2>conftest.er1
22798 ac_status=$?
22799 grep -v '^ *+' conftest.er1 >conftest.err
22800 rm -f conftest.er1
22801 cat conftest.err >&5
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } && {
22804 test -z "$ac_c_werror_flag" ||
22805 test ! -s conftest.err
22806 } && test -s conftest$ac_exeext &&
22807 $as_test_x conftest$ac_exeext; then
22808 ac_cv_lib_readline_rl_pre_input_hook=yes
22809 else
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22813 ac_cv_lib_readline_rl_pre_input_hook=no
22816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22817 conftest$ac_exeext conftest.$ac_ext
22818 LIBS=$ac_check_lib_save_LIBS
22820 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22821 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22822 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22824 cat >>confdefs.h <<\_ACEOF
22825 #define HAVE_RL_PRE_INPUT_HOOK 1
22826 _ACEOF
22831 # also in 4.0
22832 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22833 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22834 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22836 else
22837 ac_check_lib_save_LIBS=$LIBS
22838 LIBS="-lreadline $LIBS"
22839 cat >conftest.$ac_ext <<_ACEOF
22840 /* confdefs.h. */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22846 /* Override any GCC internal prototype to avoid an error.
22847 Use char because int might match the return type of a GCC
22848 builtin and then its argument prototype would still apply. */
22849 #ifdef __cplusplus
22850 extern "C"
22851 #endif
22852 char rl_completion_display_matches_hook ();
22854 main ()
22856 return rl_completion_display_matches_hook ();
22858 return 0;
22860 _ACEOF
22861 rm -f conftest.$ac_objext conftest$ac_exeext
22862 if { (ac_try="$ac_link"
22863 case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22866 esac
22867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_link") 2>conftest.er1
22869 ac_status=$?
22870 grep -v '^ *+' conftest.er1 >conftest.err
22871 rm -f conftest.er1
22872 cat conftest.err >&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } && {
22875 test -z "$ac_c_werror_flag" ||
22876 test ! -s conftest.err
22877 } && test -s conftest$ac_exeext &&
22878 $as_test_x conftest$ac_exeext; then
22879 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
22880 else
22881 echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22884 ac_cv_lib_readline_rl_completion_display_matches_hook=no
22887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22888 conftest$ac_exeext conftest.$ac_ext
22889 LIBS=$ac_check_lib_save_LIBS
22891 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22892 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22893 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22895 cat >>confdefs.h <<\_ACEOF
22896 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22897 _ACEOF
22902 # check for readline 4.2
22903 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22904 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22905 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22906 echo $ECHO_N "(cached) $ECHO_C" >&6
22907 else
22908 ac_check_lib_save_LIBS=$LIBS
22909 LIBS="-lreadline $LIBS"
22910 cat >conftest.$ac_ext <<_ACEOF
22911 /* confdefs.h. */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h. */
22917 /* Override any GCC internal prototype to avoid an error.
22918 Use char because int might match the return type of a GCC
22919 builtin and then its argument prototype would still apply. */
22920 #ifdef __cplusplus
22921 extern "C"
22922 #endif
22923 char rl_completion_matches ();
22925 main ()
22927 return rl_completion_matches ();
22929 return 0;
22931 _ACEOF
22932 rm -f conftest.$ac_objext conftest$ac_exeext
22933 if { (ac_try="$ac_link"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_link") 2>conftest.er1
22940 ac_status=$?
22941 grep -v '^ *+' conftest.er1 >conftest.err
22942 rm -f conftest.er1
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } && {
22946 test -z "$ac_c_werror_flag" ||
22947 test ! -s conftest.err
22948 } && test -s conftest$ac_exeext &&
22949 $as_test_x conftest$ac_exeext; then
22950 ac_cv_lib_readline_rl_completion_matches=yes
22951 else
22952 echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22955 ac_cv_lib_readline_rl_completion_matches=no
22958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22959 conftest$ac_exeext conftest.$ac_ext
22960 LIBS=$ac_check_lib_save_LIBS
22962 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22963 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22964 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22966 cat >>confdefs.h <<\_ACEOF
22967 #define HAVE_RL_COMPLETION_MATCHES 1
22968 _ACEOF
22973 # also in readline 4.2
22974 cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h. */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22980 #include <readline/readline.h>
22981 _ACEOF
22982 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
22995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 }; then
22998 have_readline=yes
22999 else
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 have_readline=no
23006 rm -f conftest.err conftest.$ac_ext
23007 if test $have_readline = yes
23008 then
23009 cat >conftest.$ac_ext <<_ACEOF
23010 /* confdefs.h. */
23011 _ACEOF
23012 cat confdefs.h >>conftest.$ac_ext
23013 cat >>conftest.$ac_ext <<_ACEOF
23014 /* end confdefs.h. */
23015 #include <readline/readline.h>
23017 _ACEOF
23018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23019 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
23021 cat >>confdefs.h <<\_ACEOF
23022 #define HAVE_RL_CATCH_SIGNAL 1
23023 _ACEOF
23026 rm -f conftest*
23030 # End of readline checks: restore LIBS
23031 LIBS=$LIBS_no_readline
23033 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23034 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23035 if test "${ac_cv_broken_nice+set}" = set; then
23036 echo $ECHO_N "(cached) $ECHO_C" >&6
23037 else
23039 if test "$cross_compiling" = yes; then
23040 ac_cv_broken_nice=no
23041 else
23042 cat >conftest.$ac_ext <<_ACEOF
23043 /* confdefs.h. */
23044 _ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23049 int main()
23051 int val1 = nice(1);
23052 if (val1 != -1 && val1 == nice(2))
23053 exit(0);
23054 exit(1);
23057 _ACEOF
23058 rm -f conftest$ac_exeext
23059 if { (ac_try="$ac_link"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23063 esac
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_link") 2>&5
23066 ac_status=$?
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23069 { (case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23072 esac
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_try") 2>&5
23075 ac_status=$?
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); }; }; then
23078 ac_cv_broken_nice=yes
23079 else
23080 echo "$as_me: program exited with status $ac_status" >&5
23081 echo "$as_me: failed program was:" >&5
23082 sed 's/^/| /' conftest.$ac_ext >&5
23084 ( exit $ac_status )
23085 ac_cv_broken_nice=no
23087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23093 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23094 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23095 if test "$ac_cv_broken_nice" = yes
23096 then
23098 cat >>confdefs.h <<\_ACEOF
23099 #define HAVE_BROKEN_NICE 1
23100 _ACEOF
23104 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23105 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23106 if test "$cross_compiling" = yes; then
23107 ac_cv_broken_poll=no
23108 else
23109 cat >conftest.$ac_ext <<_ACEOF
23110 /* confdefs.h. */
23111 _ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23116 #include <poll.h>
23118 int main (void)
23120 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23122 close (42);
23124 int poll_test = poll (&poll_struct, 1, 0);
23126 if (poll_test < 0)
23128 exit(0);
23130 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23132 exit(0);
23134 else
23136 exit(1);
23140 _ACEOF
23141 rm -f conftest$ac_exeext
23142 if { (ac_try="$ac_link"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_link") 2>&5
23149 ac_status=$?
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23152 { (case "(($ac_try" in
23153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23154 *) ac_try_echo=$ac_try;;
23155 esac
23156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23157 (eval "$ac_try") 2>&5
23158 ac_status=$?
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; }; then
23161 ac_cv_broken_poll=yes
23162 else
23163 echo "$as_me: program exited with status $ac_status" >&5
23164 echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23167 ( exit $ac_status )
23168 ac_cv_broken_poll=no
23170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23174 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23175 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23176 if test "$ac_cv_broken_poll" = yes
23177 then
23179 cat >>confdefs.h <<\_ACEOF
23180 #define HAVE_BROKEN_POLL 1
23181 _ACEOF
23185 # Before we can test tzset, we need to check if struct tm has a tm_zone
23186 # (which is not required by ISO C or UNIX spec) and/or if we support
23187 # tzname[]
23188 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23189 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23190 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23191 echo $ECHO_N "(cached) $ECHO_C" >&6
23192 else
23193 cat >conftest.$ac_ext <<_ACEOF
23194 /* confdefs.h. */
23195 _ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h. */
23199 #include <sys/types.h>
23200 #include <$ac_cv_struct_tm>
23204 main ()
23206 static struct tm ac_aggr;
23207 if (ac_aggr.tm_zone)
23208 return 0;
23210 return 0;
23212 _ACEOF
23213 rm -f conftest.$ac_objext
23214 if { (ac_try="$ac_compile"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23218 esac
23219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23220 (eval "$ac_compile") 2>conftest.er1
23221 ac_status=$?
23222 grep -v '^ *+' conftest.er1 >conftest.err
23223 rm -f conftest.er1
23224 cat conftest.err >&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } && {
23227 test -z "$ac_c_werror_flag" ||
23228 test ! -s conftest.err
23229 } && test -s conftest.$ac_objext; then
23230 ac_cv_member_struct_tm_tm_zone=yes
23231 else
23232 echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23235 cat >conftest.$ac_ext <<_ACEOF
23236 /* confdefs.h. */
23237 _ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23241 #include <sys/types.h>
23242 #include <$ac_cv_struct_tm>
23246 main ()
23248 static struct tm ac_aggr;
23249 if (sizeof ac_aggr.tm_zone)
23250 return 0;
23252 return 0;
23254 _ACEOF
23255 rm -f conftest.$ac_objext
23256 if { (ac_try="$ac_compile"
23257 case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23260 esac
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_compile") 2>conftest.er1
23263 ac_status=$?
23264 grep -v '^ *+' conftest.er1 >conftest.err
23265 rm -f conftest.er1
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } && {
23269 test -z "$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23271 } && test -s conftest.$ac_objext; then
23272 ac_cv_member_struct_tm_tm_zone=yes
23273 else
23274 echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23277 ac_cv_member_struct_tm_tm_zone=no
23280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23286 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23287 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23289 cat >>confdefs.h <<_ACEOF
23290 #define HAVE_STRUCT_TM_TM_ZONE 1
23291 _ACEOF
23296 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23298 cat >>confdefs.h <<\_ACEOF
23299 #define HAVE_TM_ZONE 1
23300 _ACEOF
23302 else
23303 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23304 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23305 if test "${ac_cv_have_decl_tzname+set}" = set; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 else
23308 cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h. */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23314 #include <time.h>
23317 main ()
23319 #ifndef tzname
23320 (void) tzname;
23321 #endif
23324 return 0;
23326 _ACEOF
23327 rm -f conftest.$ac_objext
23328 if { (ac_try="$ac_compile"
23329 case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23332 esac
23333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23335 ac_status=$?
23336 grep -v '^ *+' conftest.er1 >conftest.err
23337 rm -f conftest.er1
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_cv_have_decl_tzname=yes
23345 else
23346 echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_cv_have_decl_tzname=no
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23354 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23355 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23356 if test $ac_cv_have_decl_tzname = yes; then
23358 cat >>confdefs.h <<_ACEOF
23359 #define HAVE_DECL_TZNAME 1
23360 _ACEOF
23363 else
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_DECL_TZNAME 0
23366 _ACEOF
23372 { echo "$as_me:$LINENO: checking for tzname" >&5
23373 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23374 if test "${ac_cv_var_tzname+set}" = set; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23376 else
23377 cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h. */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23383 #include <time.h>
23384 #if !HAVE_DECL_TZNAME
23385 extern char *tzname[];
23386 #endif
23389 main ()
23391 return tzname[0][0];
23393 return 0;
23395 _ACEOF
23396 rm -f conftest.$ac_objext conftest$ac_exeext
23397 if { (ac_try="$ac_link"
23398 case "(($ac_try" in
23399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400 *) ac_try_echo=$ac_try;;
23401 esac
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_link") 2>conftest.er1
23404 ac_status=$?
23405 grep -v '^ *+' conftest.er1 >conftest.err
23406 rm -f conftest.er1
23407 cat conftest.err >&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); } && {
23410 test -z "$ac_c_werror_flag" ||
23411 test ! -s conftest.err
23412 } && test -s conftest$ac_exeext &&
23413 $as_test_x conftest$ac_exeext; then
23414 ac_cv_var_tzname=yes
23415 else
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23419 ac_cv_var_tzname=no
23422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23423 conftest$ac_exeext conftest.$ac_ext
23425 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23426 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23427 if test $ac_cv_var_tzname = yes; then
23429 cat >>confdefs.h <<\_ACEOF
23430 #define HAVE_TZNAME 1
23431 _ACEOF
23437 # check tzset(3) exists and works like we expect it to
23438 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23439 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23440 if test "${ac_cv_working_tzset+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23444 if test "$cross_compiling" = yes; then
23445 ac_cv_working_tzset=no
23446 else
23447 cat >conftest.$ac_ext <<_ACEOF
23448 /* confdefs.h. */
23449 _ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h. */
23454 #include <stdlib.h>
23455 #include <time.h>
23456 #include <string.h>
23458 #if HAVE_TZNAME
23459 extern char *tzname[];
23460 #endif
23462 int main()
23464 /* Note that we need to ensure that not only does tzset(3)
23465 do 'something' with localtime, but it works as documented
23466 in the library reference and as expected by the test suite.
23467 This includes making sure that tzname is set properly if
23468 tm->tm_zone does not exist since it is the alternative way
23469 of getting timezone info.
23471 Red Hat 6.2 doesn't understand the southern hemisphere
23472 after New Year's Day.
23475 time_t groundhogday = 1044144000; /* GMT-based */
23476 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23478 putenv("TZ=UTC+0");
23479 tzset();
23480 if (localtime(&groundhogday)->tm_hour != 0)
23481 exit(1);
23482 #if HAVE_TZNAME
23483 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23484 if (strcmp(tzname[0], "UTC") ||
23485 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23486 exit(1);
23487 #endif
23489 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23490 tzset();
23491 if (localtime(&groundhogday)->tm_hour != 19)
23492 exit(1);
23493 #if HAVE_TZNAME
23494 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23495 exit(1);
23496 #endif
23498 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23499 tzset();
23500 if (localtime(&groundhogday)->tm_hour != 11)
23501 exit(1);
23502 #if HAVE_TZNAME
23503 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23504 exit(1);
23505 #endif
23507 #if HAVE_STRUCT_TM_TM_ZONE
23508 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23509 exit(1);
23510 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23511 exit(1);
23512 #endif
23514 exit(0);
23517 _ACEOF
23518 rm -f conftest$ac_exeext
23519 if { (ac_try="$ac_link"
23520 case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23523 esac
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525 (eval "$ac_link") 2>&5
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23529 { (case "(($ac_try" in
23530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531 *) ac_try_echo=$ac_try;;
23532 esac
23533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534 (eval "$ac_try") 2>&5
23535 ac_status=$?
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); }; }; then
23538 ac_cv_working_tzset=yes
23539 else
23540 echo "$as_me: program exited with status $ac_status" >&5
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23544 ( exit $ac_status )
23545 ac_cv_working_tzset=no
23547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23553 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23554 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23555 if test "$ac_cv_working_tzset" = yes
23556 then
23558 cat >>confdefs.h <<\_ACEOF
23559 #define HAVE_WORKING_TZSET 1
23560 _ACEOF
23564 # Look for subsecond timestamps in struct stat
23565 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23566 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23567 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 else
23570 cat >conftest.$ac_ext <<_ACEOF
23571 /* confdefs.h. */
23572 _ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23576 #include <sys/stat.h>
23578 main ()
23581 struct stat st;
23582 st.st_mtim.tv_nsec = 1;
23585 return 0;
23587 _ACEOF
23588 rm -f conftest.$ac_objext
23589 if { (ac_try="$ac_compile"
23590 case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23593 esac
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595 (eval "$ac_compile") 2>conftest.er1
23596 ac_status=$?
23597 grep -v '^ *+' conftest.er1 >conftest.err
23598 rm -f conftest.er1
23599 cat conftest.err >&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); } && {
23602 test -z "$ac_c_werror_flag" ||
23603 test ! -s conftest.err
23604 } && test -s conftest.$ac_objext; then
23605 ac_cv_stat_tv_nsec=yes
23606 else
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23610 ac_cv_stat_tv_nsec=no
23613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23616 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23617 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23618 if test "$ac_cv_stat_tv_nsec" = yes
23619 then
23621 cat >>confdefs.h <<\_ACEOF
23622 #define HAVE_STAT_TV_NSEC 1
23623 _ACEOF
23627 # Look for BSD style subsecond timestamps in struct stat
23628 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23629 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23630 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23632 else
23633 cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h. */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 #include <sys/stat.h>
23641 main ()
23644 struct stat st;
23645 st.st_mtimespec.tv_nsec = 1;
23648 return 0;
23650 _ACEOF
23651 rm -f conftest.$ac_objext
23652 if { (ac_try="$ac_compile"
23653 case "(($ac_try" in
23654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655 *) ac_try_echo=$ac_try;;
23656 esac
23657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658 (eval "$ac_compile") 2>conftest.er1
23659 ac_status=$?
23660 grep -v '^ *+' conftest.er1 >conftest.err
23661 rm -f conftest.er1
23662 cat conftest.err >&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } && {
23665 test -z "$ac_c_werror_flag" ||
23666 test ! -s conftest.err
23667 } && test -s conftest.$ac_objext; then
23668 ac_cv_stat_tv_nsec2=yes
23669 else
23670 echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23673 ac_cv_stat_tv_nsec2=no
23676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23679 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23680 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23681 if test "$ac_cv_stat_tv_nsec2" = yes
23682 then
23684 cat >>confdefs.h <<\_ACEOF
23685 #define HAVE_STAT_TV_NSEC2 1
23686 _ACEOF
23690 # On HP/UX 11.0, mvwdelch is a block with a return statement
23691 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23692 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23693 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23694 echo $ECHO_N "(cached) $ECHO_C" >&6
23695 else
23696 cat >conftest.$ac_ext <<_ACEOF
23697 /* confdefs.h. */
23698 _ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h. */
23702 #include <curses.h>
23704 main ()
23707 int rtn;
23708 rtn = mvwdelch(0,0,0);
23711 return 0;
23713 _ACEOF
23714 rm -f conftest.$ac_objext
23715 if { (ac_try="$ac_compile"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23719 esac
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_compile") 2>conftest.er1
23722 ac_status=$?
23723 grep -v '^ *+' conftest.er1 >conftest.err
23724 rm -f conftest.er1
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } && {
23728 test -z "$ac_c_werror_flag" ||
23729 test ! -s conftest.err
23730 } && test -s conftest.$ac_objext; then
23731 ac_cv_mvwdelch_is_expression=yes
23732 else
23733 echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23736 ac_cv_mvwdelch_is_expression=no
23739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23743 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23745 if test "$ac_cv_mvwdelch_is_expression" = yes
23746 then
23748 cat >>confdefs.h <<\_ACEOF
23749 #define MVWDELCH_IS_EXPRESSION 1
23750 _ACEOF
23754 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23755 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23756 if test "${ac_cv_window_has_flags+set}" = set; then
23757 echo $ECHO_N "(cached) $ECHO_C" >&6
23758 else
23759 cat >conftest.$ac_ext <<_ACEOF
23760 /* confdefs.h. */
23761 _ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23765 #include <curses.h>
23767 main ()
23770 WINDOW *w;
23771 w->_flags = 0;
23774 return 0;
23776 _ACEOF
23777 rm -f conftest.$ac_objext
23778 if { (ac_try="$ac_compile"
23779 case "(($ac_try" in
23780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23781 *) ac_try_echo=$ac_try;;
23782 esac
23783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23784 (eval "$ac_compile") 2>conftest.er1
23785 ac_status=$?
23786 grep -v '^ *+' conftest.er1 >conftest.err
23787 rm -f conftest.er1
23788 cat conftest.err >&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } && {
23791 test -z "$ac_c_werror_flag" ||
23792 test ! -s conftest.err
23793 } && test -s conftest.$ac_objext; then
23794 ac_cv_window_has_flags=yes
23795 else
23796 echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23799 ac_cv_window_has_flags=no
23802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23806 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23809 if test "$ac_cv_window_has_flags" = yes
23810 then
23812 cat >>confdefs.h <<\_ACEOF
23813 #define WINDOW_HAS_FLAGS 1
23814 _ACEOF
23818 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23819 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23820 cat >conftest.$ac_ext <<_ACEOF
23821 /* confdefs.h. */
23822 _ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h. */
23826 #include <curses.h>
23828 main ()
23830 void *x=is_term_resized
23832 return 0;
23834 _ACEOF
23835 rm -f conftest.$ac_objext
23836 if { (ac_try="$ac_compile"
23837 case "(($ac_try" in
23838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839 *) ac_try_echo=$ac_try;;
23840 esac
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_compile") 2>conftest.er1
23843 ac_status=$?
23844 grep -v '^ *+' conftest.er1 >conftest.err
23845 rm -f conftest.er1
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest.$ac_objext; then
23853 cat >>confdefs.h <<\_ACEOF
23854 #define HAVE_CURSES_IS_TERM_RESIZED 1
23855 _ACEOF
23857 { echo "$as_me:$LINENO: result: yes" >&5
23858 echo "${ECHO_T}yes" >&6; }
23859 else
23860 echo "$as_me: failed program was:" >&5
23861 sed 's/^/| /' conftest.$ac_ext >&5
23863 { echo "$as_me:$LINENO: result: no" >&5
23864 echo "${ECHO_T}no" >&6; }
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870 { echo "$as_me:$LINENO: checking for resize_term" >&5
23871 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 #include <curses.h>
23880 main ()
23882 void *x=resize_term
23884 return 0;
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23892 esac
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23895 ac_status=$?
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.$ac_objext; then
23905 cat >>confdefs.h <<\_ACEOF
23906 #define HAVE_CURSES_RESIZE_TERM 1
23907 _ACEOF
23909 { echo "$as_me:$LINENO: result: yes" >&5
23910 echo "${ECHO_T}yes" >&6; }
23911 else
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 { echo "$as_me:$LINENO: result: no" >&5
23916 echo "${ECHO_T}no" >&6; }
23920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23923 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23924 cat >conftest.$ac_ext <<_ACEOF
23925 /* confdefs.h. */
23926 _ACEOF
23927 cat confdefs.h >>conftest.$ac_ext
23928 cat >>conftest.$ac_ext <<_ACEOF
23929 /* end confdefs.h. */
23930 #include <curses.h>
23932 main ()
23934 void *x=resizeterm
23936 return 0;
23938 _ACEOF
23939 rm -f conftest.$ac_objext
23940 if { (ac_try="$ac_compile"
23941 case "(($ac_try" in
23942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23943 *) ac_try_echo=$ac_try;;
23944 esac
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946 (eval "$ac_compile") 2>conftest.er1
23947 ac_status=$?
23948 grep -v '^ *+' conftest.er1 >conftest.err
23949 rm -f conftest.er1
23950 cat conftest.err >&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } && {
23953 test -z "$ac_c_werror_flag" ||
23954 test ! -s conftest.err
23955 } && test -s conftest.$ac_objext; then
23957 cat >>confdefs.h <<\_ACEOF
23958 #define HAVE_CURSES_RESIZETERM 1
23959 _ACEOF
23961 { echo "$as_me:$LINENO: result: yes" >&5
23962 echo "${ECHO_T}yes" >&6; }
23963 else
23964 echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23967 { echo "$as_me:$LINENO: result: no" >&5
23968 echo "${ECHO_T}no" >&6; }
23972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23974 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23975 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23977 if test -r /dev/ptmx
23978 then
23979 { echo "$as_me:$LINENO: result: yes" >&5
23980 echo "${ECHO_T}yes" >&6; }
23982 cat >>confdefs.h <<\_ACEOF
23983 #define HAVE_DEV_PTMX 1
23984 _ACEOF
23986 else
23987 { echo "$as_me:$LINENO: result: no" >&5
23988 echo "${ECHO_T}no" >&6; }
23991 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23992 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23994 if test -r /dev/ptc
23995 then
23996 { echo "$as_me:$LINENO: result: yes" >&5
23997 echo "${ECHO_T}yes" >&6; }
23999 cat >>confdefs.h <<\_ACEOF
24000 #define HAVE_DEV_PTC 1
24001 _ACEOF
24003 else
24004 { echo "$as_me:$LINENO: result: no" >&5
24005 echo "${ECHO_T}no" >&6; }
24008 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24009 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24010 if test "$cross_compiling" = yes; then
24011 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24012 See \`config.log' for more details." >&5
24013 echo "$as_me: error: cannot run test program while cross compiling
24014 See \`config.log' for more details." >&2;}
24015 { (exit 1); exit 1; }; }
24016 else
24017 cat >conftest.$ac_ext <<_ACEOF
24018 /* confdefs.h. */
24019 _ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24023 #include <stdio.h>
24024 #include <stddef.h>
24025 #include <string.h>
24027 #ifdef HAVE_SYS_TYPES_H
24028 #include <sys/types.h>
24029 #endif
24031 #ifdef HAVE_SSIZE_T
24032 typedef ssize_t Py_ssize_t;
24033 #elif SIZEOF_VOID_P == SIZEOF_LONG
24034 typedef long Py_ssize_t;
24035 #else
24036 typedef int Py_ssize_t;
24037 #endif
24039 int main()
24041 char buffer[256];
24043 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24044 return 1;
24046 if (strcmp(buffer, "123"))
24047 return 1;
24049 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24050 return 1;
24052 if (strcmp(buffer, "-123"))
24053 return 1;
24055 return 0;
24057 _ACEOF
24058 rm -f conftest$ac_exeext
24059 if { (ac_try="$ac_link"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24063 esac
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_link") 2>&5
24066 ac_status=$?
24067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24069 { (case "(($ac_try" in
24070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071 *) ac_try_echo=$ac_try;;
24072 esac
24073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24074 (eval "$ac_try") 2>&5
24075 ac_status=$?
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; }; then
24078 { echo "$as_me:$LINENO: result: yes" >&5
24079 echo "${ECHO_T}yes" >&6; }
24081 cat >>confdefs.h <<\_ACEOF
24082 #define PY_FORMAT_SIZE_T "z"
24083 _ACEOF
24085 else
24086 echo "$as_me: program exited with status $ac_status" >&5
24087 echo "$as_me: failed program was:" >&5
24088 sed 's/^/| /' conftest.$ac_ext >&5
24090 ( exit $ac_status )
24091 { echo "$as_me:$LINENO: result: no" >&5
24092 echo "${ECHO_T}no" >&6; }
24094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24099 { echo "$as_me:$LINENO: checking for socklen_t" >&5
24100 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
24101 if test "${ac_cv_type_socklen_t+set}" = set; then
24102 echo $ECHO_N "(cached) $ECHO_C" >&6
24103 else
24104 cat >conftest.$ac_ext <<_ACEOF
24105 /* confdefs.h. */
24106 _ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h. */
24111 #ifdef HAVE_SYS_TYPES_H
24112 #include <sys/types.h>
24113 #endif
24114 #ifdef HAVE_SYS_SOCKET_H
24115 #include <sys/socket.h>
24116 #endif
24119 typedef socklen_t ac__type_new_;
24121 main ()
24123 if ((ac__type_new_ *) 0)
24124 return 0;
24125 if (sizeof (ac__type_new_))
24126 return 0;
24128 return 0;
24130 _ACEOF
24131 rm -f conftest.$ac_objext
24132 if { (ac_try="$ac_compile"
24133 case "(($ac_try" in
24134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24135 *) ac_try_echo=$ac_try;;
24136 esac
24137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24138 (eval "$ac_compile") 2>conftest.er1
24139 ac_status=$?
24140 grep -v '^ *+' conftest.er1 >conftest.err
24141 rm -f conftest.er1
24142 cat conftest.err >&5
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); } && {
24145 test -z "$ac_c_werror_flag" ||
24146 test ! -s conftest.err
24147 } && test -s conftest.$ac_objext; then
24148 ac_cv_type_socklen_t=yes
24149 else
24150 echo "$as_me: failed program was:" >&5
24151 sed 's/^/| /' conftest.$ac_ext >&5
24153 ac_cv_type_socklen_t=no
24156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24158 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24159 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24160 if test $ac_cv_type_socklen_t = yes; then
24162 else
24164 cat >>confdefs.h <<\_ACEOF
24165 #define socklen_t int
24166 _ACEOF
24173 for h in `(cd $srcdir;echo Python/thread_*.h)`
24175 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24176 done
24179 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24180 { echo "$as_me:$LINENO: checking for build directories" >&5
24181 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24182 for dir in $SRCDIRS; do
24183 if test ! -d $dir; then
24184 mkdir $dir
24186 done
24187 { echo "$as_me:$LINENO: result: done" >&5
24188 echo "${ECHO_T}done" >&6; }
24190 # generate output files
24191 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24193 cat >confcache <<\_ACEOF
24194 # This file is a shell script that caches the results of configure
24195 # tests run on this system so they can be shared between configure
24196 # scripts and configure runs, see configure's option --config-cache.
24197 # It is not useful on other systems. If it contains results you don't
24198 # want to keep, you may remove or edit it.
24200 # config.status only pays attention to the cache file if you give it
24201 # the --recheck option to rerun configure.
24203 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24205 # following values.
24207 _ACEOF
24209 # The following way of writing the cache mishandles newlines in values,
24210 # but we know of no workaround that is simple, portable, and efficient.
24211 # So, we kill variables containing newlines.
24212 # Ultrix sh set writes to stderr and can't be redirected directly,
24213 # and sets the high bit in the cache file unless we assign to the vars.
24215 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24216 eval ac_val=\$$ac_var
24217 case $ac_val in #(
24218 *${as_nl}*)
24219 case $ac_var in #(
24220 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24221 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24222 esac
24223 case $ac_var in #(
24224 _ | IFS | as_nl) ;; #(
24225 *) $as_unset $ac_var ;;
24226 esac ;;
24227 esac
24228 done
24230 (set) 2>&1 |
24231 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24232 *${as_nl}ac_space=\ *)
24233 # `set' does not quote correctly, so add quotes (double-quote
24234 # substitution turns \\\\ into \\, and sed turns \\ into \).
24235 sed -n \
24236 "s/'/'\\\\''/g;
24237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24238 ;; #(
24240 # `set' quotes correctly as required by POSIX, so do not add quotes.
24241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24243 esac |
24244 sort
24246 sed '
24247 /^ac_cv_env_/b end
24248 t clear
24249 :clear
24250 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24251 t end
24252 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24253 :end' >>confcache
24254 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24255 if test -w "$cache_file"; then
24256 test "x$cache_file" != "x/dev/null" &&
24257 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24258 echo "$as_me: updating cache $cache_file" >&6;}
24259 cat confcache >$cache_file
24260 else
24261 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24262 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24265 rm -f confcache
24267 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24268 # Let make expand exec_prefix.
24269 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24271 DEFS=-DHAVE_CONFIG_H
24273 ac_libobjs=
24274 ac_ltlibobjs=
24275 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24276 # 1. Remove the extension, and $U if already installed.
24277 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24278 ac_i=`echo "$ac_i" | sed "$ac_script"`
24279 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24280 # will be set to the directory where LIBOBJS objects are built.
24281 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24282 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24283 done
24284 LIBOBJS=$ac_libobjs
24286 LTLIBOBJS=$ac_ltlibobjs
24290 : ${CONFIG_STATUS=./config.status}
24291 ac_clean_files_save=$ac_clean_files
24292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24293 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24294 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24295 cat >$CONFIG_STATUS <<_ACEOF
24296 #! $SHELL
24297 # Generated by $as_me.
24298 # Run this file to recreate the current configuration.
24299 # Compiler output produced by configure, useful for debugging
24300 # configure, is in config.log if it exists.
24302 debug=false
24303 ac_cs_recheck=false
24304 ac_cs_silent=false
24305 SHELL=\${CONFIG_SHELL-$SHELL}
24306 _ACEOF
24308 cat >>$CONFIG_STATUS <<\_ACEOF
24309 ## --------------------- ##
24310 ## M4sh Initialization. ##
24311 ## --------------------- ##
24313 # Be more Bourne compatible
24314 DUALCASE=1; export DUALCASE # for MKS sh
24315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24316 emulate sh
24317 NULLCMD=:
24318 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24319 # is contrary to our usage. Disable this feature.
24320 alias -g '${1+"$@"}'='"$@"'
24321 setopt NO_GLOB_SUBST
24322 else
24323 case `(set -o) 2>/dev/null` in
24324 *posix*) set -o posix ;;
24325 esac
24332 # PATH needs CR
24333 # Avoid depending upon Character Ranges.
24334 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24335 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24336 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24337 as_cr_digits='0123456789'
24338 as_cr_alnum=$as_cr_Letters$as_cr_digits
24340 # The user is always right.
24341 if test "${PATH_SEPARATOR+set}" != set; then
24342 echo "#! /bin/sh" >conf$$.sh
24343 echo "exit 0" >>conf$$.sh
24344 chmod +x conf$$.sh
24345 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24346 PATH_SEPARATOR=';'
24347 else
24348 PATH_SEPARATOR=:
24350 rm -f conf$$.sh
24353 # Support unset when possible.
24354 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24355 as_unset=unset
24356 else
24357 as_unset=false
24361 # IFS
24362 # We need space, tab and new line, in precisely that order. Quoting is
24363 # there to prevent editors from complaining about space-tab.
24364 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24365 # splitting by setting IFS to empty value.)
24366 as_nl='
24368 IFS=" "" $as_nl"
24370 # Find who we are. Look in the path if we contain no directory separator.
24371 case $0 in
24372 *[\\/]* ) as_myself=$0 ;;
24373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24374 for as_dir in $PATH
24376 IFS=$as_save_IFS
24377 test -z "$as_dir" && as_dir=.
24378 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24379 done
24380 IFS=$as_save_IFS
24383 esac
24384 # We did not find ourselves, most probably we were run as `sh COMMAND'
24385 # in which case we are not to be found in the path.
24386 if test "x$as_myself" = x; then
24387 as_myself=$0
24389 if test ! -f "$as_myself"; then
24390 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24391 { (exit 1); exit 1; }
24394 # Work around bugs in pre-3.0 UWIN ksh.
24395 for as_var in ENV MAIL MAILPATH
24396 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24397 done
24398 PS1='$ '
24399 PS2='> '
24400 PS4='+ '
24402 # NLS nuisances.
24403 for as_var in \
24404 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24405 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24406 LC_TELEPHONE LC_TIME
24408 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24409 eval $as_var=C; export $as_var
24410 else
24411 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24413 done
24415 # Required to use basename.
24416 if expr a : '\(a\)' >/dev/null 2>&1 &&
24417 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24418 as_expr=expr
24419 else
24420 as_expr=false
24423 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24424 as_basename=basename
24425 else
24426 as_basename=false
24430 # Name of the executable.
24431 as_me=`$as_basename -- "$0" ||
24432 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24433 X"$0" : 'X\(//\)$' \| \
24434 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24435 echo X/"$0" |
24436 sed '/^.*\/\([^/][^/]*\)\/*$/{
24437 s//\1/
24440 /^X\/\(\/\/\)$/{
24441 s//\1/
24444 /^X\/\(\/\).*/{
24445 s//\1/
24448 s/.*/./; q'`
24450 # CDPATH.
24451 $as_unset CDPATH
24455 as_lineno_1=$LINENO
24456 as_lineno_2=$LINENO
24457 test "x$as_lineno_1" != "x$as_lineno_2" &&
24458 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24460 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24461 # uniformly replaced by the line number. The first 'sed' inserts a
24462 # line-number line after each line using $LINENO; the second 'sed'
24463 # does the real work. The second script uses 'N' to pair each
24464 # line-number line with the line containing $LINENO, and appends
24465 # trailing '-' during substitution so that $LINENO is not a special
24466 # case at line end.
24467 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24468 # scripts with optimization help from Paolo Bonzini. Blame Lee
24469 # E. McMahon (1931-1989) for sed's syntax. :-)
24470 sed -n '
24472 /[$]LINENO/=
24473 ' <$as_myself |
24474 sed '
24475 s/[$]LINENO.*/&-/
24476 t lineno
24478 :lineno
24480 :loop
24481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24482 t loop
24483 s/-\n.*//
24484 ' >$as_me.lineno &&
24485 chmod +x "$as_me.lineno" ||
24486 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24487 { (exit 1); exit 1; }; }
24489 # Don't try to exec as it changes $[0], causing all sort of problems
24490 # (the dirname of $[0] is not the place where we might find the
24491 # original and so on. Autoconf is especially sensitive to this).
24492 . "./$as_me.lineno"
24493 # Exit status is that of the last command.
24494 exit
24498 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24499 as_dirname=dirname
24500 else
24501 as_dirname=false
24504 ECHO_C= ECHO_N= ECHO_T=
24505 case `echo -n x` in
24506 -n*)
24507 case `echo 'x\c'` in
24508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24509 *) ECHO_C='\c';;
24510 esac;;
24512 ECHO_N='-n';;
24513 esac
24515 if expr a : '\(a\)' >/dev/null 2>&1 &&
24516 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24517 as_expr=expr
24518 else
24519 as_expr=false
24522 rm -f conf$$ conf$$.exe conf$$.file
24523 if test -d conf$$.dir; then
24524 rm -f conf$$.dir/conf$$.file
24525 else
24526 rm -f conf$$.dir
24527 mkdir conf$$.dir
24529 echo >conf$$.file
24530 if ln -s conf$$.file conf$$ 2>/dev/null; then
24531 as_ln_s='ln -s'
24532 # ... but there are two gotchas:
24533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24535 # In both cases, we have to default to `cp -p'.
24536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24537 as_ln_s='cp -p'
24538 elif ln conf$$.file conf$$ 2>/dev/null; then
24539 as_ln_s=ln
24540 else
24541 as_ln_s='cp -p'
24543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24544 rmdir conf$$.dir 2>/dev/null
24546 if mkdir -p . 2>/dev/null; then
24547 as_mkdir_p=:
24548 else
24549 test -d ./-p && rmdir ./-p
24550 as_mkdir_p=false
24553 if test -x / >/dev/null 2>&1; then
24554 as_test_x='test -x'
24555 else
24556 if ls -dL / >/dev/null 2>&1; then
24557 as_ls_L_option=L
24558 else
24559 as_ls_L_option=
24561 as_test_x='
24562 eval sh -c '\''
24563 if test -d "$1"; then
24564 test -d "$1/.";
24565 else
24566 case $1 in
24567 -*)set "./$1";;
24568 esac;
24569 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24570 ???[sx]*):;;*)false;;esac;fi
24571 '\'' sh
24574 as_executable_p=$as_test_x
24576 # Sed expression to map a string onto a valid CPP name.
24577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24579 # Sed expression to map a string onto a valid variable name.
24580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24583 exec 6>&1
24585 # Save the log message, to keep $[0] and so on meaningful, and to
24586 # report actual input values of CONFIG_FILES etc. instead of their
24587 # values after options handling.
24588 ac_log="
24589 This file was extended by python $as_me 2.6, which was
24590 generated by GNU Autoconf 2.61. Invocation command line was
24592 CONFIG_FILES = $CONFIG_FILES
24593 CONFIG_HEADERS = $CONFIG_HEADERS
24594 CONFIG_LINKS = $CONFIG_LINKS
24595 CONFIG_COMMANDS = $CONFIG_COMMANDS
24596 $ $0 $@
24598 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24601 _ACEOF
24603 cat >>$CONFIG_STATUS <<_ACEOF
24604 # Files that config.status was made for.
24605 config_files="$ac_config_files"
24606 config_headers="$ac_config_headers"
24608 _ACEOF
24610 cat >>$CONFIG_STATUS <<\_ACEOF
24611 ac_cs_usage="\
24612 \`$as_me' instantiates files from templates according to the
24613 current configuration.
24615 Usage: $0 [OPTIONS] [FILE]...
24617 -h, --help print this help, then exit
24618 -V, --version print version number and configuration settings, then exit
24619 -q, --quiet do not print progress messages
24620 -d, --debug don't remove temporary files
24621 --recheck update $as_me by reconfiguring in the same conditions
24622 --file=FILE[:TEMPLATE]
24623 instantiate the configuration file FILE
24624 --header=FILE[:TEMPLATE]
24625 instantiate the configuration header FILE
24627 Configuration files:
24628 $config_files
24630 Configuration headers:
24631 $config_headers
24633 Report bugs to <bug-autoconf@gnu.org>."
24635 _ACEOF
24636 cat >>$CONFIG_STATUS <<_ACEOF
24637 ac_cs_version="\\
24638 python config.status 2.6
24639 configured by $0, generated by GNU Autoconf 2.61,
24640 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24642 Copyright (C) 2006 Free Software Foundation, Inc.
24643 This config.status script is free software; the Free Software Foundation
24644 gives unlimited permission to copy, distribute and modify it."
24646 ac_pwd='$ac_pwd'
24647 srcdir='$srcdir'
24648 INSTALL='$INSTALL'
24649 _ACEOF
24651 cat >>$CONFIG_STATUS <<\_ACEOF
24652 # If no file are specified by the user, then we need to provide default
24653 # value. By we need to know if files were specified by the user.
24654 ac_need_defaults=:
24655 while test $# != 0
24657 case $1 in
24658 --*=*)
24659 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24660 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24661 ac_shift=:
24664 ac_option=$1
24665 ac_optarg=$2
24666 ac_shift=shift
24668 esac
24670 case $ac_option in
24671 # Handling of the options.
24672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24673 ac_cs_recheck=: ;;
24674 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24675 echo "$ac_cs_version"; exit ;;
24676 --debug | --debu | --deb | --de | --d | -d )
24677 debug=: ;;
24678 --file | --fil | --fi | --f )
24679 $ac_shift
24680 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24681 ac_need_defaults=false;;
24682 --header | --heade | --head | --hea )
24683 $ac_shift
24684 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24685 ac_need_defaults=false;;
24686 --he | --h)
24687 # Conflict between --help and --header
24688 { echo "$as_me: error: ambiguous option: $1
24689 Try \`$0 --help' for more information." >&2
24690 { (exit 1); exit 1; }; };;
24691 --help | --hel | -h )
24692 echo "$ac_cs_usage"; exit ;;
24693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24694 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24695 ac_cs_silent=: ;;
24697 # This is an error.
24698 -*) { echo "$as_me: error: unrecognized option: $1
24699 Try \`$0 --help' for more information." >&2
24700 { (exit 1); exit 1; }; } ;;
24702 *) ac_config_targets="$ac_config_targets $1"
24703 ac_need_defaults=false ;;
24705 esac
24706 shift
24707 done
24709 ac_configure_extra_args=
24711 if $ac_cs_silent; then
24712 exec 6>/dev/null
24713 ac_configure_extra_args="$ac_configure_extra_args --silent"
24716 _ACEOF
24717 cat >>$CONFIG_STATUS <<_ACEOF
24718 if \$ac_cs_recheck; then
24719 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24720 CONFIG_SHELL=$SHELL
24721 export CONFIG_SHELL
24722 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24725 _ACEOF
24726 cat >>$CONFIG_STATUS <<\_ACEOF
24727 exec 5>>config.log
24729 echo
24730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24731 ## Running $as_me. ##
24732 _ASBOX
24733 echo "$ac_log"
24734 } >&5
24736 _ACEOF
24737 cat >>$CONFIG_STATUS <<_ACEOF
24738 _ACEOF
24740 cat >>$CONFIG_STATUS <<\_ACEOF
24742 # Handling of arguments.
24743 for ac_config_target in $ac_config_targets
24745 case $ac_config_target in
24746 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
24747 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
24748 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24749 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24750 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
24751 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
24752 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
24753 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
24755 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24756 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24757 { (exit 1); exit 1; }; };;
24758 esac
24759 done
24762 # If the user did not use the arguments to specify the items to instantiate,
24763 # then the envvar interface is used. Set only those that are not.
24764 # We use the long form for the default assignment because of an extremely
24765 # bizarre bug on SunOS 4.1.3.
24766 if $ac_need_defaults; then
24767 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24768 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24771 # Have a temporary directory for convenience. Make it in the build tree
24772 # simply because there is no reason against having it here, and in addition,
24773 # creating and moving files from /tmp can sometimes cause problems.
24774 # Hook for its removal unless debugging.
24775 # Note that there is a small window in which the directory will not be cleaned:
24776 # after its creation but before its name has been assigned to `$tmp'.
24777 $debug ||
24779 tmp=
24780 trap 'exit_status=$?
24781 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24783 trap '{ (exit 1); exit 1; }' 1 2 13 15
24785 # Create a (secure) tmp directory for tmp files.
24788 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24789 test -n "$tmp" && test -d "$tmp"
24790 } ||
24792 tmp=./conf$$-$RANDOM
24793 (umask 077 && mkdir "$tmp")
24794 } ||
24796 echo "$me: cannot create a temporary directory in ." >&2
24797 { (exit 1); exit 1; }
24801 # Set up the sed scripts for CONFIG_FILES section.
24804 # No need to generate the scripts if there are no CONFIG_FILES.
24805 # This happens for instance when ./config.status config.h
24806 if test -n "$CONFIG_FILES"; then
24808 _ACEOF
24812 ac_delim='%!_!# '
24813 for ac_last_try in false false false false false :; do
24814 cat >conf$$subs.sed <<_ACEOF
24815 SHELL!$SHELL$ac_delim
24816 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24817 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24818 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24819 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24820 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24821 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24822 exec_prefix!$exec_prefix$ac_delim
24823 prefix!$prefix$ac_delim
24824 program_transform_name!$program_transform_name$ac_delim
24825 bindir!$bindir$ac_delim
24826 sbindir!$sbindir$ac_delim
24827 libexecdir!$libexecdir$ac_delim
24828 datarootdir!$datarootdir$ac_delim
24829 datadir!$datadir$ac_delim
24830 sysconfdir!$sysconfdir$ac_delim
24831 sharedstatedir!$sharedstatedir$ac_delim
24832 localstatedir!$localstatedir$ac_delim
24833 includedir!$includedir$ac_delim
24834 oldincludedir!$oldincludedir$ac_delim
24835 docdir!$docdir$ac_delim
24836 infodir!$infodir$ac_delim
24837 htmldir!$htmldir$ac_delim
24838 dvidir!$dvidir$ac_delim
24839 pdfdir!$pdfdir$ac_delim
24840 psdir!$psdir$ac_delim
24841 libdir!$libdir$ac_delim
24842 localedir!$localedir$ac_delim
24843 mandir!$mandir$ac_delim
24844 DEFS!$DEFS$ac_delim
24845 ECHO_C!$ECHO_C$ac_delim
24846 ECHO_N!$ECHO_N$ac_delim
24847 ECHO_T!$ECHO_T$ac_delim
24848 LIBS!$LIBS$ac_delim
24849 build_alias!$build_alias$ac_delim
24850 host_alias!$host_alias$ac_delim
24851 target_alias!$target_alias$ac_delim
24852 VERSION!$VERSION$ac_delim
24853 SOVERSION!$SOVERSION$ac_delim
24854 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24855 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24856 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24857 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
24858 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24859 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24860 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24861 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24862 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24863 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24864 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24865 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24866 MACHDEP!$MACHDEP$ac_delim
24867 SGI_ABI!$SGI_ABI$ac_delim
24868 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24869 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24870 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24871 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24872 CC!$CC$ac_delim
24873 CFLAGS!$CFLAGS$ac_delim
24874 LDFLAGS!$LDFLAGS$ac_delim
24875 CPPFLAGS!$CPPFLAGS$ac_delim
24876 ac_ct_CC!$ac_ct_CC$ac_delim
24877 EXEEXT!$EXEEXT$ac_delim
24878 OBJEXT!$OBJEXT$ac_delim
24879 CXX!$CXX$ac_delim
24880 MAINCC!$MAINCC$ac_delim
24881 CPP!$CPP$ac_delim
24882 GREP!$GREP$ac_delim
24883 EGREP!$EGREP$ac_delim
24884 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24885 LIBRARY!$LIBRARY$ac_delim
24886 LDLIBRARY!$LDLIBRARY$ac_delim
24887 DLLLIBRARY!$DLLLIBRARY$ac_delim
24888 BLDLIBRARY!$BLDLIBRARY$ac_delim
24889 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24890 INSTSONAME!$INSTSONAME$ac_delim
24891 RUNSHARED!$RUNSHARED$ac_delim
24892 LINKCC!$LINKCC$ac_delim
24893 RANLIB!$RANLIB$ac_delim
24894 AR!$AR$ac_delim
24895 SVNVERSION!$SVNVERSION$ac_delim
24896 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24897 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24898 INSTALL_DATA!$INSTALL_DATA$ac_delim
24899 LN!$LN$ac_delim
24900 OPT!$OPT$ac_delim
24901 BASECFLAGS!$BASECFLAGS$ac_delim
24902 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
24903 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24904 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24905 SO!$SO$ac_delim
24906 LDSHARED!$LDSHARED$ac_delim
24907 BLDSHARED!$BLDSHARED$ac_delim
24908 CCSHARED!$CCSHARED$ac_delim
24909 LINKFORSHARED!$LINKFORSHARED$ac_delim
24910 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24911 SHLIBS!$SHLIBS$ac_delim
24912 _ACEOF
24914 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24915 break
24916 elif $ac_last_try; then
24917 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24918 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24919 { (exit 1); exit 1; }; }
24920 else
24921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24923 done
24925 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24926 if test -n "$ac_eof"; then
24927 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24928 ac_eof=`expr $ac_eof + 1`
24931 cat >>$CONFIG_STATUS <<_ACEOF
24932 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24934 _ACEOF
24935 sed '
24936 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24937 s/^/s,@/; s/!/@,|#_!!_#|/
24940 s/'"$ac_delim"'$/,g/; t
24941 s/$/\\/; p
24942 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24943 ' >>$CONFIG_STATUS <conf$$subs.sed
24944 rm -f conf$$subs.sed
24945 cat >>$CONFIG_STATUS <<_ACEOF
24946 CEOF$ac_eof
24947 _ACEOF
24950 ac_delim='%!_!# '
24951 for ac_last_try in false false false false false :; do
24952 cat >conf$$subs.sed <<_ACEOF
24953 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24954 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24955 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24956 LDLAST!$LDLAST$ac_delim
24957 THREADOBJ!$THREADOBJ$ac_delim
24958 DLINCLDIR!$DLINCLDIR$ac_delim
24959 DYNLOADFILE!$DYNLOADFILE$ac_delim
24960 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24961 TRUE!$TRUE$ac_delim
24962 LIBOBJS!$LIBOBJS$ac_delim
24963 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24964 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24965 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24966 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24967 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24968 LIBM!$LIBM$ac_delim
24969 LIBC!$LIBC$ac_delim
24970 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24971 THREADHEADERS!$THREADHEADERS$ac_delim
24972 SRCDIRS!$SRCDIRS$ac_delim
24973 LTLIBOBJS!$LTLIBOBJS$ac_delim
24974 _ACEOF
24976 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
24977 break
24978 elif $ac_last_try; then
24979 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24980 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24981 { (exit 1); exit 1; }; }
24982 else
24983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24985 done
24987 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24988 if test -n "$ac_eof"; then
24989 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24990 ac_eof=`expr $ac_eof + 1`
24993 cat >>$CONFIG_STATUS <<_ACEOF
24994 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24996 _ACEOF
24997 sed '
24998 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24999 s/^/s,@/; s/!/@,|#_!!_#|/
25002 s/'"$ac_delim"'$/,g/; t
25003 s/$/\\/; p
25004 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25005 ' >>$CONFIG_STATUS <conf$$subs.sed
25006 rm -f conf$$subs.sed
25007 cat >>$CONFIG_STATUS <<_ACEOF
25008 :end
25009 s/|#_!!_#|//g
25010 CEOF$ac_eof
25011 _ACEOF
25014 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25015 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25016 # trailing colons and then remove the whole line if VPATH becomes empty
25017 # (actually we leave an empty line to preserve line numbers).
25018 if test "x$srcdir" = x.; then
25019 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25020 s/:*\$(srcdir):*/:/
25021 s/:*\${srcdir}:*/:/
25022 s/:*@srcdir@:*/:/
25023 s/^\([^=]*=[ ]*\):*/\1/
25024 s/:*$//
25025 s/^[^=]*=[ ]*$//
25029 cat >>$CONFIG_STATUS <<\_ACEOF
25030 fi # test -n "$CONFIG_FILES"
25033 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25035 case $ac_tag in
25036 :[FHLC]) ac_mode=$ac_tag; continue;;
25037 esac
25038 case $ac_mode$ac_tag in
25039 :[FHL]*:*);;
25040 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25041 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25042 { (exit 1); exit 1; }; };;
25043 :[FH]-) ac_tag=-:-;;
25044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25045 esac
25046 ac_save_IFS=$IFS
25047 IFS=:
25048 set x $ac_tag
25049 IFS=$ac_save_IFS
25050 shift
25051 ac_file=$1
25052 shift
25054 case $ac_mode in
25055 :L) ac_source=$1;;
25056 :[FH])
25057 ac_file_inputs=
25058 for ac_f
25060 case $ac_f in
25061 -) ac_f="$tmp/stdin";;
25062 *) # Look for the file first in the build tree, then in the source tree
25063 # (if the path is not absolute). The absolute path cannot be DOS-style,
25064 # because $ac_f cannot contain `:'.
25065 test -f "$ac_f" ||
25066 case $ac_f in
25067 [\\/$]*) false;;
25068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25069 esac ||
25070 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25071 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25072 { (exit 1); exit 1; }; };;
25073 esac
25074 ac_file_inputs="$ac_file_inputs $ac_f"
25075 done
25077 # Let's still pretend it is `configure' which instantiates (i.e., don't
25078 # use $as_me), people would be surprised to read:
25079 # /* config.h. Generated by config.status. */
25080 configure_input="Generated from "`IFS=:
25081 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25082 if test x"$ac_file" != x-; then
25083 configure_input="$ac_file. $configure_input"
25084 { echo "$as_me:$LINENO: creating $ac_file" >&5
25085 echo "$as_me: creating $ac_file" >&6;}
25088 case $ac_tag in
25089 *:-:* | *:-) cat >"$tmp/stdin";;
25090 esac
25092 esac
25094 ac_dir=`$as_dirname -- "$ac_file" ||
25095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25096 X"$ac_file" : 'X\(//\)[^/]' \| \
25097 X"$ac_file" : 'X\(//\)$' \| \
25098 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25099 echo X"$ac_file" |
25100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25101 s//\1/
25104 /^X\(\/\/\)[^/].*/{
25105 s//\1/
25108 /^X\(\/\/\)$/{
25109 s//\1/
25112 /^X\(\/\).*/{
25113 s//\1/
25116 s/.*/./; q'`
25117 { as_dir="$ac_dir"
25118 case $as_dir in #(
25119 -*) as_dir=./$as_dir;;
25120 esac
25121 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25122 as_dirs=
25123 while :; do
25124 case $as_dir in #(
25125 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25126 *) as_qdir=$as_dir;;
25127 esac
25128 as_dirs="'$as_qdir' $as_dirs"
25129 as_dir=`$as_dirname -- "$as_dir" ||
25130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25131 X"$as_dir" : 'X\(//\)[^/]' \| \
25132 X"$as_dir" : 'X\(//\)$' \| \
25133 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25134 echo X"$as_dir" |
25135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25136 s//\1/
25139 /^X\(\/\/\)[^/].*/{
25140 s//\1/
25143 /^X\(\/\/\)$/{
25144 s//\1/
25147 /^X\(\/\).*/{
25148 s//\1/
25151 s/.*/./; q'`
25152 test -d "$as_dir" && break
25153 done
25154 test -z "$as_dirs" || eval "mkdir $as_dirs"
25155 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25156 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25157 { (exit 1); exit 1; }; }; }
25158 ac_builddir=.
25160 case "$ac_dir" in
25161 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25163 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25164 # A ".." for each directory in $ac_dir_suffix.
25165 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25166 case $ac_top_builddir_sub in
25167 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25168 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25169 esac ;;
25170 esac
25171 ac_abs_top_builddir=$ac_pwd
25172 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25173 # for backward compatibility:
25174 ac_top_builddir=$ac_top_build_prefix
25176 case $srcdir in
25177 .) # We are building in place.
25178 ac_srcdir=.
25179 ac_top_srcdir=$ac_top_builddir_sub
25180 ac_abs_top_srcdir=$ac_pwd ;;
25181 [\\/]* | ?:[\\/]* ) # Absolute name.
25182 ac_srcdir=$srcdir$ac_dir_suffix;
25183 ac_top_srcdir=$srcdir
25184 ac_abs_top_srcdir=$srcdir ;;
25185 *) # Relative name.
25186 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25187 ac_top_srcdir=$ac_top_build_prefix$srcdir
25188 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25189 esac
25190 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25193 case $ac_mode in
25196 # CONFIG_FILE
25199 case $INSTALL in
25200 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25201 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25202 esac
25203 _ACEOF
25205 cat >>$CONFIG_STATUS <<\_ACEOF
25206 # If the template does not know about datarootdir, expand it.
25207 # FIXME: This hack should be removed a few years after 2.60.
25208 ac_datarootdir_hack=; ac_datarootdir_seen=
25210 case `sed -n '/datarootdir/ {
25214 /@datadir@/p
25215 /@docdir@/p
25216 /@infodir@/p
25217 /@localedir@/p
25218 /@mandir@/p
25219 ' $ac_file_inputs` in
25220 *datarootdir*) ac_datarootdir_seen=yes;;
25221 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25222 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25223 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25224 _ACEOF
25225 cat >>$CONFIG_STATUS <<_ACEOF
25226 ac_datarootdir_hack='
25227 s&@datadir@&$datadir&g
25228 s&@docdir@&$docdir&g
25229 s&@infodir@&$infodir&g
25230 s&@localedir@&$localedir&g
25231 s&@mandir@&$mandir&g
25232 s&\\\${datarootdir}&$datarootdir&g' ;;
25233 esac
25234 _ACEOF
25236 # Neutralize VPATH when `$srcdir' = `.'.
25237 # Shell code in configure.ac might set extrasub.
25238 # FIXME: do we really want to maintain this feature?
25239 cat >>$CONFIG_STATUS <<_ACEOF
25240 sed "$ac_vpsub
25241 $extrasub
25242 _ACEOF
25243 cat >>$CONFIG_STATUS <<\_ACEOF
25245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25246 s&@configure_input@&$configure_input&;t t
25247 s&@top_builddir@&$ac_top_builddir_sub&;t t
25248 s&@srcdir@&$ac_srcdir&;t t
25249 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25250 s&@top_srcdir@&$ac_top_srcdir&;t t
25251 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25252 s&@builddir@&$ac_builddir&;t t
25253 s&@abs_builddir@&$ac_abs_builddir&;t t
25254 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25255 s&@INSTALL@&$ac_INSTALL&;t t
25256 $ac_datarootdir_hack
25257 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25259 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25260 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25261 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25262 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25263 which seems to be undefined. Please make sure it is defined." >&5
25264 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25265 which seems to be undefined. Please make sure it is defined." >&2;}
25267 rm -f "$tmp/stdin"
25268 case $ac_file in
25269 -) cat "$tmp/out"; rm -f "$tmp/out";;
25270 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25271 esac
25275 # CONFIG_HEADER
25277 _ACEOF
25279 # Transform confdefs.h into a sed script `conftest.defines', that
25280 # substitutes the proper values into config.h.in to produce config.h.
25281 rm -f conftest.defines conftest.tail
25282 # First, append a space to every undef/define line, to ease matching.
25283 echo 's/$/ /' >conftest.defines
25284 # Then, protect against being on the right side of a sed subst, or in
25285 # an unquoted here document, in config.status. If some macros were
25286 # called several times there might be several #defines for the same
25287 # symbol, which is useless. But do not sort them, since the last
25288 # AC_DEFINE must be honored.
25289 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25290 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25291 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25292 # PARAMS is the parameter list in the macro definition--in most cases, it's
25293 # just an empty string.
25294 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25295 ac_dB='\\)[ (].*,\\1define\\2'
25296 ac_dC=' '
25297 ac_dD=' ,'
25299 uniq confdefs.h |
25300 sed -n '
25301 t rset
25302 :rset
25303 s/^[ ]*#[ ]*define[ ][ ]*//
25304 t ok
25307 s/[\\&,]/\\&/g
25308 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25309 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25310 ' >>conftest.defines
25312 # Remove the space that was appended to ease matching.
25313 # Then replace #undef with comments. This is necessary, for
25314 # example, in the case of _POSIX_SOURCE, which is predefined and required
25315 # on some systems where configure will not decide to define it.
25316 # (The regexp can be short, since the line contains either #define or #undef.)
25317 echo 's/ $//
25318 s,^[ #]*u.*,/* & */,' >>conftest.defines
25320 # Break up conftest.defines:
25321 ac_max_sed_lines=50
25323 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25324 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25325 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25326 # et cetera.
25327 ac_in='$ac_file_inputs'
25328 ac_out='"$tmp/out1"'
25329 ac_nxt='"$tmp/out2"'
25331 while :
25333 # Write a here document:
25334 cat >>$CONFIG_STATUS <<_ACEOF
25335 # First, check the format of the line:
25336 cat >"\$tmp/defines.sed" <<\\CEOF
25337 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25338 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25340 :def
25341 _ACEOF
25342 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25343 echo 'CEOF
25344 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25345 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25346 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25347 grep . conftest.tail >/dev/null || break
25348 rm -f conftest.defines
25349 mv conftest.tail conftest.defines
25350 done
25351 rm -f conftest.defines conftest.tail
25353 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25354 cat >>$CONFIG_STATUS <<\_ACEOF
25355 if test x"$ac_file" != x-; then
25356 echo "/* $configure_input */" >"$tmp/config.h"
25357 cat "$ac_result" >>"$tmp/config.h"
25358 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25359 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25360 echo "$as_me: $ac_file is unchanged" >&6;}
25361 else
25362 rm -f $ac_file
25363 mv "$tmp/config.h" $ac_file
25365 else
25366 echo "/* $configure_input */"
25367 cat "$ac_result"
25369 rm -f "$tmp/out12"
25373 esac
25375 done # for ac_tag
25378 { (exit 0); exit 0; }
25379 _ACEOF
25380 chmod +x $CONFIG_STATUS
25381 ac_clean_files=$ac_clean_files_save
25384 # configure is writing to config.log, and then calls config.status.
25385 # config.status does its own redirection, appending to config.log.
25386 # Unfortunately, on DOS this fails, as config.log is still kept open
25387 # by configure, so config.status won't be able to write to it; its
25388 # output is simply discarded. So we exec the FD to /dev/null,
25389 # effectively closing config.log, so it can be properly (re)opened and
25390 # appended to by config.status. When coming back to configure, we
25391 # need to make the FD available again.
25392 if test "$no_create" != yes; then
25393 ac_cs_success=:
25394 ac_config_status_args=
25395 test "$silent" = yes &&
25396 ac_config_status_args="$ac_config_status_args --quiet"
25397 exec 5>/dev/null
25398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25399 exec 5>>config.log
25400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25401 # would make configure fail if this is the last instruction.
25402 $ac_cs_success || { (exit 1); exit 1; }
25406 echo "creating Modules/Setup"
25407 if test ! -f Modules/Setup
25408 then
25409 cp $srcdir/Modules/Setup.dist Modules/Setup
25412 echo "creating Modules/Setup.local"
25413 if test ! -f Modules/Setup.local
25414 then
25415 echo "# Edit this file for local setup changes" >Modules/Setup.local
25418 echo "creating Makefile"
25419 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
25420 -s Modules Modules/Setup.config \
25421 Modules/Setup.local Modules/Setup
25423 case $ac_sys_system in
25424 BeOS)
25425 { echo "$as_me:$LINENO: WARNING:
25427 Support for BeOS is deprecated as of Python 2.6.
25428 See PEP 11 for the gory details.
25429 " >&5
25430 echo "$as_me: WARNING:
25432 Support for BeOS is deprecated as of Python 2.6.
25433 See PEP 11 for the gory details.
25434 " >&2;}
25436 *) ;;
25437 esac
25439 mv config.c Modules