Issue #5768: Change to Unicode output logic and test case for same.
[python.git] / configure
blob17b932d9616770aadf0a71a76389ad031d664cd5
1 #! /bin/sh
2 # From configure.in Revision: 70903 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 EXTRAPLATDIR
674 EXTRAMACHDEPPATH
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 RANLIB
700 SVNVERSION
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
706 BASECFLAGS
707 UNIVERSAL_ARCH_FLAGS
708 OTHER_LIBTOOL_OPT
709 LIBTOOL_CRUFT
711 LDSHARED
712 BLDSHARED
713 CCSHARED
714 LINKFORSHARED
715 CFLAGSFORSHARED
716 SHLIBS
717 USE_SIGNAL_MODULE
718 SIGNAL_OBJS
719 USE_THREAD_MODULE
720 LDLAST
721 THREADOBJ
722 DLINCLDIR
723 DYNLOADFILE
724 MACHDEP_OBJS
725 TRUE
726 LIBOBJS
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
730 HAVE_GETHOSTBYNAME_R
731 HAVE_GETHOSTBYNAME
732 LIBM
733 LIBC
734 UNICODE_OBJS
735 THREADHEADERS
736 SRCDIRS
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP'
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
755 cache_file=/dev/null
756 exec_prefix=NONE
757 no_create=
758 no_recursion=
759 prefix=NONE
760 program_prefix=NONE
761 program_suffix=NONE
762 program_transform_name=s,x,x,
763 silent=
764 site=
765 srcdir=
766 verbose=
767 x_includes=NONE
768 x_libraries=NONE
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir='${exec_prefix}/bin'
777 sbindir='${exec_prefix}/sbin'
778 libexecdir='${exec_prefix}/libexec'
779 datarootdir='${prefix}/share'
780 datadir='${datarootdir}'
781 sysconfdir='${prefix}/etc'
782 sharedstatedir='${prefix}/com'
783 localstatedir='${prefix}/var'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir='${datarootdir}/info'
788 htmldir='${docdir}'
789 dvidir='${docdir}'
790 pdfdir='${docdir}'
791 psdir='${docdir}'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
796 ac_prev=
797 ac_dashdash=
798 for ac_option
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\$ac_option
803 ac_prev=
804 continue
807 case $ac_option in
808 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *) ac_optarg=yes ;;
810 esac
812 # Accept the important Cygnus configure options, so we can diagnose typos.
814 case $ac_dashdash$ac_option in
816 ac_dashdash=yes ;;
818 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 ac_prev=bindir ;;
820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821 bindir=$ac_optarg ;;
823 -build | --build | --buil | --bui | --bu)
824 ac_prev=build_alias ;;
825 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826 build_alias=$ac_optarg ;;
828 -cache-file | --cache-file | --cache-fil | --cache-fi \
829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830 ac_prev=cache_file ;;
831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833 cache_file=$ac_optarg ;;
835 --config-cache | -C)
836 cache_file=config.cache ;;
838 -datadir | --datadir | --datadi | --datad)
839 ac_prev=datadir ;;
840 -datadir=* | --datadir=* | --datadi=* | --datad=*)
841 datadir=$ac_optarg ;;
843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844 | --dataroo | --dataro | --datar)
845 ac_prev=datarootdir ;;
846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848 datarootdir=$ac_optarg ;;
850 -disable-* | --disable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=no ;;
859 -docdir | --docdir | --docdi | --doc | --do)
860 ac_prev=docdir ;;
861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 docdir=$ac_optarg ;;
864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 ac_prev=dvidir ;;
866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 dvidir=$ac_optarg ;;
869 -enable-* | --enable-*)
870 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=\$ac_optarg ;;
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
885 exec_prefix=$ac_optarg ;;
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
898 -host | --host | --hos | --ho)
899 ac_prev=host_alias ;;
900 -host=* | --host=* | --hos=* | --ho=*)
901 host_alias=$ac_optarg ;;
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
914 includedir=$ac_optarg ;;
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919 infodir=$ac_optarg ;;
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 libdir=$ac_optarg ;;
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
931 libexecdir=$ac_optarg ;;
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
938 -localstatedir | --localstatedir | --localstatedi | --localstated \
939 | --localstate | --localstat | --localsta | --localst | --locals)
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943 localstatedir=$ac_optarg ;;
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 mandir=$ac_optarg ;;
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955 | --no-cr | --no-c | -n)
956 no_create=yes ;;
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969 oldincludedir=$ac_optarg ;;
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 prefix=$ac_optarg ;;
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981 program_prefix=$ac_optarg ;;
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988 program_suffix=$ac_optarg ;;
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
1005 program_transform_name=$ac_optarg ;;
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
1025 sbindir=$ac_optarg ;;
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
1036 sharedstatedir=$ac_optarg ;;
1038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
1041 site=$ac_optarg ;;
1043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046 srcdir=$ac_optarg ;;
1048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053 sysconfdir=$ac_optarg ;;
1055 -target | --target | --targe | --targ | --tar | --ta | --t)
1056 ac_prev=target_alias ;;
1057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058 target_alias=$ac_optarg ;;
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
1066 -with-* | --with-*)
1067 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=\$ac_optarg ;;
1075 -without-* | --without-*)
1076 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=no ;;
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 esac
1125 done
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1133 # Be sure to have absolute directory names.
1134 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val=\$$ac_var
1140 case $ac_val in
1141 [\\/$]* | ?:[\\/]* ) continue;;
1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1143 esac
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1146 done
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1151 build=$build_alias
1152 host=$host_alias
1153 target=$target_alias
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x; then
1157 if test "x$build_alias" = x; then
1158 cross_compiling=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1162 cross_compiling=yes
1166 ac_tool_prefix=
1167 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169 test "$silent" = yes && exec 6>/dev/null
1172 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di=`ls -di .` &&
1174 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191 echo X"$0" |
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 s//\1/
1196 /^X\(\/\/\)[^/].*/{
1197 s//\1/
1200 /^X\(\/\/\)$/{
1201 s//\1/
1204 /^X\(\/\).*/{
1205 s//\1/
1208 s/.*/./; q'`
1209 srcdir=$ac_confdir
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 srcdir=..
1213 else
1214 ac_srcdir_defaulted=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1221 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 ac_abs_confdir=`(
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1225 pwd)`
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1233 case $srcdir in
1234 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 esac
1236 for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241 done
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250 \`configure' configures python 2.7 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1259 Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 [PREFIX]
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1303 _ACEOF
1305 cat <<\_ACEOF
1306 _ACEOF
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive ) echo "Configuration of python 2.7:";;
1312 esac
1313 cat <<\_ACEOF
1315 Optional Features:
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318 --enable-universalsdk[=SDKDIR]
1319 Build against Mac OS X 10.4u SDK (ppc/i386)
1320 --enable-framework[=INSTALLDIR]
1321 Build (MacOSX|Darwin) framework
1322 --enable-shared disable/enable building shared python library
1323 --enable-profiling enable C-level code profiling
1324 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1325 --enable-ipv6 Enable ipv6 (with ipv4) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS]
1328 use big digits for Python longs [BITS=30]
1329 --enable-unicode[=ucs[24]]
1330 Enable Unicode strings (default is yes)
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --with-universal-archs=ARCH
1336 select architectures for universal build ("32-bit",
1337 "64-bit" or "all")
1338 --with-framework-name=FRAMEWORK
1339 specify an alternate name of the framework built
1340 with --enable-framework
1341 --without-gcc never use gcc
1342 --with-cxx-main=<compiler>
1343 compile main() and link python executable with C++
1344 compiler
1345 --with-suffix=.exe set executable suffix
1346 --with-pydebug build with Py_DEBUG defined
1347 --with-libs='lib1 ...' link against additional libs
1348 --with-system-ffi build _ctypes module using an installed ffi library
1349 --with-signal-module disable/enable signal module
1350 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1351 --with(out)-threads[=DIRECTORY]
1352 disable/enable thread support
1353 --with(out)-thread[=DIRECTORY]
1354 deprecated; use --with(out)-threads
1355 --with-pth use GNU pth threading libraries
1356 --with(out)-doc-strings disable/enable documentation strings
1357 --with(out)-tsc enable/disable timestamp counter profile
1358 --with(out)-pymalloc disable/enable specialized mallocs
1359 --with-wctype-functions use wctype.h functions
1360 --with-fpectl enable SIGFPE catching
1361 --with-libm=STRING math library
1362 --with-libc=STRING C library
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CPP C preprocessor
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 Report bugs to <http://www.python.org/python-bugs>.
1378 _ACEOF
1379 ac_status=$?
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" || continue
1386 ac_builddir=.
1388 case "$ac_dir" in
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 esac ;;
1398 esac
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1404 case $srcdir in
1405 .) # We are building in place.
1406 ac_srcdir=.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1413 *) # Relative name.
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 esac
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1428 else
1429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 fi || ac_status=$?
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1432 done
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1437 cat <<\_ACEOF
1438 python configure 2.7
1439 generated by GNU Autoconf 2.61
1441 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1442 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1445 _ACEOF
1446 exit
1448 cat >config.log <<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by python $as_me 2.7, which was
1453 generated by GNU Autoconf 2.61. Invocation command line was
1455 $ $0 $@
1457 _ACEOF
1458 exec 5>>config.log
1460 cat <<_ASUNAME
1461 ## --------- ##
1462 ## Platform. ##
1463 ## --------- ##
1465 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1466 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1467 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1468 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1469 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1471 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1472 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1474 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1475 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1476 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1477 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1478 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1479 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1480 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1482 _ASUNAME
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 echo "PATH: $as_dir"
1490 done
1491 IFS=$as_save_IFS
1493 } >&5
1495 cat >&5 <<_ACEOF
1498 ## ----------- ##
1499 ## Core tests. ##
1500 ## ----------- ##
1502 _ACEOF
1505 # Keep a trace of the command line.
1506 # Strip out --no-create and --no-recursion so they do not pile up.
1507 # Strip out --silent because we don't want to record it for future runs.
1508 # Also quote any args containing shell meta-characters.
1509 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_configure_args=
1511 ac_configure_args0=
1512 ac_configure_args1=
1513 ac_must_keep_next=false
1514 for ac_pass in 1 2
1516 for ac_arg
1518 case $ac_arg in
1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1522 continue ;;
1523 *\'*)
1524 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1525 esac
1526 case $ac_pass in
1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true; then
1531 ac_must_keep_next=false # Got value, back to normal.
1532 else
1533 case $ac_arg in
1534 *=* | --config-cache | -C | -disable-* | --disable-* \
1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537 | -with-* | --with-* | -without-* | --without-* | --x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1540 esac
1542 -* ) ac_must_keep_next=true ;;
1543 esac
1545 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 esac
1548 done
1549 done
1550 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1551 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1553 # When interrupted or exit'd, cleanup temporary files, and complete
1554 # config.log. We remove comments because anyway the quotes in there
1555 # would cause problems or look ugly.
1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1558 trap 'exit_status=$?
1559 # Save into config.log some information that might help in debugging.
1561 echo
1563 cat <<\_ASBOX
1564 ## ---------------- ##
1565 ## Cache variables. ##
1566 ## ---------------- ##
1567 _ASBOX
1568 echo
1569 # The following way of writing the cache mishandles newlines in values,
1571 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1572 eval ac_val=\$$ac_var
1573 case $ac_val in #(
1574 *${as_nl}*)
1575 case $ac_var in #(
1576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1578 esac
1579 case $ac_var in #(
1580 _ | IFS | as_nl) ;; #(
1581 *) $as_unset $ac_var ;;
1582 esac ;;
1583 esac
1584 done
1585 (set) 2>&1 |
1586 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1587 *${as_nl}ac_space=\ *)
1588 sed -n \
1589 "s/'\''/'\''\\\\'\'''\''/g;
1590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1591 ;; #(
1593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1595 esac |
1596 sort
1598 echo
1600 cat <<\_ASBOX
1601 ## ----------------- ##
1602 ## Output variables. ##
1603 ## ----------------- ##
1604 _ASBOX
1605 echo
1606 for ac_var in $ac_subst_vars
1608 eval ac_val=\$$ac_var
1609 case $ac_val in
1610 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611 esac
1612 echo "$ac_var='\''$ac_val'\''"
1613 done | sort
1614 echo
1616 if test -n "$ac_subst_files"; then
1617 cat <<\_ASBOX
1618 ## ------------------- ##
1619 ## File substitutions. ##
1620 ## ------------------- ##
1621 _ASBOX
1622 echo
1623 for ac_var in $ac_subst_files
1625 eval ac_val=\$$ac_var
1626 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac
1629 echo "$ac_var='\''$ac_val'\''"
1630 done | sort
1631 echo
1634 if test -s confdefs.h; then
1635 cat <<\_ASBOX
1636 ## ----------- ##
1637 ## confdefs.h. ##
1638 ## ----------- ##
1639 _ASBOX
1640 echo
1641 cat confdefs.h
1642 echo
1644 test "$ac_signal" != 0 &&
1645 echo "$as_me: caught signal $ac_signal"
1646 echo "$as_me: exit $exit_status"
1647 } >&5
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 exit $exit_status
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 done
1655 ac_signal=0
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1660 # Predefined preprocessor variables.
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 _ACEOF
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 _ACEOF
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 _ACEOF
1687 # Let the site file select an alternate cache file if it wants to.
1688 # Prefer explicitly selected file to automatically selected ones.
1689 if test -n "$CONFIG_SITE"; then
1690 set x "$CONFIG_SITE"
1691 elif test "x$prefix" != xNONE; then
1692 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1693 else
1694 set x "$ac_default_prefix/share/config.site" \
1695 "$ac_default_prefix/etc/config.site"
1697 shift
1698 for ac_site_file
1700 if test -r "$ac_site_file"; then
1701 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1702 echo "$as_me: loading site script $ac_site_file" >&6;}
1703 sed 's/^/| /' "$ac_site_file" >&5
1704 . "$ac_site_file"
1706 done
1708 if test -r "$cache_file"; then
1709 # Some versions of bash will fail to source /dev/null (special
1710 # files actually), so we avoid doing that.
1711 if test -f "$cache_file"; then
1712 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1713 echo "$as_me: loading cache $cache_file" >&6;}
1714 case $cache_file in
1715 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1716 *) . "./$cache_file";;
1717 esac
1719 else
1720 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1721 echo "$as_me: creating cache $cache_file" >&6;}
1722 >$cache_file
1725 # Check that the precious variables saved in the cache have kept the same
1726 # value.
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1734 set,)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,set)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,);;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1752 fi;;
1753 esac
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1756 case $ac_new_val in
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1759 esac
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 esac
1765 done
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1798 ac_ext=c
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 ac_config_headers="$ac_config_headers pyconfig.h"
1810 if test "$prefix" != "/"; then
1811 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1819 # We don't use PACKAGE_ variables, and they cause conflicts
1820 # with other autoconf-based packages that include Python.h
1821 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1822 rm confdefs.h
1823 mv confdefs.h.new confdefs.h
1826 VERSION=2.7
1829 SOVERSION=1.0
1831 # The later defininition of _XOPEN_SOURCE disables certain features
1832 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1834 cat >>confdefs.h <<\_ACEOF
1835 #define _GNU_SOURCE 1
1836 _ACEOF
1839 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1840 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1841 # them.
1843 cat >>confdefs.h <<\_ACEOF
1844 #define _NETBSD_SOURCE 1
1845 _ACEOF
1848 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1849 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1850 # them.
1852 cat >>confdefs.h <<\_ACEOF
1853 #define __BSD_VISIBLE 1
1854 _ACEOF
1857 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1858 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1860 cat >>confdefs.h <<\_ACEOF
1861 #define _BSD_TYPES 1
1862 _ACEOF
1865 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1866 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1867 # them.
1869 cat >>confdefs.h <<\_ACEOF
1870 #define _DARWIN_C_SOURCE 1
1871 _ACEOF
1875 define_xopen_source=yes
1877 # Arguments passed to configure.
1879 CONFIG_ARGS="$ac_configure_args"
1881 # Check whether --enable-universalsdk was given.
1882 if test "${enable_universalsdk+set}" = set; then
1883 enableval=$enable_universalsdk;
1884 case $enableval in
1885 yes)
1886 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1888 esac
1889 case $enableval in
1891 UNIVERSALSDK=
1892 enable_universalsdk=
1895 UNIVERSALSDK=$enableval
1897 esac
1899 else
1901 UNIVERSALSDK=
1902 enable_universalsdk=
1908 ARCH_RUN_32BIT=
1911 UNIVERSAL_ARCHS="32-bit"
1912 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1913 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1915 # Check whether --with-universal-archs was given.
1916 if test "${with_universal_archs+set}" = set; then
1917 withval=$with_universal_archs;
1918 { echo "$as_me:$LINENO: result: $withval" >&5
1919 echo "${ECHO_T}$withval" >&6; }
1920 UNIVERSAL_ARCHS="$withval"
1922 else
1924 { echo "$as_me:$LINENO: result: 32-bit" >&5
1925 echo "${ECHO_T}32-bit" >&6; }
1933 # Check whether --with-framework-name was given.
1934 if test "${with_framework_name+set}" = set; then
1935 withval=$with_framework_name;
1936 PYTHONFRAMEWORK=${withval}
1937 PYTHONFRAMEWORKDIR=${withval}.framework
1938 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1940 else
1942 PYTHONFRAMEWORK=Python
1943 PYTHONFRAMEWORKDIR=Python.framework
1944 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1948 # Check whether --enable-framework was given.
1949 if test "${enable_framework+set}" = set; then
1950 enableval=$enable_framework;
1951 case $enableval in
1952 yes)
1953 enableval=/Library/Frameworks
1954 esac
1955 case $enableval in
1957 PYTHONFRAMEWORK=
1958 PYTHONFRAMEWORKDIR=no-framework
1959 PYTHONFRAMEWORKPREFIX=
1960 PYTHONFRAMEWORKINSTALLDIR=
1961 FRAMEWORKINSTALLFIRST=
1962 FRAMEWORKINSTALLLAST=
1963 FRAMEWORKALTINSTALLFIRST=
1964 FRAMEWORKALTINSTALLLAST=
1965 if test "x${prefix}" = "xNONE"; then
1966 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1967 else
1968 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1970 enable_framework=
1973 PYTHONFRAMEWORKPREFIX=$enableval
1974 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1975 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1976 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1977 if test "$UNIVERSAL_ARCHS" = "all"
1978 then
1979 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1980 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1981 else
1982 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1983 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1986 if test "x${prefix}" = "xNONE" ; then
1987 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1988 else
1989 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1991 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1993 # Add files for Mac specific code to the list of output
1994 # files:
1995 ac_config_files="$ac_config_files Mac/Makefile"
1997 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1999 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2001 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2003 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2005 esac
2007 else
2009 PYTHONFRAMEWORK=
2010 PYTHONFRAMEWORKDIR=no-framework
2011 PYTHONFRAMEWORKPREFIX=
2012 PYTHONFRAMEWORKINSTALLDIR=
2013 FRAMEWORKINSTALLFIRST=
2014 FRAMEWORKINSTALLLAST=
2015 FRAMEWORKALTINSTALLFIRST=
2016 FRAMEWORKALTINSTALLLAST=
2017 if test "x${prefix}" = "xNONE" ; then
2018 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2019 else
2020 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2022 enable_framework=
2024 if test "$UNIVERSAL_ARCHS" = "all"
2025 then
2026 FRAMEWORKINSTALLLAST=update4wayuniversal
2027 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2043 ##AC_ARG_WITH(dyld,
2044 ## AC_HELP_STRING(--with-dyld,
2045 ## Use (OpenStep|Rhapsody) dynamic linker))
2047 # Set name for machine-dependent library files
2049 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2050 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2051 if test -z "$MACHDEP"
2052 then
2053 ac_sys_system=`uname -s`
2054 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2055 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2056 ac_sys_release=`uname -v`
2057 else
2058 ac_sys_release=`uname -r`
2060 ac_md_system=`echo $ac_sys_system |
2061 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2062 ac_md_release=`echo $ac_sys_release |
2063 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2064 MACHDEP="$ac_md_system$ac_md_release"
2066 case $MACHDEP in
2067 cygwin*) MACHDEP="cygwin";;
2068 darwin*) MACHDEP="darwin";;
2069 atheos*) MACHDEP="atheos";;
2070 irix646) MACHDEP="irix6";;
2071 '') MACHDEP="unknown";;
2072 esac
2075 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2076 # disable features if it is defined, without any means to access these
2077 # features as extensions. For these systems, we skip the definition of
2078 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2079 # some feature, make sure there is no alternative way to access this
2080 # feature. Also, when using wildcards, make sure you have verified the
2081 # need for not defining _XOPEN_SOURCE on all systems matching the
2082 # wildcard, and that the wildcard does not include future systems
2083 # (which may remove their limitations).
2084 case $ac_sys_system/$ac_sys_release in
2085 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2086 # even though select is a POSIX function. Reported by J. Ribbens.
2087 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2088 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2089 define_xopen_source=no
2090 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2091 # also defined. This can be overridden by defining _BSD_SOURCE
2092 # As this has a different meaning on Linux, only define it on OpenBSD
2094 cat >>confdefs.h <<\_ACEOF
2095 #define _BSD_SOURCE 1
2096 _ACEOF
2099 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2100 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2101 # Marc Recht
2102 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2103 define_xopen_source=no;;
2104 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2105 # of union __?sigval. Reported by Stuart Bishop.
2106 SunOS/5.6)
2107 define_xopen_source=no;;
2108 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2109 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2110 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2111 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2112 define_xopen_source=no;;
2113 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2114 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2115 SCO_SV/3.2)
2116 define_xopen_source=no;;
2117 # On FreeBSD 4, the math functions C89 does not cover are never defined
2118 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2119 FreeBSD/4.*)
2120 define_xopen_source=no;;
2121 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2122 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2123 # identifies itself as Darwin/7.*
2124 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2125 # disables platform specific features beyond repair.
2126 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2127 # has no effect, don't bother defining them
2128 Darwin/[6789].*)
2129 define_xopen_source=no;;
2130 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2131 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2132 # or has another value. By not (re)defining it, the defaults come in place.
2133 AIX/4)
2134 define_xopen_source=no;;
2135 AIX/5)
2136 if test `uname -r` -eq 1; then
2137 define_xopen_source=no
2140 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2141 # defining NI_NUMERICHOST.
2142 QNX/6.3.2)
2143 define_xopen_source=no
2146 esac
2148 if test $define_xopen_source = yes
2149 then
2150 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2151 # defined precisely as g++ defines it
2152 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2153 # compiler
2154 case $ac_sys_system/$ac_sys_release in
2155 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2157 cat >>confdefs.h <<\_ACEOF
2158 #define _XOPEN_SOURCE 500
2159 _ACEOF
2164 cat >>confdefs.h <<\_ACEOF
2165 #define _XOPEN_SOURCE 600
2166 _ACEOF
2169 esac
2171 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2172 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2173 # several APIs are not declared. Since this is also needed in some
2174 # cases for HP-UX, we define it globally.
2175 # except for Solaris 10, where it must not be defined,
2176 # as it implies XPG4.2
2177 case $ac_sys_system/$ac_sys_release in
2178 SunOS/5.10)
2182 cat >>confdefs.h <<\_ACEOF
2183 #define _XOPEN_SOURCE_EXTENDED 1
2184 _ACEOF
2187 esac
2190 cat >>confdefs.h <<\_ACEOF
2191 #define _POSIX_C_SOURCE 200112L
2192 _ACEOF
2198 # SGI compilers allow the specification of the both the ABI and the
2199 # ISA on the command line. Depending on the values of these switches,
2200 # different and often incompatable code will be generated.
2202 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2203 # thus supply support for various ABI/ISA combinations. The MACHDEP
2204 # variable is also adjusted.
2207 if test ! -z "$SGI_ABI"
2208 then
2209 CC="cc $SGI_ABI"
2210 LDFLAGS="$SGI_ABI $LDFLAGS"
2211 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2213 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2214 echo "${ECHO_T}$MACHDEP" >&6; }
2216 # And add extra plat-mac for darwin
2219 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2220 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2221 if test -z "$EXTRAPLATDIR"
2222 then
2223 case $MACHDEP in
2224 darwin)
2225 EXTRAPLATDIR="\$(PLATMACDIRS)"
2226 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2229 EXTRAPLATDIR=""
2230 EXTRAMACHDEPPATH=""
2232 esac
2234 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2235 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2237 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2238 # it may influence the way we can build extensions, so distutils
2239 # needs to check it
2242 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2243 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2245 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2246 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2247 ac_sys_machine=`uname -m`
2248 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2249 echo "${ECHO_T}$ac_sys_machine" >&6; }
2251 # checks for alternative programs
2253 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2254 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2255 # just to get things to compile and link. Users are free to override OPT
2256 # when running configure or make. The build should not break if they do.
2257 # BASECFLAGS should generally not be messed with, however.
2259 # XXX shouldn't some/most/all of this code be merged with the stuff later
2260 # on that fiddles with OPT and BASECFLAGS?
2261 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2262 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2264 # Check whether --with-gcc was given.
2265 if test "${with_gcc+set}" = set; then
2266 withval=$with_gcc;
2267 case $withval in
2268 no) CC=${CC:-cc}
2269 without_gcc=yes;;
2270 yes) CC=gcc
2271 without_gcc=no;;
2272 *) CC=$withval
2273 without_gcc=$withval;;
2274 esac
2275 else
2277 case $ac_sys_system in
2278 AIX*) CC=cc_r
2279 without_gcc=;;
2280 BeOS*)
2281 case $BE_HOST_CPU in
2282 ppc)
2283 CC=mwcc
2284 without_gcc=yes
2285 BASECFLAGS="$BASECFLAGS -export pragma"
2286 OPT="$OPT -O"
2287 LDFLAGS="$LDFLAGS -nodup"
2289 x86)
2290 CC=gcc
2291 without_gcc=no
2292 OPT="$OPT -O"
2295 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2296 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2297 { (exit 1); exit 1; }; }
2299 esac
2300 AR="\$(srcdir)/Modules/ar_beos"
2301 RANLIB=:
2303 Monterey*)
2304 RANLIB=:
2305 without_gcc=;;
2306 *) without_gcc=no;;
2307 esac
2310 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2311 echo "${ECHO_T}$without_gcc" >&6; }
2313 # If the user switches compilers, we can't believe the cache
2314 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2315 then
2316 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2317 (it is also a good idea to do 'make clean' before compiling)" >&5
2318 echo "$as_me: error: cached CC is different -- throw away $cache_file
2319 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2320 { (exit 1); exit 1; }; }
2323 ac_ext=c
2324 ac_cpp='$CPP $CPPFLAGS'
2325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328 if test -n "$ac_tool_prefix"; then
2329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 if test -n "$CC"; then
2337 ac_cv_prog_CC="$CC" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2350 done
2351 done
2352 IFS=$as_save_IFS
2356 CC=$ac_cv_prog_CC
2357 if test -n "$CC"; then
2358 { echo "$as_me:$LINENO: result: $CC" >&5
2359 echo "${ECHO_T}$CC" >&6; }
2360 else
2361 { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2367 if test -z "$ac_cv_prog_CC"; then
2368 ac_ct_CC=$CC
2369 # Extract the first word of "gcc", so it can be a program name with args.
2370 set dummy gcc; ac_word=$2
2371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376 if test -n "$ac_ct_CC"; then
2377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 ac_cv_prog_ac_ct_CC="gcc"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2390 done
2391 done
2392 IFS=$as_save_IFS
2396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2397 if test -n "$ac_ct_CC"; then
2398 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2399 echo "${ECHO_T}$ac_ct_CC" >&6; }
2400 else
2401 { echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6; }
2405 if test "x$ac_ct_CC" = x; then
2406 CC=""
2407 else
2408 case $cross_compiling:$ac_tool_warned in
2409 yes:)
2410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2411 whose name does not start with the host triplet. If you think this
2412 configuration is useful to you, please write to autoconf@gnu.org." >&5
2413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2414 whose name does not start with the host triplet. If you think this
2415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2416 ac_tool_warned=yes ;;
2417 esac
2418 CC=$ac_ct_CC
2420 else
2421 CC="$ac_cv_prog_CC"
2424 if test -z "$CC"; then
2425 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}cc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_CC="${ac_tool_prefix}cc"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2447 done
2448 done
2449 IFS=$as_save_IFS
2453 CC=$ac_cv_prog_CC
2454 if test -n "$CC"; then
2455 { echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6; }
2457 else
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2465 if test -z "$CC"; then
2466 # Extract the first word of "cc", so it can be a program name with args.
2467 set dummy cc; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475 else
2476 ac_prog_rejected=no
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2485 ac_prog_rejected=yes
2486 continue
2488 ac_cv_prog_CC="cc"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2492 done
2493 done
2494 IFS=$as_save_IFS
2496 if test $ac_prog_rejected = yes; then
2497 # We found a bogon in the path, so make sure we never use it.
2498 set dummy $ac_cv_prog_CC
2499 shift
2500 if test $# != 0; then
2501 # We chose a different compiler from the bogus one.
2502 # However, it has the same basename, so the bogon will be chosen
2503 # first if we set CC to just the basename; use the full file name.
2504 shift
2505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2510 CC=$ac_cv_prog_CC
2511 if test -n "$CC"; then
2512 { echo "$as_me:$LINENO: result: $CC" >&5
2513 echo "${ECHO_T}$CC" >&6; }
2514 else
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2521 if test -z "$CC"; then
2522 if test -n "$ac_tool_prefix"; then
2523 for ac_prog in cl.exe
2525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2546 done
2547 done
2548 IFS=$as_save_IFS
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554 { echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6; }
2556 else
2557 { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2562 test -n "$CC" && break
2563 done
2565 if test -z "$CC"; then
2566 ac_ct_CC=$CC
2567 for ac_prog in cl.exe
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576 if test -n "$ac_ct_CC"; then
2577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_ac_ct_CC="$ac_prog"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2590 done
2591 done
2592 IFS=$as_save_IFS
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599 echo "${ECHO_T}$ac_ct_CC" >&6; }
2600 else
2601 { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2606 test -n "$ac_ct_CC" && break
2607 done
2609 if test "x$ac_ct_CC" = x; then
2610 CC=""
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613 yes:)
2614 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2615 whose name does not start with the host triplet. If you think this
2616 configuration is useful to you, please write to autoconf@gnu.org." >&5
2617 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2618 whose name does not start with the host triplet. If you think this
2619 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2620 ac_tool_warned=yes ;;
2621 esac
2622 CC=$ac_ct_CC
2629 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2630 See \`config.log' for more details." >&5
2631 echo "$as_me: error: no acceptable C compiler found in \$PATH
2632 See \`config.log' for more details." >&2;}
2633 { (exit 1); exit 1; }; }
2635 # Provide some information about the compiler.
2636 echo "$as_me:$LINENO: checking for C compiler version" >&5
2637 ac_compiler=`set X $ac_compile; echo $2`
2638 { (ac_try="$ac_compiler --version >&5"
2639 case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644 (eval "$ac_compiler --version >&5") 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }
2648 { (ac_try="$ac_compiler -v >&5"
2649 case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compiler -v >&5") 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }
2658 { (ac_try="$ac_compiler -V >&5"
2659 case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compiler -V >&5") 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }
2669 cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2677 main ()
2681 return 0;
2683 _ACEOF
2684 ac_clean_files_save=$ac_clean_files
2685 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2686 # Try to create an executable without -o first, disregard a.out.
2687 # It will help us diagnose broken compilers, and finding out an intuition
2688 # of exeext.
2689 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2690 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2691 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2693 # List of possible output files, starting from the most likely.
2694 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2695 # only as a last resort. b.out is created by i960 compilers.
2696 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2698 # The IRIX 6 linker writes into existing files which may not be
2699 # executable, retaining their permissions. Remove them first so a
2700 # subsequent execution test works.
2701 ac_rmfiles=
2702 for ac_file in $ac_files
2704 case $ac_file in
2705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2706 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2707 esac
2708 done
2709 rm -f $ac_rmfiles
2711 if { (ac_try="$ac_link_default"
2712 case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_link_default") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; then
2721 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2722 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2723 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2724 # so that the user can short-circuit this test for compilers unknown to
2725 # Autoconf.
2726 for ac_file in $ac_files ''
2728 test -f "$ac_file" || continue
2729 case $ac_file in
2730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2732 [ab].out )
2733 # We found the default executable, but exeext='' is most
2734 # certainly right.
2735 break;;
2736 *.* )
2737 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2738 then :; else
2739 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2741 # We set ac_cv_exeext here because the later test for it is not
2742 # safe: cross compilers may not add the suffix if given an `-o'
2743 # argument, so we may need to know it at that point already.
2744 # Even if this section looks crufty: it has the advantage of
2745 # actually working.
2746 break;;
2748 break;;
2749 esac
2750 done
2751 test "$ac_cv_exeext" = no && ac_cv_exeext=
2753 else
2754 ac_file=''
2757 { echo "$as_me:$LINENO: result: $ac_file" >&5
2758 echo "${ECHO_T}$ac_file" >&6; }
2759 if test -z "$ac_file"; then
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2764 See \`config.log' for more details." >&5
2765 echo "$as_me: error: C compiler cannot create executables
2766 See \`config.log' for more details." >&2;}
2767 { (exit 77); exit 77; }; }
2770 ac_exeext=$ac_cv_exeext
2772 # Check that the compiler produces executables we can run. If not, either
2773 # the compiler is broken, or we cross compile.
2774 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2775 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2776 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2777 # If not cross compiling, check that we can run a simple program.
2778 if test "$cross_compiling" != yes; then
2779 if { ac_try='./$ac_file'
2780 { (case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_try") 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 cross_compiling=no
2790 else
2791 if test "$cross_compiling" = maybe; then
2792 cross_compiling=yes
2793 else
2794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2795 If you meant to cross compile, use \`--host'.
2796 See \`config.log' for more details." >&5
2797 echo "$as_me: error: cannot run C compiled programs.
2798 If you meant to cross compile, use \`--host'.
2799 See \`config.log' for more details." >&2;}
2800 { (exit 1); exit 1; }; }
2804 { echo "$as_me:$LINENO: result: yes" >&5
2805 echo "${ECHO_T}yes" >&6; }
2807 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2808 ac_clean_files=$ac_clean_files_save
2809 # Check that the compiler produces executables we can run. If not, either
2810 # the compiler is broken, or we cross compile.
2811 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2812 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2813 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2814 echo "${ECHO_T}$cross_compiling" >&6; }
2816 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2817 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2818 if { (ac_try="$ac_link"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link") 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2829 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2830 # work properly (i.e., refer to `conftest.exe'), while it won't with
2831 # `rm'.
2832 for ac_file in conftest.exe conftest conftest.*; do
2833 test -f "$ac_file" || continue
2834 case $ac_file in
2835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2836 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837 break;;
2838 * ) break;;
2839 esac
2840 done
2841 else
2842 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2843 See \`config.log' for more details." >&5
2844 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2845 See \`config.log' for more details." >&2;}
2846 { (exit 1); exit 1; }; }
2849 rm -f conftest$ac_cv_exeext
2850 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2851 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2853 rm -f conftest.$ac_ext
2854 EXEEXT=$ac_cv_exeext
2855 ac_exeext=$EXEEXT
2856 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2857 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2858 if test "${ac_cv_objext+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h. */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2869 main ()
2873 return 0;
2875 _ACEOF
2876 rm -f conftest.o conftest.obj
2877 if { (ac_try="$ac_compile"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 for ac_file in conftest.o conftest.obj conftest.*; do
2888 test -f "$ac_file" || continue;
2889 case $ac_file in
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2891 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2892 break;;
2893 esac
2894 done
2895 else
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2899 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2900 See \`config.log' for more details." >&5
2901 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2902 See \`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }
2906 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2908 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2909 echo "${ECHO_T}$ac_cv_objext" >&6; }
2910 OBJEXT=$ac_cv_objext
2911 ac_objext=$OBJEXT
2912 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2913 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2914 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2925 main ()
2927 #ifndef __GNUC__
2928 choke me
2929 #endif
2932 return 0;
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } && {
2949 test -z "$ac_c_werror_flag" ||
2950 test ! -s conftest.err
2951 } && test -s conftest.$ac_objext; then
2952 ac_compiler_gnu=yes
2953 else
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 ac_compiler_gnu=no
2960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2964 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2965 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2966 GCC=`test $ac_compiler_gnu = yes && echo yes`
2967 ac_test_CFLAGS=${CFLAGS+set}
2968 ac_save_CFLAGS=$CFLAGS
2969 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2970 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2971 if test "${ac_cv_prog_cc_g+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 ac_save_c_werror_flag=$ac_c_werror_flag
2975 ac_c_werror_flag=yes
2976 ac_cv_prog_cc_g=no
2977 CFLAGS="-g"
2978 cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h. */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2986 main ()
2990 return 0;
2992 _ACEOF
2993 rm -f conftest.$ac_objext
2994 if { (ac_try="$ac_compile"
2995 case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } && {
3007 test -z "$ac_c_werror_flag" ||
3008 test ! -s conftest.err
3009 } && test -s conftest.$ac_objext; then
3010 ac_cv_prog_cc_g=yes
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 CFLAGS=""
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3024 main ()
3028 return 0;
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (ac_try="$ac_compile"
3033 case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compile") 2>conftest.er1
3039 ac_status=$?
3040 grep -v '^ *+' conftest.er1 >conftest.err
3041 rm -f conftest.er1
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } && {
3045 test -z "$ac_c_werror_flag" ||
3046 test ! -s conftest.err
3047 } && test -s conftest.$ac_objext; then
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3053 ac_c_werror_flag=$ac_save_c_werror_flag
3054 CFLAGS="-g"
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3063 main ()
3067 return 0;
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } && {
3084 test -z "$ac_c_werror_flag" ||
3085 test ! -s conftest.err
3086 } && test -s conftest.$ac_objext; then
3087 ac_cv_prog_cc_g=yes
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 ac_c_werror_flag=$ac_save_c_werror_flag
3104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3105 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3106 if test "$ac_test_CFLAGS" = set; then
3107 CFLAGS=$ac_save_CFLAGS
3108 elif test $ac_cv_prog_cc_g = yes; then
3109 if test "$GCC" = yes; then
3110 CFLAGS="-g -O2"
3111 else
3112 CFLAGS="-g"
3114 else
3115 if test "$GCC" = yes; then
3116 CFLAGS="-O2"
3117 else
3118 CFLAGS=
3121 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3122 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3123 if test "${ac_cv_prog_cc_c89+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126 ac_cv_prog_cc_c89=no
3127 ac_save_CC=$CC
3128 cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h. */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3134 #include <stdarg.h>
3135 #include <stdio.h>
3136 #include <sys/types.h>
3137 #include <sys/stat.h>
3138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3139 struct buf { int x; };
3140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3141 static char *e (p, i)
3142 char **p;
3143 int i;
3145 return p[i];
3147 static char *f (char * (*g) (char **, int), char **p, ...)
3149 char *s;
3150 va_list v;
3151 va_start (v,p);
3152 s = g (p, va_arg (v,int));
3153 va_end (v);
3154 return s;
3157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3158 function prototypes and stuff, but not '\xHH' hex character constants.
3159 These don't provoke an error unfortunately, instead are silently treated
3160 as 'x'. The following induces an error, until -std is added to get
3161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3162 array size at least. It's necessary to write '\x00'==0 to get something
3163 that's true only with -std. */
3164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3166 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3167 inside strings and character constants. */
3168 #define FOO(x) 'x'
3169 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3171 int test (int i, double x);
3172 struct s1 {int (*f) (int a);};
3173 struct s2 {int (*f) (double a);};
3174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3175 int argc;
3176 char **argv;
3178 main ()
3180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3182 return 0;
3184 _ACEOF
3185 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3186 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3188 CC="$ac_save_CC $ac_arg"
3189 rm -f conftest.$ac_objext
3190 if { (ac_try="$ac_compile"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_compile") 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } && {
3203 test -z "$ac_c_werror_flag" ||
3204 test ! -s conftest.err
3205 } && test -s conftest.$ac_objext; then
3206 ac_cv_prog_cc_c89=$ac_arg
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3214 rm -f core conftest.err conftest.$ac_objext
3215 test "x$ac_cv_prog_cc_c89" != "xno" && break
3216 done
3217 rm -f conftest.$ac_ext
3218 CC=$ac_save_CC
3221 # AC_CACHE_VAL
3222 case "x$ac_cv_prog_cc_c89" in
3224 { echo "$as_me:$LINENO: result: none needed" >&5
3225 echo "${ECHO_T}none needed" >&6; } ;;
3226 xno)
3227 { echo "$as_me:$LINENO: result: unsupported" >&5
3228 echo "${ECHO_T}unsupported" >&6; } ;;
3230 CC="$CC $ac_cv_prog_cc_c89"
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3233 esac
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3246 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3248 # Check whether --with-cxx_main was given.
3249 if test "${with_cxx_main+set}" = set; then
3250 withval=$with_cxx_main;
3252 case $withval in
3253 no) with_cxx_main=no
3254 MAINCC='$(CC)';;
3255 yes) with_cxx_main=yes
3256 MAINCC='$(CXX)';;
3257 *) with_cxx_main=yes
3258 MAINCC=$withval
3259 if test -z "$CXX"
3260 then
3261 CXX=$withval
3262 fi;;
3263 esac
3264 else
3266 with_cxx_main=no
3267 MAINCC='$(CC)'
3271 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3272 echo "${ECHO_T}$with_cxx_main" >&6; }
3274 preset_cxx="$CXX"
3275 if test -z "$CXX"
3276 then
3277 case "$CC" in
3278 gcc) # Extract the first word of "g++", so it can be a program name with args.
3279 set dummy g++; ac_word=$2
3280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3282 if test "${ac_cv_path_CXX+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 case $CXX in
3286 [\\/]* | ?:[\\/]*)
3287 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in notfound
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3301 done
3302 done
3303 IFS=$as_save_IFS
3305 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3307 esac
3309 CXX=$ac_cv_path_CXX
3310 if test -n "$CXX"; then
3311 { echo "$as_me:$LINENO: result: $CXX" >&5
3312 echo "${ECHO_T}$CXX" >&6; }
3313 else
3314 { echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6; }
3319 cc) # Extract the first word of "c++", so it can be a program name with args.
3320 set dummy c++; ac_word=$2
3321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3323 if test "${ac_cv_path_CXX+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 case $CXX in
3327 [\\/]* | ?:[\\/]*)
3328 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in notfound
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3342 done
3343 done
3344 IFS=$as_save_IFS
3346 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3348 esac
3350 CXX=$ac_cv_path_CXX
3351 if test -n "$CXX"; then
3352 { echo "$as_me:$LINENO: result: $CXX" >&5
3353 echo "${ECHO_T}$CXX" >&6; }
3354 else
3355 { echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6; }
3360 esac
3361 if test "$CXX" = "notfound"
3362 then
3363 CXX=""
3366 if test -z "$CXX"
3367 then
3368 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3370 # Extract the first word of "$ac_prog", so it can be a program name with args.
3371 set dummy $ac_prog; ac_word=$2
3372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_CXX+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 if test -n "$CXX"; then
3378 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 ac_cv_prog_CXX="$ac_prog"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3391 done
3392 done
3393 IFS=$as_save_IFS
3397 CXX=$ac_cv_prog_CXX
3398 if test -n "$CXX"; then
3399 { echo "$as_me:$LINENO: result: $CXX" >&5
3400 echo "${ECHO_T}$CXX" >&6; }
3401 else
3402 { echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6; }
3407 test -n "$CXX" && break
3408 done
3409 test -n "$CXX" || CXX="notfound"
3411 if test "$CXX" = "notfound"
3412 then
3413 CXX=""
3416 if test "$preset_cxx" != "$CXX"
3417 then
3418 { echo "$as_me:$LINENO: WARNING:
3420 By default, distutils will build C++ extension modules with \"$CXX\".
3421 If this is not intended, then set CXX on the configure command line.
3422 " >&5
3423 echo "$as_me: WARNING:
3425 By default, distutils will build C++ extension modules with \"$CXX\".
3426 If this is not intended, then set CXX on the configure command line.
3427 " >&2;}
3431 # checks for UNIX variants that set C preprocessor variables
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3439 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3440 # On Suns, sometimes $CPP names a directory.
3441 if test -n "$CPP" && test -d "$CPP"; then
3442 CPP=
3444 if test -z "$CPP"; then
3445 if test "${ac_cv_prog_CPP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 # Double quotes because CPP needs to be expanded
3449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3451 ac_preproc_ok=false
3452 for ac_c_preproc_warn_flag in '' yes
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466 #ifdef __STDC__
3467 # include <limits.h>
3468 #else
3469 # include <assert.h>
3470 #endif
3471 Syntax error
3472 _ACEOF
3473 if { (ac_try="$ac_cpp conftest.$ac_ext"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null && {
3486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 }; then
3490 else
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 # Broken: fails on valid input.
3495 continue
3498 rm -f conftest.err conftest.$ac_ext
3500 # OK, works on sane cases. Now check whether nonexistent headers
3501 # can be detected and how.
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h. */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 #include <ac_nonexistent.h>
3509 _ACEOF
3510 if { (ac_try="$ac_cpp conftest.$ac_ext"
3511 case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514 esac
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } >/dev/null && {
3523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3524 test ! -s conftest.err
3525 }; then
3526 # Broken: success on invalid input.
3527 continue
3528 else
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 # Passes both tests.
3533 ac_preproc_ok=:
3534 break
3537 rm -f conftest.err conftest.$ac_ext
3539 done
3540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541 rm -f conftest.err conftest.$ac_ext
3542 if $ac_preproc_ok; then
3543 break
3546 done
3547 ac_cv_prog_CPP=$CPP
3550 CPP=$ac_cv_prog_CPP
3551 else
3552 ac_cv_prog_CPP=$CPP
3554 { echo "$as_me:$LINENO: result: $CPP" >&5
3555 echo "${ECHO_T}$CPP" >&6; }
3556 ac_preproc_ok=false
3557 for ac_c_preproc_warn_flag in '' yes
3559 # Use a header file that comes with gcc, so configuring glibc
3560 # with a fresh cross-compiler works.
3561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3562 # <limits.h> exists even on freestanding compilers.
3563 # On the NeXT, cc -E runs the code through the compiler's parser,
3564 # not just through cpp. "Syntax error" is here to catch this case.
3565 cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h. */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 #ifdef __STDC__
3572 # include <limits.h>
3573 #else
3574 # include <assert.h>
3575 #endif
3576 Syntax error
3577 _ACEOF
3578 if { (ac_try="$ac_cpp conftest.$ac_ext"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } >/dev/null && {
3591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3592 test ! -s conftest.err
3593 }; then
3595 else
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 # Broken: fails on valid input.
3600 continue
3603 rm -f conftest.err conftest.$ac_ext
3605 # OK, works on sane cases. Now check whether nonexistent headers
3606 # can be detected and how.
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613 #include <ac_nonexistent.h>
3614 _ACEOF
3615 if { (ac_try="$ac_cpp conftest.$ac_ext"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev/null && {
3628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 }; then
3631 # Broken: success on invalid input.
3632 continue
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3637 # Passes both tests.
3638 ac_preproc_ok=:
3639 break
3642 rm -f conftest.err conftest.$ac_ext
3644 done
3645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646 rm -f conftest.err conftest.$ac_ext
3647 if $ac_preproc_ok; then
3649 else
3650 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3651 See \`config.log' for more details." >&5
3652 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3653 See \`config.log' for more details." >&2;}
3654 { (exit 1); exit 1; }; }
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3665 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 # Extract the first word of "grep ggrep" to use in msg output
3670 if test -z "$GREP"; then
3671 set dummy grep ggrep; ac_prog_name=$2
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 ac_path_GREP_found=false
3676 # Loop through the user's path and test for each of PROGNAME-LIST
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_prog in grep ggrep; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3685 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3686 # Check for GNU ac_path_GREP and select it if it is found.
3687 # Check for GNU $ac_path_GREP
3688 case `"$ac_path_GREP" --version 2>&1` in
3689 *GNU*)
3690 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3692 ac_count=0
3693 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3694 while :
3696 cat "conftest.in" "conftest.in" >"conftest.tmp"
3697 mv "conftest.tmp" "conftest.in"
3698 cp "conftest.in" "conftest.nl"
3699 echo 'GREP' >> "conftest.nl"
3700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3702 ac_count=`expr $ac_count + 1`
3703 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3704 # Best one so far, save it but keep looking for a better one
3705 ac_cv_path_GREP="$ac_path_GREP"
3706 ac_path_GREP_max=$ac_count
3708 # 10*(2^10) chars as input seems more than enough
3709 test $ac_count -gt 10 && break
3710 done
3711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3712 esac
3715 $ac_path_GREP_found && break 3
3716 done
3717 done
3719 done
3720 IFS=$as_save_IFS
3725 GREP="$ac_cv_path_GREP"
3726 if test -z "$GREP"; then
3727 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3728 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3729 { (exit 1); exit 1; }; }
3732 else
3733 ac_cv_path_GREP=$GREP
3738 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3739 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3740 GREP="$ac_cv_path_GREP"
3743 { echo "$as_me:$LINENO: checking for egrep" >&5
3744 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3745 if test "${ac_cv_path_EGREP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3749 then ac_cv_path_EGREP="$GREP -E"
3750 else
3751 # Extract the first word of "egrep" to use in msg output
3752 if test -z "$EGREP"; then
3753 set dummy egrep; ac_prog_name=$2
3754 if test "${ac_cv_path_EGREP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 ac_path_EGREP_found=false
3758 # Loop through the user's path and test for each of PROGNAME-LIST
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_prog in egrep; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3767 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3768 # Check for GNU ac_path_EGREP and select it if it is found.
3769 # Check for GNU $ac_path_EGREP
3770 case `"$ac_path_EGREP" --version 2>&1` in
3771 *GNU*)
3772 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3774 ac_count=0
3775 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3776 while :
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 echo 'EGREP' >> "conftest.nl"
3782 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3784 ac_count=`expr $ac_count + 1`
3785 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_EGREP="$ac_path_EGREP"
3788 ac_path_EGREP_max=$ac_count
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3792 done
3793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3794 esac
3797 $ac_path_EGREP_found && break 3
3798 done
3799 done
3801 done
3802 IFS=$as_save_IFS
3807 EGREP="$ac_cv_path_EGREP"
3808 if test -z "$EGREP"; then
3809 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3810 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3811 { (exit 1); exit 1; }; }
3814 else
3815 ac_cv_path_EGREP=$EGREP
3821 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3822 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3823 EGREP="$ac_cv_path_EGREP"
3827 { echo "$as_me:$LINENO: checking for AIX" >&5
3828 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3835 #ifdef _AIX
3837 #endif
3839 _ACEOF
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 $EGREP "yes" >/dev/null 2>&1; then
3842 { echo "$as_me:$LINENO: result: yes" >&5
3843 echo "${ECHO_T}yes" >&6; }
3844 cat >>confdefs.h <<\_ACEOF
3845 #define _ALL_SOURCE 1
3846 _ACEOF
3848 else
3849 { echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6; }
3852 rm -f conftest*
3856 # Check for unsupported systems
3857 case $ac_sys_system/$ac_sys_release in
3858 atheos*|Linux*/1*)
3859 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3860 echo See README for details.
3861 exit 1;;
3862 esac
3865 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3866 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3868 # Check whether --with-suffix was given.
3869 if test "${with_suffix+set}" = set; then
3870 withval=$with_suffix;
3871 case $withval in
3872 no) EXEEXT=;;
3873 yes) EXEEXT=.exe;;
3874 *) EXEEXT=$withval;;
3875 esac
3878 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3879 echo "${ECHO_T}$EXEEXT" >&6; }
3881 # Test whether we're running on a non-case-sensitive system, in which
3882 # case we give a warning if no ext is given
3884 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3885 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3886 if test ! -d CaseSensitiveTestDir; then
3887 mkdir CaseSensitiveTestDir
3890 if test -d casesensitivetestdir
3891 then
3892 { echo "$as_me:$LINENO: result: yes" >&5
3893 echo "${ECHO_T}yes" >&6; }
3894 BUILDEXEEXT=.exe
3895 else
3896 { echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6; }
3898 BUILDEXEEXT=$EXEEXT
3900 rmdir CaseSensitiveTestDir
3902 case $MACHDEP in
3903 bsdos*)
3904 case $CC in
3905 gcc) CC="$CC -D_HAVE_BSDI";;
3906 esac;;
3907 esac
3909 case $ac_sys_system in
3910 hp*|HP*)
3911 case $CC in
3912 cc|*/cc) CC="$CC -Ae";;
3913 esac;;
3914 Monterey*)
3915 case $CC in
3916 cc) CC="$CC -Wl,-Bexport";;
3917 esac;;
3918 SunOS*)
3919 # Some functions have a prototype only with that define, e.g. confstr
3921 cat >>confdefs.h <<\_ACEOF
3922 #define __EXTENSIONS__ 1
3923 _ACEOF
3926 esac
3930 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3931 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3932 if test -z "$LIBRARY"
3933 then
3934 LIBRARY='libpython$(VERSION).a'
3936 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3937 echo "${ECHO_T}$LIBRARY" >&6; }
3939 # LDLIBRARY is the name of the library to link against (as opposed to the
3940 # name of the library into which to insert object files). BLDLIBRARY is also
3941 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3942 # is blank as the main program is not linked directly against LDLIBRARY.
3943 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3944 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3945 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3946 # DLLLIBRARY is the shared (i.e., DLL) library.
3948 # RUNSHARED is used to run shared python without installed libraries
3950 # INSTSONAME is the name of the shared library that will be use to install
3951 # on the system - some systems like version suffix, others don't
3958 LDLIBRARY="$LIBRARY"
3959 BLDLIBRARY='$(LDLIBRARY)'
3960 INSTSONAME='$(LDLIBRARY)'
3961 DLLLIBRARY=''
3962 LDLIBRARYDIR=''
3963 RUNSHARED=''
3965 # LINKCC is the command that links the python executable -- default is $(CC).
3966 # If CXX is set, and if it is needed to link a main function that was
3967 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3968 # python might then depend on the C++ runtime
3969 # This is altered for AIX in order to build the export list before
3970 # linking.
3972 { echo "$as_me:$LINENO: checking LINKCC" >&5
3973 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3974 if test -z "$LINKCC"
3975 then
3976 LINKCC='$(PURIFY) $(MAINCC)'
3977 case $ac_sys_system in
3978 AIX*)
3979 exp_extra="\"\""
3980 if test $ac_sys_release -ge 5 -o \
3981 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3982 exp_extra="."
3984 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3985 Monterey64*)
3986 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3987 QNX*)
3988 # qcc must be used because the other compilers do not
3989 # support -N.
3990 LINKCC=qcc;;
3991 esac
3993 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3994 echo "${ECHO_T}$LINKCC" >&6; }
3996 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3997 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3998 # Check whether --enable-shared was given.
3999 if test "${enable_shared+set}" = set; then
4000 enableval=$enable_shared;
4004 if test -z "$enable_shared"
4005 then
4006 case $ac_sys_system in
4007 CYGWIN* | atheos*)
4008 enable_shared="yes";;
4010 enable_shared="no";;
4011 esac
4013 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4014 echo "${ECHO_T}$enable_shared" >&6; }
4016 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4017 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4018 # Check whether --enable-profiling was given.
4019 if test "${enable_profiling+set}" = set; then
4020 enableval=$enable_profiling; ac_save_cc="$CC"
4021 CC="$CC -pg"
4022 if test "$cross_compiling" = yes; then
4023 ac_enable_profiling="no"
4024 else
4025 cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h. */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 int main() { return 0; }
4032 _ACEOF
4033 rm -f conftest$ac_exeext
4034 if { (ac_try="$ac_link"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_link") 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 ac_enable_profiling="yes"
4054 else
4055 echo "$as_me: program exited with status $ac_status" >&5
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 ( exit $ac_status )
4060 ac_enable_profiling="no"
4062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4066 CC="$ac_save_cc"
4069 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4070 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4072 case "$ac_enable_profiling" in
4073 "yes")
4074 BASECFLAGS="-pg $BASECFLAGS"
4075 LDFLAGS="-pg $LDFLAGS"
4077 esac
4079 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4080 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4082 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4083 # library that we build, but we do not want to link against it (we
4084 # will find it with a -framework option). For this reason there is an
4085 # extra variable BLDLIBRARY against which Python and the extension
4086 # modules are linked, BLDLIBRARY. This is normally the same as
4087 # LDLIBRARY, but empty for MacOSX framework builds.
4088 if test "$enable_framework"
4089 then
4090 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4091 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4092 BLDLIBRARY=''
4093 else
4094 BLDLIBRARY='$(LDLIBRARY)'
4097 # Other platforms follow
4098 if test $enable_shared = "yes"; then
4100 cat >>confdefs.h <<\_ACEOF
4101 #define Py_ENABLE_SHARED 1
4102 _ACEOF
4104 case $ac_sys_system in
4105 BeOS*)
4106 LDLIBRARY='libpython$(VERSION).so'
4108 CYGWIN*)
4109 LDLIBRARY='libpython$(VERSION).dll.a'
4110 DLLLIBRARY='libpython$(VERSION).dll'
4112 SunOS*)
4113 LDLIBRARY='libpython$(VERSION).so'
4114 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4115 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4116 INSTSONAME="$LDLIBRARY".$SOVERSION
4118 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4119 LDLIBRARY='libpython$(VERSION).so'
4120 BLDLIBRARY='-L. -lpython$(VERSION)'
4121 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4122 case $ac_sys_system in
4123 FreeBSD*)
4124 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4126 esac
4127 INSTSONAME="$LDLIBRARY".$SOVERSION
4129 hp*|HP*)
4130 case `uname -m` in
4131 ia64)
4132 LDLIBRARY='libpython$(VERSION).so'
4135 LDLIBRARY='libpython$(VERSION).sl'
4137 esac
4138 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4139 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4141 OSF*)
4142 LDLIBRARY='libpython$(VERSION).so'
4143 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4144 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4146 atheos*)
4147 LDLIBRARY='libpython$(VERSION).so'
4148 BLDLIBRARY='-L. -lpython$(VERSION)'
4149 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4151 Darwin*)
4152 LDLIBRARY='libpython$(VERSION).dylib'
4153 BLDLIBRARY='-L. -lpython$(VERSION)'
4154 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4157 esac
4158 else # shared is disabled
4159 case $ac_sys_system in
4160 CYGWIN*)
4161 BLDLIBRARY='$(LIBRARY)'
4162 LDLIBRARY='libpython$(VERSION).dll.a'
4164 esac
4167 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4168 echo "${ECHO_T}$LDLIBRARY" >&6; }
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4175 if test "${ac_cv_prog_RANLIB+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 if test -n "$RANLIB"; then
4179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4192 done
4193 done
4194 IFS=$as_save_IFS
4198 RANLIB=$ac_cv_prog_RANLIB
4199 if test -n "$RANLIB"; then
4200 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4201 echo "${ECHO_T}$RANLIB" >&6; }
4202 else
4203 { echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6; }
4209 if test -z "$ac_cv_prog_RANLIB"; then
4210 ac_ct_RANLIB=$RANLIB
4211 # Extract the first word of "ranlib", so it can be a program name with args.
4212 set dummy ranlib; ac_word=$2
4213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 if test -n "$ac_ct_RANLIB"; then
4219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_ac_ct_RANLIB="ranlib"
4229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4232 done
4233 done
4234 IFS=$as_save_IFS
4238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4239 if test -n "$ac_ct_RANLIB"; then
4240 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4241 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4242 else
4243 { echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6; }
4247 if test "x$ac_ct_RANLIB" = x; then
4248 RANLIB=":"
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4253 whose name does not start with the host triplet. If you think this
4254 configuration is useful to you, please write to autoconf@gnu.org." >&5
4255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4256 whose name does not start with the host triplet. If you think this
4257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4258 ac_tool_warned=yes ;;
4259 esac
4260 RANLIB=$ac_ct_RANLIB
4262 else
4263 RANLIB="$ac_cv_prog_RANLIB"
4267 for ac_prog in ar aal
4269 # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4273 if test "${ac_cv_prog_AR+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 if test -n "$AR"; then
4277 ac_cv_prog_AR="$AR" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_AR="$ac_prog"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4290 done
4291 done
4292 IFS=$as_save_IFS
4296 AR=$ac_cv_prog_AR
4297 if test -n "$AR"; then
4298 { echo "$as_me:$LINENO: result: $AR" >&5
4299 echo "${ECHO_T}$AR" >&6; }
4300 else
4301 { echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6; }
4306 test -n "$AR" && break
4307 done
4308 test -n "$AR" || AR="ar"
4312 # Extract the first word of "svnversion", so it can be a program name with args.
4313 set dummy svnversion; ac_word=$2
4314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4316 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319 if test -n "$SVNVERSION"; then
4320 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329 ac_cv_prog_SVNVERSION="found"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4333 done
4334 done
4335 IFS=$as_save_IFS
4337 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4340 SVNVERSION=$ac_cv_prog_SVNVERSION
4341 if test -n "$SVNVERSION"; then
4342 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4343 echo "${ECHO_T}$SVNVERSION" >&6; }
4344 else
4345 { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4350 if test $SVNVERSION = found
4351 then
4352 SVNVERSION="svnversion \$(srcdir)"
4353 else
4354 SVNVERSION="echo exported"
4357 case $MACHDEP in
4358 bsdos*|hp*|HP*)
4359 # install -d does not work on BSDI or HP-UX
4360 if test -z "$INSTALL"
4361 then
4362 INSTALL="${srcdir}/install-sh -c"
4364 esac
4365 ac_aux_dir=
4366 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4367 if test -f "$ac_dir/install-sh"; then
4368 ac_aux_dir=$ac_dir
4369 ac_install_sh="$ac_aux_dir/install-sh -c"
4370 break
4371 elif test -f "$ac_dir/install.sh"; then
4372 ac_aux_dir=$ac_dir
4373 ac_install_sh="$ac_aux_dir/install.sh -c"
4374 break
4375 elif test -f "$ac_dir/shtool"; then
4376 ac_aux_dir=$ac_dir
4377 ac_install_sh="$ac_aux_dir/shtool install -c"
4378 break
4380 done
4381 if test -z "$ac_aux_dir"; then
4382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4383 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4384 { (exit 1); exit 1; }; }
4387 # These three variables are undocumented and unsupported,
4388 # and are intended to be withdrawn in a future Autoconf release.
4389 # They can cause serious problems if a builder's source tree is in a directory
4390 # whose full name contains unusual characters.
4391 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4392 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4393 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4396 # Find a good install program. We prefer a C program (faster),
4397 # so one script is as good as another. But avoid the broken or
4398 # incompatible versions:
4399 # SysV /etc/install, /usr/sbin/install
4400 # SunOS /usr/etc/install
4401 # IRIX /sbin/install
4402 # AIX /bin/install
4403 # AmigaOS /C/install, which installs bootblocks on floppy discs
4404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4407 # OS/2's system install, which has a completely different semantic
4408 # ./install, which can be erroneously created by make from ./install.sh.
4409 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4410 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4411 if test -z "$INSTALL"; then
4412 if test "${ac_cv_path_install+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 # Account for people who put trailing slashes in PATH elements.
4421 case $as_dir/ in
4422 ./ | .// | /cC/* | \
4423 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4424 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4425 /usr/ucb/* ) ;;
4427 # OSF1 and SCO ODT 3.0 have their own names for install.
4428 # Don't use installbsd from OSF since it installs stuff as root
4429 # by default.
4430 for ac_prog in ginstall scoinst install; do
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4433 if test $ac_prog = install &&
4434 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4435 # AIX install. It has an incompatible calling convention.
4437 elif test $ac_prog = install &&
4438 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4439 # program-specific install script used by HP pwplus--don't use.
4441 else
4442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4443 break 3
4446 done
4447 done
4449 esac
4450 done
4451 IFS=$as_save_IFS
4455 if test "${ac_cv_path_install+set}" = set; then
4456 INSTALL=$ac_cv_path_install
4457 else
4458 # As a last resort, use the slow shell script. Don't cache a
4459 # value for INSTALL within a source directory, because that will
4460 # break other packages using the cache if that directory is
4461 # removed, or if the value is a relative name.
4462 INSTALL=$ac_install_sh
4465 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4466 echo "${ECHO_T}$INSTALL" >&6; }
4468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4469 # It thinks the first close brace ends the variable substitution.
4470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4477 # Not every filesystem supports hard links
4479 if test -z "$LN" ; then
4480 case $ac_sys_system in
4481 BeOS*) LN="ln -s";;
4482 CYGWIN*) LN="ln -s";;
4483 atheos*) LN="ln -s";;
4484 *) LN=ln;;
4485 esac
4488 # Check for --with-pydebug
4489 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4490 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4492 # Check whether --with-pydebug was given.
4493 if test "${with_pydebug+set}" = set; then
4494 withval=$with_pydebug;
4495 if test "$withval" != no
4496 then
4498 cat >>confdefs.h <<\_ACEOF
4499 #define Py_DEBUG 1
4500 _ACEOF
4502 { echo "$as_me:$LINENO: result: yes" >&5
4503 echo "${ECHO_T}yes" >&6; };
4504 Py_DEBUG='true'
4505 else { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4508 else
4509 { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4514 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4515 # merged with this chunk of code?
4517 # Optimizer/debugger flags
4518 # ------------------------
4519 # (The following bit of code is complicated enough - please keep things
4520 # indented properly. Just pretend you're editing Python code. ;-)
4522 # There are two parallel sets of case statements below, one that checks to
4523 # see if OPT was set and one that does BASECFLAGS setting based upon
4524 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4525 # user set OPT.
4527 # tweak OPT based on compiler and platform, only if the user didn't set
4528 # it on the command line
4530 if test -z "$OPT"
4531 then
4532 case $GCC in
4533 yes)
4534 if test "$CC" != 'g++' ; then
4535 STRICT_PROTO="-Wstrict-prototypes"
4537 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4538 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4539 WRAP="-fwrapv"
4541 case $ac_cv_prog_cc_g in
4542 yes)
4543 if test "$Py_DEBUG" = 'true' ; then
4544 # Optimization messes up debuggers, so turn it off for
4545 # debug builds.
4546 OPT="-g -Wall $STRICT_PROTO"
4547 else
4548 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4552 OPT="-O3 -Wall $STRICT_PROTO"
4554 esac
4555 case $ac_sys_system in
4556 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4558 esac
4562 OPT="-O"
4564 esac
4566 # The current (beta) Monterey compiler dies with optimizations
4567 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4568 case $ac_sys_system in
4569 Monterey*)
4570 OPT=""
4572 esac
4578 # The -arch flags for universal builds on OSX
4579 UNIVERSAL_ARCH_FLAGS=
4582 # tweak BASECFLAGS based on compiler and platform
4583 case $GCC in
4584 yes)
4585 # Python violates C99 rules, by casting between incompatible
4586 # pointer types. GCC may generate bad code as a result of that,
4587 # so use -fno-strict-aliasing if supported.
4588 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4589 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4590 ac_save_cc="$CC"
4591 CC="$CC -fno-strict-aliasing"
4592 if test "$cross_compiling" = yes; then
4593 ac_cv_no_strict_aliasing_ok=no
4594 else
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 int main() { return 0; }
4602 _ACEOF
4603 rm -f conftest$ac_exeext
4604 if { (ac_try="$ac_link"
4605 case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_link") 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_no_strict_aliasing_ok=yes
4624 else
4625 echo "$as_me: program exited with status $ac_status" >&5
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ( exit $ac_status )
4630 ac_cv_no_strict_aliasing_ok=no
4632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4636 CC="$ac_save_cc"
4637 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4638 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4639 if test $ac_cv_no_strict_aliasing_ok = yes
4640 then
4641 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4644 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4645 # support. Without this, treatment of subnormals doesn't follow
4646 # the standard.
4647 case $ac_sys_machine in
4648 alpha*)
4649 BASECFLAGS="$BASECFLAGS -mieee"
4651 esac
4653 case $ac_sys_system in
4654 SCO_SV*)
4655 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4657 # is there any other compiler on Darwin besides gcc?
4658 Darwin*)
4659 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4660 # used to be here, but non-Apple gcc doesn't accept them.
4663 if test "${enable_universalsdk}"; then
4664 UNIVERSAL_ARCH_FLAGS=""
4665 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4666 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4667 ARCH_RUN_32BIT=""
4669 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4670 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4672 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4673 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4674 ARCH_RUN_32BIT="arch -i386 -ppc"
4676 else
4677 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4678 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4679 { (exit 1); exit 1; }; }
4684 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4685 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4686 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4687 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4691 # Calculate the right deployment target for this build.
4693 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4694 if test ${cur_target} '>' 10.2; then
4695 cur_target=10.3
4697 if test "${UNIVERSAL_ARCHS}" = "all"; then
4698 # Ensure that the default platform for a 4-way
4699 # universal build is OSX 10.5, that's the first
4700 # OS release where 4-way builds make sense.
4701 cur_target='10.5'
4703 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4705 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4706 # environment with a value that is the same as what we'll use
4707 # in the Makefile to ensure that we'll get the same compiler
4708 # environment during configure and build time.
4709 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4710 export MACOSX_DEPLOYMENT_TARGET
4711 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4714 OSF*)
4715 BASECFLAGS="$BASECFLAGS -mieee"
4717 esac
4721 case $ac_sys_system in
4722 OpenUNIX*|UnixWare*)
4723 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4725 OSF*)
4726 BASECFLAGS="$BASECFLAGS -ieee -std"
4728 SCO_SV*)
4729 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4731 esac
4733 esac
4735 if test "$Py_DEBUG" = 'true'; then
4737 else
4738 OPT="-DNDEBUG $OPT"
4741 if test "$ac_arch_flags"
4742 then
4743 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4746 # disable check for icc since it seems to pass, but generates a warning
4747 if test "$CC" = icc
4748 then
4749 ac_cv_opt_olimit_ok=no
4752 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4753 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4754 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757 ac_save_cc="$CC"
4758 CC="$CC -OPT:Olimit=0"
4759 if test "$cross_compiling" = yes; then
4760 ac_cv_opt_olimit_ok=no
4761 else
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 int main() { return 0; }
4769 _ACEOF
4770 rm -f conftest$ac_exeext
4771 if { (ac_try="$ac_link"
4772 case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775 esac
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_link") 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4781 { (case "(($ac_try" in
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4784 esac
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_try") 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_opt_olimit_ok=yes
4791 else
4792 echo "$as_me: program exited with status $ac_status" >&5
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 ( exit $ac_status )
4797 ac_cv_opt_olimit_ok=no
4799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4803 CC="$ac_save_cc"
4806 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4807 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4808 if test $ac_cv_opt_olimit_ok = yes; then
4809 case $ac_sys_system in
4810 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4811 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4812 # environment?
4813 Darwin*)
4816 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4818 esac
4819 else
4820 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4821 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4822 if test "${ac_cv_olimit_ok+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 ac_save_cc="$CC"
4826 CC="$CC -Olimit 1500"
4827 if test "$cross_compiling" = yes; then
4828 ac_cv_olimit_ok=no
4829 else
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 int main() { return 0; }
4837 _ACEOF
4838 rm -f conftest$ac_exeext
4839 if { (ac_try="$ac_link"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_link") 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4849 { (case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852 esac
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_try") 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_olimit_ok=yes
4859 else
4860 echo "$as_me: program exited with status $ac_status" >&5
4861 echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4864 ( exit $ac_status )
4865 ac_cv_olimit_ok=no
4867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4871 CC="$ac_save_cc"
4874 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4875 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4876 if test $ac_cv_olimit_ok = yes; then
4877 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4881 # Check whether GCC supports PyArg_ParseTuple format
4882 if test "$GCC" = "yes"
4883 then
4884 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4885 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4886 save_CFLAGS=$CFLAGS
4887 CFLAGS="$CFLAGS -Werror"
4888 cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h. */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4895 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4898 main ()
4902 return 0;
4904 _ACEOF
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_compile") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
4923 cat >>confdefs.h <<\_ACEOF
4924 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4925 _ACEOF
4927 { echo "$as_me:$LINENO: result: yes" >&5
4928 echo "${ECHO_T}yes" >&6; }
4929 else
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 CFLAGS=$save_CFLAGS
4942 # On some compilers, pthreads are available without further options
4943 # (e.g. MacOS X). On some of these systems, the compiler will not
4944 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4945 # So we have to see first whether pthreads are available without
4946 # options before we can check whether -Kpthread improves anything.
4947 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4948 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4949 if test "${ac_cv_pthread_is_default+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 if test "$cross_compiling" = yes; then
4953 ac_cv_pthread_is_default=no
4954 else
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h. */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4962 #include <pthread.h>
4964 void* routine(void* p){return NULL;}
4966 int main(){
4967 pthread_t p;
4968 if(pthread_create(&p,NULL,routine,NULL)!=0)
4969 return 1;
4970 (void)pthread_detach(p);
4971 return 0;
4974 _ACEOF
4975 rm -f conftest$ac_exeext
4976 if { (ac_try="$ac_link"
4977 case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_link") 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4986 { (case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_try") 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4996 ac_cv_pthread_is_default=yes
4997 ac_cv_kthread=no
4998 ac_cv_pthread=no
5000 else
5001 echo "$as_me: program exited with status $ac_status" >&5
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ( exit $ac_status )
5006 ac_cv_pthread_is_default=no
5008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5015 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5016 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5019 if test $ac_cv_pthread_is_default = yes
5020 then
5021 ac_cv_kpthread=no
5022 else
5023 # -Kpthread, if available, provides the right #defines
5024 # and linker options to make pthread_create available
5025 # Some compilers won't report that they do not support -Kpthread,
5026 # so we need to run a program to see whether it really made the
5027 # function available.
5028 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5029 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5030 if test "${ac_cv_kpthread+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033 ac_save_cc="$CC"
5034 CC="$CC -Kpthread"
5035 if test "$cross_compiling" = yes; then
5036 ac_cv_kpthread=no
5037 else
5038 cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h. */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5045 #include <pthread.h>
5047 void* routine(void* p){return NULL;}
5049 int main(){
5050 pthread_t p;
5051 if(pthread_create(&p,NULL,routine,NULL)!=0)
5052 return 1;
5053 (void)pthread_detach(p);
5054 return 0;
5057 _ACEOF
5058 rm -f conftest$ac_exeext
5059 if { (ac_try="$ac_link"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_link") 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5069 { (case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072 esac
5073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_try") 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 ac_cv_kpthread=yes
5079 else
5080 echo "$as_me: program exited with status $ac_status" >&5
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5084 ( exit $ac_status )
5085 ac_cv_kpthread=no
5087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5091 CC="$ac_save_cc"
5094 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5095 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5098 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5099 then
5100 # -Kthread, if available, provides the right #defines
5101 # and linker options to make pthread_create available
5102 # Some compilers won't report that they do not support -Kthread,
5103 # so we need to run a program to see whether it really made the
5104 # function available.
5105 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5106 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5107 if test "${ac_cv_kthread+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 ac_save_cc="$CC"
5111 CC="$CC -Kthread"
5112 if test "$cross_compiling" = yes; then
5113 ac_cv_kthread=no
5114 else
5115 cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5122 #include <pthread.h>
5124 void* routine(void* p){return NULL;}
5126 int main(){
5127 pthread_t p;
5128 if(pthread_create(&p,NULL,routine,NULL)!=0)
5129 return 1;
5130 (void)pthread_detach(p);
5131 return 0;
5134 _ACEOF
5135 rm -f conftest$ac_exeext
5136 if { (ac_try="$ac_link"
5137 case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140 esac
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_link") 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5146 { (case "(($ac_try" in
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_try") 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_cv_kthread=yes
5156 else
5157 echo "$as_me: program exited with status $ac_status" >&5
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 ( exit $ac_status )
5162 ac_cv_kthread=no
5164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5168 CC="$ac_save_cc"
5171 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5172 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5175 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5176 then
5177 # -pthread, if available, provides the right #defines
5178 # and linker options to make pthread_create available
5179 # Some compilers won't report that they do not support -pthread,
5180 # so we need to run a program to see whether it really made the
5181 # function available.
5182 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5183 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5184 if test "${ac_cv_thread+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 ac_save_cc="$CC"
5188 CC="$CC -pthread"
5189 if test "$cross_compiling" = yes; then
5190 ac_cv_pthread=no
5191 else
5192 cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h. */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5199 #include <pthread.h>
5201 void* routine(void* p){return NULL;}
5203 int main(){
5204 pthread_t p;
5205 if(pthread_create(&p,NULL,routine,NULL)!=0)
5206 return 1;
5207 (void)pthread_detach(p);
5208 return 0;
5211 _ACEOF
5212 rm -f conftest$ac_exeext
5213 if { (ac_try="$ac_link"
5214 case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217 esac
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_link") 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5223 { (case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226 esac
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_try") 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_cv_pthread=yes
5233 else
5234 echo "$as_me: program exited with status $ac_status" >&5
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5238 ( exit $ac_status )
5239 ac_cv_pthread=no
5241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5245 CC="$ac_save_cc"
5248 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5249 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5252 # If we have set a CC compiler flag for thread support then
5253 # check if it works for CXX, too.
5254 ac_cv_cxx_thread=no
5255 if test ! -z "$CXX"
5256 then
5257 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5258 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5259 ac_save_cxx="$CXX"
5261 if test "$ac_cv_kpthread" = "yes"
5262 then
5263 CXX="$CXX -Kpthread"
5264 ac_cv_cxx_thread=yes
5265 elif test "$ac_cv_kthread" = "yes"
5266 then
5267 CXX="$CXX -Kthread"
5268 ac_cv_cxx_thread=yes
5269 elif test "$ac_cv_pthread" = "yes"
5270 then
5271 CXX="$CXX -pthread"
5272 ac_cv_cxx_thread=yes
5275 if test $ac_cv_cxx_thread = yes
5276 then
5277 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5278 $CXX -c conftest.$ac_ext 2>&5
5279 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5280 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5281 then
5282 ac_cv_cxx_thread=yes
5283 else
5284 ac_cv_cxx_thread=no
5286 rm -fr conftest*
5288 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5289 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5291 CXX="$ac_save_cxx"
5294 # checks for header files
5295 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5296 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5297 if test "${ac_cv_header_stdc+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
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 <stdlib.h>
5307 #include <stdarg.h>
5308 #include <string.h>
5309 #include <float.h>
5312 main ()
5316 return 0;
5318 _ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (ac_try="$ac_compile"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compile") 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest.$ac_objext; then
5336 ac_cv_header_stdc=yes
5337 else
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5341 ac_cv_header_stdc=no
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346 if test $ac_cv_header_stdc = yes; then
5347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h. */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 #include <string.h>
5356 _ACEOF
5357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 $EGREP "memchr" >/dev/null 2>&1; then
5360 else
5361 ac_cv_header_stdc=no
5363 rm -f conftest*
5367 if test $ac_cv_header_stdc = yes; then
5368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 #include <stdlib.h>
5377 _ACEOF
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "free" >/dev/null 2>&1; then
5381 else
5382 ac_cv_header_stdc=no
5384 rm -f conftest*
5388 if test $ac_cv_header_stdc = yes; then
5389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5390 if test "$cross_compiling" = yes; then
5392 else
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #include <ctype.h>
5400 #include <stdlib.h>
5401 #if ((' ' & 0x0FF) == 0x020)
5402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5404 #else
5405 # define ISLOWER(c) \
5406 (('a' <= (c) && (c) <= 'i') \
5407 || ('j' <= (c) && (c) <= 'r') \
5408 || ('s' <= (c) && (c) <= 'z'))
5409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5410 #endif
5412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5414 main ()
5416 int i;
5417 for (i = 0; i < 256; i++)
5418 if (XOR (islower (i), ISLOWER (i))
5419 || toupper (i) != TOUPPER (i))
5420 return 2;
5421 return 0;
5423 _ACEOF
5424 rm -f conftest$ac_exeext
5425 if { (ac_try="$ac_link"
5426 case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_link") 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5435 { (case "(($ac_try" in
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5438 esac
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_try") 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5445 else
5446 echo "$as_me: program exited with status $ac_status" >&5
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 ( exit $ac_status )
5451 ac_cv_header_stdc=no
5453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5459 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5460 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5461 if test $ac_cv_header_stdc = yes; then
5463 cat >>confdefs.h <<\_ACEOF
5464 #define STDC_HEADERS 1
5465 _ACEOF
5469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5479 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5480 inttypes.h stdint.h unistd.h
5482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488 cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h. */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 $ac_includes_default
5496 #include <$ac_header>
5497 _ACEOF
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5500 case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_c_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5515 eval "$as_ac_Header=yes"
5516 else
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 eval "$as_ac_Header=no"
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 ac_res=`eval echo '${'$as_ac_Header'}'`
5526 { echo "$as_me:$LINENO: result: $ac_res" >&5
5527 echo "${ECHO_T}$ac_res" >&6; }
5528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5529 cat >>confdefs.h <<_ACEOF
5530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5531 _ACEOF
5535 done
5592 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5593 fcntl.h grp.h \
5594 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5595 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5596 unistd.h utime.h \
5597 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5598 sys/lock.h sys/mkdev.h sys/modem.h \
5599 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5600 sys/termio.h sys/time.h \
5601 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5602 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5603 bluetooth/bluetooth.h linux/tipc.h
5605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 ac_res=`eval echo '${'$as_ac_Header'}'`
5613 { echo "$as_me:$LINENO: result: $ac_res" >&5
5614 echo "${ECHO_T}$ac_res" >&6; }
5615 else
5616 # Is the header compilable?
5617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5619 cat >conftest.$ac_ext <<_ACEOF
5620 /* confdefs.h. */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5625 $ac_includes_default
5626 #include <$ac_header>
5627 _ACEOF
5628 rm -f conftest.$ac_objext
5629 if { (ac_try="$ac_compile"
5630 case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633 esac
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_compile") 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.$ac_objext; then
5645 ac_header_compiler=yes
5646 else
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 ac_header_compiler=no
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5655 echo "${ECHO_T}$ac_header_compiler" >&6; }
5657 # Is the header present?
5658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #include <$ac_header>
5667 _ACEOF
5668 if { (ac_try="$ac_cpp conftest.$ac_ext"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } >/dev/null && {
5681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 }; then
5684 ac_header_preproc=yes
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_header_preproc=no
5692 rm -f conftest.err conftest.$ac_ext
5693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5694 echo "${ECHO_T}$ac_header_preproc" >&6; }
5696 # So? What about this header?
5697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5698 yes:no: )
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5703 ac_header_preproc=yes
5705 no:yes:* )
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5718 ( cat <<\_ASBOX
5719 ## ------------------------------------------------ ##
5720 ## Report this to http://www.python.org/python-bugs ##
5721 ## ------------------------------------------------ ##
5722 _ASBOX
5723 ) | sed "s/^/$as_me: WARNING: /" >&2
5725 esac
5726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 eval "$as_ac_Header=\$ac_header_preproc"
5733 ac_res=`eval echo '${'$as_ac_Header'}'`
5734 { echo "$as_me:$LINENO: result: $ac_res" >&5
5735 echo "${ECHO_T}$ac_res" >&6; }
5738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5739 cat >>confdefs.h <<_ACEOF
5740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5741 _ACEOF
5745 done
5752 ac_header_dirent=no
5753 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5754 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5755 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5756 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #include <sys/types.h>
5767 #include <$ac_hdr>
5770 main ()
5772 if ((DIR *) 0)
5773 return 0;
5775 return 0;
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (ac_try="$ac_compile"
5780 case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783 esac
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compile") 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } && {
5792 test -z "$ac_c_werror_flag" ||
5793 test ! -s conftest.err
5794 } && test -s conftest.$ac_objext; then
5795 eval "$as_ac_Header=yes"
5796 else
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 eval "$as_ac_Header=no"
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 ac_res=`eval echo '${'$as_ac_Header'}'`
5806 { echo "$as_me:$LINENO: result: $ac_res" >&5
5807 echo "${ECHO_T}$ac_res" >&6; }
5808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5809 cat >>confdefs.h <<_ACEOF
5810 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5811 _ACEOF
5813 ac_header_dirent=$ac_hdr; break
5816 done
5817 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5818 if test $ac_header_dirent = dirent.h; then
5819 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5820 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5821 if test "${ac_cv_search_opendir+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 ac_func_search_save_LIBS=$LIBS
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5832 /* Override any GCC internal prototype to avoid an error.
5833 Use char because int might match the return type of a GCC
5834 builtin and then its argument prototype would still apply. */
5835 #ifdef __cplusplus
5836 extern "C"
5837 #endif
5838 char opendir ();
5840 main ()
5842 return opendir ();
5844 return 0;
5846 _ACEOF
5847 for ac_lib in '' dir; do
5848 if test -z "$ac_lib"; then
5849 ac_res="none required"
5850 else
5851 ac_res=-l$ac_lib
5852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5854 rm -f conftest.$ac_objext conftest$ac_exeext
5855 if { (ac_try="$ac_link"
5856 case "(($ac_try" in
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5859 esac
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_link") 2>conftest.er1
5862 ac_status=$?
5863 grep -v '^ *+' conftest.er1 >conftest.err
5864 rm -f conftest.er1
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } && {
5868 test -z "$ac_c_werror_flag" ||
5869 test ! -s conftest.err
5870 } && test -s conftest$ac_exeext &&
5871 $as_test_x conftest$ac_exeext; then
5872 ac_cv_search_opendir=$ac_res
5873 else
5874 echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5881 conftest$ac_exeext
5882 if test "${ac_cv_search_opendir+set}" = set; then
5883 break
5885 done
5886 if test "${ac_cv_search_opendir+set}" = set; then
5888 else
5889 ac_cv_search_opendir=no
5891 rm conftest.$ac_ext
5892 LIBS=$ac_func_search_save_LIBS
5894 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5895 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5896 ac_res=$ac_cv_search_opendir
5897 if test "$ac_res" != no; then
5898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5902 else
5903 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5905 if test "${ac_cv_search_opendir+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 ac_func_search_save_LIBS=$LIBS
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5916 /* Override any GCC internal prototype to avoid an error.
5917 Use char because int might match the return type of a GCC
5918 builtin and then its argument prototype would still apply. */
5919 #ifdef __cplusplus
5920 extern "C"
5921 #endif
5922 char opendir ();
5924 main ()
5926 return opendir ();
5928 return 0;
5930 _ACEOF
5931 for ac_lib in '' x; do
5932 if test -z "$ac_lib"; then
5933 ac_res="none required"
5934 else
5935 ac_res=-l$ac_lib
5936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5938 rm -f conftest.$ac_objext conftest$ac_exeext
5939 if { (ac_try="$ac_link"
5940 case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_link") 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } && {
5952 test -z "$ac_c_werror_flag" ||
5953 test ! -s conftest.err
5954 } && test -s conftest$ac_exeext &&
5955 $as_test_x conftest$ac_exeext; then
5956 ac_cv_search_opendir=$ac_res
5957 else
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5965 conftest$ac_exeext
5966 if test "${ac_cv_search_opendir+set}" = set; then
5967 break
5969 done
5970 if test "${ac_cv_search_opendir+set}" = set; then
5972 else
5973 ac_cv_search_opendir=no
5975 rm conftest.$ac_ext
5976 LIBS=$ac_func_search_save_LIBS
5978 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5979 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5980 ac_res=$ac_cv_search_opendir
5981 if test "$ac_res" != no; then
5982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5988 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5989 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5990 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6001 main ()
6003 return makedev(0, 0);
6005 return 0;
6007 _ACEOF
6008 rm -f conftest.$ac_objext conftest$ac_exeext
6009 if { (ac_try="$ac_link"
6010 case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_link") 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest$ac_exeext &&
6025 $as_test_x conftest$ac_exeext; then
6026 ac_cv_header_sys_types_h_makedev=yes
6027 else
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 ac_cv_header_sys_types_h_makedev=no
6034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6035 conftest$ac_exeext conftest.$ac_ext
6038 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6039 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6041 if test $ac_cv_header_sys_types_h_makedev = no; then
6042 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6043 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6044 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6045 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6049 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6050 else
6051 # Is the header compilable?
6052 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6053 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6054 cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h. */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 $ac_includes_default
6061 #include <sys/mkdev.h>
6062 _ACEOF
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6065 case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068 esac
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } && {
6077 test -z "$ac_c_werror_flag" ||
6078 test ! -s conftest.err
6079 } && test -s conftest.$ac_objext; then
6080 ac_header_compiler=yes
6081 else
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_header_compiler=no
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6090 echo "${ECHO_T}$ac_header_compiler" >&6; }
6092 # Is the header present?
6093 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6094 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 #include <sys/mkdev.h>
6102 _ACEOF
6103 if { (ac_try="$ac_cpp conftest.$ac_ext"
6104 case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } >/dev/null && {
6116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6117 test ! -s conftest.err
6118 }; then
6119 ac_header_preproc=yes
6120 else
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_header_preproc=no
6127 rm -f conftest.err conftest.$ac_ext
6128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6129 echo "${ECHO_T}$ac_header_preproc" >&6; }
6131 # So? What about this header?
6132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6133 yes:no: )
6134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6135 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6138 ac_header_preproc=yes
6140 no:yes:* )
6141 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6142 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6144 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6145 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6146 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6148 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6150 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6151 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6152 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6153 ( cat <<\_ASBOX
6154 ## ------------------------------------------------ ##
6155 ## Report this to http://www.python.org/python-bugs ##
6156 ## ------------------------------------------------ ##
6157 _ASBOX
6158 ) | sed "s/^/$as_me: WARNING: /" >&2
6160 esac
6161 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6162 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6163 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6168 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6169 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6172 if test $ac_cv_header_sys_mkdev_h = yes; then
6174 cat >>confdefs.h <<\_ACEOF
6175 #define MAJOR_IN_MKDEV 1
6176 _ACEOF
6182 if test $ac_cv_header_sys_mkdev_h = no; then
6183 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6184 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6185 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6186 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6190 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6191 else
6192 # Is the header compilable?
6193 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6194 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 $ac_includes_default
6202 #include <sys/sysmacros.h>
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6206 case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209 esac
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_compile") 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest.$ac_objext; then
6221 ac_header_compiler=yes
6222 else
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_header_compiler=no
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6231 echo "${ECHO_T}$ac_header_compiler" >&6; }
6233 # Is the header present?
6234 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6235 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 #include <sys/sysmacros.h>
6243 _ACEOF
6244 if { (ac_try="$ac_cpp conftest.$ac_ext"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } >/dev/null && {
6257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 }; then
6260 ac_header_preproc=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_header_preproc=no
6268 rm -f conftest.err conftest.$ac_ext
6269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6270 echo "${ECHO_T}$ac_header_preproc" >&6; }
6272 # So? What about this header?
6273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6274 yes:no: )
6275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6276 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6279 ac_header_preproc=yes
6281 no:yes:* )
6282 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6283 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6285 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6287 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6289 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6290 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6291 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6293 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6294 ( cat <<\_ASBOX
6295 ## ------------------------------------------------ ##
6296 ## Report this to http://www.python.org/python-bugs ##
6297 ## ------------------------------------------------ ##
6298 _ASBOX
6299 ) | sed "s/^/$as_me: WARNING: /" >&2
6301 esac
6302 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6303 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6304 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6309 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6310 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6313 if test $ac_cv_header_sys_sysmacros_h = yes; then
6315 cat >>confdefs.h <<\_ACEOF
6316 #define MAJOR_IN_SYSMACROS 1
6317 _ACEOF
6326 # On Solaris, term.h requires curses.h
6328 for ac_header in term.h
6330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h. */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6343 #ifdef HAVE_CURSES_H
6344 #include <curses.h>
6345 #endif
6348 #include <$ac_header>
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (ac_try="$ac_compile"
6352 case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355 esac
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_compile") 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && {
6364 test -z "$ac_c_werror_flag" ||
6365 test ! -s conftest.err
6366 } && test -s conftest.$ac_objext; then
6367 eval "$as_ac_Header=yes"
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 eval "$as_ac_Header=no"
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 ac_res=`eval echo '${'$as_ac_Header'}'`
6378 { echo "$as_me:$LINENO: result: $ac_res" >&5
6379 echo "${ECHO_T}$ac_res" >&6; }
6380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6381 cat >>confdefs.h <<_ACEOF
6382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6383 _ACEOF
6387 done
6390 # On Linux, netlink.h requires asm/types.h
6392 for ac_header in linux/netlink.h
6394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6407 #ifdef HAVE_ASM_TYPES_H
6408 #include <asm/types.h>
6409 #endif
6410 #ifdef HAVE_SYS_SOCKET_H
6411 #include <sys/socket.h>
6412 #endif
6415 #include <$ac_header>
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6419 case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && {
6431 test -z "$ac_c_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.$ac_objext; then
6434 eval "$as_ac_Header=yes"
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 eval "$as_ac_Header=no"
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 ac_res=`eval echo '${'$as_ac_Header'}'`
6445 { echo "$as_me:$LINENO: result: $ac_res" >&5
6446 echo "${ECHO_T}$ac_res" >&6; }
6447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6448 cat >>confdefs.h <<_ACEOF
6449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6450 _ACEOF
6454 done
6457 # checks for typedefs
6458 was_it_defined=no
6459 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6460 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <time.h>
6469 _ACEOF
6470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6471 $EGREP "clock_t" >/dev/null 2>&1; then
6472 was_it_defined=yes
6473 else
6476 cat >>confdefs.h <<\_ACEOF
6477 #define clock_t long
6478 _ACEOF
6482 rm -f conftest*
6484 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6485 echo "${ECHO_T}$was_it_defined" >&6; }
6487 # Check whether using makedev requires defining _OSF_SOURCE
6488 { echo "$as_me:$LINENO: checking for makedev" >&5
6489 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #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" = "no"; then
6534 # we didn't link, try if _OSF_SOURCE will allow us to link
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6542 #define _OSF_SOURCE 1
6543 #include <sys/types.h>
6546 main ()
6548 makedev(0, 0)
6550 return 0;
6552 _ACEOF
6553 rm -f conftest.$ac_objext conftest$ac_exeext
6554 if { (ac_try="$ac_link"
6555 case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558 esac
6559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560 (eval "$ac_link") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest$ac_exeext &&
6570 $as_test_x conftest$ac_exeext; then
6571 ac_cv_has_makedev=yes
6572 else
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 ac_cv_has_makedev=no
6579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6580 conftest$ac_exeext conftest.$ac_ext
6581 if test "$ac_cv_has_makedev" = "yes"; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define _OSF_SOURCE 1
6585 _ACEOF
6589 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6590 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6591 if test "$ac_cv_has_makedev" = "yes"; then
6593 cat >>confdefs.h <<\_ACEOF
6594 #define HAVE_MAKEDEV 1
6595 _ACEOF
6599 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6600 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6601 # defined, but the compiler does not support pragma redefine_extname,
6602 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6603 # structures (such as rlimit64) without declaring them. As a
6604 # work-around, disable LFS on such configurations
6606 use_lfs=yes
6607 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6608 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6616 #define _LARGEFILE_SOURCE 1
6617 #define _FILE_OFFSET_BITS 64
6618 #include <sys/resource.h>
6621 main ()
6623 struct rlimit foo;
6625 return 0;
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (ac_try="$ac_compile"
6630 case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6633 esac
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.$ac_objext; then
6645 sol_lfs_bug=no
6646 else
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6650 sol_lfs_bug=yes
6653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6655 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6656 if test "$sol_lfs_bug" = "yes"; then
6657 use_lfs=no
6660 if test "$use_lfs" = "yes"; then
6661 # Two defines needed to enable largefile support on various platforms
6662 # These may affect some typedefs
6664 cat >>confdefs.h <<\_ACEOF
6665 #define _LARGEFILE_SOURCE 1
6666 _ACEOF
6669 cat >>confdefs.h <<\_ACEOF
6670 #define _FILE_OFFSET_BITS 64
6671 _ACEOF
6675 # Add some code to confdefs.h so that the test for off_t works on SCO
6676 cat >> confdefs.h <<\EOF
6677 #if defined(SCO_DS)
6678 #undef _OFF_T
6679 #endif
6682 # Type availability checks
6683 { echo "$as_me:$LINENO: checking for mode_t" >&5
6684 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6685 if test "${ac_cv_type_mode_t+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688 cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 $ac_includes_default
6695 typedef mode_t ac__type_new_;
6697 main ()
6699 if ((ac__type_new_ *) 0)
6700 return 0;
6701 if (sizeof (ac__type_new_))
6702 return 0;
6704 return 0;
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 ac_cv_type_mode_t=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 ac_cv_type_mode_t=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6735 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6736 if test $ac_cv_type_mode_t = yes; then
6738 else
6740 cat >>confdefs.h <<_ACEOF
6741 #define mode_t int
6742 _ACEOF
6746 { echo "$as_me:$LINENO: checking for off_t" >&5
6747 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6748 if test "${ac_cv_type_off_t+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 $ac_includes_default
6758 typedef off_t ac__type_new_;
6760 main ()
6762 if ((ac__type_new_ *) 0)
6763 return 0;
6764 if (sizeof (ac__type_new_))
6765 return 0;
6767 return 0;
6769 _ACEOF
6770 rm -f conftest.$ac_objext
6771 if { (ac_try="$ac_compile"
6772 case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_compile") 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest.$ac_objext; then
6787 ac_cv_type_off_t=yes
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 ac_cv_type_off_t=no
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6798 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6799 if test $ac_cv_type_off_t = yes; then
6801 else
6803 cat >>confdefs.h <<_ACEOF
6804 #define off_t long int
6805 _ACEOF
6809 { echo "$as_me:$LINENO: checking for pid_t" >&5
6810 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6811 if test "${ac_cv_type_pid_t+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h. */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 $ac_includes_default
6821 typedef pid_t ac__type_new_;
6823 main ()
6825 if ((ac__type_new_ *) 0)
6826 return 0;
6827 if (sizeof (ac__type_new_))
6828 return 0;
6830 return 0;
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6835 case "(($ac_try" in
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6838 esac
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_compile") 2>conftest.er1
6841 ac_status=$?
6842 grep -v '^ *+' conftest.er1 >conftest.err
6843 rm -f conftest.er1
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && {
6847 test -z "$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 } && test -s conftest.$ac_objext; then
6850 ac_cv_type_pid_t=yes
6851 else
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 ac_cv_type_pid_t=no
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6861 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6862 if test $ac_cv_type_pid_t = yes; then
6864 else
6866 cat >>confdefs.h <<_ACEOF
6867 #define pid_t int
6868 _ACEOF
6872 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6873 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6874 if test "${ac_cv_type_signal+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 #include <sys/types.h>
6884 #include <signal.h>
6887 main ()
6889 return *(signal (0, 0)) (0) == 1;
6891 return 0;
6893 _ACEOF
6894 rm -f conftest.$ac_objext
6895 if { (ac_try="$ac_compile"
6896 case "(($ac_try" in
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6899 esac
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901 (eval "$ac_compile") 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } && {
6908 test -z "$ac_c_werror_flag" ||
6909 test ! -s conftest.err
6910 } && test -s conftest.$ac_objext; then
6911 ac_cv_type_signal=int
6912 else
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6916 ac_cv_type_signal=void
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6922 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6924 cat >>confdefs.h <<_ACEOF
6925 #define RETSIGTYPE $ac_cv_type_signal
6926 _ACEOF
6929 { echo "$as_me:$LINENO: checking for size_t" >&5
6930 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6931 if test "${ac_cv_type_size_t+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934 cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h. */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 $ac_includes_default
6941 typedef size_t ac__type_new_;
6943 main ()
6945 if ((ac__type_new_ *) 0)
6946 return 0;
6947 if (sizeof (ac__type_new_))
6948 return 0;
6950 return 0;
6952 _ACEOF
6953 rm -f conftest.$ac_objext
6954 if { (ac_try="$ac_compile"
6955 case "(($ac_try" in
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6958 esac
6959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960 (eval "$ac_compile") 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } && {
6967 test -z "$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6969 } && test -s conftest.$ac_objext; then
6970 ac_cv_type_size_t=yes
6971 else
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_cv_type_size_t=no
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6981 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6982 if test $ac_cv_type_size_t = yes; then
6984 else
6986 cat >>confdefs.h <<_ACEOF
6987 #define size_t unsigned int
6988 _ACEOF
6992 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6993 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6994 if test "${ac_cv_type_uid_t+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #include <sys/types.h>
7005 _ACEOF
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "uid_t" >/dev/null 2>&1; then
7008 ac_cv_type_uid_t=yes
7009 else
7010 ac_cv_type_uid_t=no
7012 rm -f conftest*
7015 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7016 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7017 if test $ac_cv_type_uid_t = no; then
7019 cat >>confdefs.h <<\_ACEOF
7020 #define uid_t int
7021 _ACEOF
7024 cat >>confdefs.h <<\_ACEOF
7025 #define gid_t int
7026 _ACEOF
7031 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7032 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7033 if test "${ac_cv_c_uint32_t+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 ac_cv_c_uint32_t=no
7037 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7038 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 $ac_includes_default
7047 main ()
7049 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7050 test_array [0] = 0
7053 return 0;
7055 _ACEOF
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7058 case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061 esac
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_compile") 2>conftest.er1
7064 ac_status=$?
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && {
7070 test -z "$ac_c_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest.$ac_objext; then
7073 case $ac_type in
7074 uint32_t) ac_cv_c_uint32_t=yes ;;
7075 *) ac_cv_c_uint32_t=$ac_type ;;
7076 esac
7078 else
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 test "$ac_cv_c_uint32_t" != no && break
7087 done
7089 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7090 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7091 case $ac_cv_c_uint32_t in #(
7092 no|yes) ;; #(
7095 cat >>confdefs.h <<\_ACEOF
7096 #define _UINT32_T 1
7097 _ACEOF
7100 cat >>confdefs.h <<_ACEOF
7101 #define uint32_t $ac_cv_c_uint32_t
7102 _ACEOF
7104 esac
7107 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7108 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7109 if test "${ac_cv_c_uint64_t+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112 ac_cv_c_uint64_t=no
7113 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7114 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 $ac_includes_default
7123 main ()
7125 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7126 test_array [0] = 0
7129 return 0;
7131 _ACEOF
7132 rm -f conftest.$ac_objext
7133 if { (ac_try="$ac_compile"
7134 case "(($ac_try" in
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7137 esac
7138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139 (eval "$ac_compile") 2>conftest.er1
7140 ac_status=$?
7141 grep -v '^ *+' conftest.er1 >conftest.err
7142 rm -f conftest.er1
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && {
7146 test -z "$ac_c_werror_flag" ||
7147 test ! -s conftest.err
7148 } && test -s conftest.$ac_objext; then
7149 case $ac_type in
7150 uint64_t) ac_cv_c_uint64_t=yes ;;
7151 *) ac_cv_c_uint64_t=$ac_type ;;
7152 esac
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 test "$ac_cv_c_uint64_t" != no && break
7163 done
7165 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7166 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7167 case $ac_cv_c_uint64_t in #(
7168 no|yes) ;; #(
7171 cat >>confdefs.h <<\_ACEOF
7172 #define _UINT64_T 1
7173 _ACEOF
7176 cat >>confdefs.h <<_ACEOF
7177 #define uint64_t $ac_cv_c_uint64_t
7178 _ACEOF
7180 esac
7183 { echo "$as_me:$LINENO: checking for int32_t" >&5
7184 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7185 if test "${ac_cv_c_int32_t+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 ac_cv_c_int32_t=no
7189 for ac_type in 'int32_t' 'int' 'long int' \
7190 'long long int' 'short int' 'signed char'; do
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 $ac_includes_default
7199 main ()
7201 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7202 test_array [0] = 0
7205 return 0;
7207 _ACEOF
7208 rm -f conftest.$ac_objext
7209 if { (ac_try="$ac_compile"
7210 case "(($ac_try" in
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7213 esac
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215 (eval "$ac_compile") 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } && {
7222 test -z "$ac_c_werror_flag" ||
7223 test ! -s conftest.err
7224 } && test -s conftest.$ac_objext; then
7225 cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h. */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 $ac_includes_default
7233 main ()
7235 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7236 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7237 test_array [0] = 0
7240 return 0;
7242 _ACEOF
7243 rm -f conftest.$ac_objext
7244 if { (ac_try="$ac_compile"
7245 case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248 esac
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_compile") 2>conftest.er1
7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest.$ac_objext; then
7261 else
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 case $ac_type in
7266 int32_t) ac_cv_c_int32_t=yes ;;
7267 *) ac_cv_c_int32_t=$ac_type ;;
7268 esac
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 else
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281 test "$ac_cv_c_int32_t" != no && break
7282 done
7284 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7285 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7286 case $ac_cv_c_int32_t in #(
7287 no|yes) ;; #(
7290 cat >>confdefs.h <<_ACEOF
7291 #define int32_t $ac_cv_c_int32_t
7292 _ACEOF
7294 esac
7297 { echo "$as_me:$LINENO: checking for int64_t" >&5
7298 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7299 if test "${ac_cv_c_int64_t+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 ac_cv_c_int64_t=no
7303 for ac_type in 'int64_t' 'int' 'long int' \
7304 'long long int' 'short int' 'signed char'; do
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 $ac_includes_default
7313 main ()
7315 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7316 test_array [0] = 0
7319 return 0;
7321 _ACEOF
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7324 case "(($ac_try" in
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7327 esac
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_compile") 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.$ac_objext; then
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7347 main ()
7349 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7350 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7351 test_array [0] = 0
7354 return 0;
7356 _ACEOF
7357 rm -f conftest.$ac_objext
7358 if { (ac_try="$ac_compile"
7359 case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362 esac
7363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_compile") 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest.$ac_objext; then
7375 else
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7379 case $ac_type in
7380 int64_t) ac_cv_c_int64_t=yes ;;
7381 *) ac_cv_c_int64_t=$ac_type ;;
7382 esac
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 else
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 test "$ac_cv_c_int64_t" != no && break
7396 done
7398 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7399 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7400 case $ac_cv_c_int64_t in #(
7401 no|yes) ;; #(
7404 cat >>confdefs.h <<_ACEOF
7405 #define int64_t $ac_cv_c_int64_t
7406 _ACEOF
7408 esac
7410 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7411 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7412 if test "${ac_cv_type_ssize_t+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415 cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h. */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7421 $ac_includes_default
7422 typedef ssize_t ac__type_new_;
7424 main ()
7426 if ((ac__type_new_ *) 0)
7427 return 0;
7428 if (sizeof (ac__type_new_))
7429 return 0;
7431 return 0;
7433 _ACEOF
7434 rm -f conftest.$ac_objext
7435 if { (ac_try="$ac_compile"
7436 case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439 esac
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_compile") 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } && {
7448 test -z "$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 } && test -s conftest.$ac_objext; then
7451 ac_cv_type_ssize_t=yes
7452 else
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7456 ac_cv_type_ssize_t=no
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7462 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7463 if test $ac_cv_type_ssize_t = yes; then
7465 cat >>confdefs.h <<\_ACEOF
7466 #define HAVE_SSIZE_T 1
7467 _ACEOF
7472 # Sizes of various common basic types
7473 # ANSI C requires sizeof(char) == 1, so no need to check it
7474 { echo "$as_me:$LINENO: checking for int" >&5
7475 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7476 if test "${ac_cv_type_int+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479 cat >conftest.$ac_ext <<_ACEOF
7480 /* confdefs.h. */
7481 _ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7485 $ac_includes_default
7486 typedef int ac__type_new_;
7488 main ()
7490 if ((ac__type_new_ *) 0)
7491 return 0;
7492 if (sizeof (ac__type_new_))
7493 return 0;
7495 return 0;
7497 _ACEOF
7498 rm -f conftest.$ac_objext
7499 if { (ac_try="$ac_compile"
7500 case "(($ac_try" in
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7503 esac
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
7515 ac_cv_type_int=yes
7516 else
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ac_cv_type_int=no
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7526 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7528 # The cast to long int works around a bug in the HP C Compiler
7529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7531 # This bug is HP SR number 8606223364.
7532 { echo "$as_me:$LINENO: checking size of int" >&5
7533 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7534 if test "${ac_cv_sizeof_int+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 if test "$cross_compiling" = yes; then
7538 # Depending upon the size, compute the lo and hi bounds.
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7546 typedef int ac__type_sizeof_;
7548 main ()
7550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7551 test_array [0] = 0
7554 return 0;
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7559 case "(($ac_try" in
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7562 esac
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564 (eval "$ac_compile") 2>conftest.er1
7565 ac_status=$?
7566 grep -v '^ *+' conftest.er1 >conftest.err
7567 rm -f conftest.er1
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && {
7571 test -z "$ac_c_werror_flag" ||
7572 test ! -s conftest.err
7573 } && test -s conftest.$ac_objext; then
7574 ac_lo=0 ac_mid=0
7575 while :; do
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7583 typedef int ac__type_sizeof_;
7585 main ()
7587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7588 test_array [0] = 0
7591 return 0;
7593 _ACEOF
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7596 case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599 esac
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7602 ac_status=$?
7603 grep -v '^ *+' conftest.er1 >conftest.err
7604 rm -f conftest.er1
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.$ac_objext; then
7611 ac_hi=$ac_mid; break
7612 else
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_lo=`expr $ac_mid + 1`
7617 if test $ac_lo -le $ac_mid; then
7618 ac_lo= ac_hi=
7619 break
7621 ac_mid=`expr 2 '*' $ac_mid + 1`
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 done
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7637 typedef int ac__type_sizeof_;
7639 main ()
7641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7642 test_array [0] = 0
7645 return 0;
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7650 case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 ac_hi=-1 ac_mid=-1
7666 while :; do
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 $ac_includes_default
7674 typedef int ac__type_sizeof_;
7676 main ()
7678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7679 test_array [0] = 0
7682 return 0;
7684 _ACEOF
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7687 case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7693 ac_status=$?
7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then
7702 ac_lo=$ac_mid; break
7703 else
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 ac_hi=`expr '(' $ac_mid ')' - 1`
7708 if test $ac_mid -le $ac_hi; then
7709 ac_lo= ac_hi=
7710 break
7712 ac_mid=`expr 2 '*' $ac_mid`
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 done
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 ac_lo= ac_hi=
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 # Binary search between lo and hi bounds.
7729 while test "x$ac_lo" != "x$ac_hi"; do
7730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 $ac_includes_default
7738 typedef int ac__type_sizeof_;
7740 main ()
7742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7743 test_array [0] = 0
7746 return 0;
7748 _ACEOF
7749 rm -f conftest.$ac_objext
7750 if { (ac_try="$ac_compile"
7751 case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_compile") 2>conftest.er1
7757 ac_status=$?
7758 grep -v '^ *+' conftest.er1 >conftest.err
7759 rm -f conftest.er1
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest.$ac_objext; then
7766 ac_hi=$ac_mid
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_lo=`expr '(' $ac_mid ')' + 1`
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775 done
7776 case $ac_lo in
7777 ?*) ac_cv_sizeof_int=$ac_lo;;
7778 '') if test "$ac_cv_type_int" = yes; then
7779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7780 See \`config.log' for more details." >&5
7781 echo "$as_me: error: cannot compute sizeof (int)
7782 See \`config.log' for more details." >&2;}
7783 { (exit 77); exit 77; }; }
7784 else
7785 ac_cv_sizeof_int=0
7786 fi ;;
7787 esac
7788 else
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 $ac_includes_default
7796 typedef int ac__type_sizeof_;
7797 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7798 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7799 #include <stdio.h>
7800 #include <stdlib.h>
7802 main ()
7805 FILE *f = fopen ("conftest.val", "w");
7806 if (! f)
7807 return 1;
7808 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7810 long int i = longval ();
7811 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7812 return 1;
7813 fprintf (f, "%ld\n", i);
7815 else
7817 unsigned long int i = ulongval ();
7818 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7819 return 1;
7820 fprintf (f, "%lu\n", i);
7822 return ferror (f) || fclose (f) != 0;
7825 return 0;
7827 _ACEOF
7828 rm -f conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7830 case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833 esac
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_link") 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7839 { (case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842 esac
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_try") 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_sizeof_int=`cat conftest.val`
7849 else
7850 echo "$as_me: program exited with status $ac_status" >&5
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7854 ( exit $ac_status )
7855 if test "$ac_cv_type_int" = yes; then
7856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7857 See \`config.log' for more details." >&5
7858 echo "$as_me: error: cannot compute sizeof (int)
7859 See \`config.log' for more details." >&2;}
7860 { (exit 77); exit 77; }; }
7861 else
7862 ac_cv_sizeof_int=0
7865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7867 rm -f conftest.val
7869 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7870 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7874 cat >>confdefs.h <<_ACEOF
7875 #define SIZEOF_INT $ac_cv_sizeof_int
7876 _ACEOF
7879 { echo "$as_me:$LINENO: checking for long" >&5
7880 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7881 if test "${ac_cv_type_long+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884 cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h. */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 $ac_includes_default
7891 typedef long ac__type_new_;
7893 main ()
7895 if ((ac__type_new_ *) 0)
7896 return 0;
7897 if (sizeof (ac__type_new_))
7898 return 0;
7900 return 0;
7902 _ACEOF
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7905 case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7908 esac
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_compile") 2>conftest.er1
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_c_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest.$ac_objext; then
7920 ac_cv_type_long=yes
7921 else
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7925 ac_cv_type_long=no
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7931 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7933 # The cast to long int works around a bug in the HP C Compiler
7934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7936 # This bug is HP SR number 8606223364.
7937 { echo "$as_me:$LINENO: checking size of long" >&5
7938 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7939 if test "${ac_cv_sizeof_long+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942 if test "$cross_compiling" = yes; then
7943 # Depending upon the size, compute the lo and hi bounds.
7944 cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h. */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7950 $ac_includes_default
7951 typedef long ac__type_sizeof_;
7953 main ()
7955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7956 test_array [0] = 0
7959 return 0;
7961 _ACEOF
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7964 case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.$ac_objext; then
7979 ac_lo=0 ac_mid=0
7980 while :; do
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h. */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7988 typedef long ac__type_sizeof_;
7990 main ()
7992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7993 test_array [0] = 0
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8001 case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 ac_hi=$ac_mid; break
8017 else
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 ac_lo=`expr $ac_mid + 1`
8022 if test $ac_lo -le $ac_mid; then
8023 ac_lo= ac_hi=
8024 break
8026 ac_mid=`expr 2 '*' $ac_mid + 1`
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 done
8031 else
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8035 cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h. */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 typedef long ac__type_sizeof_;
8044 main ()
8046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8047 test_array [0] = 0
8050 return 0;
8052 _ACEOF
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8055 case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8070 ac_hi=-1 ac_mid=-1
8071 while :; do
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h. */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 $ac_includes_default
8079 typedef long ac__type_sizeof_;
8081 main ()
8083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8084 test_array [0] = 0
8087 return 0;
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_lo=$ac_mid; break
8108 else
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_hi=`expr '(' $ac_mid ')' - 1`
8113 if test $ac_mid -le $ac_hi; then
8114 ac_lo= ac_hi=
8115 break
8117 ac_mid=`expr 2 '*' $ac_mid`
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 done
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 ac_lo= ac_hi=
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 # Binary search between lo and hi bounds.
8134 while test "x$ac_lo" != "x$ac_hi"; do
8135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8143 typedef long ac__type_sizeof_;
8145 main ()
8147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8148 test_array [0] = 0
8151 return 0;
8153 _ACEOF
8154 rm -f conftest.$ac_objext
8155 if { (ac_try="$ac_compile"
8156 case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8159 esac
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_compile") 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest.$ac_objext; then
8171 ac_hi=$ac_mid
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_lo=`expr '(' $ac_mid ')' + 1`
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 done
8181 case $ac_lo in
8182 ?*) ac_cv_sizeof_long=$ac_lo;;
8183 '') if test "$ac_cv_type_long" = yes; then
8184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8185 See \`config.log' for more details." >&5
8186 echo "$as_me: error: cannot compute sizeof (long)
8187 See \`config.log' for more details." >&2;}
8188 { (exit 77); exit 77; }; }
8189 else
8190 ac_cv_sizeof_long=0
8191 fi ;;
8192 esac
8193 else
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 $ac_includes_default
8201 typedef long ac__type_sizeof_;
8202 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8203 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8204 #include <stdio.h>
8205 #include <stdlib.h>
8207 main ()
8210 FILE *f = fopen ("conftest.val", "w");
8211 if (! f)
8212 return 1;
8213 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8215 long int i = longval ();
8216 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8217 return 1;
8218 fprintf (f, "%ld\n", i);
8220 else
8222 unsigned long int i = ulongval ();
8223 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8224 return 1;
8225 fprintf (f, "%lu\n", i);
8227 return ferror (f) || fclose (f) != 0;
8230 return 0;
8232 _ACEOF
8233 rm -f conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8235 case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_link") 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8244 { (case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_try") 2>&5
8250 ac_status=$?
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_cv_sizeof_long=`cat conftest.val`
8254 else
8255 echo "$as_me: program exited with status $ac_status" >&5
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 ( exit $ac_status )
8260 if test "$ac_cv_type_long" = yes; then
8261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8262 See \`config.log' for more details." >&5
8263 echo "$as_me: error: cannot compute sizeof (long)
8264 See \`config.log' for more details." >&2;}
8265 { (exit 77); exit 77; }; }
8266 else
8267 ac_cv_sizeof_long=0
8270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8272 rm -f conftest.val
8274 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8275 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8279 cat >>confdefs.h <<_ACEOF
8280 #define SIZEOF_LONG $ac_cv_sizeof_long
8281 _ACEOF
8284 { echo "$as_me:$LINENO: checking for void *" >&5
8285 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8286 if test "${ac_cv_type_void_p+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h. */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 $ac_includes_default
8296 typedef void * ac__type_new_;
8298 main ()
8300 if ((ac__type_new_ *) 0)
8301 return 0;
8302 if (sizeof (ac__type_new_))
8303 return 0;
8305 return 0;
8307 _ACEOF
8308 rm -f conftest.$ac_objext
8309 if { (ac_try="$ac_compile"
8310 case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_compile") 2>conftest.er1
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.$ac_objext; then
8325 ac_cv_type_void_p=yes
8326 else
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 ac_cv_type_void_p=no
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8336 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8338 # The cast to long int works around a bug in the HP C Compiler
8339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8341 # This bug is HP SR number 8606223364.
8342 { echo "$as_me:$LINENO: checking size of void *" >&5
8343 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8344 if test "${ac_cv_sizeof_void_p+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347 if test "$cross_compiling" = yes; then
8348 # Depending upon the size, compute the lo and hi bounds.
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h. */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8356 typedef void * ac__type_sizeof_;
8358 main ()
8360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8361 test_array [0] = 0
8364 return 0;
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8369 case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8375 ac_status=$?
8376 grep -v '^ *+' conftest.er1 >conftest.err
8377 rm -f conftest.er1
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } && {
8381 test -z "$ac_c_werror_flag" ||
8382 test ! -s conftest.err
8383 } && test -s conftest.$ac_objext; then
8384 ac_lo=0 ac_mid=0
8385 while :; do
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 $ac_includes_default
8393 typedef void * ac__type_sizeof_;
8395 main ()
8397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8398 test_array [0] = 0
8401 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8406 case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8421 ac_hi=$ac_mid; break
8422 else
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_lo=`expr $ac_mid + 1`
8427 if test $ac_lo -le $ac_mid; then
8428 ac_lo= ac_hi=
8429 break
8431 ac_mid=`expr 2 '*' $ac_mid + 1`
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 done
8436 else
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 typedef void * ac__type_sizeof_;
8449 main ()
8451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8452 test_array [0] = 0
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_hi=-1 ac_mid=-1
8476 while :; do
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8484 typedef void * ac__type_sizeof_;
8486 main ()
8488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8489 test_array [0] = 0
8492 return 0;
8494 _ACEOF
8495 rm -f conftest.$ac_objext
8496 if { (ac_try="$ac_compile"
8497 case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500 esac
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8503 ac_status=$?
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
8512 ac_lo=$ac_mid; break
8513 else
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 ac_hi=`expr '(' $ac_mid ')' - 1`
8518 if test $ac_mid -le $ac_hi; then
8519 ac_lo= ac_hi=
8520 break
8522 ac_mid=`expr 2 '*' $ac_mid`
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 done
8527 else
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 ac_lo= ac_hi=
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 # Binary search between lo and hi bounds.
8539 while test "x$ac_lo" != "x$ac_hi"; do
8540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h. */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8548 typedef void * ac__type_sizeof_;
8550 main ()
8552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8553 test_array [0] = 0
8556 return 0;
8558 _ACEOF
8559 rm -f conftest.$ac_objext
8560 if { (ac_try="$ac_compile"
8561 case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564 esac
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8576 ac_hi=$ac_mid
8577 else
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 ac_lo=`expr '(' $ac_mid ')' + 1`
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 done
8586 case $ac_lo in
8587 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8588 '') if test "$ac_cv_type_void_p" = yes; then
8589 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8590 See \`config.log' for more details." >&5
8591 echo "$as_me: error: cannot compute sizeof (void *)
8592 See \`config.log' for more details." >&2;}
8593 { (exit 77); exit 77; }; }
8594 else
8595 ac_cv_sizeof_void_p=0
8596 fi ;;
8597 esac
8598 else
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8606 typedef void * ac__type_sizeof_;
8607 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8608 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8609 #include <stdio.h>
8610 #include <stdlib.h>
8612 main ()
8615 FILE *f = fopen ("conftest.val", "w");
8616 if (! f)
8617 return 1;
8618 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8620 long int i = longval ();
8621 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8622 return 1;
8623 fprintf (f, "%ld\n", i);
8625 else
8627 unsigned long int i = ulongval ();
8628 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8629 return 1;
8630 fprintf (f, "%lu\n", i);
8632 return ferror (f) || fclose (f) != 0;
8635 return 0;
8637 _ACEOF
8638 rm -f conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8640 case "(($ac_try" in
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8643 esac
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_link") 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_sizeof_void_p=`cat conftest.val`
8659 else
8660 echo "$as_me: program exited with status $ac_status" >&5
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8664 ( exit $ac_status )
8665 if test "$ac_cv_type_void_p" = yes; then
8666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8667 See \`config.log' for more details." >&5
8668 echo "$as_me: error: cannot compute sizeof (void *)
8669 See \`config.log' for more details." >&2;}
8670 { (exit 77); exit 77; }; }
8671 else
8672 ac_cv_sizeof_void_p=0
8675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8677 rm -f conftest.val
8679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8680 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8684 cat >>confdefs.h <<_ACEOF
8685 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8686 _ACEOF
8689 { echo "$as_me:$LINENO: checking for short" >&5
8690 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8691 if test "${ac_cv_type_short+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h. */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700 $ac_includes_default
8701 typedef short ac__type_new_;
8703 main ()
8705 if ((ac__type_new_ *) 0)
8706 return 0;
8707 if (sizeof (ac__type_new_))
8708 return 0;
8710 return 0;
8712 _ACEOF
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8715 case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8718 esac
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_compile") 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest.$ac_objext; then
8730 ac_cv_type_short=yes
8731 else
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 ac_cv_type_short=no
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8741 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8743 # The cast to long int works around a bug in the HP C Compiler
8744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8746 # This bug is HP SR number 8606223364.
8747 { echo "$as_me:$LINENO: checking size of short" >&5
8748 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8749 if test "${ac_cv_sizeof_short+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752 if test "$cross_compiling" = yes; then
8753 # Depending upon the size, compute the lo and hi bounds.
8754 cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h. */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8760 $ac_includes_default
8761 typedef short ac__type_sizeof_;
8763 main ()
8765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8766 test_array [0] = 0
8769 return 0;
8771 _ACEOF
8772 rm -f conftest.$ac_objext
8773 if { (ac_try="$ac_compile"
8774 case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8780 ac_status=$?
8781 grep -v '^ *+' conftest.er1 >conftest.err
8782 rm -f conftest.er1
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8789 ac_lo=0 ac_mid=0
8790 while :; do
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8798 typedef short ac__type_sizeof_;
8800 main ()
8802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8803 test_array [0] = 0
8806 return 0;
8808 _ACEOF
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8811 case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8814 esac
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
8825 } && test -s conftest.$ac_objext; then
8826 ac_hi=$ac_mid; break
8827 else
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_lo=`expr $ac_mid + 1`
8832 if test $ac_lo -le $ac_mid; then
8833 ac_lo= ac_hi=
8834 break
8836 ac_mid=`expr 2 '*' $ac_mid + 1`
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 done
8841 else
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 $ac_includes_default
8852 typedef short ac__type_sizeof_;
8854 main ()
8856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8857 test_array [0] = 0
8860 return 0;
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8865 case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_hi=-1 ac_mid=-1
8881 while :; do
8882 cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h. */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 $ac_includes_default
8889 typedef short ac__type_sizeof_;
8891 main ()
8893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8894 test_array [0] = 0
8897 return 0;
8899 _ACEOF
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8902 case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905 esac
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest.$ac_objext; then
8917 ac_lo=$ac_mid; break
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_hi=`expr '(' $ac_mid ')' - 1`
8923 if test $ac_mid -le $ac_hi; then
8924 ac_lo= ac_hi=
8925 break
8927 ac_mid=`expr 2 '*' $ac_mid`
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 done
8932 else
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 ac_lo= ac_hi=
8939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 # Binary search between lo and hi bounds.
8944 while test "x$ac_lo" != "x$ac_hi"; do
8945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 $ac_includes_default
8953 typedef short ac__type_sizeof_;
8955 main ()
8957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8958 test_array [0] = 0
8961 return 0;
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (ac_try="$ac_compile"
8966 case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969 esac
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_compile") 2>conftest.er1
8972 ac_status=$?
8973 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest.$ac_objext; then
8981 ac_hi=$ac_mid
8982 else
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 ac_lo=`expr '(' $ac_mid ')' + 1`
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 done
8991 case $ac_lo in
8992 ?*) ac_cv_sizeof_short=$ac_lo;;
8993 '') if test "$ac_cv_type_short" = yes; then
8994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8995 See \`config.log' for more details." >&5
8996 echo "$as_me: error: cannot compute sizeof (short)
8997 See \`config.log' for more details." >&2;}
8998 { (exit 77); exit 77; }; }
8999 else
9000 ac_cv_sizeof_short=0
9001 fi ;;
9002 esac
9003 else
9004 cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h. */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 $ac_includes_default
9011 typedef short ac__type_sizeof_;
9012 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9013 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9014 #include <stdio.h>
9015 #include <stdlib.h>
9017 main ()
9020 FILE *f = fopen ("conftest.val", "w");
9021 if (! f)
9022 return 1;
9023 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9025 long int i = longval ();
9026 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9027 return 1;
9028 fprintf (f, "%ld\n", i);
9030 else
9032 unsigned long int i = ulongval ();
9033 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9034 return 1;
9035 fprintf (f, "%lu\n", i);
9037 return ferror (f) || fclose (f) != 0;
9040 return 0;
9042 _ACEOF
9043 rm -f conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9045 case "(($ac_try" in
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9048 esac
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050 (eval "$ac_link") 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9054 { (case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9057 esac
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_try") 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_sizeof_short=`cat conftest.val`
9064 else
9065 echo "$as_me: program exited with status $ac_status" >&5
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9069 ( exit $ac_status )
9070 if test "$ac_cv_type_short" = yes; then
9071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9072 See \`config.log' for more details." >&5
9073 echo "$as_me: error: cannot compute sizeof (short)
9074 See \`config.log' for more details." >&2;}
9075 { (exit 77); exit 77; }; }
9076 else
9077 ac_cv_sizeof_short=0
9080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9082 rm -f conftest.val
9084 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9085 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9089 cat >>confdefs.h <<_ACEOF
9090 #define SIZEOF_SHORT $ac_cv_sizeof_short
9091 _ACEOF
9094 { echo "$as_me:$LINENO: checking for float" >&5
9095 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9096 if test "${ac_cv_type_float+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 typedef float ac__type_new_;
9108 main ()
9110 if ((ac__type_new_ *) 0)
9111 return 0;
9112 if (sizeof (ac__type_new_))
9113 return 0;
9115 return 0;
9117 _ACEOF
9118 rm -f conftest.$ac_objext
9119 if { (ac_try="$ac_compile"
9120 case "(($ac_try" in
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9123 esac
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_compile") 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest.$ac_objext; then
9135 ac_cv_type_float=yes
9136 else
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9140 ac_cv_type_float=no
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9145 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9146 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9148 # The cast to long int works around a bug in the HP C Compiler
9149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9151 # This bug is HP SR number 8606223364.
9152 { echo "$as_me:$LINENO: checking size of float" >&5
9153 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9154 if test "${ac_cv_sizeof_float+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157 if test "$cross_compiling" = yes; then
9158 # Depending upon the size, compute the lo and hi bounds.
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 $ac_includes_default
9166 typedef float ac__type_sizeof_;
9168 main ()
9170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9171 test_array [0] = 0
9174 return 0;
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9179 case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182 esac
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest.$ac_objext; then
9194 ac_lo=0 ac_mid=0
9195 while :; do
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 $ac_includes_default
9203 typedef float ac__type_sizeof_;
9205 main ()
9207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9208 test_array [0] = 0
9211 return 0;
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (ac_try="$ac_compile"
9216 case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_compile") 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest.$ac_objext; then
9231 ac_hi=$ac_mid; break
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_lo=`expr $ac_mid + 1`
9237 if test $ac_lo -le $ac_mid; then
9238 ac_lo= ac_hi=
9239 break
9241 ac_mid=`expr 2 '*' $ac_mid + 1`
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 done
9246 else
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h. */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 $ac_includes_default
9257 typedef float ac__type_sizeof_;
9259 main ()
9261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9262 test_array [0] = 0
9265 return 0;
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9270 case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_compile") 2>conftest.er1
9276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest.$ac_objext; then
9285 ac_hi=-1 ac_mid=-1
9286 while :; do
9287 cat >conftest.$ac_ext <<_ACEOF
9288 /* confdefs.h. */
9289 _ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9293 $ac_includes_default
9294 typedef float ac__type_sizeof_;
9296 main ()
9298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9299 test_array [0] = 0
9302 return 0;
9304 _ACEOF
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9307 case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310 esac
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
9322 ac_lo=$ac_mid; break
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_hi=`expr '(' $ac_mid ')' - 1`
9328 if test $ac_mid -le $ac_hi; then
9329 ac_lo= ac_hi=
9330 break
9332 ac_mid=`expr 2 '*' $ac_mid`
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336 done
9337 else
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9341 ac_lo= ac_hi=
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348 # Binary search between lo and hi bounds.
9349 while test "x$ac_lo" != "x$ac_hi"; do
9350 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9351 cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h. */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 $ac_includes_default
9358 typedef float ac__type_sizeof_;
9360 main ()
9362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9363 test_array [0] = 0
9366 return 0;
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9371 case "(($ac_try" in
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9374 esac
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_compile") 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest.$ac_objext; then
9386 ac_hi=$ac_mid
9387 else
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_lo=`expr '(' $ac_mid ')' + 1`
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 done
9396 case $ac_lo in
9397 ?*) ac_cv_sizeof_float=$ac_lo;;
9398 '') if test "$ac_cv_type_float" = yes; then
9399 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9400 See \`config.log' for more details." >&5
9401 echo "$as_me: error: cannot compute sizeof (float)
9402 See \`config.log' for more details." >&2;}
9403 { (exit 77); exit 77; }; }
9404 else
9405 ac_cv_sizeof_float=0
9406 fi ;;
9407 esac
9408 else
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 $ac_includes_default
9416 typedef float ac__type_sizeof_;
9417 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9418 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9419 #include <stdio.h>
9420 #include <stdlib.h>
9422 main ()
9425 FILE *f = fopen ("conftest.val", "w");
9426 if (! f)
9427 return 1;
9428 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9430 long int i = longval ();
9431 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9432 return 1;
9433 fprintf (f, "%ld\n", i);
9435 else
9437 unsigned long int i = ulongval ();
9438 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9439 return 1;
9440 fprintf (f, "%lu\n", i);
9442 return ferror (f) || fclose (f) != 0;
9445 return 0;
9447 _ACEOF
9448 rm -f conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9450 case "(($ac_try" in
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9453 esac
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_link") 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9462 esac
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 ac_cv_sizeof_float=`cat conftest.val`
9469 else
9470 echo "$as_me: program exited with status $ac_status" >&5
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 ( exit $ac_status )
9475 if test "$ac_cv_type_float" = yes; then
9476 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9477 See \`config.log' for more details." >&5
9478 echo "$as_me: error: cannot compute sizeof (float)
9479 See \`config.log' for more details." >&2;}
9480 { (exit 77); exit 77; }; }
9481 else
9482 ac_cv_sizeof_float=0
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9487 rm -f conftest.val
9489 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9490 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9494 cat >>confdefs.h <<_ACEOF
9495 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9496 _ACEOF
9499 { echo "$as_me:$LINENO: checking for double" >&5
9500 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9501 if test "${ac_cv_type_double+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h. */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 $ac_includes_default
9511 typedef double ac__type_new_;
9513 main ()
9515 if ((ac__type_new_ *) 0)
9516 return 0;
9517 if (sizeof (ac__type_new_))
9518 return 0;
9520 return 0;
9522 _ACEOF
9523 rm -f conftest.$ac_objext
9524 if { (ac_try="$ac_compile"
9525 case "(($ac_try" in
9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527 *) ac_try_echo=$ac_try;;
9528 esac
9529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9530 (eval "$ac_compile") 2>conftest.er1
9531 ac_status=$?
9532 grep -v '^ *+' conftest.er1 >conftest.err
9533 rm -f conftest.er1
9534 cat conftest.err >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } && {
9537 test -z "$ac_c_werror_flag" ||
9538 test ! -s conftest.err
9539 } && test -s conftest.$ac_objext; then
9540 ac_cv_type_double=yes
9541 else
9542 echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9545 ac_cv_type_double=no
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9551 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9553 # The cast to long int works around a bug in the HP C Compiler
9554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9556 # This bug is HP SR number 8606223364.
9557 { echo "$as_me:$LINENO: checking size of double" >&5
9558 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9559 if test "${ac_cv_sizeof_double+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562 if test "$cross_compiling" = yes; then
9563 # Depending upon the size, compute the lo and hi bounds.
9564 cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h. */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 $ac_includes_default
9571 typedef double ac__type_sizeof_;
9573 main ()
9575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9576 test_array [0] = 0
9579 return 0;
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (ac_try="$ac_compile"
9584 case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_compile") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest.$ac_objext; then
9599 ac_lo=0 ac_mid=0
9600 while :; do
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 $ac_includes_default
9608 typedef double ac__type_sizeof_;
9610 main ()
9612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9613 test_array [0] = 0
9616 return 0;
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9621 case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9636 ac_hi=$ac_mid; break
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_lo=`expr $ac_mid + 1`
9642 if test $ac_lo -le $ac_mid; then
9643 ac_lo= ac_hi=
9644 break
9646 ac_mid=`expr 2 '*' $ac_mid + 1`
9649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650 done
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 $ac_includes_default
9662 typedef double ac__type_sizeof_;
9664 main ()
9666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9667 test_array [0] = 0
9670 return 0;
9672 _ACEOF
9673 rm -f conftest.$ac_objext
9674 if { (ac_try="$ac_compile"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_compile") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest.$ac_objext; then
9690 ac_hi=-1 ac_mid=-1
9691 while :; do
9692 cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h. */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9698 $ac_includes_default
9699 typedef double ac__type_sizeof_;
9701 main ()
9703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9704 test_array [0] = 0
9707 return 0;
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (ac_try="$ac_compile"
9712 case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_compile") 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest.$ac_objext; then
9727 ac_lo=$ac_mid; break
9728 else
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9732 ac_hi=`expr '(' $ac_mid ')' - 1`
9733 if test $ac_mid -le $ac_hi; then
9734 ac_lo= ac_hi=
9735 break
9737 ac_mid=`expr 2 '*' $ac_mid`
9740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9741 done
9742 else
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9746 ac_lo= ac_hi=
9749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753 # Binary search between lo and hi bounds.
9754 while test "x$ac_lo" != "x$ac_hi"; do
9755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9756 cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h. */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 $ac_includes_default
9763 typedef double ac__type_sizeof_;
9765 main ()
9767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9768 test_array [0] = 0
9771 return 0;
9773 _ACEOF
9774 rm -f conftest.$ac_objext
9775 if { (ac_try="$ac_compile"
9776 case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_compile") 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest.$ac_objext; then
9791 ac_hi=$ac_mid
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_lo=`expr '(' $ac_mid ')' + 1`
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 done
9801 case $ac_lo in
9802 ?*) ac_cv_sizeof_double=$ac_lo;;
9803 '') if test "$ac_cv_type_double" = yes; then
9804 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9805 See \`config.log' for more details." >&5
9806 echo "$as_me: error: cannot compute sizeof (double)
9807 See \`config.log' for more details." >&2;}
9808 { (exit 77); exit 77; }; }
9809 else
9810 ac_cv_sizeof_double=0
9811 fi ;;
9812 esac
9813 else
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 $ac_includes_default
9821 typedef double ac__type_sizeof_;
9822 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9823 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9824 #include <stdio.h>
9825 #include <stdlib.h>
9827 main ()
9830 FILE *f = fopen ("conftest.val", "w");
9831 if (! f)
9832 return 1;
9833 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9835 long int i = longval ();
9836 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9837 return 1;
9838 fprintf (f, "%ld\n", i);
9840 else
9842 unsigned long int i = ulongval ();
9843 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9844 return 1;
9845 fprintf (f, "%lu\n", i);
9847 return ferror (f) || fclose (f) != 0;
9850 return 0;
9852 _ACEOF
9853 rm -f conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9855 case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_link") 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9864 { (case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_try") 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_cv_sizeof_double=`cat conftest.val`
9874 else
9875 echo "$as_me: program exited with status $ac_status" >&5
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9879 ( exit $ac_status )
9880 if test "$ac_cv_type_double" = yes; then
9881 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9882 See \`config.log' for more details." >&5
9883 echo "$as_me: error: cannot compute sizeof (double)
9884 See \`config.log' for more details." >&2;}
9885 { (exit 77); exit 77; }; }
9886 else
9887 ac_cv_sizeof_double=0
9890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9892 rm -f conftest.val
9894 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9895 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9899 cat >>confdefs.h <<_ACEOF
9900 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9901 _ACEOF
9904 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9905 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9906 if test "${ac_cv_type_fpos_t+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h. */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 $ac_includes_default
9916 typedef fpos_t ac__type_new_;
9918 main ()
9920 if ((ac__type_new_ *) 0)
9921 return 0;
9922 if (sizeof (ac__type_new_))
9923 return 0;
9925 return 0;
9927 _ACEOF
9928 rm -f conftest.$ac_objext
9929 if { (ac_try="$ac_compile"
9930 case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_compile") 2>conftest.er1
9936 ac_status=$?
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest.$ac_objext; then
9945 ac_cv_type_fpos_t=yes
9946 else
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_type_fpos_t=no
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9956 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9958 # The cast to long int works around a bug in the HP C Compiler
9959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9961 # This bug is HP SR number 8606223364.
9962 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9963 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9964 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967 if test "$cross_compiling" = yes; then
9968 # Depending upon the size, compute the lo and hi bounds.
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 $ac_includes_default
9976 typedef fpos_t ac__type_sizeof_;
9978 main ()
9980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9981 test_array [0] = 0
9984 return 0;
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9989 case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_compile") 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest.$ac_objext; then
10004 ac_lo=0 ac_mid=0
10005 while :; do
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h. */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 $ac_includes_default
10013 typedef fpos_t ac__type_sizeof_;
10015 main ()
10017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10018 test_array [0] = 0
10021 return 0;
10023 _ACEOF
10024 rm -f conftest.$ac_objext
10025 if { (ac_try="$ac_compile"
10026 case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10029 esac
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_compile") 2>conftest.er1
10032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } && {
10038 test -z "$ac_c_werror_flag" ||
10039 test ! -s conftest.err
10040 } && test -s conftest.$ac_objext; then
10041 ac_hi=$ac_mid; break
10042 else
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_lo=`expr $ac_mid + 1`
10047 if test $ac_lo -le $ac_mid; then
10048 ac_lo= ac_hi=
10049 break
10051 ac_mid=`expr 2 '*' $ac_mid + 1`
10054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055 done
10056 else
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10060 cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h. */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 $ac_includes_default
10067 typedef fpos_t ac__type_sizeof_;
10069 main ()
10071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10072 test_array [0] = 0
10075 return 0;
10077 _ACEOF
10078 rm -f conftest.$ac_objext
10079 if { (ac_try="$ac_compile"
10080 case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083 esac
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_compile") 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && {
10092 test -z "$ac_c_werror_flag" ||
10093 test ! -s conftest.err
10094 } && test -s conftest.$ac_objext; then
10095 ac_hi=-1 ac_mid=-1
10096 while :; do
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h. */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 $ac_includes_default
10104 typedef fpos_t ac__type_sizeof_;
10106 main ()
10108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10109 test_array [0] = 0
10112 return 0;
10114 _ACEOF
10115 rm -f conftest.$ac_objext
10116 if { (ac_try="$ac_compile"
10117 case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_compile") 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } && {
10129 test -z "$ac_c_werror_flag" ||
10130 test ! -s conftest.err
10131 } && test -s conftest.$ac_objext; then
10132 ac_lo=$ac_mid; break
10133 else
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_hi=`expr '(' $ac_mid ')' - 1`
10138 if test $ac_mid -le $ac_hi; then
10139 ac_lo= ac_hi=
10140 break
10142 ac_mid=`expr 2 '*' $ac_mid`
10145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10146 done
10147 else
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_lo= ac_hi=
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 # Binary search between lo and hi bounds.
10159 while test "x$ac_lo" != "x$ac_hi"; do
10160 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h. */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 $ac_includes_default
10168 typedef fpos_t ac__type_sizeof_;
10170 main ()
10172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10173 test_array [0] = 0
10176 return 0;
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (ac_try="$ac_compile"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_compile") 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } && {
10193 test -z "$ac_c_werror_flag" ||
10194 test ! -s conftest.err
10195 } && test -s conftest.$ac_objext; then
10196 ac_hi=$ac_mid
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_lo=`expr '(' $ac_mid ')' + 1`
10204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205 done
10206 case $ac_lo in
10207 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10208 '') if test "$ac_cv_type_fpos_t" = yes; then
10209 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10210 See \`config.log' for more details." >&5
10211 echo "$as_me: error: cannot compute sizeof (fpos_t)
10212 See \`config.log' for more details." >&2;}
10213 { (exit 77); exit 77; }; }
10214 else
10215 ac_cv_sizeof_fpos_t=0
10216 fi ;;
10217 esac
10218 else
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 $ac_includes_default
10226 typedef fpos_t ac__type_sizeof_;
10227 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10228 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10229 #include <stdio.h>
10230 #include <stdlib.h>
10232 main ()
10235 FILE *f = fopen ("conftest.val", "w");
10236 if (! f)
10237 return 1;
10238 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10240 long int i = longval ();
10241 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10242 return 1;
10243 fprintf (f, "%ld\n", i);
10245 else
10247 unsigned long int i = ulongval ();
10248 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10249 return 1;
10250 fprintf (f, "%lu\n", i);
10252 return ferror (f) || fclose (f) != 0;
10255 return 0;
10257 _ACEOF
10258 rm -f conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10269 { (case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272 esac
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_try") 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_cv_sizeof_fpos_t=`cat conftest.val`
10279 else
10280 echo "$as_me: program exited with status $ac_status" >&5
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284 ( exit $ac_status )
10285 if test "$ac_cv_type_fpos_t" = yes; then
10286 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10287 See \`config.log' for more details." >&5
10288 echo "$as_me: error: cannot compute sizeof (fpos_t)
10289 See \`config.log' for more details." >&2;}
10290 { (exit 77); exit 77; }; }
10291 else
10292 ac_cv_sizeof_fpos_t=0
10295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10297 rm -f conftest.val
10299 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10300 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10304 cat >>confdefs.h <<_ACEOF
10305 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10306 _ACEOF
10309 { echo "$as_me:$LINENO: checking for size_t" >&5
10310 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10311 if test "${ac_cv_type_size_t+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10321 typedef size_t ac__type_new_;
10323 main ()
10325 if ((ac__type_new_ *) 0)
10326 return 0;
10327 if (sizeof (ac__type_new_))
10328 return 0;
10330 return 0;
10332 _ACEOF
10333 rm -f conftest.$ac_objext
10334 if { (ac_try="$ac_compile"
10335 case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10338 esac
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_compile") 2>conftest.er1
10341 ac_status=$?
10342 grep -v '^ *+' conftest.er1 >conftest.err
10343 rm -f conftest.er1
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } && {
10347 test -z "$ac_c_werror_flag" ||
10348 test ! -s conftest.err
10349 } && test -s conftest.$ac_objext; then
10350 ac_cv_type_size_t=yes
10351 else
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 ac_cv_type_size_t=no
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10361 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10363 # The cast to long int works around a bug in the HP C Compiler
10364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10366 # This bug is HP SR number 8606223364.
10367 { echo "$as_me:$LINENO: checking size of size_t" >&5
10368 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10369 if test "${ac_cv_sizeof_size_t+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372 if test "$cross_compiling" = yes; then
10373 # Depending upon the size, compute the lo and hi bounds.
10374 cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h. */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 $ac_includes_default
10381 typedef size_t ac__type_sizeof_;
10383 main ()
10385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10386 test_array [0] = 0
10389 return 0;
10391 _ACEOF
10392 rm -f conftest.$ac_objext
10393 if { (ac_try="$ac_compile"
10394 case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_compile") 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest.$ac_objext; then
10409 ac_lo=0 ac_mid=0
10410 while :; do
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h. */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 $ac_includes_default
10418 typedef size_t ac__type_sizeof_;
10420 main ()
10422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10423 test_array [0] = 0
10426 return 0;
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest.$ac_objext; then
10446 ac_hi=$ac_mid; break
10447 else
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10451 ac_lo=`expr $ac_mid + 1`
10452 if test $ac_lo -le $ac_mid; then
10453 ac_lo= ac_hi=
10454 break
10456 ac_mid=`expr 2 '*' $ac_mid + 1`
10459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460 done
10461 else
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 $ac_includes_default
10472 typedef size_t ac__type_sizeof_;
10474 main ()
10476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10477 test_array [0] = 0
10480 return 0;
10482 _ACEOF
10483 rm -f conftest.$ac_objext
10484 if { (ac_try="$ac_compile"
10485 case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_compile") 2>conftest.er1
10491 ac_status=$?
10492 grep -v '^ *+' conftest.er1 >conftest.err
10493 rm -f conftest.er1
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && {
10497 test -z "$ac_c_werror_flag" ||
10498 test ! -s conftest.err
10499 } && test -s conftest.$ac_objext; then
10500 ac_hi=-1 ac_mid=-1
10501 while :; do
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h. */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 $ac_includes_default
10509 typedef size_t ac__type_sizeof_;
10511 main ()
10513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10514 test_array [0] = 0
10517 return 0;
10519 _ACEOF
10520 rm -f conftest.$ac_objext
10521 if { (ac_try="$ac_compile"
10522 case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525 esac
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_compile") 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest.$ac_objext; then
10537 ac_lo=$ac_mid; break
10538 else
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10542 ac_hi=`expr '(' $ac_mid ')' - 1`
10543 if test $ac_mid -le $ac_hi; then
10544 ac_lo= ac_hi=
10545 break
10547 ac_mid=`expr 2 '*' $ac_mid`
10550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551 done
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_lo= ac_hi=
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10563 # Binary search between lo and hi bounds.
10564 while test "x$ac_lo" != "x$ac_hi"; do
10565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10566 cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h. */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 $ac_includes_default
10573 typedef size_t ac__type_sizeof_;
10575 main ()
10577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10578 test_array [0] = 0
10581 return 0;
10583 _ACEOF
10584 rm -f conftest.$ac_objext
10585 if { (ac_try="$ac_compile"
10586 case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10589 esac
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_compile") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest.$ac_objext; then
10601 ac_hi=$ac_mid
10602 else
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_lo=`expr '(' $ac_mid ')' + 1`
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610 done
10611 case $ac_lo in
10612 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10613 '') if test "$ac_cv_type_size_t" = yes; then
10614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10615 See \`config.log' for more details." >&5
10616 echo "$as_me: error: cannot compute sizeof (size_t)
10617 See \`config.log' for more details." >&2;}
10618 { (exit 77); exit 77; }; }
10619 else
10620 ac_cv_sizeof_size_t=0
10621 fi ;;
10622 esac
10623 else
10624 cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h. */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10630 $ac_includes_default
10631 typedef size_t ac__type_sizeof_;
10632 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10633 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10634 #include <stdio.h>
10635 #include <stdlib.h>
10637 main ()
10640 FILE *f = fopen ("conftest.val", "w");
10641 if (! f)
10642 return 1;
10643 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10645 long int i = longval ();
10646 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10647 return 1;
10648 fprintf (f, "%ld\n", i);
10650 else
10652 unsigned long int i = ulongval ();
10653 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10654 return 1;
10655 fprintf (f, "%lu\n", i);
10657 return ferror (f) || fclose (f) != 0;
10660 return 0;
10662 _ACEOF
10663 rm -f conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10668 esac
10669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670 (eval "$ac_link") 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677 esac
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 ac_cv_sizeof_size_t=`cat conftest.val`
10684 else
10685 echo "$as_me: program exited with status $ac_status" >&5
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 ( exit $ac_status )
10690 if test "$ac_cv_type_size_t" = yes; then
10691 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10692 See \`config.log' for more details." >&5
10693 echo "$as_me: error: cannot compute sizeof (size_t)
10694 See \`config.log' for more details." >&2;}
10695 { (exit 77); exit 77; }; }
10696 else
10697 ac_cv_sizeof_size_t=0
10700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10702 rm -f conftest.val
10704 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10705 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10709 cat >>confdefs.h <<_ACEOF
10710 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10711 _ACEOF
10714 { echo "$as_me:$LINENO: checking for pid_t" >&5
10715 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10716 if test "${ac_cv_type_pid_t+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 $ac_includes_default
10726 typedef pid_t ac__type_new_;
10728 main ()
10730 if ((ac__type_new_ *) 0)
10731 return 0;
10732 if (sizeof (ac__type_new_))
10733 return 0;
10735 return 0;
10737 _ACEOF
10738 rm -f conftest.$ac_objext
10739 if { (ac_try="$ac_compile"
10740 case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10743 esac
10744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10745 (eval "$ac_compile") 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } && {
10752 test -z "$ac_c_werror_flag" ||
10753 test ! -s conftest.err
10754 } && test -s conftest.$ac_objext; then
10755 ac_cv_type_pid_t=yes
10756 else
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 ac_cv_type_pid_t=no
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10766 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10768 # The cast to long int works around a bug in the HP C Compiler
10769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10771 # This bug is HP SR number 8606223364.
10772 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10773 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10774 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777 if test "$cross_compiling" = yes; then
10778 # Depending upon the size, compute the lo and hi bounds.
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 $ac_includes_default
10786 typedef pid_t ac__type_sizeof_;
10788 main ()
10790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10791 test_array [0] = 0
10794 return 0;
10796 _ACEOF
10797 rm -f conftest.$ac_objext
10798 if { (ac_try="$ac_compile"
10799 case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_compile") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } && {
10811 test -z "$ac_c_werror_flag" ||
10812 test ! -s conftest.err
10813 } && test -s conftest.$ac_objext; then
10814 ac_lo=0 ac_mid=0
10815 while :; do
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h. */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10823 typedef pid_t ac__type_sizeof_;
10825 main ()
10827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10828 test_array [0] = 0
10831 return 0;
10833 _ACEOF
10834 rm -f conftest.$ac_objext
10835 if { (ac_try="$ac_compile"
10836 case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10839 esac
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_compile") 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest.$ac_objext; then
10851 ac_hi=$ac_mid; break
10852 else
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_lo=`expr $ac_mid + 1`
10857 if test $ac_lo -le $ac_mid; then
10858 ac_lo= ac_hi=
10859 break
10861 ac_mid=`expr 2 '*' $ac_mid + 1`
10864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865 done
10866 else
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 $ac_includes_default
10877 typedef pid_t ac__type_sizeof_;
10879 main ()
10881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10882 test_array [0] = 0
10885 return 0;
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest.$ac_objext; then
10905 ac_hi=-1 ac_mid=-1
10906 while :; do
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h. */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 $ac_includes_default
10914 typedef pid_t ac__type_sizeof_;
10916 main ()
10918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10919 test_array [0] = 0
10922 return 0;
10924 _ACEOF
10925 rm -f conftest.$ac_objext
10926 if { (ac_try="$ac_compile"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_compile") 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest.$ac_objext; then
10942 ac_lo=$ac_mid; break
10943 else
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ac_hi=`expr '(' $ac_mid ')' - 1`
10948 if test $ac_mid -le $ac_hi; then
10949 ac_lo= ac_hi=
10950 break
10952 ac_mid=`expr 2 '*' $ac_mid`
10955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10956 done
10957 else
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10961 ac_lo= ac_hi=
10964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10968 # Binary search between lo and hi bounds.
10969 while test "x$ac_lo" != "x$ac_hi"; do
10970 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 $ac_includes_default
10978 typedef pid_t ac__type_sizeof_;
10980 main ()
10982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10983 test_array [0] = 0
10986 return 0;
10988 _ACEOF
10989 rm -f conftest.$ac_objext
10990 if { (ac_try="$ac_compile"
10991 case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_compile") 2>conftest.er1
10997 ac_status=$?
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } && {
11003 test -z "$ac_c_werror_flag" ||
11004 test ! -s conftest.err
11005 } && test -s conftest.$ac_objext; then
11006 ac_hi=$ac_mid
11007 else
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 ac_lo=`expr '(' $ac_mid ')' + 1`
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 done
11016 case $ac_lo in
11017 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11018 '') if test "$ac_cv_type_pid_t" = yes; then
11019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11020 See \`config.log' for more details." >&5
11021 echo "$as_me: error: cannot compute sizeof (pid_t)
11022 See \`config.log' for more details." >&2;}
11023 { (exit 77); exit 77; }; }
11024 else
11025 ac_cv_sizeof_pid_t=0
11026 fi ;;
11027 esac
11028 else
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 $ac_includes_default
11036 typedef pid_t ac__type_sizeof_;
11037 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11038 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11039 #include <stdio.h>
11040 #include <stdlib.h>
11042 main ()
11045 FILE *f = fopen ("conftest.val", "w");
11046 if (! f)
11047 return 1;
11048 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11050 long int i = longval ();
11051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11052 return 1;
11053 fprintf (f, "%ld\n", i);
11055 else
11057 unsigned long int i = ulongval ();
11058 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11059 return 1;
11060 fprintf (f, "%lu\n", i);
11062 return ferror (f) || fclose (f) != 0;
11065 return 0;
11067 _ACEOF
11068 rm -f conftest$ac_exeext
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_link") 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11079 { (case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_try") 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
11088 ac_cv_sizeof_pid_t=`cat conftest.val`
11089 else
11090 echo "$as_me: program exited with status $ac_status" >&5
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 ( exit $ac_status )
11095 if test "$ac_cv_type_pid_t" = yes; then
11096 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11097 See \`config.log' for more details." >&5
11098 echo "$as_me: error: cannot compute sizeof (pid_t)
11099 See \`config.log' for more details." >&2;}
11100 { (exit 77); exit 77; }; }
11101 else
11102 ac_cv_sizeof_pid_t=0
11105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11107 rm -f conftest.val
11109 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11110 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11114 cat >>confdefs.h <<_ACEOF
11115 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11116 _ACEOF
11120 { echo "$as_me:$LINENO: checking for long long support" >&5
11121 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11122 have_long_long=no
11123 cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h. */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11131 main ()
11133 long long x; x = (long long)0;
11135 return 0;
11137 _ACEOF
11138 rm -f conftest.$ac_objext
11139 if { (ac_try="$ac_compile"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_compile") 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } && {
11152 test -z "$ac_c_werror_flag" ||
11153 test ! -s conftest.err
11154 } && test -s conftest.$ac_objext; then
11157 cat >>confdefs.h <<\_ACEOF
11158 #define HAVE_LONG_LONG 1
11159 _ACEOF
11161 have_long_long=yes
11163 else
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11172 echo "${ECHO_T}$have_long_long" >&6; }
11173 if test "$have_long_long" = yes ; then
11174 { echo "$as_me:$LINENO: checking for long long" >&5
11175 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11176 if test "${ac_cv_type_long_long+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179 cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h. */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 $ac_includes_default
11186 typedef long long ac__type_new_;
11188 main ()
11190 if ((ac__type_new_ *) 0)
11191 return 0;
11192 if (sizeof (ac__type_new_))
11193 return 0;
11195 return 0;
11197 _ACEOF
11198 rm -f conftest.$ac_objext
11199 if { (ac_try="$ac_compile"
11200 case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11203 esac
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205 (eval "$ac_compile") 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } && {
11212 test -z "$ac_c_werror_flag" ||
11213 test ! -s conftest.err
11214 } && test -s conftest.$ac_objext; then
11215 ac_cv_type_long_long=yes
11216 else
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 ac_cv_type_long_long=no
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11226 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11228 # The cast to long int works around a bug in the HP C Compiler
11229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11231 # This bug is HP SR number 8606223364.
11232 { echo "$as_me:$LINENO: checking size of long long" >&5
11233 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11234 if test "${ac_cv_sizeof_long_long+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237 if test "$cross_compiling" = yes; then
11238 # Depending upon the size, compute the lo and hi bounds.
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11246 typedef long long ac__type_sizeof_;
11248 main ()
11250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11251 test_array [0] = 0
11254 return 0;
11256 _ACEOF
11257 rm -f conftest.$ac_objext
11258 if { (ac_try="$ac_compile"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_compile") 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest.$ac_objext; then
11274 ac_lo=0 ac_mid=0
11275 while :; do
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h. */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 $ac_includes_default
11283 typedef long long ac__type_sizeof_;
11285 main ()
11287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11288 test_array [0] = 0
11291 return 0;
11293 _ACEOF
11294 rm -f conftest.$ac_objext
11295 if { (ac_try="$ac_compile"
11296 case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299 esac
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.$ac_objext; then
11311 ac_hi=$ac_mid; break
11312 else
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_lo=`expr $ac_mid + 1`
11317 if test $ac_lo -le $ac_mid; then
11318 ac_lo= ac_hi=
11319 break
11321 ac_mid=`expr 2 '*' $ac_mid + 1`
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 done
11326 else
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 typedef long long ac__type_sizeof_;
11339 main ()
11341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11342 test_array [0] = 0
11345 return 0;
11347 _ACEOF
11348 rm -f conftest.$ac_objext
11349 if { (ac_try="$ac_compile"
11350 case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_compile") 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } && {
11362 test -z "$ac_c_werror_flag" ||
11363 test ! -s conftest.err
11364 } && test -s conftest.$ac_objext; then
11365 ac_hi=-1 ac_mid=-1
11366 while :; do
11367 cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h. */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 $ac_includes_default
11374 typedef long long ac__type_sizeof_;
11376 main ()
11378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11379 test_array [0] = 0
11382 return 0;
11384 _ACEOF
11385 rm -f conftest.$ac_objext
11386 if { (ac_try="$ac_compile"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_compile") 2>conftest.er1
11393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } && {
11399 test -z "$ac_c_werror_flag" ||
11400 test ! -s conftest.err
11401 } && test -s conftest.$ac_objext; then
11402 ac_lo=$ac_mid; break
11403 else
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 ac_hi=`expr '(' $ac_mid ')' - 1`
11408 if test $ac_mid -le $ac_hi; then
11409 ac_lo= ac_hi=
11410 break
11412 ac_mid=`expr 2 '*' $ac_mid`
11415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11416 done
11417 else
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_lo= ac_hi=
11424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 # Binary search between lo and hi bounds.
11429 while test "x$ac_lo" != "x$ac_hi"; do
11430 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11431 cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h. */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 $ac_includes_default
11438 typedef long long ac__type_sizeof_;
11440 main ()
11442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11443 test_array [0] = 0
11446 return 0;
11448 _ACEOF
11449 rm -f conftest.$ac_objext
11450 if { (ac_try="$ac_compile"
11451 case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_compile") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest.$ac_objext; then
11466 ac_hi=$ac_mid
11467 else
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 ac_lo=`expr '(' $ac_mid ')' + 1`
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 done
11476 case $ac_lo in
11477 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11478 '') if test "$ac_cv_type_long_long" = yes; then
11479 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11480 See \`config.log' for more details." >&5
11481 echo "$as_me: error: cannot compute sizeof (long long)
11482 See \`config.log' for more details." >&2;}
11483 { (exit 77); exit 77; }; }
11484 else
11485 ac_cv_sizeof_long_long=0
11486 fi ;;
11487 esac
11488 else
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 $ac_includes_default
11496 typedef long long ac__type_sizeof_;
11497 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11498 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11499 #include <stdio.h>
11500 #include <stdlib.h>
11502 main ()
11505 FILE *f = fopen ("conftest.val", "w");
11506 if (! f)
11507 return 1;
11508 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11510 long int i = longval ();
11511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11512 return 1;
11513 fprintf (f, "%ld\n", i);
11515 else
11517 unsigned long int i = ulongval ();
11518 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11519 return 1;
11520 fprintf (f, "%lu\n", i);
11522 return ferror (f) || fclose (f) != 0;
11525 return 0;
11527 _ACEOF
11528 rm -f conftest$ac_exeext
11529 if { (ac_try="$ac_link"
11530 case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533 esac
11534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_link") 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11539 { (case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_try") 2>&5
11545 ac_status=$?
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11548 ac_cv_sizeof_long_long=`cat conftest.val`
11549 else
11550 echo "$as_me: program exited with status $ac_status" >&5
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ( exit $ac_status )
11555 if test "$ac_cv_type_long_long" = yes; then
11556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11557 See \`config.log' for more details." >&5
11558 echo "$as_me: error: cannot compute sizeof (long long)
11559 See \`config.log' for more details." >&2;}
11560 { (exit 77); exit 77; }; }
11561 else
11562 ac_cv_sizeof_long_long=0
11565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11567 rm -f conftest.val
11569 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11570 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11574 cat >>confdefs.h <<_ACEOF
11575 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11576 _ACEOF
11581 { echo "$as_me:$LINENO: checking for long double support" >&5
11582 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11583 have_long_double=no
11584 cat >conftest.$ac_ext <<_ACEOF
11585 /* confdefs.h. */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11592 main ()
11594 long double x; x = (long double)0.;
11596 return 0;
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (ac_try="$ac_compile"
11601 case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604 esac
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_compile") 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } && {
11613 test -z "$ac_c_werror_flag" ||
11614 test ! -s conftest.err
11615 } && test -s conftest.$ac_objext; then
11618 cat >>confdefs.h <<\_ACEOF
11619 #define HAVE_LONG_DOUBLE 1
11620 _ACEOF
11622 have_long_double=yes
11624 else
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11633 echo "${ECHO_T}$have_long_double" >&6; }
11634 if test "$have_long_double" = yes ; then
11635 { echo "$as_me:$LINENO: checking for long double" >&5
11636 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11637 if test "${ac_cv_type_long_double+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h. */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646 $ac_includes_default
11647 typedef long double ac__type_new_;
11649 main ()
11651 if ((ac__type_new_ *) 0)
11652 return 0;
11653 if (sizeof (ac__type_new_))
11654 return 0;
11656 return 0;
11658 _ACEOF
11659 rm -f conftest.$ac_objext
11660 if { (ac_try="$ac_compile"
11661 case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664 esac
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_compile") 2>conftest.er1
11667 ac_status=$?
11668 grep -v '^ *+' conftest.er1 >conftest.err
11669 rm -f conftest.er1
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } && {
11673 test -z "$ac_c_werror_flag" ||
11674 test ! -s conftest.err
11675 } && test -s conftest.$ac_objext; then
11676 ac_cv_type_long_double=yes
11677 else
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 ac_cv_type_long_double=no
11684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11687 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11689 # The cast to long int works around a bug in the HP C Compiler
11690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11692 # This bug is HP SR number 8606223364.
11693 { echo "$as_me:$LINENO: checking size of long double" >&5
11694 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11695 if test "${ac_cv_sizeof_long_double+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698 if test "$cross_compiling" = yes; then
11699 # Depending upon the size, compute the lo and hi bounds.
11700 cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h. */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11706 $ac_includes_default
11707 typedef long double ac__type_sizeof_;
11709 main ()
11711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11712 test_array [0] = 0
11715 return 0;
11717 _ACEOF
11718 rm -f conftest.$ac_objext
11719 if { (ac_try="$ac_compile"
11720 case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_compile") 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } && {
11732 test -z "$ac_c_werror_flag" ||
11733 test ! -s conftest.err
11734 } && test -s conftest.$ac_objext; then
11735 ac_lo=0 ac_mid=0
11736 while :; do
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h. */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 $ac_includes_default
11744 typedef long double ac__type_sizeof_;
11746 main ()
11748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11749 test_array [0] = 0
11752 return 0;
11754 _ACEOF
11755 rm -f conftest.$ac_objext
11756 if { (ac_try="$ac_compile"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760 esac
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_compile") 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } && {
11769 test -z "$ac_c_werror_flag" ||
11770 test ! -s conftest.err
11771 } && test -s conftest.$ac_objext; then
11772 ac_hi=$ac_mid; break
11773 else
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11777 ac_lo=`expr $ac_mid + 1`
11778 if test $ac_lo -le $ac_mid; then
11779 ac_lo= ac_hi=
11780 break
11782 ac_mid=`expr 2 '*' $ac_mid + 1`
11785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786 done
11787 else
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h. */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 $ac_includes_default
11798 typedef long double ac__type_sizeof_;
11800 main ()
11802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11803 test_array [0] = 0
11806 return 0;
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (ac_try="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest.$ac_objext; then
11826 ac_hi=-1 ac_mid=-1
11827 while :; do
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 $ac_includes_default
11835 typedef long double ac__type_sizeof_;
11837 main ()
11839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11840 test_array [0] = 0
11843 return 0;
11845 _ACEOF
11846 rm -f conftest.$ac_objext
11847 if { (ac_try="$ac_compile"
11848 case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_compile") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } && {
11860 test -z "$ac_c_werror_flag" ||
11861 test ! -s conftest.err
11862 } && test -s conftest.$ac_objext; then
11863 ac_lo=$ac_mid; break
11864 else
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11868 ac_hi=`expr '(' $ac_mid ')' - 1`
11869 if test $ac_mid -le $ac_hi; then
11870 ac_lo= ac_hi=
11871 break
11873 ac_mid=`expr 2 '*' $ac_mid`
11876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877 done
11878 else
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ac_lo= ac_hi=
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11889 # Binary search between lo and hi bounds.
11890 while test "x$ac_lo" != "x$ac_hi"; do
11891 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 $ac_includes_default
11899 typedef long double ac__type_sizeof_;
11901 main ()
11903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11904 test_array [0] = 0
11907 return 0;
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11927 ac_hi=$ac_mid
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_lo=`expr '(' $ac_mid ')' + 1`
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 done
11937 case $ac_lo in
11938 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11939 '') if test "$ac_cv_type_long_double" = yes; then
11940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11941 See \`config.log' for more details." >&5
11942 echo "$as_me: error: cannot compute sizeof (long double)
11943 See \`config.log' for more details." >&2;}
11944 { (exit 77); exit 77; }; }
11945 else
11946 ac_cv_sizeof_long_double=0
11947 fi ;;
11948 esac
11949 else
11950 cat >conftest.$ac_ext <<_ACEOF
11951 /* confdefs.h. */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 $ac_includes_default
11957 typedef long double ac__type_sizeof_;
11958 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11959 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11960 #include <stdio.h>
11961 #include <stdlib.h>
11963 main ()
11966 FILE *f = fopen ("conftest.val", "w");
11967 if (! f)
11968 return 1;
11969 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11971 long int i = longval ();
11972 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11973 return 1;
11974 fprintf (f, "%ld\n", i);
11976 else
11978 unsigned long int i = ulongval ();
11979 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11980 return 1;
11981 fprintf (f, "%lu\n", i);
11983 return ferror (f) || fclose (f) != 0;
11986 return 0;
11988 _ACEOF
11989 rm -f conftest$ac_exeext
11990 if { (ac_try="$ac_link"
11991 case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11994 esac
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_link") 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12000 { (case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003 esac
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_try") 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009 ac_cv_sizeof_long_double=`cat conftest.val`
12010 else
12011 echo "$as_me: program exited with status $ac_status" >&5
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ( exit $ac_status )
12016 if test "$ac_cv_type_long_double" = yes; then
12017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12018 See \`config.log' for more details." >&5
12019 echo "$as_me: error: cannot compute sizeof (long double)
12020 See \`config.log' for more details." >&2;}
12021 { (exit 77); exit 77; }; }
12022 else
12023 ac_cv_sizeof_long_double=0
12026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12028 rm -f conftest.val
12030 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12031 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12035 cat >>confdefs.h <<_ACEOF
12036 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12037 _ACEOF
12042 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12043 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12044 have_c99_bool=no
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12053 main ()
12055 _Bool x; x = (_Bool)0;
12057 return 0;
12059 _ACEOF
12060 rm -f conftest.$ac_objext
12061 if { (ac_try="$ac_compile"
12062 case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065 esac
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_compile") 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } && {
12074 test -z "$ac_c_werror_flag" ||
12075 test ! -s conftest.err
12076 } && test -s conftest.$ac_objext; then
12079 cat >>confdefs.h <<\_ACEOF
12080 #define HAVE_C99_BOOL 1
12081 _ACEOF
12083 have_c99_bool=yes
12085 else
12086 echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12094 echo "${ECHO_T}$have_c99_bool" >&6; }
12095 if test "$have_c99_bool" = yes ; then
12096 { echo "$as_me:$LINENO: checking for _Bool" >&5
12097 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12098 if test "${ac_cv_type__Bool+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h. */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107 $ac_includes_default
12108 typedef _Bool ac__type_new_;
12110 main ()
12112 if ((ac__type_new_ *) 0)
12113 return 0;
12114 if (sizeof (ac__type_new_))
12115 return 0;
12117 return 0;
12119 _ACEOF
12120 rm -f conftest.$ac_objext
12121 if { (ac_try="$ac_compile"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125 esac
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_compile") 2>conftest.er1
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && {
12134 test -z "$ac_c_werror_flag" ||
12135 test ! -s conftest.err
12136 } && test -s conftest.$ac_objext; then
12137 ac_cv_type__Bool=yes
12138 else
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ac_cv_type__Bool=no
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12148 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12150 # The cast to long int works around a bug in the HP C Compiler
12151 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12152 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12153 # This bug is HP SR number 8606223364.
12154 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12155 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12156 if test "${ac_cv_sizeof__Bool+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159 if test "$cross_compiling" = yes; then
12160 # Depending upon the size, compute the lo and hi bounds.
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h. */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 $ac_includes_default
12168 typedef _Bool ac__type_sizeof_;
12170 main ()
12172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12173 test_array [0] = 0
12176 return 0;
12178 _ACEOF
12179 rm -f conftest.$ac_objext
12180 if { (ac_try="$ac_compile"
12181 case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12184 esac
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_compile") 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } && {
12193 test -z "$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12195 } && test -s conftest.$ac_objext; then
12196 ac_lo=0 ac_mid=0
12197 while :; do
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12205 typedef _Bool ac__type_sizeof_;
12207 main ()
12209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12210 test_array [0] = 0
12213 return 0;
12215 _ACEOF
12216 rm -f conftest.$ac_objext
12217 if { (ac_try="$ac_compile"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_compile") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest.$ac_objext; then
12233 ac_hi=$ac_mid; break
12234 else
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 ac_lo=`expr $ac_mid + 1`
12239 if test $ac_lo -le $ac_mid; then
12240 ac_lo= ac_hi=
12241 break
12243 ac_mid=`expr 2 '*' $ac_mid + 1`
12246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247 done
12248 else
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h. */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12258 $ac_includes_default
12259 typedef _Bool ac__type_sizeof_;
12261 main ()
12263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12264 test_array [0] = 0
12267 return 0;
12269 _ACEOF
12270 rm -f conftest.$ac_objext
12271 if { (ac_try="$ac_compile"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_compile") 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest.$ac_objext; then
12287 ac_hi=-1 ac_mid=-1
12288 while :; do
12289 cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h. */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12295 $ac_includes_default
12296 typedef _Bool ac__type_sizeof_;
12298 main ()
12300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12301 test_array [0] = 0
12304 return 0;
12306 _ACEOF
12307 rm -f conftest.$ac_objext
12308 if { (ac_try="$ac_compile"
12309 case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12312 esac
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_compile") 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } && {
12321 test -z "$ac_c_werror_flag" ||
12322 test ! -s conftest.err
12323 } && test -s conftest.$ac_objext; then
12324 ac_lo=$ac_mid; break
12325 else
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12329 ac_hi=`expr '(' $ac_mid ')' - 1`
12330 if test $ac_mid -le $ac_hi; then
12331 ac_lo= ac_hi=
12332 break
12334 ac_mid=`expr 2 '*' $ac_mid`
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 done
12339 else
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 ac_lo= ac_hi=
12346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350 # Binary search between lo and hi bounds.
12351 while test "x$ac_lo" != "x$ac_hi"; do
12352 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12353 cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h. */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 $ac_includes_default
12360 typedef _Bool ac__type_sizeof_;
12362 main ()
12364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12365 test_array [0] = 0
12368 return 0;
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (ac_try="$ac_compile"
12373 case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376 esac
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_compile") 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } && {
12385 test -z "$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12387 } && test -s conftest.$ac_objext; then
12388 ac_hi=$ac_mid
12389 else
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ac_lo=`expr '(' $ac_mid ')' + 1`
12396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397 done
12398 case $ac_lo in
12399 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12400 '') if test "$ac_cv_type__Bool" = yes; then
12401 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12402 See \`config.log' for more details." >&5
12403 echo "$as_me: error: cannot compute sizeof (_Bool)
12404 See \`config.log' for more details." >&2;}
12405 { (exit 77); exit 77; }; }
12406 else
12407 ac_cv_sizeof__Bool=0
12408 fi ;;
12409 esac
12410 else
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 $ac_includes_default
12418 typedef _Bool ac__type_sizeof_;
12419 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12420 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12421 #include <stdio.h>
12422 #include <stdlib.h>
12424 main ()
12427 FILE *f = fopen ("conftest.val", "w");
12428 if (! f)
12429 return 1;
12430 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12432 long int i = longval ();
12433 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12434 return 1;
12435 fprintf (f, "%ld\n", i);
12437 else
12439 unsigned long int i = ulongval ();
12440 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12441 return 1;
12442 fprintf (f, "%lu\n", i);
12444 return ferror (f) || fclose (f) != 0;
12447 return 0;
12449 _ACEOF
12450 rm -f conftest$ac_exeext
12451 if { (ac_try="$ac_link"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_link") 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12461 { (case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12464 esac
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_try") 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12470 ac_cv_sizeof__Bool=`cat conftest.val`
12471 else
12472 echo "$as_me: program exited with status $ac_status" >&5
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ( exit $ac_status )
12477 if test "$ac_cv_type__Bool" = yes; then
12478 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12479 See \`config.log' for more details." >&5
12480 echo "$as_me: error: cannot compute sizeof (_Bool)
12481 See \`config.log' for more details." >&2;}
12482 { (exit 77); exit 77; }; }
12483 else
12484 ac_cv_sizeof__Bool=0
12487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12489 rm -f conftest.val
12491 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12492 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12496 cat >>confdefs.h <<_ACEOF
12497 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12498 _ACEOF
12503 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12504 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12505 if test "${ac_cv_type_uintptr_t+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 #ifdef HAVE_STDINT_H
12515 #include <stdint.h>
12516 #endif
12518 typedef uintptr_t ac__type_new_;
12520 main ()
12522 if ((ac__type_new_ *) 0)
12523 return 0;
12524 if (sizeof (ac__type_new_))
12525 return 0;
12527 return 0;
12529 _ACEOF
12530 rm -f conftest.$ac_objext
12531 if { (ac_try="$ac_compile"
12532 case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535 esac
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_compile") 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && {
12544 test -z "$ac_c_werror_flag" ||
12545 test ! -s conftest.err
12546 } && test -s conftest.$ac_objext; then
12547 ac_cv_type_uintptr_t=yes
12548 else
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ac_cv_type_uintptr_t=no
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12558 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12559 if test $ac_cv_type_uintptr_t = yes; then
12561 cat >>confdefs.h <<_ACEOF
12562 #define HAVE_UINTPTR_T 1
12563 _ACEOF
12565 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12566 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12567 if test "${ac_cv_type_uintptr_t+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570 cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h. */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12576 $ac_includes_default
12577 typedef uintptr_t ac__type_new_;
12579 main ()
12581 if ((ac__type_new_ *) 0)
12582 return 0;
12583 if (sizeof (ac__type_new_))
12584 return 0;
12586 return 0;
12588 _ACEOF
12589 rm -f conftest.$ac_objext
12590 if { (ac_try="$ac_compile"
12591 case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_compile") 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest.$ac_objext; then
12606 ac_cv_type_uintptr_t=yes
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_cv_type_uintptr_t=no
12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12617 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12619 # The cast to long int works around a bug in the HP C Compiler
12620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12622 # This bug is HP SR number 8606223364.
12623 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12624 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12625 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628 if test "$cross_compiling" = yes; then
12629 # Depending upon the size, compute the lo and hi bounds.
12630 cat >conftest.$ac_ext <<_ACEOF
12631 /* confdefs.h. */
12632 _ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 $ac_includes_default
12637 typedef uintptr_t ac__type_sizeof_;
12639 main ()
12641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12642 test_array [0] = 0
12645 return 0;
12647 _ACEOF
12648 rm -f conftest.$ac_objext
12649 if { (ac_try="$ac_compile"
12650 case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653 esac
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_compile") 2>conftest.er1
12656 ac_status=$?
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } && {
12662 test -z "$ac_c_werror_flag" ||
12663 test ! -s conftest.err
12664 } && test -s conftest.$ac_objext; then
12665 ac_lo=0 ac_mid=0
12666 while :; do
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h. */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673 $ac_includes_default
12674 typedef uintptr_t ac__type_sizeof_;
12676 main ()
12678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12679 test_array [0] = 0
12682 return 0;
12684 _ACEOF
12685 rm -f conftest.$ac_objext
12686 if { (ac_try="$ac_compile"
12687 case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12690 esac
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_compile") 2>conftest.er1
12693 ac_status=$?
12694 grep -v '^ *+' conftest.er1 >conftest.err
12695 rm -f conftest.er1
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } && {
12699 test -z "$ac_c_werror_flag" ||
12700 test ! -s conftest.err
12701 } && test -s conftest.$ac_objext; then
12702 ac_hi=$ac_mid; break
12703 else
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12707 ac_lo=`expr $ac_mid + 1`
12708 if test $ac_lo -le $ac_mid; then
12709 ac_lo= ac_hi=
12710 break
12712 ac_mid=`expr 2 '*' $ac_mid + 1`
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 done
12717 else
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12721 cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h. */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 $ac_includes_default
12728 typedef uintptr_t ac__type_sizeof_;
12730 main ()
12732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12733 test_array [0] = 0
12736 return 0;
12738 _ACEOF
12739 rm -f conftest.$ac_objext
12740 if { (ac_try="$ac_compile"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_compile") 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && {
12753 test -z "$ac_c_werror_flag" ||
12754 test ! -s conftest.err
12755 } && test -s conftest.$ac_objext; then
12756 ac_hi=-1 ac_mid=-1
12757 while :; do
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 $ac_includes_default
12765 typedef uintptr_t ac__type_sizeof_;
12767 main ()
12769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12770 test_array [0] = 0
12773 return 0;
12775 _ACEOF
12776 rm -f conftest.$ac_objext
12777 if { (ac_try="$ac_compile"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_compile") 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest.$ac_objext; then
12793 ac_lo=$ac_mid; break
12794 else
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 ac_hi=`expr '(' $ac_mid ')' - 1`
12799 if test $ac_mid -le $ac_hi; then
12800 ac_lo= ac_hi=
12801 break
12803 ac_mid=`expr 2 '*' $ac_mid`
12806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 done
12808 else
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_lo= ac_hi=
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 # Binary search between lo and hi bounds.
12820 while test "x$ac_lo" != "x$ac_hi"; do
12821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12822 cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h. */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 $ac_includes_default
12829 typedef uintptr_t ac__type_sizeof_;
12831 main ()
12833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12834 test_array [0] = 0
12837 return 0;
12839 _ACEOF
12840 rm -f conftest.$ac_objext
12841 if { (ac_try="$ac_compile"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_compile") 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } && {
12854 test -z "$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12856 } && test -s conftest.$ac_objext; then
12857 ac_hi=$ac_mid
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_lo=`expr '(' $ac_mid ')' + 1`
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 done
12867 case $ac_lo in
12868 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12869 '') if test "$ac_cv_type_uintptr_t" = yes; then
12870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12871 See \`config.log' for more details." >&5
12872 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12873 See \`config.log' for more details." >&2;}
12874 { (exit 77); exit 77; }; }
12875 else
12876 ac_cv_sizeof_uintptr_t=0
12877 fi ;;
12878 esac
12879 else
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 $ac_includes_default
12887 typedef uintptr_t ac__type_sizeof_;
12888 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12889 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12890 #include <stdio.h>
12891 #include <stdlib.h>
12893 main ()
12896 FILE *f = fopen ("conftest.val", "w");
12897 if (! f)
12898 return 1;
12899 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12901 long int i = longval ();
12902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12903 return 1;
12904 fprintf (f, "%ld\n", i);
12906 else
12908 unsigned long int i = ulongval ();
12909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12910 return 1;
12911 fprintf (f, "%lu\n", i);
12913 return ferror (f) || fclose (f) != 0;
12916 return 0;
12918 _ACEOF
12919 rm -f conftest$ac_exeext
12920 if { (ac_try="$ac_link"
12921 case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12924 esac
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_link") 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12933 esac
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12940 else
12941 echo "$as_me: program exited with status $ac_status" >&5
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12945 ( exit $ac_status )
12946 if test "$ac_cv_type_uintptr_t" = yes; then
12947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12948 See \`config.log' for more details." >&5
12949 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12950 See \`config.log' for more details." >&2;}
12951 { (exit 77); exit 77; }; }
12952 else
12953 ac_cv_sizeof_uintptr_t=0
12956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12958 rm -f conftest.val
12960 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12961 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12965 cat >>confdefs.h <<_ACEOF
12966 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12967 _ACEOF
12974 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12975 { echo "$as_me:$LINENO: checking size of off_t" >&5
12976 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12977 if test "${ac_cv_sizeof_off_t+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980 if test "$cross_compiling" = yes; then
12981 ac_cv_sizeof_off_t=4
12982 else
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h. */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989 #include <stdio.h>
12990 #include <sys/types.h>
12991 main()
12993 FILE *f=fopen("conftestval", "w");
12994 if (!f) exit(1);
12995 fprintf(f, "%d\n", sizeof(off_t));
12996 exit(0);
12998 _ACEOF
12999 rm -f conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_link") 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_sizeof_off_t=`cat conftestval`
13020 else
13021 echo "$as_me: program exited with status $ac_status" >&5
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13025 ( exit $ac_status )
13026 ac_cv_sizeof_off_t=0
13028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13035 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13036 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13038 cat >>confdefs.h <<_ACEOF
13039 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13040 _ACEOF
13043 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13044 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13045 if test "$have_long_long" = yes -a \
13046 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13047 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13049 cat >>confdefs.h <<\_ACEOF
13050 #define HAVE_LARGEFILE_SUPPORT 1
13051 _ACEOF
13053 { echo "$as_me:$LINENO: result: yes" >&5
13054 echo "${ECHO_T}yes" >&6; }
13055 else
13056 { echo "$as_me:$LINENO: result: no" >&5
13057 echo "${ECHO_T}no" >&6; }
13060 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13061 { echo "$as_me:$LINENO: checking size of time_t" >&5
13062 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13063 if test "${ac_cv_sizeof_time_t+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066 if test "$cross_compiling" = yes; then
13067 ac_cv_sizeof_time_t=4
13068 else
13069 cat >conftest.$ac_ext <<_ACEOF
13070 /* confdefs.h. */
13071 _ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13075 #include <stdio.h>
13076 #include <time.h>
13077 main()
13079 FILE *f=fopen("conftestval", "w");
13080 if (!f) exit(1);
13081 fprintf(f, "%d\n", sizeof(time_t));
13082 exit(0);
13084 _ACEOF
13085 rm -f conftest$ac_exeext
13086 if { (ac_try="$ac_link"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_link") 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13096 { (case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099 esac
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_try") 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_cv_sizeof_time_t=`cat conftestval`
13106 else
13107 echo "$as_me: program exited with status $ac_status" >&5
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13111 ( exit $ac_status )
13112 ac_cv_sizeof_time_t=0
13114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13121 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13122 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13124 cat >>confdefs.h <<_ACEOF
13125 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13126 _ACEOF
13130 # if have pthread_t then define SIZEOF_PTHREAD_T
13131 ac_save_cc="$CC"
13132 if test "$ac_cv_kpthread" = "yes"
13133 then CC="$CC -Kpthread"
13134 elif test "$ac_cv_kthread" = "yes"
13135 then CC="$CC -Kthread"
13136 elif test "$ac_cv_pthread" = "yes"
13137 then CC="$CC -pthread"
13139 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13140 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13141 have_pthread_t=no
13142 cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h. */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 #include <pthread.h>
13150 main ()
13152 pthread_t x; x = *(pthread_t*)0;
13154 return 0;
13156 _ACEOF
13157 rm -f conftest.$ac_objext
13158 if { (ac_try="$ac_compile"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_compile") 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } && {
13171 test -z "$ac_c_werror_flag" ||
13172 test ! -s conftest.err
13173 } && test -s conftest.$ac_objext; then
13174 have_pthread_t=yes
13175 else
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13184 echo "${ECHO_T}$have_pthread_t" >&6; }
13185 if test "$have_pthread_t" = yes ; then
13186 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13187 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13188 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13189 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192 if test "$cross_compiling" = yes; then
13193 ac_cv_sizeof_pthread_t=4
13194 else
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 #include <stdio.h>
13202 #include <pthread.h>
13203 main()
13205 FILE *f=fopen("conftestval", "w");
13206 if (!f) exit(1);
13207 fprintf(f, "%d\n", sizeof(pthread_t));
13208 exit(0);
13210 _ACEOF
13211 rm -f conftest$ac_exeext
13212 if { (ac_try="$ac_link"
13213 case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216 esac
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_link") 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13222 { (case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_try") 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_cv_sizeof_pthread_t=`cat conftestval`
13232 else
13233 echo "$as_me: program exited with status $ac_status" >&5
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ( exit $ac_status )
13238 ac_cv_sizeof_pthread_t=0
13240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13247 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13248 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13250 cat >>confdefs.h <<_ACEOF
13251 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13252 _ACEOF
13255 CC="$ac_save_cc"
13257 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13258 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13259 # Check whether --enable-toolbox-glue was given.
13260 if test "${enable_toolbox_glue+set}" = set; then
13261 enableval=$enable_toolbox_glue;
13265 if test -z "$enable_toolbox_glue"
13266 then
13267 case $ac_sys_system/$ac_sys_release in
13268 Darwin/*)
13269 enable_toolbox_glue="yes";;
13271 enable_toolbox_glue="no";;
13272 esac
13274 case "$enable_toolbox_glue" in
13275 yes)
13276 extra_machdep_objs="Python/mactoolboxglue.o"
13277 extra_undefs="-u _PyMac_Error"
13279 cat >>confdefs.h <<\_ACEOF
13280 #define USE_TOOLBOX_OBJECT_GLUE 1
13281 _ACEOF
13285 extra_machdep_objs=""
13286 extra_undefs=""
13288 esac
13289 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13290 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13294 case $ac_sys_system/$ac_sys_release in
13295 Darwin/[01567]\..*)
13296 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13298 Darwin/*)
13299 OTHER_LIBTOOL_OPT=""
13301 esac
13304 case $ac_sys_system/$ac_sys_release in
13305 Darwin/[01567]\..*)
13306 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13307 if test "${enable_universalsdk}"; then
13309 else
13310 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13312 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13313 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13314 Darwin/*)
13315 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13316 if test ${gcc_version} '<' 4.0
13317 then
13318 LIBTOOL_CRUFT="-lcc_dynamic"
13319 else
13320 LIBTOOL_CRUFT=""
13322 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13323 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13324 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13325 esac
13327 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13328 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13329 if test "$enable_framework"
13330 then
13331 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13332 # -F. is needed to allow linking to the framework while
13333 # in the build location.
13335 cat >>confdefs.h <<\_ACEOF
13336 #define WITH_NEXT_FRAMEWORK 1
13337 _ACEOF
13339 { echo "$as_me:$LINENO: result: yes" >&5
13340 echo "${ECHO_T}yes" >&6; }
13341 else
13342 { echo "$as_me:$LINENO: result: no" >&5
13343 echo "${ECHO_T}no" >&6; }
13346 { echo "$as_me:$LINENO: checking for dyld" >&5
13347 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13348 case $ac_sys_system/$ac_sys_release in
13349 Darwin/*)
13351 cat >>confdefs.h <<\_ACEOF
13352 #define WITH_DYLD 1
13353 _ACEOF
13355 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13356 echo "${ECHO_T}always on for Darwin" >&6; }
13359 { echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6; }
13362 esac
13364 # Set info about shared libraries.
13370 # SO is the extension of shared libraries `(including the dot!)
13371 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13372 { echo "$as_me:$LINENO: checking SO" >&5
13373 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13374 if test -z "$SO"
13375 then
13376 case $ac_sys_system in
13377 hp*|HP*)
13378 case `uname -m` in
13379 ia64) SO=.so;;
13380 *) SO=.sl;;
13381 esac
13383 CYGWIN*) SO=.dll;;
13384 *) SO=.so;;
13385 esac
13386 else
13387 # this might also be a termcap variable, see #610332
13388 echo
13389 echo '====================================================================='
13390 echo '+ +'
13391 echo '+ WARNING: You have set SO in your environment. +'
13392 echo '+ Do you really mean to change the extension for shared libraries? +'
13393 echo '+ Continuing in 10 seconds to let you to ponder. +'
13394 echo '+ +'
13395 echo '====================================================================='
13396 sleep 10
13398 { echo "$as_me:$LINENO: result: $SO" >&5
13399 echo "${ECHO_T}$SO" >&6; }
13402 cat >>confdefs.h <<_ACEOF
13403 #define SHLIB_EXT "$SO"
13404 _ACEOF
13406 # LDSHARED is the ld *command* used to create shared library
13407 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13408 # (Shared libraries in this instance are shared modules to be loaded into
13409 # Python, as opposed to building Python itself as a shared library.)
13410 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13411 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13412 if test -z "$LDSHARED"
13413 then
13414 case $ac_sys_system/$ac_sys_release in
13415 AIX*)
13416 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13417 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13419 BeOS*)
13420 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13421 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13423 IRIX/5*) LDSHARED="ld -shared";;
13424 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13425 SunOS/5*)
13426 if test "$GCC" = "yes"
13427 then LDSHARED='$(CC) -shared'
13428 else LDSHARED='$(CC) -G';
13429 fi ;;
13430 hp*|HP*)
13431 if test "$GCC" = "yes"
13432 then LDSHARED='$(CC) -shared'
13433 else LDSHARED='ld -b';
13434 fi ;;
13435 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13436 Darwin/1.3*)
13437 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13438 if test "$enable_framework" ; then
13439 # Link against the framework. All externals should be defined.
13440 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13441 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13442 else
13443 # No framework. Ignore undefined symbols, assuming they come from Python
13444 LDSHARED="$LDSHARED -undefined suppress"
13445 fi ;;
13446 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13447 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13448 if test "$enable_framework" ; then
13449 # Link against the framework. All externals should be defined.
13450 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13451 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13452 else
13453 # No framework, use the Python app as bundle-loader
13454 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13455 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13456 fi ;;
13457 Darwin/*)
13458 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13459 # This allows an extension to be used in any Python
13461 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13462 then
13463 if test "${enable_universalsdk}"; then
13464 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13466 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13467 BLDSHARED="$LDSHARED"
13468 else
13469 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13470 if test "$enable_framework" ; then
13471 # Link against the framework. All externals should be defined.
13472 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13473 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13474 else
13475 # No framework, use the Python app as bundle-loader
13476 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13477 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13481 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13482 BSD/OS*/4*) LDSHARED="gcc -shared";;
13483 FreeBSD*)
13484 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13485 then
13486 LDSHARED="$CC -shared ${LDFLAGS}"
13487 else
13488 LDSHARED="ld -Bshareable ${LDFLAGS}"
13489 fi;;
13490 OpenBSD*)
13491 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13492 then
13493 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13494 else
13495 case `uname -r` in
13496 [01].* | 2.[0-7] | 2.[0-7].*)
13497 LDSHARED="ld -Bshareable ${LDFLAGS}"
13500 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13502 esac
13503 fi;;
13504 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13505 OpenUNIX*|UnixWare*)
13506 if test "$GCC" = "yes"
13507 then LDSHARED='$(CC) -shared'
13508 else LDSHARED='$(CC) -G'
13509 fi;;
13510 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13511 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13512 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13513 atheos*) LDSHARED="gcc -shared";;
13514 *) LDSHARED="ld";;
13515 esac
13517 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13518 echo "${ECHO_T}$LDSHARED" >&6; }
13519 BLDSHARED=${BLDSHARED-$LDSHARED}
13520 # CCSHARED are the C *flags* used to create objects to go into a shared
13521 # library (module) -- this is only needed for a few systems
13522 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13523 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13524 if test -z "$CCSHARED"
13525 then
13526 case $ac_sys_system/$ac_sys_release in
13527 SunOS*) if test "$GCC" = yes;
13528 then CCSHARED="-fPIC";
13529 elif test `uname -p` = sparc;
13530 then CCSHARED="-xcode=pic32";
13531 else CCSHARED="-Kpic";
13532 fi;;
13533 hp*|HP*) if test "$GCC" = yes;
13534 then CCSHARED="-fPIC";
13535 else CCSHARED="+z";
13536 fi;;
13537 Linux*|GNU*) CCSHARED="-fPIC";;
13538 BSD/OS*/4*) CCSHARED="-fpic";;
13539 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13540 OpenUNIX*|UnixWare*)
13541 if test "$GCC" = "yes"
13542 then CCSHARED="-fPIC"
13543 else CCSHARED="-KPIC"
13544 fi;;
13545 SCO_SV*)
13546 if test "$GCC" = "yes"
13547 then CCSHARED="-fPIC"
13548 else CCSHARED="-Kpic -belf"
13549 fi;;
13550 Monterey*) CCSHARED="-G";;
13551 IRIX*/6*) case $CC in
13552 *gcc*) CCSHARED="-shared";;
13553 *) CCSHARED="";;
13554 esac;;
13555 atheos*) CCSHARED="-fPIC";;
13556 esac
13558 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13559 echo "${ECHO_T}$CCSHARED" >&6; }
13560 # LINKFORSHARED are the flags passed to the $(CC) command that links
13561 # the python executable -- this is only needed for a few systems
13562 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13563 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13564 if test -z "$LINKFORSHARED"
13565 then
13566 case $ac_sys_system/$ac_sys_release in
13567 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13568 hp*|HP*)
13569 LINKFORSHARED="-Wl,-E -Wl,+s";;
13570 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13571 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13572 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13573 # -u libsys_s pulls in all symbols in libsys
13574 Darwin/*)
13575 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13576 # which is
13577 # not used by the core itself but which needs to be in the core so
13578 # that dynamically loaded extension modules have access to it.
13579 # -prebind is no longer used, because it actually seems to give a
13580 # slowdown in stead of a speedup, maybe due to the large number of
13581 # dynamic loads Python does.
13583 LINKFORSHARED="$extra_undefs"
13584 if test "$enable_framework"
13585 then
13586 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13588 LINKFORSHARED="$LINKFORSHARED";;
13589 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13590 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13591 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13592 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13593 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13594 then
13595 LINKFORSHARED="-Wl,--export-dynamic"
13596 fi;;
13597 SunOS/5*) case $CC in
13598 *gcc*)
13599 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13600 then
13601 LINKFORSHARED="-Xlinker --export-dynamic"
13602 fi;;
13603 esac;;
13604 CYGWIN*)
13605 if test $enable_shared = "no"
13606 then
13607 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13608 fi;;
13609 QNX*)
13610 # -Wl,-E causes the symbols to be added to the dynamic
13611 # symbol table so that they can be found when a module
13612 # is loaded. -N 2048K causes the stack size to be set
13613 # to 2048 kilobytes so that the stack doesn't overflow
13614 # when running test_compile.py.
13615 LINKFORSHARED='-Wl,-E -N 2048K';;
13616 esac
13618 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13619 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13623 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13624 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13625 if test ! "$LIBRARY" = "$LDLIBRARY"
13626 then
13627 case $ac_sys_system in
13628 CYGWIN*)
13629 # Cygwin needs CCSHARED when building extension DLLs
13630 # but not when building the interpreter DLL.
13631 CFLAGSFORSHARED='';;
13633 CFLAGSFORSHARED='$(CCSHARED)'
13634 esac
13636 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13637 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13639 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13640 # library (with --enable-shared).
13641 # For platforms on which shared libraries are not allowed to have unresolved
13642 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13643 # if it is not required, since it creates a dependency of the shared library
13644 # to LIBS. This, in turn, means that applications linking the shared libpython
13645 # don't need to link LIBS explicitly. The default should be only changed
13646 # on systems where this approach causes problems.
13648 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13649 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13650 case "$ac_sys_system" in
13652 SHLIBS='$(LIBS)';;
13653 esac
13654 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13655 echo "${ECHO_T}$SHLIBS" >&6; }
13658 # checks for libraries
13660 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13661 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13662 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 ac_check_lib_save_LIBS=$LIBS
13666 LIBS="-ldl $LIBS"
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 char dlopen ();
13682 main ()
13684 return dlopen ();
13686 return 0;
13688 _ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_link") 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && {
13703 test -z "$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13705 } && test -s conftest$ac_exeext &&
13706 $as_test_x conftest$ac_exeext; then
13707 ac_cv_lib_dl_dlopen=yes
13708 else
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 ac_cv_lib_dl_dlopen=no
13715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13716 conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13719 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13720 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13721 if test $ac_cv_lib_dl_dlopen = yes; then
13722 cat >>confdefs.h <<_ACEOF
13723 #define HAVE_LIBDL 1
13724 _ACEOF
13726 LIBS="-ldl $LIBS"
13729 # Dynamic linking for SunOS/Solaris and SYSV
13731 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13732 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13733 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736 ac_check_lib_save_LIBS=$LIBS
13737 LIBS="-ldld $LIBS"
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h. */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13745 /* Override any GCC internal prototype to avoid an error.
13746 Use char because int might match the return type of a GCC
13747 builtin and then its argument prototype would still apply. */
13748 #ifdef __cplusplus
13749 extern "C"
13750 #endif
13751 char shl_load ();
13753 main ()
13755 return shl_load ();
13757 return 0;
13759 _ACEOF
13760 rm -f conftest.$ac_objext conftest$ac_exeext
13761 if { (ac_try="$ac_link"
13762 case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13765 esac
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_link") 2>conftest.er1
13768 ac_status=$?
13769 grep -v '^ *+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } && {
13774 test -z "$ac_c_werror_flag" ||
13775 test ! -s conftest.err
13776 } && test -s conftest$ac_exeext &&
13777 $as_test_x conftest$ac_exeext; then
13778 ac_cv_lib_dld_shl_load=yes
13779 else
13780 echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13783 ac_cv_lib_dld_shl_load=no
13786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13787 conftest$ac_exeext conftest.$ac_ext
13788 LIBS=$ac_check_lib_save_LIBS
13790 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13791 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13792 if test $ac_cv_lib_dld_shl_load = yes; then
13793 cat >>confdefs.h <<_ACEOF
13794 #define HAVE_LIBDLD 1
13795 _ACEOF
13797 LIBS="-ldld $LIBS"
13800 # Dynamic linking for HP-UX
13802 # only check for sem_init if thread support is requested
13803 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13804 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13805 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13806 if test "${ac_cv_search_sem_init+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 ac_func_search_save_LIBS=$LIBS
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h. */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13817 /* Override any GCC internal prototype to avoid an error.
13818 Use char because int might match the return type of a GCC
13819 builtin and then its argument prototype would still apply. */
13820 #ifdef __cplusplus
13821 extern "C"
13822 #endif
13823 char sem_init ();
13825 main ()
13827 return sem_init ();
13829 return 0;
13831 _ACEOF
13832 for ac_lib in '' pthread rt posix4; do
13833 if test -z "$ac_lib"; then
13834 ac_res="none required"
13835 else
13836 ac_res=-l$ac_lib
13837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (ac_try="$ac_link"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_link") 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest$ac_exeext &&
13856 $as_test_x conftest$ac_exeext; then
13857 ac_cv_search_sem_init=$ac_res
13858 else
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13866 conftest$ac_exeext
13867 if test "${ac_cv_search_sem_init+set}" = set; then
13868 break
13870 done
13871 if test "${ac_cv_search_sem_init+set}" = set; then
13873 else
13874 ac_cv_search_sem_init=no
13876 rm conftest.$ac_ext
13877 LIBS=$ac_func_search_save_LIBS
13879 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13880 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13881 ac_res=$ac_cv_search_sem_init
13882 if test "$ac_res" != no; then
13883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13886 # 'Real Time' functions on Solaris
13887 # posix4 on Solaris 2.6
13888 # pthread (first!) on Linux
13891 # check if we need libintl for locale functions
13892 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13893 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13894 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 else
13897 ac_check_lib_save_LIBS=$LIBS
13898 LIBS="-lintl $LIBS"
13899 cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h. */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13906 /* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
13909 #ifdef __cplusplus
13910 extern "C"
13911 #endif
13912 char textdomain ();
13914 main ()
13916 return textdomain ();
13918 return 0;
13920 _ACEOF
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (ac_try="$ac_link"
13923 case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13926 esac
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_link") 2>conftest.er1
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } && {
13935 test -z "$ac_c_werror_flag" ||
13936 test ! -s conftest.err
13937 } && test -s conftest$ac_exeext &&
13938 $as_test_x conftest$ac_exeext; then
13939 ac_cv_lib_intl_textdomain=yes
13940 else
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944 ac_cv_lib_intl_textdomain=no
13947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13948 conftest$ac_exeext conftest.$ac_ext
13949 LIBS=$ac_check_lib_save_LIBS
13951 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13952 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13953 if test $ac_cv_lib_intl_textdomain = yes; then
13955 cat >>confdefs.h <<\_ACEOF
13956 #define WITH_LIBINTL 1
13957 _ACEOF
13962 # checks for system dependent C++ extensions support
13963 case "$ac_sys_system" in
13964 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13965 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 #include "/usr/lpp/xlC/include/load.h"
13974 main ()
13976 loadAndInit("", 0, "")
13978 return 0;
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (ac_try="$ac_link"
13983 case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13986 esac
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_link") 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } && {
13995 test -z "$ac_c_werror_flag" ||
13996 test ! -s conftest.err
13997 } && test -s conftest$ac_exeext &&
13998 $as_test_x conftest$ac_exeext; then
14000 cat >>confdefs.h <<\_ACEOF
14001 #define AIX_GENUINE_CPLUSPLUS 1
14002 _ACEOF
14004 { echo "$as_me:$LINENO: result: yes" >&5
14005 echo "${ECHO_T}yes" >&6; }
14006 else
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 { echo "$as_me:$LINENO: result: no" >&5
14011 echo "${ECHO_T}no" >&6; }
14014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14015 conftest$ac_exeext conftest.$ac_ext;;
14016 *) ;;
14017 esac
14019 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14020 # BeOS' sockets are stashed in libnet.
14021 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14022 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14023 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 else
14026 ac_check_lib_save_LIBS=$LIBS
14027 LIBS="-lnsl $LIBS"
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h. */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 char t_open ();
14043 main ()
14045 return t_open ();
14047 return 0;
14049 _ACEOF
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_link") 2>conftest.er1
14058 ac_status=$?
14059 grep -v '^ *+' conftest.er1 >conftest.err
14060 rm -f conftest.er1
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest$ac_exeext &&
14067 $as_test_x conftest$ac_exeext; then
14068 ac_cv_lib_nsl_t_open=yes
14069 else
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 ac_cv_lib_nsl_t_open=no
14076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14077 conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14080 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14081 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14082 if test $ac_cv_lib_nsl_t_open = yes; then
14083 LIBS="-lnsl $LIBS"
14085 # SVR4
14086 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14087 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14088 if test "${ac_cv_lib_socket_socket+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091 ac_check_lib_save_LIBS=$LIBS
14092 LIBS="-lsocket $LIBS $LIBS"
14093 cat >conftest.$ac_ext <<_ACEOF
14094 /* confdefs.h. */
14095 _ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14100 /* Override any GCC internal prototype to avoid an error.
14101 Use char because int might match the return type of a GCC
14102 builtin and then its argument prototype would still apply. */
14103 #ifdef __cplusplus
14104 extern "C"
14105 #endif
14106 char socket ();
14108 main ()
14110 return socket ();
14112 return 0;
14114 _ACEOF
14115 rm -f conftest.$ac_objext conftest$ac_exeext
14116 if { (ac_try="$ac_link"
14117 case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14120 esac
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_link") 2>conftest.er1
14123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } && {
14129 test -z "$ac_c_werror_flag" ||
14130 test ! -s conftest.err
14131 } && test -s conftest$ac_exeext &&
14132 $as_test_x conftest$ac_exeext; then
14133 ac_cv_lib_socket_socket=yes
14134 else
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14138 ac_cv_lib_socket_socket=no
14141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14145 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14146 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14147 if test $ac_cv_lib_socket_socket = yes; then
14148 LIBS="-lsocket $LIBS"
14150 # SVR4 sockets
14152 case "$ac_sys_system" in
14153 BeOS*)
14154 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14155 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14156 if test "${ac_cv_lib_net_socket+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159 ac_check_lib_save_LIBS=$LIBS
14160 LIBS="-lnet $LIBS $LIBS"
14161 cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h. */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14168 /* Override any GCC internal prototype to avoid an error.
14169 Use char because int might match the return type of a GCC
14170 builtin and then its argument prototype would still apply. */
14171 #ifdef __cplusplus
14172 extern "C"
14173 #endif
14174 char socket ();
14176 main ()
14178 return socket ();
14180 return 0;
14182 _ACEOF
14183 rm -f conftest.$ac_objext conftest$ac_exeext
14184 if { (ac_try="$ac_link"
14185 case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14188 esac
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_link") 2>conftest.er1
14191 ac_status=$?
14192 grep -v '^ *+' conftest.er1 >conftest.err
14193 rm -f conftest.er1
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } && {
14197 test -z "$ac_c_werror_flag" ||
14198 test ! -s conftest.err
14199 } && test -s conftest$ac_exeext &&
14200 $as_test_x conftest$ac_exeext; then
14201 ac_cv_lib_net_socket=yes
14202 else
14203 echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.$ac_ext >&5
14206 ac_cv_lib_net_socket=no
14209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14210 conftest$ac_exeext conftest.$ac_ext
14211 LIBS=$ac_check_lib_save_LIBS
14213 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14214 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14215 if test $ac_cv_lib_net_socket = yes; then
14216 LIBS="-lnet $LIBS"
14218 # BeOS
14220 esac
14222 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14223 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14225 # Check whether --with-libs was given.
14226 if test "${with_libs+set}" = set; then
14227 withval=$with_libs;
14228 { echo "$as_me:$LINENO: result: $withval" >&5
14229 echo "${ECHO_T}$withval" >&6; }
14230 LIBS="$withval $LIBS"
14232 else
14233 { echo "$as_me:$LINENO: result: no" >&5
14234 echo "${ECHO_T}no" >&6; }
14238 # Check for use of the system libffi library
14239 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14240 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14242 # Check whether --with-system_ffi was given.
14243 if test "${with_system_ffi+set}" = set; then
14244 withval=$with_system_ffi;
14248 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14249 echo "${ECHO_T}$with_system_ffi" >&6; }
14251 # Determine if signalmodule should be used.
14254 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14255 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14257 # Check whether --with-signal-module was given.
14258 if test "${with_signal_module+set}" = set; then
14259 withval=$with_signal_module;
14263 if test -z "$with_signal_module"
14264 then with_signal_module="yes"
14266 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14267 echo "${ECHO_T}$with_signal_module" >&6; }
14269 if test "${with_signal_module}" = "yes"; then
14270 USE_SIGNAL_MODULE=""
14271 SIGNAL_OBJS=""
14272 else
14273 USE_SIGNAL_MODULE="#"
14274 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14277 # This is used to generate Setup.config
14279 USE_THREAD_MODULE=""
14281 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14282 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14285 # Check whether --with-dec-threads was given.
14286 if test "${with_dec_threads+set}" = set; then
14287 withval=$with_dec_threads;
14288 { echo "$as_me:$LINENO: result: $withval" >&5
14289 echo "${ECHO_T}$withval" >&6; }
14290 LDLAST=-threads
14291 if test "${with_thread+set}" != set; then
14292 with_thread="$withval";
14294 else
14295 { echo "$as_me:$LINENO: result: no" >&5
14296 echo "${ECHO_T}no" >&6; }
14300 # Templates for things AC_DEFINEd more than once.
14301 # For a single AC_DEFINE, no template is needed.
14309 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14310 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14312 # Check whether --with-threads was given.
14313 if test "${with_threads+set}" = set; then
14314 withval=$with_threads;
14318 # --with-thread is deprecated, but check for it anyway
14320 # Check whether --with-thread was given.
14321 if test "${with_thread+set}" = set; then
14322 withval=$with_thread; with_threads=$with_thread
14326 if test -z "$with_threads"
14327 then with_threads="yes"
14329 { echo "$as_me:$LINENO: result: $with_threads" >&5
14330 echo "${ECHO_T}$with_threads" >&6; }
14333 if test "$with_threads" = "no"
14334 then
14335 USE_THREAD_MODULE="#"
14336 elif test "$ac_cv_pthread_is_default" = yes
14337 then
14338 cat >>confdefs.h <<\_ACEOF
14339 #define WITH_THREAD 1
14340 _ACEOF
14342 # Defining _REENTRANT on system with POSIX threads should not hurt.
14343 cat >>confdefs.h <<\_ACEOF
14344 #define _REENTRANT 1
14345 _ACEOF
14347 posix_threads=yes
14348 THREADOBJ="Python/thread.o"
14349 elif test "$ac_cv_kpthread" = "yes"
14350 then
14351 CC="$CC -Kpthread"
14352 if test "$ac_cv_cxx_thread" = "yes"; then
14353 CXX="$CXX -Kpthread"
14355 cat >>confdefs.h <<\_ACEOF
14356 #define WITH_THREAD 1
14357 _ACEOF
14359 posix_threads=yes
14360 THREADOBJ="Python/thread.o"
14361 elif test "$ac_cv_kthread" = "yes"
14362 then
14363 CC="$CC -Kthread"
14364 if test "$ac_cv_cxx_thread" = "yes"; then
14365 CXX="$CXX -Kthread"
14367 cat >>confdefs.h <<\_ACEOF
14368 #define WITH_THREAD 1
14369 _ACEOF
14371 posix_threads=yes
14372 THREADOBJ="Python/thread.o"
14373 elif test "$ac_cv_pthread" = "yes"
14374 then
14375 CC="$CC -pthread"
14376 if test "$ac_cv_cxx_thread" = "yes"; then
14377 CXX="$CXX -pthread"
14379 cat >>confdefs.h <<\_ACEOF
14380 #define WITH_THREAD 1
14381 _ACEOF
14383 posix_threads=yes
14384 THREADOBJ="Python/thread.o"
14385 else
14386 if test ! -z "$with_threads" -a -d "$with_threads"
14387 then LDFLAGS="$LDFLAGS -L$with_threads"
14389 if test ! -z "$withval" -a -d "$withval"
14390 then LDFLAGS="$LDFLAGS -L$withval"
14393 # According to the POSIX spec, a pthreads implementation must
14394 # define _POSIX_THREADS in unistd.h. Some apparently don't
14395 # (e.g. gnu pth with pthread emulation)
14396 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14397 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h. */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14405 #include <unistd.h>
14406 #ifdef _POSIX_THREADS
14408 #endif
14410 _ACEOF
14411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14412 $EGREP "yes" >/dev/null 2>&1; then
14413 unistd_defines_pthreads=yes
14414 else
14415 unistd_defines_pthreads=no
14417 rm -f conftest*
14419 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14420 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14422 cat >>confdefs.h <<\_ACEOF
14423 #define _REENTRANT 1
14424 _ACEOF
14426 if test "${ac_cv_header_cthreads_h+set}" = set; then
14427 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14428 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14429 if test "${ac_cv_header_cthreads_h+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14433 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14434 else
14435 # Is the header compilable?
14436 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14437 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14438 cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h. */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444 $ac_includes_default
14445 #include <cthreads.h>
14446 _ACEOF
14447 rm -f conftest.$ac_objext
14448 if { (ac_try="$ac_compile"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_compile") 2>conftest.er1
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } && {
14461 test -z "$ac_c_werror_flag" ||
14462 test ! -s conftest.err
14463 } && test -s conftest.$ac_objext; then
14464 ac_header_compiler=yes
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 ac_header_compiler=no
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14474 echo "${ECHO_T}$ac_header_compiler" >&6; }
14476 # Is the header present?
14477 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14478 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14479 cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h. */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 #include <cthreads.h>
14486 _ACEOF
14487 if { (ac_try="$ac_cpp conftest.$ac_ext"
14488 case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14494 ac_status=$?
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } >/dev/null && {
14500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14501 test ! -s conftest.err
14502 }; then
14503 ac_header_preproc=yes
14504 else
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14508 ac_header_preproc=no
14511 rm -f conftest.err conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14513 echo "${ECHO_T}$ac_header_preproc" >&6; }
14515 # So? What about this header?
14516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14517 yes:no: )
14518 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14519 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14521 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14522 ac_header_preproc=yes
14524 no:yes:* )
14525 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14526 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14528 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14530 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14532 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14534 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14536 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14537 ( cat <<\_ASBOX
14538 ## ------------------------------------------------ ##
14539 ## Report this to http://www.python.org/python-bugs ##
14540 ## ------------------------------------------------ ##
14541 _ASBOX
14542 ) | sed "s/^/$as_me: WARNING: /" >&2
14544 esac
14545 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14546 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14547 if test "${ac_cv_header_cthreads_h+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550 ac_cv_header_cthreads_h=$ac_header_preproc
14552 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14553 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14556 if test $ac_cv_header_cthreads_h = yes; then
14557 cat >>confdefs.h <<\_ACEOF
14558 #define WITH_THREAD 1
14559 _ACEOF
14561 cat >>confdefs.h <<\_ACEOF
14562 #define C_THREADS 1
14563 _ACEOF
14566 cat >>confdefs.h <<\_ACEOF
14567 #define HURD_C_THREADS 1
14568 _ACEOF
14570 LIBS="$LIBS -lthreads"
14571 THREADOBJ="Python/thread.o"
14572 else
14574 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14575 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14576 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14577 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14581 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14582 else
14583 # Is the header compilable?
14584 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14585 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h. */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 $ac_includes_default
14593 #include <mach/cthreads.h>
14594 _ACEOF
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_compile") 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } && {
14609 test -z "$ac_c_werror_flag" ||
14610 test ! -s conftest.err
14611 } && test -s conftest.$ac_objext; then
14612 ac_header_compiler=yes
14613 else
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 ac_header_compiler=no
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14622 echo "${ECHO_T}$ac_header_compiler" >&6; }
14624 # Is the header present?
14625 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14626 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14627 cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h. */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 #include <mach/cthreads.h>
14634 _ACEOF
14635 if { (ac_try="$ac_cpp conftest.$ac_ext"
14636 case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639 esac
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14642 ac_status=$?
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -f conftest.er1
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } >/dev/null && {
14648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14650 }; then
14651 ac_header_preproc=yes
14652 else
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14656 ac_header_preproc=no
14659 rm -f conftest.err conftest.$ac_ext
14660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14661 echo "${ECHO_T}$ac_header_preproc" >&6; }
14663 # So? What about this header?
14664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14665 yes:no: )
14666 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14667 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14669 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14670 ac_header_preproc=yes
14672 no:yes:* )
14673 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14674 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14676 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14678 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14680 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14682 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14684 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14685 ( cat <<\_ASBOX
14686 ## ------------------------------------------------ ##
14687 ## Report this to http://www.python.org/python-bugs ##
14688 ## ------------------------------------------------ ##
14689 _ASBOX
14690 ) | sed "s/^/$as_me: WARNING: /" >&2
14692 esac
14693 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14694 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14695 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14700 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14701 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14704 if test $ac_cv_header_mach_cthreads_h = yes; then
14705 cat >>confdefs.h <<\_ACEOF
14706 #define WITH_THREAD 1
14707 _ACEOF
14709 cat >>confdefs.h <<\_ACEOF
14710 #define C_THREADS 1
14711 _ACEOF
14714 cat >>confdefs.h <<\_ACEOF
14715 #define MACH_C_THREADS 1
14716 _ACEOF
14718 THREADOBJ="Python/thread.o"
14719 else
14721 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14722 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14724 # Check whether --with-pth was given.
14725 if test "${with_pth+set}" = set; then
14726 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14727 echo "${ECHO_T}$withval" >&6; }
14728 cat >>confdefs.h <<\_ACEOF
14729 #define WITH_THREAD 1
14730 _ACEOF
14733 cat >>confdefs.h <<\_ACEOF
14734 #define HAVE_PTH 1
14735 _ACEOF
14737 LIBS="-lpth $LIBS"
14738 THREADOBJ="Python/thread.o"
14739 else
14740 { echo "$as_me:$LINENO: result: no" >&5
14741 echo "${ECHO_T}no" >&6; }
14743 # Just looking for pthread_create in libpthread is not enough:
14744 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14745 # So we really have to include pthread.h, and then link.
14746 _libs=$LIBS
14747 LIBS="$LIBS -lpthread"
14748 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14749 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 #include <pthread.h>
14758 void * start_routine (void *arg) { exit (0); }
14760 main ()
14763 pthread_create (NULL, NULL, start_routine, NULL)
14765 return 0;
14767 _ACEOF
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (ac_try="$ac_link"
14770 case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14773 esac
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_link") 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest$ac_exeext &&
14785 $as_test_x conftest$ac_exeext; then
14787 { echo "$as_me:$LINENO: result: yes" >&5
14788 echo "${ECHO_T}yes" >&6; }
14789 cat >>confdefs.h <<\_ACEOF
14790 #define WITH_THREAD 1
14791 _ACEOF
14793 posix_threads=yes
14794 THREADOBJ="Python/thread.o"
14795 else
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14800 LIBS=$_libs
14801 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14802 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14803 if test "${ac_cv_func_pthread_detach+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 else
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h. */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14814 #define pthread_detach innocuous_pthread_detach
14816 /* System header to define __stub macros and hopefully few prototypes,
14817 which can conflict with char pthread_detach (); below.
14818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14819 <limits.h> exists even on freestanding compilers. */
14821 #ifdef __STDC__
14822 # include <limits.h>
14823 #else
14824 # include <assert.h>
14825 #endif
14827 #undef pthread_detach
14829 /* Override any GCC internal prototype to avoid an error.
14830 Use char because int might match the return type of a GCC
14831 builtin and then its argument prototype would still apply. */
14832 #ifdef __cplusplus
14833 extern "C"
14834 #endif
14835 char pthread_detach ();
14836 /* The GNU C library defines this for functions which it implements
14837 to always fail with ENOSYS. Some functions are actually named
14838 something starting with __ and the normal name is an alias. */
14839 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14840 choke me
14841 #endif
14844 main ()
14846 return pthread_detach ();
14848 return 0;
14850 _ACEOF
14851 rm -f conftest.$ac_objext conftest$ac_exeext
14852 if { (ac_try="$ac_link"
14853 case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14856 esac
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_link") 2>conftest.er1
14859 ac_status=$?
14860 grep -v '^ *+' conftest.er1 >conftest.err
14861 rm -f conftest.er1
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } && {
14865 test -z "$ac_c_werror_flag" ||
14866 test ! -s conftest.err
14867 } && test -s conftest$ac_exeext &&
14868 $as_test_x conftest$ac_exeext; then
14869 ac_cv_func_pthread_detach=yes
14870 else
14871 echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14874 ac_cv_func_pthread_detach=no
14877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14878 conftest$ac_exeext conftest.$ac_ext
14880 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14881 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14882 if test $ac_cv_func_pthread_detach = yes; then
14883 cat >>confdefs.h <<\_ACEOF
14884 #define WITH_THREAD 1
14885 _ACEOF
14887 posix_threads=yes
14888 THREADOBJ="Python/thread.o"
14889 else
14891 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14892 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14893 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14894 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14898 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14899 else
14900 # Is the header compilable?
14901 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14902 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h. */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 $ac_includes_default
14910 #include <atheos/threads.h>
14911 _ACEOF
14912 rm -f conftest.$ac_objext
14913 if { (ac_try="$ac_compile"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_compile") 2>conftest.er1
14920 ac_status=$?
14921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest.$ac_objext; then
14929 ac_header_compiler=yes
14930 else
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_header_compiler=no
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14939 echo "${ECHO_T}$ac_header_compiler" >&6; }
14941 # Is the header present?
14942 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14943 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14944 cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h. */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950 #include <atheos/threads.h>
14951 _ACEOF
14952 if { (ac_try="$ac_cpp conftest.$ac_ext"
14953 case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14956 esac
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14959 ac_status=$?
14960 grep -v '^ *+' conftest.er1 >conftest.err
14961 rm -f conftest.er1
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } >/dev/null && {
14965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14966 test ! -s conftest.err
14967 }; then
14968 ac_header_preproc=yes
14969 else
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 ac_header_preproc=no
14976 rm -f conftest.err conftest.$ac_ext
14977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978 echo "${ECHO_T}$ac_header_preproc" >&6; }
14980 # So? What about this header?
14981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982 yes:no: )
14983 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14984 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14986 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc=yes
14989 no:yes:* )
14990 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14991 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14993 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14995 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14997 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14999 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15001 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15002 ( cat <<\_ASBOX
15003 ## ------------------------------------------------ ##
15004 ## Report this to http://www.python.org/python-bugs ##
15005 ## ------------------------------------------------ ##
15006 _ASBOX
15007 ) | sed "s/^/$as_me: WARNING: /" >&2
15009 esac
15010 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15011 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15012 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015 ac_cv_header_atheos_threads_h=$ac_header_preproc
15017 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15018 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15021 if test $ac_cv_header_atheos_threads_h = yes; then
15022 cat >>confdefs.h <<\_ACEOF
15023 #define WITH_THREAD 1
15024 _ACEOF
15027 cat >>confdefs.h <<\_ACEOF
15028 #define ATHEOS_THREADS 1
15029 _ACEOF
15031 THREADOBJ="Python/thread.o"
15032 else
15034 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15035 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15036 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15037 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15041 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15042 else
15043 # Is the header compilable?
15044 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15045 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 $ac_includes_default
15053 #include <kernel/OS.h>
15054 _ACEOF
15055 rm -f conftest.$ac_objext
15056 if { (ac_try="$ac_compile"
15057 case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060 esac
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_compile") 2>conftest.er1
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } && {
15069 test -z "$ac_c_werror_flag" ||
15070 test ! -s conftest.err
15071 } && test -s conftest.$ac_objext; then
15072 ac_header_compiler=yes
15073 else
15074 echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.$ac_ext >&5
15077 ac_header_compiler=no
15080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15082 echo "${ECHO_T}$ac_header_compiler" >&6; }
15084 # Is the header present?
15085 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15086 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15087 cat >conftest.$ac_ext <<_ACEOF
15088 /* confdefs.h. */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15093 #include <kernel/OS.h>
15094 _ACEOF
15095 if { (ac_try="$ac_cpp conftest.$ac_ext"
15096 case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15099 esac
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15102 ac_status=$?
15103 grep -v '^ *+' conftest.er1 >conftest.err
15104 rm -f conftest.er1
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } >/dev/null && {
15108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15109 test ! -s conftest.err
15110 }; then
15111 ac_header_preproc=yes
15112 else
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ac_header_preproc=no
15119 rm -f conftest.err conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15121 echo "${ECHO_T}$ac_header_preproc" >&6; }
15123 # So? What about this header?
15124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15125 yes:no: )
15126 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15127 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15128 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15129 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15130 ac_header_preproc=yes
15132 no:yes:* )
15133 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15134 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15135 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15136 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15138 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15140 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15142 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15144 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15145 ( cat <<\_ASBOX
15146 ## ------------------------------------------------ ##
15147 ## Report this to http://www.python.org/python-bugs ##
15148 ## ------------------------------------------------ ##
15149 _ASBOX
15150 ) | sed "s/^/$as_me: WARNING: /" >&2
15152 esac
15153 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15154 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15155 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 else
15158 ac_cv_header_kernel_OS_h=$ac_header_preproc
15160 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15161 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15164 if test $ac_cv_header_kernel_OS_h = yes; then
15165 cat >>confdefs.h <<\_ACEOF
15166 #define WITH_THREAD 1
15167 _ACEOF
15170 cat >>confdefs.h <<\_ACEOF
15171 #define BEOS_THREADS 1
15172 _ACEOF
15174 THREADOBJ="Python/thread.o"
15175 else
15177 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15178 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15179 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 else
15182 ac_check_lib_save_LIBS=$LIBS
15183 LIBS="-lpthreads $LIBS"
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h. */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15191 /* Override any GCC internal prototype to avoid an error.
15192 Use char because int might match the return type of a GCC
15193 builtin and then its argument prototype would still apply. */
15194 #ifdef __cplusplus
15195 extern "C"
15196 #endif
15197 char pthread_create ();
15199 main ()
15201 return pthread_create ();
15203 return 0;
15205 _ACEOF
15206 rm -f conftest.$ac_objext conftest$ac_exeext
15207 if { (ac_try="$ac_link"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211 esac
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_link") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext &&
15223 $as_test_x conftest$ac_exeext; then
15224 ac_cv_lib_pthreads_pthread_create=yes
15225 else
15226 echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15229 ac_cv_lib_pthreads_pthread_create=no
15232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15233 conftest$ac_exeext conftest.$ac_ext
15234 LIBS=$ac_check_lib_save_LIBS
15236 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15237 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15238 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15239 cat >>confdefs.h <<\_ACEOF
15240 #define WITH_THREAD 1
15241 _ACEOF
15243 posix_threads=yes
15244 LIBS="$LIBS -lpthreads"
15245 THREADOBJ="Python/thread.o"
15246 else
15248 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15249 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15250 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253 ac_check_lib_save_LIBS=$LIBS
15254 LIBS="-lc_r $LIBS"
15255 cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h. */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15262 /* Override any GCC internal prototype to avoid an error.
15263 Use char because int might match the return type of a GCC
15264 builtin and then its argument prototype would still apply. */
15265 #ifdef __cplusplus
15266 extern "C"
15267 #endif
15268 char pthread_create ();
15270 main ()
15272 return pthread_create ();
15274 return 0;
15276 _ACEOF
15277 rm -f conftest.$ac_objext conftest$ac_exeext
15278 if { (ac_try="$ac_link"
15279 case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15282 esac
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_link") 2>conftest.er1
15285 ac_status=$?
15286 grep -v '^ *+' conftest.er1 >conftest.err
15287 rm -f conftest.er1
15288 cat conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } && {
15291 test -z "$ac_c_werror_flag" ||
15292 test ! -s conftest.err
15293 } && test -s conftest$ac_exeext &&
15294 $as_test_x conftest$ac_exeext; then
15295 ac_cv_lib_c_r_pthread_create=yes
15296 else
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_cv_lib_c_r_pthread_create=no
15303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15304 conftest$ac_exeext conftest.$ac_ext
15305 LIBS=$ac_check_lib_save_LIBS
15307 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15308 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15309 if test $ac_cv_lib_c_r_pthread_create = yes; then
15310 cat >>confdefs.h <<\_ACEOF
15311 #define WITH_THREAD 1
15312 _ACEOF
15314 posix_threads=yes
15315 LIBS="$LIBS -lc_r"
15316 THREADOBJ="Python/thread.o"
15317 else
15319 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15320 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15321 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15323 else
15324 ac_check_lib_save_LIBS=$LIBS
15325 LIBS="-lpthread $LIBS"
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h. */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15333 /* Override any GCC internal prototype to avoid an error.
15334 Use char because int might match the return type of a GCC
15335 builtin and then its argument prototype would still apply. */
15336 #ifdef __cplusplus
15337 extern "C"
15338 #endif
15339 char __pthread_create_system ();
15341 main ()
15343 return __pthread_create_system ();
15345 return 0;
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (ac_try="$ac_link"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_link") 2>conftest.er1
15356 ac_status=$?
15357 grep -v '^ *+' conftest.er1 >conftest.err
15358 rm -f conftest.er1
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest$ac_exeext &&
15365 $as_test_x conftest$ac_exeext; then
15366 ac_cv_lib_pthread___pthread_create_system=yes
15367 else
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_cv_lib_pthread___pthread_create_system=no
15374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15375 conftest$ac_exeext conftest.$ac_ext
15376 LIBS=$ac_check_lib_save_LIBS
15378 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15379 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15380 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15381 cat >>confdefs.h <<\_ACEOF
15382 #define WITH_THREAD 1
15383 _ACEOF
15385 posix_threads=yes
15386 LIBS="$LIBS -lpthread"
15387 THREADOBJ="Python/thread.o"
15388 else
15390 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15391 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15392 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395 ac_check_lib_save_LIBS=$LIBS
15396 LIBS="-lcma $LIBS"
15397 cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h. */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15404 /* Override any GCC internal prototype to avoid an error.
15405 Use char because int might match the return type of a GCC
15406 builtin and then its argument prototype would still apply. */
15407 #ifdef __cplusplus
15408 extern "C"
15409 #endif
15410 char pthread_create ();
15412 main ()
15414 return pthread_create ();
15416 return 0;
15418 _ACEOF
15419 rm -f conftest.$ac_objext conftest$ac_exeext
15420 if { (ac_try="$ac_link"
15421 case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_link") 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } && {
15433 test -z "$ac_c_werror_flag" ||
15434 test ! -s conftest.err
15435 } && test -s conftest$ac_exeext &&
15436 $as_test_x conftest$ac_exeext; then
15437 ac_cv_lib_cma_pthread_create=yes
15438 else
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15442 ac_cv_lib_cma_pthread_create=no
15445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15446 conftest$ac_exeext conftest.$ac_ext
15447 LIBS=$ac_check_lib_save_LIBS
15449 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15450 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15451 if test $ac_cv_lib_cma_pthread_create = yes; then
15452 cat >>confdefs.h <<\_ACEOF
15453 #define WITH_THREAD 1
15454 _ACEOF
15456 posix_threads=yes
15457 LIBS="$LIBS -lcma"
15458 THREADOBJ="Python/thread.o"
15459 else
15461 USE_THREAD_MODULE="#"
15481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15482 conftest$ac_exeext conftest.$ac_ext
15492 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15493 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15494 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497 ac_check_lib_save_LIBS=$LIBS
15498 LIBS="-lmpc $LIBS"
15499 cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h. */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15506 /* Override any GCC internal prototype to avoid an error.
15507 Use char because int might match the return type of a GCC
15508 builtin and then its argument prototype would still apply. */
15509 #ifdef __cplusplus
15510 extern "C"
15511 #endif
15512 char usconfig ();
15514 main ()
15516 return usconfig ();
15518 return 0;
15520 _ACEOF
15521 rm -f conftest.$ac_objext conftest$ac_exeext
15522 if { (ac_try="$ac_link"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_link") 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } && {
15535 test -z "$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 } && test -s conftest$ac_exeext &&
15538 $as_test_x conftest$ac_exeext; then
15539 ac_cv_lib_mpc_usconfig=yes
15540 else
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_cv_lib_mpc_usconfig=no
15547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15548 conftest$ac_exeext conftest.$ac_ext
15549 LIBS=$ac_check_lib_save_LIBS
15551 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15552 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15553 if test $ac_cv_lib_mpc_usconfig = yes; then
15554 cat >>confdefs.h <<\_ACEOF
15555 #define WITH_THREAD 1
15556 _ACEOF
15558 LIBS="$LIBS -lmpc"
15559 THREADOBJ="Python/thread.o"
15560 USE_THREAD_MODULE=""
15564 if test "$posix_threads" != "yes"; then
15565 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15566 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15567 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570 ac_check_lib_save_LIBS=$LIBS
15571 LIBS="-lthread $LIBS"
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h. */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15579 /* Override any GCC internal prototype to avoid an error.
15580 Use char because int might match the return type of a GCC
15581 builtin and then its argument prototype would still apply. */
15582 #ifdef __cplusplus
15583 extern "C"
15584 #endif
15585 char thr_create ();
15587 main ()
15589 return thr_create ();
15591 return 0;
15593 _ACEOF
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (ac_try="$ac_link"
15596 case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_link") 2>conftest.er1
15602 ac_status=$?
15603 grep -v '^ *+' conftest.er1 >conftest.err
15604 rm -f conftest.er1
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && {
15608 test -z "$ac_c_werror_flag" ||
15609 test ! -s conftest.err
15610 } && test -s conftest$ac_exeext &&
15611 $as_test_x conftest$ac_exeext; then
15612 ac_cv_lib_thread_thr_create=yes
15613 else
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_cv_lib_thread_thr_create=no
15620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15621 conftest$ac_exeext conftest.$ac_ext
15622 LIBS=$ac_check_lib_save_LIBS
15624 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15625 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15626 if test $ac_cv_lib_thread_thr_create = yes; then
15627 cat >>confdefs.h <<\_ACEOF
15628 #define WITH_THREAD 1
15629 _ACEOF
15631 LIBS="$LIBS -lthread"
15632 THREADOBJ="Python/thread.o"
15633 USE_THREAD_MODULE=""
15638 if test "$USE_THREAD_MODULE" != "#"
15639 then
15640 # If the above checks didn't disable threads, (at least) OSF1
15641 # needs this '-threads' argument during linking.
15642 case $ac_sys_system in
15643 OSF1) LDLAST=-threads;;
15644 esac
15648 if test "$posix_threads" = "yes"; then
15649 if test "$unistd_defines_pthreads" = "no"; then
15651 cat >>confdefs.h <<\_ACEOF
15652 #define _POSIX_THREADS 1
15653 _ACEOF
15657 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15658 case $ac_sys_system/$ac_sys_release in
15659 SunOS/5.6)
15660 cat >>confdefs.h <<\_ACEOF
15661 #define HAVE_PTHREAD_DESTRUCTOR 1
15662 _ACEOF
15665 SunOS/5.8)
15666 cat >>confdefs.h <<\_ACEOF
15667 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15668 _ACEOF
15671 AIX/5)
15672 cat >>confdefs.h <<\_ACEOF
15673 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15674 _ACEOF
15677 esac
15679 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15680 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15681 if test "${ac_cv_pthread_system_supported+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684 if test "$cross_compiling" = yes; then
15685 ac_cv_pthread_system_supported=no
15686 else
15687 cat >conftest.$ac_ext <<_ACEOF
15688 /* confdefs.h. */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15693 #include <pthread.h>
15694 void *foo(void *parm) {
15695 return NULL;
15697 main() {
15698 pthread_attr_t attr;
15699 pthread_t id;
15700 if (pthread_attr_init(&attr)) exit(-1);
15701 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15702 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15703 exit(0);
15705 _ACEOF
15706 rm -f conftest$ac_exeext
15707 if { (ac_try="$ac_link"
15708 case "(($ac_try" in
15709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15710 *) ac_try_echo=$ac_try;;
15711 esac
15712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15713 (eval "$ac_link") 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15717 { (case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720 esac
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_try") 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15726 ac_cv_pthread_system_supported=yes
15727 else
15728 echo "$as_me: program exited with status $ac_status" >&5
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 ( exit $ac_status )
15733 ac_cv_pthread_system_supported=no
15735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15742 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15743 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15744 if test "$ac_cv_pthread_system_supported" = "yes"; then
15746 cat >>confdefs.h <<\_ACEOF
15747 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15748 _ACEOF
15752 for ac_func in pthread_sigmask
15754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15759 else
15760 cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h. */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h. */
15766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15768 #define $ac_func innocuous_$ac_func
15770 /* System header to define __stub macros and hopefully few prototypes,
15771 which can conflict with char $ac_func (); below.
15772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15773 <limits.h> exists even on freestanding compilers. */
15775 #ifdef __STDC__
15776 # include <limits.h>
15777 #else
15778 # include <assert.h>
15779 #endif
15781 #undef $ac_func
15783 /* Override any GCC internal prototype to avoid an error.
15784 Use char because int might match the return type of a GCC
15785 builtin and then its argument prototype would still apply. */
15786 #ifdef __cplusplus
15787 extern "C"
15788 #endif
15789 char $ac_func ();
15790 /* The GNU C library defines this for functions which it implements
15791 to always fail with ENOSYS. Some functions are actually named
15792 something starting with __ and the normal name is an alias. */
15793 #if defined __stub_$ac_func || defined __stub___$ac_func
15794 choke me
15795 #endif
15798 main ()
15800 return $ac_func ();
15802 return 0;
15804 _ACEOF
15805 rm -f conftest.$ac_objext conftest$ac_exeext
15806 if { (ac_try="$ac_link"
15807 case "(($ac_try" in
15808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15810 esac
15811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_link") 2>conftest.er1
15813 ac_status=$?
15814 grep -v '^ *+' conftest.er1 >conftest.err
15815 rm -f conftest.er1
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } && {
15819 test -z "$ac_c_werror_flag" ||
15820 test ! -s conftest.err
15821 } && test -s conftest$ac_exeext &&
15822 $as_test_x conftest$ac_exeext; then
15823 eval "$as_ac_var=yes"
15824 else
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15828 eval "$as_ac_var=no"
15831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15832 conftest$ac_exeext conftest.$ac_ext
15834 ac_res=`eval echo '${'$as_ac_var'}'`
15835 { echo "$as_me:$LINENO: result: $ac_res" >&5
15836 echo "${ECHO_T}$ac_res" >&6; }
15837 if test `eval echo '${'$as_ac_var'}'` = yes; then
15838 cat >>confdefs.h <<_ACEOF
15839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15840 _ACEOF
15841 case $ac_sys_system in
15842 CYGWIN*)
15844 cat >>confdefs.h <<\_ACEOF
15845 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15846 _ACEOF
15849 esac
15851 done
15856 # Check for enable-ipv6
15859 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15860 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15861 # Check whether --enable-ipv6 was given.
15862 if test "${enable_ipv6+set}" = set; then
15863 enableval=$enable_ipv6; case "$enableval" in
15865 { echo "$as_me:$LINENO: result: no" >&5
15866 echo "${ECHO_T}no" >&6; }
15867 ipv6=no
15869 *) { echo "$as_me:$LINENO: result: yes" >&5
15870 echo "${ECHO_T}yes" >&6; }
15871 cat >>confdefs.h <<\_ACEOF
15872 #define ENABLE_IPV6 1
15873 _ACEOF
15875 ipv6=yes
15877 esac
15878 else
15880 if test "$cross_compiling" = yes; then
15881 { echo "$as_me:$LINENO: result: no" >&5
15882 echo "${ECHO_T}no" >&6; }
15883 ipv6=no
15885 else
15886 cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h. */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 /* AF_INET6 available check */
15893 #include <sys/types.h>
15894 #include <sys/socket.h>
15895 main()
15897 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15898 exit(1);
15899 else
15900 exit(0);
15903 _ACEOF
15904 rm -f conftest$ac_exeext
15905 if { (ac_try="$ac_link"
15906 case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15909 esac
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_link") 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15915 { (case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_try") 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 { echo "$as_me:$LINENO: result: yes" >&5
15925 echo "${ECHO_T}yes" >&6; }
15926 ipv6=yes
15927 else
15928 echo "$as_me: program exited with status $ac_status" >&5
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15932 ( exit $ac_status )
15933 { echo "$as_me:$LINENO: result: no" >&5
15934 echo "${ECHO_T}no" >&6; }
15935 ipv6=no
15937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15942 if test "$ipv6" = "yes"; then
15943 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15944 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15945 cat >conftest.$ac_ext <<_ACEOF
15946 /* confdefs.h. */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 #include <sys/types.h>
15952 #include <netinet/in.h>
15954 main ()
15956 struct sockaddr_in6 x;
15957 x.sin6_scope_id;
15959 return 0;
15961 _ACEOF
15962 rm -f conftest.$ac_objext
15963 if { (ac_try="$ac_compile"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15967 esac
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_compile") 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest.$ac_objext; then
15979 { echo "$as_me:$LINENO: result: yes" >&5
15980 echo "${ECHO_T}yes" >&6; }
15981 ipv6=yes
15982 else
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 { echo "$as_me:$LINENO: result: no" >&5
15987 echo "${ECHO_T}no" >&6; }
15988 ipv6=no
15991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 if test "$ipv6" = "yes"; then
15995 cat >>confdefs.h <<\_ACEOF
15996 #define ENABLE_IPV6 1
15997 _ACEOF
16004 ipv6type=unknown
16005 ipv6lib=none
16006 ipv6trylibc=no
16008 if test "$ipv6" = "yes"; then
16009 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16010 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16011 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16013 case $i in
16014 inria)
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. */
16022 #include <netinet/in.h>
16023 #ifdef IPV6_INRIA_VERSION
16025 #endif
16026 _ACEOF
16027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16028 $EGREP "yes" >/dev/null 2>&1; then
16029 ipv6type=$i
16031 rm -f conftest*
16034 kame)
16035 cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h. */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16042 #include <netinet/in.h>
16043 #ifdef __KAME__
16045 #endif
16046 _ACEOF
16047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16048 $EGREP "yes" >/dev/null 2>&1; then
16049 ipv6type=$i;
16050 ipv6lib=inet6
16051 ipv6libdir=/usr/local/v6/lib
16052 ipv6trylibc=yes
16054 rm -f conftest*
16057 linux-glibc)
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h. */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16065 #include <features.h>
16066 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16068 #endif
16069 _ACEOF
16070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16071 $EGREP "yes" >/dev/null 2>&1; then
16072 ipv6type=$i;
16073 ipv6trylibc=yes
16075 rm -f conftest*
16078 linux-inet6)
16079 if test -d /usr/inet6; then
16080 ipv6type=$i
16081 ipv6lib=inet6
16082 ipv6libdir=/usr/inet6/lib
16083 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16086 solaris)
16087 if test -f /etc/netconfig; then
16088 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16089 ipv6type=$i
16090 ipv6trylibc=yes
16094 toshiba)
16095 cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h. */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16102 #include <sys/param.h>
16103 #ifdef _TOSHIBA_INET6
16105 #endif
16106 _ACEOF
16107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16108 $EGREP "yes" >/dev/null 2>&1; then
16109 ipv6type=$i;
16110 ipv6lib=inet6;
16111 ipv6libdir=/usr/local/v6/lib
16113 rm -f conftest*
16116 v6d)
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. */
16124 #include </usr/local/v6/include/sys/v6config.h>
16125 #ifdef __V6D__
16127 #endif
16128 _ACEOF
16129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16130 $EGREP "yes" >/dev/null 2>&1; then
16131 ipv6type=$i;
16132 ipv6lib=v6;
16133 ipv6libdir=/usr/local/v6/lib;
16134 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16136 rm -f conftest*
16139 zeta)
16140 cat >conftest.$ac_ext <<_ACEOF
16141 /* confdefs.h. */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16147 #include <sys/param.h>
16148 #ifdef _ZETA_MINAMI_INET6
16150 #endif
16151 _ACEOF
16152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16153 $EGREP "yes" >/dev/null 2>&1; then
16154 ipv6type=$i;
16155 ipv6lib=inet6;
16156 ipv6libdir=/usr/local/v6/lib
16158 rm -f conftest*
16161 esac
16162 if test "$ipv6type" != "unknown"; then
16163 break
16165 done
16166 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16167 echo "${ECHO_T}$ipv6type" >&6; }
16170 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16171 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16172 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16173 echo "using lib$ipv6lib"
16174 else
16175 if test $ipv6trylibc = "yes"; then
16176 echo "using libc"
16177 else
16178 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16179 echo "You need to fetch lib$ipv6lib.a from appropriate"
16180 echo 'ipv6 kit and compile beforehand.'
16181 exit 1
16186 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16187 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h. */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 #include <Carbon/Carbon.h>
16196 main ()
16198 FSIORefNum fRef = 0
16200 return 0;
16202 _ACEOF
16203 rm -f conftest.$ac_objext
16204 if { (ac_try="$ac_compile"
16205 case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16208 esac
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_compile") 2>conftest.er1
16211 ac_status=$?
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } && {
16217 test -z "$ac_c_werror_flag" ||
16218 test ! -s conftest.err
16219 } && test -s conftest.$ac_objext; then
16221 cat >>confdefs.h <<\_ACEOF
16222 #define HAVE_OSX105_SDK 1
16223 _ACEOF
16225 { echo "$as_me:$LINENO: result: yes" >&5
16226 echo "${ECHO_T}yes" >&6; }
16227 else
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 { echo "$as_me:$LINENO: result: no" >&5
16232 echo "${ECHO_T}no" >&6; }
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 # Check for --with-doc-strings
16239 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16240 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16242 # Check whether --with-doc-strings was given.
16243 if test "${with_doc_strings+set}" = set; then
16244 withval=$with_doc_strings;
16248 if test -z "$with_doc_strings"
16249 then with_doc_strings="yes"
16251 if test "$with_doc_strings" != "no"
16252 then
16254 cat >>confdefs.h <<\_ACEOF
16255 #define WITH_DOC_STRINGS 1
16256 _ACEOF
16259 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16260 echo "${ECHO_T}$with_doc_strings" >&6; }
16262 # Check for Python-specific malloc support
16263 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16264 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16266 # Check whether --with-tsc was given.
16267 if test "${with_tsc+set}" = set; then
16268 withval=$with_tsc;
16269 if test "$withval" != no
16270 then
16272 cat >>confdefs.h <<\_ACEOF
16273 #define WITH_TSC 1
16274 _ACEOF
16276 { echo "$as_me:$LINENO: result: yes" >&5
16277 echo "${ECHO_T}yes" >&6; }
16278 else { echo "$as_me:$LINENO: result: no" >&5
16279 echo "${ECHO_T}no" >&6; }
16281 else
16282 { echo "$as_me:$LINENO: result: no" >&5
16283 echo "${ECHO_T}no" >&6; }
16287 # Check for Python-specific malloc support
16288 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16289 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16291 # Check whether --with-pymalloc was given.
16292 if test "${with_pymalloc+set}" = set; then
16293 withval=$with_pymalloc;
16297 if test -z "$with_pymalloc"
16298 then with_pymalloc="yes"
16300 if test "$with_pymalloc" != "no"
16301 then
16303 cat >>confdefs.h <<\_ACEOF
16304 #define WITH_PYMALLOC 1
16305 _ACEOF
16308 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16309 echo "${ECHO_T}$with_pymalloc" >&6; }
16311 # Check for --with-wctype-functions
16312 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16313 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16315 # Check whether --with-wctype-functions was given.
16316 if test "${with_wctype_functions+set}" = set; then
16317 withval=$with_wctype_functions;
16318 if test "$withval" != no
16319 then
16321 cat >>confdefs.h <<\_ACEOF
16322 #define WANT_WCTYPE_FUNCTIONS 1
16323 _ACEOF
16325 { echo "$as_me:$LINENO: result: yes" >&5
16326 echo "${ECHO_T}yes" >&6; }
16327 else { echo "$as_me:$LINENO: result: no" >&5
16328 echo "${ECHO_T}no" >&6; }
16330 else
16331 { echo "$as_me:$LINENO: result: no" >&5
16332 echo "${ECHO_T}no" >&6; }
16336 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16338 DLINCLDIR=.
16340 # the dlopen() function means we might want to use dynload_shlib.o. some
16341 # platforms, such as AIX, have dlopen(), but don't want to use it.
16343 for ac_func in dlopen
16345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 else
16351 cat >conftest.$ac_ext <<_ACEOF
16352 /* confdefs.h. */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16359 #define $ac_func innocuous_$ac_func
16361 /* System header to define __stub macros and hopefully few prototypes,
16362 which can conflict with char $ac_func (); below.
16363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16364 <limits.h> exists even on freestanding compilers. */
16366 #ifdef __STDC__
16367 # include <limits.h>
16368 #else
16369 # include <assert.h>
16370 #endif
16372 #undef $ac_func
16374 /* Override any GCC internal prototype to avoid an error.
16375 Use char because int might match the return type of a GCC
16376 builtin and then its argument prototype would still apply. */
16377 #ifdef __cplusplus
16378 extern "C"
16379 #endif
16380 char $ac_func ();
16381 /* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384 #if defined __stub_$ac_func || defined __stub___$ac_func
16385 choke me
16386 #endif
16389 main ()
16391 return $ac_func ();
16393 return 0;
16395 _ACEOF
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (ac_try="$ac_link"
16398 case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_link") 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } && {
16410 test -z "$ac_c_werror_flag" ||
16411 test ! -s conftest.err
16412 } && test -s conftest$ac_exeext &&
16413 $as_test_x conftest$ac_exeext; then
16414 eval "$as_ac_var=yes"
16415 else
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16419 eval "$as_ac_var=no"
16422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16423 conftest$ac_exeext conftest.$ac_ext
16425 ac_res=`eval echo '${'$as_ac_var'}'`
16426 { echo "$as_me:$LINENO: result: $ac_res" >&5
16427 echo "${ECHO_T}$ac_res" >&6; }
16428 if test `eval echo '${'$as_ac_var'}'` = yes; then
16429 cat >>confdefs.h <<_ACEOF
16430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16431 _ACEOF
16434 done
16437 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16438 # loading of modules.
16440 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16441 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16442 if test -z "$DYNLOADFILE"
16443 then
16444 case $ac_sys_system/$ac_sys_release in
16445 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16446 if test "$ac_cv_func_dlopen" = yes
16447 then DYNLOADFILE="dynload_shlib.o"
16448 else DYNLOADFILE="dynload_aix.o"
16451 BeOS*) DYNLOADFILE="dynload_beos.o";;
16452 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16453 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16454 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16455 atheos*) DYNLOADFILE="dynload_atheos.o";;
16457 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16458 # out any dynamic loading
16459 if test "$ac_cv_func_dlopen" = yes
16460 then DYNLOADFILE="dynload_shlib.o"
16461 else DYNLOADFILE="dynload_stub.o"
16464 esac
16466 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16467 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16468 if test "$DYNLOADFILE" != "dynload_stub.o"
16469 then
16471 cat >>confdefs.h <<\_ACEOF
16472 #define HAVE_DYNAMIC_LOADING 1
16473 _ACEOF
16477 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16480 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16481 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16482 if test -z "$MACHDEP_OBJS"
16483 then
16484 MACHDEP_OBJS=$extra_machdep_objs
16485 else
16486 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16488 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16489 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16491 # checks for library functions
16577 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16578 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16579 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16580 getpriority getpwent getspnam getspent getsid getwd \
16581 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16582 mremap nice pathconf pause plock poll pthread_init \
16583 putenv readlink realpath \
16584 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16585 setgid \
16586 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16587 sigaction siginterrupt sigrelse strftime \
16588 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16589 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16596 else
16597 cat >conftest.$ac_ext <<_ACEOF
16598 /* confdefs.h. */
16599 _ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16605 #define $ac_func innocuous_$ac_func
16607 /* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char $ac_func (); below.
16609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16610 <limits.h> exists even on freestanding compilers. */
16612 #ifdef __STDC__
16613 # include <limits.h>
16614 #else
16615 # include <assert.h>
16616 #endif
16618 #undef $ac_func
16620 /* Override any GCC internal prototype to avoid an error.
16621 Use char because int might match the return type of a GCC
16622 builtin and then its argument prototype would still apply. */
16623 #ifdef __cplusplus
16624 extern "C"
16625 #endif
16626 char $ac_func ();
16627 /* The GNU C library defines this for functions which it implements
16628 to always fail with ENOSYS. Some functions are actually named
16629 something starting with __ and the normal name is an alias. */
16630 #if defined __stub_$ac_func || defined __stub___$ac_func
16631 choke me
16632 #endif
16635 main ()
16637 return $ac_func ();
16639 return 0;
16641 _ACEOF
16642 rm -f conftest.$ac_objext conftest$ac_exeext
16643 if { (ac_try="$ac_link"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_link") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest$ac_exeext &&
16659 $as_test_x conftest$ac_exeext; then
16660 eval "$as_ac_var=yes"
16661 else
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 eval "$as_ac_var=no"
16668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16669 conftest$ac_exeext conftest.$ac_ext
16671 ac_res=`eval echo '${'$as_ac_var'}'`
16672 { echo "$as_me:$LINENO: result: $ac_res" >&5
16673 echo "${ECHO_T}$ac_res" >&6; }
16674 if test `eval echo '${'$as_ac_var'}'` = yes; then
16675 cat >>confdefs.h <<_ACEOF
16676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16677 _ACEOF
16680 done
16683 # For some functions, having a definition is not sufficient, since
16684 # we want to take their address.
16685 { echo "$as_me:$LINENO: checking for chroot" >&5
16686 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16687 cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h. */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 #include <unistd.h>
16695 main ()
16697 void *x=chroot
16699 return 0;
16701 _ACEOF
16702 rm -f conftest.$ac_objext
16703 if { (ac_try="$ac_compile"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_compile") 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } && {
16716 test -z "$ac_c_werror_flag" ||
16717 test ! -s conftest.err
16718 } && test -s conftest.$ac_objext; then
16720 cat >>confdefs.h <<\_ACEOF
16721 #define HAVE_CHROOT 1
16722 _ACEOF
16724 { echo "$as_me:$LINENO: result: yes" >&5
16725 echo "${ECHO_T}yes" >&6; }
16726 else
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 { echo "$as_me:$LINENO: result: no" >&5
16731 echo "${ECHO_T}no" >&6; }
16735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 { echo "$as_me:$LINENO: checking for link" >&5
16737 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h. */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 #include <unistd.h>
16746 main ()
16748 void *x=link
16750 return 0;
16752 _ACEOF
16753 rm -f conftest.$ac_objext
16754 if { (ac_try="$ac_compile"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_compile") 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } && {
16767 test -z "$ac_c_werror_flag" ||
16768 test ! -s conftest.err
16769 } && test -s conftest.$ac_objext; then
16771 cat >>confdefs.h <<\_ACEOF
16772 #define HAVE_LINK 1
16773 _ACEOF
16775 { echo "$as_me:$LINENO: result: yes" >&5
16776 echo "${ECHO_T}yes" >&6; }
16777 else
16778 echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16781 { echo "$as_me:$LINENO: result: no" >&5
16782 echo "${ECHO_T}no" >&6; }
16786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787 { echo "$as_me:$LINENO: checking for symlink" >&5
16788 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16789 cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h. */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 #include <unistd.h>
16797 main ()
16799 void *x=symlink
16801 return 0;
16803 _ACEOF
16804 rm -f conftest.$ac_objext
16805 if { (ac_try="$ac_compile"
16806 case "(($ac_try" in
16807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808 *) ac_try_echo=$ac_try;;
16809 esac
16810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811 (eval "$ac_compile") 2>conftest.er1
16812 ac_status=$?
16813 grep -v '^ *+' conftest.er1 >conftest.err
16814 rm -f conftest.er1
16815 cat conftest.err >&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } && {
16818 test -z "$ac_c_werror_flag" ||
16819 test ! -s conftest.err
16820 } && test -s conftest.$ac_objext; then
16822 cat >>confdefs.h <<\_ACEOF
16823 #define HAVE_SYMLINK 1
16824 _ACEOF
16826 { echo "$as_me:$LINENO: result: yes" >&5
16827 echo "${ECHO_T}yes" >&6; }
16828 else
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16832 { echo "$as_me:$LINENO: result: no" >&5
16833 echo "${ECHO_T}no" >&6; }
16837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838 { echo "$as_me:$LINENO: checking for fchdir" >&5
16839 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16840 cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h. */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h. */
16846 #include <unistd.h>
16848 main ()
16850 void *x=fchdir
16852 return 0;
16854 _ACEOF
16855 rm -f conftest.$ac_objext
16856 if { (ac_try="$ac_compile"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_compile") 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest.$ac_objext; then
16873 cat >>confdefs.h <<\_ACEOF
16874 #define HAVE_FCHDIR 1
16875 _ACEOF
16877 { echo "$as_me:$LINENO: result: yes" >&5
16878 echo "${ECHO_T}yes" >&6; }
16879 else
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 { echo "$as_me:$LINENO: result: no" >&5
16884 echo "${ECHO_T}no" >&6; }
16888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889 { echo "$as_me:$LINENO: checking for fsync" >&5
16890 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16891 cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h. */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 #include <unistd.h>
16899 main ()
16901 void *x=fsync
16903 return 0;
16905 _ACEOF
16906 rm -f conftest.$ac_objext
16907 if { (ac_try="$ac_compile"
16908 case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16911 esac
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_compile") 2>conftest.er1
16914 ac_status=$?
16915 grep -v '^ *+' conftest.er1 >conftest.err
16916 rm -f conftest.er1
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } && {
16920 test -z "$ac_c_werror_flag" ||
16921 test ! -s conftest.err
16922 } && test -s conftest.$ac_objext; then
16924 cat >>confdefs.h <<\_ACEOF
16925 #define HAVE_FSYNC 1
16926 _ACEOF
16928 { echo "$as_me:$LINENO: result: yes" >&5
16929 echo "${ECHO_T}yes" >&6; }
16930 else
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 { echo "$as_me:$LINENO: result: no" >&5
16935 echo "${ECHO_T}no" >&6; }
16939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16941 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16942 cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h. */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 #include <unistd.h>
16950 main ()
16952 void *x=fdatasync
16954 return 0;
16956 _ACEOF
16957 rm -f conftest.$ac_objext
16958 if { (ac_try="$ac_compile"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_compile") 2>conftest.er1
16965 ac_status=$?
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } && {
16971 test -z "$ac_c_werror_flag" ||
16972 test ! -s conftest.err
16973 } && test -s conftest.$ac_objext; then
16975 cat >>confdefs.h <<\_ACEOF
16976 #define HAVE_FDATASYNC 1
16977 _ACEOF
16979 { echo "$as_me:$LINENO: result: yes" >&5
16980 echo "${ECHO_T}yes" >&6; }
16981 else
16982 echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 { echo "$as_me:$LINENO: result: no" >&5
16986 echo "${ECHO_T}no" >&6; }
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 { echo "$as_me:$LINENO: checking for epoll" >&5
16992 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 #include <sys/epoll.h>
17001 main ()
17003 void *x=epoll_create
17005 return 0;
17007 _ACEOF
17008 rm -f conftest.$ac_objext
17009 if { (ac_try="$ac_compile"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_compile") 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } && {
17022 test -z "$ac_c_werror_flag" ||
17023 test ! -s conftest.err
17024 } && test -s conftest.$ac_objext; then
17026 cat >>confdefs.h <<\_ACEOF
17027 #define HAVE_EPOLL 1
17028 _ACEOF
17030 { echo "$as_me:$LINENO: result: yes" >&5
17031 echo "${ECHO_T}yes" >&6; }
17032 else
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17036 { echo "$as_me:$LINENO: result: no" >&5
17037 echo "${ECHO_T}no" >&6; }
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042 { echo "$as_me:$LINENO: checking for kqueue" >&5
17043 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17044 cat >conftest.$ac_ext <<_ACEOF
17045 /* confdefs.h. */
17046 _ACEOF
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17051 #include <sys/types.h>
17052 #include <sys/event.h>
17055 main ()
17057 int x=kqueue()
17059 return 0;
17061 _ACEOF
17062 rm -f conftest.$ac_objext
17063 if { (ac_try="$ac_compile"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_compile") 2>conftest.er1
17070 ac_status=$?
17071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } && {
17076 test -z "$ac_c_werror_flag" ||
17077 test ! -s conftest.err
17078 } && test -s conftest.$ac_objext; then
17080 cat >>confdefs.h <<\_ACEOF
17081 #define HAVE_KQUEUE 1
17082 _ACEOF
17084 { echo "$as_me:$LINENO: result: yes" >&5
17085 echo "${ECHO_T}yes" >&6; }
17086 else
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17090 { echo "$as_me:$LINENO: result: no" >&5
17091 echo "${ECHO_T}no" >&6; }
17095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17096 # On some systems (eg. FreeBSD 5), we would find a definition of the
17097 # functions ctermid_r, setgroups in the library, but no prototype
17098 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17099 # address to avoid compiler warnings and potential miscompilations
17100 # because of the missing prototypes.
17102 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17103 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17104 cat >conftest.$ac_ext <<_ACEOF
17105 /* confdefs.h. */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17111 #include "confdefs.h"
17112 #include <stdio.h>
17115 main ()
17117 void* p = ctermid_r
17119 return 0;
17121 _ACEOF
17122 rm -f conftest.$ac_objext
17123 if { (ac_try="$ac_compile"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_compile") 2>conftest.er1
17130 ac_status=$?
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest.$ac_objext; then
17140 cat >>confdefs.h <<\_ACEOF
17141 #define HAVE_CTERMID_R 1
17142 _ACEOF
17144 { echo "$as_me:$LINENO: result: yes" >&5
17145 echo "${ECHO_T}yes" >&6; }
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 { echo "$as_me:$LINENO: result: no" >&5
17151 echo "${ECHO_T}no" >&6; }
17155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17157 { echo "$as_me:$LINENO: checking for flock" >&5
17158 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17159 cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h. */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17166 #include "confdefs.h"
17167 #include <sys/file.h>
17170 main ()
17172 void* p = flock
17174 return 0;
17176 _ACEOF
17177 rm -f conftest.$ac_objext
17178 if { (ac_try="$ac_compile"
17179 case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17182 esac
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_compile") 2>conftest.er1
17185 ac_status=$?
17186 grep -v '^ *+' conftest.er1 >conftest.err
17187 rm -f conftest.er1
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } && {
17191 test -z "$ac_c_werror_flag" ||
17192 test ! -s conftest.err
17193 } && test -s conftest.$ac_objext; then
17195 cat >>confdefs.h <<\_ACEOF
17196 #define HAVE_FLOCK 1
17197 _ACEOF
17199 { echo "$as_me:$LINENO: result: yes" >&5
17200 echo "${ECHO_T}yes" >&6; }
17201 else
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 { echo "$as_me:$LINENO: result: no" >&5
17206 echo "${ECHO_T}no" >&6; }
17210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17212 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17213 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17214 cat >conftest.$ac_ext <<_ACEOF
17215 /* confdefs.h. */
17216 _ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h. */
17221 #include "confdefs.h"
17222 #include <unistd.h>
17225 main ()
17227 void* p = getpagesize
17229 return 0;
17231 _ACEOF
17232 rm -f conftest.$ac_objext
17233 if { (ac_try="$ac_compile"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_compile") 2>conftest.er1
17240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } && {
17246 test -z "$ac_c_werror_flag" ||
17247 test ! -s conftest.err
17248 } && test -s conftest.$ac_objext; then
17250 cat >>confdefs.h <<\_ACEOF
17251 #define HAVE_GETPAGESIZE 1
17252 _ACEOF
17254 { echo "$as_me:$LINENO: result: yes" >&5
17255 echo "${ECHO_T}yes" >&6; }
17256 else
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17260 { echo "$as_me:$LINENO: result: no" >&5
17261 echo "${ECHO_T}no" >&6; }
17265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17267 for ac_prog in true
17269 # Extract the first word of "$ac_prog", so it can be a program name with args.
17270 set dummy $ac_prog; ac_word=$2
17271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17273 if test "${ac_cv_prog_TRUE+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276 if test -n "$TRUE"; then
17277 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17278 else
17279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280 for as_dir in $PATH
17282 IFS=$as_save_IFS
17283 test -z "$as_dir" && as_dir=.
17284 for ac_exec_ext in '' $ac_executable_extensions; do
17285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17286 ac_cv_prog_TRUE="$ac_prog"
17287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17288 break 2
17290 done
17291 done
17292 IFS=$as_save_IFS
17296 TRUE=$ac_cv_prog_TRUE
17297 if test -n "$TRUE"; then
17298 { echo "$as_me:$LINENO: result: $TRUE" >&5
17299 echo "${ECHO_T}$TRUE" >&6; }
17300 else
17301 { echo "$as_me:$LINENO: result: no" >&5
17302 echo "${ECHO_T}no" >&6; }
17306 test -n "$TRUE" && break
17307 done
17308 test -n "$TRUE" || TRUE="/bin/true"
17311 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17312 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17313 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 else
17316 ac_check_lib_save_LIBS=$LIBS
17317 LIBS="-lc $LIBS"
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h. */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17328 #ifdef __cplusplus
17329 extern "C"
17330 #endif
17331 char inet_aton ();
17333 main ()
17335 return inet_aton ();
17337 return 0;
17339 _ACEOF
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17345 esac
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>conftest.er1
17348 ac_status=$?
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } && {
17354 test -z "$ac_c_werror_flag" ||
17355 test ! -s conftest.err
17356 } && test -s conftest$ac_exeext &&
17357 $as_test_x conftest$ac_exeext; then
17358 ac_cv_lib_c_inet_aton=yes
17359 else
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ac_cv_lib_c_inet_aton=no
17366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17367 conftest$ac_exeext conftest.$ac_ext
17368 LIBS=$ac_check_lib_save_LIBS
17370 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17371 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17372 if test $ac_cv_lib_c_inet_aton = yes; then
17373 $ac_cv_prog_TRUE
17374 else
17376 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17377 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17378 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381 ac_check_lib_save_LIBS=$LIBS
17382 LIBS="-lresolv $LIBS"
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h. */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17390 /* Override any GCC internal prototype to avoid an error.
17391 Use char because int might match the return type of a GCC
17392 builtin and then its argument prototype would still apply. */
17393 #ifdef __cplusplus
17394 extern "C"
17395 #endif
17396 char inet_aton ();
17398 main ()
17400 return inet_aton ();
17402 return 0;
17404 _ACEOF
17405 rm -f conftest.$ac_objext conftest$ac_exeext
17406 if { (ac_try="$ac_link"
17407 case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17410 esac
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_link") 2>conftest.er1
17413 ac_status=$?
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -f conftest.er1
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } && {
17419 test -z "$ac_c_werror_flag" ||
17420 test ! -s conftest.err
17421 } && test -s conftest$ac_exeext &&
17422 $as_test_x conftest$ac_exeext; then
17423 ac_cv_lib_resolv_inet_aton=yes
17424 else
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 ac_cv_lib_resolv_inet_aton=no
17431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17432 conftest$ac_exeext conftest.$ac_ext
17433 LIBS=$ac_check_lib_save_LIBS
17435 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17436 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17437 if test $ac_cv_lib_resolv_inet_aton = yes; then
17438 cat >>confdefs.h <<_ACEOF
17439 #define HAVE_LIBRESOLV 1
17440 _ACEOF
17442 LIBS="-lresolv $LIBS"
17450 # On Tru64, chflags seems to be present, but calling it will
17451 # exit Python
17452 { echo "$as_me:$LINENO: checking for chflags" >&5
17453 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17454 if test "$cross_compiling" = yes; then
17455 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17456 See \`config.log' for more details." >&5
17457 echo "$as_me: error: cannot run test program while cross compiling
17458 See \`config.log' for more details." >&2;}
17459 { (exit 1); exit 1; }; }
17460 else
17461 cat >conftest.$ac_ext <<_ACEOF
17462 /* confdefs.h. */
17463 _ACEOF
17464 cat confdefs.h >>conftest.$ac_ext
17465 cat >>conftest.$ac_ext <<_ACEOF
17466 /* end confdefs.h. */
17468 #include <sys/stat.h>
17469 #include <unistd.h>
17470 int main(int argc, char*argv[])
17472 if(chflags(argv[0], 0) != 0)
17473 return 1;
17474 return 0;
17477 _ACEOF
17478 rm -f conftest$ac_exeext
17479 if { (ac_try="$ac_link"
17480 case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17483 esac
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_link") 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17499 cat >>confdefs.h <<\_ACEOF
17500 #define HAVE_CHFLAGS 1
17501 _ACEOF
17503 { echo "$as_me:$LINENO: result: yes" >&5
17504 echo "${ECHO_T}yes" >&6; }
17505 else
17506 echo "$as_me: program exited with status $ac_status" >&5
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 ( exit $ac_status )
17511 { echo "$as_me:$LINENO: result: no" >&5
17512 echo "${ECHO_T}no" >&6; }
17515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17520 { echo "$as_me:$LINENO: checking for lchflags" >&5
17521 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17522 if test "$cross_compiling" = yes; then
17523 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17524 See \`config.log' for more details." >&5
17525 echo "$as_me: error: cannot run test program while cross compiling
17526 See \`config.log' for more details." >&2;}
17527 { (exit 1); exit 1; }; }
17528 else
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17536 #include <sys/stat.h>
17537 #include <unistd.h>
17538 int main(int argc, char*argv[])
17540 if(lchflags(argv[0], 0) != 0)
17541 return 1;
17542 return 0;
17545 _ACEOF
17546 rm -f conftest$ac_exeext
17547 if { (ac_try="$ac_link"
17548 case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_link") 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560 esac
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17567 cat >>confdefs.h <<\_ACEOF
17568 #define HAVE_LCHFLAGS 1
17569 _ACEOF
17571 { echo "$as_me:$LINENO: result: yes" >&5
17572 echo "${ECHO_T}yes" >&6; }
17573 else
17574 echo "$as_me: program exited with status $ac_status" >&5
17575 echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17578 ( exit $ac_status )
17579 { echo "$as_me:$LINENO: result: no" >&5
17580 echo "${ECHO_T}no" >&6; }
17583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17588 case $ac_sys_system/$ac_sys_release in
17589 Darwin/*)
17590 _CUR_CFLAGS="${CFLAGS}"
17591 _CUR_LDFLAGS="${LDFLAGS}"
17592 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17593 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17595 esac
17597 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17598 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17599 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602 ac_check_lib_save_LIBS=$LIBS
17603 LIBS="-lz $LIBS"
17604 cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h. */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17611 /* Override any GCC internal prototype to avoid an error.
17612 Use char because int might match the return type of a GCC
17613 builtin and then its argument prototype would still apply. */
17614 #ifdef __cplusplus
17615 extern "C"
17616 #endif
17617 char inflateCopy ();
17619 main ()
17621 return inflateCopy ();
17623 return 0;
17625 _ACEOF
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (ac_try="$ac_link"
17628 case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_link") 2>conftest.er1
17634 ac_status=$?
17635 grep -v '^ *+' conftest.er1 >conftest.err
17636 rm -f conftest.er1
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && {
17640 test -z "$ac_c_werror_flag" ||
17641 test ! -s conftest.err
17642 } && test -s conftest$ac_exeext &&
17643 $as_test_x conftest$ac_exeext; then
17644 ac_cv_lib_z_inflateCopy=yes
17645 else
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 ac_cv_lib_z_inflateCopy=no
17652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17653 conftest$ac_exeext conftest.$ac_ext
17654 LIBS=$ac_check_lib_save_LIBS
17656 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17657 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17658 if test $ac_cv_lib_z_inflateCopy = yes; then
17660 cat >>confdefs.h <<\_ACEOF
17661 #define HAVE_ZLIB_COPY 1
17662 _ACEOF
17667 case $ac_sys_system/$ac_sys_release in
17668 Darwin/*)
17669 CFLAGS="${_CUR_CFLAGS}"
17670 LDFLAGS="${_CUR_LDFLAGS}"
17672 esac
17674 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17675 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17676 cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h. */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17683 #include "confdefs.h"
17684 #include <netdb.h>
17687 main ()
17689 void* p = hstrerror; hstrerror(0)
17691 return 0;
17693 _ACEOF
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (ac_try="$ac_link"
17696 case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17699 esac
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_link") 2>conftest.er1
17702 ac_status=$?
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } && {
17708 test -z "$ac_c_werror_flag" ||
17709 test ! -s conftest.err
17710 } && test -s conftest$ac_exeext &&
17711 $as_test_x conftest$ac_exeext; then
17713 cat >>confdefs.h <<\_ACEOF
17714 #define HAVE_HSTRERROR 1
17715 _ACEOF
17717 { echo "$as_me:$LINENO: result: yes" >&5
17718 echo "${ECHO_T}yes" >&6; }
17719 else
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17723 { echo "$as_me:$LINENO: result: no" >&5
17724 echo "${ECHO_T}no" >&6; }
17728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17729 conftest$ac_exeext conftest.$ac_ext
17731 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17732 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17733 cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h. */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17740 #include "confdefs.h"
17741 #include <sys/types.h>
17742 #include <sys/socket.h>
17743 #include <netinet/in.h>
17744 #include <arpa/inet.h>
17747 main ()
17749 void* p = inet_aton;inet_aton(0,0)
17751 return 0;
17753 _ACEOF
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (ac_try="$ac_link"
17756 case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_link") 2>conftest.er1
17762 ac_status=$?
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } && {
17768 test -z "$ac_c_werror_flag" ||
17769 test ! -s conftest.err
17770 } && test -s conftest$ac_exeext &&
17771 $as_test_x conftest$ac_exeext; then
17773 cat >>confdefs.h <<\_ACEOF
17774 #define HAVE_INET_ATON 1
17775 _ACEOF
17777 { echo "$as_me:$LINENO: result: yes" >&5
17778 echo "${ECHO_T}yes" >&6; }
17779 else
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17783 { echo "$as_me:$LINENO: result: no" >&5
17784 echo "${ECHO_T}no" >&6; }
17788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17789 conftest$ac_exeext conftest.$ac_ext
17791 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17792 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17793 cat >conftest.$ac_ext <<_ACEOF
17794 /* confdefs.h. */
17795 _ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h. */
17800 #include "confdefs.h"
17801 #include <sys/types.h>
17802 #include <sys/socket.h>
17803 #include <netinet/in.h>
17804 #include <arpa/inet.h>
17807 main ()
17809 void* p = inet_pton
17811 return 0;
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (ac_try="$ac_compile"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_compile") 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } && {
17828 test -z "$ac_c_werror_flag" ||
17829 test ! -s conftest.err
17830 } && test -s conftest.$ac_objext; then
17832 cat >>confdefs.h <<\_ACEOF
17833 #define HAVE_INET_PTON 1
17834 _ACEOF
17836 { echo "$as_me:$LINENO: result: yes" >&5
17837 echo "${ECHO_T}yes" >&6; }
17838 else
17839 echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17842 { echo "$as_me:$LINENO: result: no" >&5
17843 echo "${ECHO_T}no" >&6; }
17847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17849 # On some systems, setgroups is in unistd.h, on others, in grp.h
17850 { echo "$as_me:$LINENO: checking for setgroups" >&5
17851 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17852 cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h. */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17859 #include "confdefs.h"
17860 #include <unistd.h>
17861 #ifdef HAVE_GRP_H
17862 #include <grp.h>
17863 #endif
17866 main ()
17868 void* p = setgroups
17870 return 0;
17872 _ACEOF
17873 rm -f conftest.$ac_objext
17874 if { (ac_try="$ac_compile"
17875 case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_compile") 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && {
17887 test -z "$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17889 } && test -s conftest.$ac_objext; then
17891 cat >>confdefs.h <<\_ACEOF
17892 #define HAVE_SETGROUPS 1
17893 _ACEOF
17895 { echo "$as_me:$LINENO: result: yes" >&5
17896 echo "${ECHO_T}yes" >&6; }
17897 else
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 { echo "$as_me:$LINENO: result: no" >&5
17902 echo "${ECHO_T}no" >&6; }
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17908 # check for openpty and forkpty
17911 for ac_func in openpty
17913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17927 #define $ac_func innocuous_$ac_func
17929 /* System header to define __stub macros and hopefully few prototypes,
17930 which can conflict with char $ac_func (); below.
17931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17932 <limits.h> exists even on freestanding compilers. */
17934 #ifdef __STDC__
17935 # include <limits.h>
17936 #else
17937 # include <assert.h>
17938 #endif
17940 #undef $ac_func
17942 /* Override any GCC internal prototype to avoid an error.
17943 Use char because int might match the return type of a GCC
17944 builtin and then its argument prototype would still apply. */
17945 #ifdef __cplusplus
17946 extern "C"
17947 #endif
17948 char $ac_func ();
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined __stub_$ac_func || defined __stub___$ac_func
17953 choke me
17954 #endif
17957 main ()
17959 return $ac_func ();
17961 return 0;
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17969 esac
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_link") 2>conftest.er1
17972 ac_status=$?
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } && {
17978 test -z "$ac_c_werror_flag" ||
17979 test ! -s conftest.err
17980 } && test -s conftest$ac_exeext &&
17981 $as_test_x conftest$ac_exeext; then
17982 eval "$as_ac_var=yes"
17983 else
17984 echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17987 eval "$as_ac_var=no"
17990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17991 conftest$ac_exeext conftest.$ac_ext
17993 ac_res=`eval echo '${'$as_ac_var'}'`
17994 { echo "$as_me:$LINENO: result: $ac_res" >&5
17995 echo "${ECHO_T}$ac_res" >&6; }
17996 if test `eval echo '${'$as_ac_var'}'` = yes; then
17997 cat >>confdefs.h <<_ACEOF
17998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17999 _ACEOF
18001 else
18002 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18003 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18004 if test "${ac_cv_lib_util_openpty+set}" = set; then
18005 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 else
18007 ac_check_lib_save_LIBS=$LIBS
18008 LIBS="-lutil $LIBS"
18009 cat >conftest.$ac_ext <<_ACEOF
18010 /* confdefs.h. */
18011 _ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h. */
18016 /* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18019 #ifdef __cplusplus
18020 extern "C"
18021 #endif
18022 char openpty ();
18024 main ()
18026 return openpty ();
18028 return 0;
18030 _ACEOF
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (ac_try="$ac_link"
18033 case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_link") 2>conftest.er1
18039 ac_status=$?
18040 grep -v '^ *+' conftest.er1 >conftest.err
18041 rm -f conftest.er1
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } && {
18045 test -z "$ac_c_werror_flag" ||
18046 test ! -s conftest.err
18047 } && test -s conftest$ac_exeext &&
18048 $as_test_x conftest$ac_exeext; then
18049 ac_cv_lib_util_openpty=yes
18050 else
18051 echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 ac_cv_lib_util_openpty=no
18057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18058 conftest$ac_exeext conftest.$ac_ext
18059 LIBS=$ac_check_lib_save_LIBS
18061 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18062 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18063 if test $ac_cv_lib_util_openpty = yes; then
18064 cat >>confdefs.h <<\_ACEOF
18065 #define HAVE_OPENPTY 1
18066 _ACEOF
18067 LIBS="$LIBS -lutil"
18068 else
18069 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18070 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18071 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18073 else
18074 ac_check_lib_save_LIBS=$LIBS
18075 LIBS="-lbsd $LIBS"
18076 cat >conftest.$ac_ext <<_ACEOF
18077 /* confdefs.h. */
18078 _ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18083 /* Override any GCC internal prototype to avoid an error.
18084 Use char because int might match the return type of a GCC
18085 builtin and then its argument prototype would still apply. */
18086 #ifdef __cplusplus
18087 extern "C"
18088 #endif
18089 char openpty ();
18091 main ()
18093 return openpty ();
18095 return 0;
18097 _ACEOF
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103 esac
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_link") 2>conftest.er1
18106 ac_status=$?
18107 grep -v '^ *+' conftest.er1 >conftest.err
18108 rm -f conftest.er1
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } && {
18112 test -z "$ac_c_werror_flag" ||
18113 test ! -s conftest.err
18114 } && test -s conftest$ac_exeext &&
18115 $as_test_x conftest$ac_exeext; then
18116 ac_cv_lib_bsd_openpty=yes
18117 else
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ac_cv_lib_bsd_openpty=no
18124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18125 conftest$ac_exeext conftest.$ac_ext
18126 LIBS=$ac_check_lib_save_LIBS
18128 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18129 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18130 if test $ac_cv_lib_bsd_openpty = yes; then
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE_OPENPTY 1
18133 _ACEOF
18134 LIBS="$LIBS -lbsd"
18142 done
18145 for ac_func in forkpty
18147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153 cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h. */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161 #define $ac_func innocuous_$ac_func
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18168 #ifdef __STDC__
18169 # include <limits.h>
18170 #else
18171 # include <assert.h>
18172 #endif
18174 #undef $ac_func
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18179 #ifdef __cplusplus
18180 extern "C"
18181 #endif
18182 char $ac_func ();
18183 /* The GNU C library defines this for functions which it implements
18184 to always fail with ENOSYS. Some functions are actually named
18185 something starting with __ and the normal name is an alias. */
18186 #if defined __stub_$ac_func || defined __stub___$ac_func
18187 choke me
18188 #endif
18191 main ()
18193 return $ac_func ();
18195 return 0;
18197 _ACEOF
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (ac_try="$ac_link"
18200 case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203 esac
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_link") 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } && {
18212 test -z "$ac_c_werror_flag" ||
18213 test ! -s conftest.err
18214 } && test -s conftest$ac_exeext &&
18215 $as_test_x conftest$ac_exeext; then
18216 eval "$as_ac_var=yes"
18217 else
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 eval "$as_ac_var=no"
18224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18225 conftest$ac_exeext conftest.$ac_ext
18227 ac_res=`eval echo '${'$as_ac_var'}'`
18228 { echo "$as_me:$LINENO: result: $ac_res" >&5
18229 echo "${ECHO_T}$ac_res" >&6; }
18230 if test `eval echo '${'$as_ac_var'}'` = yes; then
18231 cat >>confdefs.h <<_ACEOF
18232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18233 _ACEOF
18235 else
18236 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18237 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18238 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 else
18241 ac_check_lib_save_LIBS=$LIBS
18242 LIBS="-lutil $LIBS"
18243 cat >conftest.$ac_ext <<_ACEOF
18244 /* confdefs.h. */
18245 _ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18250 /* Override any GCC internal prototype to avoid an error.
18251 Use char because int might match the return type of a GCC
18252 builtin and then its argument prototype would still apply. */
18253 #ifdef __cplusplus
18254 extern "C"
18255 #endif
18256 char forkpty ();
18258 main ()
18260 return forkpty ();
18262 return 0;
18264 _ACEOF
18265 rm -f conftest.$ac_objext conftest$ac_exeext
18266 if { (ac_try="$ac_link"
18267 case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_link") 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } && {
18279 test -z "$ac_c_werror_flag" ||
18280 test ! -s conftest.err
18281 } && test -s conftest$ac_exeext &&
18282 $as_test_x conftest$ac_exeext; then
18283 ac_cv_lib_util_forkpty=yes
18284 else
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_cv_lib_util_forkpty=no
18291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18292 conftest$ac_exeext conftest.$ac_ext
18293 LIBS=$ac_check_lib_save_LIBS
18295 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18296 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18297 if test $ac_cv_lib_util_forkpty = yes; then
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_FORKPTY 1
18300 _ACEOF
18301 LIBS="$LIBS -lutil"
18302 else
18303 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18304 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18305 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 else
18308 ac_check_lib_save_LIBS=$LIBS
18309 LIBS="-lbsd $LIBS"
18310 cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h. */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18320 #ifdef __cplusplus
18321 extern "C"
18322 #endif
18323 char forkpty ();
18325 main ()
18327 return forkpty ();
18329 return 0;
18331 _ACEOF
18332 rm -f conftest.$ac_objext conftest$ac_exeext
18333 if { (ac_try="$ac_link"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337 esac
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_link") 2>conftest.er1
18340 ac_status=$?
18341 grep -v '^ *+' conftest.er1 >conftest.err
18342 rm -f conftest.er1
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } && {
18346 test -z "$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18348 } && test -s conftest$ac_exeext &&
18349 $as_test_x conftest$ac_exeext; then
18350 ac_cv_lib_bsd_forkpty=yes
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_cv_lib_bsd_forkpty=no
18358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18359 conftest$ac_exeext conftest.$ac_ext
18360 LIBS=$ac_check_lib_save_LIBS
18362 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18363 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18364 if test $ac_cv_lib_bsd_forkpty = yes; then
18365 cat >>confdefs.h <<\_ACEOF
18366 #define HAVE_FORKPTY 1
18367 _ACEOF
18368 LIBS="$LIBS -lbsd"
18376 done
18379 # Stuff for expat.
18381 for ac_func in memmove
18383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389 cat >conftest.$ac_ext <<_ACEOF
18390 /* confdefs.h. */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18397 #define $ac_func innocuous_$ac_func
18399 /* System header to define __stub macros and hopefully few prototypes,
18400 which can conflict with char $ac_func (); below.
18401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18402 <limits.h> exists even on freestanding compilers. */
18404 #ifdef __STDC__
18405 # include <limits.h>
18406 #else
18407 # include <assert.h>
18408 #endif
18410 #undef $ac_func
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18415 #ifdef __cplusplus
18416 extern "C"
18417 #endif
18418 char $ac_func ();
18419 /* The GNU C library defines this for functions which it implements
18420 to always fail with ENOSYS. Some functions are actually named
18421 something starting with __ and the normal name is an alias. */
18422 #if defined __stub_$ac_func || defined __stub___$ac_func
18423 choke me
18424 #endif
18427 main ()
18429 return $ac_func ();
18431 return 0;
18433 _ACEOF
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18439 esac
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_link") 2>conftest.er1
18442 ac_status=$?
18443 grep -v '^ *+' conftest.er1 >conftest.err
18444 rm -f conftest.er1
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest$ac_exeext &&
18451 $as_test_x conftest$ac_exeext; then
18452 eval "$as_ac_var=yes"
18453 else
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18457 eval "$as_ac_var=no"
18460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18461 conftest$ac_exeext conftest.$ac_ext
18463 ac_res=`eval echo '${'$as_ac_var'}'`
18464 { echo "$as_me:$LINENO: result: $ac_res" >&5
18465 echo "${ECHO_T}$ac_res" >&6; }
18466 if test `eval echo '${'$as_ac_var'}'` = yes; then
18467 cat >>confdefs.h <<_ACEOF
18468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18469 _ACEOF
18472 done
18475 # check for long file support functions
18482 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 else
18490 cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h. */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18498 #define $ac_func innocuous_$ac_func
18500 /* System header to define __stub macros and hopefully few prototypes,
18501 which can conflict with char $ac_func (); below.
18502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18503 <limits.h> exists even on freestanding compilers. */
18505 #ifdef __STDC__
18506 # include <limits.h>
18507 #else
18508 # include <assert.h>
18509 #endif
18511 #undef $ac_func
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18516 #ifdef __cplusplus
18517 extern "C"
18518 #endif
18519 char $ac_func ();
18520 /* The GNU C library defines this for functions which it implements
18521 to always fail with ENOSYS. Some functions are actually named
18522 something starting with __ and the normal name is an alias. */
18523 #if defined __stub_$ac_func || defined __stub___$ac_func
18524 choke me
18525 #endif
18528 main ()
18530 return $ac_func ();
18532 return 0;
18534 _ACEOF
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_link") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && {
18549 test -z "$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 } && test -s conftest$ac_exeext &&
18552 $as_test_x conftest$ac_exeext; then
18553 eval "$as_ac_var=yes"
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 eval "$as_ac_var=no"
18561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18562 conftest$ac_exeext conftest.$ac_ext
18564 ac_res=`eval echo '${'$as_ac_var'}'`
18565 { echo "$as_me:$LINENO: result: $ac_res" >&5
18566 echo "${ECHO_T}$ac_res" >&6; }
18567 if test `eval echo '${'$as_ac_var'}'` = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18570 _ACEOF
18573 done
18579 for ac_func in dup2 getcwd strdup
18581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h. */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18595 #define $ac_func innocuous_$ac_func
18597 /* System header to define __stub macros and hopefully few prototypes,
18598 which can conflict with char $ac_func (); below.
18599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18600 <limits.h> exists even on freestanding compilers. */
18602 #ifdef __STDC__
18603 # include <limits.h>
18604 #else
18605 # include <assert.h>
18606 #endif
18608 #undef $ac_func
18610 /* Override any GCC internal prototype to avoid an error.
18611 Use char because int might match the return type of a GCC
18612 builtin and then its argument prototype would still apply. */
18613 #ifdef __cplusplus
18614 extern "C"
18615 #endif
18616 char $ac_func ();
18617 /* The GNU C library defines this for functions which it implements
18618 to always fail with ENOSYS. Some functions are actually named
18619 something starting with __ and the normal name is an alias. */
18620 #if defined __stub_$ac_func || defined __stub___$ac_func
18621 choke me
18622 #endif
18625 main ()
18627 return $ac_func ();
18629 return 0;
18631 _ACEOF
18632 rm -f conftest.$ac_objext conftest$ac_exeext
18633 if { (ac_try="$ac_link"
18634 case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_link") 2>conftest.er1
18640 ac_status=$?
18641 grep -v '^ *+' conftest.er1 >conftest.err
18642 rm -f conftest.er1
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } && {
18646 test -z "$ac_c_werror_flag" ||
18647 test ! -s conftest.err
18648 } && test -s conftest$ac_exeext &&
18649 $as_test_x conftest$ac_exeext; then
18650 eval "$as_ac_var=yes"
18651 else
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18655 eval "$as_ac_var=no"
18658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18659 conftest$ac_exeext conftest.$ac_ext
18661 ac_res=`eval echo '${'$as_ac_var'}'`
18662 { echo "$as_me:$LINENO: result: $ac_res" >&5
18663 echo "${ECHO_T}$ac_res" >&6; }
18664 if test `eval echo '${'$as_ac_var'}'` = yes; then
18665 cat >>confdefs.h <<_ACEOF
18666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18667 _ACEOF
18669 else
18670 case " $LIBOBJS " in
18671 *" $ac_func.$ac_objext "* ) ;;
18672 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18674 esac
18677 done
18681 for ac_func in getpgrp
18683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18687 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 else
18689 cat >conftest.$ac_ext <<_ACEOF
18690 /* confdefs.h. */
18691 _ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18697 #define $ac_func innocuous_$ac_func
18699 /* System header to define __stub macros and hopefully few prototypes,
18700 which can conflict with char $ac_func (); below.
18701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18702 <limits.h> exists even on freestanding compilers. */
18704 #ifdef __STDC__
18705 # include <limits.h>
18706 #else
18707 # include <assert.h>
18708 #endif
18710 #undef $ac_func
18712 /* Override any GCC internal prototype to avoid an error.
18713 Use char because int might match the return type of a GCC
18714 builtin and then its argument prototype would still apply. */
18715 #ifdef __cplusplus
18716 extern "C"
18717 #endif
18718 char $ac_func ();
18719 /* The GNU C library defines this for functions which it implements
18720 to always fail with ENOSYS. Some functions are actually named
18721 something starting with __ and the normal name is an alias. */
18722 #if defined __stub_$ac_func || defined __stub___$ac_func
18723 choke me
18724 #endif
18727 main ()
18729 return $ac_func ();
18731 return 0;
18733 _ACEOF
18734 rm -f conftest.$ac_objext conftest$ac_exeext
18735 if { (ac_try="$ac_link"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_link") 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } && {
18748 test -z "$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest$ac_exeext &&
18751 $as_test_x conftest$ac_exeext; then
18752 eval "$as_ac_var=yes"
18753 else
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18757 eval "$as_ac_var=no"
18760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18761 conftest$ac_exeext conftest.$ac_ext
18763 ac_res=`eval echo '${'$as_ac_var'}'`
18764 { echo "$as_me:$LINENO: result: $ac_res" >&5
18765 echo "${ECHO_T}$ac_res" >&6; }
18766 if test `eval echo '${'$as_ac_var'}'` = yes; then
18767 cat >>confdefs.h <<_ACEOF
18768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18769 _ACEOF
18770 cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h. */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 #include <unistd.h>
18778 main ()
18780 getpgrp(0);
18782 return 0;
18784 _ACEOF
18785 rm -f conftest.$ac_objext
18786 if { (ac_try="$ac_compile"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_compile") 2>conftest.er1
18793 ac_status=$?
18794 grep -v '^ *+' conftest.er1 >conftest.err
18795 rm -f conftest.er1
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest.$ac_objext; then
18803 cat >>confdefs.h <<\_ACEOF
18804 #define GETPGRP_HAVE_ARG 1
18805 _ACEOF
18808 else
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18818 done
18821 for ac_func in setpgrp
18823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 else
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h. */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18837 #define $ac_func innocuous_$ac_func
18839 /* System header to define __stub macros and hopefully few prototypes,
18840 which can conflict with char $ac_func (); below.
18841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18842 <limits.h> exists even on freestanding compilers. */
18844 #ifdef __STDC__
18845 # include <limits.h>
18846 #else
18847 # include <assert.h>
18848 #endif
18850 #undef $ac_func
18852 /* Override any GCC internal prototype to avoid an error.
18853 Use char because int might match the return type of a GCC
18854 builtin and then its argument prototype would still apply. */
18855 #ifdef __cplusplus
18856 extern "C"
18857 #endif
18858 char $ac_func ();
18859 /* The GNU C library defines this for functions which it implements
18860 to always fail with ENOSYS. Some functions are actually named
18861 something starting with __ and the normal name is an alias. */
18862 #if defined __stub_$ac_func || defined __stub___$ac_func
18863 choke me
18864 #endif
18867 main ()
18869 return $ac_func ();
18871 return 0;
18873 _ACEOF
18874 rm -f conftest.$ac_objext conftest$ac_exeext
18875 if { (ac_try="$ac_link"
18876 case "(($ac_try" in
18877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878 *) ac_try_echo=$ac_try;;
18879 esac
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881 (eval "$ac_link") 2>conftest.er1
18882 ac_status=$?
18883 grep -v '^ *+' conftest.er1 >conftest.err
18884 rm -f conftest.er1
18885 cat conftest.err >&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } && {
18888 test -z "$ac_c_werror_flag" ||
18889 test ! -s conftest.err
18890 } && test -s conftest$ac_exeext &&
18891 $as_test_x conftest$ac_exeext; then
18892 eval "$as_ac_var=yes"
18893 else
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18897 eval "$as_ac_var=no"
18900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18901 conftest$ac_exeext conftest.$ac_ext
18903 ac_res=`eval echo '${'$as_ac_var'}'`
18904 { echo "$as_me:$LINENO: result: $ac_res" >&5
18905 echo "${ECHO_T}$ac_res" >&6; }
18906 if test `eval echo '${'$as_ac_var'}'` = yes; then
18907 cat >>confdefs.h <<_ACEOF
18908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18909 _ACEOF
18910 cat >conftest.$ac_ext <<_ACEOF
18911 /* confdefs.h. */
18912 _ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18916 #include <unistd.h>
18918 main ()
18920 setpgrp(0,0);
18922 return 0;
18924 _ACEOF
18925 rm -f conftest.$ac_objext
18926 if { (ac_try="$ac_compile"
18927 case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18930 esac
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_compile") 2>conftest.er1
18933 ac_status=$?
18934 grep -v '^ *+' conftest.er1 >conftest.err
18935 rm -f conftest.er1
18936 cat conftest.err >&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } && {
18939 test -z "$ac_c_werror_flag" ||
18940 test ! -s conftest.err
18941 } && test -s conftest.$ac_objext; then
18943 cat >>confdefs.h <<\_ACEOF
18944 #define SETPGRP_HAVE_ARG 1
18945 _ACEOF
18948 else
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18958 done
18961 for ac_func in gettimeofday
18963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969 cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h. */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18977 #define $ac_func innocuous_$ac_func
18979 /* System header to define __stub macros and hopefully few prototypes,
18980 which can conflict with char $ac_func (); below.
18981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18982 <limits.h> exists even on freestanding compilers. */
18984 #ifdef __STDC__
18985 # include <limits.h>
18986 #else
18987 # include <assert.h>
18988 #endif
18990 #undef $ac_func
18992 /* Override any GCC internal prototype to avoid an error.
18993 Use char because int might match the return type of a GCC
18994 builtin and then its argument prototype would still apply. */
18995 #ifdef __cplusplus
18996 extern "C"
18997 #endif
18998 char $ac_func ();
18999 /* The GNU C library defines this for functions which it implements
19000 to always fail with ENOSYS. Some functions are actually named
19001 something starting with __ and the normal name is an alias. */
19002 #if defined __stub_$ac_func || defined __stub___$ac_func
19003 choke me
19004 #endif
19007 main ()
19009 return $ac_func ();
19011 return 0;
19013 _ACEOF
19014 rm -f conftest.$ac_objext conftest$ac_exeext
19015 if { (ac_try="$ac_link"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_link") 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest$ac_exeext &&
19031 $as_test_x conftest$ac_exeext; then
19032 eval "$as_ac_var=yes"
19033 else
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 eval "$as_ac_var=no"
19040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19041 conftest$ac_exeext conftest.$ac_ext
19043 ac_res=`eval echo '${'$as_ac_var'}'`
19044 { echo "$as_me:$LINENO: result: $ac_res" >&5
19045 echo "${ECHO_T}$ac_res" >&6; }
19046 if test `eval echo '${'$as_ac_var'}'` = yes; then
19047 cat >>confdefs.h <<_ACEOF
19048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19049 _ACEOF
19050 cat >conftest.$ac_ext <<_ACEOF
19051 /* confdefs.h. */
19052 _ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19056 #include <sys/time.h>
19058 main ()
19060 gettimeofday((struct timeval*)0,(struct timezone*)0);
19062 return 0;
19064 _ACEOF
19065 rm -f conftest.$ac_objext
19066 if { (ac_try="$ac_compile"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_compile") 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest.$ac_objext; then
19083 else
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19088 cat >>confdefs.h <<\_ACEOF
19089 #define GETTIMEOFDAY_NO_TZ 1
19090 _ACEOF
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 done
19101 { echo "$as_me:$LINENO: checking for major" >&5
19102 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h. */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19110 #if defined(MAJOR_IN_MKDEV)
19111 #include <sys/mkdev.h>
19112 #elif defined(MAJOR_IN_SYSMACROS)
19113 #include <sys/sysmacros.h>
19114 #else
19115 #include <sys/types.h>
19116 #endif
19119 main ()
19122 makedev(major(0),minor(0));
19125 return 0;
19127 _ACEOF
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (ac_try="$ac_link"
19130 case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_link") 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest$ac_exeext &&
19145 $as_test_x conftest$ac_exeext; then
19148 cat >>confdefs.h <<\_ACEOF
19149 #define HAVE_DEVICE_MACROS 1
19150 _ACEOF
19152 { echo "$as_me:$LINENO: result: yes" >&5
19153 echo "${ECHO_T}yes" >&6; }
19155 else
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19160 { echo "$as_me:$LINENO: result: no" >&5
19161 echo "${ECHO_T}no" >&6; }
19165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19166 conftest$ac_exeext conftest.$ac_ext
19168 # On OSF/1 V5.1, getaddrinfo is available, but a define
19169 # for [no]getaddrinfo in netdb.h.
19170 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19171 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19172 cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h. */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19179 #include <sys/types.h>
19180 #include <sys/socket.h>
19181 #include <netdb.h>
19182 #include <stdio.h>
19185 main ()
19188 getaddrinfo(NULL, NULL, NULL, NULL);
19191 return 0;
19193 _ACEOF
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (ac_try="$ac_link"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_link") 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest$ac_exeext &&
19211 $as_test_x conftest$ac_exeext; then
19213 { echo "$as_me:$LINENO: result: yes" >&5
19214 echo "${ECHO_T}yes" >&6; }
19215 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19216 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19217 if test "$cross_compiling" = yes; then
19218 { echo "$as_me:$LINENO: result: buggy" >&5
19219 echo "${ECHO_T}buggy" >&6; }
19220 buggygetaddrinfo=yes
19221 else
19222 cat >conftest.$ac_ext <<_ACEOF
19223 /* confdefs.h. */
19224 _ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h. */
19229 #include <sys/types.h>
19230 #include <netdb.h>
19231 #include <string.h>
19232 #include <sys/socket.h>
19233 #include <netinet/in.h>
19235 main()
19237 int passive, gaierr, inet4 = 0, inet6 = 0;
19238 struct addrinfo hints, *ai, *aitop;
19239 char straddr[INET6_ADDRSTRLEN], strport[16];
19241 for (passive = 0; passive <= 1; passive++) {
19242 memset(&hints, 0, sizeof(hints));
19243 hints.ai_family = AF_UNSPEC;
19244 hints.ai_flags = passive ? AI_PASSIVE : 0;
19245 hints.ai_socktype = SOCK_STREAM;
19246 hints.ai_protocol = IPPROTO_TCP;
19247 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19248 (void)gai_strerror(gaierr);
19249 goto bad;
19251 for (ai = aitop; ai; ai = ai->ai_next) {
19252 if (ai->ai_addr == NULL ||
19253 ai->ai_addrlen == 0 ||
19254 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19255 straddr, sizeof(straddr), strport, sizeof(strport),
19256 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19257 goto bad;
19259 switch (ai->ai_family) {
19260 case AF_INET:
19261 if (strcmp(strport, "54321") != 0) {
19262 goto bad;
19264 if (passive) {
19265 if (strcmp(straddr, "0.0.0.0") != 0) {
19266 goto bad;
19268 } else {
19269 if (strcmp(straddr, "127.0.0.1") != 0) {
19270 goto bad;
19273 inet4++;
19274 break;
19275 case AF_INET6:
19276 if (strcmp(strport, "54321") != 0) {
19277 goto bad;
19279 if (passive) {
19280 if (strcmp(straddr, "::") != 0) {
19281 goto bad;
19283 } else {
19284 if (strcmp(straddr, "::1") != 0) {
19285 goto bad;
19288 inet6++;
19289 break;
19290 case AF_UNSPEC:
19291 goto bad;
19292 break;
19293 default:
19294 /* another family support? */
19295 break;
19300 if (!(inet4 == 0 || inet4 == 2))
19301 goto bad;
19302 if (!(inet6 == 0 || inet6 == 2))
19303 goto bad;
19305 if (aitop)
19306 freeaddrinfo(aitop);
19307 exit(0);
19309 bad:
19310 if (aitop)
19311 freeaddrinfo(aitop);
19312 exit(1);
19315 _ACEOF
19316 rm -f conftest$ac_exeext
19317 if { (ac_try="$ac_link"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_link") 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19327 { (case "(($ac_try" in
19328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329 *) ac_try_echo=$ac_try;;
19330 esac
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_try") 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336 { echo "$as_me:$LINENO: result: good" >&5
19337 echo "${ECHO_T}good" >&6; }
19338 buggygetaddrinfo=no
19339 else
19340 echo "$as_me: program exited with status $ac_status" >&5
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 ( exit $ac_status )
19345 { echo "$as_me:$LINENO: result: buggy" >&5
19346 echo "${ECHO_T}buggy" >&6; }
19347 buggygetaddrinfo=yes
19349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19353 else
19354 echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19358 { echo "$as_me:$LINENO: result: no" >&5
19359 echo "${ECHO_T}no" >&6; }
19360 buggygetaddrinfo=yes
19364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19365 conftest$ac_exeext conftest.$ac_ext
19367 if test "$buggygetaddrinfo" = "yes"; then
19368 if test "$ipv6" = "yes"; then
19369 echo 'Fatal: You must get working getaddrinfo() function.'
19370 echo ' or you can specify "--disable-ipv6"'.
19371 exit 1
19373 else
19375 cat >>confdefs.h <<\_ACEOF
19376 #define HAVE_GETADDRINFO 1
19377 _ACEOF
19381 for ac_func in getnameinfo
19383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389 cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h. */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19397 #define $ac_func innocuous_$ac_func
19399 /* System header to define __stub macros and hopefully few prototypes,
19400 which can conflict with char $ac_func (); below.
19401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19402 <limits.h> exists even on freestanding compilers. */
19404 #ifdef __STDC__
19405 # include <limits.h>
19406 #else
19407 # include <assert.h>
19408 #endif
19410 #undef $ac_func
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 char $ac_func ();
19419 /* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422 #if defined __stub_$ac_func || defined __stub___$ac_func
19423 choke me
19424 #endif
19427 main ()
19429 return $ac_func ();
19431 return 0;
19433 _ACEOF
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (ac_try="$ac_link"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19439 esac
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_link") 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } && {
19448 test -z "$ac_c_werror_flag" ||
19449 test ! -s conftest.err
19450 } && test -s conftest$ac_exeext &&
19451 $as_test_x conftest$ac_exeext; then
19452 eval "$as_ac_var=yes"
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 eval "$as_ac_var=no"
19460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19461 conftest$ac_exeext conftest.$ac_ext
19463 ac_res=`eval echo '${'$as_ac_var'}'`
19464 { echo "$as_me:$LINENO: result: $ac_res" >&5
19465 echo "${ECHO_T}$ac_res" >&6; }
19466 if test `eval echo '${'$as_ac_var'}'` = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19469 _ACEOF
19472 done
19475 # checks for structures
19476 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19477 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19478 if test "${ac_cv_header_time+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h. */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 #include <sys/types.h>
19488 #include <sys/time.h>
19489 #include <time.h>
19492 main ()
19494 if ((struct tm *) 0)
19495 return 0;
19497 return 0;
19499 _ACEOF
19500 rm -f conftest.$ac_objext
19501 if { (ac_try="$ac_compile"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_compile") 2>conftest.er1
19508 ac_status=$?
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } && {
19514 test -z "$ac_c_werror_flag" ||
19515 test ! -s conftest.err
19516 } && test -s conftest.$ac_objext; then
19517 ac_cv_header_time=yes
19518 else
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 ac_cv_header_time=no
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19528 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19529 if test $ac_cv_header_time = yes; then
19531 cat >>confdefs.h <<\_ACEOF
19532 #define TIME_WITH_SYS_TIME 1
19533 _ACEOF
19537 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19538 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19539 if test "${ac_cv_struct_tm+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 else
19542 cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h. */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 #include <sys/types.h>
19549 #include <time.h>
19552 main ()
19554 struct tm tm;
19555 int *p = &tm.tm_sec;
19556 return !p;
19558 return 0;
19560 _ACEOF
19561 rm -f conftest.$ac_objext
19562 if { (ac_try="$ac_compile"
19563 case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19566 esac
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_compile") 2>conftest.er1
19569 ac_status=$?
19570 grep -v '^ *+' conftest.er1 >conftest.err
19571 rm -f conftest.er1
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && {
19575 test -z "$ac_c_werror_flag" ||
19576 test ! -s conftest.err
19577 } && test -s conftest.$ac_objext; then
19578 ac_cv_struct_tm=time.h
19579 else
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19583 ac_cv_struct_tm=sys/time.h
19586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19588 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19589 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19590 if test $ac_cv_struct_tm = sys/time.h; then
19592 cat >>confdefs.h <<\_ACEOF
19593 #define TM_IN_SYS_TIME 1
19594 _ACEOF
19598 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19599 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19600 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h. */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 #include <sys/types.h>
19610 #include <$ac_cv_struct_tm>
19614 main ()
19616 static struct tm ac_aggr;
19617 if (ac_aggr.tm_zone)
19618 return 0;
19620 return 0;
19622 _ACEOF
19623 rm -f conftest.$ac_objext
19624 if { (ac_try="$ac_compile"
19625 case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_compile") 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_c_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest.$ac_objext; then
19640 ac_cv_member_struct_tm_tm_zone=yes
19641 else
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h. */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 #include <sys/types.h>
19652 #include <$ac_cv_struct_tm>
19656 main ()
19658 static struct tm ac_aggr;
19659 if (sizeof ac_aggr.tm_zone)
19660 return 0;
19662 return 0;
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (ac_try="$ac_compile"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_compile") 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } && {
19679 test -z "$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19681 } && test -s conftest.$ac_objext; then
19682 ac_cv_member_struct_tm_tm_zone=yes
19683 else
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 ac_cv_member_struct_tm_tm_zone=no
19690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19695 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19696 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19697 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19699 cat >>confdefs.h <<_ACEOF
19700 #define HAVE_STRUCT_TM_TM_ZONE 1
19701 _ACEOF
19706 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19708 cat >>confdefs.h <<\_ACEOF
19709 #define HAVE_TM_ZONE 1
19710 _ACEOF
19712 else
19713 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19714 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19715 if test "${ac_cv_have_decl_tzname+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h. */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 #include <time.h>
19727 main ()
19729 #ifndef tzname
19730 (void) tzname;
19731 #endif
19734 return 0;
19736 _ACEOF
19737 rm -f conftest.$ac_objext
19738 if { (ac_try="$ac_compile"
19739 case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_compile") 2>conftest.er1
19745 ac_status=$?
19746 grep -v '^ *+' conftest.er1 >conftest.err
19747 rm -f conftest.er1
19748 cat conftest.err >&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } && {
19751 test -z "$ac_c_werror_flag" ||
19752 test ! -s conftest.err
19753 } && test -s conftest.$ac_objext; then
19754 ac_cv_have_decl_tzname=yes
19755 else
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19759 ac_cv_have_decl_tzname=no
19762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19764 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19765 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19766 if test $ac_cv_have_decl_tzname = yes; then
19768 cat >>confdefs.h <<_ACEOF
19769 #define HAVE_DECL_TZNAME 1
19770 _ACEOF
19773 else
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_DECL_TZNAME 0
19776 _ACEOF
19782 { echo "$as_me:$LINENO: checking for tzname" >&5
19783 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19784 if test "${ac_cv_var_tzname+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787 cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h. */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19793 #include <time.h>
19794 #if !HAVE_DECL_TZNAME
19795 extern char *tzname[];
19796 #endif
19799 main ()
19801 return tzname[0][0];
19803 return 0;
19805 _ACEOF
19806 rm -f conftest.$ac_objext conftest$ac_exeext
19807 if { (ac_try="$ac_link"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_link") 2>conftest.er1
19814 ac_status=$?
19815 grep -v '^ *+' conftest.er1 >conftest.err
19816 rm -f conftest.er1
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } && {
19820 test -z "$ac_c_werror_flag" ||
19821 test ! -s conftest.err
19822 } && test -s conftest$ac_exeext &&
19823 $as_test_x conftest$ac_exeext; then
19824 ac_cv_var_tzname=yes
19825 else
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ac_cv_var_tzname=no
19832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19833 conftest$ac_exeext conftest.$ac_ext
19835 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19836 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19837 if test $ac_cv_var_tzname = yes; then
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_TZNAME 1
19841 _ACEOF
19846 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19847 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19848 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851 cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h. */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 $ac_includes_default
19859 main ()
19861 static struct stat ac_aggr;
19862 if (ac_aggr.st_rdev)
19863 return 0;
19865 return 0;
19867 _ACEOF
19868 rm -f conftest.$ac_objext
19869 if { (ac_try="$ac_compile"
19870 case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_compile") 2>conftest.er1
19876 ac_status=$?
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } && {
19882 test -z "$ac_c_werror_flag" ||
19883 test ! -s conftest.err
19884 } && test -s conftest.$ac_objext; then
19885 ac_cv_member_struct_stat_st_rdev=yes
19886 else
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h. */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896 $ac_includes_default
19898 main ()
19900 static struct stat ac_aggr;
19901 if (sizeof ac_aggr.st_rdev)
19902 return 0;
19904 return 0;
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_compile") 2>conftest.er1
19915 ac_status=$?
19916 grep -v '^ *+' conftest.er1 >conftest.err
19917 rm -f conftest.er1
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } && {
19921 test -z "$ac_c_werror_flag" ||
19922 test ! -s conftest.err
19923 } && test -s conftest.$ac_objext; then
19924 ac_cv_member_struct_stat_st_rdev=yes
19925 else
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ac_cv_member_struct_stat_st_rdev=no
19932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19937 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19938 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19939 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_STRUCT_STAT_ST_RDEV 1
19943 _ACEOF
19948 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19949 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19950 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953 cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h. */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19959 $ac_includes_default
19961 main ()
19963 static struct stat ac_aggr;
19964 if (ac_aggr.st_blksize)
19965 return 0;
19967 return 0;
19969 _ACEOF
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_compile") 2>conftest.er1
19978 ac_status=$?
19979 grep -v '^ *+' conftest.er1 >conftest.err
19980 rm -f conftest.er1
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest.$ac_objext; then
19987 ac_cv_member_struct_stat_st_blksize=yes
19988 else
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 $ac_includes_default
20000 main ()
20002 static struct stat ac_aggr;
20003 if (sizeof ac_aggr.st_blksize)
20004 return 0;
20006 return 0;
20008 _ACEOF
20009 rm -f conftest.$ac_objext
20010 if { (ac_try="$ac_compile"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_compile") 2>conftest.er1
20017 ac_status=$?
20018 grep -v '^ *+' conftest.er1 >conftest.err
20019 rm -f conftest.er1
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest.$ac_objext; then
20026 ac_cv_member_struct_stat_st_blksize=yes
20027 else
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_cv_member_struct_stat_st_blksize=no
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20040 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20041 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20043 cat >>confdefs.h <<_ACEOF
20044 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20045 _ACEOF
20050 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20051 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20052 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 $ac_includes_default
20063 main ()
20065 static struct stat ac_aggr;
20066 if (ac_aggr.st_flags)
20067 return 0;
20069 return 0;
20071 _ACEOF
20072 rm -f conftest.$ac_objext
20073 if { (ac_try="$ac_compile"
20074 case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20077 esac
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079 (eval "$ac_compile") 2>conftest.er1
20080 ac_status=$?
20081 grep -v '^ *+' conftest.er1 >conftest.err
20082 rm -f conftest.er1
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } && {
20086 test -z "$ac_c_werror_flag" ||
20087 test ! -s conftest.err
20088 } && test -s conftest.$ac_objext; then
20089 ac_cv_member_struct_stat_st_flags=yes
20090 else
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 cat >conftest.$ac_ext <<_ACEOF
20095 /* confdefs.h. */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 $ac_includes_default
20102 main ()
20104 static struct stat ac_aggr;
20105 if (sizeof ac_aggr.st_flags)
20106 return 0;
20108 return 0;
20110 _ACEOF
20111 rm -f conftest.$ac_objext
20112 if { (ac_try="$ac_compile"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compile") 2>conftest.er1
20119 ac_status=$?
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } && {
20125 test -z "$ac_c_werror_flag" ||
20126 test ! -s conftest.err
20127 } && test -s conftest.$ac_objext; then
20128 ac_cv_member_struct_stat_st_flags=yes
20129 else
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_cv_member_struct_stat_st_flags=no
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20141 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20142 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20143 if test $ac_cv_member_struct_stat_st_flags = yes; then
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20147 _ACEOF
20152 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20153 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20154 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 else
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 $ac_includes_default
20165 main ()
20167 static struct stat ac_aggr;
20168 if (ac_aggr.st_gen)
20169 return 0;
20171 return 0;
20173 _ACEOF
20174 rm -f conftest.$ac_objext
20175 if { (ac_try="$ac_compile"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20179 esac
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_compile") 2>conftest.er1
20182 ac_status=$?
20183 grep -v '^ *+' conftest.er1 >conftest.err
20184 rm -f conftest.er1
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } && {
20188 test -z "$ac_c_werror_flag" ||
20189 test ! -s conftest.err
20190 } && test -s conftest.$ac_objext; then
20191 ac_cv_member_struct_stat_st_gen=yes
20192 else
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h. */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 $ac_includes_default
20204 main ()
20206 static struct stat ac_aggr;
20207 if (sizeof ac_aggr.st_gen)
20208 return 0;
20210 return 0;
20212 _ACEOF
20213 rm -f conftest.$ac_objext
20214 if { (ac_try="$ac_compile"
20215 case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20218 esac
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_compile") 2>conftest.er1
20221 ac_status=$?
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } && {
20227 test -z "$ac_c_werror_flag" ||
20228 test ! -s conftest.err
20229 } && test -s conftest.$ac_objext; then
20230 ac_cv_member_struct_stat_st_gen=yes
20231 else
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20235 ac_cv_member_struct_stat_st_gen=no
20238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20244 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20245 if test $ac_cv_member_struct_stat_st_gen = yes; then
20247 cat >>confdefs.h <<_ACEOF
20248 #define HAVE_STRUCT_STAT_ST_GEN 1
20249 _ACEOF
20254 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20255 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20256 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 else
20259 cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h. */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 $ac_includes_default
20267 main ()
20269 static struct stat ac_aggr;
20270 if (ac_aggr.st_birthtime)
20271 return 0;
20273 return 0;
20275 _ACEOF
20276 rm -f conftest.$ac_objext
20277 if { (ac_try="$ac_compile"
20278 case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20284 ac_status=$?
20285 grep -v '^ *+' conftest.er1 >conftest.err
20286 rm -f conftest.er1
20287 cat conftest.err >&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_c_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.$ac_objext; then
20293 ac_cv_member_struct_stat_st_birthtime=yes
20294 else
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 cat >conftest.$ac_ext <<_ACEOF
20299 /* confdefs.h. */
20300 _ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h. */
20304 $ac_includes_default
20306 main ()
20308 static struct stat ac_aggr;
20309 if (sizeof ac_aggr.st_birthtime)
20310 return 0;
20312 return 0;
20314 _ACEOF
20315 rm -f conftest.$ac_objext
20316 if { (ac_try="$ac_compile"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20320 esac
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_compile") 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } && {
20329 test -z "$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20331 } && test -s conftest.$ac_objext; then
20332 ac_cv_member_struct_stat_st_birthtime=yes
20333 else
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20337 ac_cv_member_struct_stat_st_birthtime=no
20340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20346 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20347 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20349 cat >>confdefs.h <<_ACEOF
20350 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20351 _ACEOF
20356 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20357 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20358 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361 cat >conftest.$ac_ext <<_ACEOF
20362 /* confdefs.h. */
20363 _ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20367 $ac_includes_default
20369 main ()
20371 static struct stat ac_aggr;
20372 if (ac_aggr.st_blocks)
20373 return 0;
20375 return 0;
20377 _ACEOF
20378 rm -f conftest.$ac_objext
20379 if { (ac_try="$ac_compile"
20380 case "(($ac_try" in
20381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382 *) ac_try_echo=$ac_try;;
20383 esac
20384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20385 (eval "$ac_compile") 2>conftest.er1
20386 ac_status=$?
20387 grep -v '^ *+' conftest.er1 >conftest.err
20388 rm -f conftest.er1
20389 cat conftest.err >&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } && {
20392 test -z "$ac_c_werror_flag" ||
20393 test ! -s conftest.err
20394 } && test -s conftest.$ac_objext; then
20395 ac_cv_member_struct_stat_st_blocks=yes
20396 else
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20400 cat >conftest.$ac_ext <<_ACEOF
20401 /* confdefs.h. */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 $ac_includes_default
20408 main ()
20410 static struct stat ac_aggr;
20411 if (sizeof ac_aggr.st_blocks)
20412 return 0;
20414 return 0;
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_compile") 2>conftest.er1
20425 ac_status=$?
20426 grep -v '^ *+' conftest.er1 >conftest.err
20427 rm -f conftest.er1
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } && {
20431 test -z "$ac_c_werror_flag" ||
20432 test ! -s conftest.err
20433 } && test -s conftest.$ac_objext; then
20434 ac_cv_member_struct_stat_st_blocks=yes
20435 else
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_cv_member_struct_stat_st_blocks=no
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20447 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20448 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20449 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20451 cat >>confdefs.h <<_ACEOF
20452 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20453 _ACEOF
20456 cat >>confdefs.h <<\_ACEOF
20457 #define HAVE_ST_BLOCKS 1
20458 _ACEOF
20460 else
20461 case " $LIBOBJS " in
20462 *" fileblocks.$ac_objext "* ) ;;
20463 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20465 esac
20471 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20472 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20473 if test "${ac_cv_header_time_altzone+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476 cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h. */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 #include <time.h>
20484 main ()
20486 return altzone;
20488 return 0;
20490 _ACEOF
20491 rm -f conftest.$ac_objext
20492 if { (ac_try="$ac_compile"
20493 case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_compile") 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest.$ac_objext; then
20508 ac_cv_header_time_altzone=yes
20509 else
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ac_cv_header_time_altzone=no
20516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20519 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20520 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20521 if test $ac_cv_header_time_altzone = yes; then
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE_ALTZONE 1
20525 _ACEOF
20529 was_it_defined=no
20530 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20531 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20539 #include <sys/types.h>
20540 #include <sys/select.h>
20541 #include <sys/time.h>
20544 main ()
20548 return 0;
20550 _ACEOF
20551 rm -f conftest.$ac_objext
20552 if { (ac_try="$ac_compile"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20556 esac
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558 (eval "$ac_compile") 2>conftest.er1
20559 ac_status=$?
20560 grep -v '^ *+' conftest.er1 >conftest.err
20561 rm -f conftest.er1
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } && {
20565 test -z "$ac_c_werror_flag" ||
20566 test ! -s conftest.err
20567 } && test -s conftest.$ac_objext; then
20570 cat >>confdefs.h <<\_ACEOF
20571 #define SYS_SELECT_WITH_SYS_TIME 1
20572 _ACEOF
20574 was_it_defined=yes
20576 else
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20585 echo "${ECHO_T}$was_it_defined" >&6; }
20587 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20588 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20589 if test "${ac_cv_struct_addrinfo+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592 cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h. */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20599 # include <netdb.h>
20601 main ()
20603 struct addrinfo a
20605 return 0;
20607 _ACEOF
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20616 ac_status=$?
20617 grep -v '^ *+' conftest.er1 >conftest.err
20618 rm -f conftest.er1
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest.$ac_objext; then
20625 ac_cv_struct_addrinfo=yes
20626 else
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ac_cv_struct_addrinfo=no
20633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20637 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20638 if test $ac_cv_struct_addrinfo = yes; then
20640 cat >>confdefs.h <<\_ACEOF
20641 #define HAVE_ADDRINFO 1
20642 _ACEOF
20646 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20647 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20648 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651 cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h. */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 # include <sys/types.h>
20659 # include <sys/socket.h>
20661 main ()
20663 struct sockaddr_storage s
20665 return 0;
20667 _ACEOF
20668 rm -f conftest.$ac_objext
20669 if { (ac_try="$ac_compile"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_compile") 2>conftest.er1
20676 ac_status=$?
20677 grep -v '^ *+' conftest.er1 >conftest.err
20678 rm -f conftest.er1
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && {
20682 test -z "$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 } && test -s conftest.$ac_objext; then
20685 ac_cv_struct_sockaddr_storage=yes
20686 else
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_cv_struct_sockaddr_storage=no
20693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20697 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20698 if test $ac_cv_struct_sockaddr_storage = yes; then
20700 cat >>confdefs.h <<\_ACEOF
20701 #define HAVE_SOCKADDR_STORAGE 1
20702 _ACEOF
20706 # checks for compiler characteristics
20709 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20710 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20711 if test "${ac_cv_c_char_unsigned+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714 cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h. */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 $ac_includes_default
20722 main ()
20724 static int test_array [1 - 2 * !(((char) -1) < 0)];
20725 test_array [0] = 0
20728 return 0;
20730 _ACEOF
20731 rm -f conftest.$ac_objext
20732 if { (ac_try="$ac_compile"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_compile") 2>conftest.er1
20739 ac_status=$?
20740 grep -v '^ *+' conftest.er1 >conftest.err
20741 rm -f conftest.er1
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && {
20745 test -z "$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20747 } && test -s conftest.$ac_objext; then
20748 ac_cv_c_char_unsigned=no
20749 else
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20753 ac_cv_c_char_unsigned=yes
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20759 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20760 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20761 cat >>confdefs.h <<\_ACEOF
20762 #define __CHAR_UNSIGNED__ 1
20763 _ACEOF
20767 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20768 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20769 if test "${ac_cv_c_const+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772 cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h. */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20780 main ()
20782 /* FIXME: Include the comments suggested by Paul. */
20783 #ifndef __cplusplus
20784 /* Ultrix mips cc rejects this. */
20785 typedef int charset[2];
20786 const charset cs;
20787 /* SunOS 4.1.1 cc rejects this. */
20788 char const *const *pcpcc;
20789 char **ppc;
20790 /* NEC SVR4.0.2 mips cc rejects this. */
20791 struct point {int x, y;};
20792 static struct point const zero = {0,0};
20793 /* AIX XL C 1.02.0.0 rejects this.
20794 It does not let you subtract one const X* pointer from another in
20795 an arm of an if-expression whose if-part is not a constant
20796 expression */
20797 const char *g = "string";
20798 pcpcc = &g + (g ? g-g : 0);
20799 /* HPUX 7.0 cc rejects these. */
20800 ++pcpcc;
20801 ppc = (char**) pcpcc;
20802 pcpcc = (char const *const *) ppc;
20803 { /* SCO 3.2v4 cc rejects this. */
20804 char *t;
20805 char const *s = 0 ? (char *) 0 : (char const *) 0;
20807 *t++ = 0;
20808 if (s) return 0;
20810 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20811 int x[] = {25, 17};
20812 const int *foo = &x[0];
20813 ++foo;
20815 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20816 typedef const int *iptr;
20817 iptr p = 0;
20818 ++p;
20820 { /* AIX XL C 1.02.0.0 rejects this saying
20821 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20822 struct s { int j; const int *ap[3]; };
20823 struct s *b; b->j = 5;
20825 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20826 const int foo = 10;
20827 if (!foo) return 0;
20829 return !cs[0] && !zero.x;
20830 #endif
20833 return 0;
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20844 ac_status=$?
20845 grep -v '^ *+' conftest.er1 >conftest.err
20846 rm -f conftest.er1
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.$ac_objext; then
20853 ac_cv_c_const=yes
20854 else
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 ac_cv_c_const=no
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20864 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20865 if test $ac_cv_c_const = no; then
20867 cat >>confdefs.h <<\_ACEOF
20868 #define const
20869 _ACEOF
20874 works=no
20875 { echo "$as_me:$LINENO: checking for working volatile" >&5
20876 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h. */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20885 main ()
20887 volatile int x; x = 0;
20889 return 0;
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_compile") 2>conftest.er1
20900 ac_status=$?
20901 grep -v '^ *+' conftest.er1 >conftest.err
20902 rm -f conftest.er1
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && {
20906 test -z "$ac_c_werror_flag" ||
20907 test ! -s conftest.err
20908 } && test -s conftest.$ac_objext; then
20909 works=yes
20910 else
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20915 cat >>confdefs.h <<\_ACEOF
20916 #define volatile
20917 _ACEOF
20922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20923 { echo "$as_me:$LINENO: result: $works" >&5
20924 echo "${ECHO_T}$works" >&6; }
20926 works=no
20927 { echo "$as_me:$LINENO: checking for working signed char" >&5
20928 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20929 cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h. */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20937 main ()
20939 signed char c;
20941 return 0;
20943 _ACEOF
20944 rm -f conftest.$ac_objext
20945 if { (ac_try="$ac_compile"
20946 case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20949 esac
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_compile") 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } && {
20958 test -z "$ac_c_werror_flag" ||
20959 test ! -s conftest.err
20960 } && test -s conftest.$ac_objext; then
20961 works=yes
20962 else
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20967 cat >>confdefs.h <<\_ACEOF
20968 #define signed
20969 _ACEOF
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 { echo "$as_me:$LINENO: result: $works" >&5
20976 echo "${ECHO_T}$works" >&6; }
20978 have_prototypes=no
20979 { echo "$as_me:$LINENO: checking for prototypes" >&5
20980 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h. */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 int foo(int x) { return 0; }
20989 main ()
20991 return foo(10);
20993 return 0;
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (ac_try="$ac_compile"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_compile") 2>conftest.er1
21004 ac_status=$?
21005 grep -v '^ *+' conftest.er1 >conftest.err
21006 rm -f conftest.er1
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } && {
21010 test -z "$ac_c_werror_flag" ||
21011 test ! -s conftest.err
21012 } && test -s conftest.$ac_objext; then
21015 cat >>confdefs.h <<\_ACEOF
21016 #define HAVE_PROTOTYPES 1
21017 _ACEOF
21019 have_prototypes=yes
21021 else
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21030 echo "${ECHO_T}$have_prototypes" >&6; }
21032 works=no
21033 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21034 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21035 cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h. */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21042 #include <stdarg.h>
21043 int foo(int x, ...) {
21044 va_list va;
21045 va_start(va, x);
21046 va_arg(va, int);
21047 va_arg(va, char *);
21048 va_arg(va, double);
21049 return 0;
21053 main ()
21055 return foo(10, "", 3.14);
21057 return 0;
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21079 cat >>confdefs.h <<\_ACEOF
21080 #define HAVE_STDARG_PROTOTYPES 1
21081 _ACEOF
21083 works=yes
21085 else
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 { echo "$as_me:$LINENO: result: $works" >&5
21094 echo "${ECHO_T}$works" >&6; }
21096 # check for socketpair
21097 { echo "$as_me:$LINENO: checking for socketpair" >&5
21098 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21099 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h. */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21106 #include <sys/types.h>
21107 #include <sys/socket.h>
21110 main ()
21112 void *x=socketpair
21114 return 0;
21116 _ACEOF
21117 rm -f conftest.$ac_objext
21118 if { (ac_try="$ac_compile"
21119 case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21122 esac
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124 (eval "$ac_compile") 2>conftest.er1
21125 ac_status=$?
21126 grep -v '^ *+' conftest.er1 >conftest.err
21127 rm -f conftest.er1
21128 cat conftest.err >&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } && {
21131 test -z "$ac_c_werror_flag" ||
21132 test ! -s conftest.err
21133 } && test -s conftest.$ac_objext; then
21135 cat >>confdefs.h <<\_ACEOF
21136 #define HAVE_SOCKETPAIR 1
21137 _ACEOF
21139 { echo "$as_me:$LINENO: result: yes" >&5
21140 echo "${ECHO_T}yes" >&6; }
21141 else
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 { echo "$as_me:$LINENO: result: no" >&5
21146 echo "${ECHO_T}no" >&6; }
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152 # check if sockaddr has sa_len member
21153 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21154 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21155 cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h. */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <sys/types.h>
21162 #include <sys/socket.h>
21164 main ()
21166 struct sockaddr x;
21167 x.sa_len = 0;
21169 return 0;
21171 _ACEOF
21172 rm -f conftest.$ac_objext
21173 if { (ac_try="$ac_compile"
21174 case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21177 esac
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_compile") 2>conftest.er1
21180 ac_status=$?
21181 grep -v '^ *+' conftest.er1 >conftest.err
21182 rm -f conftest.er1
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } && {
21186 test -z "$ac_c_werror_flag" ||
21187 test ! -s conftest.err
21188 } && test -s conftest.$ac_objext; then
21189 { echo "$as_me:$LINENO: result: yes" >&5
21190 echo "${ECHO_T}yes" >&6; }
21192 cat >>confdefs.h <<\_ACEOF
21193 #define HAVE_SOCKADDR_SA_LEN 1
21194 _ACEOF
21196 else
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 { echo "$as_me:$LINENO: result: no" >&5
21201 echo "${ECHO_T}no" >&6; }
21204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 va_list_is_array=no
21207 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21208 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21209 cat >conftest.$ac_ext <<_ACEOF
21210 /* confdefs.h. */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21216 #ifdef HAVE_STDARG_PROTOTYPES
21217 #include <stdarg.h>
21218 #else
21219 #include <varargs.h>
21220 #endif
21223 main ()
21225 va_list list1, list2; list1 = list2;
21227 return 0;
21229 _ACEOF
21230 rm -f conftest.$ac_objext
21231 if { (ac_try="$ac_compile"
21232 case "(($ac_try" in
21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_compile") 2>conftest.er1
21238 ac_status=$?
21239 grep -v '^ *+' conftest.er1 >conftest.err
21240 rm -f conftest.er1
21241 cat conftest.err >&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest.$ac_objext; then
21248 else
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21254 cat >>confdefs.h <<\_ACEOF
21255 #define VA_LIST_IS_ARRAY 1
21256 _ACEOF
21258 va_list_is_array=yes
21262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21264 echo "${ECHO_T}$va_list_is_array" >&6; }
21266 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21270 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21271 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21272 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275 cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h. */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21281 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21283 #define gethostbyname_r innocuous_gethostbyname_r
21285 /* System header to define __stub macros and hopefully few prototypes,
21286 which can conflict with char gethostbyname_r (); below.
21287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21288 <limits.h> exists even on freestanding compilers. */
21290 #ifdef __STDC__
21291 # include <limits.h>
21292 #else
21293 # include <assert.h>
21294 #endif
21296 #undef gethostbyname_r
21298 /* Override any GCC internal prototype to avoid an error.
21299 Use char because int might match the return type of a GCC
21300 builtin and then its argument prototype would still apply. */
21301 #ifdef __cplusplus
21302 extern "C"
21303 #endif
21304 char gethostbyname_r ();
21305 /* The GNU C library defines this for functions which it implements
21306 to always fail with ENOSYS. Some functions are actually named
21307 something starting with __ and the normal name is an alias. */
21308 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21309 choke me
21310 #endif
21313 main ()
21315 return gethostbyname_r ();
21317 return 0;
21319 _ACEOF
21320 rm -f conftest.$ac_objext conftest$ac_exeext
21321 if { (ac_try="$ac_link"
21322 case "(($ac_try" in
21323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324 *) ac_try_echo=$ac_try;;
21325 esac
21326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21327 (eval "$ac_link") 2>conftest.er1
21328 ac_status=$?
21329 grep -v '^ *+' conftest.er1 >conftest.err
21330 rm -f conftest.er1
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } && {
21334 test -z "$ac_c_werror_flag" ||
21335 test ! -s conftest.err
21336 } && test -s conftest$ac_exeext &&
21337 $as_test_x conftest$ac_exeext; then
21338 ac_cv_func_gethostbyname_r=yes
21339 else
21340 echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21343 ac_cv_func_gethostbyname_r=no
21346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21347 conftest$ac_exeext conftest.$ac_ext
21349 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21350 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21351 if test $ac_cv_func_gethostbyname_r = yes; then
21353 cat >>confdefs.h <<\_ACEOF
21354 #define HAVE_GETHOSTBYNAME_R 1
21355 _ACEOF
21357 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21358 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21359 OLD_CFLAGS=$CFLAGS
21360 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21361 cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h. */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21368 # include <netdb.h>
21371 main ()
21374 char *name;
21375 struct hostent *he, *res;
21376 char buffer[2048];
21377 int buflen = 2048;
21378 int h_errnop;
21380 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21383 return 0;
21385 _ACEOF
21386 rm -f conftest.$ac_objext
21387 if { (ac_try="$ac_compile"
21388 case "(($ac_try" in
21389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390 *) ac_try_echo=$ac_try;;
21391 esac
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_compile") 2>conftest.er1
21394 ac_status=$?
21395 grep -v '^ *+' conftest.er1 >conftest.err
21396 rm -f conftest.er1
21397 cat conftest.err >&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } && {
21400 test -z "$ac_c_werror_flag" ||
21401 test ! -s conftest.err
21402 } && test -s conftest.$ac_objext; then
21404 cat >>confdefs.h <<\_ACEOF
21405 #define HAVE_GETHOSTBYNAME_R 1
21406 _ACEOF
21409 cat >>confdefs.h <<\_ACEOF
21410 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21411 _ACEOF
21413 { echo "$as_me:$LINENO: result: yes" >&5
21414 echo "${ECHO_T}yes" >&6; }
21416 else
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21421 { echo "$as_me:$LINENO: result: no" >&5
21422 echo "${ECHO_T}no" >&6; }
21423 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21424 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21425 cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h. */
21427 _ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21432 # include <netdb.h>
21435 main ()
21438 char *name;
21439 struct hostent *he;
21440 char buffer[2048];
21441 int buflen = 2048;
21442 int h_errnop;
21444 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21447 return 0;
21449 _ACEOF
21450 rm -f conftest.$ac_objext
21451 if { (ac_try="$ac_compile"
21452 case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21455 esac
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457 (eval "$ac_compile") 2>conftest.er1
21458 ac_status=$?
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest.$ac_objext; then
21468 cat >>confdefs.h <<\_ACEOF
21469 #define HAVE_GETHOSTBYNAME_R 1
21470 _ACEOF
21473 cat >>confdefs.h <<\_ACEOF
21474 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21475 _ACEOF
21477 { echo "$as_me:$LINENO: result: yes" >&5
21478 echo "${ECHO_T}yes" >&6; }
21480 else
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21485 { echo "$as_me:$LINENO: result: no" >&5
21486 echo "${ECHO_T}no" >&6; }
21487 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21488 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21489 cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h. */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21496 # include <netdb.h>
21499 main ()
21502 char *name;
21503 struct hostent *he;
21504 struct hostent_data data;
21506 (void) gethostbyname_r(name, he, &data);
21509 return 0;
21511 _ACEOF
21512 rm -f conftest.$ac_objext
21513 if { (ac_try="$ac_compile"
21514 case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_compile") 2>conftest.er1
21520 ac_status=$?
21521 grep -v '^ *+' conftest.er1 >conftest.err
21522 rm -f conftest.er1
21523 cat conftest.err >&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } && {
21526 test -z "$ac_c_werror_flag" ||
21527 test ! -s conftest.err
21528 } && test -s conftest.$ac_objext; then
21530 cat >>confdefs.h <<\_ACEOF
21531 #define HAVE_GETHOSTBYNAME_R 1
21532 _ACEOF
21535 cat >>confdefs.h <<\_ACEOF
21536 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21537 _ACEOF
21539 { echo "$as_me:$LINENO: result: yes" >&5
21540 echo "${ECHO_T}yes" >&6; }
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21547 { echo "$as_me:$LINENO: result: no" >&5
21548 echo "${ECHO_T}no" >&6; }
21552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561 CFLAGS=$OLD_CFLAGS
21563 else
21566 for ac_func in gethostbyname
21568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21573 else
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21582 #define $ac_func innocuous_$ac_func
21584 /* System header to define __stub macros and hopefully few prototypes,
21585 which can conflict with char $ac_func (); below.
21586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21587 <limits.h> exists even on freestanding compilers. */
21589 #ifdef __STDC__
21590 # include <limits.h>
21591 #else
21592 # include <assert.h>
21593 #endif
21595 #undef $ac_func
21597 /* Override any GCC internal prototype to avoid an error.
21598 Use char because int might match the return type of a GCC
21599 builtin and then its argument prototype would still apply. */
21600 #ifdef __cplusplus
21601 extern "C"
21602 #endif
21603 char $ac_func ();
21604 /* The GNU C library defines this for functions which it implements
21605 to always fail with ENOSYS. Some functions are actually named
21606 something starting with __ and the normal name is an alias. */
21607 #if defined __stub_$ac_func || defined __stub___$ac_func
21608 choke me
21609 #endif
21612 main ()
21614 return $ac_func ();
21616 return 0;
21618 _ACEOF
21619 rm -f conftest.$ac_objext conftest$ac_exeext
21620 if { (ac_try="$ac_link"
21621 case "(($ac_try" in
21622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623 *) ac_try_echo=$ac_try;;
21624 esac
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626 (eval "$ac_link") 2>conftest.er1
21627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } && {
21633 test -z "$ac_c_werror_flag" ||
21634 test ! -s conftest.err
21635 } && test -s conftest$ac_exeext &&
21636 $as_test_x conftest$ac_exeext; then
21637 eval "$as_ac_var=yes"
21638 else
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21642 eval "$as_ac_var=no"
21645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21646 conftest$ac_exeext conftest.$ac_ext
21648 ac_res=`eval echo '${'$as_ac_var'}'`
21649 { echo "$as_me:$LINENO: result: $ac_res" >&5
21650 echo "${ECHO_T}$ac_res" >&6; }
21651 if test `eval echo '${'$as_ac_var'}'` = yes; then
21652 cat >>confdefs.h <<_ACEOF
21653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21654 _ACEOF
21657 done
21668 # checks for system services
21669 # (none yet)
21671 # Linux requires this for correct f.p. operations
21672 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21673 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21674 if test "${ac_cv_func___fpu_control+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 else
21677 cat >conftest.$ac_ext <<_ACEOF
21678 /* confdefs.h. */
21679 _ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h. */
21683 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21685 #define __fpu_control innocuous___fpu_control
21687 /* System header to define __stub macros and hopefully few prototypes,
21688 which can conflict with char __fpu_control (); below.
21689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21690 <limits.h> exists even on freestanding compilers. */
21692 #ifdef __STDC__
21693 # include <limits.h>
21694 #else
21695 # include <assert.h>
21696 #endif
21698 #undef __fpu_control
21700 /* Override any GCC internal prototype to avoid an error.
21701 Use char because int might match the return type of a GCC
21702 builtin and then its argument prototype would still apply. */
21703 #ifdef __cplusplus
21704 extern "C"
21705 #endif
21706 char __fpu_control ();
21707 /* The GNU C library defines this for functions which it implements
21708 to always fail with ENOSYS. Some functions are actually named
21709 something starting with __ and the normal name is an alias. */
21710 #if defined __stub___fpu_control || defined __stub_____fpu_control
21711 choke me
21712 #endif
21715 main ()
21717 return __fpu_control ();
21719 return 0;
21721 _ACEOF
21722 rm -f conftest.$ac_objext conftest$ac_exeext
21723 if { (ac_try="$ac_link"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_link") 2>conftest.er1
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } && {
21736 test -z "$ac_c_werror_flag" ||
21737 test ! -s conftest.err
21738 } && test -s conftest$ac_exeext &&
21739 $as_test_x conftest$ac_exeext; then
21740 ac_cv_func___fpu_control=yes
21741 else
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_cv_func___fpu_control=no
21748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21749 conftest$ac_exeext conftest.$ac_ext
21751 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21752 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21753 if test $ac_cv_func___fpu_control = yes; then
21755 else
21757 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21758 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21759 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21761 else
21762 ac_check_lib_save_LIBS=$LIBS
21763 LIBS="-lieee $LIBS"
21764 cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h. */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21771 /* Override any GCC internal prototype to avoid an error.
21772 Use char because int might match the return type of a GCC
21773 builtin and then its argument prototype would still apply. */
21774 #ifdef __cplusplus
21775 extern "C"
21776 #endif
21777 char __fpu_control ();
21779 main ()
21781 return __fpu_control ();
21783 return 0;
21785 _ACEOF
21786 rm -f conftest.$ac_objext conftest$ac_exeext
21787 if { (ac_try="$ac_link"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21791 esac
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_link") 2>conftest.er1
21794 ac_status=$?
21795 grep -v '^ *+' conftest.er1 >conftest.err
21796 rm -f conftest.er1
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && {
21800 test -z "$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 } && test -s conftest$ac_exeext &&
21803 $as_test_x conftest$ac_exeext; then
21804 ac_cv_lib_ieee___fpu_control=yes
21805 else
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_cv_lib_ieee___fpu_control=no
21812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21813 conftest$ac_exeext conftest.$ac_ext
21814 LIBS=$ac_check_lib_save_LIBS
21816 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21817 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21818 if test $ac_cv_lib_ieee___fpu_control = yes; then
21819 cat >>confdefs.h <<_ACEOF
21820 #define HAVE_LIBIEEE 1
21821 _ACEOF
21823 LIBS="-lieee $LIBS"
21831 # Check for --with-fpectl
21832 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21833 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21835 # Check whether --with-fpectl was given.
21836 if test "${with_fpectl+set}" = set; then
21837 withval=$with_fpectl;
21838 if test "$withval" != no
21839 then
21841 cat >>confdefs.h <<\_ACEOF
21842 #define WANT_SIGFPE_HANDLER 1
21843 _ACEOF
21845 { echo "$as_me:$LINENO: result: yes" >&5
21846 echo "${ECHO_T}yes" >&6; }
21847 else { echo "$as_me:$LINENO: result: no" >&5
21848 echo "${ECHO_T}no" >&6; }
21850 else
21851 { echo "$as_me:$LINENO: result: no" >&5
21852 echo "${ECHO_T}no" >&6; }
21856 # check for --with-libm=...
21858 case $ac_sys_system in
21859 Darwin) ;;
21860 BeOS) ;;
21861 *) LIBM=-lm
21862 esac
21863 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21864 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21866 # Check whether --with-libm was given.
21867 if test "${with_libm+set}" = set; then
21868 withval=$with_libm;
21869 if test "$withval" = no
21870 then LIBM=
21871 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21872 echo "${ECHO_T}force LIBM empty" >&6; }
21873 elif test "$withval" != yes
21874 then LIBM=$withval
21875 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21876 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21877 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21878 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21879 { (exit 1); exit 1; }; }
21881 else
21882 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21883 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21887 # check for --with-libc=...
21889 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21890 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21892 # Check whether --with-libc was given.
21893 if test "${with_libc+set}" = set; then
21894 withval=$with_libc;
21895 if test "$withval" = no
21896 then LIBC=
21897 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21898 echo "${ECHO_T}force LIBC empty" >&6; }
21899 elif test "$withval" != yes
21900 then LIBC=$withval
21901 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21902 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21903 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21904 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21905 { (exit 1); exit 1; }; }
21907 else
21908 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21909 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21913 # ************************************
21914 # * Check for mathematical functions *
21915 # ************************************
21917 LIBS_SAVE=$LIBS
21918 LIBS="$LIBS $LIBM"
21920 # Detect whether system arithmetic is subject to x87-style double
21921 # rounding issues. The result of this test has little meaning on non
21922 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21923 # mode is round-to-nearest and double rounding issues are present, and
21924 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21925 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21926 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21927 if test "${ac_cv_x87_double_rounding+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 else
21931 if test "$cross_compiling" = yes; then
21932 ac_cv_x87_double_rounding=no
21933 else
21934 cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h. */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21941 #include <stdlib.h>
21942 #include <math.h>
21943 int main() {
21944 volatile double x, y, z;
21945 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21946 x = 0.99999999999999989; /* 1-2**-53 */
21947 y = 1./x;
21948 if (y != 1.)
21949 exit(0);
21950 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21951 x = 1e16;
21952 y = 2.99999;
21953 z = x + y;
21954 if (z != 1e16+4.)
21955 exit(0);
21956 /* both tests show evidence of double rounding */
21957 exit(1);
21960 _ACEOF
21961 rm -f conftest$ac_exeext
21962 if { (ac_try="$ac_link"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21966 esac
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_link") 2>&5
21969 ac_status=$?
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21972 { (case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_try") 2>&5
21978 ac_status=$?
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); }; }; then
21981 ac_cv_x87_double_rounding=no
21982 else
21983 echo "$as_me: program exited with status $ac_status" >&5
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21987 ( exit $ac_status )
21988 ac_cv_x87_double_rounding=yes
21990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21996 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21997 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21998 if test "$ac_cv_x87_double_rounding" = yes
21999 then
22001 cat >>confdefs.h <<\_ACEOF
22002 #define X87_DOUBLE_ROUNDING 1
22003 _ACEOF
22007 # Multiprocessing check for broken sem_getvalue
22008 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22009 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22010 if test "$cross_compiling" = yes; then
22011 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22012 See \`config.log' for more details." >&5
22013 echo "$as_me: error: cannot run test program while cross compiling
22014 See \`config.log' for more details." >&2;}
22015 { (exit 1); exit 1; }; }
22016 else
22017 cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h. */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22024 #include <unistd.h>
22025 #include <fcntl.h>
22026 #include <stdio.h>
22027 #include <semaphore.h>
22028 #include <sys/stat.h>
22030 int main(void){
22031 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22032 int count;
22033 int res;
22034 if(a==SEM_FAILED){
22035 perror("sem_open");
22036 return 1;
22039 res = sem_getvalue(a, &count);
22040 sem_close(a);
22041 return res==-1 ? 1 : 0;
22045 _ACEOF
22046 rm -f conftest$ac_exeext
22047 if { (ac_try="$ac_link"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_link") 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22057 { (case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_try") 2>&5
22063 ac_status=$?
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; }; then
22066 { echo "$as_me:$LINENO: result: no" >&5
22067 echo "${ECHO_T}no" >&6; }
22068 else
22069 echo "$as_me: program exited with status $ac_status" >&5
22070 echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 ( exit $ac_status )
22074 { echo "$as_me:$LINENO: result: yes" >&5
22075 echo "${ECHO_T}yes" >&6; }
22077 cat >>confdefs.h <<\_ACEOF
22078 #define HAVE_BROKEN_SEM_GETVALUE 1
22079 _ACEOF
22083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22088 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22089 # -0. on some architectures.
22090 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22091 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22092 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22094 else
22096 if test "$cross_compiling" = yes; then
22097 ac_cv_tanh_preserves_zero_sign=no
22098 else
22099 cat >conftest.$ac_ext <<_ACEOF
22100 /* confdefs.h. */
22101 _ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22106 #include <math.h>
22107 #include <stdlib.h>
22108 int main() {
22109 /* return 0 if either negative zeros don't exist
22110 on this platform or if negative zeros exist
22111 and tanh(-0.) == -0. */
22112 if (atan2(0., -1.) == atan2(-0., -1.) ||
22113 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22114 else exit(1);
22117 _ACEOF
22118 rm -f conftest$ac_exeext
22119 if { (ac_try="$ac_link"
22120 case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22123 esac
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_link") 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22129 { (case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_try") 2>&5
22135 ac_status=$?
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; }; then
22138 ac_cv_tanh_preserves_zero_sign=yes
22139 else
22140 echo "$as_me: program exited with status $ac_status" >&5
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22144 ( exit $ac_status )
22145 ac_cv_tanh_preserves_zero_sign=no
22147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22153 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22154 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22155 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22156 then
22158 cat >>confdefs.h <<\_ACEOF
22159 #define TANH_PRESERVES_ZERO_SIGN 1
22160 _ACEOF
22172 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
22174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22179 else
22180 cat >conftest.$ac_ext <<_ACEOF
22181 /* confdefs.h. */
22182 _ACEOF
22183 cat confdefs.h >>conftest.$ac_ext
22184 cat >>conftest.$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22188 #define $ac_func innocuous_$ac_func
22190 /* System header to define __stub macros and hopefully few prototypes,
22191 which can conflict with char $ac_func (); below.
22192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22193 <limits.h> exists even on freestanding compilers. */
22195 #ifdef __STDC__
22196 # include <limits.h>
22197 #else
22198 # include <assert.h>
22199 #endif
22201 #undef $ac_func
22203 /* Override any GCC internal prototype to avoid an error.
22204 Use char because int might match the return type of a GCC
22205 builtin and then its argument prototype would still apply. */
22206 #ifdef __cplusplus
22207 extern "C"
22208 #endif
22209 char $ac_func ();
22210 /* The GNU C library defines this for functions which it implements
22211 to always fail with ENOSYS. Some functions are actually named
22212 something starting with __ and the normal name is an alias. */
22213 #if defined __stub_$ac_func || defined __stub___$ac_func
22214 choke me
22215 #endif
22218 main ()
22220 return $ac_func ();
22222 return 0;
22224 _ACEOF
22225 rm -f conftest.$ac_objext conftest$ac_exeext
22226 if { (ac_try="$ac_link"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_link") 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext &&
22242 $as_test_x conftest$ac_exeext; then
22243 eval "$as_ac_var=yes"
22244 else
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22248 eval "$as_ac_var=no"
22251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22252 conftest$ac_exeext conftest.$ac_ext
22254 ac_res=`eval echo '${'$as_ac_var'}'`
22255 { echo "$as_me:$LINENO: result: $ac_res" >&5
22256 echo "${ECHO_T}$ac_res" >&6; }
22257 if test `eval echo '${'$as_ac_var'}'` = yes; then
22258 cat >>confdefs.h <<_ACEOF
22259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22260 _ACEOF
22263 done
22265 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22266 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22267 if test "${ac_cv_have_decl_isinf+set}" = set; then
22268 echo $ECHO_N "(cached) $ECHO_C" >&6
22269 else
22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h. */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276 #include <math.h>
22279 main ()
22281 #ifndef isinf
22282 (void) isinf;
22283 #endif
22286 return 0;
22288 _ACEOF
22289 rm -f conftest.$ac_objext
22290 if { (ac_try="$ac_compile"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_compile") 2>conftest.er1
22297 ac_status=$?
22298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest.$ac_objext; then
22306 ac_cv_have_decl_isinf=yes
22307 else
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ac_cv_have_decl_isinf=no
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22317 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22318 if test $ac_cv_have_decl_isinf = yes; then
22320 cat >>confdefs.h <<_ACEOF
22321 #define HAVE_DECL_ISINF 1
22322 _ACEOF
22325 else
22326 cat >>confdefs.h <<_ACEOF
22327 #define HAVE_DECL_ISINF 0
22328 _ACEOF
22332 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22333 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22334 if test "${ac_cv_have_decl_isnan+set}" = set; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22336 else
22337 cat >conftest.$ac_ext <<_ACEOF
22338 /* confdefs.h. */
22339 _ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22343 #include <math.h>
22346 main ()
22348 #ifndef isnan
22349 (void) isnan;
22350 #endif
22353 return 0;
22355 _ACEOF
22356 rm -f conftest.$ac_objext
22357 if { (ac_try="$ac_compile"
22358 case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22361 esac
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_compile") 2>conftest.er1
22364 ac_status=$?
22365 grep -v '^ *+' conftest.er1 >conftest.err
22366 rm -f conftest.er1
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } && {
22370 test -z "$ac_c_werror_flag" ||
22371 test ! -s conftest.err
22372 } && test -s conftest.$ac_objext; then
22373 ac_cv_have_decl_isnan=yes
22374 else
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22378 ac_cv_have_decl_isnan=no
22381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22383 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22384 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22385 if test $ac_cv_have_decl_isnan = yes; then
22387 cat >>confdefs.h <<_ACEOF
22388 #define HAVE_DECL_ISNAN 1
22389 _ACEOF
22392 else
22393 cat >>confdefs.h <<_ACEOF
22394 #define HAVE_DECL_ISNAN 0
22395 _ACEOF
22399 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22400 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22401 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404 cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h. */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22410 #include <math.h>
22413 main ()
22415 #ifndef isfinite
22416 (void) isfinite;
22417 #endif
22420 return 0;
22422 _ACEOF
22423 rm -f conftest.$ac_objext
22424 if { (ac_try="$ac_compile"
22425 case "(($ac_try" in
22426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22428 esac
22429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430 (eval "$ac_compile") 2>conftest.er1
22431 ac_status=$?
22432 grep -v '^ *+' conftest.er1 >conftest.err
22433 rm -f conftest.er1
22434 cat conftest.err >&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } && {
22437 test -z "$ac_c_werror_flag" ||
22438 test ! -s conftest.err
22439 } && test -s conftest.$ac_objext; then
22440 ac_cv_have_decl_isfinite=yes
22441 else
22442 echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22445 ac_cv_have_decl_isfinite=no
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22450 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22451 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22452 if test $ac_cv_have_decl_isfinite = yes; then
22454 cat >>confdefs.h <<_ACEOF
22455 #define HAVE_DECL_ISFINITE 1
22456 _ACEOF
22459 else
22460 cat >>confdefs.h <<_ACEOF
22461 #define HAVE_DECL_ISFINITE 0
22462 _ACEOF
22469 LIBS=$LIBS_SAVE
22471 # determine what size digit to use for Python's longs
22472 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22473 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22474 # Check whether --enable-big-digits was given.
22475 if test "${enable_big_digits+set}" = set; then
22476 enableval=$enable_big_digits; case $enable_big_digits in
22477 yes)
22478 enable_big_digits=30 ;;
22480 enable_big_digits=15 ;;
22481 15|30)
22484 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22485 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22486 { (exit 1); exit 1; }; } ;;
22487 esac
22488 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22489 echo "${ECHO_T}$enable_big_digits" >&6; }
22491 cat >>confdefs.h <<_ACEOF
22492 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22493 _ACEOF
22496 else
22497 { echo "$as_me:$LINENO: result: no value specified" >&5
22498 echo "${ECHO_T}no value specified" >&6; }
22502 # check for wchar.h
22503 if test "${ac_cv_header_wchar_h+set}" = set; then
22504 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22505 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22506 if test "${ac_cv_header_wchar_h+set}" = set; then
22507 echo $ECHO_N "(cached) $ECHO_C" >&6
22509 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22510 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22511 else
22512 # Is the header compilable?
22513 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22514 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22515 cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h. */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 $ac_includes_default
22522 #include <wchar.h>
22523 _ACEOF
22524 rm -f conftest.$ac_objext
22525 if { (ac_try="$ac_compile"
22526 case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_compile") 2>conftest.er1
22532 ac_status=$?
22533 grep -v '^ *+' conftest.er1 >conftest.err
22534 rm -f conftest.er1
22535 cat conftest.err >&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } && {
22538 test -z "$ac_c_werror_flag" ||
22539 test ! -s conftest.err
22540 } && test -s conftest.$ac_objext; then
22541 ac_header_compiler=yes
22542 else
22543 echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22546 ac_header_compiler=no
22549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22551 echo "${ECHO_T}$ac_header_compiler" >&6; }
22553 # Is the header present?
22554 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22555 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22556 cat >conftest.$ac_ext <<_ACEOF
22557 /* confdefs.h. */
22558 _ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h. */
22562 #include <wchar.h>
22563 _ACEOF
22564 if { (ac_try="$ac_cpp conftest.$ac_ext"
22565 case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22571 ac_status=$?
22572 grep -v '^ *+' conftest.er1 >conftest.err
22573 rm -f conftest.er1
22574 cat conftest.err >&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } >/dev/null && {
22577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22578 test ! -s conftest.err
22579 }; then
22580 ac_header_preproc=yes
22581 else
22582 echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22585 ac_header_preproc=no
22588 rm -f conftest.err conftest.$ac_ext
22589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22590 echo "${ECHO_T}$ac_header_preproc" >&6; }
22592 # So? What about this header?
22593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22594 yes:no: )
22595 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22596 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22597 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22598 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22599 ac_header_preproc=yes
22601 no:yes:* )
22602 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22603 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22604 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22605 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22606 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22607 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22608 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22609 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22610 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22611 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22612 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22613 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22614 ( cat <<\_ASBOX
22615 ## ------------------------------------------------ ##
22616 ## Report this to http://www.python.org/python-bugs ##
22617 ## ------------------------------------------------ ##
22618 _ASBOX
22619 ) | sed "s/^/$as_me: WARNING: /" >&2
22621 esac
22622 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22623 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22624 if test "${ac_cv_header_wchar_h+set}" = set; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 else
22627 ac_cv_header_wchar_h=$ac_header_preproc
22629 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22630 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22633 if test $ac_cv_header_wchar_h = yes; then
22636 cat >>confdefs.h <<\_ACEOF
22637 #define HAVE_WCHAR_H 1
22638 _ACEOF
22640 wchar_h="yes"
22642 else
22643 wchar_h="no"
22649 # determine wchar_t size
22650 if test "$wchar_h" = yes
22651 then
22652 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22653 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22654 if test "${ac_cv_type_wchar_t+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657 cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h. */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663 #include <wchar.h>
22665 typedef wchar_t ac__type_new_;
22667 main ()
22669 if ((ac__type_new_ *) 0)
22670 return 0;
22671 if (sizeof (ac__type_new_))
22672 return 0;
22674 return 0;
22676 _ACEOF
22677 rm -f conftest.$ac_objext
22678 if { (ac_try="$ac_compile"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22682 esac
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684 (eval "$ac_compile") 2>conftest.er1
22685 ac_status=$?
22686 grep -v '^ *+' conftest.er1 >conftest.err
22687 rm -f conftest.er1
22688 cat conftest.err >&5
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } && {
22691 test -z "$ac_c_werror_flag" ||
22692 test ! -s conftest.err
22693 } && test -s conftest.$ac_objext; then
22694 ac_cv_type_wchar_t=yes
22695 else
22696 echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22699 ac_cv_type_wchar_t=no
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22705 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22707 # The cast to long int works around a bug in the HP C Compiler
22708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22710 # This bug is HP SR number 8606223364.
22711 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22712 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22713 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716 if test "$cross_compiling" = yes; then
22717 # Depending upon the size, compute the lo and hi bounds.
22718 cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h. */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 #include <wchar.h>
22726 typedef wchar_t ac__type_sizeof_;
22728 main ()
22730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22731 test_array [0] = 0
22734 return 0;
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22745 ac_status=$?
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_lo=0 ac_mid=0
22755 while :; do
22756 cat >conftest.$ac_ext <<_ACEOF
22757 /* confdefs.h. */
22758 _ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h. */
22762 #include <wchar.h>
22764 typedef wchar_t ac__type_sizeof_;
22766 main ()
22768 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22769 test_array [0] = 0
22772 return 0;
22774 _ACEOF
22775 rm -f conftest.$ac_objext
22776 if { (ac_try="$ac_compile"
22777 case "(($ac_try" in
22778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22779 *) ac_try_echo=$ac_try;;
22780 esac
22781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22782 (eval "$ac_compile") 2>conftest.er1
22783 ac_status=$?
22784 grep -v '^ *+' conftest.er1 >conftest.err
22785 rm -f conftest.er1
22786 cat conftest.err >&5
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } && {
22789 test -z "$ac_c_werror_flag" ||
22790 test ! -s conftest.err
22791 } && test -s conftest.$ac_objext; then
22792 ac_hi=$ac_mid; break
22793 else
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22797 ac_lo=`expr $ac_mid + 1`
22798 if test $ac_lo -le $ac_mid; then
22799 ac_lo= ac_hi=
22800 break
22802 ac_mid=`expr 2 '*' $ac_mid + 1`
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806 done
22807 else
22808 echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h. */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 #include <wchar.h>
22819 typedef wchar_t ac__type_sizeof_;
22821 main ()
22823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22824 test_array [0] = 0
22827 return 0;
22829 _ACEOF
22830 rm -f conftest.$ac_objext
22831 if { (ac_try="$ac_compile"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22835 esac
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22838 ac_status=$?
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest.$ac_objext; then
22847 ac_hi=-1 ac_mid=-1
22848 while :; do
22849 cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h. */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855 #include <wchar.h>
22857 typedef wchar_t ac__type_sizeof_;
22859 main ()
22861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22862 test_array [0] = 0
22865 return 0;
22867 _ACEOF
22868 rm -f conftest.$ac_objext
22869 if { (ac_try="$ac_compile"
22870 case "(($ac_try" in
22871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22873 esac
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875 (eval "$ac_compile") 2>conftest.er1
22876 ac_status=$?
22877 grep -v '^ *+' conftest.er1 >conftest.err
22878 rm -f conftest.er1
22879 cat conftest.err >&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } && {
22882 test -z "$ac_c_werror_flag" ||
22883 test ! -s conftest.err
22884 } && test -s conftest.$ac_objext; then
22885 ac_lo=$ac_mid; break
22886 else
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22890 ac_hi=`expr '(' $ac_mid ')' - 1`
22891 if test $ac_mid -le $ac_hi; then
22892 ac_lo= ac_hi=
22893 break
22895 ac_mid=`expr 2 '*' $ac_mid`
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 done
22900 else
22901 echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22904 ac_lo= ac_hi=
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22911 # Binary search between lo and hi bounds.
22912 while test "x$ac_lo" != "x$ac_hi"; do
22913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22914 cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h. */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 #include <wchar.h>
22922 typedef wchar_t ac__type_sizeof_;
22924 main ()
22926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22927 test_array [0] = 0
22930 return 0;
22932 _ACEOF
22933 rm -f conftest.$ac_objext
22934 if { (ac_try="$ac_compile"
22935 case "(($ac_try" in
22936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22938 esac
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_compile") 2>conftest.er1
22941 ac_status=$?
22942 grep -v '^ *+' conftest.er1 >conftest.err
22943 rm -f conftest.er1
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && {
22947 test -z "$ac_c_werror_flag" ||
22948 test ! -s conftest.err
22949 } && test -s conftest.$ac_objext; then
22950 ac_hi=$ac_mid
22951 else
22952 echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22955 ac_lo=`expr '(' $ac_mid ')' + 1`
22958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22959 done
22960 case $ac_lo in
22961 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22962 '') if test "$ac_cv_type_wchar_t" = yes; then
22963 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22964 See \`config.log' for more details." >&5
22965 echo "$as_me: error: cannot compute sizeof (wchar_t)
22966 See \`config.log' for more details." >&2;}
22967 { (exit 77); exit 77; }; }
22968 else
22969 ac_cv_sizeof_wchar_t=0
22970 fi ;;
22971 esac
22972 else
22973 cat >conftest.$ac_ext <<_ACEOF
22974 /* confdefs.h. */
22975 _ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22979 #include <wchar.h>
22981 typedef wchar_t ac__type_sizeof_;
22982 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22983 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22984 #include <stdio.h>
22985 #include <stdlib.h>
22987 main ()
22990 FILE *f = fopen ("conftest.val", "w");
22991 if (! f)
22992 return 1;
22993 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22995 long int i = longval ();
22996 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22997 return 1;
22998 fprintf (f, "%ld\n", i);
23000 else
23002 unsigned long int i = ulongval ();
23003 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23004 return 1;
23005 fprintf (f, "%lu\n", i);
23007 return ferror (f) || fclose (f) != 0;
23010 return 0;
23012 _ACEOF
23013 rm -f conftest$ac_exeext
23014 if { (ac_try="$ac_link"
23015 case "(($ac_try" in
23016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017 *) ac_try_echo=$ac_try;;
23018 esac
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020 (eval "$ac_link") 2>&5
23021 ac_status=$?
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23024 { (case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23027 esac
23028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029 (eval "$ac_try") 2>&5
23030 ac_status=$?
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 ac_cv_sizeof_wchar_t=`cat conftest.val`
23034 else
23035 echo "$as_me: program exited with status $ac_status" >&5
23036 echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23039 ( exit $ac_status )
23040 if test "$ac_cv_type_wchar_t" = yes; then
23041 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23042 See \`config.log' for more details." >&5
23043 echo "$as_me: error: cannot compute sizeof (wchar_t)
23044 See \`config.log' for more details." >&2;}
23045 { (exit 77); exit 77; }; }
23046 else
23047 ac_cv_sizeof_wchar_t=0
23050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23052 rm -f conftest.val
23054 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23055 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23059 cat >>confdefs.h <<_ACEOF
23060 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23061 _ACEOF
23066 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23067 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23068 have_ucs4_tcl=no
23069 cat >conftest.$ac_ext <<_ACEOF
23070 /* confdefs.h. */
23071 _ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h. */
23076 #include <tcl.h>
23077 #if TCL_UTF_MAX != 6
23078 # error "NOT UCS4_TCL"
23079 #endif
23081 main ()
23085 return 0;
23087 _ACEOF
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23093 esac
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_compile") 2>conftest.er1
23096 ac_status=$?
23097 grep -v '^ *+' conftest.er1 >conftest.err
23098 rm -f conftest.er1
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } && {
23102 test -z "$ac_c_werror_flag" ||
23103 test ! -s conftest.err
23104 } && test -s conftest.$ac_objext; then
23107 cat >>confdefs.h <<\_ACEOF
23108 #define HAVE_UCS4_TCL 1
23109 _ACEOF
23111 have_ucs4_tcl=yes
23113 else
23114 echo "$as_me: failed program was:" >&5
23115 sed 's/^/| /' conftest.$ac_ext >&5
23120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23121 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23122 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23124 # check whether wchar_t is signed or not
23125 if test "$wchar_h" = yes
23126 then
23127 # check whether wchar_t is signed or not
23128 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23129 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23130 if test "${ac_cv_wchar_t_signed+set}" = set; then
23131 echo $ECHO_N "(cached) $ECHO_C" >&6
23132 else
23134 if test "$cross_compiling" = yes; then
23135 ac_cv_wchar_t_signed=yes
23136 else
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h. */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23144 #include <wchar.h>
23145 int main()
23147 /* Success: exit code 0 */
23148 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23151 _ACEOF
23152 rm -f conftest$ac_exeext
23153 if { (ac_try="$ac_link"
23154 case "(($ac_try" in
23155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23156 *) ac_try_echo=$ac_try;;
23157 esac
23158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23159 (eval "$ac_link") 2>&5
23160 ac_status=$?
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23163 { (case "(($ac_try" in
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165 *) ac_try_echo=$ac_try;;
23166 esac
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168 (eval "$ac_try") 2>&5
23169 ac_status=$?
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); }; }; then
23172 ac_cv_wchar_t_signed=yes
23173 else
23174 echo "$as_me: program exited with status $ac_status" >&5
23175 echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23178 ( exit $ac_status )
23179 ac_cv_wchar_t_signed=no
23181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23187 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23188 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23191 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23192 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23193 # Check whether --enable-unicode was given.
23194 if test "${enable_unicode+set}" = set; then
23195 enableval=$enable_unicode;
23196 else
23197 enable_unicode=yes
23201 if test $enable_unicode = yes
23202 then
23203 # Without any arguments, Py_UNICODE defaults to two-byte mode
23204 case "$have_ucs4_tcl" in
23205 yes) enable_unicode="ucs4"
23207 *) enable_unicode="ucs2"
23209 esac
23214 case "$enable_unicode" in
23215 ucs2) unicode_size="2"
23216 cat >>confdefs.h <<\_ACEOF
23217 #define Py_UNICODE_SIZE 2
23218 _ACEOF
23221 ucs4) unicode_size="4"
23222 cat >>confdefs.h <<\_ACEOF
23223 #define Py_UNICODE_SIZE 4
23224 _ACEOF
23227 esac
23233 if test "$enable_unicode" = "no"
23234 then
23235 UNICODE_OBJS=""
23236 { echo "$as_me:$LINENO: result: not used" >&5
23237 echo "${ECHO_T}not used" >&6; }
23238 else
23239 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
23241 cat >>confdefs.h <<\_ACEOF
23242 #define Py_USING_UNICODE 1
23243 _ACEOF
23246 # wchar_t is only usable if it maps to an unsigned type
23247 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23248 -a "$ac_cv_wchar_t_signed" = "no"
23249 then
23250 PY_UNICODE_TYPE="wchar_t"
23252 cat >>confdefs.h <<\_ACEOF
23253 #define HAVE_USABLE_WCHAR_T 1
23254 _ACEOF
23256 cat >>confdefs.h <<\_ACEOF
23257 #define PY_UNICODE_TYPE wchar_t
23258 _ACEOF
23260 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23261 then
23262 PY_UNICODE_TYPE="unsigned short"
23263 cat >>confdefs.h <<\_ACEOF
23264 #define PY_UNICODE_TYPE unsigned short
23265 _ACEOF
23267 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23268 then
23269 PY_UNICODE_TYPE="unsigned long"
23270 cat >>confdefs.h <<\_ACEOF
23271 #define PY_UNICODE_TYPE unsigned long
23272 _ACEOF
23274 else
23275 PY_UNICODE_TYPE="no type found"
23277 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23278 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23281 # check for endianness
23282 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23283 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23284 if test "${ac_cv_c_bigendian+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23286 else
23287 # See if sys/param.h defines the BYTE_ORDER macro.
23288 cat >conftest.$ac_ext <<_ACEOF
23289 /* confdefs.h. */
23290 _ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h. */
23294 #include <sys/types.h>
23295 #include <sys/param.h>
23298 main ()
23300 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23301 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23302 bogus endian macros
23303 #endif
23306 return 0;
23308 _ACEOF
23309 rm -f conftest.$ac_objext
23310 if { (ac_try="$ac_compile"
23311 case "(($ac_try" in
23312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313 *) ac_try_echo=$ac_try;;
23314 esac
23315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316 (eval "$ac_compile") 2>conftest.er1
23317 ac_status=$?
23318 grep -v '^ *+' conftest.er1 >conftest.err
23319 rm -f conftest.er1
23320 cat conftest.err >&5
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); } && {
23323 test -z "$ac_c_werror_flag" ||
23324 test ! -s conftest.err
23325 } && test -s conftest.$ac_objext; then
23326 # It does; now see whether it defined to BIG_ENDIAN or not.
23327 cat >conftest.$ac_ext <<_ACEOF
23328 /* confdefs.h. */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 #include <sys/types.h>
23334 #include <sys/param.h>
23337 main ()
23339 #if BYTE_ORDER != BIG_ENDIAN
23340 not big endian
23341 #endif
23344 return 0;
23346 _ACEOF
23347 rm -f conftest.$ac_objext
23348 if { (ac_try="$ac_compile"
23349 case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23352 esac
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_compile") 2>conftest.er1
23355 ac_status=$?
23356 grep -v '^ *+' conftest.er1 >conftest.err
23357 rm -f conftest.er1
23358 cat conftest.err >&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } && {
23361 test -z "$ac_c_werror_flag" ||
23362 test ! -s conftest.err
23363 } && test -s conftest.$ac_objext; then
23364 ac_cv_c_bigendian=yes
23365 else
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23369 ac_cv_c_bigendian=no
23372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23373 else
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23377 # It does not; compile a test program.
23378 if test "$cross_compiling" = yes; then
23379 # try to guess the endianness by grepping values into an object file
23380 ac_cv_c_bigendian=unknown
23381 cat >conftest.$ac_ext <<_ACEOF
23382 /* confdefs.h. */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h. */
23387 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23388 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23389 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23390 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23391 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23392 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23394 main ()
23396 _ascii (); _ebcdic ();
23398 return 0;
23400 _ACEOF
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23419 ac_cv_c_bigendian=yes
23421 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23422 if test "$ac_cv_c_bigendian" = unknown; then
23423 ac_cv_c_bigendian=no
23424 else
23425 # finding both strings is unlikely to happen, but who knows?
23426 ac_cv_c_bigendian=unknown
23429 else
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23437 else
23438 cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h. */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 $ac_includes_default
23446 main ()
23449 /* Are we little or big endian? From Harbison&Steele. */
23450 union
23452 long int l;
23453 char c[sizeof (long int)];
23454 } u;
23455 u.l = 1;
23456 return u.c[sizeof (long int) - 1] == 1;
23459 return 0;
23461 _ACEOF
23462 rm -f conftest$ac_exeext
23463 if { (ac_try="$ac_link"
23464 case "(($ac_try" in
23465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466 *) ac_try_echo=$ac_try;;
23467 esac
23468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469 (eval "$ac_link") 2>&5
23470 ac_status=$?
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23473 { (case "(($ac_try" in
23474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475 *) ac_try_echo=$ac_try;;
23476 esac
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478 (eval "$ac_try") 2>&5
23479 ac_status=$?
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 ac_cv_c_bigendian=no
23483 else
23484 echo "$as_me: program exited with status $ac_status" >&5
23485 echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23488 ( exit $ac_status )
23489 ac_cv_c_bigendian=yes
23491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23500 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23501 case $ac_cv_c_bigendian in
23502 yes)
23504 cat >>confdefs.h <<\_ACEOF
23505 #define WORDS_BIGENDIAN 1
23506 _ACEOF
23511 { { echo "$as_me:$LINENO: error: unknown endianness
23512 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23513 echo "$as_me: error: unknown endianness
23514 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23515 { (exit 1); exit 1; }; } ;;
23516 esac
23519 # Check whether right shifting a negative integer extends the sign bit
23520 # or fills with zeros (like the Cray J90, according to Tim Peters).
23521 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23522 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23523 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23525 else
23527 if test "$cross_compiling" = yes; then
23528 ac_cv_rshift_extends_sign=yes
23529 else
23530 cat >conftest.$ac_ext <<_ACEOF
23531 /* confdefs.h. */
23532 _ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h. */
23537 int main()
23539 exit(((-1)>>3 == -1) ? 0 : 1);
23542 _ACEOF
23543 rm -f conftest$ac_exeext
23544 if { (ac_try="$ac_link"
23545 case "(($ac_try" in
23546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547 *) ac_try_echo=$ac_try;;
23548 esac
23549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23550 (eval "$ac_link") 2>&5
23551 ac_status=$?
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23554 { (case "(($ac_try" in
23555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23557 esac
23558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23559 (eval "$ac_try") 2>&5
23560 ac_status=$?
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; }; then
23563 ac_cv_rshift_extends_sign=yes
23564 else
23565 echo "$as_me: program exited with status $ac_status" >&5
23566 echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 ( exit $ac_status )
23570 ac_cv_rshift_extends_sign=no
23572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23578 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23579 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23580 if test "$ac_cv_rshift_extends_sign" = no
23581 then
23583 cat >>confdefs.h <<\_ACEOF
23584 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23585 _ACEOF
23589 # check for getc_unlocked and related locking functions
23590 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23591 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23592 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23593 echo $ECHO_N "(cached) $ECHO_C" >&6
23594 else
23596 cat >conftest.$ac_ext <<_ACEOF
23597 /* confdefs.h. */
23598 _ACEOF
23599 cat confdefs.h >>conftest.$ac_ext
23600 cat >>conftest.$ac_ext <<_ACEOF
23601 /* end confdefs.h. */
23602 #include <stdio.h>
23604 main ()
23607 FILE *f = fopen("/dev/null", "r");
23608 flockfile(f);
23609 getc_unlocked(f);
23610 funlockfile(f);
23613 return 0;
23615 _ACEOF
23616 rm -f conftest.$ac_objext conftest$ac_exeext
23617 if { (ac_try="$ac_link"
23618 case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23621 esac
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_link") 2>conftest.er1
23624 ac_status=$?
23625 grep -v '^ *+' conftest.er1 >conftest.err
23626 rm -f conftest.er1
23627 cat conftest.err >&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } && {
23630 test -z "$ac_c_werror_flag" ||
23631 test ! -s conftest.err
23632 } && test -s conftest$ac_exeext &&
23633 $as_test_x conftest$ac_exeext; then
23634 ac_cv_have_getc_unlocked=yes
23635 else
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 ac_cv_have_getc_unlocked=no
23642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23643 conftest$ac_exeext conftest.$ac_ext
23646 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23647 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23648 if test "$ac_cv_have_getc_unlocked" = yes
23649 then
23651 cat >>confdefs.h <<\_ACEOF
23652 #define HAVE_GETC_UNLOCKED 1
23653 _ACEOF
23657 # check where readline lives
23658 # save the value of LIBS so we don't actually link Python with readline
23659 LIBS_no_readline=$LIBS
23661 # On some systems we need to link readline to a termcap compatible
23662 # library. NOTE: Keep the precedence of listed libraries synchronised
23663 # with setup.py.
23664 py_cv_lib_readline=no
23665 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23666 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23667 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23668 if test -z "$py_libtermcap"; then
23669 READLINE_LIBS="-lreadline"
23670 else
23671 READLINE_LIBS="-lreadline -l$py_libtermcap"
23673 LIBS="$READLINE_LIBS $LIBS_no_readline"
23674 cat >conftest.$ac_ext <<_ACEOF
23675 /* confdefs.h. */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23681 /* Override any GCC internal prototype to avoid an error.
23682 Use char because int might match the return type of a GCC
23683 builtin and then its argument prototype would still apply. */
23684 #ifdef __cplusplus
23685 extern "C"
23686 #endif
23687 char readline ();
23689 main ()
23691 return readline ();
23693 return 0;
23695 _ACEOF
23696 rm -f conftest.$ac_objext conftest$ac_exeext
23697 if { (ac_try="$ac_link"
23698 case "(($ac_try" in
23699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23700 *) ac_try_echo=$ac_try;;
23701 esac
23702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23703 (eval "$ac_link") 2>conftest.er1
23704 ac_status=$?
23705 grep -v '^ *+' conftest.er1 >conftest.err
23706 rm -f conftest.er1
23707 cat conftest.err >&5
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); } && {
23710 test -z "$ac_c_werror_flag" ||
23711 test ! -s conftest.err
23712 } && test -s conftest$ac_exeext &&
23713 $as_test_x conftest$ac_exeext; then
23714 py_cv_lib_readline=yes
23715 else
23716 echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23723 conftest$ac_exeext conftest.$ac_ext
23724 if test $py_cv_lib_readline = yes; then
23725 break
23727 done
23728 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23729 #AC_SUBST([READLINE_LIBS])
23730 if test $py_cv_lib_readline = no; then
23731 { echo "$as_me:$LINENO: result: none" >&5
23732 echo "${ECHO_T}none" >&6; }
23733 else
23734 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23735 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23737 cat >>confdefs.h <<\_ACEOF
23738 #define HAVE_LIBREADLINE 1
23739 _ACEOF
23743 # check for readline 2.1
23744 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23745 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23746 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23747 echo $ECHO_N "(cached) $ECHO_C" >&6
23748 else
23749 ac_check_lib_save_LIBS=$LIBS
23750 LIBS="-lreadline $READLINE_LIBS $LIBS"
23751 cat >conftest.$ac_ext <<_ACEOF
23752 /* confdefs.h. */
23753 _ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23758 /* Override any GCC internal prototype to avoid an error.
23759 Use char because int might match the return type of a GCC
23760 builtin and then its argument prototype would still apply. */
23761 #ifdef __cplusplus
23762 extern "C"
23763 #endif
23764 char rl_callback_handler_install ();
23766 main ()
23768 return rl_callback_handler_install ();
23770 return 0;
23772 _ACEOF
23773 rm -f conftest.$ac_objext conftest$ac_exeext
23774 if { (ac_try="$ac_link"
23775 case "(($ac_try" in
23776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777 *) ac_try_echo=$ac_try;;
23778 esac
23779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23780 (eval "$ac_link") 2>conftest.er1
23781 ac_status=$?
23782 grep -v '^ *+' conftest.er1 >conftest.err
23783 rm -f conftest.er1
23784 cat conftest.err >&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } && {
23787 test -z "$ac_c_werror_flag" ||
23788 test ! -s conftest.err
23789 } && test -s conftest$ac_exeext &&
23790 $as_test_x conftest$ac_exeext; then
23791 ac_cv_lib_readline_rl_callback_handler_install=yes
23792 else
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 ac_cv_lib_readline_rl_callback_handler_install=no
23799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23800 conftest$ac_exeext conftest.$ac_ext
23801 LIBS=$ac_check_lib_save_LIBS
23803 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23804 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23805 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23807 cat >>confdefs.h <<\_ACEOF
23808 #define HAVE_RL_CALLBACK 1
23809 _ACEOF
23814 # check for readline 2.2
23815 cat >conftest.$ac_ext <<_ACEOF
23816 /* confdefs.h. */
23817 _ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23821 #include <readline/readline.h>
23822 _ACEOF
23823 if { (ac_try="$ac_cpp conftest.$ac_ext"
23824 case "(($ac_try" in
23825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23826 *) ac_try_echo=$ac_try;;
23827 esac
23828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23830 ac_status=$?
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } >/dev/null && {
23836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23837 test ! -s conftest.err
23838 }; then
23839 have_readline=yes
23840 else
23841 echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23844 have_readline=no
23847 rm -f conftest.err conftest.$ac_ext
23848 if test $have_readline = yes
23849 then
23850 cat >conftest.$ac_ext <<_ACEOF
23851 /* confdefs.h. */
23852 _ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h. */
23856 #include <readline/readline.h>
23858 _ACEOF
23859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23860 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23862 cat >>confdefs.h <<\_ACEOF
23863 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23864 _ACEOF
23867 rm -f conftest*
23871 # check for readline 4.0
23872 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23873 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23874 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23876 else
23877 ac_check_lib_save_LIBS=$LIBS
23878 LIBS="-lreadline $READLINE_LIBS $LIBS"
23879 cat >conftest.$ac_ext <<_ACEOF
23880 /* confdefs.h. */
23881 _ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23886 /* Override any GCC internal prototype to avoid an error.
23887 Use char because int might match the return type of a GCC
23888 builtin and then its argument prototype would still apply. */
23889 #ifdef __cplusplus
23890 extern "C"
23891 #endif
23892 char rl_pre_input_hook ();
23894 main ()
23896 return rl_pre_input_hook ();
23898 return 0;
23900 _ACEOF
23901 rm -f conftest.$ac_objext conftest$ac_exeext
23902 if { (ac_try="$ac_link"
23903 case "(($ac_try" in
23904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905 *) ac_try_echo=$ac_try;;
23906 esac
23907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23908 (eval "$ac_link") 2>conftest.er1
23909 ac_status=$?
23910 grep -v '^ *+' conftest.er1 >conftest.err
23911 rm -f conftest.er1
23912 cat conftest.err >&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && {
23915 test -z "$ac_c_werror_flag" ||
23916 test ! -s conftest.err
23917 } && test -s conftest$ac_exeext &&
23918 $as_test_x conftest$ac_exeext; then
23919 ac_cv_lib_readline_rl_pre_input_hook=yes
23920 else
23921 echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23924 ac_cv_lib_readline_rl_pre_input_hook=no
23927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23928 conftest$ac_exeext conftest.$ac_ext
23929 LIBS=$ac_check_lib_save_LIBS
23931 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23932 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23933 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23935 cat >>confdefs.h <<\_ACEOF
23936 #define HAVE_RL_PRE_INPUT_HOOK 1
23937 _ACEOF
23942 # also in 4.0
23943 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23944 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23945 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23947 else
23948 ac_check_lib_save_LIBS=$LIBS
23949 LIBS="-lreadline $READLINE_LIBS $LIBS"
23950 cat >conftest.$ac_ext <<_ACEOF
23951 /* confdefs.h. */
23952 _ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23957 /* Override any GCC internal prototype to avoid an error.
23958 Use char because int might match the return type of a GCC
23959 builtin and then its argument prototype would still apply. */
23960 #ifdef __cplusplus
23961 extern "C"
23962 #endif
23963 char rl_completion_display_matches_hook ();
23965 main ()
23967 return rl_completion_display_matches_hook ();
23969 return 0;
23971 _ACEOF
23972 rm -f conftest.$ac_objext conftest$ac_exeext
23973 if { (ac_try="$ac_link"
23974 case "(($ac_try" in
23975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976 *) ac_try_echo=$ac_try;;
23977 esac
23978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23979 (eval "$ac_link") 2>conftest.er1
23980 ac_status=$?
23981 grep -v '^ *+' conftest.er1 >conftest.err
23982 rm -f conftest.er1
23983 cat conftest.err >&5
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } && {
23986 test -z "$ac_c_werror_flag" ||
23987 test ! -s conftest.err
23988 } && test -s conftest$ac_exeext &&
23989 $as_test_x conftest$ac_exeext; then
23990 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23991 else
23992 echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23995 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23999 conftest$ac_exeext conftest.$ac_ext
24000 LIBS=$ac_check_lib_save_LIBS
24002 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24003 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24004 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24006 cat >>confdefs.h <<\_ACEOF
24007 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24008 _ACEOF
24013 # check for readline 4.2
24014 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24015 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24016 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24017 echo $ECHO_N "(cached) $ECHO_C" >&6
24018 else
24019 ac_check_lib_save_LIBS=$LIBS
24020 LIBS="-lreadline $READLINE_LIBS $LIBS"
24021 cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h. */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24028 /* Override any GCC internal prototype to avoid an error.
24029 Use char because int might match the return type of a GCC
24030 builtin and then its argument prototype would still apply. */
24031 #ifdef __cplusplus
24032 extern "C"
24033 #endif
24034 char rl_completion_matches ();
24036 main ()
24038 return rl_completion_matches ();
24040 return 0;
24042 _ACEOF
24043 rm -f conftest.$ac_objext conftest$ac_exeext
24044 if { (ac_try="$ac_link"
24045 case "(($ac_try" in
24046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047 *) ac_try_echo=$ac_try;;
24048 esac
24049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24050 (eval "$ac_link") 2>conftest.er1
24051 ac_status=$?
24052 grep -v '^ *+' conftest.er1 >conftest.err
24053 rm -f conftest.er1
24054 cat conftest.err >&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); } && {
24057 test -z "$ac_c_werror_flag" ||
24058 test ! -s conftest.err
24059 } && test -s conftest$ac_exeext &&
24060 $as_test_x conftest$ac_exeext; then
24061 ac_cv_lib_readline_rl_completion_matches=yes
24062 else
24063 echo "$as_me: failed program was:" >&5
24064 sed 's/^/| /' conftest.$ac_ext >&5
24066 ac_cv_lib_readline_rl_completion_matches=no
24069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24070 conftest$ac_exeext conftest.$ac_ext
24071 LIBS=$ac_check_lib_save_LIBS
24073 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24074 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24075 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24077 cat >>confdefs.h <<\_ACEOF
24078 #define HAVE_RL_COMPLETION_MATCHES 1
24079 _ACEOF
24084 # also in readline 4.2
24085 cat >conftest.$ac_ext <<_ACEOF
24086 /* confdefs.h. */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24091 #include <readline/readline.h>
24092 _ACEOF
24093 if { (ac_try="$ac_cpp conftest.$ac_ext"
24094 case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24097 esac
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24100 ac_status=$?
24101 grep -v '^ *+' conftest.er1 >conftest.err
24102 rm -f conftest.er1
24103 cat conftest.err >&5
24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); } >/dev/null && {
24106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24107 test ! -s conftest.err
24108 }; then
24109 have_readline=yes
24110 else
24111 echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24114 have_readline=no
24117 rm -f conftest.err conftest.$ac_ext
24118 if test $have_readline = yes
24119 then
24120 cat >conftest.$ac_ext <<_ACEOF
24121 /* confdefs.h. */
24122 _ACEOF
24123 cat confdefs.h >>conftest.$ac_ext
24124 cat >>conftest.$ac_ext <<_ACEOF
24125 /* end confdefs.h. */
24126 #include <readline/readline.h>
24128 _ACEOF
24129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24130 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24132 cat >>confdefs.h <<\_ACEOF
24133 #define HAVE_RL_CATCH_SIGNAL 1
24134 _ACEOF
24137 rm -f conftest*
24141 # End of readline checks: restore LIBS
24142 LIBS=$LIBS_no_readline
24144 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24145 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24146 if test "${ac_cv_broken_nice+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24148 else
24150 if test "$cross_compiling" = yes; then
24151 ac_cv_broken_nice=no
24152 else
24153 cat >conftest.$ac_ext <<_ACEOF
24154 /* confdefs.h. */
24155 _ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24160 int main()
24162 int val1 = nice(1);
24163 if (val1 != -1 && val1 == nice(2))
24164 exit(0);
24165 exit(1);
24168 _ACEOF
24169 rm -f conftest$ac_exeext
24170 if { (ac_try="$ac_link"
24171 case "(($ac_try" in
24172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24173 *) ac_try_echo=$ac_try;;
24174 esac
24175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24176 (eval "$ac_link") 2>&5
24177 ac_status=$?
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24180 { (case "(($ac_try" in
24181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24182 *) ac_try_echo=$ac_try;;
24183 esac
24184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24185 (eval "$ac_try") 2>&5
24186 ac_status=$?
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); }; }; then
24189 ac_cv_broken_nice=yes
24190 else
24191 echo "$as_me: program exited with status $ac_status" >&5
24192 echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24195 ( exit $ac_status )
24196 ac_cv_broken_nice=no
24198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24204 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24205 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24206 if test "$ac_cv_broken_nice" = yes
24207 then
24209 cat >>confdefs.h <<\_ACEOF
24210 #define HAVE_BROKEN_NICE 1
24211 _ACEOF
24215 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24216 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24217 if test "$cross_compiling" = yes; then
24218 ac_cv_broken_poll=no
24219 else
24220 cat >conftest.$ac_ext <<_ACEOF
24221 /* confdefs.h. */
24222 _ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h. */
24227 #include <poll.h>
24229 int main (void)
24231 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24233 close (42);
24235 int poll_test = poll (&poll_struct, 1, 0);
24237 if (poll_test < 0)
24239 exit(0);
24241 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24243 exit(0);
24245 else
24247 exit(1);
24251 _ACEOF
24252 rm -f conftest$ac_exeext
24253 if { (ac_try="$ac_link"
24254 case "(($ac_try" in
24255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24256 *) ac_try_echo=$ac_try;;
24257 esac
24258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24259 (eval "$ac_link") 2>&5
24260 ac_status=$?
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24263 { (case "(($ac_try" in
24264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265 *) ac_try_echo=$ac_try;;
24266 esac
24267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24268 (eval "$ac_try") 2>&5
24269 ac_status=$?
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); }; }; then
24272 ac_cv_broken_poll=yes
24273 else
24274 echo "$as_me: program exited with status $ac_status" >&5
24275 echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24278 ( exit $ac_status )
24279 ac_cv_broken_poll=no
24281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24285 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24286 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24287 if test "$ac_cv_broken_poll" = yes
24288 then
24290 cat >>confdefs.h <<\_ACEOF
24291 #define HAVE_BROKEN_POLL 1
24292 _ACEOF
24296 # Before we can test tzset, we need to check if struct tm has a tm_zone
24297 # (which is not required by ISO C or UNIX spec) and/or if we support
24298 # tzname[]
24299 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24300 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24301 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24302 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 else
24304 cat >conftest.$ac_ext <<_ACEOF
24305 /* confdefs.h. */
24306 _ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h. */
24310 #include <sys/types.h>
24311 #include <$ac_cv_struct_tm>
24315 main ()
24317 static struct tm ac_aggr;
24318 if (ac_aggr.tm_zone)
24319 return 0;
24321 return 0;
24323 _ACEOF
24324 rm -f conftest.$ac_objext
24325 if { (ac_try="$ac_compile"
24326 case "(($ac_try" in
24327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328 *) ac_try_echo=$ac_try;;
24329 esac
24330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24331 (eval "$ac_compile") 2>conftest.er1
24332 ac_status=$?
24333 grep -v '^ *+' conftest.er1 >conftest.err
24334 rm -f conftest.er1
24335 cat conftest.err >&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } && {
24338 test -z "$ac_c_werror_flag" ||
24339 test ! -s conftest.err
24340 } && test -s conftest.$ac_objext; then
24341 ac_cv_member_struct_tm_tm_zone=yes
24342 else
24343 echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24346 cat >conftest.$ac_ext <<_ACEOF
24347 /* confdefs.h. */
24348 _ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h. */
24352 #include <sys/types.h>
24353 #include <$ac_cv_struct_tm>
24357 main ()
24359 static struct tm ac_aggr;
24360 if (sizeof ac_aggr.tm_zone)
24361 return 0;
24363 return 0;
24365 _ACEOF
24366 rm -f conftest.$ac_objext
24367 if { (ac_try="$ac_compile"
24368 case "(($ac_try" in
24369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24370 *) ac_try_echo=$ac_try;;
24371 esac
24372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24373 (eval "$ac_compile") 2>conftest.er1
24374 ac_status=$?
24375 grep -v '^ *+' conftest.er1 >conftest.err
24376 rm -f conftest.er1
24377 cat conftest.err >&5
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } && {
24380 test -z "$ac_c_werror_flag" ||
24381 test ! -s conftest.err
24382 } && test -s conftest.$ac_objext; then
24383 ac_cv_member_struct_tm_tm_zone=yes
24384 else
24385 echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.$ac_ext >&5
24388 ac_cv_member_struct_tm_tm_zone=no
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24396 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24397 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24398 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24400 cat >>confdefs.h <<_ACEOF
24401 #define HAVE_STRUCT_TM_TM_ZONE 1
24402 _ACEOF
24407 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24409 cat >>confdefs.h <<\_ACEOF
24410 #define HAVE_TM_ZONE 1
24411 _ACEOF
24413 else
24414 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24415 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24416 if test "${ac_cv_have_decl_tzname+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24418 else
24419 cat >conftest.$ac_ext <<_ACEOF
24420 /* confdefs.h. */
24421 _ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h. */
24425 #include <time.h>
24428 main ()
24430 #ifndef tzname
24431 (void) tzname;
24432 #endif
24435 return 0;
24437 _ACEOF
24438 rm -f conftest.$ac_objext
24439 if { (ac_try="$ac_compile"
24440 case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24443 esac
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445 (eval "$ac_compile") 2>conftest.er1
24446 ac_status=$?
24447 grep -v '^ *+' conftest.er1 >conftest.err
24448 rm -f conftest.er1
24449 cat conftest.err >&5
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); } && {
24452 test -z "$ac_c_werror_flag" ||
24453 test ! -s conftest.err
24454 } && test -s conftest.$ac_objext; then
24455 ac_cv_have_decl_tzname=yes
24456 else
24457 echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24460 ac_cv_have_decl_tzname=no
24463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24465 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24466 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24467 if test $ac_cv_have_decl_tzname = yes; then
24469 cat >>confdefs.h <<_ACEOF
24470 #define HAVE_DECL_TZNAME 1
24471 _ACEOF
24474 else
24475 cat >>confdefs.h <<_ACEOF
24476 #define HAVE_DECL_TZNAME 0
24477 _ACEOF
24483 { echo "$as_me:$LINENO: checking for tzname" >&5
24484 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24485 if test "${ac_cv_var_tzname+set}" = set; then
24486 echo $ECHO_N "(cached) $ECHO_C" >&6
24487 else
24488 cat >conftest.$ac_ext <<_ACEOF
24489 /* confdefs.h. */
24490 _ACEOF
24491 cat confdefs.h >>conftest.$ac_ext
24492 cat >>conftest.$ac_ext <<_ACEOF
24493 /* end confdefs.h. */
24494 #include <time.h>
24495 #if !HAVE_DECL_TZNAME
24496 extern char *tzname[];
24497 #endif
24500 main ()
24502 return tzname[0][0];
24504 return 0;
24506 _ACEOF
24507 rm -f conftest.$ac_objext conftest$ac_exeext
24508 if { (ac_try="$ac_link"
24509 case "(($ac_try" in
24510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24511 *) ac_try_echo=$ac_try;;
24512 esac
24513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24514 (eval "$ac_link") 2>conftest.er1
24515 ac_status=$?
24516 grep -v '^ *+' conftest.er1 >conftest.err
24517 rm -f conftest.er1
24518 cat conftest.err >&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } && {
24521 test -z "$ac_c_werror_flag" ||
24522 test ! -s conftest.err
24523 } && test -s conftest$ac_exeext &&
24524 $as_test_x conftest$ac_exeext; then
24525 ac_cv_var_tzname=yes
24526 else
24527 echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24530 ac_cv_var_tzname=no
24533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24534 conftest$ac_exeext conftest.$ac_ext
24536 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24537 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24538 if test $ac_cv_var_tzname = yes; then
24540 cat >>confdefs.h <<\_ACEOF
24541 #define HAVE_TZNAME 1
24542 _ACEOF
24548 # check tzset(3) exists and works like we expect it to
24549 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24550 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24551 if test "${ac_cv_working_tzset+set}" = set; then
24552 echo $ECHO_N "(cached) $ECHO_C" >&6
24553 else
24555 if test "$cross_compiling" = yes; then
24556 ac_cv_working_tzset=no
24557 else
24558 cat >conftest.$ac_ext <<_ACEOF
24559 /* confdefs.h. */
24560 _ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h. */
24565 #include <stdlib.h>
24566 #include <time.h>
24567 #include <string.h>
24569 #if HAVE_TZNAME
24570 extern char *tzname[];
24571 #endif
24573 int main()
24575 /* Note that we need to ensure that not only does tzset(3)
24576 do 'something' with localtime, but it works as documented
24577 in the library reference and as expected by the test suite.
24578 This includes making sure that tzname is set properly if
24579 tm->tm_zone does not exist since it is the alternative way
24580 of getting timezone info.
24582 Red Hat 6.2 doesn't understand the southern hemisphere
24583 after New Year's Day.
24586 time_t groundhogday = 1044144000; /* GMT-based */
24587 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24589 putenv("TZ=UTC+0");
24590 tzset();
24591 if (localtime(&groundhogday)->tm_hour != 0)
24592 exit(1);
24593 #if HAVE_TZNAME
24594 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24595 if (strcmp(tzname[0], "UTC") ||
24596 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24597 exit(1);
24598 #endif
24600 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24601 tzset();
24602 if (localtime(&groundhogday)->tm_hour != 19)
24603 exit(1);
24604 #if HAVE_TZNAME
24605 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24606 exit(1);
24607 #endif
24609 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24610 tzset();
24611 if (localtime(&groundhogday)->tm_hour != 11)
24612 exit(1);
24613 #if HAVE_TZNAME
24614 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24615 exit(1);
24616 #endif
24618 #if HAVE_STRUCT_TM_TM_ZONE
24619 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24620 exit(1);
24621 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24622 exit(1);
24623 #endif
24625 exit(0);
24628 _ACEOF
24629 rm -f conftest$ac_exeext
24630 if { (ac_try="$ac_link"
24631 case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24634 esac
24635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_link") 2>&5
24637 ac_status=$?
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24640 { (case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24643 esac
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645 (eval "$ac_try") 2>&5
24646 ac_status=$?
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); }; }; then
24649 ac_cv_working_tzset=yes
24650 else
24651 echo "$as_me: program exited with status $ac_status" >&5
24652 echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24655 ( exit $ac_status )
24656 ac_cv_working_tzset=no
24658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24664 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24665 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24666 if test "$ac_cv_working_tzset" = yes
24667 then
24669 cat >>confdefs.h <<\_ACEOF
24670 #define HAVE_WORKING_TZSET 1
24671 _ACEOF
24675 # Look for subsecond timestamps in struct stat
24676 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24677 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24678 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24679 echo $ECHO_N "(cached) $ECHO_C" >&6
24680 else
24681 cat >conftest.$ac_ext <<_ACEOF
24682 /* confdefs.h. */
24683 _ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h. */
24687 #include <sys/stat.h>
24689 main ()
24692 struct stat st;
24693 st.st_mtim.tv_nsec = 1;
24696 return 0;
24698 _ACEOF
24699 rm -f conftest.$ac_objext
24700 if { (ac_try="$ac_compile"
24701 case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24704 esac
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706 (eval "$ac_compile") 2>conftest.er1
24707 ac_status=$?
24708 grep -v '^ *+' conftest.er1 >conftest.err
24709 rm -f conftest.er1
24710 cat conftest.err >&5
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } && {
24713 test -z "$ac_c_werror_flag" ||
24714 test ! -s conftest.err
24715 } && test -s conftest.$ac_objext; then
24716 ac_cv_stat_tv_nsec=yes
24717 else
24718 echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24721 ac_cv_stat_tv_nsec=no
24724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24728 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24729 if test "$ac_cv_stat_tv_nsec" = yes
24730 then
24732 cat >>confdefs.h <<\_ACEOF
24733 #define HAVE_STAT_TV_NSEC 1
24734 _ACEOF
24738 # Look for BSD style subsecond timestamps in struct stat
24739 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24740 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24741 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24742 echo $ECHO_N "(cached) $ECHO_C" >&6
24743 else
24744 cat >conftest.$ac_ext <<_ACEOF
24745 /* confdefs.h. */
24746 _ACEOF
24747 cat confdefs.h >>conftest.$ac_ext
24748 cat >>conftest.$ac_ext <<_ACEOF
24749 /* end confdefs.h. */
24750 #include <sys/stat.h>
24752 main ()
24755 struct stat st;
24756 st.st_mtimespec.tv_nsec = 1;
24759 return 0;
24761 _ACEOF
24762 rm -f conftest.$ac_objext
24763 if { (ac_try="$ac_compile"
24764 case "(($ac_try" in
24765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24766 *) ac_try_echo=$ac_try;;
24767 esac
24768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24769 (eval "$ac_compile") 2>conftest.er1
24770 ac_status=$?
24771 grep -v '^ *+' conftest.er1 >conftest.err
24772 rm -f conftest.er1
24773 cat conftest.err >&5
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); } && {
24776 test -z "$ac_c_werror_flag" ||
24777 test ! -s conftest.err
24778 } && test -s conftest.$ac_objext; then
24779 ac_cv_stat_tv_nsec2=yes
24780 else
24781 echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24784 ac_cv_stat_tv_nsec2=no
24787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24791 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24792 if test "$ac_cv_stat_tv_nsec2" = yes
24793 then
24795 cat >>confdefs.h <<\_ACEOF
24796 #define HAVE_STAT_TV_NSEC2 1
24797 _ACEOF
24801 # On HP/UX 11.0, mvwdelch is a block with a return statement
24802 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24803 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24804 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24805 echo $ECHO_N "(cached) $ECHO_C" >&6
24806 else
24807 cat >conftest.$ac_ext <<_ACEOF
24808 /* confdefs.h. */
24809 _ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h. */
24813 #include <curses.h>
24815 main ()
24818 int rtn;
24819 rtn = mvwdelch(0,0,0);
24822 return 0;
24824 _ACEOF
24825 rm -f conftest.$ac_objext
24826 if { (ac_try="$ac_compile"
24827 case "(($ac_try" in
24828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829 *) ac_try_echo=$ac_try;;
24830 esac
24831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24832 (eval "$ac_compile") 2>conftest.er1
24833 ac_status=$?
24834 grep -v '^ *+' conftest.er1 >conftest.err
24835 rm -f conftest.er1
24836 cat conftest.err >&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); } && {
24839 test -z "$ac_c_werror_flag" ||
24840 test ! -s conftest.err
24841 } && test -s conftest.$ac_objext; then
24842 ac_cv_mvwdelch_is_expression=yes
24843 else
24844 echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.$ac_ext >&5
24847 ac_cv_mvwdelch_is_expression=no
24850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24853 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24854 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24856 if test "$ac_cv_mvwdelch_is_expression" = yes
24857 then
24859 cat >>confdefs.h <<\_ACEOF
24860 #define MVWDELCH_IS_EXPRESSION 1
24861 _ACEOF
24865 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24866 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24867 if test "${ac_cv_window_has_flags+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870 cat >conftest.$ac_ext <<_ACEOF
24871 /* confdefs.h. */
24872 _ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h. */
24876 #include <curses.h>
24878 main ()
24881 WINDOW *w;
24882 w->_flags = 0;
24885 return 0;
24887 _ACEOF
24888 rm -f conftest.$ac_objext
24889 if { (ac_try="$ac_compile"
24890 case "(($ac_try" in
24891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892 *) ac_try_echo=$ac_try;;
24893 esac
24894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895 (eval "$ac_compile") 2>conftest.er1
24896 ac_status=$?
24897 grep -v '^ *+' conftest.er1 >conftest.err
24898 rm -f conftest.er1
24899 cat conftest.err >&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } && {
24902 test -z "$ac_c_werror_flag" ||
24903 test ! -s conftest.err
24904 } && test -s conftest.$ac_objext; then
24905 ac_cv_window_has_flags=yes
24906 else
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24910 ac_cv_window_has_flags=no
24913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24916 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24917 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24920 if test "$ac_cv_window_has_flags" = yes
24921 then
24923 cat >>confdefs.h <<\_ACEOF
24924 #define WINDOW_HAS_FLAGS 1
24925 _ACEOF
24929 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24930 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24931 cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h. */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24937 #include <curses.h>
24939 main ()
24941 void *x=is_term_resized
24943 return 0;
24945 _ACEOF
24946 rm -f conftest.$ac_objext
24947 if { (ac_try="$ac_compile"
24948 case "(($ac_try" in
24949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950 *) ac_try_echo=$ac_try;;
24951 esac
24952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24953 (eval "$ac_compile") 2>conftest.er1
24954 ac_status=$?
24955 grep -v '^ *+' conftest.er1 >conftest.err
24956 rm -f conftest.er1
24957 cat conftest.err >&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); } && {
24960 test -z "$ac_c_werror_flag" ||
24961 test ! -s conftest.err
24962 } && test -s conftest.$ac_objext; then
24964 cat >>confdefs.h <<\_ACEOF
24965 #define HAVE_CURSES_IS_TERM_RESIZED 1
24966 _ACEOF
24968 { echo "$as_me:$LINENO: result: yes" >&5
24969 echo "${ECHO_T}yes" >&6; }
24970 else
24971 echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24974 { echo "$as_me:$LINENO: result: no" >&5
24975 echo "${ECHO_T}no" >&6; }
24979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24981 { echo "$as_me:$LINENO: checking for resize_term" >&5
24982 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24983 cat >conftest.$ac_ext <<_ACEOF
24984 /* confdefs.h. */
24985 _ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24989 #include <curses.h>
24991 main ()
24993 void *x=resize_term
24995 return 0;
24997 _ACEOF
24998 rm -f conftest.$ac_objext
24999 if { (ac_try="$ac_compile"
25000 case "(($ac_try" in
25001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002 *) ac_try_echo=$ac_try;;
25003 esac
25004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005 (eval "$ac_compile") 2>conftest.er1
25006 ac_status=$?
25007 grep -v '^ *+' conftest.er1 >conftest.err
25008 rm -f conftest.er1
25009 cat conftest.err >&5
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); } && {
25012 test -z "$ac_c_werror_flag" ||
25013 test ! -s conftest.err
25014 } && test -s conftest.$ac_objext; then
25016 cat >>confdefs.h <<\_ACEOF
25017 #define HAVE_CURSES_RESIZE_TERM 1
25018 _ACEOF
25020 { echo "$as_me:$LINENO: result: yes" >&5
25021 echo "${ECHO_T}yes" >&6; }
25022 else
25023 echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25026 { echo "$as_me:$LINENO: result: no" >&5
25027 echo "${ECHO_T}no" >&6; }
25031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25033 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25034 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25035 cat >conftest.$ac_ext <<_ACEOF
25036 /* confdefs.h. */
25037 _ACEOF
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h. */
25041 #include <curses.h>
25043 main ()
25045 void *x=resizeterm
25047 return 0;
25049 _ACEOF
25050 rm -f conftest.$ac_objext
25051 if { (ac_try="$ac_compile"
25052 case "(($ac_try" in
25053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25054 *) ac_try_echo=$ac_try;;
25055 esac
25056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25057 (eval "$ac_compile") 2>conftest.er1
25058 ac_status=$?
25059 grep -v '^ *+' conftest.er1 >conftest.err
25060 rm -f conftest.er1
25061 cat conftest.err >&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } && {
25064 test -z "$ac_c_werror_flag" ||
25065 test ! -s conftest.err
25066 } && test -s conftest.$ac_objext; then
25068 cat >>confdefs.h <<\_ACEOF
25069 #define HAVE_CURSES_RESIZETERM 1
25070 _ACEOF
25072 { echo "$as_me:$LINENO: result: yes" >&5
25073 echo "${ECHO_T}yes" >&6; }
25074 else
25075 echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.$ac_ext >&5
25078 { echo "$as_me:$LINENO: result: no" >&5
25079 echo "${ECHO_T}no" >&6; }
25083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25085 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25086 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25088 if test -r /dev/ptmx
25089 then
25090 { echo "$as_me:$LINENO: result: yes" >&5
25091 echo "${ECHO_T}yes" >&6; }
25093 cat >>confdefs.h <<\_ACEOF
25094 #define HAVE_DEV_PTMX 1
25095 _ACEOF
25097 else
25098 { echo "$as_me:$LINENO: result: no" >&5
25099 echo "${ECHO_T}no" >&6; }
25102 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25103 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25105 if test -r /dev/ptc
25106 then
25107 { echo "$as_me:$LINENO: result: yes" >&5
25108 echo "${ECHO_T}yes" >&6; }
25110 cat >>confdefs.h <<\_ACEOF
25111 #define HAVE_DEV_PTC 1
25112 _ACEOF
25114 else
25115 { echo "$as_me:$LINENO: result: no" >&5
25116 echo "${ECHO_T}no" >&6; }
25119 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25120 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25121 if test "$cross_compiling" = yes; then
25122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25123 See \`config.log' for more details." >&5
25124 echo "$as_me: error: cannot run test program while cross compiling
25125 See \`config.log' for more details." >&2;}
25126 { (exit 1); exit 1; }; }
25127 else
25128 cat >conftest.$ac_ext <<_ACEOF
25129 /* confdefs.h. */
25130 _ACEOF
25131 cat confdefs.h >>conftest.$ac_ext
25132 cat >>conftest.$ac_ext <<_ACEOF
25133 /* end confdefs.h. */
25134 #include <stdio.h>
25135 #include <stddef.h>
25136 #include <string.h>
25138 #ifdef HAVE_SYS_TYPES_H
25139 #include <sys/types.h>
25140 #endif
25142 #ifdef HAVE_SSIZE_T
25143 typedef ssize_t Py_ssize_t;
25144 #elif SIZEOF_VOID_P == SIZEOF_LONG
25145 typedef long Py_ssize_t;
25146 #else
25147 typedef int Py_ssize_t;
25148 #endif
25150 int main()
25152 char buffer[256];
25154 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25155 return 1;
25157 if (strcmp(buffer, "123"))
25158 return 1;
25160 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25161 return 1;
25163 if (strcmp(buffer, "-123"))
25164 return 1;
25166 return 0;
25168 _ACEOF
25169 rm -f conftest$ac_exeext
25170 if { (ac_try="$ac_link"
25171 case "(($ac_try" in
25172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25174 esac
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176 (eval "$ac_link") 2>&5
25177 ac_status=$?
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25180 { (case "(($ac_try" in
25181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25182 *) ac_try_echo=$ac_try;;
25183 esac
25184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25185 (eval "$ac_try") 2>&5
25186 ac_status=$?
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; }; then
25189 { echo "$as_me:$LINENO: result: yes" >&5
25190 echo "${ECHO_T}yes" >&6; }
25192 cat >>confdefs.h <<\_ACEOF
25193 #define PY_FORMAT_SIZE_T "z"
25194 _ACEOF
25196 else
25197 echo "$as_me: program exited with status $ac_status" >&5
25198 echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25201 ( exit $ac_status )
25202 { echo "$as_me:$LINENO: result: no" >&5
25203 echo "${ECHO_T}no" >&6; }
25205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25210 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25211 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25212 if test "${ac_cv_type_socklen_t+set}" = set; then
25213 echo $ECHO_N "(cached) $ECHO_C" >&6
25214 else
25215 cat >conftest.$ac_ext <<_ACEOF
25216 /* confdefs.h. */
25217 _ACEOF
25218 cat confdefs.h >>conftest.$ac_ext
25219 cat >>conftest.$ac_ext <<_ACEOF
25220 /* end confdefs.h. */
25222 #ifdef HAVE_SYS_TYPES_H
25223 #include <sys/types.h>
25224 #endif
25225 #ifdef HAVE_SYS_SOCKET_H
25226 #include <sys/socket.h>
25227 #endif
25230 typedef socklen_t ac__type_new_;
25232 main ()
25234 if ((ac__type_new_ *) 0)
25235 return 0;
25236 if (sizeof (ac__type_new_))
25237 return 0;
25239 return 0;
25241 _ACEOF
25242 rm -f conftest.$ac_objext
25243 if { (ac_try="$ac_compile"
25244 case "(($ac_try" in
25245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246 *) ac_try_echo=$ac_try;;
25247 esac
25248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25249 (eval "$ac_compile") 2>conftest.er1
25250 ac_status=$?
25251 grep -v '^ *+' conftest.er1 >conftest.err
25252 rm -f conftest.er1
25253 cat conftest.err >&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); } && {
25256 test -z "$ac_c_werror_flag" ||
25257 test ! -s conftest.err
25258 } && test -s conftest.$ac_objext; then
25259 ac_cv_type_socklen_t=yes
25260 else
25261 echo "$as_me: failed program was:" >&5
25262 sed 's/^/| /' conftest.$ac_ext >&5
25264 ac_cv_type_socklen_t=no
25267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25269 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25270 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25271 if test $ac_cv_type_socklen_t = yes; then
25273 else
25275 cat >>confdefs.h <<\_ACEOF
25276 #define socklen_t int
25277 _ACEOF
25284 for h in `(cd $srcdir;echo Python/thread_*.h)`
25286 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25287 done
25290 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25291 { echo "$as_me:$LINENO: checking for build directories" >&5
25292 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25293 for dir in $SRCDIRS; do
25294 if test ! -d $dir; then
25295 mkdir $dir
25297 done
25298 { echo "$as_me:$LINENO: result: done" >&5
25299 echo "${ECHO_T}done" >&6; }
25301 # generate output files
25302 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25304 cat >confcache <<\_ACEOF
25305 # This file is a shell script that caches the results of configure
25306 # tests run on this system so they can be shared between configure
25307 # scripts and configure runs, see configure's option --config-cache.
25308 # It is not useful on other systems. If it contains results you don't
25309 # want to keep, you may remove or edit it.
25311 # config.status only pays attention to the cache file if you give it
25312 # the --recheck option to rerun configure.
25314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25316 # following values.
25318 _ACEOF
25320 # The following way of writing the cache mishandles newlines in values,
25321 # but we know of no workaround that is simple, portable, and efficient.
25322 # So, we kill variables containing newlines.
25323 # Ultrix sh set writes to stderr and can't be redirected directly,
25324 # and sets the high bit in the cache file unless we assign to the vars.
25326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25327 eval ac_val=\$$ac_var
25328 case $ac_val in #(
25329 *${as_nl}*)
25330 case $ac_var in #(
25331 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25332 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25333 esac
25334 case $ac_var in #(
25335 _ | IFS | as_nl) ;; #(
25336 *) $as_unset $ac_var ;;
25337 esac ;;
25338 esac
25339 done
25341 (set) 2>&1 |
25342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25343 *${as_nl}ac_space=\ *)
25344 # `set' does not quote correctly, so add quotes (double-quote
25345 # substitution turns \\\\ into \\, and sed turns \\ into \).
25346 sed -n \
25347 "s/'/'\\\\''/g;
25348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25349 ;; #(
25351 # `set' quotes correctly as required by POSIX, so do not add quotes.
25352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25354 esac |
25355 sort
25357 sed '
25358 /^ac_cv_env_/b end
25359 t clear
25360 :clear
25361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25362 t end
25363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25364 :end' >>confcache
25365 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25366 if test -w "$cache_file"; then
25367 test "x$cache_file" != "x/dev/null" &&
25368 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25369 echo "$as_me: updating cache $cache_file" >&6;}
25370 cat confcache >$cache_file
25371 else
25372 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25373 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25376 rm -f confcache
25378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25379 # Let make expand exec_prefix.
25380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25382 DEFS=-DHAVE_CONFIG_H
25384 ac_libobjs=
25385 ac_ltlibobjs=
25386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25387 # 1. Remove the extension, and $U if already installed.
25388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25389 ac_i=`echo "$ac_i" | sed "$ac_script"`
25390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25391 # will be set to the directory where LIBOBJS objects are built.
25392 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25393 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25394 done
25395 LIBOBJS=$ac_libobjs
25397 LTLIBOBJS=$ac_ltlibobjs
25401 : ${CONFIG_STATUS=./config.status}
25402 ac_clean_files_save=$ac_clean_files
25403 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25404 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25405 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25406 cat >$CONFIG_STATUS <<_ACEOF
25407 #! $SHELL
25408 # Generated by $as_me.
25409 # Run this file to recreate the current configuration.
25410 # Compiler output produced by configure, useful for debugging
25411 # configure, is in config.log if it exists.
25413 debug=false
25414 ac_cs_recheck=false
25415 ac_cs_silent=false
25416 SHELL=\${CONFIG_SHELL-$SHELL}
25417 _ACEOF
25419 cat >>$CONFIG_STATUS <<\_ACEOF
25420 ## --------------------- ##
25421 ## M4sh Initialization. ##
25422 ## --------------------- ##
25424 # Be more Bourne compatible
25425 DUALCASE=1; export DUALCASE # for MKS sh
25426 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25427 emulate sh
25428 NULLCMD=:
25429 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25430 # is contrary to our usage. Disable this feature.
25431 alias -g '${1+"$@"}'='"$@"'
25432 setopt NO_GLOB_SUBST
25433 else
25434 case `(set -o) 2>/dev/null` in
25435 *posix*) set -o posix ;;
25436 esac
25443 # PATH needs CR
25444 # Avoid depending upon Character Ranges.
25445 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25446 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25447 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25448 as_cr_digits='0123456789'
25449 as_cr_alnum=$as_cr_Letters$as_cr_digits
25451 # The user is always right.
25452 if test "${PATH_SEPARATOR+set}" != set; then
25453 echo "#! /bin/sh" >conf$$.sh
25454 echo "exit 0" >>conf$$.sh
25455 chmod +x conf$$.sh
25456 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25457 PATH_SEPARATOR=';'
25458 else
25459 PATH_SEPARATOR=:
25461 rm -f conf$$.sh
25464 # Support unset when possible.
25465 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25466 as_unset=unset
25467 else
25468 as_unset=false
25472 # IFS
25473 # We need space, tab and new line, in precisely that order. Quoting is
25474 # there to prevent editors from complaining about space-tab.
25475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25476 # splitting by setting IFS to empty value.)
25477 as_nl='
25479 IFS=" "" $as_nl"
25481 # Find who we are. Look in the path if we contain no directory separator.
25482 case $0 in
25483 *[\\/]* ) as_myself=$0 ;;
25484 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25485 for as_dir in $PATH
25487 IFS=$as_save_IFS
25488 test -z "$as_dir" && as_dir=.
25489 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25490 done
25491 IFS=$as_save_IFS
25494 esac
25495 # We did not find ourselves, most probably we were run as `sh COMMAND'
25496 # in which case we are not to be found in the path.
25497 if test "x$as_myself" = x; then
25498 as_myself=$0
25500 if test ! -f "$as_myself"; then
25501 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25502 { (exit 1); exit 1; }
25505 # Work around bugs in pre-3.0 UWIN ksh.
25506 for as_var in ENV MAIL MAILPATH
25507 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25508 done
25509 PS1='$ '
25510 PS2='> '
25511 PS4='+ '
25513 # NLS nuisances.
25514 for as_var in \
25515 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25516 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25517 LC_TELEPHONE LC_TIME
25519 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25520 eval $as_var=C; export $as_var
25521 else
25522 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25524 done
25526 # Required to use basename.
25527 if expr a : '\(a\)' >/dev/null 2>&1 &&
25528 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25529 as_expr=expr
25530 else
25531 as_expr=false
25534 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25535 as_basename=basename
25536 else
25537 as_basename=false
25541 # Name of the executable.
25542 as_me=`$as_basename -- "$0" ||
25543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25544 X"$0" : 'X\(//\)$' \| \
25545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25546 echo X/"$0" |
25547 sed '/^.*\/\([^/][^/]*\)\/*$/{
25548 s//\1/
25551 /^X\/\(\/\/\)$/{
25552 s//\1/
25555 /^X\/\(\/\).*/{
25556 s//\1/
25559 s/.*/./; q'`
25561 # CDPATH.
25562 $as_unset CDPATH
25566 as_lineno_1=$LINENO
25567 as_lineno_2=$LINENO
25568 test "x$as_lineno_1" != "x$as_lineno_2" &&
25569 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25571 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25572 # uniformly replaced by the line number. The first 'sed' inserts a
25573 # line-number line after each line using $LINENO; the second 'sed'
25574 # does the real work. The second script uses 'N' to pair each
25575 # line-number line with the line containing $LINENO, and appends
25576 # trailing '-' during substitution so that $LINENO is not a special
25577 # case at line end.
25578 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25579 # scripts with optimization help from Paolo Bonzini. Blame Lee
25580 # E. McMahon (1931-1989) for sed's syntax. :-)
25581 sed -n '
25583 /[$]LINENO/=
25584 ' <$as_myself |
25585 sed '
25586 s/[$]LINENO.*/&-/
25587 t lineno
25589 :lineno
25591 :loop
25592 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25593 t loop
25594 s/-\n.*//
25595 ' >$as_me.lineno &&
25596 chmod +x "$as_me.lineno" ||
25597 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25598 { (exit 1); exit 1; }; }
25600 # Don't try to exec as it changes $[0], causing all sort of problems
25601 # (the dirname of $[0] is not the place where we might find the
25602 # original and so on. Autoconf is especially sensitive to this).
25603 . "./$as_me.lineno"
25604 # Exit status is that of the last command.
25605 exit
25609 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25610 as_dirname=dirname
25611 else
25612 as_dirname=false
25615 ECHO_C= ECHO_N= ECHO_T=
25616 case `echo -n x` in
25617 -n*)
25618 case `echo 'x\c'` in
25619 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25620 *) ECHO_C='\c';;
25621 esac;;
25623 ECHO_N='-n';;
25624 esac
25626 if expr a : '\(a\)' >/dev/null 2>&1 &&
25627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25628 as_expr=expr
25629 else
25630 as_expr=false
25633 rm -f conf$$ conf$$.exe conf$$.file
25634 if test -d conf$$.dir; then
25635 rm -f conf$$.dir/conf$$.file
25636 else
25637 rm -f conf$$.dir
25638 mkdir conf$$.dir
25640 echo >conf$$.file
25641 if ln -s conf$$.file conf$$ 2>/dev/null; then
25642 as_ln_s='ln -s'
25643 # ... but there are two gotchas:
25644 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25645 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25646 # In both cases, we have to default to `cp -p'.
25647 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25648 as_ln_s='cp -p'
25649 elif ln conf$$.file conf$$ 2>/dev/null; then
25650 as_ln_s=ln
25651 else
25652 as_ln_s='cp -p'
25654 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25655 rmdir conf$$.dir 2>/dev/null
25657 if mkdir -p . 2>/dev/null; then
25658 as_mkdir_p=:
25659 else
25660 test -d ./-p && rmdir ./-p
25661 as_mkdir_p=false
25664 if test -x / >/dev/null 2>&1; then
25665 as_test_x='test -x'
25666 else
25667 if ls -dL / >/dev/null 2>&1; then
25668 as_ls_L_option=L
25669 else
25670 as_ls_L_option=
25672 as_test_x='
25673 eval sh -c '\''
25674 if test -d "$1"; then
25675 test -d "$1/.";
25676 else
25677 case $1 in
25678 -*)set "./$1";;
25679 esac;
25680 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25681 ???[sx]*):;;*)false;;esac;fi
25682 '\'' sh
25685 as_executable_p=$as_test_x
25687 # Sed expression to map a string onto a valid CPP name.
25688 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25690 # Sed expression to map a string onto a valid variable name.
25691 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25694 exec 6>&1
25696 # Save the log message, to keep $[0] and so on meaningful, and to
25697 # report actual input values of CONFIG_FILES etc. instead of their
25698 # values after options handling.
25699 ac_log="
25700 This file was extended by python $as_me 2.7, which was
25701 generated by GNU Autoconf 2.61. Invocation command line was
25703 CONFIG_FILES = $CONFIG_FILES
25704 CONFIG_HEADERS = $CONFIG_HEADERS
25705 CONFIG_LINKS = $CONFIG_LINKS
25706 CONFIG_COMMANDS = $CONFIG_COMMANDS
25707 $ $0 $@
25709 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25712 _ACEOF
25714 cat >>$CONFIG_STATUS <<_ACEOF
25715 # Files that config.status was made for.
25716 config_files="$ac_config_files"
25717 config_headers="$ac_config_headers"
25719 _ACEOF
25721 cat >>$CONFIG_STATUS <<\_ACEOF
25722 ac_cs_usage="\
25723 \`$as_me' instantiates files from templates according to the
25724 current configuration.
25726 Usage: $0 [OPTIONS] [FILE]...
25728 -h, --help print this help, then exit
25729 -V, --version print version number and configuration settings, then exit
25730 -q, --quiet do not print progress messages
25731 -d, --debug don't remove temporary files
25732 --recheck update $as_me by reconfiguring in the same conditions
25733 --file=FILE[:TEMPLATE]
25734 instantiate the configuration file FILE
25735 --header=FILE[:TEMPLATE]
25736 instantiate the configuration header FILE
25738 Configuration files:
25739 $config_files
25741 Configuration headers:
25742 $config_headers
25744 Report bugs to <bug-autoconf@gnu.org>."
25746 _ACEOF
25747 cat >>$CONFIG_STATUS <<_ACEOF
25748 ac_cs_version="\\
25749 python config.status 2.7
25750 configured by $0, generated by GNU Autoconf 2.61,
25751 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25753 Copyright (C) 2006 Free Software Foundation, Inc.
25754 This config.status script is free software; the Free Software Foundation
25755 gives unlimited permission to copy, distribute and modify it."
25757 ac_pwd='$ac_pwd'
25758 srcdir='$srcdir'
25759 INSTALL='$INSTALL'
25760 _ACEOF
25762 cat >>$CONFIG_STATUS <<\_ACEOF
25763 # If no file are specified by the user, then we need to provide default
25764 # value. By we need to know if files were specified by the user.
25765 ac_need_defaults=:
25766 while test $# != 0
25768 case $1 in
25769 --*=*)
25770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25771 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25772 ac_shift=:
25775 ac_option=$1
25776 ac_optarg=$2
25777 ac_shift=shift
25779 esac
25781 case $ac_option in
25782 # Handling of the options.
25783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25784 ac_cs_recheck=: ;;
25785 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25786 echo "$ac_cs_version"; exit ;;
25787 --debug | --debu | --deb | --de | --d | -d )
25788 debug=: ;;
25789 --file | --fil | --fi | --f )
25790 $ac_shift
25791 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25792 ac_need_defaults=false;;
25793 --header | --heade | --head | --hea )
25794 $ac_shift
25795 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25796 ac_need_defaults=false;;
25797 --he | --h)
25798 # Conflict between --help and --header
25799 { echo "$as_me: error: ambiguous option: $1
25800 Try \`$0 --help' for more information." >&2
25801 { (exit 1); exit 1; }; };;
25802 --help | --hel | -h )
25803 echo "$ac_cs_usage"; exit ;;
25804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25806 ac_cs_silent=: ;;
25808 # This is an error.
25809 -*) { echo "$as_me: error: unrecognized option: $1
25810 Try \`$0 --help' for more information." >&2
25811 { (exit 1); exit 1; }; } ;;
25813 *) ac_config_targets="$ac_config_targets $1"
25814 ac_need_defaults=false ;;
25816 esac
25817 shift
25818 done
25820 ac_configure_extra_args=
25822 if $ac_cs_silent; then
25823 exec 6>/dev/null
25824 ac_configure_extra_args="$ac_configure_extra_args --silent"
25827 _ACEOF
25828 cat >>$CONFIG_STATUS <<_ACEOF
25829 if \$ac_cs_recheck; then
25830 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25831 CONFIG_SHELL=$SHELL
25832 export CONFIG_SHELL
25833 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25836 _ACEOF
25837 cat >>$CONFIG_STATUS <<\_ACEOF
25838 exec 5>>config.log
25840 echo
25841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25842 ## Running $as_me. ##
25843 _ASBOX
25844 echo "$ac_log"
25845 } >&5
25847 _ACEOF
25848 cat >>$CONFIG_STATUS <<_ACEOF
25849 _ACEOF
25851 cat >>$CONFIG_STATUS <<\_ACEOF
25853 # Handling of arguments.
25854 for ac_config_target in $ac_config_targets
25856 case $ac_config_target in
25857 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25858 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25859 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25860 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25861 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25862 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25863 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25864 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25866 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25867 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25868 { (exit 1); exit 1; }; };;
25869 esac
25870 done
25873 # If the user did not use the arguments to specify the items to instantiate,
25874 # then the envvar interface is used. Set only those that are not.
25875 # We use the long form for the default assignment because of an extremely
25876 # bizarre bug on SunOS 4.1.3.
25877 if $ac_need_defaults; then
25878 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25879 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25882 # Have a temporary directory for convenience. Make it in the build tree
25883 # simply because there is no reason against having it here, and in addition,
25884 # creating and moving files from /tmp can sometimes cause problems.
25885 # Hook for its removal unless debugging.
25886 # Note that there is a small window in which the directory will not be cleaned:
25887 # after its creation but before its name has been assigned to `$tmp'.
25888 $debug ||
25890 tmp=
25891 trap 'exit_status=$?
25892 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25894 trap '{ (exit 1); exit 1; }' 1 2 13 15
25896 # Create a (secure) tmp directory for tmp files.
25899 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25900 test -n "$tmp" && test -d "$tmp"
25901 } ||
25903 tmp=./conf$$-$RANDOM
25904 (umask 077 && mkdir "$tmp")
25905 } ||
25907 echo "$me: cannot create a temporary directory in ." >&2
25908 { (exit 1); exit 1; }
25912 # Set up the sed scripts for CONFIG_FILES section.
25915 # No need to generate the scripts if there are no CONFIG_FILES.
25916 # This happens for instance when ./config.status config.h
25917 if test -n "$CONFIG_FILES"; then
25919 _ACEOF
25923 ac_delim='%!_!# '
25924 for ac_last_try in false false false false false :; do
25925 cat >conf$$subs.sed <<_ACEOF
25926 SHELL!$SHELL$ac_delim
25927 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25928 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25929 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25930 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25931 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25932 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25933 exec_prefix!$exec_prefix$ac_delim
25934 prefix!$prefix$ac_delim
25935 program_transform_name!$program_transform_name$ac_delim
25936 bindir!$bindir$ac_delim
25937 sbindir!$sbindir$ac_delim
25938 libexecdir!$libexecdir$ac_delim
25939 datarootdir!$datarootdir$ac_delim
25940 datadir!$datadir$ac_delim
25941 sysconfdir!$sysconfdir$ac_delim
25942 sharedstatedir!$sharedstatedir$ac_delim
25943 localstatedir!$localstatedir$ac_delim
25944 includedir!$includedir$ac_delim
25945 oldincludedir!$oldincludedir$ac_delim
25946 docdir!$docdir$ac_delim
25947 infodir!$infodir$ac_delim
25948 htmldir!$htmldir$ac_delim
25949 dvidir!$dvidir$ac_delim
25950 pdfdir!$pdfdir$ac_delim
25951 psdir!$psdir$ac_delim
25952 libdir!$libdir$ac_delim
25953 localedir!$localedir$ac_delim
25954 mandir!$mandir$ac_delim
25955 DEFS!$DEFS$ac_delim
25956 ECHO_C!$ECHO_C$ac_delim
25957 ECHO_N!$ECHO_N$ac_delim
25958 ECHO_T!$ECHO_T$ac_delim
25959 LIBS!$LIBS$ac_delim
25960 build_alias!$build_alias$ac_delim
25961 host_alias!$host_alias$ac_delim
25962 target_alias!$target_alias$ac_delim
25963 VERSION!$VERSION$ac_delim
25964 SOVERSION!$SOVERSION$ac_delim
25965 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25966 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25967 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25968 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25969 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25970 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25971 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25972 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25973 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25974 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25975 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25976 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25977 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25978 MACHDEP!$MACHDEP$ac_delim
25979 SGI_ABI!$SGI_ABI$ac_delim
25980 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25981 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25982 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25983 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25984 CC!$CC$ac_delim
25985 CFLAGS!$CFLAGS$ac_delim
25986 LDFLAGS!$LDFLAGS$ac_delim
25987 CPPFLAGS!$CPPFLAGS$ac_delim
25988 ac_ct_CC!$ac_ct_CC$ac_delim
25989 EXEEXT!$EXEEXT$ac_delim
25990 OBJEXT!$OBJEXT$ac_delim
25991 CXX!$CXX$ac_delim
25992 MAINCC!$MAINCC$ac_delim
25993 CPP!$CPP$ac_delim
25994 GREP!$GREP$ac_delim
25995 EGREP!$EGREP$ac_delim
25996 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25997 LIBRARY!$LIBRARY$ac_delim
25998 LDLIBRARY!$LDLIBRARY$ac_delim
25999 DLLLIBRARY!$DLLLIBRARY$ac_delim
26000 BLDLIBRARY!$BLDLIBRARY$ac_delim
26001 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26002 INSTSONAME!$INSTSONAME$ac_delim
26003 RUNSHARED!$RUNSHARED$ac_delim
26004 LINKCC!$LINKCC$ac_delim
26005 RANLIB!$RANLIB$ac_delim
26006 AR!$AR$ac_delim
26007 SVNVERSION!$SVNVERSION$ac_delim
26008 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26009 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26010 INSTALL_DATA!$INSTALL_DATA$ac_delim
26011 LN!$LN$ac_delim
26012 OPT!$OPT$ac_delim
26013 BASECFLAGS!$BASECFLAGS$ac_delim
26014 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26015 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26016 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26017 SO!$SO$ac_delim
26018 LDSHARED!$LDSHARED$ac_delim
26019 BLDSHARED!$BLDSHARED$ac_delim
26020 CCSHARED!$CCSHARED$ac_delim
26021 LINKFORSHARED!$LINKFORSHARED$ac_delim
26022 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26023 _ACEOF
26025 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26026 break
26027 elif $ac_last_try; then
26028 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26029 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26030 { (exit 1); exit 1; }; }
26031 else
26032 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26034 done
26036 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26037 if test -n "$ac_eof"; then
26038 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26039 ac_eof=`expr $ac_eof + 1`
26042 cat >>$CONFIG_STATUS <<_ACEOF
26043 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26045 _ACEOF
26046 sed '
26047 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26048 s/^/s,@/; s/!/@,|#_!!_#|/
26051 s/'"$ac_delim"'$/,g/; t
26052 s/$/\\/; p
26053 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26054 ' >>$CONFIG_STATUS <conf$$subs.sed
26055 rm -f conf$$subs.sed
26056 cat >>$CONFIG_STATUS <<_ACEOF
26057 CEOF$ac_eof
26058 _ACEOF
26061 ac_delim='%!_!# '
26062 for ac_last_try in false false false false false :; do
26063 cat >conf$$subs.sed <<_ACEOF
26064 SHLIBS!$SHLIBS$ac_delim
26065 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26066 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26067 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26068 LDLAST!$LDLAST$ac_delim
26069 THREADOBJ!$THREADOBJ$ac_delim
26070 DLINCLDIR!$DLINCLDIR$ac_delim
26071 DYNLOADFILE!$DYNLOADFILE$ac_delim
26072 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26073 TRUE!$TRUE$ac_delim
26074 LIBOBJS!$LIBOBJS$ac_delim
26075 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26076 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26077 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26078 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26079 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26080 LIBM!$LIBM$ac_delim
26081 LIBC!$LIBC$ac_delim
26082 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
26083 THREADHEADERS!$THREADHEADERS$ac_delim
26084 SRCDIRS!$SRCDIRS$ac_delim
26085 LTLIBOBJS!$LTLIBOBJS$ac_delim
26086 _ACEOF
26088 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
26089 break
26090 elif $ac_last_try; then
26091 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26092 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26093 { (exit 1); exit 1; }; }
26094 else
26095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26097 done
26099 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26100 if test -n "$ac_eof"; then
26101 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26102 ac_eof=`expr $ac_eof + 1`
26105 cat >>$CONFIG_STATUS <<_ACEOF
26106 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26108 _ACEOF
26109 sed '
26110 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26111 s/^/s,@/; s/!/@,|#_!!_#|/
26114 s/'"$ac_delim"'$/,g/; t
26115 s/$/\\/; p
26116 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26117 ' >>$CONFIG_STATUS <conf$$subs.sed
26118 rm -f conf$$subs.sed
26119 cat >>$CONFIG_STATUS <<_ACEOF
26120 :end
26121 s/|#_!!_#|//g
26122 CEOF$ac_eof
26123 _ACEOF
26126 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26127 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26128 # trailing colons and then remove the whole line if VPATH becomes empty
26129 # (actually we leave an empty line to preserve line numbers).
26130 if test "x$srcdir" = x.; then
26131 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26132 s/:*\$(srcdir):*/:/
26133 s/:*\${srcdir}:*/:/
26134 s/:*@srcdir@:*/:/
26135 s/^\([^=]*=[ ]*\):*/\1/
26136 s/:*$//
26137 s/^[^=]*=[ ]*$//
26141 cat >>$CONFIG_STATUS <<\_ACEOF
26142 fi # test -n "$CONFIG_FILES"
26145 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26147 case $ac_tag in
26148 :[FHLC]) ac_mode=$ac_tag; continue;;
26149 esac
26150 case $ac_mode$ac_tag in
26151 :[FHL]*:*);;
26152 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26153 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26154 { (exit 1); exit 1; }; };;
26155 :[FH]-) ac_tag=-:-;;
26156 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26157 esac
26158 ac_save_IFS=$IFS
26159 IFS=:
26160 set x $ac_tag
26161 IFS=$ac_save_IFS
26162 shift
26163 ac_file=$1
26164 shift
26166 case $ac_mode in
26167 :L) ac_source=$1;;
26168 :[FH])
26169 ac_file_inputs=
26170 for ac_f
26172 case $ac_f in
26173 -) ac_f="$tmp/stdin";;
26174 *) # Look for the file first in the build tree, then in the source tree
26175 # (if the path is not absolute). The absolute path cannot be DOS-style,
26176 # because $ac_f cannot contain `:'.
26177 test -f "$ac_f" ||
26178 case $ac_f in
26179 [\\/$]*) false;;
26180 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26181 esac ||
26182 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26183 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26184 { (exit 1); exit 1; }; };;
26185 esac
26186 ac_file_inputs="$ac_file_inputs $ac_f"
26187 done
26189 # Let's still pretend it is `configure' which instantiates (i.e., don't
26190 # use $as_me), people would be surprised to read:
26191 # /* config.h. Generated by config.status. */
26192 configure_input="Generated from "`IFS=:
26193 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26194 if test x"$ac_file" != x-; then
26195 configure_input="$ac_file. $configure_input"
26196 { echo "$as_me:$LINENO: creating $ac_file" >&5
26197 echo "$as_me: creating $ac_file" >&6;}
26200 case $ac_tag in
26201 *:-:* | *:-) cat >"$tmp/stdin";;
26202 esac
26204 esac
26206 ac_dir=`$as_dirname -- "$ac_file" ||
26207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26208 X"$ac_file" : 'X\(//\)[^/]' \| \
26209 X"$ac_file" : 'X\(//\)$' \| \
26210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26211 echo X"$ac_file" |
26212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26213 s//\1/
26216 /^X\(\/\/\)[^/].*/{
26217 s//\1/
26220 /^X\(\/\/\)$/{
26221 s//\1/
26224 /^X\(\/\).*/{
26225 s//\1/
26228 s/.*/./; q'`
26229 { as_dir="$ac_dir"
26230 case $as_dir in #(
26231 -*) as_dir=./$as_dir;;
26232 esac
26233 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26234 as_dirs=
26235 while :; do
26236 case $as_dir in #(
26237 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26238 *) as_qdir=$as_dir;;
26239 esac
26240 as_dirs="'$as_qdir' $as_dirs"
26241 as_dir=`$as_dirname -- "$as_dir" ||
26242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26243 X"$as_dir" : 'X\(//\)[^/]' \| \
26244 X"$as_dir" : 'X\(//\)$' \| \
26245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26246 echo X"$as_dir" |
26247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26248 s//\1/
26251 /^X\(\/\/\)[^/].*/{
26252 s//\1/
26255 /^X\(\/\/\)$/{
26256 s//\1/
26259 /^X\(\/\).*/{
26260 s//\1/
26263 s/.*/./; q'`
26264 test -d "$as_dir" && break
26265 done
26266 test -z "$as_dirs" || eval "mkdir $as_dirs"
26267 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26268 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26269 { (exit 1); exit 1; }; }; }
26270 ac_builddir=.
26272 case "$ac_dir" in
26273 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26276 # A ".." for each directory in $ac_dir_suffix.
26277 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26278 case $ac_top_builddir_sub in
26279 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26280 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26281 esac ;;
26282 esac
26283 ac_abs_top_builddir=$ac_pwd
26284 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26285 # for backward compatibility:
26286 ac_top_builddir=$ac_top_build_prefix
26288 case $srcdir in
26289 .) # We are building in place.
26290 ac_srcdir=.
26291 ac_top_srcdir=$ac_top_builddir_sub
26292 ac_abs_top_srcdir=$ac_pwd ;;
26293 [\\/]* | ?:[\\/]* ) # Absolute name.
26294 ac_srcdir=$srcdir$ac_dir_suffix;
26295 ac_top_srcdir=$srcdir
26296 ac_abs_top_srcdir=$srcdir ;;
26297 *) # Relative name.
26298 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26299 ac_top_srcdir=$ac_top_build_prefix$srcdir
26300 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26301 esac
26302 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26305 case $ac_mode in
26308 # CONFIG_FILE
26311 case $INSTALL in
26312 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26313 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26314 esac
26315 _ACEOF
26317 cat >>$CONFIG_STATUS <<\_ACEOF
26318 # If the template does not know about datarootdir, expand it.
26319 # FIXME: This hack should be removed a few years after 2.60.
26320 ac_datarootdir_hack=; ac_datarootdir_seen=
26322 case `sed -n '/datarootdir/ {
26326 /@datadir@/p
26327 /@docdir@/p
26328 /@infodir@/p
26329 /@localedir@/p
26330 /@mandir@/p
26331 ' $ac_file_inputs` in
26332 *datarootdir*) ac_datarootdir_seen=yes;;
26333 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26334 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26335 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26336 _ACEOF
26337 cat >>$CONFIG_STATUS <<_ACEOF
26338 ac_datarootdir_hack='
26339 s&@datadir@&$datadir&g
26340 s&@docdir@&$docdir&g
26341 s&@infodir@&$infodir&g
26342 s&@localedir@&$localedir&g
26343 s&@mandir@&$mandir&g
26344 s&\\\${datarootdir}&$datarootdir&g' ;;
26345 esac
26346 _ACEOF
26348 # Neutralize VPATH when `$srcdir' = `.'.
26349 # Shell code in configure.ac might set extrasub.
26350 # FIXME: do we really want to maintain this feature?
26351 cat >>$CONFIG_STATUS <<_ACEOF
26352 sed "$ac_vpsub
26353 $extrasub
26354 _ACEOF
26355 cat >>$CONFIG_STATUS <<\_ACEOF
26357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26358 s&@configure_input@&$configure_input&;t t
26359 s&@top_builddir@&$ac_top_builddir_sub&;t t
26360 s&@srcdir@&$ac_srcdir&;t t
26361 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26362 s&@top_srcdir@&$ac_top_srcdir&;t t
26363 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26364 s&@builddir@&$ac_builddir&;t t
26365 s&@abs_builddir@&$ac_abs_builddir&;t t
26366 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26367 s&@INSTALL@&$ac_INSTALL&;t t
26368 $ac_datarootdir_hack
26369 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26371 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26372 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26373 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26374 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26375 which seems to be undefined. Please make sure it is defined." >&5
26376 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26377 which seems to be undefined. Please make sure it is defined." >&2;}
26379 rm -f "$tmp/stdin"
26380 case $ac_file in
26381 -) cat "$tmp/out"; rm -f "$tmp/out";;
26382 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26383 esac
26387 # CONFIG_HEADER
26389 _ACEOF
26391 # Transform confdefs.h into a sed script `conftest.defines', that
26392 # substitutes the proper values into config.h.in to produce config.h.
26393 rm -f conftest.defines conftest.tail
26394 # First, append a space to every undef/define line, to ease matching.
26395 echo 's/$/ /' >conftest.defines
26396 # Then, protect against being on the right side of a sed subst, or in
26397 # an unquoted here document, in config.status. If some macros were
26398 # called several times there might be several #defines for the same
26399 # symbol, which is useless. But do not sort them, since the last
26400 # AC_DEFINE must be honored.
26401 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26402 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26403 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26404 # PARAMS is the parameter list in the macro definition--in most cases, it's
26405 # just an empty string.
26406 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26407 ac_dB='\\)[ (].*,\\1define\\2'
26408 ac_dC=' '
26409 ac_dD=' ,'
26411 uniq confdefs.h |
26412 sed -n '
26413 t rset
26414 :rset
26415 s/^[ ]*#[ ]*define[ ][ ]*//
26416 t ok
26419 s/[\\&,]/\\&/g
26420 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26421 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26422 ' >>conftest.defines
26424 # Remove the space that was appended to ease matching.
26425 # Then replace #undef with comments. This is necessary, for
26426 # example, in the case of _POSIX_SOURCE, which is predefined and required
26427 # on some systems where configure will not decide to define it.
26428 # (The regexp can be short, since the line contains either #define or #undef.)
26429 echo 's/ $//
26430 s,^[ #]*u.*,/* & */,' >>conftest.defines
26432 # Break up conftest.defines:
26433 ac_max_sed_lines=50
26435 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26436 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26437 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26438 # et cetera.
26439 ac_in='$ac_file_inputs'
26440 ac_out='"$tmp/out1"'
26441 ac_nxt='"$tmp/out2"'
26443 while :
26445 # Write a here document:
26446 cat >>$CONFIG_STATUS <<_ACEOF
26447 # First, check the format of the line:
26448 cat >"\$tmp/defines.sed" <<\\CEOF
26449 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26450 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26452 :def
26453 _ACEOF
26454 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26455 echo 'CEOF
26456 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26457 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26458 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26459 grep . conftest.tail >/dev/null || break
26460 rm -f conftest.defines
26461 mv conftest.tail conftest.defines
26462 done
26463 rm -f conftest.defines conftest.tail
26465 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26466 cat >>$CONFIG_STATUS <<\_ACEOF
26467 if test x"$ac_file" != x-; then
26468 echo "/* $configure_input */" >"$tmp/config.h"
26469 cat "$ac_result" >>"$tmp/config.h"
26470 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26471 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26472 echo "$as_me: $ac_file is unchanged" >&6;}
26473 else
26474 rm -f $ac_file
26475 mv "$tmp/config.h" $ac_file
26477 else
26478 echo "/* $configure_input */"
26479 cat "$ac_result"
26481 rm -f "$tmp/out12"
26485 esac
26487 done # for ac_tag
26490 { (exit 0); exit 0; }
26491 _ACEOF
26492 chmod +x $CONFIG_STATUS
26493 ac_clean_files=$ac_clean_files_save
26496 # configure is writing to config.log, and then calls config.status.
26497 # config.status does its own redirection, appending to config.log.
26498 # Unfortunately, on DOS this fails, as config.log is still kept open
26499 # by configure, so config.status won't be able to write to it; its
26500 # output is simply discarded. So we exec the FD to /dev/null,
26501 # effectively closing config.log, so it can be properly (re)opened and
26502 # appended to by config.status. When coming back to configure, we
26503 # need to make the FD available again.
26504 if test "$no_create" != yes; then
26505 ac_cs_success=:
26506 ac_config_status_args=
26507 test "$silent" = yes &&
26508 ac_config_status_args="$ac_config_status_args --quiet"
26509 exec 5>/dev/null
26510 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26511 exec 5>>config.log
26512 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26513 # would make configure fail if this is the last instruction.
26514 $ac_cs_success || { (exit 1); exit 1; }
26518 echo "creating Modules/Setup"
26519 if test ! -f Modules/Setup
26520 then
26521 cp $srcdir/Modules/Setup.dist Modules/Setup
26524 echo "creating Modules/Setup.local"
26525 if test ! -f Modules/Setup.local
26526 then
26527 echo "# Edit this file for local setup changes" >Modules/Setup.local
26530 echo "creating Makefile"
26531 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26532 -s Modules Modules/Setup.config \
26533 Modules/Setup.local Modules/Setup
26535 case $ac_sys_system in
26536 BeOS)
26537 { echo "$as_me:$LINENO: WARNING:
26539 Support for BeOS is deprecated as of Python 2.6.
26540 See PEP 11 for the gory details.
26541 " >&5
26542 echo "$as_me: WARNING:
26544 Support for BeOS is deprecated as of Python 2.6.
26545 See PEP 11 for the gory details.
26546 " >&2;}
26548 *) ;;
26549 esac
26551 mv config.c Modules