Merged revisions 78684 via svnmerge from
[python/dscho.git] / configure
blob5253b8614103dcdd99846f225ded777caa08b46f
1 #! /bin/sh
2 # From configure.in Revision: 78197 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='3.1'
579 PACKAGE_STRING='python 3.1'
580 PACKAGE_BUGREPORT='http://bugs.python.org/'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
683 MAINCC
685 GREP
686 EGREP
687 BUILDEXEEXT
688 LIBRARY
689 LDLIBRARY
690 DLLLIBRARY
691 BLDLIBRARY
692 LDLIBRARYDIR
693 INSTSONAME
694 RUNSHARED
695 LINKCC
696 GNULD
697 RANLIB
699 ARFLAGS
700 SVNVERSION
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
706 BASECFLAGS
707 UNIVERSAL_ARCH_FLAGS
708 OTHER_LIBTOOL_OPT
709 LIBTOOL_CRUFT
711 LDSHARED
712 BLDSHARED
713 CCSHARED
714 LINKFORSHARED
715 CFLAGSFORSHARED
716 SHLIBS
717 USE_SIGNAL_MODULE
718 SIGNAL_OBJS
719 USE_THREAD_MODULE
720 LDLAST
721 THREADOBJ
722 DLINCLDIR
723 DYNLOADFILE
724 MACHDEP_OBJS
725 TRUE
726 LIBOBJS
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
730 HAVE_GETHOSTBYNAME_R
731 HAVE_GETHOSTBYNAME
732 LIBM
733 LIBC
734 THREADHEADERS
735 SRCDIRS
736 LTLIBOBJS'
737 ac_subst_files=''
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP'
749 # Initialize some variables set by options.
750 ac_init_help=
751 ac_init_version=false
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
754 cache_file=/dev/null
755 exec_prefix=NONE
756 no_create=
757 no_recursion=
758 prefix=NONE
759 program_prefix=NONE
760 program_suffix=NONE
761 program_transform_name=s,x,x,
762 silent=
763 site=
764 srcdir=
765 verbose=
766 x_includes=NONE
767 x_libraries=NONE
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir='${exec_prefix}/bin'
776 sbindir='${exec_prefix}/sbin'
777 libexecdir='${exec_prefix}/libexec'
778 datarootdir='${prefix}/share'
779 datadir='${datarootdir}'
780 sysconfdir='${prefix}/etc'
781 sharedstatedir='${prefix}/com'
782 localstatedir='${prefix}/var'
783 includedir='${prefix}/include'
784 oldincludedir='/usr/include'
785 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
786 infodir='${datarootdir}/info'
787 htmldir='${docdir}'
788 dvidir='${docdir}'
789 pdfdir='${docdir}'
790 psdir='${docdir}'
791 libdir='${exec_prefix}/lib'
792 localedir='${datarootdir}/locale'
793 mandir='${datarootdir}/man'
795 ac_prev=
796 ac_dashdash=
797 for ac_option
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\$ac_option
802 ac_prev=
803 continue
806 case $ac_option in
807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808 *) ac_optarg=yes ;;
809 esac
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
815 ac_dashdash=yes ;;
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 ac_prev=bindir ;;
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 bindir=$ac_optarg ;;
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
834 --config-cache | -C)
835 cache_file=config.cache ;;
837 -datadir | --datadir | --datadi | --datad)
838 ac_prev=datadir ;;
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
849 -disable-* | --disable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_$ac_feature=no ;;
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
868 -enable-* | --enable-*)
869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
873 { (exit 1); exit 1; }; }
874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
875 eval enable_$ac_feature=\$ac_optarg ;;
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;;
881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
883 | --exec=* | --exe=* | --ex=*)
884 exec_prefix=$ac_optarg ;;
886 -gas | --gas | --ga | --g)
887 # Obsolete; use --with-gas.
888 with_gas=yes ;;
890 -help | --help | --hel | --he | -h)
891 ac_init_help=long ;;
892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
893 ac_init_help=recursive ;;
894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
895 ac_init_help=short ;;
897 -host | --host | --hos | --ho)
898 ac_prev=host_alias ;;
899 -host=* | --host=* | --hos=* | --ho=*)
900 host_alias=$ac_optarg ;;
902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 ac_prev=htmldir ;;
904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 | --ht=*)
906 htmldir=$ac_optarg ;;
908 -includedir | --includedir | --includedi | --included | --include \
909 | --includ | --inclu | --incl | --inc)
910 ac_prev=includedir ;;
911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
912 | --includ=* | --inclu=* | --incl=* | --inc=*)
913 includedir=$ac_optarg ;;
915 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 ac_prev=infodir ;;
917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
918 infodir=$ac_optarg ;;
920 -libdir | --libdir | --libdi | --libd)
921 ac_prev=libdir ;;
922 -libdir=* | --libdir=* | --libdi=* | --libd=*)
923 libdir=$ac_optarg ;;
925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
926 | --libexe | --libex | --libe)
927 ac_prev=libexecdir ;;
928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
929 | --libexe=* | --libex=* | --libe=*)
930 libexecdir=$ac_optarg ;;
932 -localedir | --localedir | --localedi | --localed | --locale)
933 ac_prev=localedir ;;
934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
935 localedir=$ac_optarg ;;
937 -localstatedir | --localstatedir | --localstatedi | --localstated \
938 | --localstate | --localstat | --localsta | --localst | --locals)
939 ac_prev=localstatedir ;;
940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
942 localstatedir=$ac_optarg ;;
944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 ac_prev=mandir ;;
946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 mandir=$ac_optarg ;;
949 -nfp | --nfp | --nf)
950 # Obsolete; use --without-fp.
951 with_fp=no ;;
953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
954 | --no-cr | --no-c | -n)
955 no_create=yes ;;
957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959 no_recursion=yes ;;
961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
963 | --oldin | --oldi | --old | --ol | --o)
964 ac_prev=oldincludedir ;;
965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
968 oldincludedir=$ac_optarg ;;
970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 ac_prev=prefix ;;
972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973 prefix=$ac_optarg ;;
975 -program-prefix | --program-prefix | --program-prefi | --program-pref \
976 | --program-pre | --program-pr | --program-p)
977 ac_prev=program_prefix ;;
978 -program-prefix=* | --program-prefix=* | --program-prefi=* \
979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
980 program_prefix=$ac_optarg ;;
982 -program-suffix | --program-suffix | --program-suffi | --program-suff \
983 | --program-suf | --program-su | --program-s)
984 ac_prev=program_suffix ;;
985 -program-suffix=* | --program-suffix=* | --program-suffi=* \
986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
987 program_suffix=$ac_optarg ;;
989 -program-transform-name | --program-transform-name \
990 | --program-transform-nam | --program-transform-na \
991 | --program-transform-n | --program-transform- \
992 | --program-transform | --program-transfor \
993 | --program-transfo | --program-transf \
994 | --program-trans | --program-tran \
995 | --progr-tra | --program-tr | --program-t)
996 ac_prev=program_transform_name ;;
997 -program-transform-name=* | --program-transform-name=* \
998 | --program-transform-nam=* | --program-transform-na=* \
999 | --program-transform-n=* | --program-transform-=* \
1000 | --program-transform=* | --program-transfor=* \
1001 | --program-transfo=* | --program-transf=* \
1002 | --program-trans=* | --program-tran=* \
1003 | --progr-tra=* | --program-tr=* | --program-t=*)
1004 program_transform_name=$ac_optarg ;;
1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 ac_prev=pdfdir ;;
1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1009 pdfdir=$ac_optarg ;;
1011 -psdir | --psdir | --psdi | --psd | --ps)
1012 ac_prev=psdir ;;
1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014 psdir=$ac_optarg ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 silent=yes ;;
1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 ac_prev=sbindir ;;
1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 | --sbi=* | --sb=*)
1024 sbindir=$ac_optarg ;;
1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1028 | --sharedst | --shareds | --shared | --share | --shar \
1029 | --sha | --sh)
1030 ac_prev=sharedstatedir ;;
1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 | --sha=* | --sh=*)
1035 sharedstatedir=$ac_optarg ;;
1037 -site | --site | --sit)
1038 ac_prev=site ;;
1039 -site=* | --site=* | --sit=*)
1040 site=$ac_optarg ;;
1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 ac_prev=srcdir ;;
1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1045 srcdir=$ac_optarg ;;
1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1048 | --syscon | --sysco | --sysc | --sys | --sy)
1049 ac_prev=sysconfdir ;;
1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1052 sysconfdir=$ac_optarg ;;
1054 -target | --target | --targe | --targ | --tar | --ta | --t)
1055 ac_prev=target_alias ;;
1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1057 target_alias=$ac_optarg ;;
1059 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060 verbose=yes ;;
1062 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;;
1065 -with-* | --with-*)
1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_$ac_package=\$ac_optarg ;;
1074 -without-* | --without-*)
1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_$ac_package=no ;;
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option
1102 Try \`$0 --help' for more information." >&2
1103 { (exit 1); exit 1; }; }
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1111 { (exit 1); exit 1; }; }
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123 esac
1124 done
1126 if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2
1129 { (exit 1); exit 1; }; }
1132 # Be sure to have absolute directory names.
1133 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1138 eval ac_val=\$$ac_var
1139 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1144 { (exit 1); exit 1; }; }
1145 done
1147 # There might be people who depend on the old broken behavior: `$host'
1148 # used to hold the argument of --host etc.
1149 # FIXME: To remove some day.
1150 build=$build_alias
1151 host=$host_alias
1152 target=$target_alias
1154 # FIXME: To remove some day.
1155 if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then
1157 cross_compiling=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes
1165 ac_tool_prefix=
1166 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168 test "$silent" = yes && exec 6>/dev/null
1171 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di=`ls -di .` &&
1173 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2
1175 { (exit 1); exit 1; }; }
1176 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2
1178 { (exit 1); exit 1; }; }
1181 # Find the source files, if location was not specified.
1182 if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$0" ||
1186 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1190 echo X"$0" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192 s//\1/
1195 /^X\(\/\/\)[^/].*/{
1196 s//\1/
1199 /^X\(\/\/\)$/{
1200 s//\1/
1203 /^X\(\/\).*/{
1204 s//\1/
1207 s/.*/./; q'`
1208 srcdir=$ac_confdir
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 srcdir=..
1212 else
1213 ac_srcdir_defaulted=no
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1218 { (exit 1); exit 1; }; }
1220 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1223 { (exit 1); exit 1; }; }
1224 pwd)`
1225 # When building in place, set srcdir=.
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 srcdir=.
1229 # Remove unnecessary trailing slashes from srcdir.
1230 # Double slashes in file names in object file debugging info
1231 # mess up M-x gdb in Emacs.
1232 case $srcdir in
1233 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234 esac
1235 for ac_var in $ac_precious_vars; do
1236 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_env_${ac_var}_value=\$${ac_var}
1238 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1240 done
1243 # Report the --help message.
1245 if test "$ac_init_help" = "long"; then
1246 # Omit some internal or obsolete options to make the list less imposing.
1247 # This message is too long to be a string in the A/UX 3.1 sh.
1248 cat <<_ACEOF
1249 \`configure' configures python 3.1 to adapt to many kinds of systems.
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254 VAR=VALUE. See below for descriptions of some of the useful variables.
1256 Defaults for the options are specified in brackets.
1258 Configuration:
1259 -h, --help display this help and exit
1260 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages
1264 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269 Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 [PREFIX]
1275 By default, \`make install' will install all the files in
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278 for instance \`--prefix=\$HOME'.
1280 For better control, use the options below.
1282 Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1302 _ACEOF
1304 cat <<\_ACEOF
1305 _ACEOF
1308 if test -n "$ac_init_help"; then
1309 case $ac_init_help in
1310 short | recursive ) echo "Configuration of python 3.1:";;
1311 esac
1312 cat <<\_ACEOF
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-universalsdk[=SDKDIR]
1318 Build against Mac OS X 10.4u SDK (ppc/i386)
1319 --enable-framework[=INSTALLDIR]
1320 Build (MacOSX|Darwin) framework
1321 --enable-shared disable/enable building shared python library
1322 --enable-profiling enable C-level code profiling
1323 --enable-ipv6 Enable ipv6 (with ipv4) support
1324 --disable-ipv6 Disable ipv6 support
1325 --enable-big-digits[=BITS]
1326 use big digits for Python longs [BITS=30]
1328 Optional Packages:
1329 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1330 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1331 --with-universal-archs=ARCH
1332 select architectures for universal build ("32-bit",
1333 "64-bit", "3-way", "intel" or "all")
1334 --with-framework-name=FRAMEWORK
1335 specify an alternate name of the framework built
1336 with --enable-framework
1337 --without-gcc never use gcc
1338 --with-cxx-main=<compiler>
1339 compile main() and link python executable with C++
1340 compiler
1341 --with-suffix=.exe set executable suffix
1342 --with-pydebug build with Py_DEBUG defined
1343 --with-libs='lib1 ...' link against additional libs
1344 --with-system-ffi build _ctypes module using an installed ffi library
1345 --with-dbmliborder=db1:db2:...
1346 order to check db backends for dbm. Valid value is a
1347 colon separated string with the backend names
1348 `ndbm', `gdbm' and `bdb'.
1349 --with-signal-module disable/enable signal module
1350 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1351 --with(out)-threads[=DIRECTORY]
1352 disable/enable thread support
1353 --with(out)-thread[=DIRECTORY]
1354 deprecated; use --with(out)-threads
1355 --with-pth use GNU pth threading libraries
1356 --with(out)-doc-strings disable/enable documentation strings
1357 --with(out)-tsc enable/disable timestamp counter profile
1358 --with(out)-pymalloc disable/enable specialized mallocs
1359 --with-wctype-functions use wctype.h functions
1360 --with-fpectl enable SIGFPE catching
1361 --with-libm=STRING math library
1362 --with-libc=STRING C library
1363 --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
1364 --with-computed-gotos Use computed gotos / threaded dispatch in evaluation
1365 loop (not available on all compilers)
1367 Some influential environment variables:
1368 CC C compiler command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1371 nonstandard directory <lib dir>
1372 LIBS libraries to pass to the linker, e.g. -l<library>
1373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374 you have headers in a nonstandard directory <include dir>
1375 CPP C preprocessor
1377 Use these variables to override the choices made by `configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to <http://bugs.python.org/>.
1381 _ACEOF
1382 ac_status=$?
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" || continue
1389 ac_builddir=.
1391 case "$ac_dir" in
1392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1400 esac ;;
1401 esac
1402 ac_abs_top_builddir=$ac_pwd
1403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404 # for backward compatibility:
1405 ac_top_builddir=$ac_top_build_prefix
1407 case $srcdir in
1408 .) # We are building in place.
1409 ac_srcdir=.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1416 *) # Relative name.
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420 esac
1421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1431 else
1432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 fi || ac_status=$?
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1435 done
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1440 cat <<\_ACEOF
1441 python configure 3.1
1442 generated by GNU Autoconf 2.61
1444 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1445 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1448 _ACEOF
1449 exit
1451 cat >config.log <<_ACEOF
1452 This file contains any messages produced by compilers while
1453 running configure, to aid debugging if configure makes a mistake.
1455 It was created by python $as_me 3.1, which was
1456 generated by GNU Autoconf 2.61. Invocation command line was
1458 $ $0 $@
1460 _ACEOF
1461 exec 5>>config.log
1463 cat <<_ASUNAME
1464 ## --------- ##
1465 ## Platform. ##
1466 ## --------- ##
1468 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1469 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1470 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1471 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1472 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1474 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1475 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1477 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1478 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1479 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1480 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1481 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1482 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1483 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1485 _ASUNAME
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 echo "PATH: $as_dir"
1493 done
1494 IFS=$as_save_IFS
1496 } >&5
1498 cat >&5 <<_ACEOF
1501 ## ----------- ##
1502 ## Core tests. ##
1503 ## ----------- ##
1505 _ACEOF
1508 # Keep a trace of the command line.
1509 # Strip out --no-create and --no-recursion so they do not pile up.
1510 # Strip out --silent because we don't want to record it for future runs.
1511 # Also quote any args containing shell meta-characters.
1512 # Make two passes to allow for proper duplicate-argument suppression.
1513 ac_configure_args=
1514 ac_configure_args0=
1515 ac_configure_args1=
1516 ac_must_keep_next=false
1517 for ac_pass in 1 2
1519 for ac_arg
1521 case $ac_arg in
1522 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1525 continue ;;
1526 *\'*)
1527 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1528 esac
1529 case $ac_pass in
1530 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1532 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1533 if test $ac_must_keep_next = true; then
1534 ac_must_keep_next=false # Got value, back to normal.
1535 else
1536 case $ac_arg in
1537 *=* | --config-cache | -C | -disable-* | --disable-* \
1538 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1539 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1540 | -with-* | --with-* | -without-* | --without-* | --x)
1541 case "$ac_configure_args0 " in
1542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1543 esac
1545 -* ) ac_must_keep_next=true ;;
1546 esac
1548 ac_configure_args="$ac_configure_args '$ac_arg'"
1550 esac
1551 done
1552 done
1553 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1554 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1556 # When interrupted or exit'd, cleanup temporary files, and complete
1557 # config.log. We remove comments because anyway the quotes in there
1558 # would cause problems or look ugly.
1559 # WARNING: Use '\'' to represent an apostrophe within the trap.
1560 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1561 trap 'exit_status=$?
1562 # Save into config.log some information that might help in debugging.
1564 echo
1566 cat <<\_ASBOX
1567 ## ---------------- ##
1568 ## Cache variables. ##
1569 ## ---------------- ##
1570 _ASBOX
1571 echo
1572 # The following way of writing the cache mishandles newlines in values,
1574 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1575 eval ac_val=\$$ac_var
1576 case $ac_val in #(
1577 *${as_nl}*)
1578 case $ac_var in #(
1579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1580 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1581 esac
1582 case $ac_var in #(
1583 _ | IFS | as_nl) ;; #(
1584 *) $as_unset $ac_var ;;
1585 esac ;;
1586 esac
1587 done
1588 (set) 2>&1 |
1589 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1591 sed -n \
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1594 ;; #(
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 esac |
1599 sort
1601 echo
1603 cat <<\_ASBOX
1604 ## ----------------- ##
1605 ## Output variables. ##
1606 ## ----------------- ##
1607 _ASBOX
1608 echo
1609 for ac_var in $ac_subst_vars
1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 echo "$ac_var='\''$ac_val'\''"
1616 done | sort
1617 echo
1619 if test -n "$ac_subst_files"; then
1620 cat <<\_ASBOX
1621 ## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##
1624 _ASBOX
1625 echo
1626 for ac_var in $ac_subst_files
1628 eval ac_val=\$$ac_var
1629 case $ac_val in
1630 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 esac
1632 echo "$ac_var='\''$ac_val'\''"
1633 done | sort
1634 echo
1637 if test -s confdefs.h; then
1638 cat <<\_ASBOX
1639 ## ----------- ##
1640 ## confdefs.h. ##
1641 ## ----------- ##
1642 _ASBOX
1643 echo
1644 cat confdefs.h
1645 echo
1647 test "$ac_signal" != 0 &&
1648 echo "$as_me: caught signal $ac_signal"
1649 echo "$as_me: exit $exit_status"
1650 } >&5
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1653 exit $exit_status
1655 for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657 done
1658 ac_signal=0
1660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1661 rm -f -r conftest* confdefs.h
1663 # Predefined preprocessor variables.
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_NAME "$PACKAGE_NAME"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672 _ACEOF
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1677 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_STRING "$PACKAGE_STRING"
1682 _ACEOF
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687 _ACEOF
1690 # Let the site file select an alternate cache file if it wants to.
1691 # Prefer explicitly selected file to automatically selected ones.
1692 if test -n "$CONFIG_SITE"; then
1693 set x "$CONFIG_SITE"
1694 elif test "x$prefix" != xNONE; then
1695 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1696 else
1697 set x "$ac_default_prefix/share/config.site" \
1698 "$ac_default_prefix/etc/config.site"
1700 shift
1701 for ac_site_file
1703 if test -r "$ac_site_file"; then
1704 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1705 echo "$as_me: loading site script $ac_site_file" >&6;}
1706 sed 's/^/| /' "$ac_site_file" >&5
1707 . "$ac_site_file"
1709 done
1711 if test -r "$cache_file"; then
1712 # Some versions of bash will fail to source /dev/null (special
1713 # files actually), so we avoid doing that.
1714 if test -f "$cache_file"; then
1715 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1716 echo "$as_me: loading cache $cache_file" >&6;}
1717 case $cache_file in
1718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1719 *) . "./$cache_file";;
1720 esac
1722 else
1723 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1724 echo "$as_me: creating cache $cache_file" >&6;}
1725 >$cache_file
1728 # Check that the precious variables saved in the cache have kept the same
1729 # value.
1730 ac_cache_corrupted=false
1731 for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1737 set,)
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1739 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1741 ,set)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,);;
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1751 echo "$as_me: former value: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1753 echo "$as_me: current value: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1755 fi;;
1756 esac
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1759 case $ac_new_val in
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1762 esac
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 esac
1768 done
1769 if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1771 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1772 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1773 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1801 ac_ext=c
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 ac_config_headers="$ac_config_headers pyconfig.h"
1813 if test "$prefix" != "/"; then
1814 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1822 # We don't use PACKAGE_ variables, and they cause conflicts
1823 # with other autoconf-based packages that include Python.h
1824 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1825 rm confdefs.h
1826 mv confdefs.h.new confdefs.h
1829 VERSION=3.1
1832 SOVERSION=1.0
1834 # The later defininition of _XOPEN_SOURCE disables certain features
1835 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1837 cat >>confdefs.h <<\_ACEOF
1838 #define _GNU_SOURCE 1
1839 _ACEOF
1842 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1843 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1844 # them.
1846 cat >>confdefs.h <<\_ACEOF
1847 #define _NETBSD_SOURCE 1
1848 _ACEOF
1851 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1852 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1853 # them.
1855 cat >>confdefs.h <<\_ACEOF
1856 #define __BSD_VISIBLE 1
1857 _ACEOF
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1863 cat >>confdefs.h <<\_ACEOF
1864 #define _BSD_TYPES 1
1865 _ACEOF
1868 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1869 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1870 # them.
1872 cat >>confdefs.h <<\_ACEOF
1873 #define _DARWIN_C_SOURCE 1
1874 _ACEOF
1878 define_xopen_source=yes
1880 # Arguments passed to configure.
1882 CONFIG_ARGS="$ac_configure_args"
1884 { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5
1885 echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; }
1886 # Check whether --enable-universalsdk was given.
1887 if test "${enable_universalsdk+set}" = set; then
1888 enableval=$enable_universalsdk;
1889 case $enableval in
1890 yes)
1891 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1892 if test ! -d "${enableval}"
1893 then
1894 enableval=/
1897 esac
1898 case $enableval in
1900 UNIVERSALSDK=
1901 enable_universalsdk=
1904 UNIVERSALSDK=$enableval
1905 if test ! -d "${UNIVERSALSDK}"
1906 then
1907 { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5
1908 echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;}
1909 { (exit 1); exit 1; }; }
1912 esac
1915 else
1917 UNIVERSALSDK=
1918 enable_universalsdk=
1922 if test -n "${UNIVERSALSDK}"
1923 then
1924 { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5
1925 echo "${ECHO_T}${UNIVERSALSDK}" >&6; }
1926 else
1927 { echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6; }
1934 UNIVERSAL_ARCHS="32-bit"
1935 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1936 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1938 # Check whether --with-universal-archs was given.
1939 if test "${with_universal_archs+set}" = set; then
1940 withval=$with_universal_archs;
1941 { echo "$as_me:$LINENO: result: $withval" >&5
1942 echo "${ECHO_T}$withval" >&6; }
1943 UNIVERSAL_ARCHS="$withval"
1945 else
1947 { echo "$as_me:$LINENO: result: 32-bit" >&5
1948 echo "${ECHO_T}32-bit" >&6; }
1956 # Check whether --with-framework-name was given.
1957 if test "${with_framework_name+set}" = set; then
1958 withval=$with_framework_name;
1959 PYTHONFRAMEWORK=${withval}
1960 PYTHONFRAMEWORKDIR=${withval}.framework
1961 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1963 else
1965 PYTHONFRAMEWORK=Python
1966 PYTHONFRAMEWORKDIR=Python.framework
1967 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1971 # Check whether --enable-framework was given.
1972 if test "${enable_framework+set}" = set; then
1973 enableval=$enable_framework;
1974 case $enableval in
1975 yes)
1976 enableval=/Library/Frameworks
1977 esac
1978 case $enableval in
1980 PYTHONFRAMEWORK=
1981 PYTHONFRAMEWORKDIR=no-framework
1982 PYTHONFRAMEWORKPREFIX=
1983 PYTHONFRAMEWORKINSTALLDIR=
1984 FRAMEWORKINSTALLFIRST=
1985 FRAMEWORKINSTALLLAST=
1986 FRAMEWORKALTINSTALLFIRST=
1987 FRAMEWORKALTINSTALLLAST=
1988 if test "x${prefix}" = "xNONE"; then
1989 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1990 else
1991 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1993 enable_framework=
1996 PYTHONFRAMEWORKPREFIX=$enableval
1997 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1998 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1999 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
2000 if test "$UNIVERSAL_ARCHS" = "all"
2001 then
2002 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2003 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2004 else
2005 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2006 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2009 if test "x${prefix}" = "xNONE" ; then
2010 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2011 else
2012 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2014 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2016 # Add files for Mac specific code to the list of output
2017 # files:
2018 ac_config_files="$ac_config_files Mac/Makefile"
2020 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2022 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2024 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2026 esac
2028 else
2030 PYTHONFRAMEWORK=
2031 PYTHONFRAMEWORKDIR=no-framework
2032 PYTHONFRAMEWORKPREFIX=
2033 PYTHONFRAMEWORKINSTALLDIR=
2034 FRAMEWORKINSTALLFIRST=
2035 FRAMEWORKINSTALLLAST=
2036 FRAMEWORKALTINSTALLFIRST=
2037 FRAMEWORKALTINSTALLLAST=
2038 if test "x${prefix}" = "xNONE" ; then
2039 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2040 else
2041 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2043 enable_framework=
2045 if test "$UNIVERSAL_ARCHS" = "all"
2046 then
2047 FRAMEWORKINSTALLLAST=update4wayuniversal
2048 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2064 ##AC_ARG_WITH(dyld,
2065 ## AC_HELP_STRING(--with-dyld,
2066 ## Use (OpenStep|Rhapsody) dynamic linker))
2068 # Set name for machine-dependent library files
2070 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2071 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2072 if test -z "$MACHDEP"
2073 then
2074 ac_sys_system=`uname -s`
2075 if test "$ac_sys_system" = "AIX" \
2076 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2077 ac_sys_release=`uname -v`
2078 else
2079 ac_sys_release=`uname -r`
2081 ac_md_system=`echo $ac_sys_system |
2082 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2083 ac_md_release=`echo $ac_sys_release |
2084 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2085 MACHDEP="$ac_md_system$ac_md_release"
2087 case $MACHDEP in
2088 cygwin*) MACHDEP="cygwin";;
2089 darwin*) MACHDEP="darwin";;
2090 atheos*) MACHDEP="atheos";;
2091 irix646) MACHDEP="irix6";;
2092 '') MACHDEP="unknown";;
2093 esac
2096 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2097 # disable features if it is defined, without any means to access these
2098 # features as extensions. For these systems, we skip the definition of
2099 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2100 # some feature, make sure there is no alternative way to access this
2101 # feature. Also, when using wildcards, make sure you have verified the
2102 # need for not defining _XOPEN_SOURCE on all systems matching the
2103 # wildcard, and that the wildcard does not include future systems
2104 # (which may remove their limitations).
2105 case $ac_sys_system/$ac_sys_release in
2106 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2107 # even though select is a POSIX function. Reported by J. Ribbens.
2108 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2109 # In addition, Stefan Krah confirms that issue #1244610 exists through
2110 # OpenBSD 4.6, but is fixed in 4.7.
2111 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2112 define_xopen_source=no
2113 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2114 # also defined. This can be overridden by defining _BSD_SOURCE
2115 # As this has a different meaning on Linux, only define it on OpenBSD
2117 cat >>confdefs.h <<\_ACEOF
2118 #define _BSD_SOURCE 1
2119 _ACEOF
2122 OpenBSD/4.[789])
2123 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2124 # also defined. This can be overridden by defining _BSD_SOURCE
2125 # As this has a different meaning on Linux, only define it on OpenBSD
2127 cat >>confdefs.h <<\_ACEOF
2128 #define _BSD_SOURCE 1
2129 _ACEOF
2132 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2133 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2134 # Marc Recht
2135 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2136 define_xopen_source=no;;
2137 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2138 # of union __?sigval. Reported by Stuart Bishop.
2139 SunOS/5.6)
2140 define_xopen_source=no;;
2141 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2142 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2143 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2144 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2145 define_xopen_source=no;;
2146 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2147 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2148 SCO_SV/3.2)
2149 define_xopen_source=no;;
2150 # On FreeBSD 4, the math functions C89 does not cover are never defined
2151 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2152 FreeBSD/4.*)
2153 define_xopen_source=no;;
2154 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2155 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2156 # identifies itself as Darwin/7.*
2157 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2158 # disables platform specific features beyond repair.
2159 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2160 # has no effect, don't bother defining them
2161 Darwin/[6789].*)
2162 define_xopen_source=no;;
2163 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2164 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2165 # or has another value. By not (re)defining it, the defaults come in place.
2166 AIX/4)
2167 define_xopen_source=no;;
2168 AIX/5)
2169 if test `uname -r` -eq 1; then
2170 define_xopen_source=no
2173 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2174 # defining NI_NUMERICHOST.
2175 QNX/6.3.2)
2176 define_xopen_source=no
2179 esac
2181 if test $define_xopen_source = yes
2182 then
2183 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2184 # defined precisely as g++ defines it
2185 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2186 # compiler
2187 case $ac_sys_system/$ac_sys_release in
2188 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2190 cat >>confdefs.h <<\_ACEOF
2191 #define _XOPEN_SOURCE 500
2192 _ACEOF
2197 cat >>confdefs.h <<\_ACEOF
2198 #define _XOPEN_SOURCE 600
2199 _ACEOF
2202 esac
2204 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2205 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2206 # several APIs are not declared. Since this is also needed in some
2207 # cases for HP-UX, we define it globally.
2208 # except for Solaris 10, where it must not be defined,
2209 # as it implies XPG4.2
2210 case $ac_sys_system/$ac_sys_release in
2211 SunOS/5.10)
2215 cat >>confdefs.h <<\_ACEOF
2216 #define _XOPEN_SOURCE_EXTENDED 1
2217 _ACEOF
2220 esac
2223 cat >>confdefs.h <<\_ACEOF
2224 #define _POSIX_C_SOURCE 200112L
2225 _ACEOF
2231 # SGI compilers allow the specification of the both the ABI and the
2232 # ISA on the command line. Depending on the values of these switches,
2233 # different and often incompatable code will be generated.
2235 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2236 # thus supply support for various ABI/ISA combinations. The MACHDEP
2237 # variable is also adjusted.
2240 if test ! -z "$SGI_ABI"
2241 then
2242 CC="cc $SGI_ABI"
2243 LDFLAGS="$SGI_ABI $LDFLAGS"
2244 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2246 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2247 echo "${ECHO_T}$MACHDEP" >&6; }
2249 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2250 # it may influence the way we can build extensions, so distutils
2251 # needs to check it
2254 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2255 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2257 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2258 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2259 ac_sys_machine=`uname -m`
2260 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2261 echo "${ECHO_T}$ac_sys_machine" >&6; }
2263 # checks for alternative programs
2265 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2266 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2267 # just to get things to compile and link. Users are free to override OPT
2268 # when running configure or make. The build should not break if they do.
2269 # BASECFLAGS should generally not be messed with, however.
2271 # XXX shouldn't some/most/all of this code be merged with the stuff later
2272 # on that fiddles with OPT and BASECFLAGS?
2273 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2274 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2276 # Check whether --with-gcc was given.
2277 if test "${with_gcc+set}" = set; then
2278 withval=$with_gcc;
2279 case $withval in
2280 no) CC=${CC:-cc}
2281 without_gcc=yes;;
2282 yes) CC=gcc
2283 without_gcc=no;;
2284 *) CC=$withval
2285 without_gcc=$withval;;
2286 esac
2287 else
2289 case $ac_sys_system in
2290 AIX*) CC=cc_r
2291 without_gcc=;;
2292 *) without_gcc=no;;
2293 esac
2296 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2297 echo "${ECHO_T}$without_gcc" >&6; }
2299 # If the user switches compilers, we can't believe the cache
2300 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2301 then
2302 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2303 (it is also a good idea to do 'make clean' before compiling)" >&5
2304 echo "$as_me: error: cached CC is different -- throw away $cache_file
2305 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2306 { (exit 1); exit 1; }; }
2309 ac_ext=c
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2336 done
2337 done
2338 IFS=$as_save_IFS
2342 CC=$ac_cv_prog_CC
2343 if test -n "$CC"; then
2344 { echo "$as_me:$LINENO: result: $CC" >&5
2345 echo "${ECHO_T}$CC" >&6; }
2346 else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2353 if test -z "$ac_cv_prog_CC"; then
2354 ac_ct_CC=$CC
2355 # Extract the first word of "gcc", so it can be a program name with args.
2356 set dummy gcc; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 if test -n "$ac_ct_CC"; then
2363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_ac_ct_CC="gcc"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2376 done
2377 done
2378 IFS=$as_save_IFS
2382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2383 if test -n "$ac_ct_CC"; then
2384 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2385 echo "${ECHO_T}$ac_ct_CC" >&6; }
2386 else
2387 { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2391 if test "x$ac_ct_CC" = x; then
2392 CC=""
2393 else
2394 case $cross_compiling:$ac_tool_warned in
2395 yes:)
2396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet. If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&5
2399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402 ac_tool_warned=yes ;;
2403 esac
2404 CC=$ac_ct_CC
2406 else
2407 CC="$ac_cv_prog_CC"
2410 if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}cc; ac_word=$2
2414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_CC="${ac_tool_prefix}cc"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2433 done
2434 done
2435 IFS=$as_save_IFS
2439 CC=$ac_cv_prog_CC
2440 if test -n "$CC"; then
2441 { echo "$as_me:$LINENO: result: $CC" >&5
2442 echo "${ECHO_T}$CC" >&6; }
2443 else
2444 { echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6; }
2451 if test -z "$CC"; then
2452 # Extract the first word of "cc", so it can be a program name with args.
2453 set dummy cc; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_CC+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # Let the user override the test.
2461 else
2462 ac_prog_rejected=no
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2471 ac_prog_rejected=yes
2472 continue
2474 ac_cv_prog_CC="cc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 break 2
2478 done
2479 done
2480 IFS=$as_save_IFS
2482 if test $ac_prog_rejected = yes; then
2483 # We found a bogon in the path, so make sure we never use it.
2484 set dummy $ac_cv_prog_CC
2485 shift
2486 if test $# != 0; then
2487 # We chose a different compiler from the bogus one.
2488 # However, it has the same basename, so the bogon will be chosen
2489 # first if we set CC to just the basename; use the full file name.
2490 shift
2491 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2496 CC=$ac_cv_prog_CC
2497 if test -n "$CC"; then
2498 { echo "$as_me:$LINENO: result: $CC" >&5
2499 echo "${ECHO_T}$CC" >&6; }
2500 else
2501 { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2507 if test -z "$CC"; then
2508 if test -n "$ac_tool_prefix"; then
2509 for ac_prog in cl.exe
2511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2532 done
2533 done
2534 IFS=$as_save_IFS
2538 CC=$ac_cv_prog_CC
2539 if test -n "$CC"; then
2540 { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2542 else
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2548 test -n "$CC" && break
2549 done
2551 if test -z "$CC"; then
2552 ac_ct_CC=$CC
2553 for ac_prog in cl.exe
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562 if test -n "$ac_ct_CC"; then
2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_ac_ct_CC="$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2576 done
2577 done
2578 IFS=$as_save_IFS
2582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583 if test -n "$ac_ct_CC"; then
2584 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2585 echo "${ECHO_T}$ac_ct_CC" >&6; }
2586 else
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2592 test -n "$ac_ct_CC" && break
2593 done
2595 if test "x$ac_ct_CC" = x; then
2596 CC=""
2597 else
2598 case $cross_compiling:$ac_tool_warned in
2599 yes:)
2600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet. If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&5
2603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet. If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2606 ac_tool_warned=yes ;;
2607 esac
2608 CC=$ac_ct_CC
2615 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: no acceptable C compiler found in \$PATH
2618 See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2621 # Provide some information about the compiler.
2622 echo "$as_me:$LINENO: checking for C compiler version" >&5
2623 ac_compiler=`set X $ac_compile; echo $2`
2624 { (ac_try="$ac_compiler --version >&5"
2625 case "(($ac_try" in
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2628 esac
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630 (eval "$ac_compiler --version >&5") 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }
2634 { (ac_try="$ac_compiler -v >&5"
2635 case "(($ac_try" in
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2638 esac
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640 (eval "$ac_compiler -v >&5") 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }
2644 { (ac_try="$ac_compiler -V >&5"
2645 case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648 esac
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compiler -V >&5") 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }
2655 cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h. */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2663 main ()
2667 return 0;
2669 _ACEOF
2670 ac_clean_files_save=$ac_clean_files
2671 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2672 # Try to create an executable without -o first, disregard a.out.
2673 # It will help us diagnose broken compilers, and finding out an intuition
2674 # of exeext.
2675 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2676 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2677 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2679 # List of possible output files, starting from the most likely.
2680 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2681 # only as a last resort. b.out is created by i960 compilers.
2682 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2684 # The IRIX 6 linker writes into existing files which may not be
2685 # executable, retaining their permissions. Remove them first so a
2686 # subsequent execution test works.
2687 ac_rmfiles=
2688 for ac_file in $ac_files
2690 case $ac_file in
2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2692 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2693 esac
2694 done
2695 rm -f $ac_rmfiles
2697 if { (ac_try="$ac_link_default"
2698 case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_link_default") 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; then
2707 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2708 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2709 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2710 # so that the user can short-circuit this test for compilers unknown to
2711 # Autoconf.
2712 for ac_file in $ac_files ''
2714 test -f "$ac_file" || continue
2715 case $ac_file in
2716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2718 [ab].out )
2719 # We found the default executable, but exeext='' is most
2720 # certainly right.
2721 break;;
2722 *.* )
2723 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2724 then :; else
2725 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2727 # We set ac_cv_exeext here because the later test for it is not
2728 # safe: cross compilers may not add the suffix if given an `-o'
2729 # argument, so we may need to know it at that point already.
2730 # Even if this section looks crufty: it has the advantage of
2731 # actually working.
2732 break;;
2734 break;;
2735 esac
2736 done
2737 test "$ac_cv_exeext" = no && ac_cv_exeext=
2739 else
2740 ac_file=''
2743 { echo "$as_me:$LINENO: result: $ac_file" >&5
2744 echo "${ECHO_T}$ac_file" >&6; }
2745 if test -z "$ac_file"; then
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2749 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: C compiler cannot create executables
2752 See \`config.log' for more details." >&2;}
2753 { (exit 77); exit 77; }; }
2756 ac_exeext=$ac_cv_exeext
2758 # Check that the compiler produces executables we can run. If not, either
2759 # the compiler is broken, or we cross compile.
2760 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2761 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2762 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2763 # If not cross compiling, check that we can run a simple program.
2764 if test "$cross_compiling" != yes; then
2765 if { ac_try='./$ac_file'
2766 { (case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_try") 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2775 cross_compiling=no
2776 else
2777 if test "$cross_compiling" = maybe; then
2778 cross_compiling=yes
2779 else
2780 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2781 If you meant to cross compile, use \`--host'.
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: cannot run C compiled programs.
2784 If you meant to cross compile, use \`--host'.
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2790 { echo "$as_me:$LINENO: result: yes" >&5
2791 echo "${ECHO_T}yes" >&6; }
2793 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2794 ac_clean_files=$ac_clean_files_save
2795 # Check that the compiler produces executables we can run. If not, either
2796 # the compiler is broken, or we cross compile.
2797 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2798 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2799 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2800 echo "${ECHO_T}$cross_compiling" >&6; }
2802 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2803 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2804 if { (ac_try="$ac_link"
2805 case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_link") 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; then
2814 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2815 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2816 # work properly (i.e., refer to `conftest.exe'), while it won't with
2817 # `rm'.
2818 for ac_file in conftest.exe conftest conftest.*; do
2819 test -f "$ac_file" || continue
2820 case $ac_file in
2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823 break;;
2824 * ) break;;
2825 esac
2826 done
2827 else
2828 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2831 See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2835 rm -f conftest$ac_cv_exeext
2836 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2837 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2839 rm -f conftest.$ac_ext
2840 EXEEXT=$ac_cv_exeext
2841 ac_exeext=$EXEEXT
2842 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2843 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2844 if test "${ac_cv_objext+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847 cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h. */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2855 main ()
2859 return 0;
2861 _ACEOF
2862 rm -f conftest.o conftest.obj
2863 if { (ac_try="$ac_compile"
2864 case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867 esac
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compile") 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; then
2873 for ac_file in conftest.o conftest.obj conftest.*; do
2874 test -f "$ac_file" || continue;
2875 case $ac_file in
2876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2877 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2878 break;;
2879 esac
2880 done
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2886 See \`config.log' for more details." >&5
2887 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2888 See \`config.log' for more details." >&2;}
2889 { (exit 1); exit 1; }; }
2892 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2894 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2895 echo "${ECHO_T}$ac_cv_objext" >&6; }
2896 OBJEXT=$ac_cv_objext
2897 ac_objext=$OBJEXT
2898 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2911 main ()
2913 #ifndef __GNUC__
2914 choke me
2915 #endif
2918 return 0;
2920 _ACEOF
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_c_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.$ac_objext; then
2938 ac_compiler_gnu=yes
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 ac_compiler_gnu=no
2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2950 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2951 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2952 GCC=`test $ac_compiler_gnu = yes && echo yes`
2953 ac_test_CFLAGS=${CFLAGS+set}
2954 ac_save_CFLAGS=$CFLAGS
2955 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2956 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_cc_g+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 ac_save_c_werror_flag=$ac_c_werror_flag
2961 ac_c_werror_flag=yes
2962 ac_cv_prog_cc_g=no
2963 CFLAGS="-g"
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 main ()
2976 return 0;
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } && {
2993 test -z "$ac_c_werror_flag" ||
2994 test ! -s conftest.err
2995 } && test -s conftest.$ac_objext; then
2996 ac_cv_prog_cc_g=yes
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 CFLAGS=""
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3010 main ()
3014 return 0;
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_c_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.$ac_objext; then
3035 else
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 ac_c_werror_flag=$ac_save_c_werror_flag
3040 CFLAGS="-g"
3041 cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h. */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3049 main ()
3053 return 0;
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } && {
3070 test -z "$ac_c_werror_flag" ||
3071 test ! -s conftest.err
3072 } && test -s conftest.$ac_objext; then
3073 ac_cv_prog_cc_g=yes
3074 else
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 ac_c_werror_flag=$ac_save_c_werror_flag
3090 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3091 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3092 if test "$ac_test_CFLAGS" = set; then
3093 CFLAGS=$ac_save_CFLAGS
3094 elif test $ac_cv_prog_cc_g = yes; then
3095 if test "$GCC" = yes; then
3096 CFLAGS="-g -O2"
3097 else
3098 CFLAGS="-g"
3100 else
3101 if test "$GCC" = yes; then
3102 CFLAGS="-O2"
3103 else
3104 CFLAGS=
3107 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3108 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3109 if test "${ac_cv_prog_cc_c89+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112 ac_cv_prog_cc_c89=no
3113 ac_save_CC=$CC
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 #include <stdarg.h>
3121 #include <stdio.h>
3122 #include <sys/types.h>
3123 #include <sys/stat.h>
3124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3125 struct buf { int x; };
3126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3127 static char *e (p, i)
3128 char **p;
3129 int i;
3131 return p[i];
3133 static char *f (char * (*g) (char **, int), char **p, ...)
3135 char *s;
3136 va_list v;
3137 va_start (v,p);
3138 s = g (p, va_arg (v,int));
3139 va_end (v);
3140 return s;
3143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3144 function prototypes and stuff, but not '\xHH' hex character constants.
3145 These don't provoke an error unfortunately, instead are silently treated
3146 as 'x'. The following induces an error, until -std is added to get
3147 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3148 array size at least. It's necessary to write '\x00'==0 to get something
3149 that's true only with -std. */
3150 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3152 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3153 inside strings and character constants. */
3154 #define FOO(x) 'x'
3155 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3157 int test (int i, double x);
3158 struct s1 {int (*f) (int a);};
3159 struct s2 {int (*f) (double a);};
3160 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3161 int argc;
3162 char **argv;
3164 main ()
3166 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3168 return 0;
3170 _ACEOF
3171 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3172 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3174 CC="$ac_save_CC $ac_arg"
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3183 ac_status=$?
3184 grep -v '^ *+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
3192 ac_cv_prog_cc_c89=$ac_arg
3193 else
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3200 rm -f core conftest.err conftest.$ac_objext
3201 test "x$ac_cv_prog_cc_c89" != "xno" && break
3202 done
3203 rm -f conftest.$ac_ext
3204 CC=$ac_save_CC
3207 # AC_CACHE_VAL
3208 case "x$ac_cv_prog_cc_c89" in
3210 { echo "$as_me:$LINENO: result: none needed" >&5
3211 echo "${ECHO_T}none needed" >&6; } ;;
3212 xno)
3213 { echo "$as_me:$LINENO: result: unsupported" >&5
3214 echo "${ECHO_T}unsupported" >&6; } ;;
3216 CC="$CC $ac_cv_prog_cc_c89"
3217 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3218 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3219 esac
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3232 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3234 # Check whether --with-cxx_main was given.
3235 if test "${with_cxx_main+set}" = set; then
3236 withval=$with_cxx_main;
3238 case $withval in
3239 no) with_cxx_main=no
3240 MAINCC='$(CC)';;
3241 yes) with_cxx_main=yes
3242 MAINCC='$(CXX)';;
3243 *) with_cxx_main=yes
3244 MAINCC=$withval
3245 if test -z "$CXX"
3246 then
3247 CXX=$withval
3248 fi;;
3249 esac
3250 else
3252 with_cxx_main=no
3253 MAINCC='$(CC)'
3257 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3258 echo "${ECHO_T}$with_cxx_main" >&6; }
3260 preset_cxx="$CXX"
3261 if test -z "$CXX"
3262 then
3263 case "$CC" in
3264 gcc) # Extract the first word of "g++", so it can be a program name with args.
3265 set dummy g++; ac_word=$2
3266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3268 if test "${ac_cv_path_CXX+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 case $CXX in
3272 [\\/]* | ?:[\\/]*)
3273 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in notfound
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3287 done
3288 done
3289 IFS=$as_save_IFS
3291 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3293 esac
3295 CXX=$ac_cv_path_CXX
3296 if test -n "$CXX"; then
3297 { echo "$as_me:$LINENO: result: $CXX" >&5
3298 echo "${ECHO_T}$CXX" >&6; }
3299 else
3300 { echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6; }
3305 cc) # Extract the first word of "c++", so it can be a program name with args.
3306 set dummy c++; ac_word=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_path_CXX+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 case $CXX in
3313 [\\/]* | ?:[\\/]*)
3314 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in notfound
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3328 done
3329 done
3330 IFS=$as_save_IFS
3332 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3334 esac
3336 CXX=$ac_cv_path_CXX
3337 if test -n "$CXX"; then
3338 { echo "$as_me:$LINENO: result: $CXX" >&5
3339 echo "${ECHO_T}$CXX" >&6; }
3340 else
3341 { echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6; }
3346 esac
3347 if test "$CXX" = "notfound"
3348 then
3349 CXX=""
3352 if test -z "$CXX"
3353 then
3354 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3356 # Extract the first word of "$ac_prog", so it can be a program name with args.
3357 set dummy $ac_prog; ac_word=$2
3358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3360 if test "${ac_cv_prog_CXX+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -n "$CXX"; then
3364 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3373 ac_cv_prog_CXX="$ac_prog"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3377 done
3378 done
3379 IFS=$as_save_IFS
3383 CXX=$ac_cv_prog_CXX
3384 if test -n "$CXX"; then
3385 { echo "$as_me:$LINENO: result: $CXX" >&5
3386 echo "${ECHO_T}$CXX" >&6; }
3387 else
3388 { echo "$as_me:$LINENO: result: no" >&5
3389 echo "${ECHO_T}no" >&6; }
3393 test -n "$CXX" && break
3394 done
3395 test -n "$CXX" || CXX="notfound"
3397 if test "$CXX" = "notfound"
3398 then
3399 CXX=""
3402 if test "$preset_cxx" != "$CXX"
3403 then
3404 { echo "$as_me:$LINENO: WARNING:
3406 By default, distutils will build C++ extension modules with \"$CXX\".
3407 If this is not intended, then set CXX on the configure command line.
3408 " >&5
3409 echo "$as_me: WARNING:
3411 By default, distutils will build C++ extension modules with \"$CXX\".
3412 If this is not intended, then set CXX on the configure command line.
3413 " >&2;}
3417 # checks for UNIX variants that set C preprocessor variables
3419 ac_ext=c
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3425 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3426 # On Suns, sometimes $CPP names a directory.
3427 if test -n "$CPP" && test -d "$CPP"; then
3428 CPP=
3430 if test -z "$CPP"; then
3431 if test "${ac_cv_prog_CPP+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434 # Double quotes because CPP needs to be expanded
3435 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3437 ac_preproc_ok=false
3438 for ac_c_preproc_warn_flag in '' yes
3440 # Use a header file that comes with gcc, so configuring glibc
3441 # with a fresh cross-compiler works.
3442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3443 # <limits.h> exists even on freestanding compilers.
3444 # On the NeXT, cc -E runs the code through the compiler's parser,
3445 # not just through cpp. "Syntax error" is here to catch this case.
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #ifdef __STDC__
3453 # include <limits.h>
3454 #else
3455 # include <assert.h>
3456 #endif
3457 Syntax error
3458 _ACEOF
3459 if { (ac_try="$ac_cpp conftest.$ac_ext"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev/null && {
3472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3473 test ! -s conftest.err
3474 }; then
3476 else
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 # Broken: fails on valid input.
3481 continue
3484 rm -f conftest.err conftest.$ac_ext
3486 # OK, works on sane cases. Now check whether nonexistent headers
3487 # can be detected and how.
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 #include <ac_nonexistent.h>
3495 _ACEOF
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null && {
3509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 }; then
3512 # Broken: success on invalid input.
3513 continue
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 # Passes both tests.
3519 ac_preproc_ok=:
3520 break
3523 rm -f conftest.err conftest.$ac_ext
3525 done
3526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3527 rm -f conftest.err conftest.$ac_ext
3528 if $ac_preproc_ok; then
3529 break
3532 done
3533 ac_cv_prog_CPP=$CPP
3536 CPP=$ac_cv_prog_CPP
3537 else
3538 ac_cv_prog_CPP=$CPP
3540 { echo "$as_me:$LINENO: result: $CPP" >&5
3541 echo "${ECHO_T}$CPP" >&6; }
3542 ac_preproc_ok=false
3543 for ac_c_preproc_warn_flag in '' yes
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548 # <limits.h> exists even on freestanding compilers.
3549 # On the NeXT, cc -E runs the code through the compiler's parser,
3550 # not just through cpp. "Syntax error" is here to catch this case.
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 #ifdef __STDC__
3558 # include <limits.h>
3559 #else
3560 # include <assert.h>
3561 #endif
3562 Syntax error
3563 _ACEOF
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } >/dev/null && {
3577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 }; then
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 # Broken: fails on valid input.
3586 continue
3589 rm -f conftest.err conftest.$ac_ext
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <ac_nonexistent.h>
3600 _ACEOF
3601 if { (ac_try="$ac_cpp conftest.$ac_ext"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } >/dev/null && {
3614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3615 test ! -s conftest.err
3616 }; then
3617 # Broken: success on invalid input.
3618 continue
3619 else
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 # Passes both tests.
3624 ac_preproc_ok=:
3625 break
3628 rm -f conftest.err conftest.$ac_ext
3630 done
3631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3632 rm -f conftest.err conftest.$ac_ext
3633 if $ac_preproc_ok; then
3635 else
3636 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3637 See \`config.log' for more details." >&5
3638 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&2;}
3640 { (exit 1); exit 1; }; }
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3651 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3652 if test "${ac_cv_path_GREP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 # Extract the first word of "grep ggrep" to use in msg output
3656 if test -z "$GREP"; then
3657 set dummy grep ggrep; ac_prog_name=$2
3658 if test "${ac_cv_path_GREP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661 ac_path_GREP_found=false
3662 # Loop through the user's path and test for each of PROGNAME-LIST
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_prog in grep ggrep; do
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3671 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3672 # Check for GNU ac_path_GREP and select it if it is found.
3673 # Check for GNU $ac_path_GREP
3674 case `"$ac_path_GREP" --version 2>&1` in
3675 *GNU*)
3676 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678 ac_count=0
3679 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3680 while :
3682 cat "conftest.in" "conftest.in" >"conftest.tmp"
3683 mv "conftest.tmp" "conftest.in"
3684 cp "conftest.in" "conftest.nl"
3685 echo 'GREP' >> "conftest.nl"
3686 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3688 ac_count=`expr $ac_count + 1`
3689 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3690 # Best one so far, save it but keep looking for a better one
3691 ac_cv_path_GREP="$ac_path_GREP"
3692 ac_path_GREP_max=$ac_count
3694 # 10*(2^10) chars as input seems more than enough
3695 test $ac_count -gt 10 && break
3696 done
3697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3698 esac
3701 $ac_path_GREP_found && break 3
3702 done
3703 done
3705 done
3706 IFS=$as_save_IFS
3711 GREP="$ac_cv_path_GREP"
3712 if test -z "$GREP"; then
3713 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3714 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3715 { (exit 1); exit 1; }; }
3718 else
3719 ac_cv_path_GREP=$GREP
3724 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3725 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3726 GREP="$ac_cv_path_GREP"
3729 { echo "$as_me:$LINENO: checking for egrep" >&5
3730 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3731 if test "${ac_cv_path_EGREP+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3735 then ac_cv_path_EGREP="$GREP -E"
3736 else
3737 # Extract the first word of "egrep" to use in msg output
3738 if test -z "$EGREP"; then
3739 set dummy egrep; ac_prog_name=$2
3740 if test "${ac_cv_path_EGREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 ac_path_EGREP_found=false
3744 # Loop through the user's path and test for each of PROGNAME-LIST
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_prog in egrep; do
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3753 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3754 # Check for GNU ac_path_EGREP and select it if it is found.
3755 # Check for GNU $ac_path_EGREP
3756 case `"$ac_path_EGREP" --version 2>&1` in
3757 *GNU*)
3758 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760 ac_count=0
3761 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3762 while :
3764 cat "conftest.in" "conftest.in" >"conftest.tmp"
3765 mv "conftest.tmp" "conftest.in"
3766 cp "conftest.in" "conftest.nl"
3767 echo 'EGREP' >> "conftest.nl"
3768 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3769 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3770 ac_count=`expr $ac_count + 1`
3771 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3772 # Best one so far, save it but keep looking for a better one
3773 ac_cv_path_EGREP="$ac_path_EGREP"
3774 ac_path_EGREP_max=$ac_count
3776 # 10*(2^10) chars as input seems more than enough
3777 test $ac_count -gt 10 && break
3778 done
3779 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3780 esac
3783 $ac_path_EGREP_found && break 3
3784 done
3785 done
3787 done
3788 IFS=$as_save_IFS
3793 EGREP="$ac_cv_path_EGREP"
3794 if test -z "$EGREP"; then
3795 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3796 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3797 { (exit 1); exit 1; }; }
3800 else
3801 ac_cv_path_EGREP=$EGREP
3807 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3808 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3809 EGREP="$ac_cv_path_EGREP"
3813 { echo "$as_me:$LINENO: checking for AIX" >&5
3814 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #ifdef _AIX
3823 #endif
3825 _ACEOF
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 $EGREP "yes" >/dev/null 2>&1; then
3828 { echo "$as_me:$LINENO: result: yes" >&5
3829 echo "${ECHO_T}yes" >&6; }
3830 cat >>confdefs.h <<\_ACEOF
3831 #define _ALL_SOURCE 1
3832 _ACEOF
3834 else
3835 { echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6; }
3838 rm -f conftest*
3842 # Check for unsupported systems
3843 case $ac_sys_system/$ac_sys_release in
3844 atheos*|Linux*/1*)
3845 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3846 echo See README for details.
3847 exit 1;;
3848 esac
3851 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3852 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3854 # Check whether --with-suffix was given.
3855 if test "${with_suffix+set}" = set; then
3856 withval=$with_suffix;
3857 case $withval in
3858 no) EXEEXT=;;
3859 yes) EXEEXT=.exe;;
3860 *) EXEEXT=$withval;;
3861 esac
3864 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3865 echo "${ECHO_T}$EXEEXT" >&6; }
3867 # Test whether we're running on a non-case-sensitive system, in which
3868 # case we give a warning if no ext is given
3870 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3871 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3872 if test ! -d CaseSensitiveTestDir; then
3873 mkdir CaseSensitiveTestDir
3876 if test -d casesensitivetestdir
3877 then
3878 { echo "$as_me:$LINENO: result: yes" >&5
3879 echo "${ECHO_T}yes" >&6; }
3880 BUILDEXEEXT=.exe
3881 else
3882 { echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6; }
3884 BUILDEXEEXT=$EXEEXT
3886 rmdir CaseSensitiveTestDir
3888 case $MACHDEP in
3889 bsdos*)
3890 case $CC in
3891 gcc) CC="$CC -D_HAVE_BSDI";;
3892 esac;;
3893 esac
3895 case $ac_sys_system in
3896 hp*|HP*)
3897 case $CC in
3898 cc|*/cc) CC="$CC -Ae";;
3899 esac;;
3900 SunOS*)
3901 # Some functions have a prototype only with that define, e.g. confstr
3903 cat >>confdefs.h <<\_ACEOF
3904 #define __EXTENSIONS__ 1
3905 _ACEOF
3908 esac
3912 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3913 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3914 if test -z "$LIBRARY"
3915 then
3916 LIBRARY='libpython$(VERSION).a'
3918 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3919 echo "${ECHO_T}$LIBRARY" >&6; }
3921 # LDLIBRARY is the name of the library to link against (as opposed to the
3922 # name of the library into which to insert object files). BLDLIBRARY is also
3923 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3924 # is blank as the main program is not linked directly against LDLIBRARY.
3925 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3926 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3927 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3928 # DLLLIBRARY is the shared (i.e., DLL) library.
3930 # RUNSHARED is used to run shared python without installed libraries
3932 # INSTSONAME is the name of the shared library that will be use to install
3933 # on the system - some systems like version suffix, others don't
3940 LDLIBRARY="$LIBRARY"
3941 BLDLIBRARY='$(LDLIBRARY)'
3942 INSTSONAME='$(LDLIBRARY)'
3943 DLLLIBRARY=''
3944 LDLIBRARYDIR=''
3945 RUNSHARED=''
3947 # LINKCC is the command that links the python executable -- default is $(CC).
3948 # If CXX is set, and if it is needed to link a main function that was
3949 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3950 # python might then depend on the C++ runtime
3951 # This is altered for AIX in order to build the export list before
3952 # linking.
3954 { echo "$as_me:$LINENO: checking LINKCC" >&5
3955 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3956 if test -z "$LINKCC"
3957 then
3958 LINKCC='$(PURIFY) $(MAINCC)'
3959 case $ac_sys_system in
3960 AIX*)
3961 exp_extra="\"\""
3962 if test $ac_sys_release -ge 5 -o \
3963 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3964 exp_extra="."
3966 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3967 QNX*)
3968 # qcc must be used because the other compilers do not
3969 # support -N.
3970 LINKCC=qcc;;
3971 esac
3973 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3974 echo "${ECHO_T}$LINKCC" >&6; }
3976 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3977 # make sure we default having it set to "no": this is used by
3978 # distutils.unixccompiler to know if it should add --enable-new-dtags
3979 # to linker command lines, and failing to detect GNU ld simply results
3980 # in the same bahaviour as before.
3982 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3983 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3984 ac_prog=ld
3985 if test "$GCC" = yes; then
3986 ac_prog=`$CC -print-prog-name=ld`
3988 case `"$ac_prog" -V 2>&1 < /dev/null` in
3989 *GNU*)
3990 GNULD=yes;;
3992 GNULD=no;;
3993 esac
3994 { echo "$as_me:$LINENO: result: $GNULD" >&5
3995 echo "${ECHO_T}$GNULD" >&6; }
3997 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3998 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3999 # Check whether --enable-shared was given.
4000 if test "${enable_shared+set}" = set; then
4001 enableval=$enable_shared;
4005 if test -z "$enable_shared"
4006 then
4007 case $ac_sys_system in
4008 CYGWIN* | atheos*)
4009 enable_shared="yes";;
4011 enable_shared="no";;
4012 esac
4014 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4015 echo "${ECHO_T}$enable_shared" >&6; }
4017 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4018 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4019 # Check whether --enable-profiling was given.
4020 if test "${enable_profiling+set}" = set; then
4021 enableval=$enable_profiling; ac_save_cc="$CC"
4022 CC="$CC -pg"
4023 if test "$cross_compiling" = yes; then
4024 ac_enable_profiling="no"
4025 else
4026 cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h. */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4032 int main() { return 0; }
4033 _ACEOF
4034 rm -f conftest$ac_exeext
4035 if { (ac_try="$ac_link"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_link") 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4045 { (case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_try") 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_enable_profiling="yes"
4055 else
4056 echo "$as_me: program exited with status $ac_status" >&5
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 ( exit $ac_status )
4061 ac_enable_profiling="no"
4063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4067 CC="$ac_save_cc"
4070 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4071 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4073 case "$ac_enable_profiling" in
4074 "yes")
4075 BASECFLAGS="-pg $BASECFLAGS"
4076 LDFLAGS="-pg $LDFLAGS"
4078 esac
4080 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4081 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4083 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4084 # library that we build, but we do not want to link against it (we
4085 # will find it with a -framework option). For this reason there is an
4086 # extra variable BLDLIBRARY against which Python and the extension
4087 # modules are linked, BLDLIBRARY. This is normally the same as
4088 # LDLIBRARY, but empty for MacOSX framework builds.
4089 if test "$enable_framework"
4090 then
4091 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4092 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4093 BLDLIBRARY=''
4094 else
4095 BLDLIBRARY='$(LDLIBRARY)'
4098 # Other platforms follow
4099 if test $enable_shared = "yes"; then
4101 cat >>confdefs.h <<\_ACEOF
4102 #define Py_ENABLE_SHARED 1
4103 _ACEOF
4105 case $ac_sys_system in
4106 CYGWIN*)
4107 LDLIBRARY='libpython$(VERSION).dll.a'
4108 DLLLIBRARY='libpython$(VERSION).dll'
4110 SunOS*)
4111 LDLIBRARY='libpython$(VERSION).so'
4112 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4113 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4114 INSTSONAME="$LDLIBRARY".$SOVERSION
4116 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4117 LDLIBRARY='libpython$(VERSION).so'
4118 BLDLIBRARY='-L. -lpython$(VERSION)'
4119 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4120 case $ac_sys_system in
4121 FreeBSD*)
4122 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4124 esac
4125 INSTSONAME="$LDLIBRARY".$SOVERSION
4127 hp*|HP*)
4128 case `uname -m` in
4129 ia64)
4130 LDLIBRARY='libpython$(VERSION).so'
4133 LDLIBRARY='libpython$(VERSION).sl'
4135 esac
4136 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4137 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4139 OSF*)
4140 LDLIBRARY='libpython$(VERSION).so'
4141 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4142 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4144 atheos*)
4145 LDLIBRARY='libpython$(VERSION).so'
4146 BLDLIBRARY='-L. -lpython$(VERSION)'
4147 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4149 Darwin*)
4150 LDLIBRARY='libpython$(VERSION).dylib'
4151 BLDLIBRARY='-L. -lpython$(VERSION)'
4152 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4155 esac
4156 else # shared is disabled
4157 case $ac_sys_system in
4158 CYGWIN*)
4159 BLDLIBRARY='$(LIBRARY)'
4160 LDLIBRARY='libpython$(VERSION).dll.a'
4162 esac
4165 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4166 echo "${ECHO_T}$LDLIBRARY" >&6; }
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4173 if test "${ac_cv_prog_RANLIB+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 if test -n "$RANLIB"; then
4177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4190 done
4191 done
4192 IFS=$as_save_IFS
4196 RANLIB=$ac_cv_prog_RANLIB
4197 if test -n "$RANLIB"; then
4198 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4199 echo "${ECHO_T}$RANLIB" >&6; }
4200 else
4201 { echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6; }
4207 if test -z "$ac_cv_prog_RANLIB"; then
4208 ac_ct_RANLIB=$RANLIB
4209 # Extract the first word of "ranlib", so it can be a program name with args.
4210 set dummy ranlib; ac_word=$2
4211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if test -n "$ac_ct_RANLIB"; then
4217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_ac_ct_RANLIB="ranlib"
4227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4232 IFS=$as_save_IFS
4236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4237 if test -n "$ac_ct_RANLIB"; then
4238 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4239 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4240 else
4241 { echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6; }
4245 if test "x$ac_ct_RANLIB" = x; then
4246 RANLIB=":"
4247 else
4248 case $cross_compiling:$ac_tool_warned in
4249 yes:)
4250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4251 whose name does not start with the host triplet. If you think this
4252 configuration is useful to you, please write to autoconf@gnu.org." >&5
4253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4254 whose name does not start with the host triplet. If you think this
4255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4256 ac_tool_warned=yes ;;
4257 esac
4258 RANLIB=$ac_ct_RANLIB
4260 else
4261 RANLIB="$ac_cv_prog_RANLIB"
4265 for ac_prog in ar aal
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4271 if test "${ac_cv_prog_AR+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 if test -n "$AR"; then
4275 ac_cv_prog_AR="$AR" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_AR="$ac_prog"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4288 done
4289 done
4290 IFS=$as_save_IFS
4294 AR=$ac_cv_prog_AR
4295 if test -n "$AR"; then
4296 { echo "$as_me:$LINENO: result: $AR" >&5
4297 echo "${ECHO_T}$AR" >&6; }
4298 else
4299 { echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6; }
4304 test -n "$AR" && break
4305 done
4306 test -n "$AR" || AR="ar"
4309 # tweak ARFLAGS only if the user didn't set it on the command line
4311 if test -z "$ARFLAGS"
4312 then
4313 ARFLAGS="rc"
4317 # Extract the first word of "svnversion", so it can be a program name with args.
4318 set dummy svnversion; ac_word=$2
4319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4321 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324 if test -n "$SVNVERSION"; then
4325 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_SVNVERSION="found"
4335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4338 done
4339 done
4340 IFS=$as_save_IFS
4342 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4345 SVNVERSION=$ac_cv_prog_SVNVERSION
4346 if test -n "$SVNVERSION"; then
4347 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4348 echo "${ECHO_T}$SVNVERSION" >&6; }
4349 else
4350 { echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6; }
4355 if test $SVNVERSION = found
4356 then
4357 SVNVERSION="svnversion \$(srcdir)"
4358 else
4359 SVNVERSION="echo Unversioned directory"
4362 case $MACHDEP in
4363 bsdos*|hp*|HP*)
4364 # install -d does not work on BSDI or HP-UX
4365 if test -z "$INSTALL"
4366 then
4367 INSTALL="${srcdir}/install-sh -c"
4369 esac
4370 ac_aux_dir=
4371 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4372 if test -f "$ac_dir/install-sh"; then
4373 ac_aux_dir=$ac_dir
4374 ac_install_sh="$ac_aux_dir/install-sh -c"
4375 break
4376 elif test -f "$ac_dir/install.sh"; then
4377 ac_aux_dir=$ac_dir
4378 ac_install_sh="$ac_aux_dir/install.sh -c"
4379 break
4380 elif test -f "$ac_dir/shtool"; then
4381 ac_aux_dir=$ac_dir
4382 ac_install_sh="$ac_aux_dir/shtool install -c"
4383 break
4385 done
4386 if test -z "$ac_aux_dir"; then
4387 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4388 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4389 { (exit 1); exit 1; }; }
4392 # These three variables are undocumented and unsupported,
4393 # and are intended to be withdrawn in a future Autoconf release.
4394 # They can cause serious problems if a builder's source tree is in a directory
4395 # whose full name contains unusual characters.
4396 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4397 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4398 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4401 # Find a good install program. We prefer a C program (faster),
4402 # so one script is as good as another. But avoid the broken or
4403 # incompatible versions:
4404 # SysV /etc/install, /usr/sbin/install
4405 # SunOS /usr/etc/install
4406 # IRIX /sbin/install
4407 # AIX /bin/install
4408 # AmigaOS /C/install, which installs bootblocks on floppy discs
4409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4412 # OS/2's system install, which has a completely different semantic
4413 # ./install, which can be erroneously created by make from ./install.sh.
4414 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4415 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4416 if test -z "$INSTALL"; then
4417 if test "${ac_cv_path_install+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 # Account for people who put trailing slashes in PATH elements.
4426 case $as_dir/ in
4427 ./ | .// | /cC/* | \
4428 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4429 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4430 /usr/ucb/* ) ;;
4432 # OSF1 and SCO ODT 3.0 have their own names for install.
4433 # Don't use installbsd from OSF since it installs stuff as root
4434 # by default.
4435 for ac_prog in ginstall scoinst install; do
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4438 if test $ac_prog = install &&
4439 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4440 # AIX install. It has an incompatible calling convention.
4442 elif test $ac_prog = install &&
4443 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4444 # program-specific install script used by HP pwplus--don't use.
4446 else
4447 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4448 break 3
4451 done
4452 done
4454 esac
4455 done
4456 IFS=$as_save_IFS
4460 if test "${ac_cv_path_install+set}" = set; then
4461 INSTALL=$ac_cv_path_install
4462 else
4463 # As a last resort, use the slow shell script. Don't cache a
4464 # value for INSTALL within a source directory, because that will
4465 # break other packages using the cache if that directory is
4466 # removed, or if the value is a relative name.
4467 INSTALL=$ac_install_sh
4470 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4471 echo "${ECHO_T}$INSTALL" >&6; }
4473 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4474 # It thinks the first close brace ends the variable substitution.
4475 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4477 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4479 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4482 # Not every filesystem supports hard links
4484 if test -z "$LN" ; then
4485 case $ac_sys_system in
4486 CYGWIN*) LN="ln -s";;
4487 atheos*) LN="ln -s";;
4488 *) LN=ln;;
4489 esac
4492 # Check for --with-pydebug
4493 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4494 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4496 # Check whether --with-pydebug was given.
4497 if test "${with_pydebug+set}" = set; then
4498 withval=$with_pydebug;
4499 if test "$withval" != no
4500 then
4502 cat >>confdefs.h <<\_ACEOF
4503 #define Py_DEBUG 1
4504 _ACEOF
4506 { echo "$as_me:$LINENO: result: yes" >&5
4507 echo "${ECHO_T}yes" >&6; };
4508 Py_DEBUG='true'
4509 else { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4512 else
4513 { echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6; }
4518 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4519 # merged with this chunk of code?
4521 # Optimizer/debugger flags
4522 # ------------------------
4523 # (The following bit of code is complicated enough - please keep things
4524 # indented properly. Just pretend you're editing Python code. ;-)
4526 # There are two parallel sets of case statements below, one that checks to
4527 # see if OPT was set and one that does BASECFLAGS setting based upon
4528 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4529 # user set OPT.
4531 # tweak OPT based on compiler and platform, only if the user didn't set
4532 # it on the command line
4534 if test -z "$OPT"
4535 then
4536 case $GCC in
4537 yes)
4538 if test "$CC" != 'g++' ; then
4539 STRICT_PROTO="-Wstrict-prototypes"
4541 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4542 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4543 WRAP="-fwrapv"
4545 case $ac_cv_prog_cc_g in
4546 yes)
4547 if test "$Py_DEBUG" = 'true' ; then
4548 # Optimization messes up debuggers, so turn it off for
4549 # debug builds.
4550 OPT="-g -Wall $STRICT_PROTO"
4551 else
4552 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4556 OPT="-O3 -Wall $STRICT_PROTO"
4558 esac
4559 case $ac_sys_system in
4560 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4562 esac
4566 OPT="-O"
4568 esac
4573 # The -arch flags for universal builds on OSX
4574 UNIVERSAL_ARCH_FLAGS=
4577 # tweak BASECFLAGS based on compiler and platform
4578 case $GCC in
4579 yes)
4580 # Python violates C99 rules, by casting between incompatible
4581 # pointer types. GCC may generate bad code as a result of that,
4582 # so use -fno-strict-aliasing if supported.
4583 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4584 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4585 ac_save_cc="$CC"
4586 CC="$CC -fno-strict-aliasing"
4587 if test "$cross_compiling" = yes; then
4588 ac_cv_no_strict_aliasing_ok=no
4589 else
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 int main() { return 0; }
4597 _ACEOF
4598 rm -f conftest$ac_exeext
4599 if { (ac_try="$ac_link"
4600 case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_no_strict_aliasing_ok=yes
4619 else
4620 echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 ( exit $ac_status )
4625 ac_cv_no_strict_aliasing_ok=no
4627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 CC="$ac_save_cc"
4632 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4633 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4634 if test $ac_cv_no_strict_aliasing_ok = yes
4635 then
4636 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4639 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4640 # support. Without this, treatment of subnormals doesn't follow
4641 # the standard.
4642 case $ac_sys_machine in
4643 alpha*)
4644 BASECFLAGS="$BASECFLAGS -mieee"
4646 esac
4648 case $ac_sys_system in
4649 SCO_SV*)
4650 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4652 # is there any other compiler on Darwin besides gcc?
4653 Darwin*)
4654 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4655 # used to be here, but non-Apple gcc doesn't accept them.
4658 if test "${enable_universalsdk}"; then
4659 UNIVERSAL_ARCH_FLAGS=""
4660 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4661 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4662 ARCH_RUN_32BIT=""
4664 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4665 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4666 ARCH_RUN_32BIT="true"
4668 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4669 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4670 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4672 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4673 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4674 ARCH_RUN_32BIT="/usr/bin/arch -i386"
4676 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4677 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4678 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4680 else
4681 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4682 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4683 { (exit 1); exit 1; }; }
4688 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4689 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4690 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4691 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4695 # Calculate the right deployment target for this build.
4697 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4698 if test ${cur_target} '>' 10.2; then
4699 cur_target=10.3
4700 if test ${enable_universalsdk}; then
4701 if test "${UNIVERSAL_ARCHS}" = "all"; then
4702 # Ensure that the default platform for a
4703 # 4-way universal build is OSX 10.5,
4704 # that's the first OS release where
4705 # 4-way builds make sense.
4706 cur_target='10.5'
4708 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4709 cur_target='10.5'
4711 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4712 cur_target='10.5'
4714 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4715 cur_target='10.5'
4717 else
4718 if test `/usr/bin/arch` = "i386"; then
4719 # On Intel macs default to a deployment
4720 # target of 10.4, that's the first OSX
4721 # release with Intel support.
4722 cur_target="10.4"
4726 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4728 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4729 # environment with a value that is the same as what we'll use
4730 # in the Makefile to ensure that we'll get the same compiler
4731 # environment during configure and build time.
4732 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4733 export MACOSX_DEPLOYMENT_TARGET
4734 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4737 OSF*)
4738 BASECFLAGS="$BASECFLAGS -mieee"
4740 esac
4744 case $ac_sys_system in
4745 OpenUNIX*|UnixWare*)
4746 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4748 OSF*)
4749 BASECFLAGS="$BASECFLAGS -ieee -std"
4751 SCO_SV*)
4752 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4754 esac
4756 esac
4758 if test "$Py_DEBUG" = 'true'; then
4760 else
4761 OPT="-DNDEBUG $OPT"
4764 if test "$ac_arch_flags"
4765 then
4766 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4769 # disable check for icc since it seems to pass, but generates a warning
4770 if test "$CC" = icc
4771 then
4772 ac_cv_opt_olimit_ok=no
4775 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4776 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4777 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 ac_save_cc="$CC"
4781 CC="$CC -OPT:Olimit=0"
4782 if test "$cross_compiling" = yes; then
4783 ac_cv_opt_olimit_ok=no
4784 else
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 int main() { return 0; }
4792 _ACEOF
4793 rm -f conftest$ac_exeext
4794 if { (ac_try="$ac_link"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_link") 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4804 { (case "(($ac_try" in
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4807 esac
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_try") 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 ac_cv_opt_olimit_ok=yes
4814 else
4815 echo "$as_me: program exited with status $ac_status" >&5
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 ( exit $ac_status )
4820 ac_cv_opt_olimit_ok=no
4822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4826 CC="$ac_save_cc"
4829 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4830 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4831 if test $ac_cv_opt_olimit_ok = yes; then
4832 case $ac_sys_system in
4833 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4834 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4835 # environment?
4836 Darwin*)
4839 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4841 esac
4842 else
4843 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4844 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4845 if test "${ac_cv_olimit_ok+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848 ac_save_cc="$CC"
4849 CC="$CC -Olimit 1500"
4850 if test "$cross_compiling" = yes; then
4851 ac_cv_olimit_ok=no
4852 else
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 int main() { return 0; }
4860 _ACEOF
4861 rm -f conftest$ac_exeext
4862 if { (ac_try="$ac_link"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_link") 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4872 { (case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875 esac
4876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877 (eval "$ac_try") 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_cv_olimit_ok=yes
4882 else
4883 echo "$as_me: program exited with status $ac_status" >&5
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ( exit $ac_status )
4888 ac_cv_olimit_ok=no
4890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4894 CC="$ac_save_cc"
4897 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4898 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4899 if test $ac_cv_olimit_ok = yes; then
4900 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4904 # Check whether GCC supports PyArg_ParseTuple format
4905 if test "$GCC" = "yes"
4906 then
4907 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4908 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4909 save_CFLAGS=$CFLAGS
4910 CFLAGS="$CFLAGS -Werror"
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4918 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4921 main ()
4925 return 0;
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (ac_try="$ac_compile"
4930 case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933 esac
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4946 cat >>confdefs.h <<\_ACEOF
4947 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4948 _ACEOF
4950 { echo "$as_me:$LINENO: result: yes" >&5
4951 echo "${ECHO_T}yes" >&6; }
4952 else
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 CFLAGS=$save_CFLAGS
4965 # On some compilers, pthreads are available without further options
4966 # (e.g. MacOS X). On some of these systems, the compiler will not
4967 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4968 # So we have to see first whether pthreads are available without
4969 # options before we can check whether -Kpthread improves anything.
4970 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4971 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4972 if test "${ac_cv_pthread_is_default+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 if test "$cross_compiling" = yes; then
4976 ac_cv_pthread_is_default=no
4977 else
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4985 #include <pthread.h>
4987 void* routine(void* p){return NULL;}
4989 int main(){
4990 pthread_t p;
4991 if(pthread_create(&p,NULL,routine,NULL)!=0)
4992 return 1;
4993 (void)pthread_detach(p);
4994 return 0;
4997 _ACEOF
4998 rm -f conftest$ac_exeext
4999 if { (ac_try="$ac_link"
5000 case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5003 esac
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_link") 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5009 { (case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012 esac
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_try") 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5019 ac_cv_pthread_is_default=yes
5020 ac_cv_kthread=no
5021 ac_cv_pthread=no
5023 else
5024 echo "$as_me: program exited with status $ac_status" >&5
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5028 ( exit $ac_status )
5029 ac_cv_pthread_is_default=no
5031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5038 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5039 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5042 if test $ac_cv_pthread_is_default = yes
5043 then
5044 ac_cv_kpthread=no
5045 else
5046 # -Kpthread, if available, provides the right #defines
5047 # and linker options to make pthread_create available
5048 # Some compilers won't report that they do not support -Kpthread,
5049 # so we need to run a program to see whether it really made the
5050 # function available.
5051 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5052 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5053 if test "${ac_cv_kpthread+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 ac_save_cc="$CC"
5057 CC="$CC -Kpthread"
5058 if test "$cross_compiling" = yes; then
5059 ac_cv_kpthread=no
5060 else
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5068 #include <pthread.h>
5070 void* routine(void* p){return NULL;}
5072 int main(){
5073 pthread_t p;
5074 if(pthread_create(&p,NULL,routine,NULL)!=0)
5075 return 1;
5076 (void)pthread_detach(p);
5077 return 0;
5080 _ACEOF
5081 rm -f conftest$ac_exeext
5082 if { (ac_try="$ac_link"
5083 case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_link") 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5092 { (case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_try") 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 ac_cv_kpthread=yes
5102 else
5103 echo "$as_me: program exited with status $ac_status" >&5
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 ( exit $ac_status )
5108 ac_cv_kpthread=no
5110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5114 CC="$ac_save_cc"
5117 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5118 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5121 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5122 then
5123 # -Kthread, if available, provides the right #defines
5124 # and linker options to make pthread_create available
5125 # Some compilers won't report that they do not support -Kthread,
5126 # so we need to run a program to see whether it really made the
5127 # function available.
5128 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5129 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5130 if test "${ac_cv_kthread+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 ac_save_cc="$CC"
5134 CC="$CC -Kthread"
5135 if test "$cross_compiling" = yes; then
5136 ac_cv_kthread=no
5137 else
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5145 #include <pthread.h>
5147 void* routine(void* p){return NULL;}
5149 int main(){
5150 pthread_t p;
5151 if(pthread_create(&p,NULL,routine,NULL)!=0)
5152 return 1;
5153 (void)pthread_detach(p);
5154 return 0;
5157 _ACEOF
5158 rm -f conftest$ac_exeext
5159 if { (ac_try="$ac_link"
5160 case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163 esac
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_link") 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5169 { (case "(($ac_try" in
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5172 esac
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_try") 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5178 ac_cv_kthread=yes
5179 else
5180 echo "$as_me: program exited with status $ac_status" >&5
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 ( exit $ac_status )
5185 ac_cv_kthread=no
5187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5191 CC="$ac_save_cc"
5194 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5195 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5198 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5199 then
5200 # -pthread, if available, provides the right #defines
5201 # and linker options to make pthread_create available
5202 # Some compilers won't report that they do not support -pthread,
5203 # so we need to run a program to see whether it really made the
5204 # function available.
5205 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5206 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5207 if test "${ac_cv_thread+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 ac_save_cc="$CC"
5211 CC="$CC -pthread"
5212 if test "$cross_compiling" = yes; then
5213 ac_cv_pthread=no
5214 else
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5222 #include <pthread.h>
5224 void* routine(void* p){return NULL;}
5226 int main(){
5227 pthread_t p;
5228 if(pthread_create(&p,NULL,routine,NULL)!=0)
5229 return 1;
5230 (void)pthread_detach(p);
5231 return 0;
5234 _ACEOF
5235 rm -f conftest$ac_exeext
5236 if { (ac_try="$ac_link"
5237 case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240 esac
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_link") 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5246 { (case "(($ac_try" in
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5249 esac
5250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5251 (eval "$ac_try") 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5255 ac_cv_pthread=yes
5256 else
5257 echo "$as_me: program exited with status $ac_status" >&5
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5261 ( exit $ac_status )
5262 ac_cv_pthread=no
5264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5268 CC="$ac_save_cc"
5271 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5272 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5275 # If we have set a CC compiler flag for thread support then
5276 # check if it works for CXX, too.
5277 ac_cv_cxx_thread=no
5278 if test ! -z "$CXX"
5279 then
5280 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5281 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5282 ac_save_cxx="$CXX"
5284 if test "$ac_cv_kpthread" = "yes"
5285 then
5286 CXX="$CXX -Kpthread"
5287 ac_cv_cxx_thread=yes
5288 elif test "$ac_cv_kthread" = "yes"
5289 then
5290 CXX="$CXX -Kthread"
5291 ac_cv_cxx_thread=yes
5292 elif test "$ac_cv_pthread" = "yes"
5293 then
5294 CXX="$CXX -pthread"
5295 ac_cv_cxx_thread=yes
5298 if test $ac_cv_cxx_thread = yes
5299 then
5300 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5301 $CXX -c conftest.$ac_ext 2>&5
5302 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5303 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5304 then
5305 ac_cv_cxx_thread=yes
5306 else
5307 ac_cv_cxx_thread=no
5309 rm -fr conftest*
5311 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5312 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5314 CXX="$ac_save_cxx"
5317 # checks for header files
5318 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5319 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5320 if test "${ac_cv_header_stdc+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 #include <stdlib.h>
5330 #include <stdarg.h>
5331 #include <string.h>
5332 #include <float.h>
5335 main ()
5339 return 0;
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (ac_try="$ac_compile"
5344 case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347 esac
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_objext; then
5359 ac_cv_header_stdc=yes
5360 else
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 ac_cv_header_stdc=no
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369 if test $ac_cv_header_stdc = yes; then
5370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5371 cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h. */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 #include <string.h>
5379 _ACEOF
5380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 $EGREP "memchr" >/dev/null 2>&1; then
5383 else
5384 ac_cv_header_stdc=no
5386 rm -f conftest*
5390 if test $ac_cv_header_stdc = yes; then
5391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <stdlib.h>
5400 _ACEOF
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev/null 2>&1; then
5404 else
5405 ac_cv_header_stdc=no
5407 rm -f conftest*
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then
5415 else
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <ctype.h>
5423 #include <stdlib.h>
5424 #if ((' ' & 0x0FF) == 0x020)
5425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5427 #else
5428 # define ISLOWER(c) \
5429 (('a' <= (c) && (c) <= 'i') \
5430 || ('j' <= (c) && (c) <= 'r') \
5431 || ('s' <= (c) && (c) <= 'z'))
5432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5433 #endif
5435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5437 main ()
5439 int i;
5440 for (i = 0; i < 256; i++)
5441 if (XOR (islower (i), ISLOWER (i))
5442 || toupper (i) != TOUPPER (i))
5443 return 2;
5444 return 0;
5446 _ACEOF
5447 rm -f conftest$ac_exeext
5448 if { (ac_try="$ac_link"
5449 case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_link") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5458 { (case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5461 esac
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_try") 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; }; then
5468 else
5469 echo "$as_me: program exited with status $ac_status" >&5
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 ( exit $ac_status )
5474 ac_cv_header_stdc=no
5476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5482 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5483 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5484 if test $ac_cv_header_stdc = yes; then
5486 cat >>confdefs.h <<\_ACEOF
5487 #define STDC_HEADERS 1
5488 _ACEOF
5492 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5502 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5503 inttypes.h stdint.h unistd.h
5505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 $ac_includes_default
5519 #include <$ac_header>
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5523 case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5529 ac_status=$?
5530 grep -v '^ *+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5538 eval "$as_ac_Header=yes"
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 eval "$as_ac_Header=no"
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 ac_res=`eval echo '${'$as_ac_Header'}'`
5549 { echo "$as_me:$LINENO: result: $ac_res" >&5
5550 echo "${ECHO_T}$ac_res" >&6; }
5551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552 cat >>confdefs.h <<_ACEOF
5553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5554 _ACEOF
5558 done
5615 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5616 fcntl.h grp.h \
5617 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5618 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5619 unistd.h utime.h \
5620 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5621 sys/lock.h sys/mkdev.h sys/modem.h \
5622 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5623 sys/termio.h sys/time.h \
5624 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5625 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5626 bluetooth/bluetooth.h linux/tipc.h
5628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_res=`eval echo '${'$as_ac_Header'}'`
5636 { echo "$as_me:$LINENO: result: $ac_res" >&5
5637 echo "${ECHO_T}$ac_res" >&6; }
5638 else
5639 # Is the header compilable?
5640 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5649 #include <$ac_header>
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (ac_try="$ac_compile"
5653 case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5656 esac
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compile") 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_c_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest.$ac_objext; then
5668 ac_header_compiler=yes
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 ac_header_compiler=no
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5678 echo "${ECHO_T}$ac_header_compiler" >&6; }
5680 # Is the header present?
5681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5683 cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h. */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 #include <$ac_header>
5690 _ACEOF
5691 if { (ac_try="$ac_cpp conftest.$ac_ext"
5692 case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } >/dev/null && {
5704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 }; then
5707 ac_header_preproc=yes
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 ac_header_preproc=no
5715 rm -f conftest.err conftest.$ac_ext
5716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5717 echo "${ECHO_T}$ac_header_preproc" >&6; }
5719 # So? What about this header?
5720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5721 yes:no: )
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5726 ac_header_preproc=yes
5728 no:yes:* )
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5741 ( cat <<\_ASBOX
5742 ## -------------------------------------- ##
5743 ## Report this to http://bugs.python.org/ ##
5744 ## -------------------------------------- ##
5745 _ASBOX
5746 ) | sed "s/^/$as_me: WARNING: /" >&2
5748 esac
5749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 eval "$as_ac_Header=\$ac_header_preproc"
5756 ac_res=`eval echo '${'$as_ac_Header'}'`
5757 { echo "$as_me:$LINENO: result: $ac_res" >&5
5758 echo "${ECHO_T}$ac_res" >&6; }
5761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5762 cat >>confdefs.h <<_ACEOF
5763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5764 _ACEOF
5768 done
5775 ac_header_dirent=no
5776 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5777 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5779 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <sys/types.h>
5790 #include <$ac_hdr>
5793 main ()
5795 if ((DIR *) 0)
5796 return 0;
5798 return 0;
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5803 case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 eval "$as_ac_Header=yes"
5819 else
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 eval "$as_ac_Header=no"
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 ac_res=`eval echo '${'$as_ac_Header'}'`
5829 { echo "$as_me:$LINENO: result: $ac_res" >&5
5830 echo "${ECHO_T}$ac_res" >&6; }
5831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5832 cat >>confdefs.h <<_ACEOF
5833 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5834 _ACEOF
5836 ac_header_dirent=$ac_hdr; break
5839 done
5840 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5841 if test $ac_header_dirent = dirent.h; then
5842 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5843 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5844 if test "${ac_cv_search_opendir+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847 ac_func_search_save_LIBS=$LIBS
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5855 /* Override any GCC internal prototype to avoid an error.
5856 Use char because int might match the return type of a GCC
5857 builtin and then its argument prototype would still apply. */
5858 #ifdef __cplusplus
5859 extern "C"
5860 #endif
5861 char opendir ();
5863 main ()
5865 return opendir ();
5867 return 0;
5869 _ACEOF
5870 for ac_lib in '' dir; do
5871 if test -z "$ac_lib"; then
5872 ac_res="none required"
5873 else
5874 ac_res=-l$ac_lib
5875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5877 rm -f conftest.$ac_objext conftest$ac_exeext
5878 if { (ac_try="$ac_link"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_link") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && {
5891 test -z "$ac_c_werror_flag" ||
5892 test ! -s conftest.err
5893 } && test -s conftest$ac_exeext &&
5894 $as_test_x conftest$ac_exeext; then
5895 ac_cv_search_opendir=$ac_res
5896 else
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5904 conftest$ac_exeext
5905 if test "${ac_cv_search_opendir+set}" = set; then
5906 break
5908 done
5909 if test "${ac_cv_search_opendir+set}" = set; then
5911 else
5912 ac_cv_search_opendir=no
5914 rm conftest.$ac_ext
5915 LIBS=$ac_func_search_save_LIBS
5917 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5918 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5919 ac_res=$ac_cv_search_opendir
5920 if test "$ac_res" != no; then
5921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5925 else
5926 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5927 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5928 if test "${ac_cv_search_opendir+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 ac_func_search_save_LIBS=$LIBS
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5939 /* Override any GCC internal prototype to avoid an error.
5940 Use char because int might match the return type of a GCC
5941 builtin and then its argument prototype would still apply. */
5942 #ifdef __cplusplus
5943 extern "C"
5944 #endif
5945 char opendir ();
5947 main ()
5949 return opendir ();
5951 return 0;
5953 _ACEOF
5954 for ac_lib in '' x; do
5955 if test -z "$ac_lib"; then
5956 ac_res="none required"
5957 else
5958 ac_res=-l$ac_lib
5959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5961 rm -f conftest.$ac_objext conftest$ac_exeext
5962 if { (ac_try="$ac_link"
5963 case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_link") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_c_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest$ac_exeext &&
5978 $as_test_x conftest$ac_exeext; then
5979 ac_cv_search_opendir=$ac_res
5980 else
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5988 conftest$ac_exeext
5989 if test "${ac_cv_search_opendir+set}" = set; then
5990 break
5992 done
5993 if test "${ac_cv_search_opendir+set}" = set; then
5995 else
5996 ac_cv_search_opendir=no
5998 rm conftest.$ac_ext
5999 LIBS=$ac_func_search_save_LIBS
6001 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6002 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6003 ac_res=$ac_cv_search_opendir
6004 if test "$ac_res" != no; then
6005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6011 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6012 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6013 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <sys/types.h>
6024 main ()
6026 return makedev(0, 0);
6028 return 0;
6030 _ACEOF
6031 rm -f conftest.$ac_objext conftest$ac_exeext
6032 if { (ac_try="$ac_link"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_link") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest$ac_exeext &&
6048 $as_test_x conftest$ac_exeext; then
6049 ac_cv_header_sys_types_h_makedev=yes
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 ac_cv_header_sys_types_h_makedev=no
6057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6058 conftest$ac_exeext conftest.$ac_ext
6061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6062 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6064 if test $ac_cv_header_sys_types_h_makedev = no; then
6065 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6066 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6067 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6068 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6072 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6073 else
6074 # Is the header compilable?
6075 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6076 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 $ac_includes_default
6084 #include <sys/mkdev.h>
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.$ac_objext; then
6103 ac_header_compiler=yes
6104 else
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_header_compiler=no
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6113 echo "${ECHO_T}$ac_header_compiler" >&6; }
6115 # Is the header present?
6116 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6117 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <sys/mkdev.h>
6125 _ACEOF
6126 if { (ac_try="$ac_cpp conftest.$ac_ext"
6127 case "(($ac_try" in
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130 esac
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } >/dev/null && {
6139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 }; then
6142 ac_header_preproc=yes
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_header_preproc=no
6150 rm -f conftest.err conftest.$ac_ext
6151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6152 echo "${ECHO_T}$ac_header_preproc" >&6; }
6154 # So? What about this header?
6155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6156 yes:no: )
6157 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6158 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6160 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6161 ac_header_preproc=yes
6163 no:yes:* )
6164 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6165 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6166 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6167 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6169 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6171 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6173 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6174 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6175 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6176 ( cat <<\_ASBOX
6177 ## -------------------------------------- ##
6178 ## Report this to http://bugs.python.org/ ##
6179 ## -------------------------------------- ##
6180 _ASBOX
6181 ) | sed "s/^/$as_me: WARNING: /" >&2
6183 esac
6184 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6185 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6186 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6191 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6192 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6195 if test $ac_cv_header_sys_mkdev_h = yes; then
6197 cat >>confdefs.h <<\_ACEOF
6198 #define MAJOR_IN_MKDEV 1
6199 _ACEOF
6205 if test $ac_cv_header_sys_mkdev_h = no; then
6206 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6207 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6208 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6209 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6213 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6214 else
6215 # Is the header compilable?
6216 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6217 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6225 #include <sys/sysmacros.h>
6226 _ACEOF
6227 rm -f conftest.$ac_objext
6228 if { (ac_try="$ac_compile"
6229 case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6232 esac
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_compile") 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } && {
6241 test -z "$ac_c_werror_flag" ||
6242 test ! -s conftest.err
6243 } && test -s conftest.$ac_objext; then
6244 ac_header_compiler=yes
6245 else
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 ac_header_compiler=no
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6254 echo "${ECHO_T}$ac_header_compiler" >&6; }
6256 # Is the header present?
6257 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6258 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h. */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 #include <sys/sysmacros.h>
6266 _ACEOF
6267 if { (ac_try="$ac_cpp conftest.$ac_ext"
6268 case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } >/dev/null && {
6280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6282 }; then
6283 ac_header_preproc=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_header_preproc=no
6291 rm -f conftest.err conftest.$ac_ext
6292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6293 echo "${ECHO_T}$ac_header_preproc" >&6; }
6295 # So? What about this header?
6296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6297 yes:no: )
6298 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6299 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6300 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6301 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6302 ac_header_preproc=yes
6304 no:yes:* )
6305 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6306 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6308 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6309 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6310 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6312 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6314 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6316 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6317 ( cat <<\_ASBOX
6318 ## -------------------------------------- ##
6319 ## Report this to http://bugs.python.org/ ##
6320 ## -------------------------------------- ##
6321 _ASBOX
6322 ) | sed "s/^/$as_me: WARNING: /" >&2
6324 esac
6325 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6326 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6327 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6332 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6333 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6336 if test $ac_cv_header_sys_sysmacros_h = yes; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define MAJOR_IN_SYSMACROS 1
6340 _ACEOF
6349 # On Solaris, term.h requires curses.h
6351 for ac_header in term.h
6353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6366 #ifdef HAVE_CURSES_H
6367 #include <curses.h>
6368 #endif
6371 #include <$ac_header>
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (ac_try="$ac_compile"
6375 case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6378 esac
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 eval "$as_ac_Header=yes"
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 eval "$as_ac_Header=no"
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 ac_res=`eval echo '${'$as_ac_Header'}'`
6401 { echo "$as_me:$LINENO: result: $ac_res" >&5
6402 echo "${ECHO_T}$ac_res" >&6; }
6403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6404 cat >>confdefs.h <<_ACEOF
6405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406 _ACEOF
6410 done
6413 # On Linux, netlink.h requires asm/types.h
6415 for ac_header in linux/netlink.h
6417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6430 #ifdef HAVE_ASM_TYPES_H
6431 #include <asm/types.h>
6432 #endif
6433 #ifdef HAVE_SYS_SOCKET_H
6434 #include <sys/socket.h>
6435 #endif
6438 #include <$ac_header>
6439 _ACEOF
6440 rm -f conftest.$ac_objext
6441 if { (ac_try="$ac_compile"
6442 case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6445 esac
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_compile") 2>conftest.er1
6448 ac_status=$?
6449 grep -v '^ *+' conftest.er1 >conftest.err
6450 rm -f conftest.er1
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } && {
6454 test -z "$ac_c_werror_flag" ||
6455 test ! -s conftest.err
6456 } && test -s conftest.$ac_objext; then
6457 eval "$as_ac_Header=yes"
6458 else
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6462 eval "$as_ac_Header=no"
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467 ac_res=`eval echo '${'$as_ac_Header'}'`
6468 { echo "$as_me:$LINENO: result: $ac_res" >&5
6469 echo "${ECHO_T}$ac_res" >&6; }
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473 _ACEOF
6477 done
6480 # checks for typedefs
6481 was_it_defined=no
6482 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6483 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <time.h>
6492 _ACEOF
6493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6494 $EGREP "clock_t" >/dev/null 2>&1; then
6495 was_it_defined=yes
6496 else
6499 cat >>confdefs.h <<\_ACEOF
6500 #define clock_t long
6501 _ACEOF
6505 rm -f conftest*
6507 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6508 echo "${ECHO_T}$was_it_defined" >&6; }
6510 # Check whether using makedev requires defining _OSF_SOURCE
6511 { echo "$as_me:$LINENO: checking for makedev" >&5
6512 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 #include <sys/types.h>
6521 main ()
6523 makedev(0, 0)
6525 return 0;
6527 _ACEOF
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (ac_try="$ac_link"
6530 case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6533 esac
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535 (eval "$ac_link") 2>conftest.er1
6536 ac_status=$?
6537 grep -v '^ *+' conftest.er1 >conftest.err
6538 rm -f conftest.er1
6539 cat conftest.err >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && {
6542 test -z "$ac_c_werror_flag" ||
6543 test ! -s conftest.err
6544 } && test -s conftest$ac_exeext &&
6545 $as_test_x conftest$ac_exeext; then
6546 ac_cv_has_makedev=yes
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 ac_cv_has_makedev=no
6554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6555 conftest$ac_exeext conftest.$ac_ext
6556 if test "$ac_cv_has_makedev" = "no"; then
6557 # we didn't link, try if _OSF_SOURCE will allow us to link
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6565 #define _OSF_SOURCE 1
6566 #include <sys/types.h>
6569 main ()
6571 makedev(0, 0)
6573 return 0;
6575 _ACEOF
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (ac_try="$ac_link"
6578 case "(($ac_try" in
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_link") 2>conftest.er1
6584 ac_status=$?
6585 grep -v '^ *+' conftest.er1 >conftest.err
6586 rm -f conftest.er1
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest$ac_exeext &&
6593 $as_test_x conftest$ac_exeext; then
6594 ac_cv_has_makedev=yes
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_cv_has_makedev=no
6602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6603 conftest$ac_exeext conftest.$ac_ext
6604 if test "$ac_cv_has_makedev" = "yes"; then
6606 cat >>confdefs.h <<\_ACEOF
6607 #define _OSF_SOURCE 1
6608 _ACEOF
6612 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6613 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6614 if test "$ac_cv_has_makedev" = "yes"; then
6616 cat >>confdefs.h <<\_ACEOF
6617 #define HAVE_MAKEDEV 1
6618 _ACEOF
6622 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6623 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6624 # defined, but the compiler does not support pragma redefine_extname,
6625 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6626 # structures (such as rlimit64) without declaring them. As a
6627 # work-around, disable LFS on such configurations
6629 use_lfs=yes
6630 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6631 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6632 cat >conftest.$ac_ext <<_ACEOF
6633 /* confdefs.h. */
6634 _ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6639 #define _LARGEFILE_SOURCE 1
6640 #define _FILE_OFFSET_BITS 64
6641 #include <sys/resource.h>
6644 main ()
6646 struct rlimit foo;
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext
6652 if { (ac_try="$ac_compile"
6653 case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_compile") 2>conftest.er1
6659 ac_status=$?
6660 grep -v '^ *+' conftest.er1 >conftest.err
6661 rm -f conftest.er1
6662 cat conftest.err >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } && {
6665 test -z "$ac_c_werror_flag" ||
6666 test ! -s conftest.err
6667 } && test -s conftest.$ac_objext; then
6668 sol_lfs_bug=no
6669 else
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 sol_lfs_bug=yes
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6678 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6679 if test "$sol_lfs_bug" = "yes"; then
6680 use_lfs=no
6683 if test "$use_lfs" = "yes"; then
6684 # Two defines needed to enable largefile support on various platforms
6685 # These may affect some typedefs
6687 cat >>confdefs.h <<\_ACEOF
6688 #define _LARGEFILE_SOURCE 1
6689 _ACEOF
6692 cat >>confdefs.h <<\_ACEOF
6693 #define _FILE_OFFSET_BITS 64
6694 _ACEOF
6698 # Add some code to confdefs.h so that the test for off_t works on SCO
6699 cat >> confdefs.h <<\EOF
6700 #if defined(SCO_DS)
6701 #undef _OFF_T
6702 #endif
6705 # Type availability checks
6706 { echo "$as_me:$LINENO: checking for mode_t" >&5
6707 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6708 if test "${ac_cv_type_mode_t+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h. */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 $ac_includes_default
6718 typedef mode_t ac__type_new_;
6720 main ()
6722 if ((ac__type_new_ *) 0)
6723 return 0;
6724 if (sizeof (ac__type_new_))
6725 return 0;
6727 return 0;
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
6747 ac_cv_type_mode_t=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 ac_cv_type_mode_t=no
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6758 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6759 if test $ac_cv_type_mode_t = yes; then
6761 else
6763 cat >>confdefs.h <<_ACEOF
6764 #define mode_t int
6765 _ACEOF
6769 { echo "$as_me:$LINENO: checking for off_t" >&5
6770 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6771 if test "${ac_cv_type_off_t+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774 cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h. */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 $ac_includes_default
6781 typedef off_t ac__type_new_;
6783 main ()
6785 if ((ac__type_new_ *) 0)
6786 return 0;
6787 if (sizeof (ac__type_new_))
6788 return 0;
6790 return 0;
6792 _ACEOF
6793 rm -f conftest.$ac_objext
6794 if { (ac_try="$ac_compile"
6795 case "(($ac_try" in
6796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797 *) ac_try_echo=$ac_try;;
6798 esac
6799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6800 (eval "$ac_compile") 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } && {
6807 test -z "$ac_c_werror_flag" ||
6808 test ! -s conftest.err
6809 } && test -s conftest.$ac_objext; then
6810 ac_cv_type_off_t=yes
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 ac_cv_type_off_t=no
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6821 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6822 if test $ac_cv_type_off_t = yes; then
6824 else
6826 cat >>confdefs.h <<_ACEOF
6827 #define off_t long int
6828 _ACEOF
6832 { echo "$as_me:$LINENO: checking for pid_t" >&5
6833 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6834 if test "${ac_cv_type_pid_t+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h. */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6844 typedef pid_t ac__type_new_;
6846 main ()
6848 if ((ac__type_new_ *) 0)
6849 return 0;
6850 if (sizeof (ac__type_new_))
6851 return 0;
6853 return 0;
6855 _ACEOF
6856 rm -f conftest.$ac_objext
6857 if { (ac_try="$ac_compile"
6858 case "(($ac_try" in
6859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860 *) ac_try_echo=$ac_try;;
6861 esac
6862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6863 (eval "$ac_compile") 2>conftest.er1
6864 ac_status=$?
6865 grep -v '^ *+' conftest.er1 >conftest.err
6866 rm -f conftest.er1
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } && {
6870 test -z "$ac_c_werror_flag" ||
6871 test ! -s conftest.err
6872 } && test -s conftest.$ac_objext; then
6873 ac_cv_type_pid_t=yes
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_cv_type_pid_t=no
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6884 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6885 if test $ac_cv_type_pid_t = yes; then
6887 else
6889 cat >>confdefs.h <<_ACEOF
6890 #define pid_t int
6891 _ACEOF
6895 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6896 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6897 if test "${ac_cv_type_signal+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <sys/types.h>
6907 #include <signal.h>
6910 main ()
6912 return *(signal (0, 0)) (0) == 1;
6914 return 0;
6916 _ACEOF
6917 rm -f conftest.$ac_objext
6918 if { (ac_try="$ac_compile"
6919 case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922 esac
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_compile") 2>conftest.er1
6925 ac_status=$?
6926 grep -v '^ *+' conftest.er1 >conftest.err
6927 rm -f conftest.er1
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && {
6931 test -z "$ac_c_werror_flag" ||
6932 test ! -s conftest.err
6933 } && test -s conftest.$ac_objext; then
6934 ac_cv_type_signal=int
6935 else
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 ac_cv_type_signal=void
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6945 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6947 cat >>confdefs.h <<_ACEOF
6948 #define RETSIGTYPE $ac_cv_type_signal
6949 _ACEOF
6952 { echo "$as_me:$LINENO: checking for size_t" >&5
6953 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6954 if test "${ac_cv_type_size_t+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 $ac_includes_default
6964 typedef size_t ac__type_new_;
6966 main ()
6968 if ((ac__type_new_ *) 0)
6969 return 0;
6970 if (sizeof (ac__type_new_))
6971 return 0;
6973 return 0;
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (ac_try="$ac_compile"
6978 case "(($ac_try" in
6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6981 esac
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 (eval "$ac_compile") 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && {
6990 test -z "$ac_c_werror_flag" ||
6991 test ! -s conftest.err
6992 } && test -s conftest.$ac_objext; then
6993 ac_cv_type_size_t=yes
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_cv_type_size_t=no
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7004 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7005 if test $ac_cv_type_size_t = yes; then
7007 else
7009 cat >>confdefs.h <<_ACEOF
7010 #define size_t unsigned int
7011 _ACEOF
7015 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7016 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7017 if test "${ac_cv_type_uid_t+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 #include <sys/types.h>
7028 _ACEOF
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "uid_t" >/dev/null 2>&1; then
7031 ac_cv_type_uid_t=yes
7032 else
7033 ac_cv_type_uid_t=no
7035 rm -f conftest*
7038 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7039 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7040 if test $ac_cv_type_uid_t = no; then
7042 cat >>confdefs.h <<\_ACEOF
7043 #define uid_t int
7044 _ACEOF
7047 cat >>confdefs.h <<\_ACEOF
7048 #define gid_t int
7049 _ACEOF
7054 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7055 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7056 if test "${ac_cv_c_uint32_t+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 ac_cv_c_uint32_t=no
7060 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7061 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7062 cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h. */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 $ac_includes_default
7070 main ()
7072 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7073 test_array [0] = 0
7076 return 0;
7078 _ACEOF
7079 rm -f conftest.$ac_objext
7080 if { (ac_try="$ac_compile"
7081 case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084 esac
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_compile") 2>conftest.er1
7087 ac_status=$?
7088 grep -v '^ *+' conftest.er1 >conftest.err
7089 rm -f conftest.er1
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } && {
7093 test -z "$ac_c_werror_flag" ||
7094 test ! -s conftest.err
7095 } && test -s conftest.$ac_objext; then
7096 case $ac_type in
7097 uint32_t) ac_cv_c_uint32_t=yes ;;
7098 *) ac_cv_c_uint32_t=$ac_type ;;
7099 esac
7101 else
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7109 test "$ac_cv_c_uint32_t" != no && break
7110 done
7112 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7113 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7114 case $ac_cv_c_uint32_t in #(
7115 no|yes) ;; #(
7118 cat >>confdefs.h <<\_ACEOF
7119 #define _UINT32_T 1
7120 _ACEOF
7123 cat >>confdefs.h <<_ACEOF
7124 #define uint32_t $ac_cv_c_uint32_t
7125 _ACEOF
7127 esac
7130 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7131 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7132 if test "${ac_cv_c_uint64_t+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135 ac_cv_c_uint64_t=no
7136 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7137 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7138 cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7146 main ()
7148 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7149 test_array [0] = 0
7152 return 0;
7154 _ACEOF
7155 rm -f conftest.$ac_objext
7156 if { (ac_try="$ac_compile"
7157 case "(($ac_try" in
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7160 esac
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_compile") 2>conftest.er1
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } && {
7169 test -z "$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 } && test -s conftest.$ac_objext; then
7172 case $ac_type in
7173 uint64_t) ac_cv_c_uint64_t=yes ;;
7174 *) ac_cv_c_uint64_t=$ac_type ;;
7175 esac
7177 else
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 test "$ac_cv_c_uint64_t" != no && break
7186 done
7188 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7189 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7190 case $ac_cv_c_uint64_t in #(
7191 no|yes) ;; #(
7194 cat >>confdefs.h <<\_ACEOF
7195 #define _UINT64_T 1
7196 _ACEOF
7199 cat >>confdefs.h <<_ACEOF
7200 #define uint64_t $ac_cv_c_uint64_t
7201 _ACEOF
7203 esac
7206 { echo "$as_me:$LINENO: checking for int32_t" >&5
7207 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7208 if test "${ac_cv_c_int32_t+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211 ac_cv_c_int32_t=no
7212 for ac_type in 'int32_t' 'int' 'long int' \
7213 'long long int' 'short int' 'signed char'; do
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 $ac_includes_default
7222 main ()
7224 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7225 test_array [0] = 0
7228 return 0;
7230 _ACEOF
7231 rm -f conftest.$ac_objext
7232 if { (ac_try="$ac_compile"
7233 case "(($ac_try" in
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7236 esac
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_compile") 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && {
7245 test -z "$ac_c_werror_flag" ||
7246 test ! -s conftest.err
7247 } && test -s conftest.$ac_objext; then
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 $ac_includes_default
7256 main ()
7258 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7259 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7260 test_array [0] = 0
7263 return 0;
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (ac_try="$ac_compile"
7268 case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_compile") 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest.$ac_objext; then
7284 else
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7288 case $ac_type in
7289 int32_t) ac_cv_c_int32_t=yes ;;
7290 *) ac_cv_c_int32_t=$ac_type ;;
7291 esac
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 else
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304 test "$ac_cv_c_int32_t" != no && break
7305 done
7307 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7308 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7309 case $ac_cv_c_int32_t in #(
7310 no|yes) ;; #(
7313 cat >>confdefs.h <<_ACEOF
7314 #define int32_t $ac_cv_c_int32_t
7315 _ACEOF
7317 esac
7320 { echo "$as_me:$LINENO: checking for int64_t" >&5
7321 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7322 if test "${ac_cv_c_int64_t+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325 ac_cv_c_int64_t=no
7326 for ac_type in 'int64_t' 'int' 'long int' \
7327 'long long int' 'short int' 'signed char'; do
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h. */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 $ac_includes_default
7336 main ()
7338 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7339 test_array [0] = 0
7342 return 0;
7344 _ACEOF
7345 rm -f conftest.$ac_objext
7346 if { (ac_try="$ac_compile"
7347 case "(($ac_try" in
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7350 esac
7351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352 (eval "$ac_compile") 2>conftest.er1
7353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest.$ac_objext; then
7362 cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h. */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 $ac_includes_default
7370 main ()
7372 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7373 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7374 test_array [0] = 0
7377 return 0;
7379 _ACEOF
7380 rm -f conftest.$ac_objext
7381 if { (ac_try="$ac_compile"
7382 case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385 esac
7386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7387 (eval "$ac_compile") 2>conftest.er1
7388 ac_status=$?
7389 grep -v '^ *+' conftest.er1 >conftest.err
7390 rm -f conftest.er1
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } && {
7394 test -z "$ac_c_werror_flag" ||
7395 test ! -s conftest.err
7396 } && test -s conftest.$ac_objext; then
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 case $ac_type in
7403 int64_t) ac_cv_c_int64_t=yes ;;
7404 *) ac_cv_c_int64_t=$ac_type ;;
7405 esac
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 test "$ac_cv_c_int64_t" != no && break
7419 done
7421 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7422 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7423 case $ac_cv_c_int64_t in #(
7424 no|yes) ;; #(
7427 cat >>confdefs.h <<_ACEOF
7428 #define int64_t $ac_cv_c_int64_t
7429 _ACEOF
7431 esac
7433 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7434 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7435 if test "${ac_cv_type_ssize_t+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 $ac_includes_default
7445 typedef ssize_t ac__type_new_;
7447 main ()
7449 if ((ac__type_new_ *) 0)
7450 return 0;
7451 if (sizeof (ac__type_new_))
7452 return 0;
7454 return 0;
7456 _ACEOF
7457 rm -f conftest.$ac_objext
7458 if { (ac_try="$ac_compile"
7459 case "(($ac_try" in
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7462 esac
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_compile") 2>conftest.er1
7465 ac_status=$?
7466 grep -v '^ *+' conftest.er1 >conftest.err
7467 rm -f conftest.er1
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } && {
7471 test -z "$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7473 } && test -s conftest.$ac_objext; then
7474 ac_cv_type_ssize_t=yes
7475 else
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 ac_cv_type_ssize_t=no
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7485 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7486 if test $ac_cv_type_ssize_t = yes; then
7488 cat >>confdefs.h <<\_ACEOF
7489 #define HAVE_SSIZE_T 1
7490 _ACEOF
7495 # Sizes of various common basic types
7496 # ANSI C requires sizeof(char) == 1, so no need to check it
7497 { echo "$as_me:$LINENO: checking for int" >&5
7498 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7499 if test "${ac_cv_type_int+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7509 typedef int ac__type_new_;
7511 main ()
7513 if ((ac__type_new_ *) 0)
7514 return 0;
7515 if (sizeof (ac__type_new_))
7516 return 0;
7518 return 0;
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (ac_try="$ac_compile"
7523 case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526 esac
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_compile") 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest.$ac_objext; then
7538 ac_cv_type_int=yes
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7543 ac_cv_type_int=no
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7549 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7551 # The cast to long int works around a bug in the HP C Compiler
7552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7554 # This bug is HP SR number 8606223364.
7555 { echo "$as_me:$LINENO: checking size of int" >&5
7556 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7557 if test "${ac_cv_sizeof_int+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 if test "$cross_compiling" = yes; then
7561 # Depending upon the size, compute the lo and hi bounds.
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 $ac_includes_default
7569 typedef int ac__type_sizeof_;
7571 main ()
7573 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7574 test_array [0] = 0
7577 return 0;
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7582 case "(($ac_try" in
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7585 esac
7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_compile") 2>conftest.er1
7588 ac_status=$?
7589 grep -v '^ *+' conftest.er1 >conftest.err
7590 rm -f conftest.er1
7591 cat conftest.err >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } && {
7594 test -z "$ac_c_werror_flag" ||
7595 test ! -s conftest.err
7596 } && test -s conftest.$ac_objext; then
7597 ac_lo=0 ac_mid=0
7598 while :; do
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h. */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 $ac_includes_default
7606 typedef int ac__type_sizeof_;
7608 main ()
7610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7611 test_array [0] = 0
7614 return 0;
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7619 case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7625 ac_status=$?
7626 grep -v '^ *+' conftest.er1 >conftest.err
7627 rm -f conftest.er1
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7634 ac_hi=$ac_mid; break
7635 else
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 ac_lo=`expr $ac_mid + 1`
7640 if test $ac_lo -le $ac_mid; then
7641 ac_lo= ac_hi=
7642 break
7644 ac_mid=`expr 2 '*' $ac_mid + 1`
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648 done
7649 else
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7660 typedef int ac__type_sizeof_;
7662 main ()
7664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7665 test_array [0] = 0
7668 return 0;
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 if { (ac_try="$ac_compile"
7673 case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676 esac
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 (eval "$ac_compile") 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest.$ac_objext; then
7688 ac_hi=-1 ac_mid=-1
7689 while :; do
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 $ac_includes_default
7697 typedef int ac__type_sizeof_;
7699 main ()
7701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7702 test_array [0] = 0
7705 return 0;
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7710 case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713 esac
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_c_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest.$ac_objext; then
7725 ac_lo=$ac_mid; break
7726 else
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7730 ac_hi=`expr '(' $ac_mid ')' - 1`
7731 if test $ac_mid -le $ac_hi; then
7732 ac_lo= ac_hi=
7733 break
7735 ac_mid=`expr 2 '*' $ac_mid`
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 done
7740 else
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 ac_lo= ac_hi=
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 # Binary search between lo and hi bounds.
7752 while test "x$ac_lo" != "x$ac_hi"; do
7753 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7754 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h. */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 $ac_includes_default
7761 typedef int ac__type_sizeof_;
7763 main ()
7765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7766 test_array [0] = 0
7769 return 0;
7771 _ACEOF
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7774 case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777 esac
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_compile") 2>conftest.er1
7780 ac_status=$?
7781 grep -v '^ *+' conftest.er1 >conftest.err
7782 rm -f conftest.er1
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest.$ac_objext; then
7789 ac_hi=$ac_mid
7790 else
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_lo=`expr '(' $ac_mid ')' + 1`
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 done
7799 case $ac_lo in
7800 ?*) ac_cv_sizeof_int=$ac_lo;;
7801 '') if test "$ac_cv_type_int" = yes; then
7802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7803 See \`config.log' for more details." >&5
7804 echo "$as_me: error: cannot compute sizeof (int)
7805 See \`config.log' for more details." >&2;}
7806 { (exit 77); exit 77; }; }
7807 else
7808 ac_cv_sizeof_int=0
7809 fi ;;
7810 esac
7811 else
7812 cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h. */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7818 $ac_includes_default
7819 typedef int ac__type_sizeof_;
7820 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7821 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7822 #include <stdio.h>
7823 #include <stdlib.h>
7825 main ()
7828 FILE *f = fopen ("conftest.val", "w");
7829 if (! f)
7830 return 1;
7831 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7833 long int i = longval ();
7834 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7835 return 1;
7836 fprintf (f, "%ld\n", i);
7838 else
7840 unsigned long int i = ulongval ();
7841 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7842 return 1;
7843 fprintf (f, "%lu\n", i);
7845 return ferror (f) || fclose (f) != 0;
7848 return 0;
7850 _ACEOF
7851 rm -f conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7853 case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856 esac
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_link") 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7862 { (case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_try") 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 ac_cv_sizeof_int=`cat conftest.val`
7872 else
7873 echo "$as_me: program exited with status $ac_status" >&5
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 ( exit $ac_status )
7878 if test "$ac_cv_type_int" = yes; then
7879 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7880 See \`config.log' for more details." >&5
7881 echo "$as_me: error: cannot compute sizeof (int)
7882 See \`config.log' for more details." >&2;}
7883 { (exit 77); exit 77; }; }
7884 else
7885 ac_cv_sizeof_int=0
7888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7890 rm -f conftest.val
7892 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7893 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7897 cat >>confdefs.h <<_ACEOF
7898 #define SIZEOF_INT $ac_cv_sizeof_int
7899 _ACEOF
7902 { echo "$as_me:$LINENO: checking for long" >&5
7903 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7904 if test "${ac_cv_type_long+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907 cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h. */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7913 $ac_includes_default
7914 typedef long ac__type_new_;
7916 main ()
7918 if ((ac__type_new_ *) 0)
7919 return 0;
7920 if (sizeof (ac__type_new_))
7921 return 0;
7923 return 0;
7925 _ACEOF
7926 rm -f conftest.$ac_objext
7927 if { (ac_try="$ac_compile"
7928 case "(($ac_try" in
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7931 esac
7932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933 (eval "$ac_compile") 2>conftest.er1
7934 ac_status=$?
7935 grep -v '^ *+' conftest.er1 >conftest.err
7936 rm -f conftest.er1
7937 cat conftest.err >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest.$ac_objext; then
7943 ac_cv_type_long=yes
7944 else
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7948 ac_cv_type_long=no
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7954 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7956 # The cast to long int works around a bug in the HP C Compiler
7957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7959 # This bug is HP SR number 8606223364.
7960 { echo "$as_me:$LINENO: checking size of long" >&5
7961 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7962 if test "${ac_cv_sizeof_long+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965 if test "$cross_compiling" = yes; then
7966 # Depending upon the size, compute the lo and hi bounds.
7967 cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h. */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 $ac_includes_default
7974 typedef long ac__type_sizeof_;
7976 main ()
7978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7979 test_array [0] = 0
7982 return 0;
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7987 case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7990 esac
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8002 ac_lo=0 ac_mid=0
8003 while :; do
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 $ac_includes_default
8011 typedef long ac__type_sizeof_;
8013 main ()
8015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8016 test_array [0] = 0
8019 return 0;
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8024 case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8027 esac
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_hi=$ac_mid; break
8040 else
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 ac_lo=`expr $ac_mid + 1`
8045 if test $ac_lo -le $ac_mid; then
8046 ac_lo= ac_hi=
8047 break
8049 ac_mid=`expr 2 '*' $ac_mid + 1`
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 done
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h. */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 $ac_includes_default
8065 typedef long ac__type_sizeof_;
8067 main ()
8069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8070 test_array [0] = 0
8073 return 0;
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (ac_try="$ac_compile"
8078 case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081 esac
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_compile") 2>conftest.er1
8084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } && {
8090 test -z "$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8092 } && test -s conftest.$ac_objext; then
8093 ac_hi=-1 ac_mid=-1
8094 while :; do
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 typedef long ac__type_sizeof_;
8104 main ()
8106 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8107 test_array [0] = 0
8110 return 0;
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8115 case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_lo=$ac_mid; break
8131 else
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 ac_hi=`expr '(' $ac_mid ')' - 1`
8136 if test $ac_mid -le $ac_hi; then
8137 ac_lo= ac_hi=
8138 break
8140 ac_mid=`expr 2 '*' $ac_mid`
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 done
8145 else
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_lo= ac_hi=
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 # Binary search between lo and hi bounds.
8157 while test "x$ac_lo" != "x$ac_hi"; do
8158 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 $ac_includes_default
8166 typedef long ac__type_sizeof_;
8168 main ()
8170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8171 test_array [0] = 0
8174 return 0;
8176 _ACEOF
8177 rm -f conftest.$ac_objext
8178 if { (ac_try="$ac_compile"
8179 case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_compile") 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest.$ac_objext; then
8194 ac_hi=$ac_mid
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_lo=`expr '(' $ac_mid ')' + 1`
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 done
8204 case $ac_lo in
8205 ?*) ac_cv_sizeof_long=$ac_lo;;
8206 '') if test "$ac_cv_type_long" = yes; then
8207 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8208 See \`config.log' for more details." >&5
8209 echo "$as_me: error: cannot compute sizeof (long)
8210 See \`config.log' for more details." >&2;}
8211 { (exit 77); exit 77; }; }
8212 else
8213 ac_cv_sizeof_long=0
8214 fi ;;
8215 esac
8216 else
8217 cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h. */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 $ac_includes_default
8224 typedef long ac__type_sizeof_;
8225 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8226 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8227 #include <stdio.h>
8228 #include <stdlib.h>
8230 main ()
8233 FILE *f = fopen ("conftest.val", "w");
8234 if (! f)
8235 return 1;
8236 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8238 long int i = longval ();
8239 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8240 return 1;
8241 fprintf (f, "%ld\n", i);
8243 else
8245 unsigned long int i = ulongval ();
8246 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8247 return 1;
8248 fprintf (f, "%lu\n", i);
8250 return ferror (f) || fclose (f) != 0;
8253 return 0;
8255 _ACEOF
8256 rm -f conftest$ac_exeext
8257 if { (ac_try="$ac_link"
8258 case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261 esac
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_link") 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8267 { (case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8270 esac
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_try") 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276 ac_cv_sizeof_long=`cat conftest.val`
8277 else
8278 echo "$as_me: program exited with status $ac_status" >&5
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 ( exit $ac_status )
8283 if test "$ac_cv_type_long" = yes; then
8284 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8285 See \`config.log' for more details." >&5
8286 echo "$as_me: error: cannot compute sizeof (long)
8287 See \`config.log' for more details." >&2;}
8288 { (exit 77); exit 77; }; }
8289 else
8290 ac_cv_sizeof_long=0
8293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8295 rm -f conftest.val
8297 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8298 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8302 cat >>confdefs.h <<_ACEOF
8303 #define SIZEOF_LONG $ac_cv_sizeof_long
8304 _ACEOF
8307 { echo "$as_me:$LINENO: checking for void *" >&5
8308 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8309 if test "${ac_cv_type_void_p+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 $ac_includes_default
8319 typedef void * ac__type_new_;
8321 main ()
8323 if ((ac__type_new_ *) 0)
8324 return 0;
8325 if (sizeof (ac__type_new_))
8326 return 0;
8328 return 0;
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8333 case "(($ac_try" in
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8336 esac
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && {
8345 test -z "$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8347 } && test -s conftest.$ac_objext; then
8348 ac_cv_type_void_p=yes
8349 else
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 ac_cv_type_void_p=no
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8359 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8361 # The cast to long int works around a bug in the HP C Compiler
8362 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8363 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8364 # This bug is HP SR number 8606223364.
8365 { echo "$as_me:$LINENO: checking size of void *" >&5
8366 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8367 if test "${ac_cv_sizeof_void_p+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370 if test "$cross_compiling" = yes; then
8371 # Depending upon the size, compute the lo and hi bounds.
8372 cat >conftest.$ac_ext <<_ACEOF
8373 /* confdefs.h. */
8374 _ACEOF
8375 cat confdefs.h >>conftest.$ac_ext
8376 cat >>conftest.$ac_ext <<_ACEOF
8377 /* end confdefs.h. */
8378 $ac_includes_default
8379 typedef void * ac__type_sizeof_;
8381 main ()
8383 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8384 test_array [0] = 0
8387 return 0;
8389 _ACEOF
8390 rm -f conftest.$ac_objext
8391 if { (ac_try="$ac_compile"
8392 case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_compile") 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest.$ac_objext; then
8407 ac_lo=0 ac_mid=0
8408 while :; do
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 $ac_includes_default
8416 typedef void * ac__type_sizeof_;
8418 main ()
8420 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8421 test_array [0] = 0
8424 return 0;
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8429 case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_hi=$ac_mid; break
8445 else
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_lo=`expr $ac_mid + 1`
8450 if test $ac_lo -le $ac_mid; then
8451 ac_lo= ac_hi=
8452 break
8454 ac_mid=`expr 2 '*' $ac_mid + 1`
8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458 done
8459 else
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h. */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 $ac_includes_default
8470 typedef void * ac__type_sizeof_;
8472 main ()
8474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8475 test_array [0] = 0
8478 return 0;
8480 _ACEOF
8481 rm -f conftest.$ac_objext
8482 if { (ac_try="$ac_compile"
8483 case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_compile") 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } && {
8495 test -z "$ac_c_werror_flag" ||
8496 test ! -s conftest.err
8497 } && test -s conftest.$ac_objext; then
8498 ac_hi=-1 ac_mid=-1
8499 while :; do
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 typedef void * ac__type_sizeof_;
8509 main ()
8511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8512 test_array [0] = 0
8515 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8520 case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 ac_lo=$ac_mid; break
8536 else
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 ac_hi=`expr '(' $ac_mid ')' - 1`
8541 if test $ac_mid -le $ac_hi; then
8542 ac_lo= ac_hi=
8543 break
8545 ac_mid=`expr 2 '*' $ac_mid`
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 done
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_lo= ac_hi=
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8561 # Binary search between lo and hi bounds.
8562 while test "x$ac_lo" != "x$ac_hi"; do
8563 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 $ac_includes_default
8571 typedef void * ac__type_sizeof_;
8573 main ()
8575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8576 test_array [0] = 0
8579 return 0;
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8584 case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_compile") 2>conftest.er1
8590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest.$ac_objext; then
8599 ac_hi=$ac_mid
8600 else
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_lo=`expr '(' $ac_mid ')' + 1`
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 done
8609 case $ac_lo in
8610 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8611 '') if test "$ac_cv_type_void_p" = yes; then
8612 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8613 See \`config.log' for more details." >&5
8614 echo "$as_me: error: cannot compute sizeof (void *)
8615 See \`config.log' for more details." >&2;}
8616 { (exit 77); exit 77; }; }
8617 else
8618 ac_cv_sizeof_void_p=0
8619 fi ;;
8620 esac
8621 else
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 typedef void * ac__type_sizeof_;
8630 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8631 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8632 #include <stdio.h>
8633 #include <stdlib.h>
8635 main ()
8638 FILE *f = fopen ("conftest.val", "w");
8639 if (! f)
8640 return 1;
8641 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8643 long int i = longval ();
8644 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8645 return 1;
8646 fprintf (f, "%ld\n", i);
8648 else
8650 unsigned long int i = ulongval ();
8651 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8652 return 1;
8653 fprintf (f, "%lu\n", i);
8655 return ferror (f) || fclose (f) != 0;
8658 return 0;
8660 _ACEOF
8661 rm -f conftest$ac_exeext
8662 if { (ac_try="$ac_link"
8663 case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_link") 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8672 { (case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675 esac
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_try") 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_cv_sizeof_void_p=`cat conftest.val`
8682 else
8683 echo "$as_me: program exited with status $ac_status" >&5
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8687 ( exit $ac_status )
8688 if test "$ac_cv_type_void_p" = yes; then
8689 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8690 See \`config.log' for more details." >&5
8691 echo "$as_me: error: cannot compute sizeof (void *)
8692 See \`config.log' for more details." >&2;}
8693 { (exit 77); exit 77; }; }
8694 else
8695 ac_cv_sizeof_void_p=0
8698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8700 rm -f conftest.val
8702 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8703 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8707 cat >>confdefs.h <<_ACEOF
8708 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8709 _ACEOF
8712 { echo "$as_me:$LINENO: checking for short" >&5
8713 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8714 if test "${ac_cv_type_short+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717 cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h. */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 $ac_includes_default
8724 typedef short ac__type_new_;
8726 main ()
8728 if ((ac__type_new_ *) 0)
8729 return 0;
8730 if (sizeof (ac__type_new_))
8731 return 0;
8733 return 0;
8735 _ACEOF
8736 rm -f conftest.$ac_objext
8737 if { (ac_try="$ac_compile"
8738 case "(($ac_try" in
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8741 esac
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_compile") 2>conftest.er1
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 } && test -s conftest.$ac_objext; then
8753 ac_cv_type_short=yes
8754 else
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_cv_type_short=no
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8764 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8766 # The cast to long int works around a bug in the HP C Compiler
8767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8769 # This bug is HP SR number 8606223364.
8770 { echo "$as_me:$LINENO: checking size of short" >&5
8771 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8772 if test "${ac_cv_sizeof_short+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775 if test "$cross_compiling" = yes; then
8776 # Depending upon the size, compute the lo and hi bounds.
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 $ac_includes_default
8784 typedef short ac__type_sizeof_;
8786 main ()
8788 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8789 test_array [0] = 0
8792 return 0;
8794 _ACEOF
8795 rm -f conftest.$ac_objext
8796 if { (ac_try="$ac_compile"
8797 case "(($ac_try" in
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8800 esac
8801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802 (eval "$ac_compile") 2>conftest.er1
8803 ac_status=$?
8804 grep -v '^ *+' conftest.er1 >conftest.err
8805 rm -f conftest.er1
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && {
8809 test -z "$ac_c_werror_flag" ||
8810 test ! -s conftest.err
8811 } && test -s conftest.$ac_objext; then
8812 ac_lo=0 ac_mid=0
8813 while :; do
8814 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h. */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 $ac_includes_default
8821 typedef short ac__type_sizeof_;
8823 main ()
8825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8826 test_array [0] = 0
8829 return 0;
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (ac_try="$ac_compile"
8834 case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8837 esac
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_compile") 2>conftest.er1
8840 ac_status=$?
8841 grep -v '^ *+' conftest.er1 >conftest.err
8842 rm -f conftest.er1
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && {
8846 test -z "$ac_c_werror_flag" ||
8847 test ! -s conftest.err
8848 } && test -s conftest.$ac_objext; then
8849 ac_hi=$ac_mid; break
8850 else
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_lo=`expr $ac_mid + 1`
8855 if test $ac_lo -le $ac_mid; then
8856 ac_lo= ac_hi=
8857 break
8859 ac_mid=`expr 2 '*' $ac_mid + 1`
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 done
8864 else
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h. */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8874 $ac_includes_default
8875 typedef short ac__type_sizeof_;
8877 main ()
8879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8880 test_array [0] = 0
8883 return 0;
8885 _ACEOF
8886 rm -f conftest.$ac_objext
8887 if { (ac_try="$ac_compile"
8888 case "(($ac_try" in
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8891 esac
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_compile") 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && {
8900 test -z "$ac_c_werror_flag" ||
8901 test ! -s conftest.err
8902 } && test -s conftest.$ac_objext; then
8903 ac_hi=-1 ac_mid=-1
8904 while :; do
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h. */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8911 $ac_includes_default
8912 typedef short ac__type_sizeof_;
8914 main ()
8916 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8917 test_array [0] = 0
8920 return 0;
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (ac_try="$ac_compile"
8925 case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928 esac
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_compile") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest.$ac_objext; then
8940 ac_lo=$ac_mid; break
8941 else
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8945 ac_hi=`expr '(' $ac_mid ')' - 1`
8946 if test $ac_mid -le $ac_hi; then
8947 ac_lo= ac_hi=
8948 break
8950 ac_mid=`expr 2 '*' $ac_mid`
8953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 done
8955 else
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ac_lo= ac_hi=
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 # Binary search between lo and hi bounds.
8967 while test "x$ac_lo" != "x$ac_hi"; do
8968 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8969 cat >conftest.$ac_ext <<_ACEOF
8970 /* confdefs.h. */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 $ac_includes_default
8976 typedef short ac__type_sizeof_;
8978 main ()
8980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8981 test_array [0] = 0
8984 return 0;
8986 _ACEOF
8987 rm -f conftest.$ac_objext
8988 if { (ac_try="$ac_compile"
8989 case "(($ac_try" in
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8992 esac
8993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 (eval "$ac_compile") 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } && {
9001 test -z "$ac_c_werror_flag" ||
9002 test ! -s conftest.err
9003 } && test -s conftest.$ac_objext; then
9004 ac_hi=$ac_mid
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_lo=`expr '(' $ac_mid ')' + 1`
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 done
9014 case $ac_lo in
9015 ?*) ac_cv_sizeof_short=$ac_lo;;
9016 '') if test "$ac_cv_type_short" = yes; then
9017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9018 See \`config.log' for more details." >&5
9019 echo "$as_me: error: cannot compute sizeof (short)
9020 See \`config.log' for more details." >&2;}
9021 { (exit 77); exit 77; }; }
9022 else
9023 ac_cv_sizeof_short=0
9024 fi ;;
9025 esac
9026 else
9027 cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h. */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 $ac_includes_default
9034 typedef short ac__type_sizeof_;
9035 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9036 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9037 #include <stdio.h>
9038 #include <stdlib.h>
9040 main ()
9043 FILE *f = fopen ("conftest.val", "w");
9044 if (! f)
9045 return 1;
9046 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9048 long int i = longval ();
9049 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9050 return 1;
9051 fprintf (f, "%ld\n", i);
9053 else
9055 unsigned long int i = ulongval ();
9056 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9057 return 1;
9058 fprintf (f, "%lu\n", i);
9060 return ferror (f) || fclose (f) != 0;
9063 return 0;
9065 _ACEOF
9066 rm -f conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9068 case "(($ac_try" in
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9071 esac
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_link") 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9077 { (case "(($ac_try" in
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9080 esac
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082 (eval "$ac_try") 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_cv_sizeof_short=`cat conftest.val`
9087 else
9088 echo "$as_me: program exited with status $ac_status" >&5
9089 echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9092 ( exit $ac_status )
9093 if test "$ac_cv_type_short" = yes; then
9094 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9095 See \`config.log' for more details." >&5
9096 echo "$as_me: error: cannot compute sizeof (short)
9097 See \`config.log' for more details." >&2;}
9098 { (exit 77); exit 77; }; }
9099 else
9100 ac_cv_sizeof_short=0
9103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9105 rm -f conftest.val
9107 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9108 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9112 cat >>confdefs.h <<_ACEOF
9113 #define SIZEOF_SHORT $ac_cv_sizeof_short
9114 _ACEOF
9117 { echo "$as_me:$LINENO: checking for float" >&5
9118 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9119 if test "${ac_cv_type_float+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h. */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 $ac_includes_default
9129 typedef float ac__type_new_;
9131 main ()
9133 if ((ac__type_new_ *) 0)
9134 return 0;
9135 if (sizeof (ac__type_new_))
9136 return 0;
9138 return 0;
9140 _ACEOF
9141 rm -f conftest.$ac_objext
9142 if { (ac_try="$ac_compile"
9143 case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9146 esac
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_compile") 2>conftest.er1
9149 ac_status=$?
9150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } && {
9155 test -z "$ac_c_werror_flag" ||
9156 test ! -s conftest.err
9157 } && test -s conftest.$ac_objext; then
9158 ac_cv_type_float=yes
9159 else
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.$ac_ext >&5
9163 ac_cv_type_float=no
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9169 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9171 # The cast to long int works around a bug in the HP C Compiler
9172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9174 # This bug is HP SR number 8606223364.
9175 { echo "$as_me:$LINENO: checking size of float" >&5
9176 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9177 if test "${ac_cv_sizeof_float+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180 if test "$cross_compiling" = yes; then
9181 # Depending upon the size, compute the lo and hi bounds.
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9189 typedef float ac__type_sizeof_;
9191 main ()
9193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9194 test_array [0] = 0
9197 return 0;
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (ac_try="$ac_compile"
9202 case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest.$ac_objext; then
9217 ac_lo=0 ac_mid=0
9218 while :; do
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 $ac_includes_default
9226 typedef float ac__type_sizeof_;
9228 main ()
9230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9231 test_array [0] = 0
9234 return 0;
9236 _ACEOF
9237 rm -f conftest.$ac_objext
9238 if { (ac_try="$ac_compile"
9239 case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9242 esac
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_compile") 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest.$ac_objext; then
9254 ac_hi=$ac_mid; break
9255 else
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 ac_lo=`expr $ac_mid + 1`
9260 if test $ac_lo -le $ac_mid; then
9261 ac_lo= ac_hi=
9262 break
9264 ac_mid=`expr 2 '*' $ac_mid + 1`
9267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268 done
9269 else
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 $ac_includes_default
9280 typedef float ac__type_sizeof_;
9282 main ()
9284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9285 test_array [0] = 0
9288 return 0;
9290 _ACEOF
9291 rm -f conftest.$ac_objext
9292 if { (ac_try="$ac_compile"
9293 case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_compile") 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } && {
9305 test -z "$ac_c_werror_flag" ||
9306 test ! -s conftest.err
9307 } && test -s conftest.$ac_objext; then
9308 ac_hi=-1 ac_mid=-1
9309 while :; do
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h. */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 $ac_includes_default
9317 typedef float ac__type_sizeof_;
9319 main ()
9321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9322 test_array [0] = 0
9325 return 0;
9327 _ACEOF
9328 rm -f conftest.$ac_objext
9329 if { (ac_try="$ac_compile"
9330 case "(($ac_try" in
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9333 esac
9334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 (eval "$ac_compile") 2>conftest.er1
9336 ac_status=$?
9337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } && {
9342 test -z "$ac_c_werror_flag" ||
9343 test ! -s conftest.err
9344 } && test -s conftest.$ac_objext; then
9345 ac_lo=$ac_mid; break
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 ac_hi=`expr '(' $ac_mid ')' - 1`
9351 if test $ac_mid -le $ac_hi; then
9352 ac_lo= ac_hi=
9353 break
9355 ac_mid=`expr 2 '*' $ac_mid`
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 done
9360 else
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 ac_lo= ac_hi=
9367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 # Binary search between lo and hi bounds.
9372 while test "x$ac_lo" != "x$ac_hi"; do
9373 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h. */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 $ac_includes_default
9381 typedef float ac__type_sizeof_;
9383 main ()
9385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9386 test_array [0] = 0
9389 return 0;
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (ac_try="$ac_compile"
9394 case "(($ac_try" in
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest.$ac_objext; then
9409 ac_hi=$ac_mid
9410 else
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 ac_lo=`expr '(' $ac_mid ')' + 1`
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 done
9419 case $ac_lo in
9420 ?*) ac_cv_sizeof_float=$ac_lo;;
9421 '') if test "$ac_cv_type_float" = yes; then
9422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9423 See \`config.log' for more details." >&5
9424 echo "$as_me: error: cannot compute sizeof (float)
9425 See \`config.log' for more details." >&2;}
9426 { (exit 77); exit 77; }; }
9427 else
9428 ac_cv_sizeof_float=0
9429 fi ;;
9430 esac
9431 else
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 $ac_includes_default
9439 typedef float ac__type_sizeof_;
9440 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9441 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9442 #include <stdio.h>
9443 #include <stdlib.h>
9445 main ()
9448 FILE *f = fopen ("conftest.val", "w");
9449 if (! f)
9450 return 1;
9451 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9453 long int i = longval ();
9454 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9455 return 1;
9456 fprintf (f, "%ld\n", i);
9458 else
9460 unsigned long int i = ulongval ();
9461 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9462 return 1;
9463 fprintf (f, "%lu\n", i);
9465 return ferror (f) || fclose (f) != 0;
9468 return 0;
9470 _ACEOF
9471 rm -f conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9473 case "(($ac_try" in
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9482 { (case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9485 esac
9486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487 (eval "$ac_try") 2>&5
9488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9491 ac_cv_sizeof_float=`cat conftest.val`
9492 else
9493 echo "$as_me: program exited with status $ac_status" >&5
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9497 ( exit $ac_status )
9498 if test "$ac_cv_type_float" = yes; then
9499 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9500 See \`config.log' for more details." >&5
9501 echo "$as_me: error: cannot compute sizeof (float)
9502 See \`config.log' for more details." >&2;}
9503 { (exit 77); exit 77; }; }
9504 else
9505 ac_cv_sizeof_float=0
9508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9510 rm -f conftest.val
9512 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9513 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9517 cat >>confdefs.h <<_ACEOF
9518 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9519 _ACEOF
9522 { echo "$as_me:$LINENO: checking for double" >&5
9523 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9524 if test "${ac_cv_type_double+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527 cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h. */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 $ac_includes_default
9534 typedef double ac__type_new_;
9536 main ()
9538 if ((ac__type_new_ *) 0)
9539 return 0;
9540 if (sizeof (ac__type_new_))
9541 return 0;
9543 return 0;
9545 _ACEOF
9546 rm -f conftest.$ac_objext
9547 if { (ac_try="$ac_compile"
9548 case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551 esac
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_compile") 2>conftest.er1
9554 ac_status=$?
9555 grep -v '^ *+' conftest.er1 >conftest.err
9556 rm -f conftest.er1
9557 cat conftest.err >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && {
9560 test -z "$ac_c_werror_flag" ||
9561 test ! -s conftest.err
9562 } && test -s conftest.$ac_objext; then
9563 ac_cv_type_double=yes
9564 else
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_cv_type_double=no
9571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9574 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9576 # The cast to long int works around a bug in the HP C Compiler
9577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9579 # This bug is HP SR number 8606223364.
9580 { echo "$as_me:$LINENO: checking size of double" >&5
9581 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9582 if test "${ac_cv_sizeof_double+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585 if test "$cross_compiling" = yes; then
9586 # Depending upon the size, compute the lo and hi bounds.
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h. */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9593 $ac_includes_default
9594 typedef double ac__type_sizeof_;
9596 main ()
9598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9599 test_array [0] = 0
9602 return 0;
9604 _ACEOF
9605 rm -f conftest.$ac_objext
9606 if { (ac_try="$ac_compile"
9607 case "(($ac_try" in
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9610 esac
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_compile") 2>conftest.er1
9613 ac_status=$?
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && {
9619 test -z "$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest.$ac_objext; then
9622 ac_lo=0 ac_mid=0
9623 while :; do
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h. */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630 $ac_includes_default
9631 typedef double ac__type_sizeof_;
9633 main ()
9635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9636 test_array [0] = 0
9639 return 0;
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (ac_try="$ac_compile"
9644 case "(($ac_try" in
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9647 esac
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_compile") 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && {
9656 test -z "$ac_c_werror_flag" ||
9657 test ! -s conftest.err
9658 } && test -s conftest.$ac_objext; then
9659 ac_hi=$ac_mid; break
9660 else
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_lo=`expr $ac_mid + 1`
9665 if test $ac_lo -le $ac_mid; then
9666 ac_lo= ac_hi=
9667 break
9669 ac_mid=`expr 2 '*' $ac_mid + 1`
9672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9673 done
9674 else
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.$ac_ext >&5
9678 cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h. */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 $ac_includes_default
9685 typedef double ac__type_sizeof_;
9687 main ()
9689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9690 test_array [0] = 0
9693 return 0;
9695 _ACEOF
9696 rm -f conftest.$ac_objext
9697 if { (ac_try="$ac_compile"
9698 case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701 esac
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_compile") 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } && {
9710 test -z "$ac_c_werror_flag" ||
9711 test ! -s conftest.err
9712 } && test -s conftest.$ac_objext; then
9713 ac_hi=-1 ac_mid=-1
9714 while :; do
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 $ac_includes_default
9722 typedef double ac__type_sizeof_;
9724 main ()
9726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9727 test_array [0] = 0
9730 return 0;
9732 _ACEOF
9733 rm -f conftest.$ac_objext
9734 if { (ac_try="$ac_compile"
9735 case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_compile") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest.$ac_objext; then
9750 ac_lo=$ac_mid; break
9751 else
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 ac_hi=`expr '(' $ac_mid ')' - 1`
9756 if test $ac_mid -le $ac_hi; then
9757 ac_lo= ac_hi=
9758 break
9760 ac_mid=`expr 2 '*' $ac_mid`
9763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764 done
9765 else
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 ac_lo= ac_hi=
9772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776 # Binary search between lo and hi bounds.
9777 while test "x$ac_lo" != "x$ac_hi"; do
9778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 $ac_includes_default
9786 typedef double ac__type_sizeof_;
9788 main ()
9790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9791 test_array [0] = 0
9794 return 0;
9796 _ACEOF
9797 rm -f conftest.$ac_objext
9798 if { (ac_try="$ac_compile"
9799 case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_compile") 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest.$ac_objext; then
9814 ac_hi=$ac_mid
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_lo=`expr '(' $ac_mid ')' + 1`
9822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9823 done
9824 case $ac_lo in
9825 ?*) ac_cv_sizeof_double=$ac_lo;;
9826 '') if test "$ac_cv_type_double" = yes; then
9827 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9828 See \`config.log' for more details." >&5
9829 echo "$as_me: error: cannot compute sizeof (double)
9830 See \`config.log' for more details." >&2;}
9831 { (exit 77); exit 77; }; }
9832 else
9833 ac_cv_sizeof_double=0
9834 fi ;;
9835 esac
9836 else
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 $ac_includes_default
9844 typedef double ac__type_sizeof_;
9845 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9846 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9847 #include <stdio.h>
9848 #include <stdlib.h>
9850 main ()
9853 FILE *f = fopen ("conftest.val", "w");
9854 if (! f)
9855 return 1;
9856 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9858 long int i = longval ();
9859 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9860 return 1;
9861 fprintf (f, "%ld\n", i);
9863 else
9865 unsigned long int i = ulongval ();
9866 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9867 return 1;
9868 fprintf (f, "%lu\n", i);
9870 return ferror (f) || fclose (f) != 0;
9873 return 0;
9875 _ACEOF
9876 rm -f conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9878 case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9896 ac_cv_sizeof_double=`cat conftest.val`
9897 else
9898 echo "$as_me: program exited with status $ac_status" >&5
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ( exit $ac_status )
9903 if test "$ac_cv_type_double" = yes; then
9904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9905 See \`config.log' for more details." >&5
9906 echo "$as_me: error: cannot compute sizeof (double)
9907 See \`config.log' for more details." >&2;}
9908 { (exit 77); exit 77; }; }
9909 else
9910 ac_cv_sizeof_double=0
9913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9915 rm -f conftest.val
9917 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9918 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9922 cat >>confdefs.h <<_ACEOF
9923 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9924 _ACEOF
9927 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9928 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9929 if test "${ac_cv_type_fpos_t+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h. */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 $ac_includes_default
9939 typedef fpos_t ac__type_new_;
9941 main ()
9943 if ((ac__type_new_ *) 0)
9944 return 0;
9945 if (sizeof (ac__type_new_))
9946 return 0;
9948 return 0;
9950 _ACEOF
9951 rm -f conftest.$ac_objext
9952 if { (ac_try="$ac_compile"
9953 case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_compile") 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } && {
9965 test -z "$ac_c_werror_flag" ||
9966 test ! -s conftest.err
9967 } && test -s conftest.$ac_objext; then
9968 ac_cv_type_fpos_t=yes
9969 else
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_cv_type_fpos_t=no
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9979 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9981 # The cast to long int works around a bug in the HP C Compiler
9982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9984 # This bug is HP SR number 8606223364.
9985 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9986 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9987 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990 if test "$cross_compiling" = yes; then
9991 # Depending upon the size, compute the lo and hi bounds.
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 $ac_includes_default
9999 typedef fpos_t ac__type_sizeof_;
10001 main ()
10003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10004 test_array [0] = 0
10007 return 0;
10009 _ACEOF
10010 rm -f conftest.$ac_objext
10011 if { (ac_try="$ac_compile"
10012 case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_compile") 2>conftest.er1
10018 ac_status=$?
10019 grep -v '^ *+' conftest.er1 >conftest.err
10020 rm -f conftest.er1
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } && {
10024 test -z "$ac_c_werror_flag" ||
10025 test ! -s conftest.err
10026 } && test -s conftest.$ac_objext; then
10027 ac_lo=0 ac_mid=0
10028 while :; do
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h. */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 $ac_includes_default
10036 typedef fpos_t ac__type_sizeof_;
10038 main ()
10040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10041 test_array [0] = 0
10044 return 0;
10046 _ACEOF
10047 rm -f conftest.$ac_objext
10048 if { (ac_try="$ac_compile"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_compile") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest.$ac_objext; then
10064 ac_hi=$ac_mid; break
10065 else
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_lo=`expr $ac_mid + 1`
10070 if test $ac_lo -le $ac_mid; then
10071 ac_lo= ac_hi=
10072 break
10074 ac_mid=`expr 2 '*' $ac_mid + 1`
10077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10078 done
10079 else
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h. */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 $ac_includes_default
10090 typedef fpos_t ac__type_sizeof_;
10092 main ()
10094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10095 test_array [0] = 0
10098 return 0;
10100 _ACEOF
10101 rm -f conftest.$ac_objext
10102 if { (ac_try="$ac_compile"
10103 case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10106 esac
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_compile") 2>conftest.er1
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } && {
10115 test -z "$ac_c_werror_flag" ||
10116 test ! -s conftest.err
10117 } && test -s conftest.$ac_objext; then
10118 ac_hi=-1 ac_mid=-1
10119 while :; do
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 typedef fpos_t ac__type_sizeof_;
10129 main ()
10131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10132 test_array [0] = 0
10135 return 0;
10137 _ACEOF
10138 rm -f conftest.$ac_objext
10139 if { (ac_try="$ac_compile"
10140 case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10143 esac
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_compile") 2>conftest.er1
10146 ac_status=$?
10147 grep -v '^ *+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && {
10152 test -z "$ac_c_werror_flag" ||
10153 test ! -s conftest.err
10154 } && test -s conftest.$ac_objext; then
10155 ac_lo=$ac_mid; break
10156 else
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 ac_hi=`expr '(' $ac_mid ')' - 1`
10161 if test $ac_mid -le $ac_hi; then
10162 ac_lo= ac_hi=
10163 break
10165 ac_mid=`expr 2 '*' $ac_mid`
10168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169 done
10170 else
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_lo= ac_hi=
10177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10181 # Binary search between lo and hi bounds.
10182 while test "x$ac_lo" != "x$ac_hi"; do
10183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10184 cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h. */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 $ac_includes_default
10191 typedef fpos_t ac__type_sizeof_;
10193 main ()
10195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10196 test_array [0] = 0
10199 return 0;
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (ac_try="$ac_compile"
10204 case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10219 ac_hi=$ac_mid
10220 else
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_lo=`expr '(' $ac_mid ')' + 1`
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 done
10229 case $ac_lo in
10230 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10231 '') if test "$ac_cv_type_fpos_t" = yes; then
10232 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10233 See \`config.log' for more details." >&5
10234 echo "$as_me: error: cannot compute sizeof (fpos_t)
10235 See \`config.log' for more details." >&2;}
10236 { (exit 77); exit 77; }; }
10237 else
10238 ac_cv_sizeof_fpos_t=0
10239 fi ;;
10240 esac
10241 else
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 $ac_includes_default
10249 typedef fpos_t ac__type_sizeof_;
10250 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10251 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10252 #include <stdio.h>
10253 #include <stdlib.h>
10255 main ()
10258 FILE *f = fopen ("conftest.val", "w");
10259 if (! f)
10260 return 1;
10261 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10263 long int i = longval ();
10264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10265 return 1;
10266 fprintf (f, "%ld\n", i);
10268 else
10270 unsigned long int i = ulongval ();
10271 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10272 return 1;
10273 fprintf (f, "%lu\n", i);
10275 return ferror (f) || fclose (f) != 0;
10278 return 0;
10280 _ACEOF
10281 rm -f conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295 esac
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_cv_sizeof_fpos_t=`cat conftest.val`
10302 else
10303 echo "$as_me: program exited with status $ac_status" >&5
10304 echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10307 ( exit $ac_status )
10308 if test "$ac_cv_type_fpos_t" = yes; then
10309 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10310 See \`config.log' for more details." >&5
10311 echo "$as_me: error: cannot compute sizeof (fpos_t)
10312 See \`config.log' for more details." >&2;}
10313 { (exit 77); exit 77; }; }
10314 else
10315 ac_cv_sizeof_fpos_t=0
10318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10320 rm -f conftest.val
10322 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10323 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10327 cat >>confdefs.h <<_ACEOF
10328 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10329 _ACEOF
10332 { echo "$as_me:$LINENO: checking for size_t" >&5
10333 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10334 if test "${ac_cv_type_size_t+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 $ac_includes_default
10344 typedef size_t ac__type_new_;
10346 main ()
10348 if ((ac__type_new_ *) 0)
10349 return 0;
10350 if (sizeof (ac__type_new_))
10351 return 0;
10353 return 0;
10355 _ACEOF
10356 rm -f conftest.$ac_objext
10357 if { (ac_try="$ac_compile"
10358 case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_compile") 2>conftest.er1
10364 ac_status=$?
10365 grep -v '^ *+' conftest.er1 >conftest.err
10366 rm -f conftest.er1
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest.$ac_objext; then
10373 ac_cv_type_size_t=yes
10374 else
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10378 ac_cv_type_size_t=no
10381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10384 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10386 # The cast to long int works around a bug in the HP C Compiler
10387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10389 # This bug is HP SR number 8606223364.
10390 { echo "$as_me:$LINENO: checking size of size_t" >&5
10391 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10392 if test "${ac_cv_sizeof_size_t+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395 if test "$cross_compiling" = yes; then
10396 # Depending upon the size, compute the lo and hi bounds.
10397 cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h. */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10403 $ac_includes_default
10404 typedef size_t ac__type_sizeof_;
10406 main ()
10408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10409 test_array [0] = 0
10412 return 0;
10414 _ACEOF
10415 rm -f conftest.$ac_objext
10416 if { (ac_try="$ac_compile"
10417 case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10420 esac
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_compile") 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest.$ac_objext; then
10432 ac_lo=0 ac_mid=0
10433 while :; do
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h. */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 $ac_includes_default
10441 typedef size_t ac__type_sizeof_;
10443 main ()
10445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10446 test_array [0] = 0
10449 return 0;
10451 _ACEOF
10452 rm -f conftest.$ac_objext
10453 if { (ac_try="$ac_compile"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_compile") 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest.$ac_objext; then
10469 ac_hi=$ac_mid; break
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_lo=`expr $ac_mid + 1`
10475 if test $ac_lo -le $ac_mid; then
10476 ac_lo= ac_hi=
10477 break
10479 ac_mid=`expr 2 '*' $ac_mid + 1`
10482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10483 done
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 $ac_includes_default
10495 typedef size_t ac__type_sizeof_;
10497 main ()
10499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10500 test_array [0] = 0
10503 return 0;
10505 _ACEOF
10506 rm -f conftest.$ac_objext
10507 if { (ac_try="$ac_compile"
10508 case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10511 esac
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_compile") 2>conftest.er1
10514 ac_status=$?
10515 grep -v '^ *+' conftest.er1 >conftest.err
10516 rm -f conftest.er1
10517 cat conftest.err >&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && {
10520 test -z "$ac_c_werror_flag" ||
10521 test ! -s conftest.err
10522 } && test -s conftest.$ac_objext; then
10523 ac_hi=-1 ac_mid=-1
10524 while :; do
10525 cat >conftest.$ac_ext <<_ACEOF
10526 /* confdefs.h. */
10527 _ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531 $ac_includes_default
10532 typedef size_t ac__type_sizeof_;
10534 main ()
10536 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10537 test_array [0] = 0
10540 return 0;
10542 _ACEOF
10543 rm -f conftest.$ac_objext
10544 if { (ac_try="$ac_compile"
10545 case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548 esac
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_compile") 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && {
10557 test -z "$ac_c_werror_flag" ||
10558 test ! -s conftest.err
10559 } && test -s conftest.$ac_objext; then
10560 ac_lo=$ac_mid; break
10561 else
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 ac_hi=`expr '(' $ac_mid ')' - 1`
10566 if test $ac_mid -le $ac_hi; then
10567 ac_lo= ac_hi=
10568 break
10570 ac_mid=`expr 2 '*' $ac_mid`
10573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574 done
10575 else
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10579 ac_lo= ac_hi=
10582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10586 # Binary search between lo and hi bounds.
10587 while test "x$ac_lo" != "x$ac_hi"; do
10588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h. */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 $ac_includes_default
10596 typedef size_t ac__type_sizeof_;
10598 main ()
10600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10601 test_array [0] = 0
10604 return 0;
10606 _ACEOF
10607 rm -f conftest.$ac_objext
10608 if { (ac_try="$ac_compile"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_compile") 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest.$ac_objext; then
10624 ac_hi=$ac_mid
10625 else
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 ac_lo=`expr '(' $ac_mid ')' + 1`
10632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633 done
10634 case $ac_lo in
10635 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10636 '') if test "$ac_cv_type_size_t" = yes; then
10637 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10638 See \`config.log' for more details." >&5
10639 echo "$as_me: error: cannot compute sizeof (size_t)
10640 See \`config.log' for more details." >&2;}
10641 { (exit 77); exit 77; }; }
10642 else
10643 ac_cv_sizeof_size_t=0
10644 fi ;;
10645 esac
10646 else
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 $ac_includes_default
10654 typedef size_t ac__type_sizeof_;
10655 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10656 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10657 #include <stdio.h>
10658 #include <stdlib.h>
10660 main ()
10663 FILE *f = fopen ("conftest.val", "w");
10664 if (! f)
10665 return 1;
10666 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10668 long int i = longval ();
10669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10670 return 1;
10671 fprintf (f, "%ld\n", i);
10673 else
10675 unsigned long int i = ulongval ();
10676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10677 return 1;
10678 fprintf (f, "%lu\n", i);
10680 return ferror (f) || fclose (f) != 0;
10683 return 0;
10685 _ACEOF
10686 rm -f conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_link") 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_cv_sizeof_size_t=`cat conftest.val`
10707 else
10708 echo "$as_me: program exited with status $ac_status" >&5
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ( exit $ac_status )
10713 if test "$ac_cv_type_size_t" = yes; then
10714 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10715 See \`config.log' for more details." >&5
10716 echo "$as_me: error: cannot compute sizeof (size_t)
10717 See \`config.log' for more details." >&2;}
10718 { (exit 77); exit 77; }; }
10719 else
10720 ac_cv_sizeof_size_t=0
10723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10725 rm -f conftest.val
10727 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10728 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10732 cat >>confdefs.h <<_ACEOF
10733 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10734 _ACEOF
10737 { echo "$as_me:$LINENO: checking for pid_t" >&5
10738 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10739 if test "${ac_cv_type_pid_t+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 $ac_includes_default
10749 typedef pid_t ac__type_new_;
10751 main ()
10753 if ((ac__type_new_ *) 0)
10754 return 0;
10755 if (sizeof (ac__type_new_))
10756 return 0;
10758 return 0;
10760 _ACEOF
10761 rm -f conftest.$ac_objext
10762 if { (ac_try="$ac_compile"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_compile") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest.$ac_objext; then
10778 ac_cv_type_pid_t=yes
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 ac_cv_type_pid_t=no
10786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10789 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10791 # The cast to long int works around a bug in the HP C Compiler
10792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10794 # This bug is HP SR number 8606223364.
10795 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10796 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10797 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 else
10800 if test "$cross_compiling" = yes; then
10801 # Depending upon the size, compute the lo and hi bounds.
10802 cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h. */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 $ac_includes_default
10809 typedef pid_t ac__type_sizeof_;
10811 main ()
10813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10814 test_array [0] = 0
10817 return 0;
10819 _ACEOF
10820 rm -f conftest.$ac_objext
10821 if { (ac_try="$ac_compile"
10822 case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_compile") 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } && {
10834 test -z "$ac_c_werror_flag" ||
10835 test ! -s conftest.err
10836 } && test -s conftest.$ac_objext; then
10837 ac_lo=0 ac_mid=0
10838 while :; do
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h. */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 $ac_includes_default
10846 typedef pid_t ac__type_sizeof_;
10848 main ()
10850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10851 test_array [0] = 0
10854 return 0;
10856 _ACEOF
10857 rm -f conftest.$ac_objext
10858 if { (ac_try="$ac_compile"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862 esac
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_compile") 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } && {
10871 test -z "$ac_c_werror_flag" ||
10872 test ! -s conftest.err
10873 } && test -s conftest.$ac_objext; then
10874 ac_hi=$ac_mid; break
10875 else
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10879 ac_lo=`expr $ac_mid + 1`
10880 if test $ac_lo -le $ac_mid; then
10881 ac_lo= ac_hi=
10882 break
10884 ac_mid=`expr 2 '*' $ac_mid + 1`
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888 done
10889 else
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 $ac_includes_default
10900 typedef pid_t ac__type_sizeof_;
10902 main ()
10904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10905 test_array [0] = 0
10908 return 0;
10910 _ACEOF
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest.$ac_objext; then
10928 ac_hi=-1 ac_mid=-1
10929 while :; do
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 $ac_includes_default
10937 typedef pid_t ac__type_sizeof_;
10939 main ()
10941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10942 test_array [0] = 0
10945 return 0;
10947 _ACEOF
10948 rm -f conftest.$ac_objext
10949 if { (ac_try="$ac_compile"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_compile") 2>conftest.er1
10956 ac_status=$?
10957 grep -v '^ *+' conftest.er1 >conftest.err
10958 rm -f conftest.er1
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } && {
10962 test -z "$ac_c_werror_flag" ||
10963 test ! -s conftest.err
10964 } && test -s conftest.$ac_objext; then
10965 ac_lo=$ac_mid; break
10966 else
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_hi=`expr '(' $ac_mid ')' - 1`
10971 if test $ac_mid -le $ac_hi; then
10972 ac_lo= ac_hi=
10973 break
10975 ac_mid=`expr 2 '*' $ac_mid`
10978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 done
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_lo= ac_hi=
10987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10991 # Binary search between lo and hi bounds.
10992 while test "x$ac_lo" != "x$ac_hi"; do
10993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h. */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 $ac_includes_default
11001 typedef pid_t ac__type_sizeof_;
11003 main ()
11005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11006 test_array [0] = 0
11009 return 0;
11011 _ACEOF
11012 rm -f conftest.$ac_objext
11013 if { (ac_try="$ac_compile"
11014 case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_compile") 2>conftest.er1
11020 ac_status=$?
11021 grep -v '^ *+' conftest.er1 >conftest.err
11022 rm -f conftest.er1
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } && {
11026 test -z "$ac_c_werror_flag" ||
11027 test ! -s conftest.err
11028 } && test -s conftest.$ac_objext; then
11029 ac_hi=$ac_mid
11030 else
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ac_lo=`expr '(' $ac_mid ')' + 1`
11037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038 done
11039 case $ac_lo in
11040 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11041 '') if test "$ac_cv_type_pid_t" = yes; then
11042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11043 See \`config.log' for more details." >&5
11044 echo "$as_me: error: cannot compute sizeof (pid_t)
11045 See \`config.log' for more details." >&2;}
11046 { (exit 77); exit 77; }; }
11047 else
11048 ac_cv_sizeof_pid_t=0
11049 fi ;;
11050 esac
11051 else
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h. */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 $ac_includes_default
11059 typedef pid_t ac__type_sizeof_;
11060 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11061 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11062 #include <stdio.h>
11063 #include <stdlib.h>
11065 main ()
11068 FILE *f = fopen ("conftest.val", "w");
11069 if (! f)
11070 return 1;
11071 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11073 long int i = longval ();
11074 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11075 return 1;
11076 fprintf (f, "%ld\n", i);
11078 else
11080 unsigned long int i = ulongval ();
11081 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11082 return 1;
11083 fprintf (f, "%lu\n", i);
11085 return ferror (f) || fclose (f) != 0;
11088 return 0;
11090 _ACEOF
11091 rm -f conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11102 { (case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_try") 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_cv_sizeof_pid_t=`cat conftest.val`
11112 else
11113 echo "$as_me: program exited with status $ac_status" >&5
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 ( exit $ac_status )
11118 if test "$ac_cv_type_pid_t" = yes; then
11119 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11120 See \`config.log' for more details." >&5
11121 echo "$as_me: error: cannot compute sizeof (pid_t)
11122 See \`config.log' for more details." >&2;}
11123 { (exit 77); exit 77; }; }
11124 else
11125 ac_cv_sizeof_pid_t=0
11128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11130 rm -f conftest.val
11132 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11133 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11137 cat >>confdefs.h <<_ACEOF
11138 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11139 _ACEOF
11143 { echo "$as_me:$LINENO: checking for long long support" >&5
11144 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11145 have_long_long=no
11146 cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h. */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11154 main ()
11156 long long x; x = (long long)0;
11158 return 0;
11160 _ACEOF
11161 rm -f conftest.$ac_objext
11162 if { (ac_try="$ac_compile"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_compile") 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } && {
11175 test -z "$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11177 } && test -s conftest.$ac_objext; then
11180 cat >>confdefs.h <<\_ACEOF
11181 #define HAVE_LONG_LONG 1
11182 _ACEOF
11184 have_long_long=yes
11186 else
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11194 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11195 echo "${ECHO_T}$have_long_long" >&6; }
11196 if test "$have_long_long" = yes ; then
11197 { echo "$as_me:$LINENO: checking for long long" >&5
11198 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11199 if test "${ac_cv_type_long_long+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 $ac_includes_default
11209 typedef long long ac__type_new_;
11211 main ()
11213 if ((ac__type_new_ *) 0)
11214 return 0;
11215 if (sizeof (ac__type_new_))
11216 return 0;
11218 return 0;
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (ac_try="$ac_compile"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11226 esac
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_compile") 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && {
11235 test -z "$ac_c_werror_flag" ||
11236 test ! -s conftest.err
11237 } && test -s conftest.$ac_objext; then
11238 ac_cv_type_long_long=yes
11239 else
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11243 ac_cv_type_long_long=no
11246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11249 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11251 # The cast to long int works around a bug in the HP C Compiler
11252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11254 # This bug is HP SR number 8606223364.
11255 { echo "$as_me:$LINENO: checking size of long long" >&5
11256 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11257 if test "${ac_cv_sizeof_long_long+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260 if test "$cross_compiling" = yes; then
11261 # Depending upon the size, compute the lo and hi bounds.
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h. */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 $ac_includes_default
11269 typedef long long ac__type_sizeof_;
11271 main ()
11273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11274 test_array [0] = 0
11277 return 0;
11279 _ACEOF
11280 rm -f conftest.$ac_objext
11281 if { (ac_try="$ac_compile"
11282 case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285 esac
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_compile") 2>conftest.er1
11288 ac_status=$?
11289 grep -v '^ *+' conftest.er1 >conftest.err
11290 rm -f conftest.er1
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && {
11294 test -z "$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11296 } && test -s conftest.$ac_objext; then
11297 ac_lo=0 ac_mid=0
11298 while :; do
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h. */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 $ac_includes_default
11306 typedef long long ac__type_sizeof_;
11308 main ()
11310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11311 test_array [0] = 0
11314 return 0;
11316 _ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest.$ac_objext; then
11334 ac_hi=$ac_mid; break
11335 else
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_lo=`expr $ac_mid + 1`
11340 if test $ac_lo -le $ac_mid; then
11341 ac_lo= ac_hi=
11342 break
11344 ac_mid=`expr 2 '*' $ac_mid + 1`
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 done
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 $ac_includes_default
11360 typedef long long ac__type_sizeof_;
11362 main ()
11364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11365 test_array [0] = 0
11368 return 0;
11370 _ACEOF
11371 rm -f conftest.$ac_objext
11372 if { (ac_try="$ac_compile"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_compile") 2>conftest.er1
11379 ac_status=$?
11380 grep -v '^ *+' conftest.er1 >conftest.err
11381 rm -f conftest.er1
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } && {
11385 test -z "$ac_c_werror_flag" ||
11386 test ! -s conftest.err
11387 } && test -s conftest.$ac_objext; then
11388 ac_hi=-1 ac_mid=-1
11389 while :; do
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h. */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 $ac_includes_default
11397 typedef long long ac__type_sizeof_;
11399 main ()
11401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11402 test_array [0] = 0
11405 return 0;
11407 _ACEOF
11408 rm -f conftest.$ac_objext
11409 if { (ac_try="$ac_compile"
11410 case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413 esac
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_compile") 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && {
11422 test -z "$ac_c_werror_flag" ||
11423 test ! -s conftest.err
11424 } && test -s conftest.$ac_objext; then
11425 ac_lo=$ac_mid; break
11426 else
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_hi=`expr '(' $ac_mid ')' - 1`
11431 if test $ac_mid -le $ac_hi; then
11432 ac_lo= ac_hi=
11433 break
11435 ac_mid=`expr 2 '*' $ac_mid`
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 done
11440 else
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 ac_lo= ac_hi=
11447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451 # Binary search between lo and hi bounds.
11452 while test "x$ac_lo" != "x$ac_hi"; do
11453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11454 cat >conftest.$ac_ext <<_ACEOF
11455 /* confdefs.h. */
11456 _ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 $ac_includes_default
11461 typedef long long ac__type_sizeof_;
11463 main ()
11465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11466 test_array [0] = 0
11469 return 0;
11471 _ACEOF
11472 rm -f conftest.$ac_objext
11473 if { (ac_try="$ac_compile"
11474 case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477 esac
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_compile") 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } && {
11486 test -z "$ac_c_werror_flag" ||
11487 test ! -s conftest.err
11488 } && test -s conftest.$ac_objext; then
11489 ac_hi=$ac_mid
11490 else
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 ac_lo=`expr '(' $ac_mid ')' + 1`
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498 done
11499 case $ac_lo in
11500 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11501 '') if test "$ac_cv_type_long_long" = yes; then
11502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11503 See \`config.log' for more details." >&5
11504 echo "$as_me: error: cannot compute sizeof (long long)
11505 See \`config.log' for more details." >&2;}
11506 { (exit 77); exit 77; }; }
11507 else
11508 ac_cv_sizeof_long_long=0
11509 fi ;;
11510 esac
11511 else
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h. */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 $ac_includes_default
11519 typedef long long ac__type_sizeof_;
11520 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11521 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11522 #include <stdio.h>
11523 #include <stdlib.h>
11525 main ()
11528 FILE *f = fopen ("conftest.val", "w");
11529 if (! f)
11530 return 1;
11531 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11533 long int i = longval ();
11534 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11535 return 1;
11536 fprintf (f, "%ld\n", i);
11538 else
11540 unsigned long int i = ulongval ();
11541 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11542 return 1;
11543 fprintf (f, "%lu\n", i);
11545 return ferror (f) || fclose (f) != 0;
11548 return 0;
11550 _ACEOF
11551 rm -f conftest$ac_exeext
11552 if { (ac_try="$ac_link"
11553 case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11556 esac
11557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_link") 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11562 { (case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565 esac
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_try") 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_cv_sizeof_long_long=`cat conftest.val`
11572 else
11573 echo "$as_me: program exited with status $ac_status" >&5
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ( exit $ac_status )
11578 if test "$ac_cv_type_long_long" = yes; then
11579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11580 See \`config.log' for more details." >&5
11581 echo "$as_me: error: cannot compute sizeof (long long)
11582 See \`config.log' for more details." >&2;}
11583 { (exit 77); exit 77; }; }
11584 else
11585 ac_cv_sizeof_long_long=0
11588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11590 rm -f conftest.val
11592 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11593 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11597 cat >>confdefs.h <<_ACEOF
11598 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11599 _ACEOF
11604 { echo "$as_me:$LINENO: checking for long double support" >&5
11605 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11606 have_long_double=no
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11615 main ()
11617 long double x; x = (long double)0;
11619 return 0;
11621 _ACEOF
11622 rm -f conftest.$ac_objext
11623 if { (ac_try="$ac_compile"
11624 case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11627 esac
11628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629 (eval "$ac_compile") 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && {
11636 test -z "$ac_c_werror_flag" ||
11637 test ! -s conftest.err
11638 } && test -s conftest.$ac_objext; then
11641 cat >>confdefs.h <<\_ACEOF
11642 #define HAVE_LONG_DOUBLE 1
11643 _ACEOF
11645 have_long_double=yes
11647 else
11648 echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11656 echo "${ECHO_T}$have_long_double" >&6; }
11657 if test "$have_long_double" = yes ; then
11658 { echo "$as_me:$LINENO: checking for long double" >&5
11659 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11660 if test "${ac_cv_type_long_double+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663 cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h. */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 $ac_includes_default
11670 typedef long double ac__type_new_;
11672 main ()
11674 if ((ac__type_new_ *) 0)
11675 return 0;
11676 if (sizeof (ac__type_new_))
11677 return 0;
11679 return 0;
11681 _ACEOF
11682 rm -f conftest.$ac_objext
11683 if { (ac_try="$ac_compile"
11684 case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687 esac
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_compile") 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest.$ac_objext; then
11699 ac_cv_type_long_double=yes
11700 else
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 ac_cv_type_long_double=no
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11710 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11712 # The cast to long int works around a bug in the HP C Compiler
11713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11715 # This bug is HP SR number 8606223364.
11716 { echo "$as_me:$LINENO: checking size of long double" >&5
11717 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11718 if test "${ac_cv_sizeof_long_double+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721 if test "$cross_compiling" = yes; then
11722 # Depending upon the size, compute the lo and hi bounds.
11723 cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h. */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 $ac_includes_default
11730 typedef long double ac__type_sizeof_;
11732 main ()
11734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11735 test_array [0] = 0
11738 return 0;
11740 _ACEOF
11741 rm -f conftest.$ac_objext
11742 if { (ac_try="$ac_compile"
11743 case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746 esac
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_compile") 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest.$ac_objext; then
11758 ac_lo=0 ac_mid=0
11759 while :; do
11760 cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h. */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 $ac_includes_default
11767 typedef long double ac__type_sizeof_;
11769 main ()
11771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11772 test_array [0] = 0
11775 return 0;
11777 _ACEOF
11778 rm -f conftest.$ac_objext
11779 if { (ac_try="$ac_compile"
11780 case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11783 esac
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_compile") 2>conftest.er1
11786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } && {
11792 test -z "$ac_c_werror_flag" ||
11793 test ! -s conftest.err
11794 } && test -s conftest.$ac_objext; then
11795 ac_hi=$ac_mid; break
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_lo=`expr $ac_mid + 1`
11801 if test $ac_lo -le $ac_mid; then
11802 ac_lo= ac_hi=
11803 break
11805 ac_mid=`expr 2 '*' $ac_mid + 1`
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 done
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 $ac_includes_default
11821 typedef long double ac__type_sizeof_;
11823 main ()
11825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11826 test_array [0] = 0
11829 return 0;
11831 _ACEOF
11832 rm -f conftest.$ac_objext
11833 if { (ac_try="$ac_compile"
11834 case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837 esac
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_compile") 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } && {
11846 test -z "$ac_c_werror_flag" ||
11847 test ! -s conftest.err
11848 } && test -s conftest.$ac_objext; then
11849 ac_hi=-1 ac_mid=-1
11850 while :; do
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h. */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 $ac_includes_default
11858 typedef long double ac__type_sizeof_;
11860 main ()
11862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11863 test_array [0] = 0
11866 return 0;
11868 _ACEOF
11869 rm -f conftest.$ac_objext
11870 if { (ac_try="$ac_compile"
11871 case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_compile") 2>conftest.er1
11877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } && {
11883 test -z "$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 } && test -s conftest.$ac_objext; then
11886 ac_lo=$ac_mid; break
11887 else
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 ac_hi=`expr '(' $ac_mid ')' - 1`
11892 if test $ac_mid -le $ac_hi; then
11893 ac_lo= ac_hi=
11894 break
11896 ac_mid=`expr 2 '*' $ac_mid`
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 done
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_lo= ac_hi=
11908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11912 # Binary search between lo and hi bounds.
11913 while test "x$ac_lo" != "x$ac_hi"; do
11914 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h. */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 $ac_includes_default
11922 typedef long double ac__type_sizeof_;
11924 main ()
11926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11927 test_array [0] = 0
11930 return 0;
11932 _ACEOF
11933 rm -f conftest.$ac_objext
11934 if { (ac_try="$ac_compile"
11935 case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11938 esac
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_compile") 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } && {
11947 test -z "$ac_c_werror_flag" ||
11948 test ! -s conftest.err
11949 } && test -s conftest.$ac_objext; then
11950 ac_hi=$ac_mid
11951 else
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11955 ac_lo=`expr '(' $ac_mid ')' + 1`
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 done
11960 case $ac_lo in
11961 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11962 '') if test "$ac_cv_type_long_double" = yes; then
11963 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11964 See \`config.log' for more details." >&5
11965 echo "$as_me: error: cannot compute sizeof (long double)
11966 See \`config.log' for more details." >&2;}
11967 { (exit 77); exit 77; }; }
11968 else
11969 ac_cv_sizeof_long_double=0
11970 fi ;;
11971 esac
11972 else
11973 cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h. */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 $ac_includes_default
11980 typedef long double ac__type_sizeof_;
11981 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11982 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11983 #include <stdio.h>
11984 #include <stdlib.h>
11986 main ()
11989 FILE *f = fopen ("conftest.val", "w");
11990 if (! f)
11991 return 1;
11992 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11994 long int i = longval ();
11995 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11996 return 1;
11997 fprintf (f, "%ld\n", i);
11999 else
12001 unsigned long int i = ulongval ();
12002 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12003 return 1;
12004 fprintf (f, "%lu\n", i);
12006 return ferror (f) || fclose (f) != 0;
12009 return 0;
12011 _ACEOF
12012 rm -f conftest$ac_exeext
12013 if { (ac_try="$ac_link"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12017 esac
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_link") 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026 esac
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_cv_sizeof_long_double=`cat conftest.val`
12033 else
12034 echo "$as_me: program exited with status $ac_status" >&5
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 ( exit $ac_status )
12039 if test "$ac_cv_type_long_double" = yes; then
12040 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12041 See \`config.log' for more details." >&5
12042 echo "$as_me: error: cannot compute sizeof (long double)
12043 See \`config.log' for more details." >&2;}
12044 { (exit 77); exit 77; }; }
12045 else
12046 ac_cv_sizeof_long_double=0
12049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12051 rm -f conftest.val
12053 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12054 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12058 cat >>confdefs.h <<_ACEOF
12059 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12060 _ACEOF
12066 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12067 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12068 have_c99_bool=no
12069 cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h. */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12077 main ()
12079 _Bool x; x = (_Bool)0;
12081 return 0;
12083 _ACEOF
12084 rm -f conftest.$ac_objext
12085 if { (ac_try="$ac_compile"
12086 case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12089 esac
12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_compile") 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && {
12098 test -z "$ac_c_werror_flag" ||
12099 test ! -s conftest.err
12100 } && test -s conftest.$ac_objext; then
12103 cat >>confdefs.h <<\_ACEOF
12104 #define HAVE_C99_BOOL 1
12105 _ACEOF
12107 have_c99_bool=yes
12109 else
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12118 echo "${ECHO_T}$have_c99_bool" >&6; }
12119 if test "$have_c99_bool" = yes ; then
12120 { echo "$as_me:$LINENO: checking for _Bool" >&5
12121 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12122 if test "${ac_cv_type__Bool+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 $ac_includes_default
12132 typedef _Bool ac__type_new_;
12134 main ()
12136 if ((ac__type_new_ *) 0)
12137 return 0;
12138 if (sizeof (ac__type_new_))
12139 return 0;
12141 return 0;
12143 _ACEOF
12144 rm -f conftest.$ac_objext
12145 if { (ac_try="$ac_compile"
12146 case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12149 esac
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_compile") 2>conftest.er1
12152 ac_status=$?
12153 grep -v '^ *+' conftest.er1 >conftest.err
12154 rm -f conftest.er1
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } && {
12158 test -z "$ac_c_werror_flag" ||
12159 test ! -s conftest.err
12160 } && test -s conftest.$ac_objext; then
12161 ac_cv_type__Bool=yes
12162 else
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12166 ac_cv_type__Bool=no
12169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12171 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12172 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12174 # The cast to long int works around a bug in the HP C Compiler
12175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12177 # This bug is HP SR number 8606223364.
12178 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12179 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12180 if test "${ac_cv_sizeof__Bool+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183 if test "$cross_compiling" = yes; then
12184 # Depending upon the size, compute the lo and hi bounds.
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h. */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 $ac_includes_default
12192 typedef _Bool ac__type_sizeof_;
12194 main ()
12196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12197 test_array [0] = 0
12200 return 0;
12202 _ACEOF
12203 rm -f conftest.$ac_objext
12204 if { (ac_try="$ac_compile"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_compile") 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } && {
12217 test -z "$ac_c_werror_flag" ||
12218 test ! -s conftest.err
12219 } && test -s conftest.$ac_objext; then
12220 ac_lo=0 ac_mid=0
12221 while :; do
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h. */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 $ac_includes_default
12229 typedef _Bool ac__type_sizeof_;
12231 main ()
12233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12234 test_array [0] = 0
12237 return 0;
12239 _ACEOF
12240 rm -f conftest.$ac_objext
12241 if { (ac_try="$ac_compile"
12242 case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245 esac
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_compile") 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest.$ac_objext; then
12257 ac_hi=$ac_mid; break
12258 else
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12262 ac_lo=`expr $ac_mid + 1`
12263 if test $ac_lo -le $ac_mid; then
12264 ac_lo= ac_hi=
12265 break
12267 ac_mid=`expr 2 '*' $ac_mid + 1`
12270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 done
12272 else
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12276 cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h. */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12282 $ac_includes_default
12283 typedef _Bool ac__type_sizeof_;
12285 main ()
12287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12288 test_array [0] = 0
12291 return 0;
12293 _ACEOF
12294 rm -f conftest.$ac_objext
12295 if { (ac_try="$ac_compile"
12296 case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299 esac
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_compile") 2>conftest.er1
12302 ac_status=$?
12303 grep -v '^ *+' conftest.er1 >conftest.err
12304 rm -f conftest.er1
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } && {
12308 test -z "$ac_c_werror_flag" ||
12309 test ! -s conftest.err
12310 } && test -s conftest.$ac_objext; then
12311 ac_hi=-1 ac_mid=-1
12312 while :; do
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h. */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 $ac_includes_default
12320 typedef _Bool ac__type_sizeof_;
12322 main ()
12324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12325 test_array [0] = 0
12328 return 0;
12330 _ACEOF
12331 rm -f conftest.$ac_objext
12332 if { (ac_try="$ac_compile"
12333 case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_compile") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest.$ac_objext; then
12348 ac_lo=$ac_mid; break
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_hi=`expr '(' $ac_mid ')' - 1`
12354 if test $ac_mid -le $ac_hi; then
12355 ac_lo= ac_hi=
12356 break
12358 ac_mid=`expr 2 '*' $ac_mid`
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 done
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_lo= ac_hi=
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 # Binary search between lo and hi bounds.
12375 while test "x$ac_lo" != "x$ac_hi"; do
12376 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 $ac_includes_default
12384 typedef _Bool ac__type_sizeof_;
12386 main ()
12388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12389 test_array [0] = 0
12392 return 0;
12394 _ACEOF
12395 rm -f conftest.$ac_objext
12396 if { (ac_try="$ac_compile"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400 esac
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_compile") 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } && {
12409 test -z "$ac_c_werror_flag" ||
12410 test ! -s conftest.err
12411 } && test -s conftest.$ac_objext; then
12412 ac_hi=$ac_mid
12413 else
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 ac_lo=`expr '(' $ac_mid ')' + 1`
12420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12421 done
12422 case $ac_lo in
12423 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12424 '') if test "$ac_cv_type__Bool" = yes; then
12425 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12426 See \`config.log' for more details." >&5
12427 echo "$as_me: error: cannot compute sizeof (_Bool)
12428 See \`config.log' for more details." >&2;}
12429 { (exit 77); exit 77; }; }
12430 else
12431 ac_cv_sizeof__Bool=0
12432 fi ;;
12433 esac
12434 else
12435 cat >conftest.$ac_ext <<_ACEOF
12436 /* confdefs.h. */
12437 _ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12441 $ac_includes_default
12442 typedef _Bool ac__type_sizeof_;
12443 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12444 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12445 #include <stdio.h>
12446 #include <stdlib.h>
12448 main ()
12451 FILE *f = fopen ("conftest.val", "w");
12452 if (! f)
12453 return 1;
12454 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12456 long int i = longval ();
12457 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12458 return 1;
12459 fprintf (f, "%ld\n", i);
12461 else
12463 unsigned long int i = ulongval ();
12464 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12465 return 1;
12466 fprintf (f, "%lu\n", i);
12468 return ferror (f) || fclose (f) != 0;
12471 return 0;
12473 _ACEOF
12474 rm -f conftest$ac_exeext
12475 if { (ac_try="$ac_link"
12476 case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12479 esac
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481 (eval "$ac_link") 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12485 { (case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12488 esac
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_try") 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_cv_sizeof__Bool=`cat conftest.val`
12495 else
12496 echo "$as_me: program exited with status $ac_status" >&5
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ( exit $ac_status )
12501 if test "$ac_cv_type__Bool" = yes; then
12502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12503 See \`config.log' for more details." >&5
12504 echo "$as_me: error: cannot compute sizeof (_Bool)
12505 See \`config.log' for more details." >&2;}
12506 { (exit 77); exit 77; }; }
12507 else
12508 ac_cv_sizeof__Bool=0
12511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12513 rm -f conftest.val
12515 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12516 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12520 cat >>confdefs.h <<_ACEOF
12521 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12522 _ACEOF
12527 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12528 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12529 if test "${ac_cv_type_uintptr_t+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 #ifdef HAVE_STDINT_H
12539 #include <stdint.h>
12540 #endif
12542 typedef uintptr_t ac__type_new_;
12544 main ()
12546 if ((ac__type_new_ *) 0)
12547 return 0;
12548 if (sizeof (ac__type_new_))
12549 return 0;
12551 return 0;
12553 _ACEOF
12554 rm -f conftest.$ac_objext
12555 if { (ac_try="$ac_compile"
12556 case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_compile") 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && {
12568 test -z "$ac_c_werror_flag" ||
12569 test ! -s conftest.err
12570 } && test -s conftest.$ac_objext; then
12571 ac_cv_type_uintptr_t=yes
12572 else
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 ac_cv_type_uintptr_t=no
12579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12582 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12583 if test $ac_cv_type_uintptr_t = yes; then
12585 cat >>confdefs.h <<_ACEOF
12586 #define HAVE_UINTPTR_T 1
12587 _ACEOF
12589 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12590 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12591 if test "${ac_cv_type_uintptr_t+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 $ac_includes_default
12601 typedef uintptr_t ac__type_new_;
12603 main ()
12605 if ((ac__type_new_ *) 0)
12606 return 0;
12607 if (sizeof (ac__type_new_))
12608 return 0;
12610 return 0;
12612 _ACEOF
12613 rm -f conftest.$ac_objext
12614 if { (ac_try="$ac_compile"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_compile") 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && {
12627 test -z "$ac_c_werror_flag" ||
12628 test ! -s conftest.err
12629 } && test -s conftest.$ac_objext; then
12630 ac_cv_type_uintptr_t=yes
12631 else
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 ac_cv_type_uintptr_t=no
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12641 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12643 # The cast to long int works around a bug in the HP C Compiler
12644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12646 # This bug is HP SR number 8606223364.
12647 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12648 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12649 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652 if test "$cross_compiling" = yes; then
12653 # Depending upon the size, compute the lo and hi bounds.
12654 cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h. */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 $ac_includes_default
12661 typedef uintptr_t ac__type_sizeof_;
12663 main ()
12665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12666 test_array [0] = 0
12669 return 0;
12671 _ACEOF
12672 rm -f conftest.$ac_objext
12673 if { (ac_try="$ac_compile"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677 esac
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_compile") 2>conftest.er1
12680 ac_status=$?
12681 grep -v '^ *+' conftest.er1 >conftest.err
12682 rm -f conftest.er1
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && {
12686 test -z "$ac_c_werror_flag" ||
12687 test ! -s conftest.err
12688 } && test -s conftest.$ac_objext; then
12689 ac_lo=0 ac_mid=0
12690 while :; do
12691 cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h. */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697 $ac_includes_default
12698 typedef uintptr_t ac__type_sizeof_;
12700 main ()
12702 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12703 test_array [0] = 0
12706 return 0;
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (ac_try="$ac_compile"
12711 case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_compile") 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && {
12723 test -z "$ac_c_werror_flag" ||
12724 test ! -s conftest.err
12725 } && test -s conftest.$ac_objext; then
12726 ac_hi=$ac_mid; break
12727 else
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12731 ac_lo=`expr $ac_mid + 1`
12732 if test $ac_lo -le $ac_mid; then
12733 ac_lo= ac_hi=
12734 break
12736 ac_mid=`expr 2 '*' $ac_mid + 1`
12739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12740 done
12741 else
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12752 typedef uintptr_t ac__type_sizeof_;
12754 main ()
12756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12757 test_array [0] = 0
12760 return 0;
12762 _ACEOF
12763 rm -f conftest.$ac_objext
12764 if { (ac_try="$ac_compile"
12765 case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12768 esac
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_compile") 2>conftest.er1
12771 ac_status=$?
12772 grep -v '^ *+' conftest.er1 >conftest.err
12773 rm -f conftest.er1
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } && {
12777 test -z "$ac_c_werror_flag" ||
12778 test ! -s conftest.err
12779 } && test -s conftest.$ac_objext; then
12780 ac_hi=-1 ac_mid=-1
12781 while :; do
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h. */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 $ac_includes_default
12789 typedef uintptr_t ac__type_sizeof_;
12791 main ()
12793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12794 test_array [0] = 0
12797 return 0;
12799 _ACEOF
12800 rm -f conftest.$ac_objext
12801 if { (ac_try="$ac_compile"
12802 case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_compile") 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } && {
12814 test -z "$ac_c_werror_flag" ||
12815 test ! -s conftest.err
12816 } && test -s conftest.$ac_objext; then
12817 ac_lo=$ac_mid; break
12818 else
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 ac_hi=`expr '(' $ac_mid ')' - 1`
12823 if test $ac_mid -le $ac_hi; then
12824 ac_lo= ac_hi=
12825 break
12827 ac_mid=`expr 2 '*' $ac_mid`
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 done
12832 else
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12836 ac_lo= ac_hi=
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 # Binary search between lo and hi bounds.
12844 while test "x$ac_lo" != "x$ac_hi"; do
12845 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12846 cat >conftest.$ac_ext <<_ACEOF
12847 /* confdefs.h. */
12848 _ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12852 $ac_includes_default
12853 typedef uintptr_t ac__type_sizeof_;
12855 main ()
12857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12858 test_array [0] = 0
12861 return 0;
12863 _ACEOF
12864 rm -f conftest.$ac_objext
12865 if { (ac_try="$ac_compile"
12866 case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12869 esac
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_compile") 2>conftest.er1
12872 ac_status=$?
12873 grep -v '^ *+' conftest.er1 >conftest.err
12874 rm -f conftest.er1
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } && {
12878 test -z "$ac_c_werror_flag" ||
12879 test ! -s conftest.err
12880 } && test -s conftest.$ac_objext; then
12881 ac_hi=$ac_mid
12882 else
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12886 ac_lo=`expr '(' $ac_mid ')' + 1`
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 done
12891 case $ac_lo in
12892 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12893 '') if test "$ac_cv_type_uintptr_t" = yes; then
12894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12895 See \`config.log' for more details." >&5
12896 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12897 See \`config.log' for more details." >&2;}
12898 { (exit 77); exit 77; }; }
12899 else
12900 ac_cv_sizeof_uintptr_t=0
12901 fi ;;
12902 esac
12903 else
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h. */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 $ac_includes_default
12911 typedef uintptr_t ac__type_sizeof_;
12912 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12913 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12914 #include <stdio.h>
12915 #include <stdlib.h>
12917 main ()
12920 FILE *f = fopen ("conftest.val", "w");
12921 if (! f)
12922 return 1;
12923 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12925 long int i = longval ();
12926 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12927 return 1;
12928 fprintf (f, "%ld\n", i);
12930 else
12932 unsigned long int i = ulongval ();
12933 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12934 return 1;
12935 fprintf (f, "%lu\n", i);
12937 return ferror (f) || fclose (f) != 0;
12940 return 0;
12942 _ACEOF
12943 rm -f conftest$ac_exeext
12944 if { (ac_try="$ac_link"
12945 case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_link") 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12954 { (case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_try") 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12964 else
12965 echo "$as_me: program exited with status $ac_status" >&5
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 ( exit $ac_status )
12970 if test "$ac_cv_type_uintptr_t" = yes; then
12971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12972 See \`config.log' for more details." >&5
12973 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12974 See \`config.log' for more details." >&2;}
12975 { (exit 77); exit 77; }; }
12976 else
12977 ac_cv_sizeof_uintptr_t=0
12980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12982 rm -f conftest.val
12984 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12985 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12989 cat >>confdefs.h <<_ACEOF
12990 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12991 _ACEOF
12998 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12999 { echo "$as_me:$LINENO: checking size of off_t" >&5
13000 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13001 if test "${ac_cv_sizeof_off_t+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 else
13004 if test "$cross_compiling" = yes; then
13005 ac_cv_sizeof_off_t=4
13006 else
13007 cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h. */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 #include <stdio.h>
13014 #include <sys/types.h>
13015 main()
13017 FILE *f=fopen("conftestval", "w");
13018 if (!f) exit(1);
13019 fprintf(f, "%d\n", sizeof(off_t));
13020 exit(0);
13022 _ACEOF
13023 rm -f conftest$ac_exeext
13024 if { (ac_try="$ac_link"
13025 case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_link") 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13034 { (case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037 esac
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_try") 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_sizeof_off_t=`cat conftestval`
13044 else
13045 echo "$as_me: program exited with status $ac_status" >&5
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 ( exit $ac_status )
13050 ac_cv_sizeof_off_t=0
13052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13059 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13060 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13062 cat >>confdefs.h <<_ACEOF
13063 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13064 _ACEOF
13067 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13068 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13069 if test "$have_long_long" = yes
13070 then
13071 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13072 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13074 cat >>confdefs.h <<\_ACEOF
13075 #define HAVE_LARGEFILE_SUPPORT 1
13076 _ACEOF
13078 { echo "$as_me:$LINENO: result: yes" >&5
13079 echo "${ECHO_T}yes" >&6; }
13080 else
13081 { echo "$as_me:$LINENO: result: no" >&5
13082 echo "${ECHO_T}no" >&6; }
13084 else
13085 { echo "$as_me:$LINENO: result: no" >&5
13086 echo "${ECHO_T}no" >&6; }
13089 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13090 { echo "$as_me:$LINENO: checking size of time_t" >&5
13091 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13092 if test "${ac_cv_sizeof_time_t+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095 if test "$cross_compiling" = yes; then
13096 ac_cv_sizeof_time_t=4
13097 else
13098 cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h. */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13104 #include <stdio.h>
13105 #include <time.h>
13106 main()
13108 FILE *f=fopen("conftestval", "w");
13109 if (!f) exit(1);
13110 fprintf(f, "%d\n", sizeof(time_t));
13111 exit(0);
13113 _ACEOF
13114 rm -f conftest$ac_exeext
13115 if { (ac_try="$ac_link"
13116 case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_link") 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13125 { (case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13128 esac
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_try") 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_cv_sizeof_time_t=`cat conftestval`
13135 else
13136 echo "$as_me: program exited with status $ac_status" >&5
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140 ( exit $ac_status )
13141 ac_cv_sizeof_time_t=0
13143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13150 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13151 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13153 cat >>confdefs.h <<_ACEOF
13154 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13155 _ACEOF
13159 # if have pthread_t then define SIZEOF_PTHREAD_T
13160 ac_save_cc="$CC"
13161 if test "$ac_cv_kpthread" = "yes"
13162 then CC="$CC -Kpthread"
13163 elif test "$ac_cv_kthread" = "yes"
13164 then CC="$CC -Kthread"
13165 elif test "$ac_cv_pthread" = "yes"
13166 then CC="$CC -pthread"
13168 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13169 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13170 have_pthread_t=no
13171 cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h. */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 #include <pthread.h>
13179 main ()
13181 pthread_t x; x = *(pthread_t*)0;
13183 return 0;
13185 _ACEOF
13186 rm -f conftest.$ac_objext
13187 if { (ac_try="$ac_compile"
13188 case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_compile") 2>conftest.er1
13194 ac_status=$?
13195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && {
13200 test -z "$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 } && test -s conftest.$ac_objext; then
13203 have_pthread_t=yes
13204 else
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13213 echo "${ECHO_T}$have_pthread_t" >&6; }
13214 if test "$have_pthread_t" = yes ; then
13215 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13216 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13217 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13218 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221 if test "$cross_compiling" = yes; then
13222 ac_cv_sizeof_pthread_t=4
13223 else
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h. */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 #include <stdio.h>
13231 #include <pthread.h>
13232 main()
13234 FILE *f=fopen("conftestval", "w");
13235 if (!f) exit(1);
13236 fprintf(f, "%d\n", sizeof(pthread_t));
13237 exit(0);
13239 _ACEOF
13240 rm -f conftest$ac_exeext
13241 if { (ac_try="$ac_link"
13242 case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_link") 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13251 { (case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254 esac
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_sizeof_pthread_t=`cat conftestval`
13261 else
13262 echo "$as_me: program exited with status $ac_status" >&5
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ( exit $ac_status )
13267 ac_cv_sizeof_pthread_t=0
13269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13276 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13277 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13279 cat >>confdefs.h <<_ACEOF
13280 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13281 _ACEOF
13284 CC="$ac_save_cc"
13289 case $ac_sys_system/$ac_sys_release in
13290 Darwin/[01567]\..*)
13291 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13293 Darwin/*)
13294 OTHER_LIBTOOL_OPT=""
13296 esac
13299 ARCH_RUN_32BIT=""
13301 case $ac_sys_system/$ac_sys_release in
13302 Darwin/[01567]\..*)
13303 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13304 if test "${enable_universalsdk}"; then
13306 else
13307 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
13309 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13310 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13311 Darwin/*)
13312 gcc_version=`gcc -dumpversion`
13313 if test ${gcc_version} '<' 4.0
13314 then
13315 LIBTOOL_CRUFT="-lcc_dynamic"
13316 else
13317 LIBTOOL_CRUFT=""
13319 if test "$cross_compiling" = yes; then
13320 ac_osx_32bit=yes
13321 else
13322 cat >conftest.$ac_ext <<_ACEOF
13323 /* confdefs.h. */
13324 _ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13329 #include <unistd.h>
13330 int main(int argc, char*argv[])
13332 if (sizeof(long) == 4) {
13333 return 0;
13334 } else {
13335 return 1;
13339 _ACEOF
13340 rm -f conftest$ac_exeext
13341 if { (ac_try="$ac_link"
13342 case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_link") 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13351 { (case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354 esac
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_try") 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_osx_32bit=yes
13361 else
13362 echo "$as_me: program exited with status $ac_status" >&5
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ( exit $ac_status )
13367 ac_osx_32bit=no
13369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13374 if test "${ac_osx_32bit}" = "yes"; then
13375 case `/usr/bin/arch` in
13376 i386)
13377 MACOSX_DEFAULT_ARCH="i386"
13379 ppc)
13380 MACOSX_DEFAULT_ARCH="ppc"
13383 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13384 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13385 { (exit 1); exit 1; }; }
13387 esac
13388 else
13389 case `/usr/bin/arch` in
13390 i386)
13391 MACOSX_DEFAULT_ARCH="x86_64"
13393 ppc)
13394 MACOSX_DEFAULT_ARCH="ppc64"
13397 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13398 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13399 { (exit 1); exit 1; }; }
13401 esac
13403 #ARCH_RUN_32BIT="true"
13406 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13407 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13408 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13409 esac
13411 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13412 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13413 if test "$enable_framework"
13414 then
13415 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13416 # -F. is needed to allow linking to the framework while
13417 # in the build location.
13419 cat >>confdefs.h <<\_ACEOF
13420 #define WITH_NEXT_FRAMEWORK 1
13421 _ACEOF
13423 { echo "$as_me:$LINENO: result: yes" >&5
13424 echo "${ECHO_T}yes" >&6; }
13425 if test $enable_shared = "yes"
13426 then
13427 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13428 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13429 { (exit 1); exit 1; }; }
13431 else
13432 { echo "$as_me:$LINENO: result: no" >&5
13433 echo "${ECHO_T}no" >&6; }
13436 { echo "$as_me:$LINENO: checking for dyld" >&5
13437 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13438 case $ac_sys_system/$ac_sys_release in
13439 Darwin/*)
13441 cat >>confdefs.h <<\_ACEOF
13442 #define WITH_DYLD 1
13443 _ACEOF
13445 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13446 echo "${ECHO_T}always on for Darwin" >&6; }
13449 { echo "$as_me:$LINENO: result: no" >&5
13450 echo "${ECHO_T}no" >&6; }
13452 esac
13454 # Set info about shared libraries.
13460 # SO is the extension of shared libraries `(including the dot!)
13461 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13462 { echo "$as_me:$LINENO: checking SO" >&5
13463 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13464 if test -z "$SO"
13465 then
13466 case $ac_sys_system in
13467 hp*|HP*)
13468 case `uname -m` in
13469 ia64) SO=.so;;
13470 *) SO=.sl;;
13471 esac
13473 CYGWIN*) SO=.dll;;
13474 *) SO=.so;;
13475 esac
13476 else
13477 # this might also be a termcap variable, see #610332
13478 echo
13479 echo '====================================================================='
13480 echo '+ +'
13481 echo '+ WARNING: You have set SO in your environment. +'
13482 echo '+ Do you really mean to change the extension for shared libraries? +'
13483 echo '+ Continuing in 10 seconds to let you to ponder. +'
13484 echo '+ +'
13485 echo '====================================================================='
13486 sleep 10
13488 { echo "$as_me:$LINENO: result: $SO" >&5
13489 echo "${ECHO_T}$SO" >&6; }
13492 cat >>confdefs.h <<_ACEOF
13493 #define SHLIB_EXT "$SO"
13494 _ACEOF
13496 # LDSHARED is the ld *command* used to create shared library
13497 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13498 # (Shared libraries in this instance are shared modules to be loaded into
13499 # Python, as opposed to building Python itself as a shared library.)
13500 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13501 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13502 if test -z "$LDSHARED"
13503 then
13504 case $ac_sys_system/$ac_sys_release in
13505 AIX*)
13506 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13507 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13509 IRIX/5*) LDSHARED="ld -shared";;
13510 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13511 SunOS/5*)
13512 if test "$GCC" = "yes"
13513 then LDSHARED='$(CC) -shared'
13514 else LDSHARED='$(CC) -G';
13515 fi ;;
13516 hp*|HP*)
13517 if test "$GCC" = "yes"
13518 then LDSHARED='$(CC) -shared'
13519 else LDSHARED='ld -b';
13520 fi ;;
13521 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13522 Darwin/1.3*)
13523 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13524 if test "$enable_framework" ; then
13525 # Link against the framework. All externals should be defined.
13526 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13527 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13528 else
13529 # No framework. Ignore undefined symbols, assuming they come from Python
13530 LDSHARED="$LDSHARED -undefined suppress"
13531 fi ;;
13532 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13533 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13534 if test "$enable_framework" ; then
13535 # Link against the framework. All externals should be defined.
13536 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13537 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13538 else
13539 # No framework, use the Python app as bundle-loader
13540 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13541 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13542 fi ;;
13543 Darwin/*)
13544 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13545 # This allows an extension to be used in any Python
13547 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13548 then
13549 if test "${enable_universalsdk}"; then
13550 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13552 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13553 BLDSHARED="$LDSHARED"
13554 else
13555 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13556 if test "$enable_framework" ; then
13557 # Link against the framework. All externals should be defined.
13558 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13559 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13560 else
13561 # No framework, use the Python app as bundle-loader
13562 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13563 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13567 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13568 BSD/OS*/4*) LDSHARED="gcc -shared";;
13569 FreeBSD*)
13570 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13571 then
13572 LDSHARED="$CC -shared ${LDFLAGS}"
13573 else
13574 LDSHARED="ld -Bshareable ${LDFLAGS}"
13575 fi;;
13576 OpenBSD*)
13577 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13578 then
13579 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13580 else
13581 case `uname -r` in
13582 [01].* | 2.[0-7] | 2.[0-7].*)
13583 LDSHARED="ld -Bshareable ${LDFLAGS}"
13586 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13588 esac
13589 fi;;
13590 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13591 OpenUNIX*|UnixWare*)
13592 if test "$GCC" = "yes"
13593 then LDSHARED='$(CC) -shared'
13594 else LDSHARED='$(CC) -G'
13595 fi;;
13596 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13597 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13598 atheos*) LDSHARED="gcc -shared";;
13599 *) LDSHARED="ld";;
13600 esac
13602 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13603 echo "${ECHO_T}$LDSHARED" >&6; }
13604 BLDSHARED=${BLDSHARED-$LDSHARED}
13605 # CCSHARED are the C *flags* used to create objects to go into a shared
13606 # library (module) -- this is only needed for a few systems
13607 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13608 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13609 if test -z "$CCSHARED"
13610 then
13611 case $ac_sys_system/$ac_sys_release in
13612 SunOS*) if test "$GCC" = yes;
13613 then CCSHARED="-fPIC";
13614 elif test `uname -p` = sparc;
13615 then CCSHARED="-xcode=pic32";
13616 else CCSHARED="-Kpic";
13617 fi;;
13618 hp*|HP*) if test "$GCC" = yes;
13619 then CCSHARED="-fPIC";
13620 else CCSHARED="+z";
13621 fi;;
13622 Linux*|GNU*) CCSHARED="-fPIC";;
13623 BSD/OS*/4*) CCSHARED="-fpic";;
13624 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13625 OpenUNIX*|UnixWare*)
13626 if test "$GCC" = "yes"
13627 then CCSHARED="-fPIC"
13628 else CCSHARED="-KPIC"
13629 fi;;
13630 SCO_SV*)
13631 if test "$GCC" = "yes"
13632 then CCSHARED="-fPIC"
13633 else CCSHARED="-Kpic -belf"
13634 fi;;
13635 IRIX*/6*) case $CC in
13636 *gcc*) CCSHARED="-shared";;
13637 *) CCSHARED="";;
13638 esac;;
13639 atheos*) CCSHARED="-fPIC";;
13640 esac
13642 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13643 echo "${ECHO_T}$CCSHARED" >&6; }
13644 # LINKFORSHARED are the flags passed to the $(CC) command that links
13645 # the python executable -- this is only needed for a few systems
13646 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13647 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13648 if test -z "$LINKFORSHARED"
13649 then
13650 case $ac_sys_system/$ac_sys_release in
13651 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13652 hp*|HP*)
13653 LINKFORSHARED="-Wl,-E -Wl,+s";;
13654 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13655 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13656 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13657 # -u libsys_s pulls in all symbols in libsys
13658 Darwin/*)
13659 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13660 if test "$enable_framework"
13661 then
13662 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13664 LINKFORSHARED="$LINKFORSHARED";;
13665 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13666 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13667 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13668 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13669 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13670 then
13671 LINKFORSHARED="-Wl,--export-dynamic"
13672 fi;;
13673 SunOS/5*) case $CC in
13674 *gcc*)
13675 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13676 then
13677 LINKFORSHARED="-Xlinker --export-dynamic"
13678 fi;;
13679 esac;;
13680 CYGWIN*)
13681 if test $enable_shared = "no"
13682 then
13683 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13684 fi;;
13685 QNX*)
13686 # -Wl,-E causes the symbols to be added to the dynamic
13687 # symbol table so that they can be found when a module
13688 # is loaded. -N 2048K causes the stack size to be set
13689 # to 2048 kilobytes so that the stack doesn't overflow
13690 # when running test_compile.py.
13691 LINKFORSHARED='-Wl,-E -N 2048K';;
13692 esac
13694 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13695 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13699 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13700 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13701 if test ! "$LIBRARY" = "$LDLIBRARY"
13702 then
13703 case $ac_sys_system in
13704 CYGWIN*)
13705 # Cygwin needs CCSHARED when building extension DLLs
13706 # but not when building the interpreter DLL.
13707 CFLAGSFORSHARED='';;
13709 CFLAGSFORSHARED='$(CCSHARED)'
13710 esac
13712 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13713 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13715 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13716 # library (with --enable-shared).
13717 # For platforms on which shared libraries are not allowed to have unresolved
13718 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13719 # if it is not required, since it creates a dependency of the shared library
13720 # to LIBS. This, in turn, means that applications linking the shared libpython
13721 # don't need to link LIBS explicitly. The default should be only changed
13722 # on systems where this approach causes problems.
13724 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13725 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13726 case "$ac_sys_system" in
13728 SHLIBS='$(LIBS)';;
13729 esac
13730 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13731 echo "${ECHO_T}$SHLIBS" >&6; }
13734 # checks for libraries
13736 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13737 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13738 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 ac_check_lib_save_LIBS=$LIBS
13742 LIBS="-ldl $LIBS"
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h. */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13750 /* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
13753 #ifdef __cplusplus
13754 extern "C"
13755 #endif
13756 char dlopen ();
13758 main ()
13760 return dlopen ();
13762 return 0;
13764 _ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (ac_try="$ac_link"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && {
13779 test -z "$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13781 } && test -s conftest$ac_exeext &&
13782 $as_test_x conftest$ac_exeext; then
13783 ac_cv_lib_dl_dlopen=yes
13784 else
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_lib_dl_dlopen=no
13791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13792 conftest$ac_exeext conftest.$ac_ext
13793 LIBS=$ac_check_lib_save_LIBS
13795 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13796 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13797 if test $ac_cv_lib_dl_dlopen = yes; then
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_LIBDL 1
13800 _ACEOF
13802 LIBS="-ldl $LIBS"
13805 # Dynamic linking for SunOS/Solaris and SYSV
13807 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13808 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13809 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 else
13812 ac_check_lib_save_LIBS=$LIBS
13813 LIBS="-ldld $LIBS"
13814 cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h. */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13821 /* Override any GCC internal prototype to avoid an error.
13822 Use char because int might match the return type of a GCC
13823 builtin and then its argument prototype would still apply. */
13824 #ifdef __cplusplus
13825 extern "C"
13826 #endif
13827 char shl_load ();
13829 main ()
13831 return shl_load ();
13833 return 0;
13835 _ACEOF
13836 rm -f conftest.$ac_objext conftest$ac_exeext
13837 if { (ac_try="$ac_link"
13838 case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13841 esac
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_link") 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && {
13850 test -z "$ac_c_werror_flag" ||
13851 test ! -s conftest.err
13852 } && test -s conftest$ac_exeext &&
13853 $as_test_x conftest$ac_exeext; then
13854 ac_cv_lib_dld_shl_load=yes
13855 else
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 ac_cv_lib_dld_shl_load=no
13862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13863 conftest$ac_exeext conftest.$ac_ext
13864 LIBS=$ac_check_lib_save_LIBS
13866 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13867 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13868 if test $ac_cv_lib_dld_shl_load = yes; then
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_LIBDLD 1
13871 _ACEOF
13873 LIBS="-ldld $LIBS"
13876 # Dynamic linking for HP-UX
13878 # only check for sem_init if thread support is requested
13879 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13880 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13881 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13882 if test "${ac_cv_search_sem_init+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885 ac_func_search_save_LIBS=$LIBS
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h. */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13893 /* Override any GCC internal prototype to avoid an error.
13894 Use char because int might match the return type of a GCC
13895 builtin and then its argument prototype would still apply. */
13896 #ifdef __cplusplus
13897 extern "C"
13898 #endif
13899 char sem_init ();
13901 main ()
13903 return sem_init ();
13905 return 0;
13907 _ACEOF
13908 for ac_lib in '' pthread rt posix4; do
13909 if test -z "$ac_lib"; then
13910 ac_res="none required"
13911 else
13912 ac_res=-l$ac_lib
13913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13915 rm -f conftest.$ac_objext conftest$ac_exeext
13916 if { (ac_try="$ac_link"
13917 case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13920 esac
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_link") 2>conftest.er1
13923 ac_status=$?
13924 grep -v '^ *+' conftest.er1 >conftest.err
13925 rm -f conftest.er1
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest$ac_exeext &&
13932 $as_test_x conftest$ac_exeext; then
13933 ac_cv_search_sem_init=$ac_res
13934 else
13935 echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13942 conftest$ac_exeext
13943 if test "${ac_cv_search_sem_init+set}" = set; then
13944 break
13946 done
13947 if test "${ac_cv_search_sem_init+set}" = set; then
13949 else
13950 ac_cv_search_sem_init=no
13952 rm conftest.$ac_ext
13953 LIBS=$ac_func_search_save_LIBS
13955 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13956 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13957 ac_res=$ac_cv_search_sem_init
13958 if test "$ac_res" != no; then
13959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13962 # 'Real Time' functions on Solaris
13963 # posix4 on Solaris 2.6
13964 # pthread (first!) on Linux
13967 # check if we need libintl for locale functions
13968 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13969 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13970 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973 ac_check_lib_save_LIBS=$LIBS
13974 LIBS="-lintl $LIBS"
13975 cat >conftest.$ac_ext <<_ACEOF
13976 /* confdefs.h. */
13977 _ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h. */
13982 /* Override any GCC internal prototype to avoid an error.
13983 Use char because int might match the return type of a GCC
13984 builtin and then its argument prototype would still apply. */
13985 #ifdef __cplusplus
13986 extern "C"
13987 #endif
13988 char textdomain ();
13990 main ()
13992 return textdomain ();
13994 return 0;
13996 _ACEOF
13997 rm -f conftest.$ac_objext conftest$ac_exeext
13998 if { (ac_try="$ac_link"
13999 case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002 esac
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_link") 2>conftest.er1
14005 ac_status=$?
14006 grep -v '^ *+' conftest.er1 >conftest.err
14007 rm -f conftest.er1
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } && {
14011 test -z "$ac_c_werror_flag" ||
14012 test ! -s conftest.err
14013 } && test -s conftest$ac_exeext &&
14014 $as_test_x conftest$ac_exeext; then
14015 ac_cv_lib_intl_textdomain=yes
14016 else
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 ac_cv_lib_intl_textdomain=no
14023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14024 conftest$ac_exeext conftest.$ac_ext
14025 LIBS=$ac_check_lib_save_LIBS
14027 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14028 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
14029 if test $ac_cv_lib_intl_textdomain = yes; then
14031 cat >>confdefs.h <<\_ACEOF
14032 #define WITH_LIBINTL 1
14033 _ACEOF
14035 LIBS="-lintl $LIBS"
14039 # checks for system dependent C++ extensions support
14040 case "$ac_sys_system" in
14041 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14042 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14043 cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h. */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 #include "/usr/lpp/xlC/include/load.h"
14051 main ()
14053 loadAndInit("", 0, "")
14055 return 0;
14057 _ACEOF
14058 rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (ac_try="$ac_link"
14060 case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_link") 2>conftest.er1
14066 ac_status=$?
14067 grep -v '^ *+' conftest.er1 >conftest.err
14068 rm -f conftest.er1
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } && {
14072 test -z "$ac_c_werror_flag" ||
14073 test ! -s conftest.err
14074 } && test -s conftest$ac_exeext &&
14075 $as_test_x conftest$ac_exeext; then
14077 cat >>confdefs.h <<\_ACEOF
14078 #define AIX_GENUINE_CPLUSPLUS 1
14079 _ACEOF
14081 { echo "$as_me:$LINENO: result: yes" >&5
14082 echo "${ECHO_T}yes" >&6; }
14083 else
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14087 { echo "$as_me:$LINENO: result: no" >&5
14088 echo "${ECHO_T}no" >&6; }
14091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14092 conftest$ac_exeext conftest.$ac_ext;;
14093 *) ;;
14094 esac
14096 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14097 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14098 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14099 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102 ac_check_lib_save_LIBS=$LIBS
14103 LIBS="-lnsl $LIBS"
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h. */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14111 /* Override any GCC internal prototype to avoid an error.
14112 Use char because int might match the return type of a GCC
14113 builtin and then its argument prototype would still apply. */
14114 #ifdef __cplusplus
14115 extern "C"
14116 #endif
14117 char t_open ();
14119 main ()
14121 return t_open ();
14123 return 0;
14125 _ACEOF
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (ac_try="$ac_link"
14128 case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131 esac
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_link") 2>conftest.er1
14134 ac_status=$?
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } && {
14140 test -z "$ac_c_werror_flag" ||
14141 test ! -s conftest.err
14142 } && test -s conftest$ac_exeext &&
14143 $as_test_x conftest$ac_exeext; then
14144 ac_cv_lib_nsl_t_open=yes
14145 else
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14149 ac_cv_lib_nsl_t_open=no
14152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14153 conftest$ac_exeext conftest.$ac_ext
14154 LIBS=$ac_check_lib_save_LIBS
14156 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14157 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14158 if test $ac_cv_lib_nsl_t_open = yes; then
14159 LIBS="-lnsl $LIBS"
14161 # SVR4
14162 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14163 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14164 if test "${ac_cv_lib_socket_socket+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167 ac_check_lib_save_LIBS=$LIBS
14168 LIBS="-lsocket $LIBS $LIBS"
14169 cat >conftest.$ac_ext <<_ACEOF
14170 /* confdefs.h. */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14176 /* Override any GCC internal prototype to avoid an error.
14177 Use char because int might match the return type of a GCC
14178 builtin and then its argument prototype would still apply. */
14179 #ifdef __cplusplus
14180 extern "C"
14181 #endif
14182 char socket ();
14184 main ()
14186 return socket ();
14188 return 0;
14190 _ACEOF
14191 rm -f conftest.$ac_objext conftest$ac_exeext
14192 if { (ac_try="$ac_link"
14193 case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196 esac
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_link") 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } && {
14205 test -z "$ac_c_werror_flag" ||
14206 test ! -s conftest.err
14207 } && test -s conftest$ac_exeext &&
14208 $as_test_x conftest$ac_exeext; then
14209 ac_cv_lib_socket_socket=yes
14210 else
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 ac_cv_lib_socket_socket=no
14217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14218 conftest$ac_exeext conftest.$ac_ext
14219 LIBS=$ac_check_lib_save_LIBS
14221 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14222 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14223 if test $ac_cv_lib_socket_socket = yes; then
14224 LIBS="-lsocket $LIBS"
14226 # SVR4 sockets
14228 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14229 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14231 # Check whether --with-libs was given.
14232 if test "${with_libs+set}" = set; then
14233 withval=$with_libs;
14234 { echo "$as_me:$LINENO: result: $withval" >&5
14235 echo "${ECHO_T}$withval" >&6; }
14236 LIBS="$withval $LIBS"
14238 else
14239 { echo "$as_me:$LINENO: result: no" >&5
14240 echo "${ECHO_T}no" >&6; }
14244 # Check for use of the system libffi library
14245 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14246 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14248 # Check whether --with-system_ffi was given.
14249 if test "${with_system_ffi+set}" = set; then
14250 withval=$with_system_ffi;
14254 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14255 echo "${ECHO_T}$with_system_ffi" >&6; }
14257 # Check for --with-dbmliborder
14258 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14259 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14261 # Check whether --with-dbmliborder was given.
14262 if test "${with_dbmliborder+set}" = set; then
14263 withval=$with_dbmliborder;
14264 if test x$with_dbmliborder = xyes
14265 then
14266 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14267 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14268 { (exit 1); exit 1; }; }
14269 else
14270 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14271 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14272 then
14273 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14274 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14275 { (exit 1); exit 1; }; }
14277 done
14281 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14282 echo "${ECHO_T}$with_dbmliborder" >&6; }
14284 # Determine if signalmodule should be used.
14287 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14288 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14290 # Check whether --with-signal-module was given.
14291 if test "${with_signal_module+set}" = set; then
14292 withval=$with_signal_module;
14296 if test -z "$with_signal_module"
14297 then with_signal_module="yes"
14299 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14300 echo "${ECHO_T}$with_signal_module" >&6; }
14302 if test "${with_signal_module}" = "yes"; then
14303 USE_SIGNAL_MODULE=""
14304 SIGNAL_OBJS=""
14305 else
14306 USE_SIGNAL_MODULE="#"
14307 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14310 # This is used to generate Setup.config
14312 USE_THREAD_MODULE=""
14314 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14315 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14318 # Check whether --with-dec-threads was given.
14319 if test "${with_dec_threads+set}" = set; then
14320 withval=$with_dec_threads;
14321 { echo "$as_me:$LINENO: result: $withval" >&5
14322 echo "${ECHO_T}$withval" >&6; }
14323 LDLAST=-threads
14324 if test "${with_thread+set}" != set; then
14325 with_thread="$withval";
14327 else
14328 { echo "$as_me:$LINENO: result: no" >&5
14329 echo "${ECHO_T}no" >&6; }
14333 # Templates for things AC_DEFINEd more than once.
14334 # For a single AC_DEFINE, no template is needed.
14342 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14343 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14345 # Check whether --with-threads was given.
14346 if test "${with_threads+set}" = set; then
14347 withval=$with_threads;
14351 # --with-thread is deprecated, but check for it anyway
14353 # Check whether --with-thread was given.
14354 if test "${with_thread+set}" = set; then
14355 withval=$with_thread; with_threads=$with_thread
14359 if test -z "$with_threads"
14360 then with_threads="yes"
14362 { echo "$as_me:$LINENO: result: $with_threads" >&5
14363 echo "${ECHO_T}$with_threads" >&6; }
14366 if test "$with_threads" = "no"
14367 then
14368 USE_THREAD_MODULE="#"
14369 elif test "$ac_cv_pthread_is_default" = yes
14370 then
14371 cat >>confdefs.h <<\_ACEOF
14372 #define WITH_THREAD 1
14373 _ACEOF
14375 # Defining _REENTRANT on system with POSIX threads should not hurt.
14376 cat >>confdefs.h <<\_ACEOF
14377 #define _REENTRANT 1
14378 _ACEOF
14380 posix_threads=yes
14381 THREADOBJ="Python/thread.o"
14382 elif test "$ac_cv_kpthread" = "yes"
14383 then
14384 CC="$CC -Kpthread"
14385 if test "$ac_cv_cxx_thread" = "yes"; then
14386 CXX="$CXX -Kpthread"
14388 cat >>confdefs.h <<\_ACEOF
14389 #define WITH_THREAD 1
14390 _ACEOF
14392 posix_threads=yes
14393 THREADOBJ="Python/thread.o"
14394 elif test "$ac_cv_kthread" = "yes"
14395 then
14396 CC="$CC -Kthread"
14397 if test "$ac_cv_cxx_thread" = "yes"; then
14398 CXX="$CXX -Kthread"
14400 cat >>confdefs.h <<\_ACEOF
14401 #define WITH_THREAD 1
14402 _ACEOF
14404 posix_threads=yes
14405 THREADOBJ="Python/thread.o"
14406 elif test "$ac_cv_pthread" = "yes"
14407 then
14408 CC="$CC -pthread"
14409 if test "$ac_cv_cxx_thread" = "yes"; then
14410 CXX="$CXX -pthread"
14412 cat >>confdefs.h <<\_ACEOF
14413 #define WITH_THREAD 1
14414 _ACEOF
14416 posix_threads=yes
14417 THREADOBJ="Python/thread.o"
14418 else
14419 if test ! -z "$with_threads" -a -d "$with_threads"
14420 then LDFLAGS="$LDFLAGS -L$with_threads"
14422 if test ! -z "$withval" -a -d "$withval"
14423 then LDFLAGS="$LDFLAGS -L$withval"
14426 # According to the POSIX spec, a pthreads implementation must
14427 # define _POSIX_THREADS in unistd.h. Some apparently don't
14428 # (e.g. gnu pth with pthread emulation)
14429 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14430 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14431 cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h. */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14438 #include <unistd.h>
14439 #ifdef _POSIX_THREADS
14441 #endif
14443 _ACEOF
14444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14445 $EGREP "yes" >/dev/null 2>&1; then
14446 unistd_defines_pthreads=yes
14447 else
14448 unistd_defines_pthreads=no
14450 rm -f conftest*
14452 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14453 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14455 cat >>confdefs.h <<\_ACEOF
14456 #define _REENTRANT 1
14457 _ACEOF
14459 if test "${ac_cv_header_cthreads_h+set}" = set; then
14460 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14461 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14462 if test "${ac_cv_header_cthreads_h+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14466 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14467 else
14468 # Is the header compilable?
14469 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14470 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14471 cat >conftest.$ac_ext <<_ACEOF
14472 /* confdefs.h. */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477 $ac_includes_default
14478 #include <cthreads.h>
14479 _ACEOF
14480 rm -f conftest.$ac_objext
14481 if { (ac_try="$ac_compile"
14482 case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485 esac
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_compile") 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } && {
14494 test -z "$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 } && test -s conftest.$ac_objext; then
14497 ac_header_compiler=yes
14498 else
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_header_compiler=no
14505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14507 echo "${ECHO_T}$ac_header_compiler" >&6; }
14509 # Is the header present?
14510 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14511 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14512 cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h. */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518 #include <cthreads.h>
14519 _ACEOF
14520 if { (ac_try="$ac_cpp conftest.$ac_ext"
14521 case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524 esac
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } >/dev/null && {
14533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14534 test ! -s conftest.err
14535 }; then
14536 ac_header_preproc=yes
14537 else
14538 echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14541 ac_header_preproc=no
14544 rm -f conftest.err conftest.$ac_ext
14545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14546 echo "${ECHO_T}$ac_header_preproc" >&6; }
14548 # So? What about this header?
14549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14550 yes:no: )
14551 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14552 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14554 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14555 ac_header_preproc=yes
14557 no:yes:* )
14558 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14559 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14561 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14563 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14565 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14567 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14569 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14570 ( cat <<\_ASBOX
14571 ## -------------------------------------- ##
14572 ## Report this to http://bugs.python.org/ ##
14573 ## -------------------------------------- ##
14574 _ASBOX
14575 ) | sed "s/^/$as_me: WARNING: /" >&2
14577 esac
14578 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14579 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14580 if test "${ac_cv_header_cthreads_h+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583 ac_cv_header_cthreads_h=$ac_header_preproc
14585 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14586 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14589 if test $ac_cv_header_cthreads_h = yes; then
14590 cat >>confdefs.h <<\_ACEOF
14591 #define WITH_THREAD 1
14592 _ACEOF
14594 cat >>confdefs.h <<\_ACEOF
14595 #define C_THREADS 1
14596 _ACEOF
14599 cat >>confdefs.h <<\_ACEOF
14600 #define HURD_C_THREADS 1
14601 _ACEOF
14603 LIBS="$LIBS -lthreads"
14604 THREADOBJ="Python/thread.o"
14605 else
14607 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14608 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14609 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14610 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14614 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14615 else
14616 # Is the header compilable?
14617 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14618 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14619 cat >conftest.$ac_ext <<_ACEOF
14620 /* confdefs.h. */
14621 _ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h. */
14625 $ac_includes_default
14626 #include <mach/cthreads.h>
14627 _ACEOF
14628 rm -f conftest.$ac_objext
14629 if { (ac_try="$ac_compile"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633 esac
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_compile") 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest.$ac_objext; then
14645 ac_header_compiler=yes
14646 else
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ac_header_compiler=no
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14655 echo "${ECHO_T}$ac_header_compiler" >&6; }
14657 # Is the header present?
14658 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14659 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14660 cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h. */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 #include <mach/cthreads.h>
14667 _ACEOF
14668 if { (ac_try="$ac_cpp conftest.$ac_ext"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } >/dev/null && {
14681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 }; then
14684 ac_header_preproc=yes
14685 else
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_header_preproc=no
14692 rm -f conftest.err conftest.$ac_ext
14693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14694 echo "${ECHO_T}$ac_header_preproc" >&6; }
14696 # So? What about this header?
14697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14698 yes:no: )
14699 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14700 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14702 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14703 ac_header_preproc=yes
14705 no:yes:* )
14706 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14707 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14709 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14711 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14713 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14715 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14717 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14718 ( cat <<\_ASBOX
14719 ## -------------------------------------- ##
14720 ## Report this to http://bugs.python.org/ ##
14721 ## -------------------------------------- ##
14722 _ASBOX
14723 ) | sed "s/^/$as_me: WARNING: /" >&2
14725 esac
14726 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14727 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14728 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14733 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14734 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14737 if test $ac_cv_header_mach_cthreads_h = yes; then
14738 cat >>confdefs.h <<\_ACEOF
14739 #define WITH_THREAD 1
14740 _ACEOF
14742 cat >>confdefs.h <<\_ACEOF
14743 #define C_THREADS 1
14744 _ACEOF
14747 cat >>confdefs.h <<\_ACEOF
14748 #define MACH_C_THREADS 1
14749 _ACEOF
14751 THREADOBJ="Python/thread.o"
14752 else
14754 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14755 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14757 # Check whether --with-pth was given.
14758 if test "${with_pth+set}" = set; then
14759 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14760 echo "${ECHO_T}$withval" >&6; }
14761 cat >>confdefs.h <<\_ACEOF
14762 #define WITH_THREAD 1
14763 _ACEOF
14766 cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_PTH 1
14768 _ACEOF
14770 LIBS="-lpth $LIBS"
14771 THREADOBJ="Python/thread.o"
14772 else
14773 { echo "$as_me:$LINENO: result: no" >&5
14774 echo "${ECHO_T}no" >&6; }
14776 # Just looking for pthread_create in libpthread is not enough:
14777 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14778 # So we really have to include pthread.h, and then link.
14779 _libs=$LIBS
14780 LIBS="$LIBS -lpthread"
14781 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14782 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <pthread.h>
14791 void * start_routine (void *arg) { exit (0); }
14793 main ()
14796 pthread_create (NULL, NULL, start_routine, NULL)
14798 return 0;
14800 _ACEOF
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (ac_try="$ac_link"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest$ac_exeext &&
14818 $as_test_x conftest$ac_exeext; then
14820 { echo "$as_me:$LINENO: result: yes" >&5
14821 echo "${ECHO_T}yes" >&6; }
14822 cat >>confdefs.h <<\_ACEOF
14823 #define WITH_THREAD 1
14824 _ACEOF
14826 posix_threads=yes
14827 THREADOBJ="Python/thread.o"
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14833 LIBS=$_libs
14834 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14835 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14836 if test "${ac_cv_func_pthread_detach+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 else
14839 cat >conftest.$ac_ext <<_ACEOF
14840 /* confdefs.h. */
14841 _ACEOF
14842 cat confdefs.h >>conftest.$ac_ext
14843 cat >>conftest.$ac_ext <<_ACEOF
14844 /* end confdefs.h. */
14845 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14847 #define pthread_detach innocuous_pthread_detach
14849 /* System header to define __stub macros and hopefully few prototypes,
14850 which can conflict with char pthread_detach (); below.
14851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14852 <limits.h> exists even on freestanding compilers. */
14854 #ifdef __STDC__
14855 # include <limits.h>
14856 #else
14857 # include <assert.h>
14858 #endif
14860 #undef pthread_detach
14862 /* Override any GCC internal prototype to avoid an error.
14863 Use char because int might match the return type of a GCC
14864 builtin and then its argument prototype would still apply. */
14865 #ifdef __cplusplus
14866 extern "C"
14867 #endif
14868 char pthread_detach ();
14869 /* The GNU C library defines this for functions which it implements
14870 to always fail with ENOSYS. Some functions are actually named
14871 something starting with __ and the normal name is an alias. */
14872 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14873 choke me
14874 #endif
14877 main ()
14879 return pthread_detach ();
14881 return 0;
14883 _ACEOF
14884 rm -f conftest.$ac_objext conftest$ac_exeext
14885 if { (ac_try="$ac_link"
14886 case "(($ac_try" in
14887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888 *) ac_try_echo=$ac_try;;
14889 esac
14890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891 (eval "$ac_link") 2>conftest.er1
14892 ac_status=$?
14893 grep -v '^ *+' conftest.er1 >conftest.err
14894 rm -f conftest.er1
14895 cat conftest.err >&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } && {
14898 test -z "$ac_c_werror_flag" ||
14899 test ! -s conftest.err
14900 } && test -s conftest$ac_exeext &&
14901 $as_test_x conftest$ac_exeext; then
14902 ac_cv_func_pthread_detach=yes
14903 else
14904 echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.$ac_ext >&5
14907 ac_cv_func_pthread_detach=no
14910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14911 conftest$ac_exeext conftest.$ac_ext
14913 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14914 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14915 if test $ac_cv_func_pthread_detach = yes; then
14916 cat >>confdefs.h <<\_ACEOF
14917 #define WITH_THREAD 1
14918 _ACEOF
14920 posix_threads=yes
14921 THREADOBJ="Python/thread.o"
14922 else
14924 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14925 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14926 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14927 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14931 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14932 else
14933 # Is the header compilable?
14934 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14935 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14936 cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h. */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 $ac_includes_default
14943 #include <atheos/threads.h>
14944 _ACEOF
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950 esac
14951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_compile") 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } && {
14959 test -z "$ac_c_werror_flag" ||
14960 test ! -s conftest.err
14961 } && test -s conftest.$ac_objext; then
14962 ac_header_compiler=yes
14963 else
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14967 ac_header_compiler=no
14970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14972 echo "${ECHO_T}$ac_header_compiler" >&6; }
14974 # Is the header present?
14975 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14976 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h. */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 #include <atheos/threads.h>
14984 _ACEOF
14985 if { (ac_try="$ac_cpp conftest.$ac_ext"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } >/dev/null && {
14998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 }; then
15001 ac_header_preproc=yes
15002 else
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ac_header_preproc=no
15009 rm -f conftest.err conftest.$ac_ext
15010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15011 echo "${ECHO_T}$ac_header_preproc" >&6; }
15013 # So? What about this header?
15014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15015 yes:no: )
15016 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15017 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15019 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15020 ac_header_preproc=yes
15022 no:yes:* )
15023 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15024 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15026 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15028 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15030 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15032 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15034 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15035 ( cat <<\_ASBOX
15036 ## -------------------------------------- ##
15037 ## Report this to http://bugs.python.org/ ##
15038 ## -------------------------------------- ##
15039 _ASBOX
15040 ) | sed "s/^/$as_me: WARNING: /" >&2
15042 esac
15043 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15044 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15045 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048 ac_cv_header_atheos_threads_h=$ac_header_preproc
15050 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15051 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15054 if test $ac_cv_header_atheos_threads_h = yes; then
15055 cat >>confdefs.h <<\_ACEOF
15056 #define WITH_THREAD 1
15057 _ACEOF
15060 cat >>confdefs.h <<\_ACEOF
15061 #define ATHEOS_THREADS 1
15062 _ACEOF
15064 THREADOBJ="Python/thread.o"
15065 else
15067 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15068 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15069 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072 ac_check_lib_save_LIBS=$LIBS
15073 LIBS="-lpthreads $LIBS"
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15081 /* Override any GCC internal prototype to avoid an error.
15082 Use char because int might match the return type of a GCC
15083 builtin and then its argument prototype would still apply. */
15084 #ifdef __cplusplus
15085 extern "C"
15086 #endif
15087 char pthread_create ();
15089 main ()
15091 return pthread_create ();
15093 return 0;
15095 _ACEOF
15096 rm -f conftest.$ac_objext conftest$ac_exeext
15097 if { (ac_try="$ac_link"
15098 case "(($ac_try" in
15099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100 *) ac_try_echo=$ac_try;;
15101 esac
15102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103 (eval "$ac_link") 2>conftest.er1
15104 ac_status=$?
15105 grep -v '^ *+' conftest.er1 >conftest.err
15106 rm -f conftest.er1
15107 cat conftest.err >&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } && {
15110 test -z "$ac_c_werror_flag" ||
15111 test ! -s conftest.err
15112 } && test -s conftest$ac_exeext &&
15113 $as_test_x conftest$ac_exeext; then
15114 ac_cv_lib_pthreads_pthread_create=yes
15115 else
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15119 ac_cv_lib_pthreads_pthread_create=no
15122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15123 conftest$ac_exeext conftest.$ac_ext
15124 LIBS=$ac_check_lib_save_LIBS
15126 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15127 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15128 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15129 cat >>confdefs.h <<\_ACEOF
15130 #define WITH_THREAD 1
15131 _ACEOF
15133 posix_threads=yes
15134 LIBS="$LIBS -lpthreads"
15135 THREADOBJ="Python/thread.o"
15136 else
15138 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15139 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15140 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143 ac_check_lib_save_LIBS=$LIBS
15144 LIBS="-lc_r $LIBS"
15145 cat >conftest.$ac_ext <<_ACEOF
15146 /* confdefs.h. */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15152 /* Override any GCC internal prototype to avoid an error.
15153 Use char because int might match the return type of a GCC
15154 builtin and then its argument prototype would still apply. */
15155 #ifdef __cplusplus
15156 extern "C"
15157 #endif
15158 char pthread_create ();
15160 main ()
15162 return pthread_create ();
15164 return 0;
15166 _ACEOF
15167 rm -f conftest.$ac_objext conftest$ac_exeext
15168 if { (ac_try="$ac_link"
15169 case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_link") 2>conftest.er1
15175 ac_status=$?
15176 grep -v '^ *+' conftest.er1 >conftest.err
15177 rm -f conftest.er1
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } && {
15181 test -z "$ac_c_werror_flag" ||
15182 test ! -s conftest.err
15183 } && test -s conftest$ac_exeext &&
15184 $as_test_x conftest$ac_exeext; then
15185 ac_cv_lib_c_r_pthread_create=yes
15186 else
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 ac_cv_lib_c_r_pthread_create=no
15193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15194 conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS
15197 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15198 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15199 if test $ac_cv_lib_c_r_pthread_create = yes; then
15200 cat >>confdefs.h <<\_ACEOF
15201 #define WITH_THREAD 1
15202 _ACEOF
15204 posix_threads=yes
15205 LIBS="$LIBS -lc_r"
15206 THREADOBJ="Python/thread.o"
15207 else
15209 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15210 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15211 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214 ac_check_lib_save_LIBS=$LIBS
15215 LIBS="-lpthread $LIBS"
15216 cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h. */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15223 /* Override any GCC internal prototype to avoid an error.
15224 Use char because int might match the return type of a GCC
15225 builtin and then its argument prototype would still apply. */
15226 #ifdef __cplusplus
15227 extern "C"
15228 #endif
15229 char __pthread_create_system ();
15231 main ()
15233 return __pthread_create_system ();
15235 return 0;
15237 _ACEOF
15238 rm -f conftest.$ac_objext conftest$ac_exeext
15239 if { (ac_try="$ac_link"
15240 case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_link") 2>conftest.er1
15246 ac_status=$?
15247 grep -v '^ *+' conftest.er1 >conftest.err
15248 rm -f conftest.er1
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } && {
15252 test -z "$ac_c_werror_flag" ||
15253 test ! -s conftest.err
15254 } && test -s conftest$ac_exeext &&
15255 $as_test_x conftest$ac_exeext; then
15256 ac_cv_lib_pthread___pthread_create_system=yes
15257 else
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15261 ac_cv_lib_pthread___pthread_create_system=no
15264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15265 conftest$ac_exeext conftest.$ac_ext
15266 LIBS=$ac_check_lib_save_LIBS
15268 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15269 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15270 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15271 cat >>confdefs.h <<\_ACEOF
15272 #define WITH_THREAD 1
15273 _ACEOF
15275 posix_threads=yes
15276 LIBS="$LIBS -lpthread"
15277 THREADOBJ="Python/thread.o"
15278 else
15280 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15281 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15282 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285 ac_check_lib_save_LIBS=$LIBS
15286 LIBS="-lcma $LIBS"
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15294 /* Override any GCC internal prototype to avoid an error.
15295 Use char because int might match the return type of a GCC
15296 builtin and then its argument prototype would still apply. */
15297 #ifdef __cplusplus
15298 extern "C"
15299 #endif
15300 char pthread_create ();
15302 main ()
15304 return pthread_create ();
15306 return 0;
15308 _ACEOF
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (ac_try="$ac_link"
15311 case "(($ac_try" in
15312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313 *) ac_try_echo=$ac_try;;
15314 esac
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316 (eval "$ac_link") 2>conftest.er1
15317 ac_status=$?
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_c_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest$ac_exeext &&
15326 $as_test_x conftest$ac_exeext; then
15327 ac_cv_lib_cma_pthread_create=yes
15328 else
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_cv_lib_cma_pthread_create=no
15335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15336 conftest$ac_exeext conftest.$ac_ext
15337 LIBS=$ac_check_lib_save_LIBS
15339 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15340 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15341 if test $ac_cv_lib_cma_pthread_create = yes; then
15342 cat >>confdefs.h <<\_ACEOF
15343 #define WITH_THREAD 1
15344 _ACEOF
15346 posix_threads=yes
15347 LIBS="$LIBS -lcma"
15348 THREADOBJ="Python/thread.o"
15349 else
15351 USE_THREAD_MODULE="#"
15368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15369 conftest$ac_exeext conftest.$ac_ext
15379 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15380 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15381 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384 ac_check_lib_save_LIBS=$LIBS
15385 LIBS="-lmpc $LIBS"
15386 cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h. */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15393 /* Override any GCC internal prototype to avoid an error.
15394 Use char because int might match the return type of a GCC
15395 builtin and then its argument prototype would still apply. */
15396 #ifdef __cplusplus
15397 extern "C"
15398 #endif
15399 char usconfig ();
15401 main ()
15403 return usconfig ();
15405 return 0;
15407 _ACEOF
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (ac_try="$ac_link"
15410 case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_link") 2>conftest.er1
15416 ac_status=$?
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } && {
15422 test -z "$ac_c_werror_flag" ||
15423 test ! -s conftest.err
15424 } && test -s conftest$ac_exeext &&
15425 $as_test_x conftest$ac_exeext; then
15426 ac_cv_lib_mpc_usconfig=yes
15427 else
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ac_cv_lib_mpc_usconfig=no
15434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15435 conftest$ac_exeext conftest.$ac_ext
15436 LIBS=$ac_check_lib_save_LIBS
15438 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15439 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15440 if test $ac_cv_lib_mpc_usconfig = yes; then
15441 cat >>confdefs.h <<\_ACEOF
15442 #define WITH_THREAD 1
15443 _ACEOF
15445 LIBS="$LIBS -lmpc"
15446 THREADOBJ="Python/thread.o"
15447 USE_THREAD_MODULE=""
15451 if test "$posix_threads" != "yes"; then
15452 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15453 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15454 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 else
15457 ac_check_lib_save_LIBS=$LIBS
15458 LIBS="-lthread $LIBS"
15459 cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h. */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15466 /* Override any GCC internal prototype to avoid an error.
15467 Use char because int might match the return type of a GCC
15468 builtin and then its argument prototype would still apply. */
15469 #ifdef __cplusplus
15470 extern "C"
15471 #endif
15472 char thr_create ();
15474 main ()
15476 return thr_create ();
15478 return 0;
15480 _ACEOF
15481 rm -f conftest.$ac_objext conftest$ac_exeext
15482 if { (ac_try="$ac_link"
15483 case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488 (eval "$ac_link") 2>conftest.er1
15489 ac_status=$?
15490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } && {
15495 test -z "$ac_c_werror_flag" ||
15496 test ! -s conftest.err
15497 } && test -s conftest$ac_exeext &&
15498 $as_test_x conftest$ac_exeext; then
15499 ac_cv_lib_thread_thr_create=yes
15500 else
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 ac_cv_lib_thread_thr_create=no
15507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15508 conftest$ac_exeext conftest.$ac_ext
15509 LIBS=$ac_check_lib_save_LIBS
15511 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15512 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15513 if test $ac_cv_lib_thread_thr_create = yes; then
15514 cat >>confdefs.h <<\_ACEOF
15515 #define WITH_THREAD 1
15516 _ACEOF
15518 LIBS="$LIBS -lthread"
15519 THREADOBJ="Python/thread.o"
15520 USE_THREAD_MODULE=""
15525 if test "$USE_THREAD_MODULE" != "#"
15526 then
15527 # If the above checks didn't disable threads, (at least) OSF1
15528 # needs this '-threads' argument during linking.
15529 case $ac_sys_system in
15530 OSF1) LDLAST=-threads;;
15531 esac
15535 if test "$posix_threads" = "yes"; then
15536 if test "$unistd_defines_pthreads" = "no"; then
15538 cat >>confdefs.h <<\_ACEOF
15539 #define _POSIX_THREADS 1
15540 _ACEOF
15544 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15545 case $ac_sys_system/$ac_sys_release in
15546 SunOS/5.6)
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_PTHREAD_DESTRUCTOR 1
15549 _ACEOF
15552 SunOS/5.8)
15553 cat >>confdefs.h <<\_ACEOF
15554 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15555 _ACEOF
15558 AIX/5)
15559 cat >>confdefs.h <<\_ACEOF
15560 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15561 _ACEOF
15564 esac
15566 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15567 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15568 if test "${ac_cv_pthread_system_supported+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571 if test "$cross_compiling" = yes; then
15572 ac_cv_pthread_system_supported=no
15573 else
15574 cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h. */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 #include <pthread.h>
15581 void *foo(void *parm) {
15582 return NULL;
15584 main() {
15585 pthread_attr_t attr;
15586 pthread_t id;
15587 if (pthread_attr_init(&attr)) exit(-1);
15588 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15589 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15590 exit(0);
15592 _ACEOF
15593 rm -f conftest$ac_exeext
15594 if { (ac_try="$ac_link"
15595 case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15598 esac
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_link") 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15604 { (case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15607 esac
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_try") 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 ac_cv_pthread_system_supported=yes
15614 else
15615 echo "$as_me: program exited with status $ac_status" >&5
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ( exit $ac_status )
15620 ac_cv_pthread_system_supported=no
15622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15629 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15630 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15631 if test "$ac_cv_pthread_system_supported" = "yes"; then
15633 cat >>confdefs.h <<\_ACEOF
15634 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15635 _ACEOF
15639 for ac_func in pthread_sigmask
15641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15655 #define $ac_func innocuous_$ac_func
15657 /* System header to define __stub macros and hopefully few prototypes,
15658 which can conflict with char $ac_func (); below.
15659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15660 <limits.h> exists even on freestanding compilers. */
15662 #ifdef __STDC__
15663 # include <limits.h>
15664 #else
15665 # include <assert.h>
15666 #endif
15668 #undef $ac_func
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15673 #ifdef __cplusplus
15674 extern "C"
15675 #endif
15676 char $ac_func ();
15677 /* The GNU C library defines this for functions which it implements
15678 to always fail with ENOSYS. Some functions are actually named
15679 something starting with __ and the normal name is an alias. */
15680 #if defined __stub_$ac_func || defined __stub___$ac_func
15681 choke me
15682 #endif
15685 main ()
15687 return $ac_func ();
15689 return 0;
15691 _ACEOF
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (ac_try="$ac_link"
15694 case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_link") 2>conftest.er1
15700 ac_status=$?
15701 grep -v '^ *+' conftest.er1 >conftest.err
15702 rm -f conftest.er1
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } && {
15706 test -z "$ac_c_werror_flag" ||
15707 test ! -s conftest.err
15708 } && test -s conftest$ac_exeext &&
15709 $as_test_x conftest$ac_exeext; then
15710 eval "$as_ac_var=yes"
15711 else
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 eval "$as_ac_var=no"
15718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15719 conftest$ac_exeext conftest.$ac_ext
15721 ac_res=`eval echo '${'$as_ac_var'}'`
15722 { echo "$as_me:$LINENO: result: $ac_res" >&5
15723 echo "${ECHO_T}$ac_res" >&6; }
15724 if test `eval echo '${'$as_ac_var'}'` = yes; then
15725 cat >>confdefs.h <<_ACEOF
15726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15727 _ACEOF
15728 case $ac_sys_system in
15729 CYGWIN*)
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15733 _ACEOF
15736 esac
15738 done
15743 # Check for enable-ipv6
15746 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15747 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15748 # Check whether --enable-ipv6 was given.
15749 if test "${enable_ipv6+set}" = set; then
15750 enableval=$enable_ipv6; case "$enableval" in
15752 { echo "$as_me:$LINENO: result: no" >&5
15753 echo "${ECHO_T}no" >&6; }
15754 ipv6=no
15756 *) { echo "$as_me:$LINENO: result: yes" >&5
15757 echo "${ECHO_T}yes" >&6; }
15758 cat >>confdefs.h <<\_ACEOF
15759 #define ENABLE_IPV6 1
15760 _ACEOF
15762 ipv6=yes
15764 esac
15765 else
15767 if test "$cross_compiling" = yes; then
15768 { echo "$as_me:$LINENO: result: no" >&5
15769 echo "${ECHO_T}no" >&6; }
15770 ipv6=no
15772 else
15773 cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h. */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 /* AF_INET6 available check */
15780 #include <sys/types.h>
15781 #include <sys/socket.h>
15782 main()
15784 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15785 exit(1);
15786 else
15787 exit(0);
15790 _ACEOF
15791 rm -f conftest$ac_exeext
15792 if { (ac_try="$ac_link"
15793 case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15796 esac
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_link") 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15802 { (case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805 esac
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_try") 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 { echo "$as_me:$LINENO: result: yes" >&5
15812 echo "${ECHO_T}yes" >&6; }
15813 ipv6=yes
15814 else
15815 echo "$as_me: program exited with status $ac_status" >&5
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15819 ( exit $ac_status )
15820 { echo "$as_me:$LINENO: result: no" >&5
15821 echo "${ECHO_T}no" >&6; }
15822 ipv6=no
15824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15829 if test "$ipv6" = "yes"; then
15830 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15831 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15832 cat >conftest.$ac_ext <<_ACEOF
15833 /* confdefs.h. */
15834 _ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15838 #include <sys/types.h>
15839 #include <netinet/in.h>
15841 main ()
15843 struct sockaddr_in6 x;
15844 x.sin6_scope_id;
15846 return 0;
15848 _ACEOF
15849 rm -f conftest.$ac_objext
15850 if { (ac_try="$ac_compile"
15851 case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15854 esac
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_compile") 2>conftest.er1
15857 ac_status=$?
15858 grep -v '^ *+' conftest.er1 >conftest.err
15859 rm -f conftest.er1
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } && {
15863 test -z "$ac_c_werror_flag" ||
15864 test ! -s conftest.err
15865 } && test -s conftest.$ac_objext; then
15866 { echo "$as_me:$LINENO: result: yes" >&5
15867 echo "${ECHO_T}yes" >&6; }
15868 ipv6=yes
15869 else
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 { echo "$as_me:$LINENO: result: no" >&5
15874 echo "${ECHO_T}no" >&6; }
15875 ipv6=no
15878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15881 if test "$ipv6" = "yes"; then
15882 cat >>confdefs.h <<\_ACEOF
15883 #define ENABLE_IPV6 1
15884 _ACEOF
15891 ipv6type=unknown
15892 ipv6lib=none
15893 ipv6trylibc=no
15895 if test "$ipv6" = "yes"; then
15896 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15897 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15898 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15900 case $i in
15901 inria)
15902 cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15909 #include <netinet/in.h>
15910 #ifdef IPV6_INRIA_VERSION
15912 #endif
15913 _ACEOF
15914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15915 $EGREP "yes" >/dev/null 2>&1; then
15916 ipv6type=$i
15918 rm -f conftest*
15921 kame)
15922 cat >conftest.$ac_ext <<_ACEOF
15923 /* confdefs.h. */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15929 #include <netinet/in.h>
15930 #ifdef __KAME__
15932 #endif
15933 _ACEOF
15934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15935 $EGREP "yes" >/dev/null 2>&1; then
15936 ipv6type=$i;
15937 ipv6lib=inet6
15938 ipv6libdir=/usr/local/v6/lib
15939 ipv6trylibc=yes
15941 rm -f conftest*
15944 linux-glibc)
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. */
15952 #include <features.h>
15953 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15955 #endif
15956 _ACEOF
15957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15958 $EGREP "yes" >/dev/null 2>&1; then
15959 ipv6type=$i;
15960 ipv6trylibc=yes
15962 rm -f conftest*
15965 linux-inet6)
15966 if test -d /usr/inet6; then
15967 ipv6type=$i
15968 ipv6lib=inet6
15969 ipv6libdir=/usr/inet6/lib
15970 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15973 solaris)
15974 if test -f /etc/netconfig; then
15975 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15976 ipv6type=$i
15977 ipv6trylibc=yes
15981 toshiba)
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h. */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15989 #include <sys/param.h>
15990 #ifdef _TOSHIBA_INET6
15992 #endif
15993 _ACEOF
15994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15995 $EGREP "yes" >/dev/null 2>&1; then
15996 ipv6type=$i;
15997 ipv6lib=inet6;
15998 ipv6libdir=/usr/local/v6/lib
16000 rm -f conftest*
16003 v6d)
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h. */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16011 #include </usr/local/v6/include/sys/v6config.h>
16012 #ifdef __V6D__
16014 #endif
16015 _ACEOF
16016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16017 $EGREP "yes" >/dev/null 2>&1; then
16018 ipv6type=$i;
16019 ipv6lib=v6;
16020 ipv6libdir=/usr/local/v6/lib;
16021 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16023 rm -f conftest*
16026 zeta)
16027 cat >conftest.$ac_ext <<_ACEOF
16028 /* confdefs.h. */
16029 _ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h. */
16034 #include <sys/param.h>
16035 #ifdef _ZETA_MINAMI_INET6
16037 #endif
16038 _ACEOF
16039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16040 $EGREP "yes" >/dev/null 2>&1; then
16041 ipv6type=$i;
16042 ipv6lib=inet6;
16043 ipv6libdir=/usr/local/v6/lib
16045 rm -f conftest*
16048 esac
16049 if test "$ipv6type" != "unknown"; then
16050 break
16052 done
16053 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16054 echo "${ECHO_T}$ipv6type" >&6; }
16057 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16058 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16059 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16060 echo "using lib$ipv6lib"
16061 else
16062 if test $ipv6trylibc = "yes"; then
16063 echo "using libc"
16064 else
16065 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16066 echo "You need to fetch lib$ipv6lib.a from appropriate"
16067 echo 'ipv6 kit and compile beforehand.'
16068 exit 1
16073 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16074 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16075 cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h. */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 #include <Carbon/Carbon.h>
16083 main ()
16085 FSIORefNum fRef = 0
16087 return 0;
16089 _ACEOF
16090 rm -f conftest.$ac_objext
16091 if { (ac_try="$ac_compile"
16092 case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16095 esac
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_compile") 2>conftest.er1
16098 ac_status=$?
16099 grep -v '^ *+' conftest.er1 >conftest.err
16100 rm -f conftest.er1
16101 cat conftest.err >&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest.$ac_objext; then
16108 cat >>confdefs.h <<\_ACEOF
16109 #define HAVE_OSX105_SDK 1
16110 _ACEOF
16112 { echo "$as_me:$LINENO: result: yes" >&5
16113 echo "${ECHO_T}yes" >&6; }
16114 else
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16118 { echo "$as_me:$LINENO: result: no" >&5
16119 echo "${ECHO_T}no" >&6; }
16123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125 # Check for --with-doc-strings
16126 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16127 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16129 # Check whether --with-doc-strings was given.
16130 if test "${with_doc_strings+set}" = set; then
16131 withval=$with_doc_strings;
16135 if test -z "$with_doc_strings"
16136 then with_doc_strings="yes"
16138 if test "$with_doc_strings" != "no"
16139 then
16141 cat >>confdefs.h <<\_ACEOF
16142 #define WITH_DOC_STRINGS 1
16143 _ACEOF
16146 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16147 echo "${ECHO_T}$with_doc_strings" >&6; }
16149 # Check for Python-specific malloc support
16150 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16151 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16153 # Check whether --with-tsc was given.
16154 if test "${with_tsc+set}" = set; then
16155 withval=$with_tsc;
16156 if test "$withval" != no
16157 then
16159 cat >>confdefs.h <<\_ACEOF
16160 #define WITH_TSC 1
16161 _ACEOF
16163 { echo "$as_me:$LINENO: result: yes" >&5
16164 echo "${ECHO_T}yes" >&6; }
16165 else { echo "$as_me:$LINENO: result: no" >&5
16166 echo "${ECHO_T}no" >&6; }
16168 else
16169 { echo "$as_me:$LINENO: result: no" >&5
16170 echo "${ECHO_T}no" >&6; }
16174 # Check for Python-specific malloc support
16175 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16176 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16178 # Check whether --with-pymalloc was given.
16179 if test "${with_pymalloc+set}" = set; then
16180 withval=$with_pymalloc;
16184 if test -z "$with_pymalloc"
16185 then with_pymalloc="yes"
16187 if test "$with_pymalloc" != "no"
16188 then
16190 cat >>confdefs.h <<\_ACEOF
16191 #define WITH_PYMALLOC 1
16192 _ACEOF
16195 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16196 echo "${ECHO_T}$with_pymalloc" >&6; }
16198 # Check for --with-wctype-functions
16199 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16200 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16202 # Check whether --with-wctype-functions was given.
16203 if test "${with_wctype_functions+set}" = set; then
16204 withval=$with_wctype_functions;
16205 if test "$withval" != no
16206 then
16208 cat >>confdefs.h <<\_ACEOF
16209 #define WANT_WCTYPE_FUNCTIONS 1
16210 _ACEOF
16212 { echo "$as_me:$LINENO: result: yes" >&5
16213 echo "${ECHO_T}yes" >&6; }
16214 else { echo "$as_me:$LINENO: result: no" >&5
16215 echo "${ECHO_T}no" >&6; }
16217 else
16218 { echo "$as_me:$LINENO: result: no" >&5
16219 echo "${ECHO_T}no" >&6; }
16223 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16225 DLINCLDIR=.
16227 # the dlopen() function means we might want to use dynload_shlib.o. some
16228 # platforms, such as AIX, have dlopen(), but don't want to use it.
16230 for ac_func in dlopen
16232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 else
16238 cat >conftest.$ac_ext <<_ACEOF
16239 /* confdefs.h. */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16246 #define $ac_func innocuous_$ac_func
16248 /* System header to define __stub macros and hopefully few prototypes,
16249 which can conflict with char $ac_func (); below.
16250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16251 <limits.h> exists even on freestanding compilers. */
16253 #ifdef __STDC__
16254 # include <limits.h>
16255 #else
16256 # include <assert.h>
16257 #endif
16259 #undef $ac_func
16261 /* Override any GCC internal prototype to avoid an error.
16262 Use char because int might match the return type of a GCC
16263 builtin and then its argument prototype would still apply. */
16264 #ifdef __cplusplus
16265 extern "C"
16266 #endif
16267 char $ac_func ();
16268 /* The GNU C library defines this for functions which it implements
16269 to always fail with ENOSYS. Some functions are actually named
16270 something starting with __ and the normal name is an alias. */
16271 #if defined __stub_$ac_func || defined __stub___$ac_func
16272 choke me
16273 #endif
16276 main ()
16278 return $ac_func ();
16280 return 0;
16282 _ACEOF
16283 rm -f conftest.$ac_objext conftest$ac_exeext
16284 if { (ac_try="$ac_link"
16285 case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16288 esac
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_link") 2>conftest.er1
16291 ac_status=$?
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } && {
16297 test -z "$ac_c_werror_flag" ||
16298 test ! -s conftest.err
16299 } && test -s conftest$ac_exeext &&
16300 $as_test_x conftest$ac_exeext; then
16301 eval "$as_ac_var=yes"
16302 else
16303 echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16306 eval "$as_ac_var=no"
16309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16310 conftest$ac_exeext conftest.$ac_ext
16312 ac_res=`eval echo '${'$as_ac_var'}'`
16313 { echo "$as_me:$LINENO: result: $ac_res" >&5
16314 echo "${ECHO_T}$ac_res" >&6; }
16315 if test `eval echo '${'$as_ac_var'}'` = yes; then
16316 cat >>confdefs.h <<_ACEOF
16317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16318 _ACEOF
16321 done
16324 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16325 # loading of modules.
16327 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16328 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16329 if test -z "$DYNLOADFILE"
16330 then
16331 case $ac_sys_system/$ac_sys_release in
16332 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16333 if test "$ac_cv_func_dlopen" = yes
16334 then DYNLOADFILE="dynload_shlib.o"
16335 else DYNLOADFILE="dynload_aix.o"
16338 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16339 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16340 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16341 atheos*) DYNLOADFILE="dynload_atheos.o";;
16343 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16344 # out any dynamic loading
16345 if test "$ac_cv_func_dlopen" = yes
16346 then DYNLOADFILE="dynload_shlib.o"
16347 else DYNLOADFILE="dynload_stub.o"
16350 esac
16352 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16353 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16354 if test "$DYNLOADFILE" != "dynload_stub.o"
16355 then
16357 cat >>confdefs.h <<\_ACEOF
16358 #define HAVE_DYNAMIC_LOADING 1
16359 _ACEOF
16363 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16366 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16367 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16368 if test -z "$MACHDEP_OBJS"
16369 then
16370 MACHDEP_OBJS=$extra_machdep_objs
16371 else
16372 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16374 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16375 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16377 # checks for library functions
16467 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16468 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16469 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16470 getpriority getpwent getspnam getspent getsid getwd \
16471 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16472 mremap nice pathconf pause plock poll pthread_init \
16473 putenv readlink realpath \
16474 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16475 setgid \
16476 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16477 sigaction siginterrupt sigrelse strftime strlcpy \
16478 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16479 truncate uname unsetenv utimes waitpid wait3 wait4 \
16480 wcscoll wcsftime wcsxfrm _getpty
16482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488 cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h. */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16496 #define $ac_func innocuous_$ac_func
16498 /* System header to define __stub macros and hopefully few prototypes,
16499 which can conflict with char $ac_func (); below.
16500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16501 <limits.h> exists even on freestanding compilers. */
16503 #ifdef __STDC__
16504 # include <limits.h>
16505 #else
16506 # include <assert.h>
16507 #endif
16509 #undef $ac_func
16511 /* Override any GCC internal prototype to avoid an error.
16512 Use char because int might match the return type of a GCC
16513 builtin and then its argument prototype would still apply. */
16514 #ifdef __cplusplus
16515 extern "C"
16516 #endif
16517 char $ac_func ();
16518 /* The GNU C library defines this for functions which it implements
16519 to always fail with ENOSYS. Some functions are actually named
16520 something starting with __ and the normal name is an alias. */
16521 #if defined __stub_$ac_func || defined __stub___$ac_func
16522 choke me
16523 #endif
16526 main ()
16528 return $ac_func ();
16530 return 0;
16532 _ACEOF
16533 rm -f conftest.$ac_objext conftest$ac_exeext
16534 if { (ac_try="$ac_link"
16535 case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16538 esac
16539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540 (eval "$ac_link") 2>conftest.er1
16541 ac_status=$?
16542 grep -v '^ *+' conftest.er1 >conftest.err
16543 rm -f conftest.er1
16544 cat conftest.err >&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } && {
16547 test -z "$ac_c_werror_flag" ||
16548 test ! -s conftest.err
16549 } && test -s conftest$ac_exeext &&
16550 $as_test_x conftest$ac_exeext; then
16551 eval "$as_ac_var=yes"
16552 else
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16556 eval "$as_ac_var=no"
16559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16560 conftest$ac_exeext conftest.$ac_ext
16562 ac_res=`eval echo '${'$as_ac_var'}'`
16563 { echo "$as_me:$LINENO: result: $ac_res" >&5
16564 echo "${ECHO_T}$ac_res" >&6; }
16565 if test `eval echo '${'$as_ac_var'}'` = yes; then
16566 cat >>confdefs.h <<_ACEOF
16567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16568 _ACEOF
16571 done
16574 # For some functions, having a definition is not sufficient, since
16575 # we want to take their address.
16576 { echo "$as_me:$LINENO: checking for chroot" >&5
16577 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16578 cat >conftest.$ac_ext <<_ACEOF
16579 /* confdefs.h. */
16580 _ACEOF
16581 cat confdefs.h >>conftest.$ac_ext
16582 cat >>conftest.$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 #include <unistd.h>
16586 main ()
16588 void *x=chroot
16590 return 0;
16592 _ACEOF
16593 rm -f conftest.$ac_objext
16594 if { (ac_try="$ac_compile"
16595 case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16598 esac
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_compile") 2>conftest.er1
16601 ac_status=$?
16602 grep -v '^ *+' conftest.er1 >conftest.err
16603 rm -f conftest.er1
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } && {
16607 test -z "$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16609 } && test -s conftest.$ac_objext; then
16611 cat >>confdefs.h <<\_ACEOF
16612 #define HAVE_CHROOT 1
16613 _ACEOF
16615 { echo "$as_me:$LINENO: result: yes" >&5
16616 echo "${ECHO_T}yes" >&6; }
16617 else
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 { echo "$as_me:$LINENO: result: no" >&5
16622 echo "${ECHO_T}no" >&6; }
16626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627 { echo "$as_me:$LINENO: checking for link" >&5
16628 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h. */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 #include <unistd.h>
16637 main ()
16639 void *x=link
16641 return 0;
16643 _ACEOF
16644 rm -f conftest.$ac_objext
16645 if { (ac_try="$ac_compile"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_compile") 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest.$ac_objext; then
16662 cat >>confdefs.h <<\_ACEOF
16663 #define HAVE_LINK 1
16664 _ACEOF
16666 { echo "$as_me:$LINENO: result: yes" >&5
16667 echo "${ECHO_T}yes" >&6; }
16668 else
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 { echo "$as_me:$LINENO: result: no" >&5
16673 echo "${ECHO_T}no" >&6; }
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 { echo "$as_me:$LINENO: checking for symlink" >&5
16679 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h. */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 #include <unistd.h>
16688 main ()
16690 void *x=symlink
16692 return 0;
16694 _ACEOF
16695 rm -f conftest.$ac_objext
16696 if { (ac_try="$ac_compile"
16697 case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } && {
16709 test -z "$ac_c_werror_flag" ||
16710 test ! -s conftest.err
16711 } && test -s conftest.$ac_objext; then
16713 cat >>confdefs.h <<\_ACEOF
16714 #define HAVE_SYMLINK 1
16715 _ACEOF
16717 { echo "$as_me:$LINENO: result: yes" >&5
16718 echo "${ECHO_T}yes" >&6; }
16719 else
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16723 { echo "$as_me:$LINENO: result: no" >&5
16724 echo "${ECHO_T}no" >&6; }
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { echo "$as_me:$LINENO: checking for fchdir" >&5
16730 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16731 cat >conftest.$ac_ext <<_ACEOF
16732 /* confdefs.h. */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737 #include <unistd.h>
16739 main ()
16741 void *x=fchdir
16743 return 0;
16745 _ACEOF
16746 rm -f conftest.$ac_objext
16747 if { (ac_try="$ac_compile"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest.$ac_objext; then
16764 cat >>confdefs.h <<\_ACEOF
16765 #define HAVE_FCHDIR 1
16766 _ACEOF
16768 { echo "$as_me:$LINENO: result: yes" >&5
16769 echo "${ECHO_T}yes" >&6; }
16770 else
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 { echo "$as_me:$LINENO: result: no" >&5
16775 echo "${ECHO_T}no" >&6; }
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 { echo "$as_me:$LINENO: checking for fsync" >&5
16781 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16782 cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h. */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 #include <unistd.h>
16790 main ()
16792 void *x=fsync
16794 return 0;
16796 _ACEOF
16797 rm -f conftest.$ac_objext
16798 if { (ac_try="$ac_compile"
16799 case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16802 esac
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_compile") 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } && {
16811 test -z "$ac_c_werror_flag" ||
16812 test ! -s conftest.err
16813 } && test -s conftest.$ac_objext; then
16815 cat >>confdefs.h <<\_ACEOF
16816 #define HAVE_FSYNC 1
16817 _ACEOF
16819 { echo "$as_me:$LINENO: result: yes" >&5
16820 echo "${ECHO_T}yes" >&6; }
16821 else
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 { echo "$as_me:$LINENO: result: no" >&5
16826 echo "${ECHO_T}no" >&6; }
16830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16832 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16833 cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h. */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 #include <unistd.h>
16841 main ()
16843 void *x=fdatasync
16845 return 0;
16847 _ACEOF
16848 rm -f conftest.$ac_objext
16849 if { (ac_try="$ac_compile"
16850 case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16853 esac
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_compile") 2>conftest.er1
16856 ac_status=$?
16857 grep -v '^ *+' conftest.er1 >conftest.err
16858 rm -f conftest.er1
16859 cat conftest.err >&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } && {
16862 test -z "$ac_c_werror_flag" ||
16863 test ! -s conftest.err
16864 } && test -s conftest.$ac_objext; then
16866 cat >>confdefs.h <<\_ACEOF
16867 #define HAVE_FDATASYNC 1
16868 _ACEOF
16870 { echo "$as_me:$LINENO: result: yes" >&5
16871 echo "${ECHO_T}yes" >&6; }
16872 else
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16876 { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16882 { echo "$as_me:$LINENO: checking for epoll" >&5
16883 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 #include <sys/epoll.h>
16892 main ()
16894 void *x=epoll_create
16896 return 0;
16898 _ACEOF
16899 rm -f conftest.$ac_objext
16900 if { (ac_try="$ac_compile"
16901 case "(($ac_try" in
16902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16903 *) ac_try_echo=$ac_try;;
16904 esac
16905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906 (eval "$ac_compile") 2>conftest.er1
16907 ac_status=$?
16908 grep -v '^ *+' conftest.er1 >conftest.err
16909 rm -f conftest.er1
16910 cat conftest.err >&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } && {
16913 test -z "$ac_c_werror_flag" ||
16914 test ! -s conftest.err
16915 } && test -s conftest.$ac_objext; then
16917 cat >>confdefs.h <<\_ACEOF
16918 #define HAVE_EPOLL 1
16919 _ACEOF
16921 { echo "$as_me:$LINENO: result: yes" >&5
16922 echo "${ECHO_T}yes" >&6; }
16923 else
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 { echo "$as_me:$LINENO: result: no" >&5
16928 echo "${ECHO_T}no" >&6; }
16932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16933 { echo "$as_me:$LINENO: checking for kqueue" >&5
16934 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 #include <sys/types.h>
16943 #include <sys/event.h>
16946 main ()
16948 int x=kqueue()
16950 return 0;
16952 _ACEOF
16953 rm -f conftest.$ac_objext
16954 if { (ac_try="$ac_compile"
16955 case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958 esac
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_compile") 2>conftest.er1
16961 ac_status=$?
16962 grep -v '^ *+' conftest.er1 >conftest.err
16963 rm -f conftest.er1
16964 cat conftest.err >&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && {
16967 test -z "$ac_c_werror_flag" ||
16968 test ! -s conftest.err
16969 } && test -s conftest.$ac_objext; then
16971 cat >>confdefs.h <<\_ACEOF
16972 #define HAVE_KQUEUE 1
16973 _ACEOF
16975 { echo "$as_me:$LINENO: result: yes" >&5
16976 echo "${ECHO_T}yes" >&6; }
16977 else
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16981 { echo "$as_me:$LINENO: result: no" >&5
16982 echo "${ECHO_T}no" >&6; }
16986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 # On some systems (eg. FreeBSD 5), we would find a definition of the
16988 # functions ctermid_r, setgroups in the library, but no prototype
16989 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16990 # address to avoid compiler warnings and potential miscompilations
16991 # because of the missing prototypes.
16993 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16994 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17002 #include "confdefs.h"
17003 #include <stdio.h>
17006 main ()
17008 void* p = ctermid_r
17010 return 0;
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018 esac
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_compile") 2>conftest.er1
17021 ac_status=$?
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } && {
17027 test -z "$ac_c_werror_flag" ||
17028 test ! -s conftest.err
17029 } && test -s conftest.$ac_objext; then
17031 cat >>confdefs.h <<\_ACEOF
17032 #define HAVE_CTERMID_R 1
17033 _ACEOF
17035 { echo "$as_me:$LINENO: result: yes" >&5
17036 echo "${ECHO_T}yes" >&6; }
17037 else
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 { echo "$as_me:$LINENO: result: no" >&5
17042 echo "${ECHO_T}no" >&6; }
17046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17048 { echo "$as_me:$LINENO: checking for flock" >&5
17049 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17050 cat >conftest.$ac_ext <<_ACEOF
17051 /* confdefs.h. */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17057 #include "confdefs.h"
17058 #include <sys/file.h>
17061 main ()
17063 void* p = flock
17065 return 0;
17067 _ACEOF
17068 rm -f conftest.$ac_objext
17069 if { (ac_try="$ac_compile"
17070 case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_compile") 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } && {
17082 test -z "$ac_c_werror_flag" ||
17083 test ! -s conftest.err
17084 } && test -s conftest.$ac_objext; then
17086 cat >>confdefs.h <<\_ACEOF
17087 #define HAVE_FLOCK 1
17088 _ACEOF
17090 { echo "$as_me:$LINENO: result: yes" >&5
17091 echo "${ECHO_T}yes" >&6; }
17092 else
17093 echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17096 { echo "$as_me:$LINENO: result: no" >&5
17097 echo "${ECHO_T}no" >&6; }
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17103 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17104 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h. */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17112 #include "confdefs.h"
17113 #include <unistd.h>
17116 main ()
17118 void* p = getpagesize
17120 return 0;
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (ac_try="$ac_compile"
17125 case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17128 esac
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_compile") 2>conftest.er1
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } && {
17137 test -z "$ac_c_werror_flag" ||
17138 test ! -s conftest.err
17139 } && test -s conftest.$ac_objext; then
17141 cat >>confdefs.h <<\_ACEOF
17142 #define HAVE_GETPAGESIZE 1
17143 _ACEOF
17145 { echo "$as_me:$LINENO: result: yes" >&5
17146 echo "${ECHO_T}yes" >&6; }
17147 else
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 { echo "$as_me:$LINENO: result: no" >&5
17152 echo "${ECHO_T}no" >&6; }
17156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17158 for ac_prog in true
17160 # Extract the first word of "$ac_prog", so it can be a program name with args.
17161 set dummy $ac_prog; ac_word=$2
17162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17164 if test "${ac_cv_prog_TRUE+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167 if test -n "$TRUE"; then
17168 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17169 else
17170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171 for as_dir in $PATH
17173 IFS=$as_save_IFS
17174 test -z "$as_dir" && as_dir=.
17175 for ac_exec_ext in '' $ac_executable_extensions; do
17176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17177 ac_cv_prog_TRUE="$ac_prog"
17178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17179 break 2
17181 done
17182 done
17183 IFS=$as_save_IFS
17187 TRUE=$ac_cv_prog_TRUE
17188 if test -n "$TRUE"; then
17189 { echo "$as_me:$LINENO: result: $TRUE" >&5
17190 echo "${ECHO_T}$TRUE" >&6; }
17191 else
17192 { echo "$as_me:$LINENO: result: no" >&5
17193 echo "${ECHO_T}no" >&6; }
17197 test -n "$TRUE" && break
17198 done
17199 test -n "$TRUE" || TRUE="/bin/true"
17202 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17203 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17204 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17206 else
17207 ac_check_lib_save_LIBS=$LIBS
17208 LIBS="-lc $LIBS"
17209 cat >conftest.$ac_ext <<_ACEOF
17210 /* confdefs.h. */
17211 _ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17216 /* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17219 #ifdef __cplusplus
17220 extern "C"
17221 #endif
17222 char inet_aton ();
17224 main ()
17226 return inet_aton ();
17228 return 0;
17230 _ACEOF
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (ac_try="$ac_link"
17233 case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_link") 2>conftest.er1
17239 ac_status=$?
17240 grep -v '^ *+' conftest.er1 >conftest.err
17241 rm -f conftest.er1
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } && {
17245 test -z "$ac_c_werror_flag" ||
17246 test ! -s conftest.err
17247 } && test -s conftest$ac_exeext &&
17248 $as_test_x conftest$ac_exeext; then
17249 ac_cv_lib_c_inet_aton=yes
17250 else
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17254 ac_cv_lib_c_inet_aton=no
17257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17258 conftest$ac_exeext conftest.$ac_ext
17259 LIBS=$ac_check_lib_save_LIBS
17261 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17262 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17263 if test $ac_cv_lib_c_inet_aton = yes; then
17264 $ac_cv_prog_TRUE
17265 else
17267 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17268 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17269 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272 ac_check_lib_save_LIBS=$LIBS
17273 LIBS="-lresolv $LIBS"
17274 cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h. */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17281 /* Override any GCC internal prototype to avoid an error.
17282 Use char because int might match the return type of a GCC
17283 builtin and then its argument prototype would still apply. */
17284 #ifdef __cplusplus
17285 extern "C"
17286 #endif
17287 char inet_aton ();
17289 main ()
17291 return inet_aton ();
17293 return 0;
17295 _ACEOF
17296 rm -f conftest.$ac_objext conftest$ac_exeext
17297 if { (ac_try="$ac_link"
17298 case "(($ac_try" in
17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17301 esac
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_link") 2>conftest.er1
17304 ac_status=$?
17305 grep -v '^ *+' conftest.er1 >conftest.err
17306 rm -f conftest.er1
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } && {
17310 test -z "$ac_c_werror_flag" ||
17311 test ! -s conftest.err
17312 } && test -s conftest$ac_exeext &&
17313 $as_test_x conftest$ac_exeext; then
17314 ac_cv_lib_resolv_inet_aton=yes
17315 else
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 ac_cv_lib_resolv_inet_aton=no
17322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17323 conftest$ac_exeext conftest.$ac_ext
17324 LIBS=$ac_check_lib_save_LIBS
17326 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17327 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17328 if test $ac_cv_lib_resolv_inet_aton = yes; then
17329 cat >>confdefs.h <<_ACEOF
17330 #define HAVE_LIBRESOLV 1
17331 _ACEOF
17333 LIBS="-lresolv $LIBS"
17341 # On Tru64, chflags seems to be present, but calling it will
17342 # exit Python
17343 { echo "$as_me:$LINENO: checking for chflags" >&5
17344 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17345 if test "${ac_cv_have_chflags+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348 if test "$cross_compiling" = yes; then
17349 ac_cv_have_chflags=cross
17350 else
17351 cat >conftest.$ac_ext <<_ACEOF
17352 /* confdefs.h. */
17353 _ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17358 #include <sys/stat.h>
17359 #include <unistd.h>
17360 int main(int argc, char*argv[])
17362 if(chflags(argv[0], 0) != 0)
17363 return 1;
17364 return 0;
17367 _ACEOF
17368 rm -f conftest$ac_exeext
17369 if { (ac_try="$ac_link"
17370 case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17373 esac
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_link") 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17379 { (case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_try") 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_cv_have_chflags=yes
17389 else
17390 echo "$as_me: program exited with status $ac_status" >&5
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ( exit $ac_status )
17395 ac_cv_have_chflags=no
17397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17403 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17404 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
17405 if test "$ac_cv_have_chflags" = cross ; then
17406 { echo "$as_me:$LINENO: checking for chflags" >&5
17407 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17408 if test "${ac_cv_func_chflags+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411 cat >conftest.$ac_ext <<_ACEOF
17412 /* confdefs.h. */
17413 _ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17417 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17419 #define chflags innocuous_chflags
17421 /* System header to define __stub macros and hopefully few prototypes,
17422 which can conflict with char chflags (); below.
17423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17424 <limits.h> exists even on freestanding compilers. */
17426 #ifdef __STDC__
17427 # include <limits.h>
17428 #else
17429 # include <assert.h>
17430 #endif
17432 #undef chflags
17434 /* Override any GCC internal prototype to avoid an error.
17435 Use char because int might match the return type of a GCC
17436 builtin and then its argument prototype would still apply. */
17437 #ifdef __cplusplus
17438 extern "C"
17439 #endif
17440 char chflags ();
17441 /* The GNU C library defines this for functions which it implements
17442 to always fail with ENOSYS. Some functions are actually named
17443 something starting with __ and the normal name is an alias. */
17444 #if defined __stub_chflags || defined __stub___chflags
17445 choke me
17446 #endif
17449 main ()
17451 return chflags ();
17453 return 0;
17455 _ACEOF
17456 rm -f conftest.$ac_objext conftest$ac_exeext
17457 if { (ac_try="$ac_link"
17458 case "(($ac_try" in
17459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17461 esac
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_link") 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } && {
17470 test -z "$ac_c_werror_flag" ||
17471 test ! -s conftest.err
17472 } && test -s conftest$ac_exeext &&
17473 $as_test_x conftest$ac_exeext; then
17474 ac_cv_func_chflags=yes
17475 else
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ac_cv_func_chflags=no
17482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17483 conftest$ac_exeext conftest.$ac_ext
17485 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17486 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
17487 if test $ac_cv_func_chflags = yes; then
17488 ac_cv_have_chflags="yes"
17489 else
17490 ac_cv_have_chflags="no"
17494 if test "$ac_cv_have_chflags" = yes ; then
17496 cat >>confdefs.h <<\_ACEOF
17497 #define HAVE_CHFLAGS 1
17498 _ACEOF
17502 { echo "$as_me:$LINENO: checking for lchflags" >&5
17503 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17504 if test "${ac_cv_have_lchflags+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 else
17507 if test "$cross_compiling" = yes; then
17508 ac_cv_have_lchflags=cross
17509 else
17510 cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h. */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17517 #include <sys/stat.h>
17518 #include <unistd.h>
17519 int main(int argc, char*argv[])
17521 if(lchflags(argv[0], 0) != 0)
17522 return 1;
17523 return 0;
17526 _ACEOF
17527 rm -f conftest$ac_exeext
17528 if { (ac_try="$ac_link"
17529 case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17532 esac
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_link") 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17538 { (case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_try") 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_have_lchflags=yes
17548 else
17549 echo "$as_me: program exited with status $ac_status" >&5
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 ( exit $ac_status )
17554 ac_cv_have_lchflags=no
17556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17562 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17563 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
17564 if test "$ac_cv_have_lchflags" = cross ; then
17565 { echo "$as_me:$LINENO: checking for lchflags" >&5
17566 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17567 if test "${ac_cv_func_lchflags+set}" = set; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 else
17570 cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h. */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17578 #define lchflags innocuous_lchflags
17580 /* System header to define __stub macros and hopefully few prototypes,
17581 which can conflict with char lchflags (); below.
17582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17583 <limits.h> exists even on freestanding compilers. */
17585 #ifdef __STDC__
17586 # include <limits.h>
17587 #else
17588 # include <assert.h>
17589 #endif
17591 #undef lchflags
17593 /* Override any GCC internal prototype to avoid an error.
17594 Use char because int might match the return type of a GCC
17595 builtin and then its argument prototype would still apply. */
17596 #ifdef __cplusplus
17597 extern "C"
17598 #endif
17599 char lchflags ();
17600 /* The GNU C library defines this for functions which it implements
17601 to always fail with ENOSYS. Some functions are actually named
17602 something starting with __ and the normal name is an alias. */
17603 #if defined __stub_lchflags || defined __stub___lchflags
17604 choke me
17605 #endif
17608 main ()
17610 return lchflags ();
17612 return 0;
17614 _ACEOF
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_link") 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } && {
17629 test -z "$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 } && test -s conftest$ac_exeext &&
17632 $as_test_x conftest$ac_exeext; then
17633 ac_cv_func_lchflags=yes
17634 else
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 ac_cv_func_lchflags=no
17641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17642 conftest$ac_exeext conftest.$ac_ext
17644 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
17645 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
17646 if test $ac_cv_func_lchflags = yes; then
17647 ac_cv_have_lchflags="yes"
17648 else
17649 ac_cv_have_lchflags="no"
17653 if test "$ac_cv_have_lchflags" = yes ; then
17655 cat >>confdefs.h <<\_ACEOF
17656 #define HAVE_LCHFLAGS 1
17657 _ACEOF
17661 case $ac_sys_system/$ac_sys_release in
17662 Darwin/*)
17663 _CUR_CFLAGS="${CFLAGS}"
17664 _CUR_LDFLAGS="${LDFLAGS}"
17665 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17666 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17668 esac
17670 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17671 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17672 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17674 else
17675 ac_check_lib_save_LIBS=$LIBS
17676 LIBS="-lz $LIBS"
17677 cat >conftest.$ac_ext <<_ACEOF
17678 /* confdefs.h. */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17684 /* Override any GCC internal prototype to avoid an error.
17685 Use char because int might match the return type of a GCC
17686 builtin and then its argument prototype would still apply. */
17687 #ifdef __cplusplus
17688 extern "C"
17689 #endif
17690 char inflateCopy ();
17692 main ()
17694 return inflateCopy ();
17696 return 0;
17698 _ACEOF
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (ac_try="$ac_link"
17701 case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17704 esac
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_link") 2>conftest.er1
17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && {
17713 test -z "$ac_c_werror_flag" ||
17714 test ! -s conftest.err
17715 } && test -s conftest$ac_exeext &&
17716 $as_test_x conftest$ac_exeext; then
17717 ac_cv_lib_z_inflateCopy=yes
17718 else
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ac_cv_lib_z_inflateCopy=no
17725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17726 conftest$ac_exeext conftest.$ac_ext
17727 LIBS=$ac_check_lib_save_LIBS
17729 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17730 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17731 if test $ac_cv_lib_z_inflateCopy = yes; then
17733 cat >>confdefs.h <<\_ACEOF
17734 #define HAVE_ZLIB_COPY 1
17735 _ACEOF
17740 case $ac_sys_system/$ac_sys_release in
17741 Darwin/*)
17742 CFLAGS="${_CUR_CFLAGS}"
17743 LDFLAGS="${_CUR_LDFLAGS}"
17745 esac
17747 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17748 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17749 cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h. */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17756 #include "confdefs.h"
17757 #include <netdb.h>
17760 main ()
17762 void* p = hstrerror; hstrerror(0)
17764 return 0;
17766 _ACEOF
17767 rm -f conftest.$ac_objext conftest$ac_exeext
17768 if { (ac_try="$ac_link"
17769 case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17772 esac
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_link") 2>conftest.er1
17775 ac_status=$?
17776 grep -v '^ *+' conftest.er1 >conftest.err
17777 rm -f conftest.er1
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } && {
17781 test -z "$ac_c_werror_flag" ||
17782 test ! -s conftest.err
17783 } && test -s conftest$ac_exeext &&
17784 $as_test_x conftest$ac_exeext; then
17786 cat >>confdefs.h <<\_ACEOF
17787 #define HAVE_HSTRERROR 1
17788 _ACEOF
17790 { echo "$as_me:$LINENO: result: yes" >&5
17791 echo "${ECHO_T}yes" >&6; }
17792 else
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17796 { echo "$as_me:$LINENO: result: no" >&5
17797 echo "${ECHO_T}no" >&6; }
17801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17802 conftest$ac_exeext conftest.$ac_ext
17804 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17805 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17806 cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17813 #include "confdefs.h"
17814 #include <sys/types.h>
17815 #include <sys/socket.h>
17816 #include <netinet/in.h>
17817 #include <arpa/inet.h>
17820 main ()
17822 void* p = inet_aton;inet_aton(0,0)
17824 return 0;
17826 _ACEOF
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (ac_try="$ac_link"
17829 case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_link") 2>conftest.er1
17835 ac_status=$?
17836 grep -v '^ *+' conftest.er1 >conftest.err
17837 rm -f conftest.er1
17838 cat conftest.err >&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } && {
17841 test -z "$ac_c_werror_flag" ||
17842 test ! -s conftest.err
17843 } && test -s conftest$ac_exeext &&
17844 $as_test_x conftest$ac_exeext; then
17846 cat >>confdefs.h <<\_ACEOF
17847 #define HAVE_INET_ATON 1
17848 _ACEOF
17850 { echo "$as_me:$LINENO: result: yes" >&5
17851 echo "${ECHO_T}yes" >&6; }
17852 else
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 { echo "$as_me:$LINENO: result: no" >&5
17857 echo "${ECHO_T}no" >&6; }
17861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17862 conftest$ac_exeext conftest.$ac_ext
17864 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17865 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h. */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17873 #include "confdefs.h"
17874 #include <sys/types.h>
17875 #include <sys/socket.h>
17876 #include <netinet/in.h>
17877 #include <arpa/inet.h>
17880 main ()
17882 void* p = inet_pton
17884 return 0;
17886 _ACEOF
17887 rm -f conftest.$ac_objext
17888 if { (ac_try="$ac_compile"
17889 case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17892 esac
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_compile") 2>conftest.er1
17895 ac_status=$?
17896 grep -v '^ *+' conftest.er1 >conftest.err
17897 rm -f conftest.er1
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } && {
17901 test -z "$ac_c_werror_flag" ||
17902 test ! -s conftest.err
17903 } && test -s conftest.$ac_objext; then
17905 cat >>confdefs.h <<\_ACEOF
17906 #define HAVE_INET_PTON 1
17907 _ACEOF
17909 { echo "$as_me:$LINENO: result: yes" >&5
17910 echo "${ECHO_T}yes" >&6; }
17911 else
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 { echo "$as_me:$LINENO: result: no" >&5
17916 echo "${ECHO_T}no" >&6; }
17920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17922 # On some systems, setgroups is in unistd.h, on others, in grp.h
17923 { echo "$as_me:$LINENO: checking for setgroups" >&5
17924 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17925 cat >conftest.$ac_ext <<_ACEOF
17926 /* confdefs.h. */
17927 _ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h. */
17932 #include "confdefs.h"
17933 #include <unistd.h>
17934 #ifdef HAVE_GRP_H
17935 #include <grp.h>
17936 #endif
17939 main ()
17941 void* p = setgroups
17943 return 0;
17945 _ACEOF
17946 rm -f conftest.$ac_objext
17947 if { (ac_try="$ac_compile"
17948 case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17951 esac
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_compile") 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } && {
17960 test -z "$ac_c_werror_flag" ||
17961 test ! -s conftest.err
17962 } && test -s conftest.$ac_objext; then
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_SETGROUPS 1
17966 _ACEOF
17968 { echo "$as_me:$LINENO: result: yes" >&5
17969 echo "${ECHO_T}yes" >&6; }
17970 else
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17974 { echo "$as_me:$LINENO: result: no" >&5
17975 echo "${ECHO_T}no" >&6; }
17979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17981 # check for openpty and forkpty
17984 for ac_func in openpty
17986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 else
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18000 #define $ac_func innocuous_$ac_func
18002 /* System header to define __stub macros and hopefully few prototypes,
18003 which can conflict with char $ac_func (); below.
18004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18005 <limits.h> exists even on freestanding compilers. */
18007 #ifdef __STDC__
18008 # include <limits.h>
18009 #else
18010 # include <assert.h>
18011 #endif
18013 #undef $ac_func
18015 /* Override any GCC internal prototype to avoid an error.
18016 Use char because int might match the return type of a GCC
18017 builtin and then its argument prototype would still apply. */
18018 #ifdef __cplusplus
18019 extern "C"
18020 #endif
18021 char $ac_func ();
18022 /* The GNU C library defines this for functions which it implements
18023 to always fail with ENOSYS. Some functions are actually named
18024 something starting with __ and the normal name is an alias. */
18025 #if defined __stub_$ac_func || defined __stub___$ac_func
18026 choke me
18027 #endif
18030 main ()
18032 return $ac_func ();
18034 return 0;
18036 _ACEOF
18037 rm -f conftest.$ac_objext conftest$ac_exeext
18038 if { (ac_try="$ac_link"
18039 case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_link") 2>conftest.er1
18045 ac_status=$?
18046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } && {
18051 test -z "$ac_c_werror_flag" ||
18052 test ! -s conftest.err
18053 } && test -s conftest$ac_exeext &&
18054 $as_test_x conftest$ac_exeext; then
18055 eval "$as_ac_var=yes"
18056 else
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 eval "$as_ac_var=no"
18063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18064 conftest$ac_exeext conftest.$ac_ext
18066 ac_res=`eval echo '${'$as_ac_var'}'`
18067 { echo "$as_me:$LINENO: result: $ac_res" >&5
18068 echo "${ECHO_T}$ac_res" >&6; }
18069 if test `eval echo '${'$as_ac_var'}'` = yes; then
18070 cat >>confdefs.h <<_ACEOF
18071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18072 _ACEOF
18074 else
18075 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18076 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18077 if test "${ac_cv_lib_util_openpty+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080 ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-lutil $LIBS"
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18089 /* Override any GCC internal prototype to avoid an error.
18090 Use char because int might match the return type of a GCC
18091 builtin and then its argument prototype would still apply. */
18092 #ifdef __cplusplus
18093 extern "C"
18094 #endif
18095 char openpty ();
18097 main ()
18099 return openpty ();
18101 return 0;
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (ac_try="$ac_link"
18106 case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_link") 2>conftest.er1
18112 ac_status=$?
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } && {
18118 test -z "$ac_c_werror_flag" ||
18119 test ! -s conftest.err
18120 } && test -s conftest$ac_exeext &&
18121 $as_test_x conftest$ac_exeext; then
18122 ac_cv_lib_util_openpty=yes
18123 else
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18127 ac_cv_lib_util_openpty=no
18130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18131 conftest$ac_exeext conftest.$ac_ext
18132 LIBS=$ac_check_lib_save_LIBS
18134 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18135 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18136 if test $ac_cv_lib_util_openpty = yes; then
18137 cat >>confdefs.h <<\_ACEOF
18138 #define HAVE_OPENPTY 1
18139 _ACEOF
18140 LIBS="$LIBS -lutil"
18141 else
18142 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18143 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18144 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147 ac_check_lib_save_LIBS=$LIBS
18148 LIBS="-lbsd $LIBS"
18149 cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h. */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18156 /* Override any GCC internal prototype to avoid an error.
18157 Use char because int might match the return type of a GCC
18158 builtin and then its argument prototype would still apply. */
18159 #ifdef __cplusplus
18160 extern "C"
18161 #endif
18162 char openpty ();
18164 main ()
18166 return openpty ();
18168 return 0;
18170 _ACEOF
18171 rm -f conftest.$ac_objext conftest$ac_exeext
18172 if { (ac_try="$ac_link"
18173 case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18176 esac
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_link") 2>conftest.er1
18179 ac_status=$?
18180 grep -v '^ *+' conftest.er1 >conftest.err
18181 rm -f conftest.er1
18182 cat conftest.err >&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } && {
18185 test -z "$ac_c_werror_flag" ||
18186 test ! -s conftest.err
18187 } && test -s conftest$ac_exeext &&
18188 $as_test_x conftest$ac_exeext; then
18189 ac_cv_lib_bsd_openpty=yes
18190 else
18191 echo "$as_me: failed program was:" >&5
18192 sed 's/^/| /' conftest.$ac_ext >&5
18194 ac_cv_lib_bsd_openpty=no
18197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18198 conftest$ac_exeext conftest.$ac_ext
18199 LIBS=$ac_check_lib_save_LIBS
18201 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18202 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18203 if test $ac_cv_lib_bsd_openpty = yes; then
18204 cat >>confdefs.h <<\_ACEOF
18205 #define HAVE_OPENPTY 1
18206 _ACEOF
18207 LIBS="$LIBS -lbsd"
18215 done
18218 for ac_func in forkpty
18220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 else
18226 cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h. */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18234 #define $ac_func innocuous_$ac_func
18236 /* System header to define __stub macros and hopefully few prototypes,
18237 which can conflict with char $ac_func (); below.
18238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18239 <limits.h> exists even on freestanding compilers. */
18241 #ifdef __STDC__
18242 # include <limits.h>
18243 #else
18244 # include <assert.h>
18245 #endif
18247 #undef $ac_func
18249 /* Override any GCC internal prototype to avoid an error.
18250 Use char because int might match the return type of a GCC
18251 builtin and then its argument prototype would still apply. */
18252 #ifdef __cplusplus
18253 extern "C"
18254 #endif
18255 char $ac_func ();
18256 /* The GNU C library defines this for functions which it implements
18257 to always fail with ENOSYS. Some functions are actually named
18258 something starting with __ and the normal name is an alias. */
18259 #if defined __stub_$ac_func || defined __stub___$ac_func
18260 choke me
18261 #endif
18264 main ()
18266 return $ac_func ();
18268 return 0;
18270 _ACEOF
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (ac_try="$ac_link"
18273 case "(($ac_try" in
18274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275 *) ac_try_echo=$ac_try;;
18276 esac
18277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278 (eval "$ac_link") 2>conftest.er1
18279 ac_status=$?
18280 grep -v '^ *+' conftest.er1 >conftest.err
18281 rm -f conftest.er1
18282 cat conftest.err >&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } && {
18285 test -z "$ac_c_werror_flag" ||
18286 test ! -s conftest.err
18287 } && test -s conftest$ac_exeext &&
18288 $as_test_x conftest$ac_exeext; then
18289 eval "$as_ac_var=yes"
18290 else
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18294 eval "$as_ac_var=no"
18297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18298 conftest$ac_exeext conftest.$ac_ext
18300 ac_res=`eval echo '${'$as_ac_var'}'`
18301 { echo "$as_me:$LINENO: result: $ac_res" >&5
18302 echo "${ECHO_T}$ac_res" >&6; }
18303 if test `eval echo '${'$as_ac_var'}'` = yes; then
18304 cat >>confdefs.h <<_ACEOF
18305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18306 _ACEOF
18308 else
18309 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18310 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18311 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18312 echo $ECHO_N "(cached) $ECHO_C" >&6
18313 else
18314 ac_check_lib_save_LIBS=$LIBS
18315 LIBS="-lutil $LIBS"
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18323 /* Override any GCC internal prototype to avoid an error.
18324 Use char because int might match the return type of a GCC
18325 builtin and then its argument prototype would still apply. */
18326 #ifdef __cplusplus
18327 extern "C"
18328 #endif
18329 char forkpty ();
18331 main ()
18333 return forkpty ();
18335 return 0;
18337 _ACEOF
18338 rm -f conftest.$ac_objext conftest$ac_exeext
18339 if { (ac_try="$ac_link"
18340 case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18343 esac
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_link") 2>conftest.er1
18346 ac_status=$?
18347 grep -v '^ *+' conftest.er1 >conftest.err
18348 rm -f conftest.er1
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } && {
18352 test -z "$ac_c_werror_flag" ||
18353 test ! -s conftest.err
18354 } && test -s conftest$ac_exeext &&
18355 $as_test_x conftest$ac_exeext; then
18356 ac_cv_lib_util_forkpty=yes
18357 else
18358 echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18361 ac_cv_lib_util_forkpty=no
18364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18365 conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18368 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18369 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18370 if test $ac_cv_lib_util_forkpty = yes; then
18371 cat >>confdefs.h <<\_ACEOF
18372 #define HAVE_FORKPTY 1
18373 _ACEOF
18374 LIBS="$LIBS -lutil"
18375 else
18376 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18377 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18378 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 else
18381 ac_check_lib_save_LIBS=$LIBS
18382 LIBS="-lbsd $LIBS"
18383 cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h. */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18390 /* Override any GCC internal prototype to avoid an error.
18391 Use char because int might match the return type of a GCC
18392 builtin and then its argument prototype would still apply. */
18393 #ifdef __cplusplus
18394 extern "C"
18395 #endif
18396 char forkpty ();
18398 main ()
18400 return forkpty ();
18402 return 0;
18404 _ACEOF
18405 rm -f conftest.$ac_objext conftest$ac_exeext
18406 if { (ac_try="$ac_link"
18407 case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_link") 2>conftest.er1
18413 ac_status=$?
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } && {
18419 test -z "$ac_c_werror_flag" ||
18420 test ! -s conftest.err
18421 } && test -s conftest$ac_exeext &&
18422 $as_test_x conftest$ac_exeext; then
18423 ac_cv_lib_bsd_forkpty=yes
18424 else
18425 echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18428 ac_cv_lib_bsd_forkpty=no
18431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18432 conftest$ac_exeext conftest.$ac_ext
18433 LIBS=$ac_check_lib_save_LIBS
18435 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18436 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18437 if test $ac_cv_lib_bsd_forkpty = yes; then
18438 cat >>confdefs.h <<\_ACEOF
18439 #define HAVE_FORKPTY 1
18440 _ACEOF
18441 LIBS="$LIBS -lbsd"
18449 done
18452 # Stuff for expat.
18454 for ac_func in memmove
18456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 else
18462 cat >conftest.$ac_ext <<_ACEOF
18463 /* confdefs.h. */
18464 _ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18470 #define $ac_func innocuous_$ac_func
18472 /* System header to define __stub macros and hopefully few prototypes,
18473 which can conflict with char $ac_func (); below.
18474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18475 <limits.h> exists even on freestanding compilers. */
18477 #ifdef __STDC__
18478 # include <limits.h>
18479 #else
18480 # include <assert.h>
18481 #endif
18483 #undef $ac_func
18485 /* Override any GCC internal prototype to avoid an error.
18486 Use char because int might match the return type of a GCC
18487 builtin and then its argument prototype would still apply. */
18488 #ifdef __cplusplus
18489 extern "C"
18490 #endif
18491 char $ac_func ();
18492 /* The GNU C library defines this for functions which it implements
18493 to always fail with ENOSYS. Some functions are actually named
18494 something starting with __ and the normal name is an alias. */
18495 #if defined __stub_$ac_func || defined __stub___$ac_func
18496 choke me
18497 #endif
18500 main ()
18502 return $ac_func ();
18504 return 0;
18506 _ACEOF
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } && {
18521 test -z "$ac_c_werror_flag" ||
18522 test ! -s conftest.err
18523 } && test -s conftest$ac_exeext &&
18524 $as_test_x conftest$ac_exeext; then
18525 eval "$as_ac_var=yes"
18526 else
18527 echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18530 eval "$as_ac_var=no"
18533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18534 conftest$ac_exeext conftest.$ac_ext
18536 ac_res=`eval echo '${'$as_ac_var'}'`
18537 { echo "$as_me:$LINENO: result: $ac_res" >&5
18538 echo "${ECHO_T}$ac_res" >&6; }
18539 if test `eval echo '${'$as_ac_var'}'` = yes; then
18540 cat >>confdefs.h <<_ACEOF
18541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18542 _ACEOF
18545 done
18548 # check for long file support functions
18555 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563 cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h. */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18571 #define $ac_func innocuous_$ac_func
18573 /* System header to define __stub macros and hopefully few prototypes,
18574 which can conflict with char $ac_func (); below.
18575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18576 <limits.h> exists even on freestanding compilers. */
18578 #ifdef __STDC__
18579 # include <limits.h>
18580 #else
18581 # include <assert.h>
18582 #endif
18584 #undef $ac_func
18586 /* Override any GCC internal prototype to avoid an error.
18587 Use char because int might match the return type of a GCC
18588 builtin and then its argument prototype would still apply. */
18589 #ifdef __cplusplus
18590 extern "C"
18591 #endif
18592 char $ac_func ();
18593 /* The GNU C library defines this for functions which it implements
18594 to always fail with ENOSYS. Some functions are actually named
18595 something starting with __ and the normal name is an alias. */
18596 #if defined __stub_$ac_func || defined __stub___$ac_func
18597 choke me
18598 #endif
18601 main ()
18603 return $ac_func ();
18605 return 0;
18607 _ACEOF
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest$ac_exeext &&
18625 $as_test_x conftest$ac_exeext; then
18626 eval "$as_ac_var=yes"
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 eval "$as_ac_var=no"
18634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18635 conftest$ac_exeext conftest.$ac_ext
18637 ac_res=`eval echo '${'$as_ac_var'}'`
18638 { echo "$as_me:$LINENO: result: $ac_res" >&5
18639 echo "${ECHO_T}$ac_res" >&6; }
18640 if test `eval echo '${'$as_ac_var'}'` = yes; then
18641 cat >>confdefs.h <<_ACEOF
18642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18643 _ACEOF
18646 done
18652 for ac_func in dup2 getcwd strdup
18654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 else
18660 cat >conftest.$ac_ext <<_ACEOF
18661 /* confdefs.h. */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18668 #define $ac_func innocuous_$ac_func
18670 /* System header to define __stub macros and hopefully few prototypes,
18671 which can conflict with char $ac_func (); below.
18672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18673 <limits.h> exists even on freestanding compilers. */
18675 #ifdef __STDC__
18676 # include <limits.h>
18677 #else
18678 # include <assert.h>
18679 #endif
18681 #undef $ac_func
18683 /* Override any GCC internal prototype to avoid an error.
18684 Use char because int might match the return type of a GCC
18685 builtin and then its argument prototype would still apply. */
18686 #ifdef __cplusplus
18687 extern "C"
18688 #endif
18689 char $ac_func ();
18690 /* The GNU C library defines this for functions which it implements
18691 to always fail with ENOSYS. Some functions are actually named
18692 something starting with __ and the normal name is an alias. */
18693 #if defined __stub_$ac_func || defined __stub___$ac_func
18694 choke me
18695 #endif
18698 main ()
18700 return $ac_func ();
18702 return 0;
18704 _ACEOF
18705 rm -f conftest.$ac_objext conftest$ac_exeext
18706 if { (ac_try="$ac_link"
18707 case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_link") 2>conftest.er1
18713 ac_status=$?
18714 grep -v '^ *+' conftest.er1 >conftest.err
18715 rm -f conftest.er1
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } && {
18719 test -z "$ac_c_werror_flag" ||
18720 test ! -s conftest.err
18721 } && test -s conftest$ac_exeext &&
18722 $as_test_x conftest$ac_exeext; then
18723 eval "$as_ac_var=yes"
18724 else
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18728 eval "$as_ac_var=no"
18731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18732 conftest$ac_exeext conftest.$ac_ext
18734 ac_res=`eval echo '${'$as_ac_var'}'`
18735 { echo "$as_me:$LINENO: result: $ac_res" >&5
18736 echo "${ECHO_T}$ac_res" >&6; }
18737 if test `eval echo '${'$as_ac_var'}'` = yes; then
18738 cat >>confdefs.h <<_ACEOF
18739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18740 _ACEOF
18742 else
18743 case " $LIBOBJS " in
18744 *" $ac_func.$ac_objext "* ) ;;
18745 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18747 esac
18750 done
18754 for ac_func in getpgrp
18756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18770 #define $ac_func innocuous_$ac_func
18772 /* System header to define __stub macros and hopefully few prototypes,
18773 which can conflict with char $ac_func (); below.
18774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18775 <limits.h> exists even on freestanding compilers. */
18777 #ifdef __STDC__
18778 # include <limits.h>
18779 #else
18780 # include <assert.h>
18781 #endif
18783 #undef $ac_func
18785 /* Override any GCC internal prototype to avoid an error.
18786 Use char because int might match the return type of a GCC
18787 builtin and then its argument prototype would still apply. */
18788 #ifdef __cplusplus
18789 extern "C"
18790 #endif
18791 char $ac_func ();
18792 /* The GNU C library defines this for functions which it implements
18793 to always fail with ENOSYS. Some functions are actually named
18794 something starting with __ and the normal name is an alias. */
18795 #if defined __stub_$ac_func || defined __stub___$ac_func
18796 choke me
18797 #endif
18800 main ()
18802 return $ac_func ();
18804 return 0;
18806 _ACEOF
18807 rm -f conftest.$ac_objext conftest$ac_exeext
18808 if { (ac_try="$ac_link"
18809 case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_link") 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } && {
18821 test -z "$ac_c_werror_flag" ||
18822 test ! -s conftest.err
18823 } && test -s conftest$ac_exeext &&
18824 $as_test_x conftest$ac_exeext; then
18825 eval "$as_ac_var=yes"
18826 else
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 eval "$as_ac_var=no"
18833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18834 conftest$ac_exeext conftest.$ac_ext
18836 ac_res=`eval echo '${'$as_ac_var'}'`
18837 { echo "$as_me:$LINENO: result: $ac_res" >&5
18838 echo "${ECHO_T}$ac_res" >&6; }
18839 if test `eval echo '${'$as_ac_var'}'` = yes; then
18840 cat >>confdefs.h <<_ACEOF
18841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18842 _ACEOF
18843 cat >conftest.$ac_ext <<_ACEOF
18844 /* confdefs.h. */
18845 _ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18849 #include <unistd.h>
18851 main ()
18853 getpgrp(0);
18855 return 0;
18857 _ACEOF
18858 rm -f conftest.$ac_objext
18859 if { (ac_try="$ac_compile"
18860 case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863 esac
18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_compile") 2>conftest.er1
18866 ac_status=$?
18867 grep -v '^ *+' conftest.er1 >conftest.err
18868 rm -f conftest.er1
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } && {
18872 test -z "$ac_c_werror_flag" ||
18873 test ! -s conftest.err
18874 } && test -s conftest.$ac_objext; then
18876 cat >>confdefs.h <<\_ACEOF
18877 #define GETPGRP_HAVE_ARG 1
18878 _ACEOF
18881 else
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 done
18894 for ac_func in setpgrp
18896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902 cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h. */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18910 #define $ac_func innocuous_$ac_func
18912 /* System header to define __stub macros and hopefully few prototypes,
18913 which can conflict with char $ac_func (); below.
18914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18915 <limits.h> exists even on freestanding compilers. */
18917 #ifdef __STDC__
18918 # include <limits.h>
18919 #else
18920 # include <assert.h>
18921 #endif
18923 #undef $ac_func
18925 /* Override any GCC internal prototype to avoid an error.
18926 Use char because int might match the return type of a GCC
18927 builtin and then its argument prototype would still apply. */
18928 #ifdef __cplusplus
18929 extern "C"
18930 #endif
18931 char $ac_func ();
18932 /* The GNU C library defines this for functions which it implements
18933 to always fail with ENOSYS. Some functions are actually named
18934 something starting with __ and the normal name is an alias. */
18935 #if defined __stub_$ac_func || defined __stub___$ac_func
18936 choke me
18937 #endif
18940 main ()
18942 return $ac_func ();
18944 return 0;
18946 _ACEOF
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_link") 2>conftest.er1
18955 ac_status=$?
18956 grep -v '^ *+' conftest.er1 >conftest.err
18957 rm -f conftest.er1
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } && {
18961 test -z "$ac_c_werror_flag" ||
18962 test ! -s conftest.err
18963 } && test -s conftest$ac_exeext &&
18964 $as_test_x conftest$ac_exeext; then
18965 eval "$as_ac_var=yes"
18966 else
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 eval "$as_ac_var=no"
18973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18974 conftest$ac_exeext conftest.$ac_ext
18976 ac_res=`eval echo '${'$as_ac_var'}'`
18977 { echo "$as_me:$LINENO: result: $ac_res" >&5
18978 echo "${ECHO_T}$ac_res" >&6; }
18979 if test `eval echo '${'$as_ac_var'}'` = yes; then
18980 cat >>confdefs.h <<_ACEOF
18981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18982 _ACEOF
18983 cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h. */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 #include <unistd.h>
18991 main ()
18993 setpgrp(0,0);
18995 return 0;
18997 _ACEOF
18998 rm -f conftest.$ac_objext
18999 if { (ac_try="$ac_compile"
19000 case "(($ac_try" in
19001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19002 *) ac_try_echo=$ac_try;;
19003 esac
19004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005 (eval "$ac_compile") 2>conftest.er1
19006 ac_status=$?
19007 grep -v '^ *+' conftest.er1 >conftest.err
19008 rm -f conftest.er1
19009 cat conftest.err >&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } && {
19012 test -z "$ac_c_werror_flag" ||
19013 test ! -s conftest.err
19014 } && test -s conftest.$ac_objext; then
19016 cat >>confdefs.h <<\_ACEOF
19017 #define SETPGRP_HAVE_ARG 1
19018 _ACEOF
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19031 done
19034 for ac_func in gettimeofday
19036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042 cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h. */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19050 #define $ac_func innocuous_$ac_func
19052 /* System header to define __stub macros and hopefully few prototypes,
19053 which can conflict with char $ac_func (); below.
19054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19055 <limits.h> exists even on freestanding compilers. */
19057 #ifdef __STDC__
19058 # include <limits.h>
19059 #else
19060 # include <assert.h>
19061 #endif
19063 #undef $ac_func
19065 /* Override any GCC internal prototype to avoid an error.
19066 Use char because int might match the return type of a GCC
19067 builtin and then its argument prototype would still apply. */
19068 #ifdef __cplusplus
19069 extern "C"
19070 #endif
19071 char $ac_func ();
19072 /* The GNU C library defines this for functions which it implements
19073 to always fail with ENOSYS. Some functions are actually named
19074 something starting with __ and the normal name is an alias. */
19075 #if defined __stub_$ac_func || defined __stub___$ac_func
19076 choke me
19077 #endif
19080 main ()
19082 return $ac_func ();
19084 return 0;
19086 _ACEOF
19087 rm -f conftest.$ac_objext conftest$ac_exeext
19088 if { (ac_try="$ac_link"
19089 case "(($ac_try" in
19090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19091 *) ac_try_echo=$ac_try;;
19092 esac
19093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19094 (eval "$ac_link") 2>conftest.er1
19095 ac_status=$?
19096 grep -v '^ *+' conftest.er1 >conftest.err
19097 rm -f conftest.er1
19098 cat conftest.err >&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } && {
19101 test -z "$ac_c_werror_flag" ||
19102 test ! -s conftest.err
19103 } && test -s conftest$ac_exeext &&
19104 $as_test_x conftest$ac_exeext; then
19105 eval "$as_ac_var=yes"
19106 else
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 eval "$as_ac_var=no"
19113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19114 conftest$ac_exeext conftest.$ac_ext
19116 ac_res=`eval echo '${'$as_ac_var'}'`
19117 { echo "$as_me:$LINENO: result: $ac_res" >&5
19118 echo "${ECHO_T}$ac_res" >&6; }
19119 if test `eval echo '${'$as_ac_var'}'` = yes; then
19120 cat >>confdefs.h <<_ACEOF
19121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19122 _ACEOF
19123 cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h. */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <sys/time.h>
19131 main ()
19133 gettimeofday((struct timeval*)0,(struct timezone*)0);
19135 return 0;
19137 _ACEOF
19138 rm -f conftest.$ac_objext
19139 if { (ac_try="$ac_compile"
19140 case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19143 esac
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_compile") 2>conftest.er1
19146 ac_status=$?
19147 grep -v '^ *+' conftest.er1 >conftest.err
19148 rm -f conftest.er1
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } && {
19152 test -z "$ac_c_werror_flag" ||
19153 test ! -s conftest.err
19154 } && test -s conftest.$ac_objext; then
19156 else
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19161 cat >>confdefs.h <<\_ACEOF
19162 #define GETTIMEOFDAY_NO_TZ 1
19163 _ACEOF
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171 done
19174 { echo "$as_me:$LINENO: checking for major" >&5
19175 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19176 cat >conftest.$ac_ext <<_ACEOF
19177 /* confdefs.h. */
19178 _ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h. */
19183 #if defined(MAJOR_IN_MKDEV)
19184 #include <sys/mkdev.h>
19185 #elif defined(MAJOR_IN_SYSMACROS)
19186 #include <sys/sysmacros.h>
19187 #else
19188 #include <sys/types.h>
19189 #endif
19192 main ()
19195 makedev(major(0),minor(0));
19198 return 0;
19200 _ACEOF
19201 rm -f conftest.$ac_objext conftest$ac_exeext
19202 if { (ac_try="$ac_link"
19203 case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19206 esac
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_link") 2>conftest.er1
19209 ac_status=$?
19210 grep -v '^ *+' conftest.er1 >conftest.err
19211 rm -f conftest.er1
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } && {
19215 test -z "$ac_c_werror_flag" ||
19216 test ! -s conftest.err
19217 } && test -s conftest$ac_exeext &&
19218 $as_test_x conftest$ac_exeext; then
19221 cat >>confdefs.h <<\_ACEOF
19222 #define HAVE_DEVICE_MACROS 1
19223 _ACEOF
19225 { echo "$as_me:$LINENO: result: yes" >&5
19226 echo "${ECHO_T}yes" >&6; }
19228 else
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19233 { echo "$as_me:$LINENO: result: no" >&5
19234 echo "${ECHO_T}no" >&6; }
19238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19239 conftest$ac_exeext conftest.$ac_ext
19241 # On OSF/1 V5.1, getaddrinfo is available, but a define
19242 # for [no]getaddrinfo in netdb.h.
19243 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19244 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19252 #include <sys/types.h>
19253 #include <sys/socket.h>
19254 #include <netdb.h>
19255 #include <stdio.h>
19258 main ()
19261 getaddrinfo(NULL, NULL, NULL, NULL);
19264 return 0;
19266 _ACEOF
19267 rm -f conftest.$ac_objext conftest$ac_exeext
19268 if { (ac_try="$ac_link"
19269 case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_link") 2>conftest.er1
19275 ac_status=$?
19276 grep -v '^ *+' conftest.er1 >conftest.err
19277 rm -f conftest.er1
19278 cat conftest.err >&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } && {
19281 test -z "$ac_c_werror_flag" ||
19282 test ! -s conftest.err
19283 } && test -s conftest$ac_exeext &&
19284 $as_test_x conftest$ac_exeext; then
19286 { echo "$as_me:$LINENO: result: yes" >&5
19287 echo "${ECHO_T}yes" >&6; }
19288 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19289 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19290 if test "$cross_compiling" = yes; then
19291 { echo "$as_me:$LINENO: result: buggy" >&5
19292 echo "${ECHO_T}buggy" >&6; }
19293 buggygetaddrinfo=yes
19294 else
19295 cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h. */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19302 #include <sys/types.h>
19303 #include <netdb.h>
19304 #include <string.h>
19305 #include <sys/socket.h>
19306 #include <netinet/in.h>
19308 main()
19310 int passive, gaierr, inet4 = 0, inet6 = 0;
19311 struct addrinfo hints, *ai, *aitop;
19312 char straddr[INET6_ADDRSTRLEN], strport[16];
19314 for (passive = 0; passive <= 1; passive++) {
19315 memset(&hints, 0, sizeof(hints));
19316 hints.ai_family = AF_UNSPEC;
19317 hints.ai_flags = passive ? AI_PASSIVE : 0;
19318 hints.ai_socktype = SOCK_STREAM;
19319 hints.ai_protocol = IPPROTO_TCP;
19320 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19321 (void)gai_strerror(gaierr);
19322 goto bad;
19324 for (ai = aitop; ai; ai = ai->ai_next) {
19325 if (ai->ai_addr == NULL ||
19326 ai->ai_addrlen == 0 ||
19327 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19328 straddr, sizeof(straddr), strport, sizeof(strport),
19329 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19330 goto bad;
19332 switch (ai->ai_family) {
19333 case AF_INET:
19334 if (strcmp(strport, "54321") != 0) {
19335 goto bad;
19337 if (passive) {
19338 if (strcmp(straddr, "0.0.0.0") != 0) {
19339 goto bad;
19341 } else {
19342 if (strcmp(straddr, "127.0.0.1") != 0) {
19343 goto bad;
19346 inet4++;
19347 break;
19348 case AF_INET6:
19349 if (strcmp(strport, "54321") != 0) {
19350 goto bad;
19352 if (passive) {
19353 if (strcmp(straddr, "::") != 0) {
19354 goto bad;
19356 } else {
19357 if (strcmp(straddr, "::1") != 0) {
19358 goto bad;
19361 inet6++;
19362 break;
19363 case AF_UNSPEC:
19364 goto bad;
19365 break;
19366 default:
19367 /* another family support? */
19368 break;
19373 if (!(inet4 == 0 || inet4 == 2))
19374 goto bad;
19375 if (!(inet6 == 0 || inet6 == 2))
19376 goto bad;
19378 if (aitop)
19379 freeaddrinfo(aitop);
19380 exit(0);
19382 bad:
19383 if (aitop)
19384 freeaddrinfo(aitop);
19385 exit(1);
19388 _ACEOF
19389 rm -f conftest$ac_exeext
19390 if { (ac_try="$ac_link"
19391 case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19394 esac
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_link") 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 { echo "$as_me:$LINENO: result: good" >&5
19410 echo "${ECHO_T}good" >&6; }
19411 buggygetaddrinfo=no
19412 else
19413 echo "$as_me: program exited with status $ac_status" >&5
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 ( exit $ac_status )
19418 { echo "$as_me:$LINENO: result: buggy" >&5
19419 echo "${ECHO_T}buggy" >&6; }
19420 buggygetaddrinfo=yes
19422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19426 else
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19431 { echo "$as_me:$LINENO: result: no" >&5
19432 echo "${ECHO_T}no" >&6; }
19433 buggygetaddrinfo=yes
19437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19438 conftest$ac_exeext conftest.$ac_ext
19440 if test "$buggygetaddrinfo" = "yes"; then
19441 if test "$ipv6" = "yes"; then
19442 echo 'Fatal: You must get working getaddrinfo() function.'
19443 echo ' or you can specify "--disable-ipv6"'.
19444 exit 1
19446 else
19448 cat >>confdefs.h <<\_ACEOF
19449 #define HAVE_GETADDRINFO 1
19450 _ACEOF
19454 for ac_func in getnameinfo
19456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462 cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h. */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19470 #define $ac_func innocuous_$ac_func
19472 /* System header to define __stub macros and hopefully few prototypes,
19473 which can conflict with char $ac_func (); below.
19474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19475 <limits.h> exists even on freestanding compilers. */
19477 #ifdef __STDC__
19478 # include <limits.h>
19479 #else
19480 # include <assert.h>
19481 #endif
19483 #undef $ac_func
19485 /* Override any GCC internal prototype to avoid an error.
19486 Use char because int might match the return type of a GCC
19487 builtin and then its argument prototype would still apply. */
19488 #ifdef __cplusplus
19489 extern "C"
19490 #endif
19491 char $ac_func ();
19492 /* The GNU C library defines this for functions which it implements
19493 to always fail with ENOSYS. Some functions are actually named
19494 something starting with __ and the normal name is an alias. */
19495 #if defined __stub_$ac_func || defined __stub___$ac_func
19496 choke me
19497 #endif
19500 main ()
19502 return $ac_func ();
19504 return 0;
19506 _ACEOF
19507 rm -f conftest.$ac_objext conftest$ac_exeext
19508 if { (ac_try="$ac_link"
19509 case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_link") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest$ac_exeext &&
19524 $as_test_x conftest$ac_exeext; then
19525 eval "$as_ac_var=yes"
19526 else
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 eval "$as_ac_var=no"
19533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19534 conftest$ac_exeext conftest.$ac_ext
19536 ac_res=`eval echo '${'$as_ac_var'}'`
19537 { echo "$as_me:$LINENO: result: $ac_res" >&5
19538 echo "${ECHO_T}$ac_res" >&6; }
19539 if test `eval echo '${'$as_ac_var'}'` = yes; then
19540 cat >>confdefs.h <<_ACEOF
19541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19542 _ACEOF
19545 done
19548 # checks for structures
19549 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19550 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19551 if test "${ac_cv_header_time+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 else
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h. */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 #include <sys/types.h>
19561 #include <sys/time.h>
19562 #include <time.h>
19565 main ()
19567 if ((struct tm *) 0)
19568 return 0;
19570 return 0;
19572 _ACEOF
19573 rm -f conftest.$ac_objext
19574 if { (ac_try="$ac_compile"
19575 case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19578 esac
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_compile") 2>conftest.er1
19581 ac_status=$?
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } && {
19587 test -z "$ac_c_werror_flag" ||
19588 test ! -s conftest.err
19589 } && test -s conftest.$ac_objext; then
19590 ac_cv_header_time=yes
19591 else
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_cv_header_time=no
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19600 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19601 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19602 if test $ac_cv_header_time = yes; then
19604 cat >>confdefs.h <<\_ACEOF
19605 #define TIME_WITH_SYS_TIME 1
19606 _ACEOF
19610 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19611 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19612 if test "${ac_cv_struct_tm+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615 cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h. */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 #include <sys/types.h>
19622 #include <time.h>
19625 main ()
19627 struct tm tm;
19628 int *p = &tm.tm_sec;
19629 return !p;
19631 return 0;
19633 _ACEOF
19634 rm -f conftest.$ac_objext
19635 if { (ac_try="$ac_compile"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639 esac
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_compile") 2>conftest.er1
19642 ac_status=$?
19643 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } && {
19648 test -z "$ac_c_werror_flag" ||
19649 test ! -s conftest.err
19650 } && test -s conftest.$ac_objext; then
19651 ac_cv_struct_tm=time.h
19652 else
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ac_cv_struct_tm=sys/time.h
19659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19661 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19662 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19663 if test $ac_cv_struct_tm = sys/time.h; then
19665 cat >>confdefs.h <<\_ACEOF
19666 #define TM_IN_SYS_TIME 1
19667 _ACEOF
19671 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19672 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19673 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #include <sys/types.h>
19683 #include <$ac_cv_struct_tm>
19687 main ()
19689 static struct tm ac_aggr;
19690 if (ac_aggr.tm_zone)
19691 return 0;
19693 return 0;
19695 _ACEOF
19696 rm -f conftest.$ac_objext
19697 if { (ac_try="$ac_compile"
19698 case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19701 esac
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_compile") 2>conftest.er1
19704 ac_status=$?
19705 grep -v '^ *+' conftest.er1 >conftest.err
19706 rm -f conftest.er1
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } && {
19710 test -z "$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19712 } && test -s conftest.$ac_objext; then
19713 ac_cv_member_struct_tm_tm_zone=yes
19714 else
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
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 <sys/types.h>
19725 #include <$ac_cv_struct_tm>
19729 main ()
19731 static struct tm ac_aggr;
19732 if (sizeof ac_aggr.tm_zone)
19733 return 0;
19735 return 0;
19737 _ACEOF
19738 rm -f conftest.$ac_objext
19739 if { (ac_try="$ac_compile"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_compile") 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest.$ac_objext; then
19755 ac_cv_member_struct_tm_tm_zone=yes
19756 else
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 ac_cv_member_struct_tm_tm_zone=no
19763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19769 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19770 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19772 cat >>confdefs.h <<_ACEOF
19773 #define HAVE_STRUCT_TM_TM_ZONE 1
19774 _ACEOF
19779 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19781 cat >>confdefs.h <<\_ACEOF
19782 #define HAVE_TM_ZONE 1
19783 _ACEOF
19785 else
19786 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19787 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19788 if test "${ac_cv_have_decl_tzname+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 else
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h. */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 #include <time.h>
19800 main ()
19802 #ifndef tzname
19803 (void) tzname;
19804 #endif
19807 return 0;
19809 _ACEOF
19810 rm -f conftest.$ac_objext
19811 if { (ac_try="$ac_compile"
19812 case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_compile") 2>conftest.er1
19818 ac_status=$?
19819 grep -v '^ *+' conftest.er1 >conftest.err
19820 rm -f conftest.er1
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } && {
19824 test -z "$ac_c_werror_flag" ||
19825 test ! -s conftest.err
19826 } && test -s conftest.$ac_objext; then
19827 ac_cv_have_decl_tzname=yes
19828 else
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 ac_cv_have_decl_tzname=no
19835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19837 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19838 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19839 if test $ac_cv_have_decl_tzname = yes; then
19841 cat >>confdefs.h <<_ACEOF
19842 #define HAVE_DECL_TZNAME 1
19843 _ACEOF
19846 else
19847 cat >>confdefs.h <<_ACEOF
19848 #define HAVE_DECL_TZNAME 0
19849 _ACEOF
19855 { echo "$as_me:$LINENO: checking for tzname" >&5
19856 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19857 if test "${ac_cv_var_tzname+set}" = set; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 else
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h. */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 #include <time.h>
19867 #if !HAVE_DECL_TZNAME
19868 extern char *tzname[];
19869 #endif
19872 main ()
19874 return tzname[0][0];
19876 return 0;
19878 _ACEOF
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_link") 2>conftest.er1
19887 ac_status=$?
19888 grep -v '^ *+' conftest.er1 >conftest.err
19889 rm -f conftest.er1
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } && {
19893 test -z "$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19895 } && test -s conftest$ac_exeext &&
19896 $as_test_x conftest$ac_exeext; then
19897 ac_cv_var_tzname=yes
19898 else
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_cv_var_tzname=no
19905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19906 conftest$ac_exeext conftest.$ac_ext
19908 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19909 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19910 if test $ac_cv_var_tzname = yes; then
19912 cat >>confdefs.h <<\_ACEOF
19913 #define HAVE_TZNAME 1
19914 _ACEOF
19919 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19920 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19921 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923 else
19924 cat >conftest.$ac_ext <<_ACEOF
19925 /* confdefs.h. */
19926 _ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h. */
19930 $ac_includes_default
19932 main ()
19934 static struct stat ac_aggr;
19935 if (ac_aggr.st_rdev)
19936 return 0;
19938 return 0;
19940 _ACEOF
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_compile") 2>conftest.er1
19949 ac_status=$?
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } && {
19955 test -z "$ac_c_werror_flag" ||
19956 test ! -s conftest.err
19957 } && test -s conftest.$ac_objext; then
19958 ac_cv_member_struct_stat_st_rdev=yes
19959 else
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h. */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19969 $ac_includes_default
19971 main ()
19973 static struct stat ac_aggr;
19974 if (sizeof ac_aggr.st_rdev)
19975 return 0;
19977 return 0;
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_compile") 2>conftest.er1
19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest.$ac_objext; then
19997 ac_cv_member_struct_stat_st_rdev=yes
19998 else
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_member_struct_stat_st_rdev=no
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20011 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20012 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20014 cat >>confdefs.h <<_ACEOF
20015 #define HAVE_STRUCT_STAT_ST_RDEV 1
20016 _ACEOF
20021 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20022 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20023 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 $ac_includes_default
20034 main ()
20036 static struct stat ac_aggr;
20037 if (ac_aggr.st_blksize)
20038 return 0;
20040 return 0;
20042 _ACEOF
20043 rm -f conftest.$ac_objext
20044 if { (ac_try="$ac_compile"
20045 case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20048 esac
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_compile") 2>conftest.er1
20051 ac_status=$?
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } && {
20057 test -z "$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20059 } && test -s conftest.$ac_objext; then
20060 ac_cv_member_struct_stat_st_blksize=yes
20061 else
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h. */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 $ac_includes_default
20073 main ()
20075 static struct stat ac_aggr;
20076 if (sizeof ac_aggr.st_blksize)
20077 return 0;
20079 return 0;
20081 _ACEOF
20082 rm -f conftest.$ac_objext
20083 if { (ac_try="$ac_compile"
20084 case "(($ac_try" in
20085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086 *) ac_try_echo=$ac_try;;
20087 esac
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20090 ac_status=$?
20091 grep -v '^ *+' conftest.er1 >conftest.err
20092 rm -f conftest.er1
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } && {
20096 test -z "$ac_c_werror_flag" ||
20097 test ! -s conftest.err
20098 } && test -s conftest.$ac_objext; then
20099 ac_cv_member_struct_stat_st_blksize=yes
20100 else
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 ac_cv_member_struct_stat_st_blksize=no
20107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20113 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20114 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20116 cat >>confdefs.h <<_ACEOF
20117 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20118 _ACEOF
20123 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20124 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20125 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128 cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h. */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 $ac_includes_default
20136 main ()
20138 static struct stat ac_aggr;
20139 if (ac_aggr.st_flags)
20140 return 0;
20142 return 0;
20144 _ACEOF
20145 rm -f conftest.$ac_objext
20146 if { (ac_try="$ac_compile"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_compile") 2>conftest.er1
20153 ac_status=$?
20154 grep -v '^ *+' conftest.er1 >conftest.err
20155 rm -f conftest.er1
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } && {
20159 test -z "$ac_c_werror_flag" ||
20160 test ! -s conftest.err
20161 } && test -s conftest.$ac_objext; then
20162 ac_cv_member_struct_stat_st_flags=yes
20163 else
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h. */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 $ac_includes_default
20175 main ()
20177 static struct stat ac_aggr;
20178 if (sizeof ac_aggr.st_flags)
20179 return 0;
20181 return 0;
20183 _ACEOF
20184 rm -f conftest.$ac_objext
20185 if { (ac_try="$ac_compile"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189 esac
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_compile") 2>conftest.er1
20192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest.$ac_objext; then
20201 ac_cv_member_struct_stat_st_flags=yes
20202 else
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 ac_cv_member_struct_stat_st_flags=no
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20214 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20215 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20216 if test $ac_cv_member_struct_stat_st_flags = yes; then
20218 cat >>confdefs.h <<_ACEOF
20219 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20220 _ACEOF
20225 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20226 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20227 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 else
20230 cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h. */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236 $ac_includes_default
20238 main ()
20240 static struct stat ac_aggr;
20241 if (ac_aggr.st_gen)
20242 return 0;
20244 return 0;
20246 _ACEOF
20247 rm -f conftest.$ac_objext
20248 if { (ac_try="$ac_compile"
20249 case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20252 esac
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_compile") 2>conftest.er1
20255 ac_status=$?
20256 grep -v '^ *+' conftest.er1 >conftest.err
20257 rm -f conftest.er1
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && {
20261 test -z "$ac_c_werror_flag" ||
20262 test ! -s conftest.err
20263 } && test -s conftest.$ac_objext; then
20264 ac_cv_member_struct_stat_st_gen=yes
20265 else
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h. */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 $ac_includes_default
20277 main ()
20279 static struct stat ac_aggr;
20280 if (sizeof ac_aggr.st_gen)
20281 return 0;
20283 return 0;
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_compile") 2>conftest.er1
20294 ac_status=$?
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest.$ac_objext; then
20303 ac_cv_member_struct_stat_st_gen=yes
20304 else
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20308 ac_cv_member_struct_stat_st_gen=no
20311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20316 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20317 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20318 if test $ac_cv_member_struct_stat_st_gen = yes; then
20320 cat >>confdefs.h <<_ACEOF
20321 #define HAVE_STRUCT_STAT_ST_GEN 1
20322 _ACEOF
20327 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20328 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20329 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332 cat >conftest.$ac_ext <<_ACEOF
20333 /* confdefs.h. */
20334 _ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h. */
20338 $ac_includes_default
20340 main ()
20342 static struct stat ac_aggr;
20343 if (ac_aggr.st_birthtime)
20344 return 0;
20346 return 0;
20348 _ACEOF
20349 rm -f conftest.$ac_objext
20350 if { (ac_try="$ac_compile"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_compile") 2>conftest.er1
20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest.$ac_objext; then
20366 ac_cv_member_struct_stat_st_birthtime=yes
20367 else
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h. */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 $ac_includes_default
20379 main ()
20381 static struct stat ac_aggr;
20382 if (sizeof ac_aggr.st_birthtime)
20383 return 0;
20385 return 0;
20387 _ACEOF
20388 rm -f conftest.$ac_objext
20389 if { (ac_try="$ac_compile"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_compile") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest.$ac_objext; then
20405 ac_cv_member_struct_stat_st_birthtime=yes
20406 else
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_cv_member_struct_stat_st_birthtime=no
20413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20419 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20420 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20422 cat >>confdefs.h <<_ACEOF
20423 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20424 _ACEOF
20429 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20430 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20431 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434 cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h. */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20440 $ac_includes_default
20442 main ()
20444 static struct stat ac_aggr;
20445 if (ac_aggr.st_blocks)
20446 return 0;
20448 return 0;
20450 _ACEOF
20451 rm -f conftest.$ac_objext
20452 if { (ac_try="$ac_compile"
20453 case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20456 esac
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_compile") 2>conftest.er1
20459 ac_status=$?
20460 grep -v '^ *+' conftest.er1 >conftest.err
20461 rm -f conftest.er1
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } && {
20465 test -z "$ac_c_werror_flag" ||
20466 test ! -s conftest.err
20467 } && test -s conftest.$ac_objext; then
20468 ac_cv_member_struct_stat_st_blocks=yes
20469 else
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h. */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 $ac_includes_default
20481 main ()
20483 static struct stat ac_aggr;
20484 if (sizeof ac_aggr.st_blocks)
20485 return 0;
20487 return 0;
20489 _ACEOF
20490 rm -f conftest.$ac_objext
20491 if { (ac_try="$ac_compile"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_compile") 2>conftest.er1
20498 ac_status=$?
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest.$ac_objext; then
20507 ac_cv_member_struct_stat_st_blocks=yes
20508 else
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_member_struct_stat_st_blocks=no
20515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20520 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20521 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20522 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20526 _ACEOF
20529 cat >>confdefs.h <<\_ACEOF
20530 #define HAVE_ST_BLOCKS 1
20531 _ACEOF
20533 else
20534 case " $LIBOBJS " in
20535 *" fileblocks.$ac_objext "* ) ;;
20536 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20538 esac
20544 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20545 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20546 if test "${ac_cv_header_time_altzone+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549 cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h. */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20555 #include <time.h>
20557 main ()
20559 return altzone;
20561 return 0;
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (ac_try="$ac_compile"
20566 case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_compile") 2>conftest.er1
20572 ac_status=$?
20573 grep -v '^ *+' conftest.er1 >conftest.err
20574 rm -f conftest.er1
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } && {
20578 test -z "$ac_c_werror_flag" ||
20579 test ! -s conftest.err
20580 } && test -s conftest.$ac_objext; then
20581 ac_cv_header_time_altzone=yes
20582 else
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20586 ac_cv_header_time_altzone=no
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20593 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20594 if test $ac_cv_header_time_altzone = yes; then
20596 cat >>confdefs.h <<\_ACEOF
20597 #define HAVE_ALTZONE 1
20598 _ACEOF
20602 was_it_defined=no
20603 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20604 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20605 cat >conftest.$ac_ext <<_ACEOF
20606 /* confdefs.h. */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20612 #include <sys/types.h>
20613 #include <sys/select.h>
20614 #include <sys/time.h>
20617 main ()
20621 return 0;
20623 _ACEOF
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_compile") 2>conftest.er1
20632 ac_status=$?
20633 grep -v '^ *+' conftest.er1 >conftest.err
20634 rm -f conftest.er1
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } && {
20638 test -z "$ac_c_werror_flag" ||
20639 test ! -s conftest.err
20640 } && test -s conftest.$ac_objext; then
20643 cat >>confdefs.h <<\_ACEOF
20644 #define SYS_SELECT_WITH_SYS_TIME 1
20645 _ACEOF
20647 was_it_defined=yes
20649 else
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20657 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20658 echo "${ECHO_T}$was_it_defined" >&6; }
20660 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20661 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20662 if test "${ac_cv_struct_addrinfo+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 else
20665 cat >conftest.$ac_ext <<_ACEOF
20666 /* confdefs.h. */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20672 # include <netdb.h>
20674 main ()
20676 struct addrinfo a
20678 return 0;
20680 _ACEOF
20681 rm -f conftest.$ac_objext
20682 if { (ac_try="$ac_compile"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_compile") 2>conftest.er1
20689 ac_status=$?
20690 grep -v '^ *+' conftest.er1 >conftest.err
20691 rm -f conftest.er1
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && {
20695 test -z "$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20697 } && test -s conftest.$ac_objext; then
20698 ac_cv_struct_addrinfo=yes
20699 else
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 ac_cv_struct_addrinfo=no
20706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20709 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20710 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20711 if test $ac_cv_struct_addrinfo = yes; then
20713 cat >>confdefs.h <<\_ACEOF
20714 #define HAVE_ADDRINFO 1
20715 _ACEOF
20719 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20720 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20721 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 else
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20731 # include <sys/types.h>
20732 # include <sys/socket.h>
20734 main ()
20736 struct sockaddr_storage s
20738 return 0;
20740 _ACEOF
20741 rm -f conftest.$ac_objext
20742 if { (ac_try="$ac_compile"
20743 case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_compile") 2>conftest.er1
20749 ac_status=$?
20750 grep -v '^ *+' conftest.er1 >conftest.err
20751 rm -f conftest.er1
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && {
20755 test -z "$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20757 } && test -s conftest.$ac_objext; then
20758 ac_cv_struct_sockaddr_storage=yes
20759 else
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ac_cv_struct_sockaddr_storage=no
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20769 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20770 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20771 if test $ac_cv_struct_sockaddr_storage = yes; then
20773 cat >>confdefs.h <<\_ACEOF
20774 #define HAVE_SOCKADDR_STORAGE 1
20775 _ACEOF
20779 # checks for compiler characteristics
20782 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20783 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20784 if test "${ac_cv_c_char_unsigned+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787 cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h. */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 $ac_includes_default
20795 main ()
20797 static int test_array [1 - 2 * !(((char) -1) < 0)];
20798 test_array [0] = 0
20801 return 0;
20803 _ACEOF
20804 rm -f conftest.$ac_objext
20805 if { (ac_try="$ac_compile"
20806 case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_compile") 2>conftest.er1
20812 ac_status=$?
20813 grep -v '^ *+' conftest.er1 >conftest.err
20814 rm -f conftest.er1
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } && {
20818 test -z "$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 } && test -s conftest.$ac_objext; then
20821 ac_cv_c_char_unsigned=no
20822 else
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 ac_cv_c_char_unsigned=yes
20829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20831 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20832 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20833 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20834 cat >>confdefs.h <<\_ACEOF
20835 #define __CHAR_UNSIGNED__ 1
20836 _ACEOF
20840 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20841 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20842 if test "${ac_cv_c_const+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 else
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h. */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20853 main ()
20855 /* FIXME: Include the comments suggested by Paul. */
20856 #ifndef __cplusplus
20857 /* Ultrix mips cc rejects this. */
20858 typedef int charset[2];
20859 const charset cs;
20860 /* SunOS 4.1.1 cc rejects this. */
20861 char const *const *pcpcc;
20862 char **ppc;
20863 /* NEC SVR4.0.2 mips cc rejects this. */
20864 struct point {int x, y;};
20865 static struct point const zero = {0,0};
20866 /* AIX XL C 1.02.0.0 rejects this.
20867 It does not let you subtract one const X* pointer from another in
20868 an arm of an if-expression whose if-part is not a constant
20869 expression */
20870 const char *g = "string";
20871 pcpcc = &g + (g ? g-g : 0);
20872 /* HPUX 7.0 cc rejects these. */
20873 ++pcpcc;
20874 ppc = (char**) pcpcc;
20875 pcpcc = (char const *const *) ppc;
20876 { /* SCO 3.2v4 cc rejects this. */
20877 char *t;
20878 char const *s = 0 ? (char *) 0 : (char const *) 0;
20880 *t++ = 0;
20881 if (s) return 0;
20883 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20884 int x[] = {25, 17};
20885 const int *foo = &x[0];
20886 ++foo;
20888 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20889 typedef const int *iptr;
20890 iptr p = 0;
20891 ++p;
20893 { /* AIX XL C 1.02.0.0 rejects this saying
20894 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20895 struct s { int j; const int *ap[3]; };
20896 struct s *b; b->j = 5;
20898 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20899 const int foo = 10;
20900 if (!foo) return 0;
20902 return !cs[0] && !zero.x;
20903 #endif
20906 return 0;
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest.$ac_objext; then
20926 ac_cv_c_const=yes
20927 else
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 ac_cv_c_const=no
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20937 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20938 if test $ac_cv_c_const = no; then
20940 cat >>confdefs.h <<\_ACEOF
20941 #define const
20942 _ACEOF
20947 works=no
20948 { echo "$as_me:$LINENO: checking for working volatile" >&5
20949 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h. */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20958 main ()
20960 volatile int x; x = 0;
20962 return 0;
20964 _ACEOF
20965 rm -f conftest.$ac_objext
20966 if { (ac_try="$ac_compile"
20967 case "(($ac_try" in
20968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969 *) ac_try_echo=$ac_try;;
20970 esac
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972 (eval "$ac_compile") 2>conftest.er1
20973 ac_status=$?
20974 grep -v '^ *+' conftest.er1 >conftest.err
20975 rm -f conftest.er1
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } && {
20979 test -z "$ac_c_werror_flag" ||
20980 test ! -s conftest.err
20981 } && test -s conftest.$ac_objext; then
20982 works=yes
20983 else
20984 echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20988 cat >>confdefs.h <<\_ACEOF
20989 #define volatile
20990 _ACEOF
20995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 { echo "$as_me:$LINENO: result: $works" >&5
20997 echo "${ECHO_T}$works" >&6; }
20999 works=no
21000 { echo "$as_me:$LINENO: checking for working signed char" >&5
21001 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
21002 cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h. */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21010 main ()
21012 signed char c;
21014 return 0;
21016 _ACEOF
21017 rm -f conftest.$ac_objext
21018 if { (ac_try="$ac_compile"
21019 case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21022 esac
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_compile") 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest.$ac_objext; then
21034 works=yes
21035 else
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21040 cat >>confdefs.h <<\_ACEOF
21041 #define signed
21042 _ACEOF
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result: $works" >&5
21049 echo "${ECHO_T}$works" >&6; }
21051 have_prototypes=no
21052 { echo "$as_me:$LINENO: checking for prototypes" >&5
21053 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 int foo(int x) { return 0; }
21062 main ()
21064 return foo(10);
21066 return 0;
21068 _ACEOF
21069 rm -f conftest.$ac_objext
21070 if { (ac_try="$ac_compile"
21071 case "(($ac_try" in
21072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073 *) ac_try_echo=$ac_try;;
21074 esac
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076 (eval "$ac_compile") 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } && {
21083 test -z "$ac_c_werror_flag" ||
21084 test ! -s conftest.err
21085 } && test -s conftest.$ac_objext; then
21088 cat >>confdefs.h <<\_ACEOF
21089 #define HAVE_PROTOTYPES 1
21090 _ACEOF
21092 have_prototypes=yes
21094 else
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21103 echo "${ECHO_T}$have_prototypes" >&6; }
21105 works=no
21106 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21107 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21108 cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h. */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21115 #include <stdarg.h>
21116 int foo(int x, ...) {
21117 va_list va;
21118 va_start(va, x);
21119 va_arg(va, int);
21120 va_arg(va, char *);
21121 va_arg(va, double);
21122 return 0;
21126 main ()
21128 return foo(10, "", 3.14);
21130 return 0;
21132 _ACEOF
21133 rm -f conftest.$ac_objext
21134 if { (ac_try="$ac_compile"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_compile") 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && {
21147 test -z "$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 } && test -s conftest.$ac_objext; then
21152 cat >>confdefs.h <<\_ACEOF
21153 #define HAVE_STDARG_PROTOTYPES 1
21154 _ACEOF
21156 works=yes
21158 else
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166 { echo "$as_me:$LINENO: result: $works" >&5
21167 echo "${ECHO_T}$works" >&6; }
21169 # check for socketpair
21170 { echo "$as_me:$LINENO: checking for socketpair" >&5
21171 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h. */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21179 #include <sys/types.h>
21180 #include <sys/socket.h>
21183 main ()
21185 void *x=socketpair
21187 return 0;
21189 _ACEOF
21190 rm -f conftest.$ac_objext
21191 if { (ac_try="$ac_compile"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195 esac
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_compile") 2>conftest.er1
21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest.$ac_objext; then
21208 cat >>confdefs.h <<\_ACEOF
21209 #define HAVE_SOCKETPAIR 1
21210 _ACEOF
21212 { echo "$as_me:$LINENO: result: yes" >&5
21213 echo "${ECHO_T}yes" >&6; }
21214 else
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 { echo "$as_me:$LINENO: result: no" >&5
21219 echo "${ECHO_T}no" >&6; }
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 # check if sockaddr has sa_len member
21226 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21227 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h. */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 #include <sys/types.h>
21235 #include <sys/socket.h>
21237 main ()
21239 struct sockaddr x;
21240 x.sa_len = 0;
21242 return 0;
21244 _ACEOF
21245 rm -f conftest.$ac_objext
21246 if { (ac_try="$ac_compile"
21247 case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21250 esac
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252 (eval "$ac_compile") 2>conftest.er1
21253 ac_status=$?
21254 grep -v '^ *+' conftest.er1 >conftest.err
21255 rm -f conftest.er1
21256 cat conftest.err >&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } && {
21259 test -z "$ac_c_werror_flag" ||
21260 test ! -s conftest.err
21261 } && test -s conftest.$ac_objext; then
21262 { echo "$as_me:$LINENO: result: yes" >&5
21263 echo "${ECHO_T}yes" >&6; }
21265 cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_SOCKADDR_SA_LEN 1
21267 _ACEOF
21269 else
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21273 { echo "$as_me:$LINENO: result: no" >&5
21274 echo "${ECHO_T}no" >&6; }
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279 va_list_is_array=no
21280 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21281 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21282 cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h. */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21289 #ifdef HAVE_STDARG_PROTOTYPES
21290 #include <stdarg.h>
21291 #else
21292 #include <varargs.h>
21293 #endif
21296 main ()
21298 va_list list1, list2; list1 = list2;
21300 return 0;
21302 _ACEOF
21303 rm -f conftest.$ac_objext
21304 if { (ac_try="$ac_compile"
21305 case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21308 esac
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_compile") 2>conftest.er1
21311 ac_status=$?
21312 grep -v '^ *+' conftest.er1 >conftest.err
21313 rm -f conftest.er1
21314 cat conftest.err >&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && {
21317 test -z "$ac_c_werror_flag" ||
21318 test ! -s conftest.err
21319 } && test -s conftest.$ac_objext; then
21321 else
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21327 cat >>confdefs.h <<\_ACEOF
21328 #define VA_LIST_IS_ARRAY 1
21329 _ACEOF
21331 va_list_is_array=yes
21335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21336 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21337 echo "${ECHO_T}$va_list_is_array" >&6; }
21339 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21343 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21344 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21345 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21348 cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h. */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21356 #define gethostbyname_r innocuous_gethostbyname_r
21358 /* System header to define __stub macros and hopefully few prototypes,
21359 which can conflict with char gethostbyname_r (); below.
21360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21361 <limits.h> exists even on freestanding compilers. */
21363 #ifdef __STDC__
21364 # include <limits.h>
21365 #else
21366 # include <assert.h>
21367 #endif
21369 #undef gethostbyname_r
21371 /* Override any GCC internal prototype to avoid an error.
21372 Use char because int might match the return type of a GCC
21373 builtin and then its argument prototype would still apply. */
21374 #ifdef __cplusplus
21375 extern "C"
21376 #endif
21377 char gethostbyname_r ();
21378 /* The GNU C library defines this for functions which it implements
21379 to always fail with ENOSYS. Some functions are actually named
21380 something starting with __ and the normal name is an alias. */
21381 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21382 choke me
21383 #endif
21386 main ()
21388 return gethostbyname_r ();
21390 return 0;
21392 _ACEOF
21393 rm -f conftest.$ac_objext conftest$ac_exeext
21394 if { (ac_try="$ac_link"
21395 case "(($ac_try" in
21396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397 *) ac_try_echo=$ac_try;;
21398 esac
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400 (eval "$ac_link") 2>conftest.er1
21401 ac_status=$?
21402 grep -v '^ *+' conftest.er1 >conftest.err
21403 rm -f conftest.er1
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } && {
21407 test -z "$ac_c_werror_flag" ||
21408 test ! -s conftest.err
21409 } && test -s conftest$ac_exeext &&
21410 $as_test_x conftest$ac_exeext; then
21411 ac_cv_func_gethostbyname_r=yes
21412 else
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21416 ac_cv_func_gethostbyname_r=no
21419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21420 conftest$ac_exeext conftest.$ac_ext
21422 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21423 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21424 if test $ac_cv_func_gethostbyname_r = yes; then
21426 cat >>confdefs.h <<\_ACEOF
21427 #define HAVE_GETHOSTBYNAME_R 1
21428 _ACEOF
21430 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21431 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21432 OLD_CFLAGS=$CFLAGS
21433 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21434 cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h. */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21441 # include <netdb.h>
21444 main ()
21447 char *name;
21448 struct hostent *he, *res;
21449 char buffer[2048];
21450 int buflen = 2048;
21451 int h_errnop;
21453 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21456 return 0;
21458 _ACEOF
21459 rm -f conftest.$ac_objext
21460 if { (ac_try="$ac_compile"
21461 case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_compile") 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } && {
21473 test -z "$ac_c_werror_flag" ||
21474 test ! -s conftest.err
21475 } && test -s conftest.$ac_objext; then
21477 cat >>confdefs.h <<\_ACEOF
21478 #define HAVE_GETHOSTBYNAME_R 1
21479 _ACEOF
21482 cat >>confdefs.h <<\_ACEOF
21483 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21484 _ACEOF
21486 { echo "$as_me:$LINENO: result: yes" >&5
21487 echo "${ECHO_T}yes" >&6; }
21489 else
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21494 { echo "$as_me:$LINENO: result: no" >&5
21495 echo "${ECHO_T}no" >&6; }
21496 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21497 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21498 cat >conftest.$ac_ext <<_ACEOF
21499 /* confdefs.h. */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21505 # include <netdb.h>
21508 main ()
21511 char *name;
21512 struct hostent *he;
21513 char buffer[2048];
21514 int buflen = 2048;
21515 int h_errnop;
21517 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21520 return 0;
21522 _ACEOF
21523 rm -f conftest.$ac_objext
21524 if { (ac_try="$ac_compile"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21528 esac
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_compile") 2>conftest.er1
21531 ac_status=$?
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest.$ac_objext; then
21541 cat >>confdefs.h <<\_ACEOF
21542 #define HAVE_GETHOSTBYNAME_R 1
21543 _ACEOF
21546 cat >>confdefs.h <<\_ACEOF
21547 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21548 _ACEOF
21550 { echo "$as_me:$LINENO: result: yes" >&5
21551 echo "${ECHO_T}yes" >&6; }
21553 else
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21558 { echo "$as_me:$LINENO: result: no" >&5
21559 echo "${ECHO_T}no" >&6; }
21560 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21561 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21562 cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h. */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21569 # include <netdb.h>
21572 main ()
21575 char *name;
21576 struct hostent *he;
21577 struct hostent_data data;
21579 (void) gethostbyname_r(name, he, &data);
21582 return 0;
21584 _ACEOF
21585 rm -f conftest.$ac_objext
21586 if { (ac_try="$ac_compile"
21587 case "(($ac_try" in
21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589 *) ac_try_echo=$ac_try;;
21590 esac
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_compile") 2>conftest.er1
21593 ac_status=$?
21594 grep -v '^ *+' conftest.er1 >conftest.err
21595 rm -f conftest.er1
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } && {
21599 test -z "$ac_c_werror_flag" ||
21600 test ! -s conftest.err
21601 } && test -s conftest.$ac_objext; then
21603 cat >>confdefs.h <<\_ACEOF
21604 #define HAVE_GETHOSTBYNAME_R 1
21605 _ACEOF
21608 cat >>confdefs.h <<\_ACEOF
21609 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21610 _ACEOF
21612 { echo "$as_me:$LINENO: result: yes" >&5
21613 echo "${ECHO_T}yes" >&6; }
21615 else
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21620 { echo "$as_me:$LINENO: result: no" >&5
21621 echo "${ECHO_T}no" >&6; }
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21634 CFLAGS=$OLD_CFLAGS
21636 else
21639 for ac_func in gethostbyname
21641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 else
21647 cat >conftest.$ac_ext <<_ACEOF
21648 /* confdefs.h. */
21649 _ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21655 #define $ac_func innocuous_$ac_func
21657 /* System header to define __stub macros and hopefully few prototypes,
21658 which can conflict with char $ac_func (); below.
21659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21660 <limits.h> exists even on freestanding compilers. */
21662 #ifdef __STDC__
21663 # include <limits.h>
21664 #else
21665 # include <assert.h>
21666 #endif
21668 #undef $ac_func
21670 /* Override any GCC internal prototype to avoid an error.
21671 Use char because int might match the return type of a GCC
21672 builtin and then its argument prototype would still apply. */
21673 #ifdef __cplusplus
21674 extern "C"
21675 #endif
21676 char $ac_func ();
21677 /* The GNU C library defines this for functions which it implements
21678 to always fail with ENOSYS. Some functions are actually named
21679 something starting with __ and the normal name is an alias. */
21680 #if defined __stub_$ac_func || defined __stub___$ac_func
21681 choke me
21682 #endif
21685 main ()
21687 return $ac_func ();
21689 return 0;
21691 _ACEOF
21692 rm -f conftest.$ac_objext conftest$ac_exeext
21693 if { (ac_try="$ac_link"
21694 case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21697 esac
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_link") 2>conftest.er1
21700 ac_status=$?
21701 grep -v '^ *+' conftest.er1 >conftest.err
21702 rm -f conftest.er1
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } && {
21706 test -z "$ac_c_werror_flag" ||
21707 test ! -s conftest.err
21708 } && test -s conftest$ac_exeext &&
21709 $as_test_x conftest$ac_exeext; then
21710 eval "$as_ac_var=yes"
21711 else
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 eval "$as_ac_var=no"
21718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21719 conftest$ac_exeext conftest.$ac_ext
21721 ac_res=`eval echo '${'$as_ac_var'}'`
21722 { echo "$as_me:$LINENO: result: $ac_res" >&5
21723 echo "${ECHO_T}$ac_res" >&6; }
21724 if test `eval echo '${'$as_ac_var'}'` = yes; then
21725 cat >>confdefs.h <<_ACEOF
21726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21727 _ACEOF
21730 done
21741 # checks for system services
21742 # (none yet)
21744 # Linux requires this for correct f.p. operations
21745 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21746 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21747 if test "${ac_cv_func___fpu_control+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750 cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h. */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21758 #define __fpu_control innocuous___fpu_control
21760 /* System header to define __stub macros and hopefully few prototypes,
21761 which can conflict with char __fpu_control (); below.
21762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21763 <limits.h> exists even on freestanding compilers. */
21765 #ifdef __STDC__
21766 # include <limits.h>
21767 #else
21768 # include <assert.h>
21769 #endif
21771 #undef __fpu_control
21773 /* Override any GCC internal prototype to avoid an error.
21774 Use char because int might match the return type of a GCC
21775 builtin and then its argument prototype would still apply. */
21776 #ifdef __cplusplus
21777 extern "C"
21778 #endif
21779 char __fpu_control ();
21780 /* The GNU C library defines this for functions which it implements
21781 to always fail with ENOSYS. Some functions are actually named
21782 something starting with __ and the normal name is an alias. */
21783 #if defined __stub___fpu_control || defined __stub_____fpu_control
21784 choke me
21785 #endif
21788 main ()
21790 return __fpu_control ();
21792 return 0;
21794 _ACEOF
21795 rm -f conftest.$ac_objext conftest$ac_exeext
21796 if { (ac_try="$ac_link"
21797 case "(($ac_try" in
21798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21799 *) ac_try_echo=$ac_try;;
21800 esac
21801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21802 (eval "$ac_link") 2>conftest.er1
21803 ac_status=$?
21804 grep -v '^ *+' conftest.er1 >conftest.err
21805 rm -f conftest.er1
21806 cat conftest.err >&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest$ac_exeext &&
21812 $as_test_x conftest$ac_exeext; then
21813 ac_cv_func___fpu_control=yes
21814 else
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 ac_cv_func___fpu_control=no
21821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21822 conftest$ac_exeext conftest.$ac_ext
21824 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21825 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21826 if test $ac_cv_func___fpu_control = yes; then
21828 else
21830 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21831 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21832 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835 ac_check_lib_save_LIBS=$LIBS
21836 LIBS="-lieee $LIBS"
21837 cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h. */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21844 /* Override any GCC internal prototype to avoid an error.
21845 Use char because int might match the return type of a GCC
21846 builtin and then its argument prototype would still apply. */
21847 #ifdef __cplusplus
21848 extern "C"
21849 #endif
21850 char __fpu_control ();
21852 main ()
21854 return __fpu_control ();
21856 return 0;
21858 _ACEOF
21859 rm -f conftest.$ac_objext conftest$ac_exeext
21860 if { (ac_try="$ac_link"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864 esac
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_link") 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest$ac_exeext &&
21876 $as_test_x conftest$ac_exeext; then
21877 ac_cv_lib_ieee___fpu_control=yes
21878 else
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21882 ac_cv_lib_ieee___fpu_control=no
21885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21886 conftest$ac_exeext conftest.$ac_ext
21887 LIBS=$ac_check_lib_save_LIBS
21889 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21890 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21891 if test $ac_cv_lib_ieee___fpu_control = yes; then
21892 cat >>confdefs.h <<_ACEOF
21893 #define HAVE_LIBIEEE 1
21894 _ACEOF
21896 LIBS="-lieee $LIBS"
21904 # Check for --with-fpectl
21905 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21906 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21908 # Check whether --with-fpectl was given.
21909 if test "${with_fpectl+set}" = set; then
21910 withval=$with_fpectl;
21911 if test "$withval" != no
21912 then
21914 cat >>confdefs.h <<\_ACEOF
21915 #define WANT_SIGFPE_HANDLER 1
21916 _ACEOF
21918 { echo "$as_me:$LINENO: result: yes" >&5
21919 echo "${ECHO_T}yes" >&6; }
21920 else { echo "$as_me:$LINENO: result: no" >&5
21921 echo "${ECHO_T}no" >&6; }
21923 else
21924 { echo "$as_me:$LINENO: result: no" >&5
21925 echo "${ECHO_T}no" >&6; }
21929 # check for --with-libm=...
21931 case $ac_sys_system in
21932 Darwin) ;;
21933 *) LIBM=-lm
21934 esac
21935 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21936 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21938 # Check whether --with-libm was given.
21939 if test "${with_libm+set}" = set; then
21940 withval=$with_libm;
21941 if test "$withval" = no
21942 then LIBM=
21943 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21944 echo "${ECHO_T}force LIBM empty" >&6; }
21945 elif test "$withval" != yes
21946 then LIBM=$withval
21947 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21948 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21949 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21950 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21951 { (exit 1); exit 1; }; }
21953 else
21954 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21955 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21959 # check for --with-libc=...
21961 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21962 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21964 # Check whether --with-libc was given.
21965 if test "${with_libc+set}" = set; then
21966 withval=$with_libc;
21967 if test "$withval" = no
21968 then LIBC=
21969 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21970 echo "${ECHO_T}force LIBC empty" >&6; }
21971 elif test "$withval" != yes
21972 then LIBC=$withval
21973 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21974 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21975 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21976 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21977 { (exit 1); exit 1; }; }
21979 else
21980 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21981 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21985 # **************************************************
21986 # * Check for various properties of floating point *
21987 # **************************************************
21989 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
21990 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
21991 if test "${ac_cv_little_endian_double+set}" = set; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 else
21995 if test "$cross_compiling" = yes; then
21996 ac_cv_little_endian_double=no
21997 else
21998 cat >conftest.$ac_ext <<_ACEOF
21999 /* confdefs.h. */
22000 _ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22005 #include <string.h>
22006 int main() {
22007 double x = 9006104071832581.0;
22008 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
22009 return 0;
22010 else
22011 return 1;
22014 _ACEOF
22015 rm -f conftest$ac_exeext
22016 if { (ac_try="$ac_link"
22017 case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22020 esac
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_link") 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22026 { (case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22029 esac
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_try") 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 ac_cv_little_endian_double=yes
22036 else
22037 echo "$as_me: program exited with status $ac_status" >&5
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ( exit $ac_status )
22042 ac_cv_little_endian_double=no
22044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22050 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22051 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
22052 if test "$ac_cv_little_endian_double" = yes
22053 then
22055 cat >>confdefs.h <<\_ACEOF
22056 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22057 _ACEOF
22061 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22062 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
22063 if test "${ac_cv_big_endian_double+set}" = set; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22065 else
22067 if test "$cross_compiling" = yes; then
22068 ac_cv_big_endian_double=no
22069 else
22070 cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h. */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22077 #include <string.h>
22078 int main() {
22079 double x = 9006104071832581.0;
22080 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22081 return 0;
22082 else
22083 return 1;
22086 _ACEOF
22087 rm -f conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_link") 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22098 { (case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_try") 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22107 ac_cv_big_endian_double=yes
22108 else
22109 echo "$as_me: program exited with status $ac_status" >&5
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 ( exit $ac_status )
22114 ac_cv_big_endian_double=no
22116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22122 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22123 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
22124 if test "$ac_cv_big_endian_double" = yes
22125 then
22127 cat >>confdefs.h <<\_ACEOF
22128 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22129 _ACEOF
22133 # Some ARM platforms use a mixed-endian representation for doubles.
22134 # While Python doesn't currently have full support for these platforms
22135 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22136 # conversions work.
22137 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22138 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
22139 if test "${ac_cv_mixed_endian_double+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 else
22143 if test "$cross_compiling" = yes; then
22144 ac_cv_mixed_endian_double=no
22145 else
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22153 #include <string.h>
22154 int main() {
22155 double x = 9006104071832581.0;
22156 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22157 return 0;
22158 else
22159 return 1;
22162 _ACEOF
22163 rm -f conftest$ac_exeext
22164 if { (ac_try="$ac_link"
22165 case "(($ac_try" in
22166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167 *) ac_try_echo=$ac_try;;
22168 esac
22169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22170 (eval "$ac_link") 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22174 { (case "(($ac_try" in
22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176 *) ac_try_echo=$ac_try;;
22177 esac
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_try") 2>&5
22180 ac_status=$?
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; }; then
22183 ac_cv_mixed_endian_double=yes
22184 else
22185 echo "$as_me: program exited with status $ac_status" >&5
22186 echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22189 ( exit $ac_status )
22190 ac_cv_mixed_endian_double=no
22192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22198 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22199 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
22200 if test "$ac_cv_mixed_endian_double" = yes
22201 then
22203 cat >>confdefs.h <<\_ACEOF
22204 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22205 _ACEOF
22209 # The short float repr introduced in Python 3.1 requires the
22210 # correctly-rounded string <-> double conversion functions from
22211 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22212 # rounding; this is a problem on x86, where the x87 FPU has a default
22213 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22214 # using inline assembler to get and set the x87 FPU control word.
22215 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22216 then
22217 # Check that it's okay to use gcc inline assembler to get and set
22218 # x87 control word. It should be, but you never know...
22219 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22220 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
22221 cat >conftest.$ac_ext <<_ACEOF
22222 /* confdefs.h. */
22223 _ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h. */
22229 main ()
22232 unsigned short cw;
22233 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22234 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22237 return 0;
22239 _ACEOF
22240 rm -f conftest.$ac_objext
22241 if { (ac_try="$ac_compile"
22242 case "(($ac_try" in
22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22245 esac
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_compile") 2>conftest.er1
22248 ac_status=$?
22249 grep -v '^ *+' conftest.er1 >conftest.err
22250 rm -f conftest.er1
22251 cat conftest.err >&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } && {
22254 test -z "$ac_c_werror_flag" ||
22255 test ! -s conftest.err
22256 } && test -s conftest.$ac_objext; then
22257 have_gcc_asm_for_x87=yes
22258 else
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 have_gcc_asm_for_x87=no
22265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22266 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22267 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22268 if test "$have_gcc_asm_for_x87" = yes
22269 then
22271 cat >>confdefs.h <<\_ACEOF
22272 #define HAVE_GCC_ASM_FOR_X87 1
22273 _ACEOF
22278 # Detect whether system arithmetic is subject to x87-style double
22279 # rounding issues. The result of this test has little meaning on non
22280 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22281 # mode is round-to-nearest and double rounding issues are present, and
22282 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22283 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22284 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
22285 # $BASECFLAGS may affect the result
22286 ac_save_cc="$CC"
22287 CC="$CC $BASECFLAGS"
22288 if test "$cross_compiling" = yes; then
22289 ac_cv_x87_double_rounding=no
22290 else
22291 cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h. */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22298 #include <stdlib.h>
22299 #include <math.h>
22300 int main() {
22301 volatile double x, y, z;
22302 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22303 x = 0.99999999999999989; /* 1-2**-53 */
22304 y = 1./x;
22305 if (y != 1.)
22306 exit(0);
22307 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22308 x = 1e16;
22309 y = 2.99999;
22310 z = x + y;
22311 if (z != 1e16+4.)
22312 exit(0);
22313 /* both tests show evidence of double rounding */
22314 exit(1);
22317 _ACEOF
22318 rm -f conftest$ac_exeext
22319 if { (ac_try="$ac_link"
22320 case "(($ac_try" in
22321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22322 *) ac_try_echo=$ac_try;;
22323 esac
22324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22325 (eval "$ac_link") 2>&5
22326 ac_status=$?
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22329 { (case "(($ac_try" in
22330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22331 *) ac_try_echo=$ac_try;;
22332 esac
22333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22334 (eval "$ac_try") 2>&5
22335 ac_status=$?
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); }; }; then
22338 ac_cv_x87_double_rounding=no
22339 else
22340 echo "$as_me: program exited with status $ac_status" >&5
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22344 ( exit $ac_status )
22345 ac_cv_x87_double_rounding=yes
22347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22351 CC="$ac_save_cc"
22352 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22353 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22354 if test "$ac_cv_x87_double_rounding" = yes
22355 then
22357 cat >>confdefs.h <<\_ACEOF
22358 #define X87_DOUBLE_ROUNDING 1
22359 _ACEOF
22363 # ************************************
22364 # * Check for mathematical functions *
22365 # ************************************
22367 LIBS_SAVE=$LIBS
22368 LIBS="$LIBS $LIBM"
22370 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22371 # -0. on some architectures.
22372 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22373 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22374 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22378 if test "$cross_compiling" = yes; then
22379 ac_cv_tanh_preserves_zero_sign=no
22380 else
22381 cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h. */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22388 #include <math.h>
22389 #include <stdlib.h>
22390 int main() {
22391 /* return 0 if either negative zeros don't exist
22392 on this platform or if negative zeros exist
22393 and tanh(-0.) == -0. */
22394 if (atan2(0., -1.) == atan2(-0., -1.) ||
22395 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22396 else exit(1);
22399 _ACEOF
22400 rm -f conftest$ac_exeext
22401 if { (ac_try="$ac_link"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22405 esac
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_link") 2>&5
22408 ac_status=$?
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22411 { (case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_try") 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
22420 ac_cv_tanh_preserves_zero_sign=yes
22421 else
22422 echo "$as_me: program exited with status $ac_status" >&5
22423 echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22426 ( exit $ac_status )
22427 ac_cv_tanh_preserves_zero_sign=no
22429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22435 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22436 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22437 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22438 then
22440 cat >>confdefs.h <<\_ACEOF
22441 #define TANH_PRESERVES_ZERO_SIGN 1
22442 _ACEOF
22455 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22461 echo $ECHO_N "(cached) $ECHO_C" >&6
22462 else
22463 cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h. */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22471 #define $ac_func innocuous_$ac_func
22473 /* System header to define __stub macros and hopefully few prototypes,
22474 which can conflict with char $ac_func (); below.
22475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22476 <limits.h> exists even on freestanding compilers. */
22478 #ifdef __STDC__
22479 # include <limits.h>
22480 #else
22481 # include <assert.h>
22482 #endif
22484 #undef $ac_func
22486 /* Override any GCC internal prototype to avoid an error.
22487 Use char because int might match the return type of a GCC
22488 builtin and then its argument prototype would still apply. */
22489 #ifdef __cplusplus
22490 extern "C"
22491 #endif
22492 char $ac_func ();
22493 /* The GNU C library defines this for functions which it implements
22494 to always fail with ENOSYS. Some functions are actually named
22495 something starting with __ and the normal name is an alias. */
22496 #if defined __stub_$ac_func || defined __stub___$ac_func
22497 choke me
22498 #endif
22501 main ()
22503 return $ac_func ();
22505 return 0;
22507 _ACEOF
22508 rm -f conftest.$ac_objext conftest$ac_exeext
22509 if { (ac_try="$ac_link"
22510 case "(($ac_try" in
22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512 *) ac_try_echo=$ac_try;;
22513 esac
22514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22515 (eval "$ac_link") 2>conftest.er1
22516 ac_status=$?
22517 grep -v '^ *+' conftest.er1 >conftest.err
22518 rm -f conftest.er1
22519 cat conftest.err >&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } && {
22522 test -z "$ac_c_werror_flag" ||
22523 test ! -s conftest.err
22524 } && test -s conftest$ac_exeext &&
22525 $as_test_x conftest$ac_exeext; then
22526 eval "$as_ac_var=yes"
22527 else
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22531 eval "$as_ac_var=no"
22534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22535 conftest$ac_exeext conftest.$ac_ext
22537 ac_res=`eval echo '${'$as_ac_var'}'`
22538 { echo "$as_me:$LINENO: result: $ac_res" >&5
22539 echo "${ECHO_T}$ac_res" >&6; }
22540 if test `eval echo '${'$as_ac_var'}'` = yes; then
22541 cat >>confdefs.h <<_ACEOF
22542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22543 _ACEOF
22546 done
22548 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22549 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22550 if test "${ac_cv_have_decl_isinf+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22552 else
22553 cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h. */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 #include <math.h>
22562 main ()
22564 #ifndef isinf
22565 (void) isinf;
22566 #endif
22569 return 0;
22571 _ACEOF
22572 rm -f conftest.$ac_objext
22573 if { (ac_try="$ac_compile"
22574 case "(($ac_try" in
22575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22577 esac
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579 (eval "$ac_compile") 2>conftest.er1
22580 ac_status=$?
22581 grep -v '^ *+' conftest.er1 >conftest.err
22582 rm -f conftest.er1
22583 cat conftest.err >&5
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } && {
22586 test -z "$ac_c_werror_flag" ||
22587 test ! -s conftest.err
22588 } && test -s conftest.$ac_objext; then
22589 ac_cv_have_decl_isinf=yes
22590 else
22591 echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22594 ac_cv_have_decl_isinf=no
22597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22600 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22601 if test $ac_cv_have_decl_isinf = yes; then
22603 cat >>confdefs.h <<_ACEOF
22604 #define HAVE_DECL_ISINF 1
22605 _ACEOF
22608 else
22609 cat >>confdefs.h <<_ACEOF
22610 #define HAVE_DECL_ISINF 0
22611 _ACEOF
22615 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22616 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22617 if test "${ac_cv_have_decl_isnan+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22619 else
22620 cat >conftest.$ac_ext <<_ACEOF
22621 /* confdefs.h. */
22622 _ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22626 #include <math.h>
22629 main ()
22631 #ifndef isnan
22632 (void) isnan;
22633 #endif
22636 return 0;
22638 _ACEOF
22639 rm -f conftest.$ac_objext
22640 if { (ac_try="$ac_compile"
22641 case "(($ac_try" in
22642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22644 esac
22645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_compile") 2>conftest.er1
22647 ac_status=$?
22648 grep -v '^ *+' conftest.er1 >conftest.err
22649 rm -f conftest.er1
22650 cat conftest.err >&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); } && {
22653 test -z "$ac_c_werror_flag" ||
22654 test ! -s conftest.err
22655 } && test -s conftest.$ac_objext; then
22656 ac_cv_have_decl_isnan=yes
22657 else
22658 echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22661 ac_cv_have_decl_isnan=no
22664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22666 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22667 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22668 if test $ac_cv_have_decl_isnan = yes; then
22670 cat >>confdefs.h <<_ACEOF
22671 #define HAVE_DECL_ISNAN 1
22672 _ACEOF
22675 else
22676 cat >>confdefs.h <<_ACEOF
22677 #define HAVE_DECL_ISNAN 0
22678 _ACEOF
22682 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22683 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22684 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22685 echo $ECHO_N "(cached) $ECHO_C" >&6
22686 else
22687 cat >conftest.$ac_ext <<_ACEOF
22688 /* confdefs.h. */
22689 _ACEOF
22690 cat confdefs.h >>conftest.$ac_ext
22691 cat >>conftest.$ac_ext <<_ACEOF
22692 /* end confdefs.h. */
22693 #include <math.h>
22696 main ()
22698 #ifndef isfinite
22699 (void) isfinite;
22700 #endif
22703 return 0;
22705 _ACEOF
22706 rm -f conftest.$ac_objext
22707 if { (ac_try="$ac_compile"
22708 case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22711 esac
22712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_compile") 2>conftest.er1
22714 ac_status=$?
22715 grep -v '^ *+' conftest.er1 >conftest.err
22716 rm -f conftest.er1
22717 cat conftest.err >&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } && {
22720 test -z "$ac_c_werror_flag" ||
22721 test ! -s conftest.err
22722 } && test -s conftest.$ac_objext; then
22723 ac_cv_have_decl_isfinite=yes
22724 else
22725 echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22728 ac_cv_have_decl_isfinite=no
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22734 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22735 if test $ac_cv_have_decl_isfinite = yes; then
22737 cat >>confdefs.h <<_ACEOF
22738 #define HAVE_DECL_ISFINITE 1
22739 _ACEOF
22742 else
22743 cat >>confdefs.h <<_ACEOF
22744 #define HAVE_DECL_ISFINITE 0
22745 _ACEOF
22752 LIBS=$LIBS_SAVE
22754 # For multiprocessing module, check that sem_open
22755 # actually works. For FreeBSD versions <= 7.2,
22756 # the kernel module that provides POSIX semaphores
22757 # isn't loaded by default, so an attempt to call
22758 # sem_open results in a 'Signal 12' error.
22759 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
22760 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
22761 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
22762 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 else
22764 if test "$cross_compiling" = yes; then
22765 ac_cv_posix_semaphores_enabled=yes
22766 else
22767 cat >conftest.$ac_ext <<_ACEOF
22768 /* confdefs.h. */
22769 _ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22774 #include <unistd.h>
22775 #include <fcntl.h>
22776 #include <stdio.h>
22777 #include <semaphore.h>
22778 #include <sys/stat.h>
22780 int main(void) {
22781 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22782 if (a == SEM_FAILED) {
22783 perror("sem_open");
22784 return 1;
22786 sem_close(a);
22787 sem_unlink("/autoconf");
22788 return 0;
22791 _ACEOF
22792 rm -f conftest$ac_exeext
22793 if { (ac_try="$ac_link"
22794 case "(($ac_try" in
22795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796 *) ac_try_echo=$ac_try;;
22797 esac
22798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799 (eval "$ac_link") 2>&5
22800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22803 { (case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22806 esac
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808 (eval "$ac_try") 2>&5
22809 ac_status=$?
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22812 ac_cv_posix_semaphores_enabled=yes
22813 else
22814 echo "$as_me: program exited with status $ac_status" >&5
22815 echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22818 ( exit $ac_status )
22819 ac_cv_posix_semaphores_enabled=no
22821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22828 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
22829 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
22830 if test $ac_cv_posix_semaphores_enabled = no
22831 then
22833 cat >>confdefs.h <<\_ACEOF
22834 #define POSIX_SEMAPHORES_NOT_ENABLED 1
22835 _ACEOF
22839 # Multiprocessing check for broken sem_getvalue
22840 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22841 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22842 if test "$cross_compiling" = yes; then
22843 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22844 See \`config.log' for more details." >&5
22845 echo "$as_me: error: cannot run test program while cross compiling
22846 See \`config.log' for more details." >&2;}
22847 { (exit 1); exit 1; }; }
22848 else
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. */
22856 #include <unistd.h>
22857 #include <fcntl.h>
22858 #include <stdio.h>
22859 #include <semaphore.h>
22860 #include <sys/stat.h>
22862 int main(void){
22863 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
22864 int count;
22865 int res;
22866 if(a==SEM_FAILED){
22867 perror("sem_open");
22868 return 1;
22871 res = sem_getvalue(a, &count);
22872 sem_close(a);
22873 sem_unlink("/autocftw");
22874 return res==-1 ? 1 : 0;
22878 _ACEOF
22879 rm -f conftest$ac_exeext
22880 if { (ac_try="$ac_link"
22881 case "(($ac_try" in
22882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22884 esac
22885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886 (eval "$ac_link") 2>&5
22887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22890 { (case "(($ac_try" in
22891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892 *) ac_try_echo=$ac_try;;
22893 esac
22894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22895 (eval "$ac_try") 2>&5
22896 ac_status=$?
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); }; }; then
22899 { echo "$as_me:$LINENO: result: no" >&5
22900 echo "${ECHO_T}no" >&6; }
22901 else
22902 echo "$as_me: program exited with status $ac_status" >&5
22903 echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22906 ( exit $ac_status )
22907 { echo "$as_me:$LINENO: result: yes" >&5
22908 echo "${ECHO_T}yes" >&6; }
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_BROKEN_SEM_GETVALUE 1
22912 _ACEOF
22916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22921 # determine what size digit to use for Python's longs
22922 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22923 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22924 # Check whether --enable-big-digits was given.
22925 if test "${enable_big_digits+set}" = set; then
22926 enableval=$enable_big_digits; case $enable_big_digits in
22927 yes)
22928 enable_big_digits=30 ;;
22930 enable_big_digits=15 ;;
22931 15|30)
22934 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22935 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22936 { (exit 1); exit 1; }; } ;;
22937 esac
22938 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22939 echo "${ECHO_T}$enable_big_digits" >&6; }
22941 cat >>confdefs.h <<_ACEOF
22942 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22943 _ACEOF
22946 else
22947 { echo "$as_me:$LINENO: result: no value specified" >&5
22948 echo "${ECHO_T}no value specified" >&6; }
22952 # check for wchar.h
22953 if test "${ac_cv_header_wchar_h+set}" = set; then
22954 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22955 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22956 if test "${ac_cv_header_wchar_h+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22959 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22960 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22961 else
22962 # Is the header compilable?
22963 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22964 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22965 cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h. */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22971 $ac_includes_default
22972 #include <wchar.h>
22973 _ACEOF
22974 rm -f conftest.$ac_objext
22975 if { (ac_try="$ac_compile"
22976 case "(($ac_try" in
22977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22978 *) ac_try_echo=$ac_try;;
22979 esac
22980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22981 (eval "$ac_compile") 2>conftest.er1
22982 ac_status=$?
22983 grep -v '^ *+' conftest.er1 >conftest.err
22984 rm -f conftest.er1
22985 cat conftest.err >&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } && {
22988 test -z "$ac_c_werror_flag" ||
22989 test ! -s conftest.err
22990 } && test -s conftest.$ac_objext; then
22991 ac_header_compiler=yes
22992 else
22993 echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22996 ac_header_compiler=no
22999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23001 echo "${ECHO_T}$ac_header_compiler" >&6; }
23003 # Is the header present?
23004 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
23005 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
23006 cat >conftest.$ac_ext <<_ACEOF
23007 /* confdefs.h. */
23008 _ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h. */
23012 #include <wchar.h>
23013 _ACEOF
23014 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
23021 ac_status=$?
23022 grep -v '^ *+' conftest.er1 >conftest.err
23023 rm -f conftest.er1
23024 cat conftest.err >&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } >/dev/null && {
23027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23028 test ! -s conftest.err
23029 }; then
23030 ac_header_preproc=yes
23031 else
23032 echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23035 ac_header_preproc=no
23038 rm -f conftest.err conftest.$ac_ext
23039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23040 echo "${ECHO_T}$ac_header_preproc" >&6; }
23042 # So? What about this header?
23043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23044 yes:no: )
23045 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
23046 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23047 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
23048 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
23049 ac_header_preproc=yes
23051 no:yes:* )
23052 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
23053 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
23054 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
23055 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
23057 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
23059 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
23061 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
23063 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
23064 ( cat <<\_ASBOX
23065 ## -------------------------------------- ##
23066 ## Report this to http://bugs.python.org/ ##
23067 ## -------------------------------------- ##
23068 _ASBOX
23069 ) | sed "s/^/$as_me: WARNING: /" >&2
23071 esac
23072 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23073 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23074 if test "${ac_cv_header_wchar_h+set}" = set; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23076 else
23077 ac_cv_header_wchar_h=$ac_header_preproc
23079 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23080 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23083 if test $ac_cv_header_wchar_h = yes; then
23086 cat >>confdefs.h <<\_ACEOF
23087 #define HAVE_WCHAR_H 1
23088 _ACEOF
23090 wchar_h="yes"
23092 else
23093 wchar_h="no"
23099 # determine wchar_t size
23100 if test "$wchar_h" = yes
23101 then
23102 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23103 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23104 if test "${ac_cv_type_wchar_t+set}" = set; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 else
23107 cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h. */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 #include <wchar.h>
23115 typedef wchar_t ac__type_new_;
23117 main ()
23119 if ((ac__type_new_ *) 0)
23120 return 0;
23121 if (sizeof (ac__type_new_))
23122 return 0;
23124 return 0;
23126 _ACEOF
23127 rm -f conftest.$ac_objext
23128 if { (ac_try="$ac_compile"
23129 case "(($ac_try" in
23130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131 *) ac_try_echo=$ac_try;;
23132 esac
23133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23134 (eval "$ac_compile") 2>conftest.er1
23135 ac_status=$?
23136 grep -v '^ *+' conftest.er1 >conftest.err
23137 rm -f conftest.er1
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } && {
23141 test -z "$ac_c_werror_flag" ||
23142 test ! -s conftest.err
23143 } && test -s conftest.$ac_objext; then
23144 ac_cv_type_wchar_t=yes
23145 else
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 ac_cv_type_wchar_t=no
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23155 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23157 # The cast to long int works around a bug in the HP C Compiler
23158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23160 # This bug is HP SR number 8606223364.
23161 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23162 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23163 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23164 echo $ECHO_N "(cached) $ECHO_C" >&6
23165 else
23166 if test "$cross_compiling" = yes; then
23167 # Depending upon the size, compute the lo and hi bounds.
23168 cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h. */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 #include <wchar.h>
23176 typedef wchar_t ac__type_sizeof_;
23178 main ()
23180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23181 test_array [0] = 0
23184 return 0;
23186 _ACEOF
23187 rm -f conftest.$ac_objext
23188 if { (ac_try="$ac_compile"
23189 case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23192 esac
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194 (eval "$ac_compile") 2>conftest.er1
23195 ac_status=$?
23196 grep -v '^ *+' conftest.er1 >conftest.err
23197 rm -f conftest.er1
23198 cat conftest.err >&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } && {
23201 test -z "$ac_c_werror_flag" ||
23202 test ! -s conftest.err
23203 } && test -s conftest.$ac_objext; then
23204 ac_lo=0 ac_mid=0
23205 while :; do
23206 cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h. */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 #include <wchar.h>
23214 typedef wchar_t ac__type_sizeof_;
23216 main ()
23218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23219 test_array [0] = 0
23222 return 0;
23224 _ACEOF
23225 rm -f conftest.$ac_objext
23226 if { (ac_try="$ac_compile"
23227 case "(($ac_try" in
23228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229 *) ac_try_echo=$ac_try;;
23230 esac
23231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23232 (eval "$ac_compile") 2>conftest.er1
23233 ac_status=$?
23234 grep -v '^ *+' conftest.er1 >conftest.err
23235 rm -f conftest.er1
23236 cat conftest.err >&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } && {
23239 test -z "$ac_c_werror_flag" ||
23240 test ! -s conftest.err
23241 } && test -s conftest.$ac_objext; then
23242 ac_hi=$ac_mid; break
23243 else
23244 echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23247 ac_lo=`expr $ac_mid + 1`
23248 if test $ac_lo -le $ac_mid; then
23249 ac_lo= ac_hi=
23250 break
23252 ac_mid=`expr 2 '*' $ac_mid + 1`
23255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23256 done
23257 else
23258 echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23261 cat >conftest.$ac_ext <<_ACEOF
23262 /* confdefs.h. */
23263 _ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h. */
23267 #include <wchar.h>
23269 typedef wchar_t ac__type_sizeof_;
23271 main ()
23273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23274 test_array [0] = 0
23277 return 0;
23279 _ACEOF
23280 rm -f conftest.$ac_objext
23281 if { (ac_try="$ac_compile"
23282 case "(($ac_try" in
23283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 *) ac_try_echo=$ac_try;;
23285 esac
23286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 (eval "$ac_compile") 2>conftest.er1
23288 ac_status=$?
23289 grep -v '^ *+' conftest.er1 >conftest.err
23290 rm -f conftest.er1
23291 cat conftest.err >&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } && {
23294 test -z "$ac_c_werror_flag" ||
23295 test ! -s conftest.err
23296 } && test -s conftest.$ac_objext; then
23297 ac_hi=-1 ac_mid=-1
23298 while :; do
23299 cat >conftest.$ac_ext <<_ACEOF
23300 /* confdefs.h. */
23301 _ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h. */
23305 #include <wchar.h>
23307 typedef wchar_t ac__type_sizeof_;
23309 main ()
23311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23312 test_array [0] = 0
23315 return 0;
23317 _ACEOF
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23323 esac
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23326 ac_status=$?
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.$ac_objext; then
23335 ac_lo=$ac_mid; break
23336 else
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_hi=`expr '(' $ac_mid ')' - 1`
23341 if test $ac_mid -le $ac_hi; then
23342 ac_lo= ac_hi=
23343 break
23345 ac_mid=`expr 2 '*' $ac_mid`
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349 done
23350 else
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23354 ac_lo= ac_hi=
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 # Binary search between lo and hi bounds.
23362 while test "x$ac_lo" != "x$ac_hi"; do
23363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23364 cat >conftest.$ac_ext <<_ACEOF
23365 /* confdefs.h. */
23366 _ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 #include <wchar.h>
23372 typedef wchar_t ac__type_sizeof_;
23374 main ()
23376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23377 test_array [0] = 0
23380 return 0;
23382 _ACEOF
23383 rm -f conftest.$ac_objext
23384 if { (ac_try="$ac_compile"
23385 case "(($ac_try" in
23386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387 *) ac_try_echo=$ac_try;;
23388 esac
23389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23390 (eval "$ac_compile") 2>conftest.er1
23391 ac_status=$?
23392 grep -v '^ *+' conftest.er1 >conftest.err
23393 rm -f conftest.er1
23394 cat conftest.err >&5
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } && {
23397 test -z "$ac_c_werror_flag" ||
23398 test ! -s conftest.err
23399 } && test -s conftest.$ac_objext; then
23400 ac_hi=$ac_mid
23401 else
23402 echo "$as_me: failed program was:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23405 ac_lo=`expr '(' $ac_mid ')' + 1`
23408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23409 done
23410 case $ac_lo in
23411 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23412 '') if test "$ac_cv_type_wchar_t" = yes; then
23413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23414 See \`config.log' for more details." >&5
23415 echo "$as_me: error: cannot compute sizeof (wchar_t)
23416 See \`config.log' for more details." >&2;}
23417 { (exit 77); exit 77; }; }
23418 else
23419 ac_cv_sizeof_wchar_t=0
23420 fi ;;
23421 esac
23422 else
23423 cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h. */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 #include <wchar.h>
23431 typedef wchar_t ac__type_sizeof_;
23432 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23433 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23434 #include <stdio.h>
23435 #include <stdlib.h>
23437 main ()
23440 FILE *f = fopen ("conftest.val", "w");
23441 if (! f)
23442 return 1;
23443 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23445 long int i = longval ();
23446 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23447 return 1;
23448 fprintf (f, "%ld\n", i);
23450 else
23452 unsigned long int i = ulongval ();
23453 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23454 return 1;
23455 fprintf (f, "%lu\n", i);
23457 return ferror (f) || fclose (f) != 0;
23460 return 0;
23462 _ACEOF
23463 rm -f conftest$ac_exeext
23464 if { (ac_try="$ac_link"
23465 case "(($ac_try" in
23466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23468 esac
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470 (eval "$ac_link") 2>&5
23471 ac_status=$?
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23474 { (case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23477 esac
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479 (eval "$ac_try") 2>&5
23480 ac_status=$?
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); }; }; then
23483 ac_cv_sizeof_wchar_t=`cat conftest.val`
23484 else
23485 echo "$as_me: program exited with status $ac_status" >&5
23486 echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23489 ( exit $ac_status )
23490 if test "$ac_cv_type_wchar_t" = yes; then
23491 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23492 See \`config.log' for more details." >&5
23493 echo "$as_me: error: cannot compute sizeof (wchar_t)
23494 See \`config.log' for more details." >&2;}
23495 { (exit 77); exit 77; }; }
23496 else
23497 ac_cv_sizeof_wchar_t=0
23500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23502 rm -f conftest.val
23504 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23505 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23509 cat >>confdefs.h <<_ACEOF
23510 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23511 _ACEOF
23516 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23517 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23518 have_ucs4_tcl=no
23519 cat >conftest.$ac_ext <<_ACEOF
23520 /* confdefs.h. */
23521 _ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h. */
23526 #include <tcl.h>
23527 #if TCL_UTF_MAX != 6
23528 # error "NOT UCS4_TCL"
23529 #endif
23531 main ()
23535 return 0;
23537 _ACEOF
23538 rm -f conftest.$ac_objext
23539 if { (ac_try="$ac_compile"
23540 case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_compile") 2>conftest.er1
23546 ac_status=$?
23547 grep -v '^ *+' conftest.er1 >conftest.err
23548 rm -f conftest.er1
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } && {
23552 test -z "$ac_c_werror_flag" ||
23553 test ! -s conftest.err
23554 } && test -s conftest.$ac_objext; then
23557 cat >>confdefs.h <<\_ACEOF
23558 #define HAVE_UCS4_TCL 1
23559 _ACEOF
23561 have_ucs4_tcl=yes
23563 else
23564 echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23571 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23572 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23574 # check whether wchar_t is signed or not
23575 if test "$wchar_h" = yes
23576 then
23577 # check whether wchar_t is signed or not
23578 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23579 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23580 if test "${ac_cv_wchar_t_signed+set}" = set; then
23581 echo $ECHO_N "(cached) $ECHO_C" >&6
23582 else
23584 if test "$cross_compiling" = yes; then
23585 ac_cv_wchar_t_signed=yes
23586 else
23587 cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h. */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23594 #include <wchar.h>
23595 int main()
23597 /* Success: exit code 0 */
23598 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23601 _ACEOF
23602 rm -f conftest$ac_exeext
23603 if { (ac_try="$ac_link"
23604 case "(($ac_try" in
23605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23606 *) ac_try_echo=$ac_try;;
23607 esac
23608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23609 (eval "$ac_link") 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23613 { (case "(($ac_try" in
23614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23615 *) ac_try_echo=$ac_try;;
23616 esac
23617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618 (eval "$ac_try") 2>&5
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
23622 ac_cv_wchar_t_signed=yes
23623 else
23624 echo "$as_me: program exited with status $ac_status" >&5
23625 echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23628 ( exit $ac_status )
23629 ac_cv_wchar_t_signed=no
23631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23637 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23638 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23641 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23642 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23644 # Check whether --with-wide-unicode was given.
23645 if test "${with_wide_unicode+set}" = set; then
23646 withval=$with_wide_unicode;
23647 if test "$withval" != no
23648 then unicode_size="4"
23649 else unicode_size="2"
23652 else
23654 case "$have_ucs4_tcl" in
23655 yes) unicode_size="4" ;;
23656 *) unicode_size="2" ;;
23657 esac
23664 case "$unicode_size" in
23665 4) cat >>confdefs.h <<\_ACEOF
23666 #define Py_UNICODE_SIZE 4
23667 _ACEOF
23669 *) cat >>confdefs.h <<\_ACEOF
23670 #define Py_UNICODE_SIZE 2
23671 _ACEOF
23673 esac
23678 # wchar_t is only usable if it maps to an unsigned type
23679 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23680 -a "$ac_cv_wchar_t_signed" = "no"
23681 then
23682 PY_UNICODE_TYPE="wchar_t"
23684 cat >>confdefs.h <<\_ACEOF
23685 #define HAVE_USABLE_WCHAR_T 1
23686 _ACEOF
23688 cat >>confdefs.h <<\_ACEOF
23689 #define PY_UNICODE_TYPE wchar_t
23690 _ACEOF
23692 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23693 then
23694 PY_UNICODE_TYPE="unsigned short"
23695 cat >>confdefs.h <<\_ACEOF
23696 #define PY_UNICODE_TYPE unsigned short
23697 _ACEOF
23699 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23700 then
23701 PY_UNICODE_TYPE="unsigned long"
23702 cat >>confdefs.h <<\_ACEOF
23703 #define PY_UNICODE_TYPE unsigned long
23704 _ACEOF
23706 else
23707 PY_UNICODE_TYPE="no type found"
23709 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23710 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23712 # check for endianness
23713 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23714 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23715 if test "${ac_cv_c_bigendian+set}" = set; then
23716 echo $ECHO_N "(cached) $ECHO_C" >&6
23717 else
23718 # See if sys/param.h defines the BYTE_ORDER macro.
23719 cat >conftest.$ac_ext <<_ACEOF
23720 /* confdefs.h. */
23721 _ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23725 #include <sys/types.h>
23726 #include <sys/param.h>
23729 main ()
23731 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23732 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23733 bogus endian macros
23734 #endif
23737 return 0;
23739 _ACEOF
23740 rm -f conftest.$ac_objext
23741 if { (ac_try="$ac_compile"
23742 case "(($ac_try" in
23743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744 *) ac_try_echo=$ac_try;;
23745 esac
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747 (eval "$ac_compile") 2>conftest.er1
23748 ac_status=$?
23749 grep -v '^ *+' conftest.er1 >conftest.err
23750 rm -f conftest.er1
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } && {
23754 test -z "$ac_c_werror_flag" ||
23755 test ! -s conftest.err
23756 } && test -s conftest.$ac_objext; then
23757 # It does; now see whether it defined to BIG_ENDIAN or not.
23758 cat >conftest.$ac_ext <<_ACEOF
23759 /* confdefs.h. */
23760 _ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23764 #include <sys/types.h>
23765 #include <sys/param.h>
23768 main ()
23770 #if BYTE_ORDER != BIG_ENDIAN
23771 not big endian
23772 #endif
23775 return 0;
23777 _ACEOF
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_compile") 2>conftest.er1
23786 ac_status=$?
23787 grep -v '^ *+' conftest.er1 >conftest.err
23788 rm -f conftest.er1
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest.$ac_objext; then
23795 ac_cv_c_bigendian=yes
23796 else
23797 echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23800 ac_cv_c_bigendian=no
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23804 else
23805 echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23808 # It does not; compile a test program.
23809 if test "$cross_compiling" = yes; then
23810 # try to guess the endianness by grepping values into an object file
23811 ac_cv_c_bigendian=unknown
23812 cat >conftest.$ac_ext <<_ACEOF
23813 /* confdefs.h. */
23814 _ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h. */
23818 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23819 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23820 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23821 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23822 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23823 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23825 main ()
23827 _ascii (); _ebcdic ();
23829 return 0;
23831 _ACEOF
23832 rm -f conftest.$ac_objext
23833 if { (ac_try="$ac_compile"
23834 case "(($ac_try" in
23835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23836 *) ac_try_echo=$ac_try;;
23837 esac
23838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23839 (eval "$ac_compile") 2>conftest.er1
23840 ac_status=$?
23841 grep -v '^ *+' conftest.er1 >conftest.err
23842 rm -f conftest.er1
23843 cat conftest.err >&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); } && {
23846 test -z "$ac_c_werror_flag" ||
23847 test ! -s conftest.err
23848 } && test -s conftest.$ac_objext; then
23849 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23850 ac_cv_c_bigendian=yes
23852 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23853 if test "$ac_cv_c_bigendian" = unknown; then
23854 ac_cv_c_bigendian=no
23855 else
23856 # finding both strings is unlikely to happen, but who knows?
23857 ac_cv_c_bigendian=unknown
23860 else
23861 echo "$as_me: failed program was:" >&5
23862 sed 's/^/| /' conftest.$ac_ext >&5
23867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23868 else
23869 cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h. */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23875 $ac_includes_default
23877 main ()
23880 /* Are we little or big endian? From Harbison&Steele. */
23881 union
23883 long int l;
23884 char c[sizeof (long int)];
23885 } u;
23886 u.l = 1;
23887 return u.c[sizeof (long int) - 1] == 1;
23890 return 0;
23892 _ACEOF
23893 rm -f conftest$ac_exeext
23894 if { (ac_try="$ac_link"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23898 esac
23899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23900 (eval "$ac_link") 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23904 { (case "(($ac_try" in
23905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23906 *) ac_try_echo=$ac_try;;
23907 esac
23908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909 (eval "$ac_try") 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; }; then
23913 ac_cv_c_bigendian=no
23914 else
23915 echo "$as_me: program exited with status $ac_status" >&5
23916 echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 ( exit $ac_status )
23920 ac_cv_c_bigendian=yes
23922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23930 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23931 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23932 case $ac_cv_c_bigendian in
23933 yes)
23935 cat >>confdefs.h <<\_ACEOF
23936 #define WORDS_BIGENDIAN 1
23937 _ACEOF
23942 { { echo "$as_me:$LINENO: error: unknown endianness
23943 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23944 echo "$as_me: error: unknown endianness
23945 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23946 { (exit 1); exit 1; }; } ;;
23947 esac
23950 # Check whether right shifting a negative integer extends the sign bit
23951 # or fills with zeros (like the Cray J90, according to Tim Peters).
23952 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23953 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23954 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23955 echo $ECHO_N "(cached) $ECHO_C" >&6
23956 else
23958 if test "$cross_compiling" = yes; then
23959 ac_cv_rshift_extends_sign=yes
23960 else
23961 cat >conftest.$ac_ext <<_ACEOF
23962 /* confdefs.h. */
23963 _ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23968 int main()
23970 exit(((-1)>>3 == -1) ? 0 : 1);
23973 _ACEOF
23974 rm -f conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23979 esac
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_link") 2>&5
23982 ac_status=$?
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23985 { (case "(($ac_try" in
23986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987 *) ac_try_echo=$ac_try;;
23988 esac
23989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23990 (eval "$ac_try") 2>&5
23991 ac_status=$?
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); }; }; then
23994 ac_cv_rshift_extends_sign=yes
23995 else
23996 echo "$as_me: program exited with status $ac_status" >&5
23997 echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
24000 ( exit $ac_status )
24001 ac_cv_rshift_extends_sign=no
24003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24009 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24010 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24011 if test "$ac_cv_rshift_extends_sign" = no
24012 then
24014 cat >>confdefs.h <<\_ACEOF
24015 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24016 _ACEOF
24020 # check for getc_unlocked and related locking functions
24021 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24022 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
24023 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24025 else
24027 cat >conftest.$ac_ext <<_ACEOF
24028 /* confdefs.h. */
24029 _ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h. */
24033 #include <stdio.h>
24035 main ()
24038 FILE *f = fopen("/dev/null", "r");
24039 flockfile(f);
24040 getc_unlocked(f);
24041 funlockfile(f);
24044 return 0;
24046 _ACEOF
24047 rm -f conftest.$ac_objext conftest$ac_exeext
24048 if { (ac_try="$ac_link"
24049 case "(($ac_try" in
24050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051 *) ac_try_echo=$ac_try;;
24052 esac
24053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054 (eval "$ac_link") 2>conftest.er1
24055 ac_status=$?
24056 grep -v '^ *+' conftest.er1 >conftest.err
24057 rm -f conftest.er1
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } && {
24061 test -z "$ac_c_werror_flag" ||
24062 test ! -s conftest.err
24063 } && test -s conftest$ac_exeext &&
24064 $as_test_x conftest$ac_exeext; then
24065 ac_cv_have_getc_unlocked=yes
24066 else
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24070 ac_cv_have_getc_unlocked=no
24073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24074 conftest$ac_exeext conftest.$ac_ext
24077 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24078 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24079 if test "$ac_cv_have_getc_unlocked" = yes
24080 then
24082 cat >>confdefs.h <<\_ACEOF
24083 #define HAVE_GETC_UNLOCKED 1
24084 _ACEOF
24088 # check where readline lives
24089 # save the value of LIBS so we don't actually link Python with readline
24090 LIBS_no_readline=$LIBS
24092 # On some systems we need to link readline to a termcap compatible
24093 # library. NOTE: Keep the precedence of listed libraries synchronised
24094 # with setup.py.
24095 py_cv_lib_readline=no
24096 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24097 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24098 for py_libtermcap in "" ncursesw ncurses curses termcap; do
24099 if test -z "$py_libtermcap"; then
24100 READLINE_LIBS="-lreadline"
24101 else
24102 READLINE_LIBS="-lreadline -l$py_libtermcap"
24104 LIBS="$READLINE_LIBS $LIBS_no_readline"
24105 cat >conftest.$ac_ext <<_ACEOF
24106 /* confdefs.h. */
24107 _ACEOF
24108 cat confdefs.h >>conftest.$ac_ext
24109 cat >>conftest.$ac_ext <<_ACEOF
24110 /* end confdefs.h. */
24112 /* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24115 #ifdef __cplusplus
24116 extern "C"
24117 #endif
24118 char readline ();
24120 main ()
24122 return readline ();
24124 return 0;
24126 _ACEOF
24127 rm -f conftest.$ac_objext conftest$ac_exeext
24128 if { (ac_try="$ac_link"
24129 case "(($ac_try" in
24130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24131 *) ac_try_echo=$ac_try;;
24132 esac
24133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24134 (eval "$ac_link") 2>conftest.er1
24135 ac_status=$?
24136 grep -v '^ *+' conftest.er1 >conftest.err
24137 rm -f conftest.er1
24138 cat conftest.err >&5
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } && {
24141 test -z "$ac_c_werror_flag" ||
24142 test ! -s conftest.err
24143 } && test -s conftest$ac_exeext &&
24144 $as_test_x conftest$ac_exeext; then
24145 py_cv_lib_readline=yes
24146 else
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24154 conftest$ac_exeext conftest.$ac_ext
24155 if test $py_cv_lib_readline = yes; then
24156 break
24158 done
24159 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24160 #AC_SUBST([READLINE_LIBS])
24161 if test $py_cv_lib_readline = no; then
24162 { echo "$as_me:$LINENO: result: none" >&5
24163 echo "${ECHO_T}none" >&6; }
24164 else
24165 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24166 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24168 cat >>confdefs.h <<\_ACEOF
24169 #define HAVE_LIBREADLINE 1
24170 _ACEOF
24174 # check for readline 2.1
24175 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24176 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24177 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24178 echo $ECHO_N "(cached) $ECHO_C" >&6
24179 else
24180 ac_check_lib_save_LIBS=$LIBS
24181 LIBS="-lreadline $READLINE_LIBS $LIBS"
24182 cat >conftest.$ac_ext <<_ACEOF
24183 /* confdefs.h. */
24184 _ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24189 /* Override any GCC internal prototype to avoid an error.
24190 Use char because int might match the return type of a GCC
24191 builtin and then its argument prototype would still apply. */
24192 #ifdef __cplusplus
24193 extern "C"
24194 #endif
24195 char rl_callback_handler_install ();
24197 main ()
24199 return rl_callback_handler_install ();
24201 return 0;
24203 _ACEOF
24204 rm -f conftest.$ac_objext conftest$ac_exeext
24205 if { (ac_try="$ac_link"
24206 case "(($ac_try" in
24207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24208 *) ac_try_echo=$ac_try;;
24209 esac
24210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24211 (eval "$ac_link") 2>conftest.er1
24212 ac_status=$?
24213 grep -v '^ *+' conftest.er1 >conftest.err
24214 rm -f conftest.er1
24215 cat conftest.err >&5
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); } && {
24218 test -z "$ac_c_werror_flag" ||
24219 test ! -s conftest.err
24220 } && test -s conftest$ac_exeext &&
24221 $as_test_x conftest$ac_exeext; then
24222 ac_cv_lib_readline_rl_callback_handler_install=yes
24223 else
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24227 ac_cv_lib_readline_rl_callback_handler_install=no
24230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24231 conftest$ac_exeext conftest.$ac_ext
24232 LIBS=$ac_check_lib_save_LIBS
24234 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24235 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24236 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
24238 cat >>confdefs.h <<\_ACEOF
24239 #define HAVE_RL_CALLBACK 1
24240 _ACEOF
24245 # check for readline 2.2
24246 cat >conftest.$ac_ext <<_ACEOF
24247 /* confdefs.h. */
24248 _ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h. */
24252 #include <readline/readline.h>
24253 _ACEOF
24254 if { (ac_try="$ac_cpp conftest.$ac_ext"
24255 case "(($ac_try" in
24256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257 *) ac_try_echo=$ac_try;;
24258 esac
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24261 ac_status=$?
24262 grep -v '^ *+' conftest.er1 >conftest.err
24263 rm -f conftest.er1
24264 cat conftest.err >&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } >/dev/null && {
24267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24268 test ! -s conftest.err
24269 }; then
24270 have_readline=yes
24271 else
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24275 have_readline=no
24278 rm -f conftest.err conftest.$ac_ext
24279 if test $have_readline = yes
24280 then
24281 cat >conftest.$ac_ext <<_ACEOF
24282 /* confdefs.h. */
24283 _ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h. */
24287 #include <readline/readline.h>
24289 _ACEOF
24290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24291 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24293 cat >>confdefs.h <<\_ACEOF
24294 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24295 _ACEOF
24298 rm -f conftest*
24300 cat >conftest.$ac_ext <<_ACEOF
24301 /* confdefs.h. */
24302 _ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h. */
24306 #include <readline/readline.h>
24308 _ACEOF
24309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24310 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
24312 cat >>confdefs.h <<\_ACEOF
24313 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
24314 _ACEOF
24317 rm -f conftest*
24321 # check for readline 4.0
24322 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24323 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
24324 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24326 else
24327 ac_check_lib_save_LIBS=$LIBS
24328 LIBS="-lreadline $READLINE_LIBS $LIBS"
24329 cat >conftest.$ac_ext <<_ACEOF
24330 /* confdefs.h. */
24331 _ACEOF
24332 cat confdefs.h >>conftest.$ac_ext
24333 cat >>conftest.$ac_ext <<_ACEOF
24334 /* end confdefs.h. */
24336 /* Override any GCC internal prototype to avoid an error.
24337 Use char because int might match the return type of a GCC
24338 builtin and then its argument prototype would still apply. */
24339 #ifdef __cplusplus
24340 extern "C"
24341 #endif
24342 char rl_pre_input_hook ();
24344 main ()
24346 return rl_pre_input_hook ();
24348 return 0;
24350 _ACEOF
24351 rm -f conftest.$ac_objext conftest$ac_exeext
24352 if { (ac_try="$ac_link"
24353 case "(($ac_try" in
24354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24355 *) ac_try_echo=$ac_try;;
24356 esac
24357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24358 (eval "$ac_link") 2>conftest.er1
24359 ac_status=$?
24360 grep -v '^ *+' conftest.er1 >conftest.err
24361 rm -f conftest.er1
24362 cat conftest.err >&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); } && {
24365 test -z "$ac_c_werror_flag" ||
24366 test ! -s conftest.err
24367 } && test -s conftest$ac_exeext &&
24368 $as_test_x conftest$ac_exeext; then
24369 ac_cv_lib_readline_rl_pre_input_hook=yes
24370 else
24371 echo "$as_me: failed program was:" >&5
24372 sed 's/^/| /' conftest.$ac_ext >&5
24374 ac_cv_lib_readline_rl_pre_input_hook=no
24377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24378 conftest$ac_exeext conftest.$ac_ext
24379 LIBS=$ac_check_lib_save_LIBS
24381 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24382 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24383 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24385 cat >>confdefs.h <<\_ACEOF
24386 #define HAVE_RL_PRE_INPUT_HOOK 1
24387 _ACEOF
24392 # also in 4.0
24393 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24394 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24395 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24396 echo $ECHO_N "(cached) $ECHO_C" >&6
24397 else
24398 ac_check_lib_save_LIBS=$LIBS
24399 LIBS="-lreadline $READLINE_LIBS $LIBS"
24400 cat >conftest.$ac_ext <<_ACEOF
24401 /* confdefs.h. */
24402 _ACEOF
24403 cat confdefs.h >>conftest.$ac_ext
24404 cat >>conftest.$ac_ext <<_ACEOF
24405 /* end confdefs.h. */
24407 /* Override any GCC internal prototype to avoid an error.
24408 Use char because int might match the return type of a GCC
24409 builtin and then its argument prototype would still apply. */
24410 #ifdef __cplusplus
24411 extern "C"
24412 #endif
24413 char rl_completion_display_matches_hook ();
24415 main ()
24417 return rl_completion_display_matches_hook ();
24419 return 0;
24421 _ACEOF
24422 rm -f conftest.$ac_objext conftest$ac_exeext
24423 if { (ac_try="$ac_link"
24424 case "(($ac_try" in
24425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426 *) ac_try_echo=$ac_try;;
24427 esac
24428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24429 (eval "$ac_link") 2>conftest.er1
24430 ac_status=$?
24431 grep -v '^ *+' conftest.er1 >conftest.err
24432 rm -f conftest.er1
24433 cat conftest.err >&5
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); } && {
24436 test -z "$ac_c_werror_flag" ||
24437 test ! -s conftest.err
24438 } && test -s conftest$ac_exeext &&
24439 $as_test_x conftest$ac_exeext; then
24440 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24441 else
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24449 conftest$ac_exeext conftest.$ac_ext
24450 LIBS=$ac_check_lib_save_LIBS
24452 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24453 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24454 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24456 cat >>confdefs.h <<\_ACEOF
24457 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24458 _ACEOF
24463 # check for readline 4.2
24464 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24465 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24466 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24468 else
24469 ac_check_lib_save_LIBS=$LIBS
24470 LIBS="-lreadline $READLINE_LIBS $LIBS"
24471 cat >conftest.$ac_ext <<_ACEOF
24472 /* confdefs.h. */
24473 _ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h. */
24478 /* Override any GCC internal prototype to avoid an error.
24479 Use char because int might match the return type of a GCC
24480 builtin and then its argument prototype would still apply. */
24481 #ifdef __cplusplus
24482 extern "C"
24483 #endif
24484 char rl_completion_matches ();
24486 main ()
24488 return rl_completion_matches ();
24490 return 0;
24492 _ACEOF
24493 rm -f conftest.$ac_objext conftest$ac_exeext
24494 if { (ac_try="$ac_link"
24495 case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24498 esac
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_link") 2>conftest.er1
24501 ac_status=$?
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest$ac_exeext &&
24510 $as_test_x conftest$ac_exeext; then
24511 ac_cv_lib_readline_rl_completion_matches=yes
24512 else
24513 echo "$as_me: failed program was:" >&5
24514 sed 's/^/| /' conftest.$ac_ext >&5
24516 ac_cv_lib_readline_rl_completion_matches=no
24519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24520 conftest$ac_exeext conftest.$ac_ext
24521 LIBS=$ac_check_lib_save_LIBS
24523 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24524 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24525 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24527 cat >>confdefs.h <<\_ACEOF
24528 #define HAVE_RL_COMPLETION_MATCHES 1
24529 _ACEOF
24534 # also in readline 4.2
24535 cat >conftest.$ac_ext <<_ACEOF
24536 /* confdefs.h. */
24537 _ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541 #include <readline/readline.h>
24542 _ACEOF
24543 if { (ac_try="$ac_cpp conftest.$ac_ext"
24544 case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24547 esac
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24550 ac_status=$?
24551 grep -v '^ *+' conftest.er1 >conftest.err
24552 rm -f conftest.er1
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } >/dev/null && {
24556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24557 test ! -s conftest.err
24558 }; then
24559 have_readline=yes
24560 else
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24564 have_readline=no
24567 rm -f conftest.err conftest.$ac_ext
24568 if test $have_readline = yes
24569 then
24570 cat >conftest.$ac_ext <<_ACEOF
24571 /* confdefs.h. */
24572 _ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24576 #include <readline/readline.h>
24578 _ACEOF
24579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24580 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24582 cat >>confdefs.h <<\_ACEOF
24583 #define HAVE_RL_CATCH_SIGNAL 1
24584 _ACEOF
24587 rm -f conftest*
24591 # End of readline checks: restore LIBS
24592 LIBS=$LIBS_no_readline
24594 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24595 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24596 if test "${ac_cv_broken_nice+set}" = set; then
24597 echo $ECHO_N "(cached) $ECHO_C" >&6
24598 else
24600 if test "$cross_compiling" = yes; then
24601 ac_cv_broken_nice=no
24602 else
24603 cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h. */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24610 int main()
24612 int val1 = nice(1);
24613 if (val1 != -1 && val1 == nice(2))
24614 exit(0);
24615 exit(1);
24618 _ACEOF
24619 rm -f conftest$ac_exeext
24620 if { (ac_try="$ac_link"
24621 case "(($ac_try" in
24622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623 *) ac_try_echo=$ac_try;;
24624 esac
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626 (eval "$ac_link") 2>&5
24627 ac_status=$?
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24630 { (case "(($ac_try" in
24631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632 *) ac_try_echo=$ac_try;;
24633 esac
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635 (eval "$ac_try") 2>&5
24636 ac_status=$?
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); }; }; then
24639 ac_cv_broken_nice=yes
24640 else
24641 echo "$as_me: program exited with status $ac_status" >&5
24642 echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24645 ( exit $ac_status )
24646 ac_cv_broken_nice=no
24648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24654 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24655 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24656 if test "$ac_cv_broken_nice" = yes
24657 then
24659 cat >>confdefs.h <<\_ACEOF
24660 #define HAVE_BROKEN_NICE 1
24661 _ACEOF
24665 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24666 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24667 if test "$cross_compiling" = yes; then
24668 ac_cv_broken_poll=no
24669 else
24670 cat >conftest.$ac_ext <<_ACEOF
24671 /* confdefs.h. */
24672 _ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h. */
24677 #include <poll.h>
24679 int main (void)
24681 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24683 close (42);
24685 int poll_test = poll (&poll_struct, 1, 0);
24687 if (poll_test < 0)
24689 exit(0);
24691 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24693 exit(0);
24695 else
24697 exit(1);
24701 _ACEOF
24702 rm -f conftest$ac_exeext
24703 if { (ac_try="$ac_link"
24704 case "(($ac_try" in
24705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24706 *) ac_try_echo=$ac_try;;
24707 esac
24708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24709 (eval "$ac_link") 2>&5
24710 ac_status=$?
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24713 { (case "(($ac_try" in
24714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715 *) ac_try_echo=$ac_try;;
24716 esac
24717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718 (eval "$ac_try") 2>&5
24719 ac_status=$?
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; }; then
24722 ac_cv_broken_poll=yes
24723 else
24724 echo "$as_me: program exited with status $ac_status" >&5
24725 echo "$as_me: failed program was:" >&5
24726 sed 's/^/| /' conftest.$ac_ext >&5
24728 ( exit $ac_status )
24729 ac_cv_broken_poll=no
24731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24735 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24736 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24737 if test "$ac_cv_broken_poll" = yes
24738 then
24740 cat >>confdefs.h <<\_ACEOF
24741 #define HAVE_BROKEN_POLL 1
24742 _ACEOF
24746 # Before we can test tzset, we need to check if struct tm has a tm_zone
24747 # (which is not required by ISO C or UNIX spec) and/or if we support
24748 # tzname[]
24749 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24750 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24751 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24753 else
24754 cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h. */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24760 #include <sys/types.h>
24761 #include <$ac_cv_struct_tm>
24765 main ()
24767 static struct tm ac_aggr;
24768 if (ac_aggr.tm_zone)
24769 return 0;
24771 return 0;
24773 _ACEOF
24774 rm -f conftest.$ac_objext
24775 if { (ac_try="$ac_compile"
24776 case "(($ac_try" in
24777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778 *) ac_try_echo=$ac_try;;
24779 esac
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781 (eval "$ac_compile") 2>conftest.er1
24782 ac_status=$?
24783 grep -v '^ *+' conftest.er1 >conftest.err
24784 rm -f conftest.er1
24785 cat conftest.err >&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } && {
24788 test -z "$ac_c_werror_flag" ||
24789 test ! -s conftest.err
24790 } && test -s conftest.$ac_objext; then
24791 ac_cv_member_struct_tm_tm_zone=yes
24792 else
24793 echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24796 cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h. */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24802 #include <sys/types.h>
24803 #include <$ac_cv_struct_tm>
24807 main ()
24809 static struct tm ac_aggr;
24810 if (sizeof ac_aggr.tm_zone)
24811 return 0;
24813 return 0;
24815 _ACEOF
24816 rm -f conftest.$ac_objext
24817 if { (ac_try="$ac_compile"
24818 case "(($ac_try" in
24819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24820 *) ac_try_echo=$ac_try;;
24821 esac
24822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24823 (eval "$ac_compile") 2>conftest.er1
24824 ac_status=$?
24825 grep -v '^ *+' conftest.er1 >conftest.err
24826 rm -f conftest.er1
24827 cat conftest.err >&5
24828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829 (exit $ac_status); } && {
24830 test -z "$ac_c_werror_flag" ||
24831 test ! -s conftest.err
24832 } && test -s conftest.$ac_objext; then
24833 ac_cv_member_struct_tm_tm_zone=yes
24834 else
24835 echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24838 ac_cv_member_struct_tm_tm_zone=no
24841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24846 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24847 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24848 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24850 cat >>confdefs.h <<_ACEOF
24851 #define HAVE_STRUCT_TM_TM_ZONE 1
24852 _ACEOF
24857 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24859 cat >>confdefs.h <<\_ACEOF
24860 #define HAVE_TM_ZONE 1
24861 _ACEOF
24863 else
24864 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24865 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24866 if test "${ac_cv_have_decl_tzname+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24868 else
24869 cat >conftest.$ac_ext <<_ACEOF
24870 /* confdefs.h. */
24871 _ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24875 #include <time.h>
24878 main ()
24880 #ifndef tzname
24881 (void) tzname;
24882 #endif
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_have_decl_tzname=yes
24906 else
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24910 ac_cv_have_decl_tzname=no
24913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24916 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24917 if test $ac_cv_have_decl_tzname = yes; then
24919 cat >>confdefs.h <<_ACEOF
24920 #define HAVE_DECL_TZNAME 1
24921 _ACEOF
24924 else
24925 cat >>confdefs.h <<_ACEOF
24926 #define HAVE_DECL_TZNAME 0
24927 _ACEOF
24933 { echo "$as_me:$LINENO: checking for tzname" >&5
24934 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24935 if test "${ac_cv_var_tzname+set}" = set; then
24936 echo $ECHO_N "(cached) $ECHO_C" >&6
24937 else
24938 cat >conftest.$ac_ext <<_ACEOF
24939 /* confdefs.h. */
24940 _ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24944 #include <time.h>
24945 #if !HAVE_DECL_TZNAME
24946 extern char *tzname[];
24947 #endif
24950 main ()
24952 return tzname[0][0];
24954 return 0;
24956 _ACEOF
24957 rm -f conftest.$ac_objext conftest$ac_exeext
24958 if { (ac_try="$ac_link"
24959 case "(($ac_try" in
24960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961 *) ac_try_echo=$ac_try;;
24962 esac
24963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24964 (eval "$ac_link") 2>conftest.er1
24965 ac_status=$?
24966 grep -v '^ *+' conftest.er1 >conftest.err
24967 rm -f conftest.er1
24968 cat conftest.err >&5
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); } && {
24971 test -z "$ac_c_werror_flag" ||
24972 test ! -s conftest.err
24973 } && test -s conftest$ac_exeext &&
24974 $as_test_x conftest$ac_exeext; then
24975 ac_cv_var_tzname=yes
24976 else
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24980 ac_cv_var_tzname=no
24983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24984 conftest$ac_exeext conftest.$ac_ext
24986 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24987 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24988 if test $ac_cv_var_tzname = yes; then
24990 cat >>confdefs.h <<\_ACEOF
24991 #define HAVE_TZNAME 1
24992 _ACEOF
24998 # check tzset(3) exists and works like we expect it to
24999 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25000 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25001 if test "${ac_cv_working_tzset+set}" = set; then
25002 echo $ECHO_N "(cached) $ECHO_C" >&6
25003 else
25005 if test "$cross_compiling" = yes; then
25006 ac_cv_working_tzset=no
25007 else
25008 cat >conftest.$ac_ext <<_ACEOF
25009 /* confdefs.h. */
25010 _ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25015 #include <stdlib.h>
25016 #include <time.h>
25017 #include <string.h>
25019 #if HAVE_TZNAME
25020 extern char *tzname[];
25021 #endif
25023 int main()
25025 /* Note that we need to ensure that not only does tzset(3)
25026 do 'something' with localtime, but it works as documented
25027 in the library reference and as expected by the test suite.
25028 This includes making sure that tzname is set properly if
25029 tm->tm_zone does not exist since it is the alternative way
25030 of getting timezone info.
25032 Red Hat 6.2 doesn't understand the southern hemisphere
25033 after New Year's Day.
25036 time_t groundhogday = 1044144000; /* GMT-based */
25037 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25039 putenv("TZ=UTC+0");
25040 tzset();
25041 if (localtime(&groundhogday)->tm_hour != 0)
25042 exit(1);
25043 #if HAVE_TZNAME
25044 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25045 if (strcmp(tzname[0], "UTC") ||
25046 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25047 exit(1);
25048 #endif
25050 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25051 tzset();
25052 if (localtime(&groundhogday)->tm_hour != 19)
25053 exit(1);
25054 #if HAVE_TZNAME
25055 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25056 exit(1);
25057 #endif
25059 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25060 tzset();
25061 if (localtime(&groundhogday)->tm_hour != 11)
25062 exit(1);
25063 #if HAVE_TZNAME
25064 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25065 exit(1);
25066 #endif
25068 #if HAVE_STRUCT_TM_TM_ZONE
25069 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25070 exit(1);
25071 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25072 exit(1);
25073 #endif
25075 exit(0);
25078 _ACEOF
25079 rm -f conftest$ac_exeext
25080 if { (ac_try="$ac_link"
25081 case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25084 esac
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086 (eval "$ac_link") 2>&5
25087 ac_status=$?
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25090 { (case "(($ac_try" in
25091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25092 *) ac_try_echo=$ac_try;;
25093 esac
25094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25095 (eval "$ac_try") 2>&5
25096 ac_status=$?
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; }; then
25099 ac_cv_working_tzset=yes
25100 else
25101 echo "$as_me: program exited with status $ac_status" >&5
25102 echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25105 ( exit $ac_status )
25106 ac_cv_working_tzset=no
25108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25114 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25115 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25116 if test "$ac_cv_working_tzset" = yes
25117 then
25119 cat >>confdefs.h <<\_ACEOF
25120 #define HAVE_WORKING_TZSET 1
25121 _ACEOF
25125 # Look for subsecond timestamps in struct stat
25126 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25127 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25128 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25129 echo $ECHO_N "(cached) $ECHO_C" >&6
25130 else
25131 cat >conftest.$ac_ext <<_ACEOF
25132 /* confdefs.h. */
25133 _ACEOF
25134 cat confdefs.h >>conftest.$ac_ext
25135 cat >>conftest.$ac_ext <<_ACEOF
25136 /* end confdefs.h. */
25137 #include <sys/stat.h>
25139 main ()
25142 struct stat st;
25143 st.st_mtim.tv_nsec = 1;
25146 return 0;
25148 _ACEOF
25149 rm -f conftest.$ac_objext
25150 if { (ac_try="$ac_compile"
25151 case "(($ac_try" in
25152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25153 *) ac_try_echo=$ac_try;;
25154 esac
25155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25156 (eval "$ac_compile") 2>conftest.er1
25157 ac_status=$?
25158 grep -v '^ *+' conftest.er1 >conftest.err
25159 rm -f conftest.er1
25160 cat conftest.err >&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); } && {
25163 test -z "$ac_c_werror_flag" ||
25164 test ! -s conftest.err
25165 } && test -s conftest.$ac_objext; then
25166 ac_cv_stat_tv_nsec=yes
25167 else
25168 echo "$as_me: failed program was:" >&5
25169 sed 's/^/| /' conftest.$ac_ext >&5
25171 ac_cv_stat_tv_nsec=no
25174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25178 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25179 if test "$ac_cv_stat_tv_nsec" = yes
25180 then
25182 cat >>confdefs.h <<\_ACEOF
25183 #define HAVE_STAT_TV_NSEC 1
25184 _ACEOF
25188 # Look for BSD style subsecond timestamps in struct stat
25189 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25190 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25191 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
25193 else
25194 cat >conftest.$ac_ext <<_ACEOF
25195 /* confdefs.h. */
25196 _ACEOF
25197 cat confdefs.h >>conftest.$ac_ext
25198 cat >>conftest.$ac_ext <<_ACEOF
25199 /* end confdefs.h. */
25200 #include <sys/stat.h>
25202 main ()
25205 struct stat st;
25206 st.st_mtimespec.tv_nsec = 1;
25209 return 0;
25211 _ACEOF
25212 rm -f conftest.$ac_objext
25213 if { (ac_try="$ac_compile"
25214 case "(($ac_try" in
25215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25217 esac
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_compile") 2>conftest.er1
25220 ac_status=$?
25221 grep -v '^ *+' conftest.er1 >conftest.err
25222 rm -f conftest.er1
25223 cat conftest.err >&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); } && {
25226 test -z "$ac_c_werror_flag" ||
25227 test ! -s conftest.err
25228 } && test -s conftest.$ac_objext; then
25229 ac_cv_stat_tv_nsec2=yes
25230 else
25231 echo "$as_me: failed program was:" >&5
25232 sed 's/^/| /' conftest.$ac_ext >&5
25234 ac_cv_stat_tv_nsec2=no
25237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25240 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25241 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
25242 if test "$ac_cv_stat_tv_nsec2" = yes
25243 then
25245 cat >>confdefs.h <<\_ACEOF
25246 #define HAVE_STAT_TV_NSEC2 1
25247 _ACEOF
25251 # On HP/UX 11.0, mvwdelch is a block with a return statement
25252 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25253 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
25254 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25255 echo $ECHO_N "(cached) $ECHO_C" >&6
25256 else
25257 cat >conftest.$ac_ext <<_ACEOF
25258 /* confdefs.h. */
25259 _ACEOF
25260 cat confdefs.h >>conftest.$ac_ext
25261 cat >>conftest.$ac_ext <<_ACEOF
25262 /* end confdefs.h. */
25263 #include <curses.h>
25265 main ()
25268 int rtn;
25269 rtn = mvwdelch(0,0,0);
25272 return 0;
25274 _ACEOF
25275 rm -f conftest.$ac_objext
25276 if { (ac_try="$ac_compile"
25277 case "(($ac_try" in
25278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25279 *) ac_try_echo=$ac_try;;
25280 esac
25281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25282 (eval "$ac_compile") 2>conftest.er1
25283 ac_status=$?
25284 grep -v '^ *+' conftest.er1 >conftest.err
25285 rm -f conftest.er1
25286 cat conftest.err >&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); } && {
25289 test -z "$ac_c_werror_flag" ||
25290 test ! -s conftest.err
25291 } && test -s conftest.$ac_objext; then
25292 ac_cv_mvwdelch_is_expression=yes
25293 else
25294 echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25297 ac_cv_mvwdelch_is_expression=no
25300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25303 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25304 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
25306 if test "$ac_cv_mvwdelch_is_expression" = yes
25307 then
25309 cat >>confdefs.h <<\_ACEOF
25310 #define MVWDELCH_IS_EXPRESSION 1
25311 _ACEOF
25315 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25316 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
25317 if test "${ac_cv_window_has_flags+set}" = set; then
25318 echo $ECHO_N "(cached) $ECHO_C" >&6
25319 else
25320 cat >conftest.$ac_ext <<_ACEOF
25321 /* confdefs.h. */
25322 _ACEOF
25323 cat confdefs.h >>conftest.$ac_ext
25324 cat >>conftest.$ac_ext <<_ACEOF
25325 /* end confdefs.h. */
25326 #include <curses.h>
25328 main ()
25331 WINDOW *w;
25332 w->_flags = 0;
25335 return 0;
25337 _ACEOF
25338 rm -f conftest.$ac_objext
25339 if { (ac_try="$ac_compile"
25340 case "(($ac_try" in
25341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25342 *) ac_try_echo=$ac_try;;
25343 esac
25344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25345 (eval "$ac_compile") 2>conftest.er1
25346 ac_status=$?
25347 grep -v '^ *+' conftest.er1 >conftest.err
25348 rm -f conftest.er1
25349 cat conftest.err >&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); } && {
25352 test -z "$ac_c_werror_flag" ||
25353 test ! -s conftest.err
25354 } && test -s conftest.$ac_objext; then
25355 ac_cv_window_has_flags=yes
25356 else
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25360 ac_cv_window_has_flags=no
25363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25366 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25367 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
25370 if test "$ac_cv_window_has_flags" = yes
25371 then
25373 cat >>confdefs.h <<\_ACEOF
25374 #define WINDOW_HAS_FLAGS 1
25375 _ACEOF
25379 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
25380 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
25381 cat >conftest.$ac_ext <<_ACEOF
25382 /* confdefs.h. */
25383 _ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 #include <curses.h>
25389 main ()
25391 void *x=is_term_resized
25393 return 0;
25395 _ACEOF
25396 rm -f conftest.$ac_objext
25397 if { (ac_try="$ac_compile"
25398 case "(($ac_try" in
25399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25400 *) ac_try_echo=$ac_try;;
25401 esac
25402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25403 (eval "$ac_compile") 2>conftest.er1
25404 ac_status=$?
25405 grep -v '^ *+' conftest.er1 >conftest.err
25406 rm -f conftest.er1
25407 cat conftest.err >&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } && {
25410 test -z "$ac_c_werror_flag" ||
25411 test ! -s conftest.err
25412 } && test -s conftest.$ac_objext; then
25414 cat >>confdefs.h <<\_ACEOF
25415 #define HAVE_CURSES_IS_TERM_RESIZED 1
25416 _ACEOF
25418 { echo "$as_me:$LINENO: result: yes" >&5
25419 echo "${ECHO_T}yes" >&6; }
25420 else
25421 echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25424 { echo "$as_me:$LINENO: result: no" >&5
25425 echo "${ECHO_T}no" >&6; }
25429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25431 { echo "$as_me:$LINENO: checking for resize_term" >&5
25432 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25433 cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h. */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 #include <curses.h>
25441 main ()
25443 void *x=resize_term
25445 return 0;
25447 _ACEOF
25448 rm -f conftest.$ac_objext
25449 if { (ac_try="$ac_compile"
25450 case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25453 esac
25454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455 (eval "$ac_compile") 2>conftest.er1
25456 ac_status=$?
25457 grep -v '^ *+' conftest.er1 >conftest.err
25458 rm -f conftest.er1
25459 cat conftest.err >&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } && {
25462 test -z "$ac_c_werror_flag" ||
25463 test ! -s conftest.err
25464 } && test -s conftest.$ac_objext; then
25466 cat >>confdefs.h <<\_ACEOF
25467 #define HAVE_CURSES_RESIZE_TERM 1
25468 _ACEOF
25470 { echo "$as_me:$LINENO: result: yes" >&5
25471 echo "${ECHO_T}yes" >&6; }
25472 else
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 { echo "$as_me:$LINENO: result: no" >&5
25477 echo "${ECHO_T}no" >&6; }
25481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25484 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25485 cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h. */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25491 #include <curses.h>
25493 main ()
25495 void *x=resizeterm
25497 return 0;
25499 _ACEOF
25500 rm -f conftest.$ac_objext
25501 if { (ac_try="$ac_compile"
25502 case "(($ac_try" in
25503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504 *) ac_try_echo=$ac_try;;
25505 esac
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507 (eval "$ac_compile") 2>conftest.er1
25508 ac_status=$?
25509 grep -v '^ *+' conftest.er1 >conftest.err
25510 rm -f conftest.er1
25511 cat conftest.err >&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } && {
25514 test -z "$ac_c_werror_flag" ||
25515 test ! -s conftest.err
25516 } && test -s conftest.$ac_objext; then
25518 cat >>confdefs.h <<\_ACEOF
25519 #define HAVE_CURSES_RESIZETERM 1
25520 _ACEOF
25522 { echo "$as_me:$LINENO: result: yes" >&5
25523 echo "${ECHO_T}yes" >&6; }
25524 else
25525 echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25528 { echo "$as_me:$LINENO: result: no" >&5
25529 echo "${ECHO_T}no" >&6; }
25533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25535 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25536 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25538 if test -r /dev/ptmx
25539 then
25540 { echo "$as_me:$LINENO: result: yes" >&5
25541 echo "${ECHO_T}yes" >&6; }
25543 cat >>confdefs.h <<\_ACEOF
25544 #define HAVE_DEV_PTMX 1
25545 _ACEOF
25547 else
25548 { echo "$as_me:$LINENO: result: no" >&5
25549 echo "${ECHO_T}no" >&6; }
25552 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25553 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25555 if test -r /dev/ptc
25556 then
25557 { echo "$as_me:$LINENO: result: yes" >&5
25558 echo "${ECHO_T}yes" >&6; }
25560 cat >>confdefs.h <<\_ACEOF
25561 #define HAVE_DEV_PTC 1
25562 _ACEOF
25564 else
25565 { echo "$as_me:$LINENO: result: no" >&5
25566 echo "${ECHO_T}no" >&6; }
25569 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25570 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25571 if test "$cross_compiling" = yes; then
25572 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25573 See \`config.log' for more details." >&5
25574 echo "$as_me: error: cannot run test program while cross compiling
25575 See \`config.log' for more details." >&2;}
25576 { (exit 1); exit 1; }; }
25577 else
25578 cat >conftest.$ac_ext <<_ACEOF
25579 /* confdefs.h. */
25580 _ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25584 #include <stdio.h>
25585 #include <stddef.h>
25586 #include <string.h>
25588 #ifdef HAVE_SYS_TYPES_H
25589 #include <sys/types.h>
25590 #endif
25592 #ifdef HAVE_SSIZE_T
25593 typedef ssize_t Py_ssize_t;
25594 #elif SIZEOF_VOID_P == SIZEOF_LONG
25595 typedef long Py_ssize_t;
25596 #else
25597 typedef int Py_ssize_t;
25598 #endif
25600 int main()
25602 char buffer[256];
25604 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25605 return 1;
25607 if (strcmp(buffer, "123"))
25608 return 1;
25610 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25611 return 1;
25613 if (strcmp(buffer, "-123"))
25614 return 1;
25616 return 0;
25618 _ACEOF
25619 rm -f conftest$ac_exeext
25620 if { (ac_try="$ac_link"
25621 case "(($ac_try" in
25622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25623 *) ac_try_echo=$ac_try;;
25624 esac
25625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25626 (eval "$ac_link") 2>&5
25627 ac_status=$?
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25630 { (case "(($ac_try" in
25631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632 *) ac_try_echo=$ac_try;;
25633 esac
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635 (eval "$ac_try") 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; }; then
25639 { echo "$as_me:$LINENO: result: yes" >&5
25640 echo "${ECHO_T}yes" >&6; }
25642 cat >>confdefs.h <<\_ACEOF
25643 #define PY_FORMAT_SIZE_T "z"
25644 _ACEOF
25646 else
25647 echo "$as_me: program exited with status $ac_status" >&5
25648 echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25651 ( exit $ac_status )
25652 { echo "$as_me:$LINENO: result: no" >&5
25653 echo "${ECHO_T}no" >&6; }
25655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25660 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25661 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25662 if test "${ac_cv_type_socklen_t+set}" = set; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25664 else
25665 cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h. */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25672 #ifdef HAVE_SYS_TYPES_H
25673 #include <sys/types.h>
25674 #endif
25675 #ifdef HAVE_SYS_SOCKET_H
25676 #include <sys/socket.h>
25677 #endif
25680 typedef socklen_t ac__type_new_;
25682 main ()
25684 if ((ac__type_new_ *) 0)
25685 return 0;
25686 if (sizeof (ac__type_new_))
25687 return 0;
25689 return 0;
25691 _ACEOF
25692 rm -f conftest.$ac_objext
25693 if { (ac_try="$ac_compile"
25694 case "(($ac_try" in
25695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696 *) ac_try_echo=$ac_try;;
25697 esac
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699 (eval "$ac_compile") 2>conftest.er1
25700 ac_status=$?
25701 grep -v '^ *+' conftest.er1 >conftest.err
25702 rm -f conftest.er1
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } && {
25706 test -z "$ac_c_werror_flag" ||
25707 test ! -s conftest.err
25708 } && test -s conftest.$ac_objext; then
25709 ac_cv_type_socklen_t=yes
25710 else
25711 echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25714 ac_cv_type_socklen_t=no
25717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25719 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25720 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25721 if test $ac_cv_type_socklen_t = yes; then
25723 else
25725 cat >>confdefs.h <<\_ACEOF
25726 #define socklen_t int
25727 _ACEOF
25732 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25733 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25734 if test "$cross_compiling" = yes; then
25735 ac_cv_broken_mbstowcs=no
25736 else
25737 cat >conftest.$ac_ext <<_ACEOF
25738 /* confdefs.h. */
25739 _ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h. */
25744 #include<stdlib.h>
25745 int main() {
25746 size_t len = -1;
25747 const char *str = "text";
25748 len = mbstowcs(NULL, str, 0);
25749 return (len != 4);
25752 _ACEOF
25753 rm -f conftest$ac_exeext
25754 if { (ac_try="$ac_link"
25755 case "(($ac_try" in
25756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757 *) ac_try_echo=$ac_try;;
25758 esac
25759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25760 (eval "$ac_link") 2>&5
25761 ac_status=$?
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25764 { (case "(($ac_try" in
25765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25766 *) ac_try_echo=$ac_try;;
25767 esac
25768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25769 (eval "$ac_try") 2>&5
25770 ac_status=$?
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); }; }; then
25773 ac_cv_broken_mbstowcs=no
25774 else
25775 echo "$as_me: program exited with status $ac_status" >&5
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 ( exit $ac_status )
25780 ac_cv_broken_mbstowcs=yes
25782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25786 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25787 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25788 if test "$ac_cv_broken_mbstowcs" = yes
25789 then
25791 cat >>confdefs.h <<\_ACEOF
25792 #define HAVE_BROKEN_MBSTOWCS 1
25793 _ACEOF
25797 # Check for --with-computed-gotos
25798 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25799 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25801 # Check whether --with-computed-gotos was given.
25802 if test "${with_computed_gotos+set}" = set; then
25803 withval=$with_computed_gotos;
25804 if test "$withval" != no
25805 then
25807 cat >>confdefs.h <<\_ACEOF
25808 #define USE_COMPUTED_GOTOS 1
25809 _ACEOF
25811 { echo "$as_me:$LINENO: result: yes" >&5
25812 echo "${ECHO_T}yes" >&6; }
25813 else { echo "$as_me:$LINENO: result: no" >&5
25814 echo "${ECHO_T}no" >&6; }
25816 else
25817 { echo "$as_me:$LINENO: result: no" >&5
25818 echo "${ECHO_T}no" >&6; }
25822 if test $ac_sys_system = Darwin
25823 then
25824 LIBS="$LIBS -framework CoreFoundation"
25831 for h in `(cd $srcdir;echo Python/thread_*.h)`
25833 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25834 done
25837 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25838 { echo "$as_me:$LINENO: checking for build directories" >&5
25839 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25840 for dir in $SRCDIRS; do
25841 if test ! -d $dir; then
25842 mkdir $dir
25844 done
25845 { echo "$as_me:$LINENO: result: done" >&5
25846 echo "${ECHO_T}done" >&6; }
25848 # generate output files
25849 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25851 cat >confcache <<\_ACEOF
25852 # This file is a shell script that caches the results of configure
25853 # tests run on this system so they can be shared between configure
25854 # scripts and configure runs, see configure's option --config-cache.
25855 # It is not useful on other systems. If it contains results you don't
25856 # want to keep, you may remove or edit it.
25858 # config.status only pays attention to the cache file if you give it
25859 # the --recheck option to rerun configure.
25861 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25862 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25863 # following values.
25865 _ACEOF
25867 # The following way of writing the cache mishandles newlines in values,
25868 # but we know of no workaround that is simple, portable, and efficient.
25869 # So, we kill variables containing newlines.
25870 # Ultrix sh set writes to stderr and can't be redirected directly,
25871 # and sets the high bit in the cache file unless we assign to the vars.
25873 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25874 eval ac_val=\$$ac_var
25875 case $ac_val in #(
25876 *${as_nl}*)
25877 case $ac_var in #(
25878 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25879 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25880 esac
25881 case $ac_var in #(
25882 _ | IFS | as_nl) ;; #(
25883 *) $as_unset $ac_var ;;
25884 esac ;;
25885 esac
25886 done
25888 (set) 2>&1 |
25889 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25890 *${as_nl}ac_space=\ *)
25891 # `set' does not quote correctly, so add quotes (double-quote
25892 # substitution turns \\\\ into \\, and sed turns \\ into \).
25893 sed -n \
25894 "s/'/'\\\\''/g;
25895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25896 ;; #(
25898 # `set' quotes correctly as required by POSIX, so do not add quotes.
25899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25901 esac |
25902 sort
25904 sed '
25905 /^ac_cv_env_/b end
25906 t clear
25907 :clear
25908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25909 t end
25910 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25911 :end' >>confcache
25912 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25913 if test -w "$cache_file"; then
25914 test "x$cache_file" != "x/dev/null" &&
25915 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25916 echo "$as_me: updating cache $cache_file" >&6;}
25917 cat confcache >$cache_file
25918 else
25919 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25920 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25923 rm -f confcache
25925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25926 # Let make expand exec_prefix.
25927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25929 DEFS=-DHAVE_CONFIG_H
25931 ac_libobjs=
25932 ac_ltlibobjs=
25933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25934 # 1. Remove the extension, and $U if already installed.
25935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25936 ac_i=`echo "$ac_i" | sed "$ac_script"`
25937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25938 # will be set to the directory where LIBOBJS objects are built.
25939 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25940 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25941 done
25942 LIBOBJS=$ac_libobjs
25944 LTLIBOBJS=$ac_ltlibobjs
25948 : ${CONFIG_STATUS=./config.status}
25949 ac_clean_files_save=$ac_clean_files
25950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25951 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25952 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25953 cat >$CONFIG_STATUS <<_ACEOF
25954 #! $SHELL
25955 # Generated by $as_me.
25956 # Run this file to recreate the current configuration.
25957 # Compiler output produced by configure, useful for debugging
25958 # configure, is in config.log if it exists.
25960 debug=false
25961 ac_cs_recheck=false
25962 ac_cs_silent=false
25963 SHELL=\${CONFIG_SHELL-$SHELL}
25964 _ACEOF
25966 cat >>$CONFIG_STATUS <<\_ACEOF
25967 ## --------------------- ##
25968 ## M4sh Initialization. ##
25969 ## --------------------- ##
25971 # Be more Bourne compatible
25972 DUALCASE=1; export DUALCASE # for MKS sh
25973 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25974 emulate sh
25975 NULLCMD=:
25976 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25977 # is contrary to our usage. Disable this feature.
25978 alias -g '${1+"$@"}'='"$@"'
25979 setopt NO_GLOB_SUBST
25980 else
25981 case `(set -o) 2>/dev/null` in
25982 *posix*) set -o posix ;;
25983 esac
25990 # PATH needs CR
25991 # Avoid depending upon Character Ranges.
25992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25995 as_cr_digits='0123456789'
25996 as_cr_alnum=$as_cr_Letters$as_cr_digits
25998 # The user is always right.
25999 if test "${PATH_SEPARATOR+set}" != set; then
26000 echo "#! /bin/sh" >conf$$.sh
26001 echo "exit 0" >>conf$$.sh
26002 chmod +x conf$$.sh
26003 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26004 PATH_SEPARATOR=';'
26005 else
26006 PATH_SEPARATOR=:
26008 rm -f conf$$.sh
26011 # Support unset when possible.
26012 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26013 as_unset=unset
26014 else
26015 as_unset=false
26019 # IFS
26020 # We need space, tab and new line, in precisely that order. Quoting is
26021 # there to prevent editors from complaining about space-tab.
26022 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26023 # splitting by setting IFS to empty value.)
26024 as_nl='
26026 IFS=" "" $as_nl"
26028 # Find who we are. Look in the path if we contain no directory separator.
26029 case $0 in
26030 *[\\/]* ) as_myself=$0 ;;
26031 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26032 for as_dir in $PATH
26034 IFS=$as_save_IFS
26035 test -z "$as_dir" && as_dir=.
26036 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26037 done
26038 IFS=$as_save_IFS
26041 esac
26042 # We did not find ourselves, most probably we were run as `sh COMMAND'
26043 # in which case we are not to be found in the path.
26044 if test "x$as_myself" = x; then
26045 as_myself=$0
26047 if test ! -f "$as_myself"; then
26048 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26049 { (exit 1); exit 1; }
26052 # Work around bugs in pre-3.0 UWIN ksh.
26053 for as_var in ENV MAIL MAILPATH
26054 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26055 done
26056 PS1='$ '
26057 PS2='> '
26058 PS4='+ '
26060 # NLS nuisances.
26061 for as_var in \
26062 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26063 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26064 LC_TELEPHONE LC_TIME
26066 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26067 eval $as_var=C; export $as_var
26068 else
26069 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26071 done
26073 # Required to use basename.
26074 if expr a : '\(a\)' >/dev/null 2>&1 &&
26075 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26076 as_expr=expr
26077 else
26078 as_expr=false
26081 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26082 as_basename=basename
26083 else
26084 as_basename=false
26088 # Name of the executable.
26089 as_me=`$as_basename -- "$0" ||
26090 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26091 X"$0" : 'X\(//\)$' \| \
26092 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26093 echo X/"$0" |
26094 sed '/^.*\/\([^/][^/]*\)\/*$/{
26095 s//\1/
26098 /^X\/\(\/\/\)$/{
26099 s//\1/
26102 /^X\/\(\/\).*/{
26103 s//\1/
26106 s/.*/./; q'`
26108 # CDPATH.
26109 $as_unset CDPATH
26113 as_lineno_1=$LINENO
26114 as_lineno_2=$LINENO
26115 test "x$as_lineno_1" != "x$as_lineno_2" &&
26116 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26118 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26119 # uniformly replaced by the line number. The first 'sed' inserts a
26120 # line-number line after each line using $LINENO; the second 'sed'
26121 # does the real work. The second script uses 'N' to pair each
26122 # line-number line with the line containing $LINENO, and appends
26123 # trailing '-' during substitution so that $LINENO is not a special
26124 # case at line end.
26125 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26126 # scripts with optimization help from Paolo Bonzini. Blame Lee
26127 # E. McMahon (1931-1989) for sed's syntax. :-)
26128 sed -n '
26130 /[$]LINENO/=
26131 ' <$as_myself |
26132 sed '
26133 s/[$]LINENO.*/&-/
26134 t lineno
26136 :lineno
26138 :loop
26139 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26140 t loop
26141 s/-\n.*//
26142 ' >$as_me.lineno &&
26143 chmod +x "$as_me.lineno" ||
26144 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26145 { (exit 1); exit 1; }; }
26147 # Don't try to exec as it changes $[0], causing all sort of problems
26148 # (the dirname of $[0] is not the place where we might find the
26149 # original and so on. Autoconf is especially sensitive to this).
26150 . "./$as_me.lineno"
26151 # Exit status is that of the last command.
26152 exit
26156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26157 as_dirname=dirname
26158 else
26159 as_dirname=false
26162 ECHO_C= ECHO_N= ECHO_T=
26163 case `echo -n x` in
26164 -n*)
26165 case `echo 'x\c'` in
26166 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26167 *) ECHO_C='\c';;
26168 esac;;
26170 ECHO_N='-n';;
26171 esac
26173 if expr a : '\(a\)' >/dev/null 2>&1 &&
26174 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26175 as_expr=expr
26176 else
26177 as_expr=false
26180 rm -f conf$$ conf$$.exe conf$$.file
26181 if test -d conf$$.dir; then
26182 rm -f conf$$.dir/conf$$.file
26183 else
26184 rm -f conf$$.dir
26185 mkdir conf$$.dir
26187 echo >conf$$.file
26188 if ln -s conf$$.file conf$$ 2>/dev/null; then
26189 as_ln_s='ln -s'
26190 # ... but there are two gotchas:
26191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26193 # In both cases, we have to default to `cp -p'.
26194 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26195 as_ln_s='cp -p'
26196 elif ln conf$$.file conf$$ 2>/dev/null; then
26197 as_ln_s=ln
26198 else
26199 as_ln_s='cp -p'
26201 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26202 rmdir conf$$.dir 2>/dev/null
26204 if mkdir -p . 2>/dev/null; then
26205 as_mkdir_p=:
26206 else
26207 test -d ./-p && rmdir ./-p
26208 as_mkdir_p=false
26211 if test -x / >/dev/null 2>&1; then
26212 as_test_x='test -x'
26213 else
26214 if ls -dL / >/dev/null 2>&1; then
26215 as_ls_L_option=L
26216 else
26217 as_ls_L_option=
26219 as_test_x='
26220 eval sh -c '\''
26221 if test -d "$1"; then
26222 test -d "$1/.";
26223 else
26224 case $1 in
26225 -*)set "./$1";;
26226 esac;
26227 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26228 ???[sx]*):;;*)false;;esac;fi
26229 '\'' sh
26232 as_executable_p=$as_test_x
26234 # Sed expression to map a string onto a valid CPP name.
26235 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26237 # Sed expression to map a string onto a valid variable name.
26238 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26241 exec 6>&1
26243 # Save the log message, to keep $[0] and so on meaningful, and to
26244 # report actual input values of CONFIG_FILES etc. instead of their
26245 # values after options handling.
26246 ac_log="
26247 This file was extended by python $as_me 3.1, which was
26248 generated by GNU Autoconf 2.61. Invocation command line was
26250 CONFIG_FILES = $CONFIG_FILES
26251 CONFIG_HEADERS = $CONFIG_HEADERS
26252 CONFIG_LINKS = $CONFIG_LINKS
26253 CONFIG_COMMANDS = $CONFIG_COMMANDS
26254 $ $0 $@
26256 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26259 _ACEOF
26261 cat >>$CONFIG_STATUS <<_ACEOF
26262 # Files that config.status was made for.
26263 config_files="$ac_config_files"
26264 config_headers="$ac_config_headers"
26266 _ACEOF
26268 cat >>$CONFIG_STATUS <<\_ACEOF
26269 ac_cs_usage="\
26270 \`$as_me' instantiates files from templates according to the
26271 current configuration.
26273 Usage: $0 [OPTIONS] [FILE]...
26275 -h, --help print this help, then exit
26276 -V, --version print version number and configuration settings, then exit
26277 -q, --quiet do not print progress messages
26278 -d, --debug don't remove temporary files
26279 --recheck update $as_me by reconfiguring in the same conditions
26280 --file=FILE[:TEMPLATE]
26281 instantiate the configuration file FILE
26282 --header=FILE[:TEMPLATE]
26283 instantiate the configuration header FILE
26285 Configuration files:
26286 $config_files
26288 Configuration headers:
26289 $config_headers
26291 Report bugs to <bug-autoconf@gnu.org>."
26293 _ACEOF
26294 cat >>$CONFIG_STATUS <<_ACEOF
26295 ac_cs_version="\\
26296 python config.status 3.1
26297 configured by $0, generated by GNU Autoconf 2.61,
26298 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26300 Copyright (C) 2006 Free Software Foundation, Inc.
26301 This config.status script is free software; the Free Software Foundation
26302 gives unlimited permission to copy, distribute and modify it."
26304 ac_pwd='$ac_pwd'
26305 srcdir='$srcdir'
26306 INSTALL='$INSTALL'
26307 _ACEOF
26309 cat >>$CONFIG_STATUS <<\_ACEOF
26310 # If no file are specified by the user, then we need to provide default
26311 # value. By we need to know if files were specified by the user.
26312 ac_need_defaults=:
26313 while test $# != 0
26315 case $1 in
26316 --*=*)
26317 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26318 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26319 ac_shift=:
26322 ac_option=$1
26323 ac_optarg=$2
26324 ac_shift=shift
26326 esac
26328 case $ac_option in
26329 # Handling of the options.
26330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26331 ac_cs_recheck=: ;;
26332 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26333 echo "$ac_cs_version"; exit ;;
26334 --debug | --debu | --deb | --de | --d | -d )
26335 debug=: ;;
26336 --file | --fil | --fi | --f )
26337 $ac_shift
26338 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26339 ac_need_defaults=false;;
26340 --header | --heade | --head | --hea )
26341 $ac_shift
26342 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26343 ac_need_defaults=false;;
26344 --he | --h)
26345 # Conflict between --help and --header
26346 { echo "$as_me: error: ambiguous option: $1
26347 Try \`$0 --help' for more information." >&2
26348 { (exit 1); exit 1; }; };;
26349 --help | --hel | -h )
26350 echo "$ac_cs_usage"; exit ;;
26351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26352 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26353 ac_cs_silent=: ;;
26355 # This is an error.
26356 -*) { echo "$as_me: error: unrecognized option: $1
26357 Try \`$0 --help' for more information." >&2
26358 { (exit 1); exit 1; }; } ;;
26360 *) ac_config_targets="$ac_config_targets $1"
26361 ac_need_defaults=false ;;
26363 esac
26364 shift
26365 done
26367 ac_configure_extra_args=
26369 if $ac_cs_silent; then
26370 exec 6>/dev/null
26371 ac_configure_extra_args="$ac_configure_extra_args --silent"
26374 _ACEOF
26375 cat >>$CONFIG_STATUS <<_ACEOF
26376 if \$ac_cs_recheck; then
26377 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26378 CONFIG_SHELL=$SHELL
26379 export CONFIG_SHELL
26380 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26383 _ACEOF
26384 cat >>$CONFIG_STATUS <<\_ACEOF
26385 exec 5>>config.log
26387 echo
26388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26389 ## Running $as_me. ##
26390 _ASBOX
26391 echo "$ac_log"
26392 } >&5
26394 _ACEOF
26395 cat >>$CONFIG_STATUS <<_ACEOF
26396 _ACEOF
26398 cat >>$CONFIG_STATUS <<\_ACEOF
26400 # Handling of arguments.
26401 for ac_config_target in $ac_config_targets
26403 case $ac_config_target in
26404 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
26405 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
26406 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26407 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26408 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26409 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
26410 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
26411 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
26413 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26414 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26415 { (exit 1); exit 1; }; };;
26416 esac
26417 done
26420 # If the user did not use the arguments to specify the items to instantiate,
26421 # then the envvar interface is used. Set only those that are not.
26422 # We use the long form for the default assignment because of an extremely
26423 # bizarre bug on SunOS 4.1.3.
26424 if $ac_need_defaults; then
26425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26429 # Have a temporary directory for convenience. Make it in the build tree
26430 # simply because there is no reason against having it here, and in addition,
26431 # creating and moving files from /tmp can sometimes cause problems.
26432 # Hook for its removal unless debugging.
26433 # Note that there is a small window in which the directory will not be cleaned:
26434 # after its creation but before its name has been assigned to `$tmp'.
26435 $debug ||
26437 tmp=
26438 trap 'exit_status=$?
26439 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26441 trap '{ (exit 1); exit 1; }' 1 2 13 15
26443 # Create a (secure) tmp directory for tmp files.
26446 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26447 test -n "$tmp" && test -d "$tmp"
26448 } ||
26450 tmp=./conf$$-$RANDOM
26451 (umask 077 && mkdir "$tmp")
26452 } ||
26454 echo "$me: cannot create a temporary directory in ." >&2
26455 { (exit 1); exit 1; }
26459 # Set up the sed scripts for CONFIG_FILES section.
26462 # No need to generate the scripts if there are no CONFIG_FILES.
26463 # This happens for instance when ./config.status config.h
26464 if test -n "$CONFIG_FILES"; then
26466 _ACEOF
26470 ac_delim='%!_!# '
26471 for ac_last_try in false false false false false :; do
26472 cat >conf$$subs.sed <<_ACEOF
26473 SHELL!$SHELL$ac_delim
26474 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26475 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26476 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26477 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26478 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26479 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26480 exec_prefix!$exec_prefix$ac_delim
26481 prefix!$prefix$ac_delim
26482 program_transform_name!$program_transform_name$ac_delim
26483 bindir!$bindir$ac_delim
26484 sbindir!$sbindir$ac_delim
26485 libexecdir!$libexecdir$ac_delim
26486 datarootdir!$datarootdir$ac_delim
26487 datadir!$datadir$ac_delim
26488 sysconfdir!$sysconfdir$ac_delim
26489 sharedstatedir!$sharedstatedir$ac_delim
26490 localstatedir!$localstatedir$ac_delim
26491 includedir!$includedir$ac_delim
26492 oldincludedir!$oldincludedir$ac_delim
26493 docdir!$docdir$ac_delim
26494 infodir!$infodir$ac_delim
26495 htmldir!$htmldir$ac_delim
26496 dvidir!$dvidir$ac_delim
26497 pdfdir!$pdfdir$ac_delim
26498 psdir!$psdir$ac_delim
26499 libdir!$libdir$ac_delim
26500 localedir!$localedir$ac_delim
26501 mandir!$mandir$ac_delim
26502 DEFS!$DEFS$ac_delim
26503 ECHO_C!$ECHO_C$ac_delim
26504 ECHO_N!$ECHO_N$ac_delim
26505 ECHO_T!$ECHO_T$ac_delim
26506 LIBS!$LIBS$ac_delim
26507 build_alias!$build_alias$ac_delim
26508 host_alias!$host_alias$ac_delim
26509 target_alias!$target_alias$ac_delim
26510 VERSION!$VERSION$ac_delim
26511 SOVERSION!$SOVERSION$ac_delim
26512 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26513 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26514 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26515 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26516 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26517 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26518 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26519 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26520 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26521 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26522 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26523 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26524 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26525 MACHDEP!$MACHDEP$ac_delim
26526 SGI_ABI!$SGI_ABI$ac_delim
26527 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26528 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26529 CC!$CC$ac_delim
26530 CFLAGS!$CFLAGS$ac_delim
26531 LDFLAGS!$LDFLAGS$ac_delim
26532 CPPFLAGS!$CPPFLAGS$ac_delim
26533 ac_ct_CC!$ac_ct_CC$ac_delim
26534 EXEEXT!$EXEEXT$ac_delim
26535 OBJEXT!$OBJEXT$ac_delim
26536 CXX!$CXX$ac_delim
26537 MAINCC!$MAINCC$ac_delim
26538 CPP!$CPP$ac_delim
26539 GREP!$GREP$ac_delim
26540 EGREP!$EGREP$ac_delim
26541 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26542 LIBRARY!$LIBRARY$ac_delim
26543 LDLIBRARY!$LDLIBRARY$ac_delim
26544 DLLLIBRARY!$DLLLIBRARY$ac_delim
26545 BLDLIBRARY!$BLDLIBRARY$ac_delim
26546 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26547 INSTSONAME!$INSTSONAME$ac_delim
26548 RUNSHARED!$RUNSHARED$ac_delim
26549 LINKCC!$LINKCC$ac_delim
26550 GNULD!$GNULD$ac_delim
26551 RANLIB!$RANLIB$ac_delim
26552 AR!$AR$ac_delim
26553 ARFLAGS!$ARFLAGS$ac_delim
26554 SVNVERSION!$SVNVERSION$ac_delim
26555 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26556 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26557 INSTALL_DATA!$INSTALL_DATA$ac_delim
26558 LN!$LN$ac_delim
26559 OPT!$OPT$ac_delim
26560 BASECFLAGS!$BASECFLAGS$ac_delim
26561 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26562 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26563 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26564 SO!$SO$ac_delim
26565 LDSHARED!$LDSHARED$ac_delim
26566 BLDSHARED!$BLDSHARED$ac_delim
26567 CCSHARED!$CCSHARED$ac_delim
26568 LINKFORSHARED!$LINKFORSHARED$ac_delim
26569 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26570 _ACEOF
26572 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26573 break
26574 elif $ac_last_try; then
26575 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26576 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26577 { (exit 1); exit 1; }; }
26578 else
26579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26581 done
26583 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26584 if test -n "$ac_eof"; then
26585 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26586 ac_eof=`expr $ac_eof + 1`
26589 cat >>$CONFIG_STATUS <<_ACEOF
26590 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26592 _ACEOF
26593 sed '
26594 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26595 s/^/s,@/; s/!/@,|#_!!_#|/
26598 s/'"$ac_delim"'$/,g/; t
26599 s/$/\\/; p
26600 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26601 ' >>$CONFIG_STATUS <conf$$subs.sed
26602 rm -f conf$$subs.sed
26603 cat >>$CONFIG_STATUS <<_ACEOF
26604 CEOF$ac_eof
26605 _ACEOF
26608 ac_delim='%!_!# '
26609 for ac_last_try in false false false false false :; do
26610 cat >conf$$subs.sed <<_ACEOF
26611 SHLIBS!$SHLIBS$ac_delim
26612 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26613 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26614 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26615 LDLAST!$LDLAST$ac_delim
26616 THREADOBJ!$THREADOBJ$ac_delim
26617 DLINCLDIR!$DLINCLDIR$ac_delim
26618 DYNLOADFILE!$DYNLOADFILE$ac_delim
26619 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26620 TRUE!$TRUE$ac_delim
26621 LIBOBJS!$LIBOBJS$ac_delim
26622 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26623 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26624 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26625 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26626 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26627 LIBM!$LIBM$ac_delim
26628 LIBC!$LIBC$ac_delim
26629 THREADHEADERS!$THREADHEADERS$ac_delim
26630 SRCDIRS!$SRCDIRS$ac_delim
26631 LTLIBOBJS!$LTLIBOBJS$ac_delim
26632 _ACEOF
26634 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
26635 break
26636 elif $ac_last_try; then
26637 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26638 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26639 { (exit 1); exit 1; }; }
26640 else
26641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26643 done
26645 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26646 if test -n "$ac_eof"; then
26647 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26648 ac_eof=`expr $ac_eof + 1`
26651 cat >>$CONFIG_STATUS <<_ACEOF
26652 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26653 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26654 _ACEOF
26655 sed '
26656 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26657 s/^/s,@/; s/!/@,|#_!!_#|/
26660 s/'"$ac_delim"'$/,g/; t
26661 s/$/\\/; p
26662 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26663 ' >>$CONFIG_STATUS <conf$$subs.sed
26664 rm -f conf$$subs.sed
26665 cat >>$CONFIG_STATUS <<_ACEOF
26666 :end
26667 s/|#_!!_#|//g
26668 CEOF$ac_eof
26669 _ACEOF
26672 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26673 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26674 # trailing colons and then remove the whole line if VPATH becomes empty
26675 # (actually we leave an empty line to preserve line numbers).
26676 if test "x$srcdir" = x.; then
26677 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26678 s/:*\$(srcdir):*/:/
26679 s/:*\${srcdir}:*/:/
26680 s/:*@srcdir@:*/:/
26681 s/^\([^=]*=[ ]*\):*/\1/
26682 s/:*$//
26683 s/^[^=]*=[ ]*$//
26687 cat >>$CONFIG_STATUS <<\_ACEOF
26688 fi # test -n "$CONFIG_FILES"
26691 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26693 case $ac_tag in
26694 :[FHLC]) ac_mode=$ac_tag; continue;;
26695 esac
26696 case $ac_mode$ac_tag in
26697 :[FHL]*:*);;
26698 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26699 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26700 { (exit 1); exit 1; }; };;
26701 :[FH]-) ac_tag=-:-;;
26702 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26703 esac
26704 ac_save_IFS=$IFS
26705 IFS=:
26706 set x $ac_tag
26707 IFS=$ac_save_IFS
26708 shift
26709 ac_file=$1
26710 shift
26712 case $ac_mode in
26713 :L) ac_source=$1;;
26714 :[FH])
26715 ac_file_inputs=
26716 for ac_f
26718 case $ac_f in
26719 -) ac_f="$tmp/stdin";;
26720 *) # Look for the file first in the build tree, then in the source tree
26721 # (if the path is not absolute). The absolute path cannot be DOS-style,
26722 # because $ac_f cannot contain `:'.
26723 test -f "$ac_f" ||
26724 case $ac_f in
26725 [\\/$]*) false;;
26726 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26727 esac ||
26728 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26729 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26730 { (exit 1); exit 1; }; };;
26731 esac
26732 ac_file_inputs="$ac_file_inputs $ac_f"
26733 done
26735 # Let's still pretend it is `configure' which instantiates (i.e., don't
26736 # use $as_me), people would be surprised to read:
26737 # /* config.h. Generated by config.status. */
26738 configure_input="Generated from "`IFS=:
26739 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26740 if test x"$ac_file" != x-; then
26741 configure_input="$ac_file. $configure_input"
26742 { echo "$as_me:$LINENO: creating $ac_file" >&5
26743 echo "$as_me: creating $ac_file" >&6;}
26746 case $ac_tag in
26747 *:-:* | *:-) cat >"$tmp/stdin";;
26748 esac
26750 esac
26752 ac_dir=`$as_dirname -- "$ac_file" ||
26753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26754 X"$ac_file" : 'X\(//\)[^/]' \| \
26755 X"$ac_file" : 'X\(//\)$' \| \
26756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26757 echo X"$ac_file" |
26758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26759 s//\1/
26762 /^X\(\/\/\)[^/].*/{
26763 s//\1/
26766 /^X\(\/\/\)$/{
26767 s//\1/
26770 /^X\(\/\).*/{
26771 s//\1/
26774 s/.*/./; q'`
26775 { as_dir="$ac_dir"
26776 case $as_dir in #(
26777 -*) as_dir=./$as_dir;;
26778 esac
26779 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26780 as_dirs=
26781 while :; do
26782 case $as_dir in #(
26783 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26784 *) as_qdir=$as_dir;;
26785 esac
26786 as_dirs="'$as_qdir' $as_dirs"
26787 as_dir=`$as_dirname -- "$as_dir" ||
26788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26789 X"$as_dir" : 'X\(//\)[^/]' \| \
26790 X"$as_dir" : 'X\(//\)$' \| \
26791 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26792 echo X"$as_dir" |
26793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26794 s//\1/
26797 /^X\(\/\/\)[^/].*/{
26798 s//\1/
26801 /^X\(\/\/\)$/{
26802 s//\1/
26805 /^X\(\/\).*/{
26806 s//\1/
26809 s/.*/./; q'`
26810 test -d "$as_dir" && break
26811 done
26812 test -z "$as_dirs" || eval "mkdir $as_dirs"
26813 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26814 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26815 { (exit 1); exit 1; }; }; }
26816 ac_builddir=.
26818 case "$ac_dir" in
26819 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26822 # A ".." for each directory in $ac_dir_suffix.
26823 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26824 case $ac_top_builddir_sub in
26825 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26826 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26827 esac ;;
26828 esac
26829 ac_abs_top_builddir=$ac_pwd
26830 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26831 # for backward compatibility:
26832 ac_top_builddir=$ac_top_build_prefix
26834 case $srcdir in
26835 .) # We are building in place.
26836 ac_srcdir=.
26837 ac_top_srcdir=$ac_top_builddir_sub
26838 ac_abs_top_srcdir=$ac_pwd ;;
26839 [\\/]* | ?:[\\/]* ) # Absolute name.
26840 ac_srcdir=$srcdir$ac_dir_suffix;
26841 ac_top_srcdir=$srcdir
26842 ac_abs_top_srcdir=$srcdir ;;
26843 *) # Relative name.
26844 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26845 ac_top_srcdir=$ac_top_build_prefix$srcdir
26846 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26847 esac
26848 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26851 case $ac_mode in
26854 # CONFIG_FILE
26857 case $INSTALL in
26858 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26859 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26860 esac
26861 _ACEOF
26863 cat >>$CONFIG_STATUS <<\_ACEOF
26864 # If the template does not know about datarootdir, expand it.
26865 # FIXME: This hack should be removed a few years after 2.60.
26866 ac_datarootdir_hack=; ac_datarootdir_seen=
26868 case `sed -n '/datarootdir/ {
26872 /@datadir@/p
26873 /@docdir@/p
26874 /@infodir@/p
26875 /@localedir@/p
26876 /@mandir@/p
26877 ' $ac_file_inputs` in
26878 *datarootdir*) ac_datarootdir_seen=yes;;
26879 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26880 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26881 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26882 _ACEOF
26883 cat >>$CONFIG_STATUS <<_ACEOF
26884 ac_datarootdir_hack='
26885 s&@datadir@&$datadir&g
26886 s&@docdir@&$docdir&g
26887 s&@infodir@&$infodir&g
26888 s&@localedir@&$localedir&g
26889 s&@mandir@&$mandir&g
26890 s&\\\${datarootdir}&$datarootdir&g' ;;
26891 esac
26892 _ACEOF
26894 # Neutralize VPATH when `$srcdir' = `.'.
26895 # Shell code in configure.ac might set extrasub.
26896 # FIXME: do we really want to maintain this feature?
26897 cat >>$CONFIG_STATUS <<_ACEOF
26898 sed "$ac_vpsub
26899 $extrasub
26900 _ACEOF
26901 cat >>$CONFIG_STATUS <<\_ACEOF
26903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26904 s&@configure_input@&$configure_input&;t t
26905 s&@top_builddir@&$ac_top_builddir_sub&;t t
26906 s&@srcdir@&$ac_srcdir&;t t
26907 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26908 s&@top_srcdir@&$ac_top_srcdir&;t t
26909 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26910 s&@builddir@&$ac_builddir&;t t
26911 s&@abs_builddir@&$ac_abs_builddir&;t t
26912 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26913 s&@INSTALL@&$ac_INSTALL&;t t
26914 $ac_datarootdir_hack
26915 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26917 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26918 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26920 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26921 which seems to be undefined. Please make sure it is defined." >&5
26922 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26923 which seems to be undefined. Please make sure it is defined." >&2;}
26925 rm -f "$tmp/stdin"
26926 case $ac_file in
26927 -) cat "$tmp/out"; rm -f "$tmp/out";;
26928 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26929 esac
26933 # CONFIG_HEADER
26935 _ACEOF
26937 # Transform confdefs.h into a sed script `conftest.defines', that
26938 # substitutes the proper values into config.h.in to produce config.h.
26939 rm -f conftest.defines conftest.tail
26940 # First, append a space to every undef/define line, to ease matching.
26941 echo 's/$/ /' >conftest.defines
26942 # Then, protect against being on the right side of a sed subst, or in
26943 # an unquoted here document, in config.status. If some macros were
26944 # called several times there might be several #defines for the same
26945 # symbol, which is useless. But do not sort them, since the last
26946 # AC_DEFINE must be honored.
26947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26948 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26949 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26950 # PARAMS is the parameter list in the macro definition--in most cases, it's
26951 # just an empty string.
26952 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26953 ac_dB='\\)[ (].*,\\1define\\2'
26954 ac_dC=' '
26955 ac_dD=' ,'
26957 uniq confdefs.h |
26958 sed -n '
26959 t rset
26960 :rset
26961 s/^[ ]*#[ ]*define[ ][ ]*//
26962 t ok
26965 s/[\\&,]/\\&/g
26966 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26967 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26968 ' >>conftest.defines
26970 # Remove the space that was appended to ease matching.
26971 # Then replace #undef with comments. This is necessary, for
26972 # example, in the case of _POSIX_SOURCE, which is predefined and required
26973 # on some systems where configure will not decide to define it.
26974 # (The regexp can be short, since the line contains either #define or #undef.)
26975 echo 's/ $//
26976 s,^[ #]*u.*,/* & */,' >>conftest.defines
26978 # Break up conftest.defines:
26979 ac_max_sed_lines=50
26981 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26982 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26983 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26984 # et cetera.
26985 ac_in='$ac_file_inputs'
26986 ac_out='"$tmp/out1"'
26987 ac_nxt='"$tmp/out2"'
26989 while :
26991 # Write a here document:
26992 cat >>$CONFIG_STATUS <<_ACEOF
26993 # First, check the format of the line:
26994 cat >"\$tmp/defines.sed" <<\\CEOF
26995 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26996 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26998 :def
26999 _ACEOF
27000 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27001 echo 'CEOF
27002 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27003 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27004 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27005 grep . conftest.tail >/dev/null || break
27006 rm -f conftest.defines
27007 mv conftest.tail conftest.defines
27008 done
27009 rm -f conftest.defines conftest.tail
27011 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27012 cat >>$CONFIG_STATUS <<\_ACEOF
27013 if test x"$ac_file" != x-; then
27014 echo "/* $configure_input */" >"$tmp/config.h"
27015 cat "$ac_result" >>"$tmp/config.h"
27016 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27017 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27018 echo "$as_me: $ac_file is unchanged" >&6;}
27019 else
27020 rm -f $ac_file
27021 mv "$tmp/config.h" $ac_file
27023 else
27024 echo "/* $configure_input */"
27025 cat "$ac_result"
27027 rm -f "$tmp/out12"
27031 esac
27033 done # for ac_tag
27036 { (exit 0); exit 0; }
27037 _ACEOF
27038 chmod +x $CONFIG_STATUS
27039 ac_clean_files=$ac_clean_files_save
27042 # configure is writing to config.log, and then calls config.status.
27043 # config.status does its own redirection, appending to config.log.
27044 # Unfortunately, on DOS this fails, as config.log is still kept open
27045 # by configure, so config.status won't be able to write to it; its
27046 # output is simply discarded. So we exec the FD to /dev/null,
27047 # effectively closing config.log, so it can be properly (re)opened and
27048 # appended to by config.status. When coming back to configure, we
27049 # need to make the FD available again.
27050 if test "$no_create" != yes; then
27051 ac_cs_success=:
27052 ac_config_status_args=
27053 test "$silent" = yes &&
27054 ac_config_status_args="$ac_config_status_args --quiet"
27055 exec 5>/dev/null
27056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27057 exec 5>>config.log
27058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27059 # would make configure fail if this is the last instruction.
27060 $ac_cs_success || { (exit 1); exit 1; }
27064 echo "creating Modules/Setup"
27065 if test ! -f Modules/Setup
27066 then
27067 cp $srcdir/Modules/Setup.dist Modules/Setup
27070 echo "creating Modules/Setup.local"
27071 if test ! -f Modules/Setup.local
27072 then
27073 echo "# Edit this file for local setup changes" >Modules/Setup.local
27076 echo "creating Makefile"
27077 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
27078 -s Modules Modules/Setup.config \
27079 Modules/Setup.local Modules/Setup
27080 mv config.c Modules