Require implementations for warnings.showwarning() support the 'line' argument.
[python.git] / configure
blob1e144016dd8ca9f4ec3c6d3a2a616c036b11f76b
1 #! /bin/sh
2 # From configure.in Revision: 68299 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 EXTRAPLATDIR
674 EXTRAMACHDEPPATH
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 RANLIB
700 SVNVERSION
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
706 BASECFLAGS
707 UNIVERSAL_ARCH_FLAGS
708 OTHER_LIBTOOL_OPT
709 LIBTOOL_CRUFT
711 LDSHARED
712 BLDSHARED
713 CCSHARED
714 LINKFORSHARED
715 CFLAGSFORSHARED
716 SHLIBS
717 USE_SIGNAL_MODULE
718 SIGNAL_OBJS
719 USE_THREAD_MODULE
720 LDLAST
721 THREADOBJ
722 DLINCLDIR
723 DYNLOADFILE
724 MACHDEP_OBJS
725 TRUE
726 LIBOBJS
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
730 HAVE_GETHOSTBYNAME_R
731 HAVE_GETHOSTBYNAME
732 LIBM
733 LIBC
734 UNICODE_OBJS
735 THREADHEADERS
736 SRCDIRS
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP'
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
755 cache_file=/dev/null
756 exec_prefix=NONE
757 no_create=
758 no_recursion=
759 prefix=NONE
760 program_prefix=NONE
761 program_suffix=NONE
762 program_transform_name=s,x,x,
763 silent=
764 site=
765 srcdir=
766 verbose=
767 x_includes=NONE
768 x_libraries=NONE
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir='${exec_prefix}/bin'
777 sbindir='${exec_prefix}/sbin'
778 libexecdir='${exec_prefix}/libexec'
779 datarootdir='${prefix}/share'
780 datadir='${datarootdir}'
781 sysconfdir='${prefix}/etc'
782 sharedstatedir='${prefix}/com'
783 localstatedir='${prefix}/var'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir='${datarootdir}/info'
788 htmldir='${docdir}'
789 dvidir='${docdir}'
790 pdfdir='${docdir}'
791 psdir='${docdir}'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
796 ac_prev=
797 ac_dashdash=
798 for ac_option
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\$ac_option
803 ac_prev=
804 continue
807 case $ac_option in
808 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *) ac_optarg=yes ;;
810 esac
812 # Accept the important Cygnus configure options, so we can diagnose typos.
814 case $ac_dashdash$ac_option in
816 ac_dashdash=yes ;;
818 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 ac_prev=bindir ;;
820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821 bindir=$ac_optarg ;;
823 -build | --build | --buil | --bui | --bu)
824 ac_prev=build_alias ;;
825 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826 build_alias=$ac_optarg ;;
828 -cache-file | --cache-file | --cache-fil | --cache-fi \
829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830 ac_prev=cache_file ;;
831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833 cache_file=$ac_optarg ;;
835 --config-cache | -C)
836 cache_file=config.cache ;;
838 -datadir | --datadir | --datadi | --datad)
839 ac_prev=datadir ;;
840 -datadir=* | --datadir=* | --datadi=* | --datad=*)
841 datadir=$ac_optarg ;;
843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844 | --dataroo | --dataro | --datar)
845 ac_prev=datarootdir ;;
846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848 datarootdir=$ac_optarg ;;
850 -disable-* | --disable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=no ;;
859 -docdir | --docdir | --docdi | --doc | --do)
860 ac_prev=docdir ;;
861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 docdir=$ac_optarg ;;
864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 ac_prev=dvidir ;;
866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 dvidir=$ac_optarg ;;
869 -enable-* | --enable-*)
870 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=\$ac_optarg ;;
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
885 exec_prefix=$ac_optarg ;;
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
898 -host | --host | --hos | --ho)
899 ac_prev=host_alias ;;
900 -host=* | --host=* | --hos=* | --ho=*)
901 host_alias=$ac_optarg ;;
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
914 includedir=$ac_optarg ;;
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919 infodir=$ac_optarg ;;
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 libdir=$ac_optarg ;;
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
931 libexecdir=$ac_optarg ;;
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
938 -localstatedir | --localstatedir | --localstatedi | --localstated \
939 | --localstate | --localstat | --localsta | --localst | --locals)
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943 localstatedir=$ac_optarg ;;
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 mandir=$ac_optarg ;;
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955 | --no-cr | --no-c | -n)
956 no_create=yes ;;
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969 oldincludedir=$ac_optarg ;;
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 prefix=$ac_optarg ;;
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981 program_prefix=$ac_optarg ;;
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988 program_suffix=$ac_optarg ;;
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
1005 program_transform_name=$ac_optarg ;;
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
1025 sbindir=$ac_optarg ;;
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
1036 sharedstatedir=$ac_optarg ;;
1038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
1041 site=$ac_optarg ;;
1043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046 srcdir=$ac_optarg ;;
1048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053 sysconfdir=$ac_optarg ;;
1055 -target | --target | --targe | --targ | --tar | --ta | --t)
1056 ac_prev=target_alias ;;
1057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058 target_alias=$ac_optarg ;;
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
1066 -with-* | --with-*)
1067 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=\$ac_optarg ;;
1075 -without-* | --without-*)
1076 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=no ;;
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 esac
1125 done
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1133 # Be sure to have absolute directory names.
1134 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val=\$$ac_var
1140 case $ac_val in
1141 [\\/$]* | ?:[\\/]* ) continue;;
1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1143 esac
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1146 done
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1151 build=$build_alias
1152 host=$host_alias
1153 target=$target_alias
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x; then
1157 if test "x$build_alias" = x; then
1158 cross_compiling=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1162 cross_compiling=yes
1166 ac_tool_prefix=
1167 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169 test "$silent" = yes && exec 6>/dev/null
1172 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di=`ls -di .` &&
1174 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191 echo X"$0" |
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 s//\1/
1196 /^X\(\/\/\)[^/].*/{
1197 s//\1/
1200 /^X\(\/\/\)$/{
1201 s//\1/
1204 /^X\(\/\).*/{
1205 s//\1/
1208 s/.*/./; q'`
1209 srcdir=$ac_confdir
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 srcdir=..
1213 else
1214 ac_srcdir_defaulted=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1221 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 ac_abs_confdir=`(
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1225 pwd)`
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1233 case $srcdir in
1234 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 esac
1236 for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241 done
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250 \`configure' configures python 2.7 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1259 Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 [PREFIX]
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1303 _ACEOF
1305 cat <<\_ACEOF
1306 _ACEOF
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive ) echo "Configuration of python 2.7:";;
1312 esac
1313 cat <<\_ACEOF
1315 Optional Features:
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318 --enable-universalsdk[=SDKDIR]
1319 Build against Mac OS X 10.4u SDK (ppc/i386)
1320 --enable-framework[=INSTALLDIR]
1321 Build (MacOSX|Darwin) framework
1322 --enable-shared disable/enable building shared python library
1323 --enable-profiling enable C-level code profiling
1324 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1325 --enable-ipv6 Enable ipv6 (with ipv4) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-unicode[=ucs[24]]
1328 Enable Unicode strings (default is yes)
1330 Optional Packages:
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --with-universal-archs=ARCH
1334 select architectures for universal build ("32-bit",
1335 "64-bit" or "all")
1336 --with-framework-name=FRAMEWORK
1337 specify an alternate name of the framework built
1338 with --enable-framework
1339 --without-gcc never use gcc
1340 --with-cxx-main=<compiler>
1341 compile main() and link python executable with C++
1342 compiler
1343 --with-suffix=.exe set executable suffix
1344 --with-pydebug build with Py_DEBUG defined
1345 --with-libs='lib1 ...' link against additional libs
1346 --with-system-ffi build _ctypes module using an installed ffi library
1347 --with-signal-module disable/enable signal module
1348 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1349 --with(out)-threads[=DIRECTORY]
1350 disable/enable thread support
1351 --with(out)-thread[=DIRECTORY]
1352 deprecated; use --with(out)-threads
1353 --with-pth use GNU pth threading libraries
1354 --with(out)-doc-strings disable/enable documentation strings
1355 --with(out)-tsc enable/disable timestamp counter profile
1356 --with(out)-pymalloc disable/enable specialized mallocs
1357 --with-wctype-functions use wctype.h functions
1358 --with-fpectl enable SIGFPE catching
1359 --with-libm=STRING math library
1360 --with-libc=STRING C library
1362 Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
1367 LIBS libraries to pass to the linker, e.g. -l<library>
1368 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
1370 CPP C preprocessor
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1375 Report bugs to <http://www.python.org/python-bugs>.
1376 _ACEOF
1377 ac_status=$?
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" || continue
1384 ac_builddir=.
1386 case "$ac_dir" in
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1395 esac ;;
1396 esac
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1402 case $srcdir in
1403 .) # We are building in place.
1404 ac_srcdir=.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1411 *) # Relative name.
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 esac
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1426 else
1427 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 fi || ac_status=$?
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1430 done
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1435 cat <<\_ACEOF
1436 python configure 2.7
1437 generated by GNU Autoconf 2.61
1439 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1440 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1443 _ACEOF
1444 exit
1446 cat >config.log <<_ACEOF
1447 This file contains any messages produced by compilers while
1448 running configure, to aid debugging if configure makes a mistake.
1450 It was created by python $as_me 2.7, which was
1451 generated by GNU Autoconf 2.61. Invocation command line was
1453 $ $0 $@
1455 _ACEOF
1456 exec 5>>config.log
1458 cat <<_ASUNAME
1459 ## --------- ##
1460 ## Platform. ##
1461 ## --------- ##
1463 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1464 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1465 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1466 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1467 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1469 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1470 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1472 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1473 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1474 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1475 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1476 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1477 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1478 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1480 _ASUNAME
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 echo "PATH: $as_dir"
1488 done
1489 IFS=$as_save_IFS
1491 } >&5
1493 cat >&5 <<_ACEOF
1496 ## ----------- ##
1497 ## Core tests. ##
1498 ## ----------- ##
1500 _ACEOF
1503 # Keep a trace of the command line.
1504 # Strip out --no-create and --no-recursion so they do not pile up.
1505 # Strip out --silent because we don't want to record it for future runs.
1506 # Also quote any args containing shell meta-characters.
1507 # Make two passes to allow for proper duplicate-argument suppression.
1508 ac_configure_args=
1509 ac_configure_args0=
1510 ac_configure_args1=
1511 ac_must_keep_next=false
1512 for ac_pass in 1 2
1514 for ac_arg
1516 case $ac_arg in
1517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1520 continue ;;
1521 *\'*)
1522 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1523 esac
1524 case $ac_pass in
1525 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1527 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1528 if test $ac_must_keep_next = true; then
1529 ac_must_keep_next=false # Got value, back to normal.
1530 else
1531 case $ac_arg in
1532 *=* | --config-cache | -C | -disable-* | --disable-* \
1533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1535 | -with-* | --with-* | -without-* | --without-* | --x)
1536 case "$ac_configure_args0 " in
1537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1538 esac
1540 -* ) ac_must_keep_next=true ;;
1541 esac
1543 ac_configure_args="$ac_configure_args '$ac_arg'"
1545 esac
1546 done
1547 done
1548 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1549 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1551 # When interrupted or exit'd, cleanup temporary files, and complete
1552 # config.log. We remove comments because anyway the quotes in there
1553 # would cause problems or look ugly.
1554 # WARNING: Use '\'' to represent an apostrophe within the trap.
1555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1556 trap 'exit_status=$?
1557 # Save into config.log some information that might help in debugging.
1559 echo
1561 cat <<\_ASBOX
1562 ## ---------------- ##
1563 ## Cache variables. ##
1564 ## ---------------- ##
1565 _ASBOX
1566 echo
1567 # The following way of writing the cache mishandles newlines in values,
1569 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1570 eval ac_val=\$$ac_var
1571 case $ac_val in #(
1572 *${as_nl}*)
1573 case $ac_var in #(
1574 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1575 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1576 esac
1577 case $ac_var in #(
1578 _ | IFS | as_nl) ;; #(
1579 *) $as_unset $ac_var ;;
1580 esac ;;
1581 esac
1582 done
1583 (set) 2>&1 |
1584 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1585 *${as_nl}ac_space=\ *)
1586 sed -n \
1587 "s/'\''/'\''\\\\'\'''\''/g;
1588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1589 ;; #(
1591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1593 esac |
1594 sort
1596 echo
1598 cat <<\_ASBOX
1599 ## ----------------- ##
1600 ## Output variables. ##
1601 ## ----------------- ##
1602 _ASBOX
1603 echo
1604 for ac_var in $ac_subst_vars
1606 eval ac_val=\$$ac_var
1607 case $ac_val in
1608 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 esac
1610 echo "$ac_var='\''$ac_val'\''"
1611 done | sort
1612 echo
1614 if test -n "$ac_subst_files"; then
1615 cat <<\_ASBOX
1616 ## ------------------- ##
1617 ## File substitutions. ##
1618 ## ------------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_files
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1632 if test -s confdefs.h; then
1633 cat <<\_ASBOX
1634 ## ----------- ##
1635 ## confdefs.h. ##
1636 ## ----------- ##
1637 _ASBOX
1638 echo
1639 cat confdefs.h
1640 echo
1642 test "$ac_signal" != 0 &&
1643 echo "$as_me: caught signal $ac_signal"
1644 echo "$as_me: exit $exit_status"
1645 } >&5
1646 rm -f core *.core core.conftest.* &&
1647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1648 exit $exit_status
1650 for ac_signal in 1 2 13 15; do
1651 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1652 done
1653 ac_signal=0
1655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1656 rm -f -r conftest* confdefs.h
1658 # Predefined preprocessor variables.
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_NAME "$PACKAGE_NAME"
1662 _ACEOF
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1672 _ACEOF
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_STRING "$PACKAGE_STRING"
1677 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 _ACEOF
1685 # Let the site file select an alternate cache file if it wants to.
1686 # Prefer explicitly selected file to automatically selected ones.
1687 if test -n "$CONFIG_SITE"; then
1688 set x "$CONFIG_SITE"
1689 elif test "x$prefix" != xNONE; then
1690 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 else
1692 set x "$ac_default_prefix/share/config.site" \
1693 "$ac_default_prefix/etc/config.site"
1695 shift
1696 for ac_site_file
1698 if test -r "$ac_site_file"; then
1699 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700 echo "$as_me: loading site script $ac_site_file" >&6;}
1701 sed 's/^/| /' "$ac_site_file" >&5
1702 . "$ac_site_file"
1704 done
1706 if test -r "$cache_file"; then
1707 # Some versions of bash will fail to source /dev/null (special
1708 # files actually), so we avoid doing that.
1709 if test -f "$cache_file"; then
1710 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711 echo "$as_me: loading cache $cache_file" >&6;}
1712 case $cache_file in
1713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
1715 esac
1717 else
1718 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719 echo "$as_me: creating cache $cache_file" >&6;}
1720 >$cache_file
1723 # Check that the precious variables saved in the cache have kept the same
1724 # value.
1725 ac_cache_corrupted=false
1726 for ac_var in $ac_precious_vars; do
1727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728 eval ac_new_set=\$ac_env_${ac_var}_set
1729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730 eval ac_new_val=\$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1732 set,)
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1736 ,set)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,);;
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1744 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1745 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1746 echo "$as_me: former value: $ac_old_val" >&2;}
1747 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1748 echo "$as_me: current value: $ac_new_val" >&2;}
1749 ac_cache_corrupted=:
1750 fi;;
1751 esac
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1754 case $ac_new_val in
1755 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 *) ac_arg=$ac_var=$ac_new_val ;;
1757 esac
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1761 esac
1763 done
1764 if $ac_cache_corrupted; then
1765 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1766 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1767 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1768 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; }
1796 ac_ext=c
1797 ac_cpp='$CPP $CPPFLAGS'
1798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804 ac_config_headers="$ac_config_headers pyconfig.h"
1812 # We don't use PACKAGE_ variables, and they cause conflicts
1813 # with other autoconf-based packages that include Python.h
1814 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1815 rm confdefs.h
1816 mv confdefs.h.new confdefs.h
1819 VERSION=2.7
1822 SOVERSION=1.0
1824 # The later defininition of _XOPEN_SOURCE disables certain features
1825 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1827 cat >>confdefs.h <<\_ACEOF
1828 #define _GNU_SOURCE 1
1829 _ACEOF
1832 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1834 # them.
1836 cat >>confdefs.h <<\_ACEOF
1837 #define _NETBSD_SOURCE 1
1838 _ACEOF
1841 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1842 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1843 # them.
1845 cat >>confdefs.h <<\_ACEOF
1846 #define __BSD_VISIBLE 1
1847 _ACEOF
1850 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1851 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1853 cat >>confdefs.h <<\_ACEOF
1854 #define _BSD_TYPES 1
1855 _ACEOF
1858 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1859 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1860 # them.
1862 cat >>confdefs.h <<\_ACEOF
1863 #define _DARWIN_C_SOURCE 1
1864 _ACEOF
1868 define_xopen_source=yes
1870 # Arguments passed to configure.
1872 CONFIG_ARGS="$ac_configure_args"
1874 # Check whether --enable-universalsdk was given.
1875 if test "${enable_universalsdk+set}" = set; then
1876 enableval=$enable_universalsdk;
1877 case $enableval in
1878 yes)
1879 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1881 esac
1882 case $enableval in
1884 UNIVERSALSDK=
1885 enable_universalsdk=
1888 UNIVERSALSDK=$enableval
1890 esac
1892 else
1894 UNIVERSALSDK=
1895 enable_universalsdk=
1901 ARCH_RUN_32BIT=
1904 UNIVERSAL_ARCHS="32-bit"
1905 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1906 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1908 # Check whether --with-universal-archs was given.
1909 if test "${with_universal_archs+set}" = set; then
1910 withval=$with_universal_archs;
1911 { echo "$as_me:$LINENO: result: $withval" >&5
1912 echo "${ECHO_T}$withval" >&6; }
1913 UNIVERSAL_ARCHS="$withval"
1915 else
1917 { echo "$as_me:$LINENO: result: 32-bit" >&5
1918 echo "${ECHO_T}32-bit" >&6; }
1926 # Check whether --with-framework-name was given.
1927 if test "${with_framework_name+set}" = set; then
1928 withval=$with_framework_name;
1929 PYTHONFRAMEWORK=${withval}
1930 PYTHONFRAMEWORKDIR=${withval}.framework
1931 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1933 else
1935 PYTHONFRAMEWORK=Python
1936 PYTHONFRAMEWORKDIR=Python.framework
1937 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1941 # Check whether --enable-framework was given.
1942 if test "${enable_framework+set}" = set; then
1943 enableval=$enable_framework;
1944 case $enableval in
1945 yes)
1946 enableval=/Library/Frameworks
1947 esac
1948 case $enableval in
1950 PYTHONFRAMEWORK=
1951 PYTHONFRAMEWORKDIR=no-framework
1952 PYTHONFRAMEWORKPREFIX=
1953 PYTHONFRAMEWORKINSTALLDIR=
1954 FRAMEWORKINSTALLFIRST=
1955 FRAMEWORKINSTALLLAST=
1956 FRAMEWORKALTINSTALLFIRST=
1957 FRAMEWORKALTINSTALLLAST=
1958 if test "x${prefix}" = "xNONE"; then
1959 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1960 else
1961 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1963 enable_framework=
1966 PYTHONFRAMEWORKPREFIX=$enableval
1967 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1968 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1969 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1970 if test "$UNIVERSAL_ARCHS" = "all"
1971 then
1972 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1973 else
1974 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1977 if test "x${prefix}" = "xNONE" ; then
1978 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1979 else
1980 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1982 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1984 # Add files for Mac specific code to the list of output
1985 # files:
1986 ac_config_files="$ac_config_files Mac/Makefile"
1988 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1990 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1992 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1994 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1996 esac
1998 else
2000 PYTHONFRAMEWORK=
2001 PYTHONFRAMEWORKDIR=no-framework
2002 PYTHONFRAMEWORKPREFIX=
2003 PYTHONFRAMEWORKINSTALLDIR=
2004 FRAMEWORKINSTALLFIRST=
2005 FRAMEWORKINSTALLLAST=
2006 FRAMEWORKALTINSTALLFIRST=
2007 FRAMEWORKALTINSTALLLAST=
2008 if test "x${prefix}" = "xNONE" ; then
2009 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2010 else
2011 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2013 enable_framework=
2015 if test "$UNIVERSAL_ARCHS" = "all"
2016 then
2017 FRAMEWORKINSTALLLAST=update4wayuniversal
2018 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2034 ##AC_ARG_WITH(dyld,
2035 ## AC_HELP_STRING(--with-dyld,
2036 ## Use (OpenStep|Rhapsody) dynamic linker))
2038 # Set name for machine-dependent library files
2040 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2041 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2042 if test -z "$MACHDEP"
2043 then
2044 ac_sys_system=`uname -s`
2045 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2046 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2047 ac_sys_release=`uname -v`
2048 else
2049 ac_sys_release=`uname -r`
2051 ac_md_system=`echo $ac_sys_system |
2052 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2053 ac_md_release=`echo $ac_sys_release |
2054 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2055 MACHDEP="$ac_md_system$ac_md_release"
2057 case $MACHDEP in
2058 cygwin*) MACHDEP="cygwin";;
2059 darwin*) MACHDEP="darwin";;
2060 atheos*) MACHDEP="atheos";;
2061 irix646) MACHDEP="irix6";;
2062 '') MACHDEP="unknown";;
2063 esac
2066 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2067 # disable features if it is defined, without any means to access these
2068 # features as extensions. For these systems, we skip the definition of
2069 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2070 # some feature, make sure there is no alternative way to access this
2071 # feature. Also, when using wildcards, make sure you have verified the
2072 # need for not defining _XOPEN_SOURCE on all systems matching the
2073 # wildcard, and that the wildcard does not include future systems
2074 # (which may remove their limitations).
2075 case $ac_sys_system/$ac_sys_release in
2076 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2077 # even though select is a POSIX function. Reported by J. Ribbens.
2078 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2079 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2080 define_xopen_source=no
2081 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2082 # also defined. This can be overridden by defining _BSD_SOURCE
2083 # As this has a different meaning on Linux, only define it on OpenBSD
2085 cat >>confdefs.h <<\_ACEOF
2086 #define _BSD_SOURCE 1
2087 _ACEOF
2090 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2091 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2092 # Marc Recht
2093 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2094 define_xopen_source=no;;
2095 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2096 # of union __?sigval. Reported by Stuart Bishop.
2097 SunOS/5.6)
2098 define_xopen_source=no;;
2099 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2100 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2101 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2102 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2103 define_xopen_source=no;;
2104 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2105 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2106 SCO_SV/3.2)
2107 define_xopen_source=no;;
2108 # On FreeBSD 4, the math functions C89 does not cover are never defined
2109 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2110 FreeBSD/4.*)
2111 define_xopen_source=no;;
2112 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2113 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2114 # identifies itself as Darwin/7.*
2115 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2116 # disables platform specific features beyond repair.
2117 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2118 # has no effect, don't bother defining them
2119 Darwin/[6789].*)
2120 define_xopen_source=no;;
2121 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2122 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2123 # or has another value. By not (re)defining it, the defaults come in place.
2124 AIX/4)
2125 define_xopen_source=no;;
2126 AIX/5)
2127 if test `uname -r` -eq 1; then
2128 define_xopen_source=no
2131 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2132 # defining NI_NUMERICHOST.
2133 QNX/6.3.2)
2134 define_xopen_source=no
2137 esac
2139 if test $define_xopen_source = yes
2140 then
2141 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2142 # defined precisely as g++ defines it
2143 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2144 # compiler
2145 case $ac_sys_system/$ac_sys_release in
2146 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2148 cat >>confdefs.h <<\_ACEOF
2149 #define _XOPEN_SOURCE 500
2150 _ACEOF
2155 cat >>confdefs.h <<\_ACEOF
2156 #define _XOPEN_SOURCE 600
2157 _ACEOF
2160 esac
2162 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2163 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2164 # several APIs are not declared. Since this is also needed in some
2165 # cases for HP-UX, we define it globally.
2166 # except for Solaris 10, where it must not be defined,
2167 # as it implies XPG4.2
2168 case $ac_sys_system/$ac_sys_release in
2169 SunOS/5.10)
2173 cat >>confdefs.h <<\_ACEOF
2174 #define _XOPEN_SOURCE_EXTENDED 1
2175 _ACEOF
2178 esac
2181 cat >>confdefs.h <<\_ACEOF
2182 #define _POSIX_C_SOURCE 200112L
2183 _ACEOF
2189 # SGI compilers allow the specification of the both the ABI and the
2190 # ISA on the command line. Depending on the values of these switches,
2191 # different and often incompatable code will be generated.
2193 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2194 # thus supply support for various ABI/ISA combinations. The MACHDEP
2195 # variable is also adjusted.
2198 if test ! -z "$SGI_ABI"
2199 then
2200 CC="cc $SGI_ABI"
2201 LDFLAGS="$SGI_ABI $LDFLAGS"
2202 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2204 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2205 echo "${ECHO_T}$MACHDEP" >&6; }
2207 # And add extra plat-mac for darwin
2210 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2211 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2212 if test -z "$EXTRAPLATDIR"
2213 then
2214 case $MACHDEP in
2215 darwin)
2216 EXTRAPLATDIR="\$(PLATMACDIRS)"
2217 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2220 EXTRAPLATDIR=""
2221 EXTRAMACHDEPPATH=""
2223 esac
2225 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2226 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2228 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2229 # it may influence the way we can build extensions, so distutils
2230 # needs to check it
2233 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2234 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2236 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2237 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2238 ac_sys_machine=`uname -m`
2239 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2240 echo "${ECHO_T}$ac_sys_machine" >&6; }
2242 # checks for alternative programs
2244 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2245 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2246 # just to get things to compile and link. Users are free to override OPT
2247 # when running configure or make. The build should not break if they do.
2248 # BASECFLAGS should generally not be messed with, however.
2250 # XXX shouldn't some/most/all of this code be merged with the stuff later
2251 # on that fiddles with OPT and BASECFLAGS?
2252 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2253 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2255 # Check whether --with-gcc was given.
2256 if test "${with_gcc+set}" = set; then
2257 withval=$with_gcc;
2258 case $withval in
2259 no) CC=${CC:-cc}
2260 without_gcc=yes;;
2261 yes) CC=gcc
2262 without_gcc=no;;
2263 *) CC=$withval
2264 without_gcc=$withval;;
2265 esac
2266 else
2268 case $ac_sys_system in
2269 AIX*) CC=cc_r
2270 without_gcc=;;
2271 BeOS*)
2272 case $BE_HOST_CPU in
2273 ppc)
2274 CC=mwcc
2275 without_gcc=yes
2276 BASECFLAGS="$BASECFLAGS -export pragma"
2277 OPT="$OPT -O"
2278 LDFLAGS="$LDFLAGS -nodup"
2280 x86)
2281 CC=gcc
2282 without_gcc=no
2283 OPT="$OPT -O"
2286 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2287 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2288 { (exit 1); exit 1; }; }
2290 esac
2291 AR="\$(srcdir)/Modules/ar_beos"
2292 RANLIB=:
2294 Monterey*)
2295 RANLIB=:
2296 without_gcc=;;
2297 *) without_gcc=no;;
2298 esac
2301 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2302 echo "${ECHO_T}$without_gcc" >&6; }
2304 # If the user switches compilers, we can't believe the cache
2305 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2306 then
2307 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2308 (it is also a good idea to do 'make clean' before compiling)" >&5
2309 echo "$as_me: error: cached CC is different -- throw away $cache_file
2310 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2311 { (exit 1); exit 1; }; }
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 if test "${ac_cv_prog_CC+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 if test -n "$CC"; then
2328 ac_cv_prog_CC="$CC" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 break 2
2341 done
2342 done
2343 IFS=$as_save_IFS
2347 CC=$ac_cv_prog_CC
2348 if test -n "$CC"; then
2349 { echo "$as_me:$LINENO: result: $CC" >&5
2350 echo "${ECHO_T}$CC" >&6; }
2351 else
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2358 if test -z "$ac_cv_prog_CC"; then
2359 ac_ct_CC=$CC
2360 # Extract the first word of "gcc", so it can be a program name with args.
2361 set dummy gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 if test -n "$ac_ct_CC"; then
2368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_CC="gcc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2381 done
2382 done
2383 IFS=$as_save_IFS
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6; }
2391 else
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2396 if test "x$ac_ct_CC" = x; then
2397 CC=""
2398 else
2399 case $cross_compiling:$ac_tool_warned in
2400 yes:)
2401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&5
2404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407 ac_tool_warned=yes ;;
2408 esac
2409 CC=$ac_ct_CC
2411 else
2412 CC="$ac_cv_prog_CC"
2415 if test -z "$CC"; then
2416 if test -n "$ac_tool_prefix"; then
2417 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}cc; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_CC="${ac_tool_prefix}cc"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2438 done
2439 done
2440 IFS=$as_save_IFS
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446 { echo "$as_me:$LINENO: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6; }
2448 else
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2456 if test -z "$CC"; then
2457 # Extract the first word of "cc", so it can be a program name with args.
2458 set dummy cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 ac_prog_rejected=no
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2476 ac_prog_rejected=yes
2477 continue
2479 ac_cv_prog_CC="cc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2483 done
2484 done
2485 IFS=$as_save_IFS
2487 if test $ac_prog_rejected = yes; then
2488 # We found a bogon in the path, so make sure we never use it.
2489 set dummy $ac_cv_prog_CC
2490 shift
2491 if test $# != 0; then
2492 # We chose a different compiler from the bogus one.
2493 # However, it has the same basename, so the bogon will be chosen
2494 # first if we set CC to just the basename; use the full file name.
2495 shift
2496 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2501 CC=$ac_cv_prog_CC
2502 if test -n "$CC"; then
2503 { echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6; }
2505 else
2506 { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2512 if test -z "$CC"; then
2513 if test -n "$ac_tool_prefix"; then
2514 for ac_prog in cl.exe
2516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2537 done
2538 done
2539 IFS=$as_save_IFS
2543 CC=$ac_cv_prog_CC
2544 if test -n "$CC"; then
2545 { echo "$as_me:$LINENO: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6; }
2547 else
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$CC" && break
2554 done
2556 if test -z "$CC"; then
2557 ac_ct_CC=$CC
2558 for ac_prog in cl.exe
2560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2561 set dummy $ac_prog; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_CC="$ac_prog"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2581 done
2582 done
2583 IFS=$as_save_IFS
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2590 echo "${ECHO_T}$ac_ct_CC" >&6; }
2591 else
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2597 test -n "$ac_ct_CC" && break
2598 done
2600 if test "x$ac_ct_CC" = x; then
2601 CC=""
2602 else
2603 case $cross_compiling:$ac_tool_warned in
2604 yes:)
2605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2606 whose name does not start with the host triplet. If you think this
2607 configuration is useful to you, please write to autoconf@gnu.org." >&5
2608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2611 ac_tool_warned=yes ;;
2612 esac
2613 CC=$ac_ct_CC
2620 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: no acceptable C compiler found in \$PATH
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }
2626 # Provide some information about the compiler.
2627 echo "$as_me:$LINENO: checking for C compiler version" >&5
2628 ac_compiler=`set X $ac_compile; echo $2`
2629 { (ac_try="$ac_compiler --version >&5"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_compiler --version >&5") 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }
2639 { (ac_try="$ac_compiler -v >&5"
2640 case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compiler -v >&5") 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }
2649 { (ac_try="$ac_compiler -V >&5"
2650 case "(($ac_try" in
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2653 esac
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compiler -V >&5") 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }
2660 cat >conftest.$ac_ext <<_ACEOF
2661 /* confdefs.h. */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2668 main ()
2672 return 0;
2674 _ACEOF
2675 ac_clean_files_save=$ac_clean_files
2676 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2677 # Try to create an executable without -o first, disregard a.out.
2678 # It will help us diagnose broken compilers, and finding out an intuition
2679 # of exeext.
2680 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2681 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2682 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2684 # List of possible output files, starting from the most likely.
2685 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2686 # only as a last resort. b.out is created by i960 compilers.
2687 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2689 # The IRIX 6 linker writes into existing files which may not be
2690 # executable, retaining their permissions. Remove them first so a
2691 # subsequent execution test works.
2692 ac_rmfiles=
2693 for ac_file in $ac_files
2695 case $ac_file in
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2697 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2698 esac
2699 done
2700 rm -f $ac_rmfiles
2702 if { (ac_try="$ac_link_default"
2703 case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_link_default") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; then
2712 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2713 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2714 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2715 # so that the user can short-circuit this test for compilers unknown to
2716 # Autoconf.
2717 for ac_file in $ac_files ''
2719 test -f "$ac_file" || continue
2720 case $ac_file in
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2723 [ab].out )
2724 # We found the default executable, but exeext='' is most
2725 # certainly right.
2726 break;;
2727 *.* )
2728 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2729 then :; else
2730 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2732 # We set ac_cv_exeext here because the later test for it is not
2733 # safe: cross compilers may not add the suffix if given an `-o'
2734 # argument, so we may need to know it at that point already.
2735 # Even if this section looks crufty: it has the advantage of
2736 # actually working.
2737 break;;
2739 break;;
2740 esac
2741 done
2742 test "$ac_cv_exeext" = no && ac_cv_exeext=
2744 else
2745 ac_file=''
2748 { echo "$as_me:$LINENO: result: $ac_file" >&5
2749 echo "${ECHO_T}$ac_file" >&6; }
2750 if test -z "$ac_file"; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2755 See \`config.log' for more details." >&5
2756 echo "$as_me: error: C compiler cannot create executables
2757 See \`config.log' for more details." >&2;}
2758 { (exit 77); exit 77; }; }
2761 ac_exeext=$ac_cv_exeext
2763 # Check that the compiler produces executables we can run. If not, either
2764 # the compiler is broken, or we cross compile.
2765 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2766 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2767 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2768 # If not cross compiling, check that we can run a simple program.
2769 if test "$cross_compiling" != yes; then
2770 if { ac_try='./$ac_file'
2771 { (case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_try") 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 cross_compiling=no
2781 else
2782 if test "$cross_compiling" = maybe; then
2783 cross_compiling=yes
2784 else
2785 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2786 If you meant to cross compile, use \`--host'.
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: cannot run C compiled programs.
2789 If you meant to cross compile, use \`--host'.
2790 See \`config.log' for more details." >&2;}
2791 { (exit 1); exit 1; }; }
2795 { echo "$as_me:$LINENO: result: yes" >&5
2796 echo "${ECHO_T}yes" >&6; }
2798 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2799 ac_clean_files=$ac_clean_files_save
2800 # Check that the compiler produces executables we can run. If not, either
2801 # the compiler is broken, or we cross compile.
2802 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2803 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2804 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2805 echo "${ECHO_T}$cross_compiling" >&6; }
2807 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2808 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2809 if { (ac_try="$ac_link"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_link") 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; then
2819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2821 # work properly (i.e., refer to `conftest.exe'), while it won't with
2822 # `rm'.
2823 for ac_file in conftest.exe conftest conftest.*; do
2824 test -f "$ac_file" || continue
2825 case $ac_file in
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828 break;;
2829 * ) break;;
2830 esac
2831 done
2832 else
2833 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2834 See \`config.log' for more details." >&5
2835 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2836 See \`config.log' for more details." >&2;}
2837 { (exit 1); exit 1; }; }
2840 rm -f conftest$ac_cv_exeext
2841 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2842 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2844 rm -f conftest.$ac_ext
2845 EXEEXT=$ac_cv_exeext
2846 ac_exeext=$EXEEXT
2847 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2848 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2849 if test "${ac_cv_objext+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852 cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h. */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2860 main ()
2864 return 0;
2866 _ACEOF
2867 rm -f conftest.o conftest.obj
2868 if { (ac_try="$ac_compile"
2869 case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872 esac
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_compile") 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; then
2878 for ac_file in conftest.o conftest.obj conftest.*; do
2879 test -f "$ac_file" || continue;
2880 case $ac_file in
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2882 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2883 break;;
2884 esac
2885 done
2886 else
2887 echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2890 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2891 See \`config.log' for more details." >&5
2892 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2893 See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2897 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2899 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2900 echo "${ECHO_T}$ac_cv_objext" >&6; }
2901 OBJEXT=$ac_cv_objext
2902 ac_objext=$OBJEXT
2903 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2904 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2905 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2916 main ()
2918 #ifndef __GNUC__
2919 choke me
2920 #endif
2923 return 0;
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
2943 ac_compiler_gnu=yes
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 ac_compiler_gnu=no
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2955 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2956 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2957 GCC=`test $ac_compiler_gnu = yes && echo yes`
2958 ac_test_CFLAGS=${CFLAGS+set}
2959 ac_save_CFLAGS=$CFLAGS
2960 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2961 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2962 if test "${ac_cv_prog_cc_g+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 ac_save_c_werror_flag=$ac_c_werror_flag
2966 ac_c_werror_flag=yes
2967 ac_cv_prog_cc_g=no
2968 CFLAGS="-g"
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2977 main ()
2981 return 0;
2983 _ACEOF
2984 rm -f conftest.$ac_objext
2985 if { (ac_try="$ac_compile"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>conftest.er1
2992 ac_status=$?
2993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } && {
2998 test -z "$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.$ac_objext; then
3001 ac_cv_prog_cc_g=yes
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 CFLAGS=""
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3015 main ()
3019 return 0;
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } && {
3036 test -z "$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3038 } && test -s conftest.$ac_objext; then
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 ac_c_werror_flag=$ac_save_c_werror_flag
3045 CFLAGS="-g"
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3054 main ()
3058 return 0;
3060 _ACEOF
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } && {
3075 test -z "$ac_c_werror_flag" ||
3076 test ! -s conftest.err
3077 } && test -s conftest.$ac_objext; then
3078 ac_cv_prog_cc_g=yes
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3095 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3096 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3097 if test "$ac_test_CFLAGS" = set; then
3098 CFLAGS=$ac_save_CFLAGS
3099 elif test $ac_cv_prog_cc_g = yes; then
3100 if test "$GCC" = yes; then
3101 CFLAGS="-g -O2"
3102 else
3103 CFLAGS="-g"
3105 else
3106 if test "$GCC" = yes; then
3107 CFLAGS="-O2"
3108 else
3109 CFLAGS=
3112 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3113 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3114 if test "${ac_cv_prog_cc_c89+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 ac_cv_prog_cc_c89=no
3118 ac_save_CC=$CC
3119 cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h. */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3125 #include <stdarg.h>
3126 #include <stdio.h>
3127 #include <sys/types.h>
3128 #include <sys/stat.h>
3129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3130 struct buf { int x; };
3131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3132 static char *e (p, i)
3133 char **p;
3134 int i;
3136 return p[i];
3138 static char *f (char * (*g) (char **, int), char **p, ...)
3140 char *s;
3141 va_list v;
3142 va_start (v,p);
3143 s = g (p, va_arg (v,int));
3144 va_end (v);
3145 return s;
3148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3149 function prototypes and stuff, but not '\xHH' hex character constants.
3150 These don't provoke an error unfortunately, instead are silently treated
3151 as 'x'. The following induces an error, until -std is added to get
3152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3153 array size at least. It's necessary to write '\x00'==0 to get something
3154 that's true only with -std. */
3155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3158 inside strings and character constants. */
3159 #define FOO(x) 'x'
3160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3162 int test (int i, double x);
3163 struct s1 {int (*f) (int a);};
3164 struct s2 {int (*f) (double a);};
3165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3166 int argc;
3167 char **argv;
3169 main ()
3171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3173 return 0;
3175 _ACEOF
3176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3179 CC="$ac_save_CC $ac_arg"
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.$ac_objext; then
3197 ac_cv_prog_cc_c89=$ac_arg
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3205 rm -f core conftest.err conftest.$ac_objext
3206 test "x$ac_cv_prog_cc_c89" != "xno" && break
3207 done
3208 rm -f conftest.$ac_ext
3209 CC=$ac_save_CC
3212 # AC_CACHE_VAL
3213 case "x$ac_cv_prog_cc_c89" in
3215 { echo "$as_me:$LINENO: result: none needed" >&5
3216 echo "${ECHO_T}none needed" >&6; } ;;
3217 xno)
3218 { echo "$as_me:$LINENO: result: unsupported" >&5
3219 echo "${ECHO_T}unsupported" >&6; } ;;
3221 CC="$CC $ac_cv_prog_cc_c89"
3222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3223 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3224 esac
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3237 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3239 # Check whether --with-cxx_main was given.
3240 if test "${with_cxx_main+set}" = set; then
3241 withval=$with_cxx_main;
3243 case $withval in
3244 no) with_cxx_main=no
3245 MAINCC='$(CC)';;
3246 yes) with_cxx_main=yes
3247 MAINCC='$(CXX)';;
3248 *) with_cxx_main=yes
3249 MAINCC=$withval
3250 if test -z "$CXX"
3251 then
3252 CXX=$withval
3253 fi;;
3254 esac
3255 else
3257 with_cxx_main=no
3258 MAINCC='$(CC)'
3262 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3263 echo "${ECHO_T}$with_cxx_main" >&6; }
3265 preset_cxx="$CXX"
3266 if test -z "$CXX"
3267 then
3268 case "$CC" in
3269 gcc) # Extract the first word of "g++", so it can be a program name with args.
3270 set dummy g++; ac_word=$2
3271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3273 if test "${ac_cv_path_CXX+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 case $CXX in
3277 [\\/]* | ?:[\\/]*)
3278 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in notfound
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3292 done
3293 done
3294 IFS=$as_save_IFS
3296 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3298 esac
3300 CXX=$ac_cv_path_CXX
3301 if test -n "$CXX"; then
3302 { echo "$as_me:$LINENO: result: $CXX" >&5
3303 echo "${ECHO_T}$CXX" >&6; }
3304 else
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3310 cc) # Extract the first word of "c++", so it can be a program name with args.
3311 set dummy c++; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_path_CXX+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 case $CXX in
3318 [\\/]* | ?:[\\/]*)
3319 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in notfound
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3333 done
3334 done
3335 IFS=$as_save_IFS
3337 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3339 esac
3341 CXX=$ac_cv_path_CXX
3342 if test -n "$CXX"; then
3343 { echo "$as_me:$LINENO: result: $CXX" >&5
3344 echo "${ECHO_T}$CXX" >&6; }
3345 else
3346 { echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6; }
3351 esac
3352 if test "$CXX" = "notfound"
3353 then
3354 CXX=""
3357 if test -z "$CXX"
3358 then
3359 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3361 # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy $ac_prog; ac_word=$2
3363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3365 if test "${ac_cv_prog_CXX+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 if test -n "$CXX"; then
3369 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378 ac_cv_prog_CXX="$ac_prog"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3382 done
3383 done
3384 IFS=$as_save_IFS
3388 CXX=$ac_cv_prog_CXX
3389 if test -n "$CXX"; then
3390 { echo "$as_me:$LINENO: result: $CXX" >&5
3391 echo "${ECHO_T}$CXX" >&6; }
3392 else
3393 { echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6; }
3398 test -n "$CXX" && break
3399 done
3400 test -n "$CXX" || CXX="notfound"
3402 if test "$CXX" = "notfound"
3403 then
3404 CXX=""
3407 if test "$preset_cxx" != "$CXX"
3408 then
3409 { echo "$as_me:$LINENO: 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 " >&5
3414 echo "$as_me: WARNING:
3416 By default, distutils will build C++ extension modules with \"$CXX\".
3417 If this is not intended, then set CXX on the configure command line.
3418 " >&2;}
3422 # checks for UNIX variants that set C preprocessor variables
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3430 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3431 # On Suns, sometimes $CPP names a directory.
3432 if test -n "$CPP" && test -d "$CPP"; then
3433 CPP=
3435 if test -z "$CPP"; then
3436 if test "${ac_cv_prog_CPP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 # Double quotes because CPP needs to be expanded
3440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3442 ac_preproc_ok=false
3443 for ac_c_preproc_warn_flag in '' yes
3445 # Use a header file that comes with gcc, so configuring glibc
3446 # with a fresh cross-compiler works.
3447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3448 # <limits.h> exists even on freestanding compilers.
3449 # On the NeXT, cc -E runs the code through the compiler's parser,
3450 # not just through cpp. "Syntax error" is here to catch this case.
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #ifdef __STDC__
3458 # include <limits.h>
3459 #else
3460 # include <assert.h>
3461 #endif
3462 Syntax error
3463 _ACEOF
3464 if { (ac_try="$ac_cpp conftest.$ac_ext"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null && {
3477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3479 }; then
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 # Broken: fails on valid input.
3486 continue
3489 rm -f conftest.err conftest.$ac_ext
3491 # OK, works on sane cases. Now check whether nonexistent headers
3492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h. */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 #include <ac_nonexistent.h>
3500 _ACEOF
3501 if { (ac_try="$ac_cpp conftest.$ac_ext"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev/null && {
3514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3516 }; then
3517 # Broken: success on invalid input.
3518 continue
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3528 rm -f conftest.err conftest.$ac_ext
3530 done
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.err conftest.$ac_ext
3533 if $ac_preproc_ok; then
3534 break
3537 done
3538 ac_cv_prog_CPP=$CPP
3541 CPP=$ac_cv_prog_CPP
3542 else
3543 ac_cv_prog_CPP=$CPP
3545 { echo "$as_me:$LINENO: result: $CPP" >&5
3546 echo "${ECHO_T}$CPP" >&6; }
3547 ac_preproc_ok=false
3548 for ac_c_preproc_warn_flag in '' yes
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h. */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 #ifdef __STDC__
3563 # include <limits.h>
3564 #else
3565 # include <assert.h>
3566 #endif
3567 Syntax error
3568 _ACEOF
3569 if { (ac_try="$ac_cpp conftest.$ac_ext"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null && {
3582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 }; then
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Broken: fails on valid input.
3591 continue
3594 rm -f conftest.err conftest.$ac_ext
3596 # OK, works on sane cases. Now check whether nonexistent headers
3597 # can be detected and how.
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 #include <ac_nonexistent.h>
3605 _ACEOF
3606 if { (ac_try="$ac_cpp conftest.$ac_ext"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev/null && {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3621 }; then
3622 # Broken: success on invalid input.
3623 continue
3624 else
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 # Passes both tests.
3629 ac_preproc_ok=:
3630 break
3633 rm -f conftest.err conftest.$ac_ext
3635 done
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then
3640 else
3641 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3642 See \`config.log' for more details." >&5
3643 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&2;}
3645 { (exit 1); exit 1; }; }
3648 ac_ext=c
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3656 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3657 if test "${ac_cv_path_GREP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 # Extract the first word of "grep ggrep" to use in msg output
3661 if test -z "$GREP"; then
3662 set dummy grep ggrep; ac_prog_name=$2
3663 if test "${ac_cv_path_GREP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 ac_path_GREP_found=false
3667 # Loop through the user's path and test for each of PROGNAME-LIST
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_prog in grep ggrep; do
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3676 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3677 # Check for GNU ac_path_GREP and select it if it is found.
3678 # Check for GNU $ac_path_GREP
3679 case `"$ac_path_GREP" --version 2>&1` in
3680 *GNU*)
3681 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3683 ac_count=0
3684 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3685 while :
3687 cat "conftest.in" "conftest.in" >"conftest.tmp"
3688 mv "conftest.tmp" "conftest.in"
3689 cp "conftest.in" "conftest.nl"
3690 echo 'GREP' >> "conftest.nl"
3691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3693 ac_count=`expr $ac_count + 1`
3694 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3695 # Best one so far, save it but keep looking for a better one
3696 ac_cv_path_GREP="$ac_path_GREP"
3697 ac_path_GREP_max=$ac_count
3699 # 10*(2^10) chars as input seems more than enough
3700 test $ac_count -gt 10 && break
3701 done
3702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703 esac
3706 $ac_path_GREP_found && break 3
3707 done
3708 done
3710 done
3711 IFS=$as_save_IFS
3716 GREP="$ac_cv_path_GREP"
3717 if test -z "$GREP"; then
3718 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3719 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3720 { (exit 1); exit 1; }; }
3723 else
3724 ac_cv_path_GREP=$GREP
3729 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3730 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3731 GREP="$ac_cv_path_GREP"
3734 { echo "$as_me:$LINENO: checking for egrep" >&5
3735 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3740 then ac_cv_path_EGREP="$GREP -E"
3741 else
3742 # Extract the first word of "egrep" to use in msg output
3743 if test -z "$EGREP"; then
3744 set dummy egrep; ac_prog_name=$2
3745 if test "${ac_cv_path_EGREP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 ac_path_EGREP_found=false
3749 # Loop through the user's path and test for each of PROGNAME-LIST
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_prog in egrep; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3758 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3759 # Check for GNU ac_path_EGREP and select it if it is found.
3760 # Check for GNU $ac_path_EGREP
3761 case `"$ac_path_EGREP" --version 2>&1` in
3762 *GNU*)
3763 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3765 ac_count=0
3766 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3767 while :
3769 cat "conftest.in" "conftest.in" >"conftest.tmp"
3770 mv "conftest.tmp" "conftest.in"
3771 cp "conftest.in" "conftest.nl"
3772 echo 'EGREP' >> "conftest.nl"
3773 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3775 ac_count=`expr $ac_count + 1`
3776 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3777 # Best one so far, save it but keep looking for a better one
3778 ac_cv_path_EGREP="$ac_path_EGREP"
3779 ac_path_EGREP_max=$ac_count
3781 # 10*(2^10) chars as input seems more than enough
3782 test $ac_count -gt 10 && break
3783 done
3784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3785 esac
3788 $ac_path_EGREP_found && break 3
3789 done
3790 done
3792 done
3793 IFS=$as_save_IFS
3798 EGREP="$ac_cv_path_EGREP"
3799 if test -z "$EGREP"; then
3800 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3801 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3802 { (exit 1); exit 1; }; }
3805 else
3806 ac_cv_path_EGREP=$EGREP
3812 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3813 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3814 EGREP="$ac_cv_path_EGREP"
3818 { echo "$as_me:$LINENO: checking for AIX" >&5
3819 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #ifdef _AIX
3828 #endif
3830 _ACEOF
3831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832 $EGREP "yes" >/dev/null 2>&1; then
3833 { echo "$as_me:$LINENO: result: yes" >&5
3834 echo "${ECHO_T}yes" >&6; }
3835 cat >>confdefs.h <<\_ACEOF
3836 #define _ALL_SOURCE 1
3837 _ACEOF
3839 else
3840 { echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6; }
3843 rm -f conftest*
3847 # Check for unsupported systems
3848 case $ac_sys_system/$ac_sys_release in
3849 atheos*|Linux*/1*)
3850 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3851 echo See README for details.
3852 exit 1;;
3853 esac
3856 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3857 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3859 # Check whether --with-suffix was given.
3860 if test "${with_suffix+set}" = set; then
3861 withval=$with_suffix;
3862 case $withval in
3863 no) EXEEXT=;;
3864 yes) EXEEXT=.exe;;
3865 *) EXEEXT=$withval;;
3866 esac
3869 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3870 echo "${ECHO_T}$EXEEXT" >&6; }
3872 # Test whether we're running on a non-case-sensitive system, in which
3873 # case we give a warning if no ext is given
3875 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3876 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3877 if test ! -d CaseSensitiveTestDir; then
3878 mkdir CaseSensitiveTestDir
3881 if test -d casesensitivetestdir
3882 then
3883 { echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6; }
3885 BUILDEXEEXT=.exe
3886 else
3887 { echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6; }
3889 BUILDEXEEXT=$EXEEXT
3891 rmdir CaseSensitiveTestDir
3893 case $MACHDEP in
3894 bsdos*)
3895 case $CC in
3896 gcc) CC="$CC -D_HAVE_BSDI";;
3897 esac;;
3898 esac
3900 case $ac_sys_system in
3901 hp*|HP*)
3902 case $CC in
3903 cc|*/cc) CC="$CC -Ae";;
3904 esac;;
3905 Monterey*)
3906 case $CC in
3907 cc) CC="$CC -Wl,-Bexport";;
3908 esac;;
3909 SunOS*)
3910 # Some functions have a prototype only with that define, e.g. confstr
3912 cat >>confdefs.h <<\_ACEOF
3913 #define __EXTENSIONS__ 1
3914 _ACEOF
3917 esac
3921 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3922 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3923 if test -z "$LIBRARY"
3924 then
3925 LIBRARY='libpython$(VERSION).a'
3927 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3928 echo "${ECHO_T}$LIBRARY" >&6; }
3930 # LDLIBRARY is the name of the library to link against (as opposed to the
3931 # name of the library into which to insert object files). BLDLIBRARY is also
3932 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3933 # is blank as the main program is not linked directly against LDLIBRARY.
3934 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3935 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3936 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3937 # DLLLIBRARY is the shared (i.e., DLL) library.
3939 # RUNSHARED is used to run shared python without installed libraries
3941 # INSTSONAME is the name of the shared library that will be use to install
3942 # on the system - some systems like version suffix, others don't
3949 LDLIBRARY="$LIBRARY"
3950 BLDLIBRARY='$(LDLIBRARY)'
3951 INSTSONAME='$(LDLIBRARY)'
3952 DLLLIBRARY=''
3953 LDLIBRARYDIR=''
3954 RUNSHARED=''
3956 # LINKCC is the command that links the python executable -- default is $(CC).
3957 # If CXX is set, and if it is needed to link a main function that was
3958 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3959 # python might then depend on the C++ runtime
3960 # This is altered for AIX in order to build the export list before
3961 # linking.
3963 { echo "$as_me:$LINENO: checking LINKCC" >&5
3964 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3965 if test -z "$LINKCC"
3966 then
3967 LINKCC='$(PURIFY) $(MAINCC)'
3968 case $ac_sys_system in
3969 AIX*)
3970 exp_extra="\"\""
3971 if test $ac_sys_release -ge 5 -o \
3972 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3973 exp_extra="."
3975 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3976 Monterey64*)
3977 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3978 QNX*)
3979 # qcc must be used because the other compilers do not
3980 # support -N.
3981 LINKCC=qcc;;
3982 esac
3984 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3985 echo "${ECHO_T}$LINKCC" >&6; }
3987 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3988 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3989 # Check whether --enable-shared was given.
3990 if test "${enable_shared+set}" = set; then
3991 enableval=$enable_shared;
3995 if test -z "$enable_shared"
3996 then
3997 case $ac_sys_system in
3998 CYGWIN* | atheos*)
3999 enable_shared="yes";;
4001 enable_shared="no";;
4002 esac
4004 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4005 echo "${ECHO_T}$enable_shared" >&6; }
4007 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4008 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4009 # Check whether --enable-profiling was given.
4010 if test "${enable_profiling+set}" = set; then
4011 enableval=$enable_profiling; ac_save_cc="$CC"
4012 CC="$CC -pg"
4013 if test "$cross_compiling" = yes; then
4014 ac_enable_profiling="no"
4015 else
4016 cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h. */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 int main() { return 0; }
4023 _ACEOF
4024 rm -f conftest$ac_exeext
4025 if { (ac_try="$ac_link"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_link") 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4035 { (case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_try") 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_enable_profiling="yes"
4045 else
4046 echo "$as_me: program exited with status $ac_status" >&5
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ( exit $ac_status )
4051 ac_enable_profiling="no"
4053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4057 CC="$ac_save_cc"
4060 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4061 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4063 case "$ac_enable_profiling" in
4064 "yes")
4065 BASECFLAGS="-pg $BASECFLAGS"
4066 LDFLAGS="-pg $LDFLAGS"
4068 esac
4070 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4071 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4073 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4074 # library that we build, but we do not want to link against it (we
4075 # will find it with a -framework option). For this reason there is an
4076 # extra variable BLDLIBRARY against which Python and the extension
4077 # modules are linked, BLDLIBRARY. This is normally the same as
4078 # LDLIBRARY, but empty for MacOSX framework builds.
4079 if test "$enable_framework"
4080 then
4081 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4082 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4083 BLDLIBRARY=''
4084 else
4085 BLDLIBRARY='$(LDLIBRARY)'
4088 # Other platforms follow
4089 if test $enable_shared = "yes"; then
4091 cat >>confdefs.h <<\_ACEOF
4092 #define Py_ENABLE_SHARED 1
4093 _ACEOF
4095 case $ac_sys_system in
4096 BeOS*)
4097 LDLIBRARY='libpython$(VERSION).so'
4099 CYGWIN*)
4100 LDLIBRARY='libpython$(VERSION).dll.a'
4101 DLLLIBRARY='libpython$(VERSION).dll'
4103 SunOS*)
4104 LDLIBRARY='libpython$(VERSION).so'
4105 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4106 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4107 INSTSONAME="$LDLIBRARY".$SOVERSION
4109 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4110 LDLIBRARY='libpython$(VERSION).so'
4111 BLDLIBRARY='-L. -lpython$(VERSION)'
4112 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4113 case $ac_sys_system in
4114 FreeBSD*)
4115 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4117 esac
4118 INSTSONAME="$LDLIBRARY".$SOVERSION
4120 hp*|HP*)
4121 case `uname -m` in
4122 ia64)
4123 LDLIBRARY='libpython$(VERSION).so'
4126 LDLIBRARY='libpython$(VERSION).sl'
4128 esac
4129 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4130 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4132 OSF*)
4133 LDLIBRARY='libpython$(VERSION).so'
4134 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4135 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4137 atheos*)
4138 LDLIBRARY='libpython$(VERSION).so'
4139 BLDLIBRARY='-L. -lpython$(VERSION)'
4140 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4142 Darwin*)
4143 LDLIBRARY='libpython$(VERSION).dylib'
4144 BLDLIBRARY='-L. -lpython$(VERSION)'
4145 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4148 esac
4149 else # shared is disabled
4150 case $ac_sys_system in
4151 CYGWIN*)
4152 BLDLIBRARY='$(LIBRARY)'
4153 LDLIBRARY='libpython$(VERSION).dll.a'
4155 esac
4158 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4159 echo "${ECHO_T}$LDLIBRARY" >&6; }
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4166 if test "${ac_cv_prog_RANLIB+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 if test -n "$RANLIB"; then
4170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4183 done
4184 done
4185 IFS=$as_save_IFS
4189 RANLIB=$ac_cv_prog_RANLIB
4190 if test -n "$RANLIB"; then
4191 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4192 echo "${ECHO_T}$RANLIB" >&6; }
4193 else
4194 { echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6; }
4200 if test -z "$ac_cv_prog_RANLIB"; then
4201 ac_ct_RANLIB=$RANLIB
4202 # Extract the first word of "ranlib", so it can be a program name with args.
4203 set dummy ranlib; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 if test -n "$ac_ct_RANLIB"; then
4210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_ac_ct_RANLIB="ranlib"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4230 if test -n "$ac_ct_RANLIB"; then
4231 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4232 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4233 else
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4238 if test "x$ac_ct_RANLIB" = x; then
4239 RANLIB=":"
4240 else
4241 case $cross_compiling:$ac_tool_warned in
4242 yes:)
4243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4244 whose name does not start with the host triplet. If you think this
4245 configuration is useful to you, please write to autoconf@gnu.org." >&5
4246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4247 whose name does not start with the host triplet. If you think this
4248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4249 ac_tool_warned=yes ;;
4250 esac
4251 RANLIB=$ac_ct_RANLIB
4253 else
4254 RANLIB="$ac_cv_prog_RANLIB"
4258 for ac_prog in ar aal
4260 # Extract the first word of "$ac_prog", so it can be a program name with args.
4261 set dummy $ac_prog; ac_word=$2
4262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264 if test "${ac_cv_prog_AR+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 if test -n "$AR"; then
4268 ac_cv_prog_AR="$AR" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_AR="$ac_prog"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4281 done
4282 done
4283 IFS=$as_save_IFS
4287 AR=$ac_cv_prog_AR
4288 if test -n "$AR"; then
4289 { echo "$as_me:$LINENO: result: $AR" >&5
4290 echo "${ECHO_T}$AR" >&6; }
4291 else
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4297 test -n "$AR" && break
4298 done
4299 test -n "$AR" || AR="ar"
4303 # Extract the first word of "svnversion", so it can be a program name with args.
4304 set dummy svnversion; ac_word=$2
4305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4307 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 if test -n "$SVNVERSION"; then
4311 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_SVNVERSION="found"
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4324 done
4325 done
4326 IFS=$as_save_IFS
4328 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4331 SVNVERSION=$ac_cv_prog_SVNVERSION
4332 if test -n "$SVNVERSION"; then
4333 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4334 echo "${ECHO_T}$SVNVERSION" >&6; }
4335 else
4336 { echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6; }
4341 if test $SVNVERSION = found
4342 then
4343 SVNVERSION="svnversion \$(srcdir)"
4344 else
4345 SVNVERSION="echo exported"
4348 case $MACHDEP in
4349 bsdos*|hp*|HP*)
4350 # install -d does not work on BSDI or HP-UX
4351 if test -z "$INSTALL"
4352 then
4353 INSTALL="${srcdir}/install-sh -c"
4355 esac
4356 ac_aux_dir=
4357 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4358 if test -f "$ac_dir/install-sh"; then
4359 ac_aux_dir=$ac_dir
4360 ac_install_sh="$ac_aux_dir/install-sh -c"
4361 break
4362 elif test -f "$ac_dir/install.sh"; then
4363 ac_aux_dir=$ac_dir
4364 ac_install_sh="$ac_aux_dir/install.sh -c"
4365 break
4366 elif test -f "$ac_dir/shtool"; then
4367 ac_aux_dir=$ac_dir
4368 ac_install_sh="$ac_aux_dir/shtool install -c"
4369 break
4371 done
4372 if test -z "$ac_aux_dir"; then
4373 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4374 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4375 { (exit 1); exit 1; }; }
4378 # These three variables are undocumented and unsupported,
4379 # and are intended to be withdrawn in a future Autoconf release.
4380 # They can cause serious problems if a builder's source tree is in a directory
4381 # whose full name contains unusual characters.
4382 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4383 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4384 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4387 # Find a good install program. We prefer a C program (faster),
4388 # so one script is as good as another. But avoid the broken or
4389 # incompatible versions:
4390 # SysV /etc/install, /usr/sbin/install
4391 # SunOS /usr/etc/install
4392 # IRIX /sbin/install
4393 # AIX /bin/install
4394 # AmigaOS /C/install, which installs bootblocks on floppy discs
4395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4398 # OS/2's system install, which has a completely different semantic
4399 # ./install, which can be erroneously created by make from ./install.sh.
4400 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4401 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4402 if test -z "$INSTALL"; then
4403 if test "${ac_cv_path_install+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 # Account for people who put trailing slashes in PATH elements.
4412 case $as_dir/ in
4413 ./ | .// | /cC/* | \
4414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4415 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4416 /usr/ucb/* ) ;;
4418 # OSF1 and SCO ODT 3.0 have their own names for install.
4419 # Don't use installbsd from OSF since it installs stuff as root
4420 # by default.
4421 for ac_prog in ginstall scoinst install; do
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4424 if test $ac_prog = install &&
4425 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4426 # AIX install. It has an incompatible calling convention.
4428 elif test $ac_prog = install &&
4429 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4430 # program-specific install script used by HP pwplus--don't use.
4432 else
4433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4434 break 3
4437 done
4438 done
4440 esac
4441 done
4442 IFS=$as_save_IFS
4446 if test "${ac_cv_path_install+set}" = set; then
4447 INSTALL=$ac_cv_path_install
4448 else
4449 # As a last resort, use the slow shell script. Don't cache a
4450 # value for INSTALL within a source directory, because that will
4451 # break other packages using the cache if that directory is
4452 # removed, or if the value is a relative name.
4453 INSTALL=$ac_install_sh
4456 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4457 echo "${ECHO_T}$INSTALL" >&6; }
4459 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4460 # It thinks the first close brace ends the variable substitution.
4461 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4463 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4465 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4468 # Not every filesystem supports hard links
4470 if test -z "$LN" ; then
4471 case $ac_sys_system in
4472 BeOS*) LN="ln -s";;
4473 CYGWIN*) LN="ln -s";;
4474 atheos*) LN="ln -s";;
4475 *) LN=ln;;
4476 esac
4479 # Check for --with-pydebug
4480 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4481 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4483 # Check whether --with-pydebug was given.
4484 if test "${with_pydebug+set}" = set; then
4485 withval=$with_pydebug;
4486 if test "$withval" != no
4487 then
4489 cat >>confdefs.h <<\_ACEOF
4490 #define Py_DEBUG 1
4491 _ACEOF
4493 { echo "$as_me:$LINENO: result: yes" >&5
4494 echo "${ECHO_T}yes" >&6; };
4495 Py_DEBUG='true'
4496 else { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4499 else
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4505 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4506 # merged with this chunk of code?
4508 # Optimizer/debugger flags
4509 # ------------------------
4510 # (The following bit of code is complicated enough - please keep things
4511 # indented properly. Just pretend you're editing Python code. ;-)
4513 # There are two parallel sets of case statements below, one that checks to
4514 # see if OPT was set and one that does BASECFLAGS setting based upon
4515 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4516 # user set OPT.
4518 # tweak OPT based on compiler and platform, only if the user didn't set
4519 # it on the command line
4521 if test -z "$OPT"
4522 then
4523 case $GCC in
4524 yes)
4525 if test "$CC" != 'g++' ; then
4526 STRICT_PROTO="-Wstrict-prototypes"
4528 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4529 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4530 WRAP="-fwrapv"
4532 case $ac_cv_prog_cc_g in
4533 yes)
4534 if test "$Py_DEBUG" = 'true' ; then
4535 # Optimization messes up debuggers, so turn it off for
4536 # debug builds.
4537 OPT="-g -Wall $STRICT_PROTO"
4538 else
4539 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4543 OPT="-O3 -Wall $STRICT_PROTO"
4545 esac
4546 case $ac_sys_system in
4547 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4549 esac
4553 OPT="-O"
4555 esac
4557 # The current (beta) Monterey compiler dies with optimizations
4558 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4559 case $ac_sys_system in
4560 Monterey*)
4561 OPT=""
4563 esac
4569 # The -arch flags for universal builds on OSX
4570 UNIVERSAL_ARCH_FLAGS=
4573 # tweak BASECFLAGS based on compiler and platform
4574 case $GCC in
4575 yes)
4576 # Python violates C99 rules, by casting between incompatible
4577 # pointer types. GCC may generate bad code as a result of that,
4578 # so use -fno-strict-aliasing if supported.
4579 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4580 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4581 ac_save_cc="$CC"
4582 CC="$CC -fno-strict-aliasing"
4583 if test "$cross_compiling" = yes; then
4584 ac_cv_no_strict_aliasing_ok=no
4585 else
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h. */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 int main() { return 0; }
4593 _ACEOF
4594 rm -f conftest$ac_exeext
4595 if { (ac_try="$ac_link"
4596 case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599 esac
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_link") 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4605 { (case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_cv_no_strict_aliasing_ok=yes
4615 else
4616 echo "$as_me: program exited with status $ac_status" >&5
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 ( exit $ac_status )
4621 ac_cv_no_strict_aliasing_ok=no
4623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4627 CC="$ac_save_cc"
4628 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4629 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4630 if test $ac_cv_no_strict_aliasing_ok = yes
4631 then
4632 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4635 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4636 # support. Without this, treatment of subnormals doesn't follow
4637 # the standard.
4638 case $ac_sys_machine in
4639 alpha*)
4640 BASECFLAGS="$BASECFLAGS -mieee"
4642 esac
4644 case $ac_sys_system in
4645 SCO_SV*)
4646 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4648 # is there any other compiler on Darwin besides gcc?
4649 Darwin*)
4650 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4651 # used to be here, but non-Apple gcc doesn't accept them.
4654 if test "${enable_universalsdk}"; then
4655 UNIVERSAL_ARCH_FLAGS=""
4656 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4657 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4658 ARCH_RUN_32BIT=""
4660 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4661 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4663 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4664 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4665 ARCH_RUN_32BIT="arch -i386 -ppc"
4667 else
4668 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4669 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4670 { (exit 1); exit 1; }; }
4675 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4676 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4677 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4678 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4682 # Calculate the right deployment target for this build.
4684 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4685 if test ${cur_target} '>' 10.2; then
4686 cur_target=10.3
4688 if test "${UNIVERSAL_ARCHS}" = "all"; then
4689 # Ensure that the default platform for a 4-way
4690 # universal build is OSX 10.5, that's the first
4691 # OS release where 4-way builds make sense.
4692 cur_target='10.5'
4694 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4696 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4697 # environment with a value that is the same as what we'll use
4698 # in the Makefile to ensure that we'll get the same compiler
4699 # environment during configure and build time.
4700 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4701 export MACOSX_DEPLOYMENT_TARGET
4702 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4705 OSF*)
4706 BASECFLAGS="$BASECFLAGS -mieee"
4708 esac
4712 case $ac_sys_system in
4713 OpenUNIX*|UnixWare*)
4714 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4716 OSF*)
4717 BASECFLAGS="$BASECFLAGS -ieee -std"
4719 SCO_SV*)
4720 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4722 esac
4724 esac
4726 if test "$Py_DEBUG" = 'true'; then
4728 else
4729 OPT="-DNDEBUG $OPT"
4732 if test "$ac_arch_flags"
4733 then
4734 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4737 # disable check for icc since it seems to pass, but generates a warning
4738 if test "$CC" = icc
4739 then
4740 ac_cv_opt_olimit_ok=no
4743 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4744 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4745 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 ac_save_cc="$CC"
4749 CC="$CC -OPT:Olimit=0"
4750 if test "$cross_compiling" = yes; then
4751 ac_cv_opt_olimit_ok=no
4752 else
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 int main() { return 0; }
4760 _ACEOF
4761 rm -f conftest$ac_exeext
4762 if { (ac_try="$ac_link"
4763 case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766 esac
4767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_link") 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4772 { (case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775 esac
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_try") 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 ac_cv_opt_olimit_ok=yes
4782 else
4783 echo "$as_me: program exited with status $ac_status" >&5
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 ( exit $ac_status )
4788 ac_cv_opt_olimit_ok=no
4790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4794 CC="$ac_save_cc"
4797 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4798 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4799 if test $ac_cv_opt_olimit_ok = yes; then
4800 case $ac_sys_system in
4801 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4802 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4803 # environment?
4804 Darwin*)
4807 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4809 esac
4810 else
4811 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4812 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4813 if test "${ac_cv_olimit_ok+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 ac_save_cc="$CC"
4817 CC="$CC -Olimit 1500"
4818 if test "$cross_compiling" = yes; then
4819 ac_cv_olimit_ok=no
4820 else
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h. */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 int main() { return 0; }
4828 _ACEOF
4829 rm -f conftest$ac_exeext
4830 if { (ac_try="$ac_link"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_link") 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4840 { (case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_try") 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_olimit_ok=yes
4850 else
4851 echo "$as_me: program exited with status $ac_status" >&5
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4855 ( exit $ac_status )
4856 ac_cv_olimit_ok=no
4858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4862 CC="$ac_save_cc"
4865 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4866 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4867 if test $ac_cv_olimit_ok = yes; then
4868 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4872 # Check whether GCC supports PyArg_ParseTuple format
4873 if test "$GCC" = "yes"
4874 then
4875 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4876 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4877 save_CFLAGS=$CFLAGS
4878 CFLAGS="$CFLAGS -Werror"
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4886 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4889 main ()
4893 return 0;
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (ac_try="$ac_compile"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_compile") 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest.$ac_objext; then
4914 cat >>confdefs.h <<\_ACEOF
4915 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4916 _ACEOF
4918 { echo "$as_me:$LINENO: result: yes" >&5
4919 echo "${ECHO_T}yes" >&6; }
4920 else
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 { echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6; }
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 CFLAGS=$save_CFLAGS
4933 # On some compilers, pthreads are available without further options
4934 # (e.g. MacOS X). On some of these systems, the compiler will not
4935 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4936 # So we have to see first whether pthreads are available without
4937 # options before we can check whether -Kpthread improves anything.
4938 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4939 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4940 if test "${ac_cv_pthread_is_default+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 if test "$cross_compiling" = yes; then
4944 ac_cv_pthread_is_default=no
4945 else
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4953 #include <pthread.h>
4955 void* routine(void* p){return NULL;}
4957 int main(){
4958 pthread_t p;
4959 if(pthread_create(&p,NULL,routine,NULL)!=0)
4960 return 1;
4961 (void)pthread_detach(p);
4962 return 0;
4965 _ACEOF
4966 rm -f conftest$ac_exeext
4967 if { (ac_try="$ac_link"
4968 case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_link") 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4977 { (case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_try") 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4987 ac_cv_pthread_is_default=yes
4988 ac_cv_kthread=no
4989 ac_cv_pthread=no
4991 else
4992 echo "$as_me: program exited with status $ac_status" >&5
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 ( exit $ac_status )
4997 ac_cv_pthread_is_default=no
4999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5006 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5007 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5010 if test $ac_cv_pthread_is_default = yes
5011 then
5012 ac_cv_kpthread=no
5013 else
5014 # -Kpthread, if available, provides the right #defines
5015 # and linker options to make pthread_create available
5016 # Some compilers won't report that they do not support -Kpthread,
5017 # so we need to run a program to see whether it really made the
5018 # function available.
5019 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5020 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5021 if test "${ac_cv_kpthread+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 ac_save_cc="$CC"
5025 CC="$CC -Kpthread"
5026 if test "$cross_compiling" = yes; then
5027 ac_cv_kpthread=no
5028 else
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5036 #include <pthread.h>
5038 void* routine(void* p){return NULL;}
5040 int main(){
5041 pthread_t p;
5042 if(pthread_create(&p,NULL,routine,NULL)!=0)
5043 return 1;
5044 (void)pthread_detach(p);
5045 return 0;
5048 _ACEOF
5049 rm -f conftest$ac_exeext
5050 if { (ac_try="$ac_link"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_link") 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5060 { (case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_try") 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 ac_cv_kpthread=yes
5070 else
5071 echo "$as_me: program exited with status $ac_status" >&5
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 ( exit $ac_status )
5076 ac_cv_kpthread=no
5078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5082 CC="$ac_save_cc"
5085 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5086 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5089 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5090 then
5091 # -Kthread, if available, provides the right #defines
5092 # and linker options to make pthread_create available
5093 # Some compilers won't report that they do not support -Kthread,
5094 # so we need to run a program to see whether it really made the
5095 # function available.
5096 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5097 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5098 if test "${ac_cv_kthread+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 ac_save_cc="$CC"
5102 CC="$CC -Kthread"
5103 if test "$cross_compiling" = yes; then
5104 ac_cv_kthread=no
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5113 #include <pthread.h>
5115 void* routine(void* p){return NULL;}
5117 int main(){
5118 pthread_t p;
5119 if(pthread_create(&p,NULL,routine,NULL)!=0)
5120 return 1;
5121 (void)pthread_detach(p);
5122 return 0;
5125 _ACEOF
5126 rm -f conftest$ac_exeext
5127 if { (ac_try="$ac_link"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_link") 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5137 { (case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140 esac
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_try") 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_kthread=yes
5147 else
5148 echo "$as_me: program exited with status $ac_status" >&5
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 ( exit $ac_status )
5153 ac_cv_kthread=no
5155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5159 CC="$ac_save_cc"
5162 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5163 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5166 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5167 then
5168 # -pthread, if available, provides the right #defines
5169 # and linker options to make pthread_create available
5170 # Some compilers won't report that they do not support -pthread,
5171 # so we need to run a program to see whether it really made the
5172 # function available.
5173 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5174 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5175 if test "${ac_cv_thread+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 ac_save_cc="$CC"
5179 CC="$CC -pthread"
5180 if test "$cross_compiling" = yes; then
5181 ac_cv_pthread=no
5182 else
5183 cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h. */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5190 #include <pthread.h>
5192 void* routine(void* p){return NULL;}
5194 int main(){
5195 pthread_t p;
5196 if(pthread_create(&p,NULL,routine,NULL)!=0)
5197 return 1;
5198 (void)pthread_detach(p);
5199 return 0;
5202 _ACEOF
5203 rm -f conftest$ac_exeext
5204 if { (ac_try="$ac_link"
5205 case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208 esac
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_link") 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5214 { (case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217 esac
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_try") 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_pthread=yes
5224 else
5225 echo "$as_me: program exited with status $ac_status" >&5
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5229 ( exit $ac_status )
5230 ac_cv_pthread=no
5232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5236 CC="$ac_save_cc"
5239 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5240 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5243 # If we have set a CC compiler flag for thread support then
5244 # check if it works for CXX, too.
5245 ac_cv_cxx_thread=no
5246 if test ! -z "$CXX"
5247 then
5248 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5249 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5250 ac_save_cxx="$CXX"
5252 if test "$ac_cv_kpthread" = "yes"
5253 then
5254 CXX="$CXX -Kpthread"
5255 ac_cv_cxx_thread=yes
5256 elif test "$ac_cv_kthread" = "yes"
5257 then
5258 CXX="$CXX -Kthread"
5259 ac_cv_cxx_thread=yes
5260 elif test "$ac_cv_pthread" = "yes"
5261 then
5262 CXX="$CXX -pthread"
5263 ac_cv_cxx_thread=yes
5266 if test $ac_cv_cxx_thread = yes
5267 then
5268 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5269 $CXX -c conftest.$ac_ext 2>&5
5270 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5271 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5272 then
5273 ac_cv_cxx_thread=yes
5274 else
5275 ac_cv_cxx_thread=no
5277 rm -fr conftest*
5279 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5280 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5282 CXX="$ac_save_cxx"
5285 # checks for header files
5286 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5287 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5288 if test "${ac_cv_header_stdc+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 #include <stdlib.h>
5298 #include <stdarg.h>
5299 #include <string.h>
5300 #include <float.h>
5303 main ()
5307 return 0;
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (ac_try="$ac_compile"
5312 case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_compile") 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest.$ac_objext; then
5327 ac_cv_header_stdc=yes
5328 else
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5332 ac_cv_header_stdc=no
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 if test $ac_cv_header_stdc = yes; then
5338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h. */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 #include <string.h>
5347 _ACEOF
5348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5349 $EGREP "memchr" >/dev/null 2>&1; then
5351 else
5352 ac_cv_header_stdc=no
5354 rm -f conftest*
5358 if test $ac_cv_header_stdc = yes; then
5359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <stdlib.h>
5368 _ACEOF
5369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5370 $EGREP "free" >/dev/null 2>&1; then
5372 else
5373 ac_cv_header_stdc=no
5375 rm -f conftest*
5379 if test $ac_cv_header_stdc = yes; then
5380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5381 if test "$cross_compiling" = yes; then
5383 else
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #include <ctype.h>
5391 #include <stdlib.h>
5392 #if ((' ' & 0x0FF) == 0x020)
5393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5395 #else
5396 # define ISLOWER(c) \
5397 (('a' <= (c) && (c) <= 'i') \
5398 || ('j' <= (c) && (c) <= 'r') \
5399 || ('s' <= (c) && (c) <= 'z'))
5400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5401 #endif
5403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5405 main ()
5407 int i;
5408 for (i = 0; i < 256; i++)
5409 if (XOR (islower (i), ISLOWER (i))
5410 || toupper (i) != TOUPPER (i))
5411 return 2;
5412 return 0;
5414 _ACEOF
5415 rm -f conftest$ac_exeext
5416 if { (ac_try="$ac_link"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_link") 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5436 else
5437 echo "$as_me: program exited with status $ac_status" >&5
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5441 ( exit $ac_status )
5442 ac_cv_header_stdc=no
5444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5450 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5451 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5452 if test $ac_cv_header_stdc = yes; then
5454 cat >>confdefs.h <<\_ACEOF
5455 #define STDC_HEADERS 1
5456 _ACEOF
5460 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5471 inttypes.h stdint.h unistd.h
5473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 $ac_includes_default
5487 #include <$ac_header>
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5491 case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
5506 eval "$as_ac_Header=yes"
5507 else
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5511 eval "$as_ac_Header=no"
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 ac_res=`eval echo '${'$as_ac_Header'}'`
5517 { echo "$as_me:$LINENO: result: $ac_res" >&5
5518 echo "${ECHO_T}$ac_res" >&6; }
5519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520 cat >>confdefs.h <<_ACEOF
5521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522 _ACEOF
5526 done
5583 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5584 fcntl.h grp.h \
5585 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5586 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5587 unistd.h utime.h \
5588 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5589 sys/lock.h sys/mkdev.h sys/modem.h \
5590 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5591 sys/termio.h sys/time.h \
5592 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5593 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5594 bluetooth/bluetooth.h linux/tipc.h
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 ac_res=`eval echo '${'$as_ac_Header'}'`
5604 { echo "$as_me:$LINENO: result: $ac_res" >&5
5605 echo "${ECHO_T}$ac_res" >&6; }
5606 else
5607 # Is the header compilable?
5608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 $ac_includes_default
5617 #include <$ac_header>
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5621 case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_header_compiler=yes
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 ac_header_compiler=no
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5646 echo "${ECHO_T}$ac_header_compiler" >&6; }
5648 # Is the header present?
5649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5651 cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <$ac_header>
5658 _ACEOF
5659 if { (ac_try="$ac_cpp conftest.$ac_ext"
5660 case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } >/dev/null && {
5672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5673 test ! -s conftest.err
5674 }; then
5675 ac_header_preproc=yes
5676 else
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 ac_header_preproc=no
5683 rm -f conftest.err conftest.$ac_ext
5684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5685 echo "${ECHO_T}$ac_header_preproc" >&6; }
5687 # So? What about this header?
5688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5689 yes:no: )
5690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5694 ac_header_preproc=yes
5696 no:yes:* )
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5709 ( cat <<\_ASBOX
5710 ## ------------------------------------------------ ##
5711 ## Report this to http://www.python.org/python-bugs ##
5712 ## ------------------------------------------------ ##
5713 _ASBOX
5714 ) | sed "s/^/$as_me: WARNING: /" >&2
5716 esac
5717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 eval "$as_ac_Header=\$ac_header_preproc"
5724 ac_res=`eval echo '${'$as_ac_Header'}'`
5725 { echo "$as_me:$LINENO: result: $ac_res" >&5
5726 echo "${ECHO_T}$ac_res" >&6; }
5729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5730 cat >>confdefs.h <<_ACEOF
5731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5732 _ACEOF
5736 done
5743 ac_header_dirent=no
5744 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5745 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5746 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5747 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751 cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h. */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 #include <sys/types.h>
5758 #include <$ac_hdr>
5761 main ()
5763 if ((DIR *) 0)
5764 return 0;
5766 return 0;
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (ac_try="$ac_compile"
5771 case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compile") 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && {
5783 test -z "$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 } && test -s conftest.$ac_objext; then
5786 eval "$as_ac_Header=yes"
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 eval "$as_ac_Header=no"
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 ac_res=`eval echo '${'$as_ac_Header'}'`
5797 { echo "$as_me:$LINENO: result: $ac_res" >&5
5798 echo "${ECHO_T}$ac_res" >&6; }
5799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5800 cat >>confdefs.h <<_ACEOF
5801 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5802 _ACEOF
5804 ac_header_dirent=$ac_hdr; break
5807 done
5808 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5809 if test $ac_header_dirent = dirent.h; then
5810 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5811 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5812 if test "${ac_cv_search_opendir+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 ac_func_search_save_LIBS=$LIBS
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5823 /* Override any GCC internal prototype to avoid an error.
5824 Use char because int might match the return type of a GCC
5825 builtin and then its argument prototype would still apply. */
5826 #ifdef __cplusplus
5827 extern "C"
5828 #endif
5829 char opendir ();
5831 main ()
5833 return opendir ();
5835 return 0;
5837 _ACEOF
5838 for ac_lib in '' dir; do
5839 if test -z "$ac_lib"; then
5840 ac_res="none required"
5841 else
5842 ac_res=-l$ac_lib
5843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5845 rm -f conftest.$ac_objext conftest$ac_exeext
5846 if { (ac_try="$ac_link"
5847 case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_link") 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } && {
5859 test -z "$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5861 } && test -s conftest$ac_exeext &&
5862 $as_test_x conftest$ac_exeext; then
5863 ac_cv_search_opendir=$ac_res
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5872 conftest$ac_exeext
5873 if test "${ac_cv_search_opendir+set}" = set; then
5874 break
5876 done
5877 if test "${ac_cv_search_opendir+set}" = set; then
5879 else
5880 ac_cv_search_opendir=no
5882 rm conftest.$ac_ext
5883 LIBS=$ac_func_search_save_LIBS
5885 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5886 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5887 ac_res=$ac_cv_search_opendir
5888 if test "$ac_res" != no; then
5889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5893 else
5894 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5895 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5896 if test "${ac_cv_search_opendir+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899 ac_func_search_save_LIBS=$LIBS
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5907 /* Override any GCC internal prototype to avoid an error.
5908 Use char because int might match the return type of a GCC
5909 builtin and then its argument prototype would still apply. */
5910 #ifdef __cplusplus
5911 extern "C"
5912 #endif
5913 char opendir ();
5915 main ()
5917 return opendir ();
5919 return 0;
5921 _ACEOF
5922 for ac_lib in '' x; do
5923 if test -z "$ac_lib"; then
5924 ac_res="none required"
5925 else
5926 ac_res=-l$ac_lib
5927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (ac_try="$ac_link"
5931 case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934 esac
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_link") 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && {
5943 test -z "$ac_c_werror_flag" ||
5944 test ! -s conftest.err
5945 } && test -s conftest$ac_exeext &&
5946 $as_test_x conftest$ac_exeext; then
5947 ac_cv_search_opendir=$ac_res
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5956 conftest$ac_exeext
5957 if test "${ac_cv_search_opendir+set}" = set; then
5958 break
5960 done
5961 if test "${ac_cv_search_opendir+set}" = set; then
5963 else
5964 ac_cv_search_opendir=no
5966 rm conftest.$ac_ext
5967 LIBS=$ac_func_search_save_LIBS
5969 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5970 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5971 ac_res=$ac_cv_search_opendir
5972 if test "$ac_res" != no; then
5973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5979 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5980 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5981 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <sys/types.h>
5992 main ()
5994 return makedev(0, 0);
5996 return 0;
5998 _ACEOF
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (ac_try="$ac_link"
6001 case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004 esac
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_link") 2>conftest.er1
6007 ac_status=$?
6008 grep -v '^ *+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } && {
6013 test -z "$ac_c_werror_flag" ||
6014 test ! -s conftest.err
6015 } && test -s conftest$ac_exeext &&
6016 $as_test_x conftest$ac_exeext; then
6017 ac_cv_header_sys_types_h_makedev=yes
6018 else
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_cv_header_sys_types_h_makedev=no
6025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6026 conftest$ac_exeext conftest.$ac_ext
6029 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6030 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6032 if test $ac_cv_header_sys_types_h_makedev = no; then
6033 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6034 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6035 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6036 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6040 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6041 else
6042 # Is the header compilable?
6043 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6044 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 $ac_includes_default
6052 #include <sys/mkdev.h>
6053 _ACEOF
6054 rm -f conftest.$ac_objext
6055 if { (ac_try="$ac_compile"
6056 case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compile") 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest.$ac_objext; then
6071 ac_header_compiler=yes
6072 else
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 ac_header_compiler=no
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6081 echo "${ECHO_T}$ac_header_compiler" >&6; }
6083 # Is the header present?
6084 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6085 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h. */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <sys/mkdev.h>
6093 _ACEOF
6094 if { (ac_try="$ac_cpp conftest.$ac_ext"
6095 case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098 esac
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } >/dev/null && {
6107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 }; then
6110 ac_header_preproc=yes
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6115 ac_header_preproc=no
6118 rm -f conftest.err conftest.$ac_ext
6119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6120 echo "${ECHO_T}$ac_header_preproc" >&6; }
6122 # So? What about this header?
6123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6124 yes:no: )
6125 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6126 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6128 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6129 ac_header_preproc=yes
6131 no:yes:* )
6132 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6133 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6135 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6139 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6141 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6143 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6144 ( cat <<\_ASBOX
6145 ## ------------------------------------------------ ##
6146 ## Report this to http://www.python.org/python-bugs ##
6147 ## ------------------------------------------------ ##
6148 _ASBOX
6149 ) | sed "s/^/$as_me: WARNING: /" >&2
6151 esac
6152 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6153 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6154 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6160 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6163 if test $ac_cv_header_sys_mkdev_h = yes; then
6165 cat >>confdefs.h <<\_ACEOF
6166 #define MAJOR_IN_MKDEV 1
6167 _ACEOF
6173 if test $ac_cv_header_sys_mkdev_h = no; then
6174 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6175 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6176 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6177 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6181 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6182 else
6183 # Is the header compilable?
6184 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6185 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 $ac_includes_default
6193 #include <sys/sysmacros.h>
6194 _ACEOF
6195 rm -f conftest.$ac_objext
6196 if { (ac_try="$ac_compile"
6197 case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200 esac
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_compile") 2>conftest.er1
6203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && {
6209 test -z "$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6211 } && test -s conftest.$ac_objext; then
6212 ac_header_compiler=yes
6213 else
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6217 ac_header_compiler=no
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6222 echo "${ECHO_T}$ac_header_compiler" >&6; }
6224 # Is the header present?
6225 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6226 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 #include <sys/sysmacros.h>
6234 _ACEOF
6235 if { (ac_try="$ac_cpp conftest.$ac_ext"
6236 case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null && {
6248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 }; then
6251 ac_header_preproc=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_header_preproc=no
6259 rm -f conftest.err conftest.$ac_ext
6260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6261 echo "${ECHO_T}$ac_header_preproc" >&6; }
6263 # So? What about this header?
6264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6265 yes:no: )
6266 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6267 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6268 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6269 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6270 ac_header_preproc=yes
6272 no:yes:* )
6273 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6274 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6276 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6280 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6282 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6284 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6285 ( cat <<\_ASBOX
6286 ## ------------------------------------------------ ##
6287 ## Report this to http://www.python.org/python-bugs ##
6288 ## ------------------------------------------------ ##
6289 _ASBOX
6290 ) | sed "s/^/$as_me: WARNING: /" >&2
6292 esac
6293 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6294 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6295 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6301 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6304 if test $ac_cv_header_sys_sysmacros_h = yes; then
6306 cat >>confdefs.h <<\_ACEOF
6307 #define MAJOR_IN_SYSMACROS 1
6308 _ACEOF
6317 # On Solaris, term.h requires curses.h
6319 for ac_header in term.h
6321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h. */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6334 #ifdef HAVE_CURSES_H
6335 #include <curses.h>
6336 #endif
6339 #include <$ac_header>
6340 _ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6343 case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346 esac
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_compile") 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && {
6355 test -z "$ac_c_werror_flag" ||
6356 test ! -s conftest.err
6357 } && test -s conftest.$ac_objext; then
6358 eval "$as_ac_Header=yes"
6359 else
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6363 eval "$as_ac_Header=no"
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_res=`eval echo '${'$as_ac_Header'}'`
6369 { echo "$as_me:$LINENO: result: $ac_res" >&5
6370 echo "${ECHO_T}$ac_res" >&6; }
6371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6372 cat >>confdefs.h <<_ACEOF
6373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6374 _ACEOF
6378 done
6381 # On Linux, netlink.h requires asm/types.h
6383 for ac_header in linux/netlink.h
6385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6398 #ifdef HAVE_ASM_TYPES_H
6399 #include <asm/types.h>
6400 #endif
6401 #ifdef HAVE_SYS_SOCKET_H
6402 #include <sys/socket.h>
6403 #endif
6406 #include <$ac_header>
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (ac_try="$ac_compile"
6410 case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413 esac
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_compile") 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } && {
6422 test -z "$ac_c_werror_flag" ||
6423 test ! -s conftest.err
6424 } && test -s conftest.$ac_objext; then
6425 eval "$as_ac_Header=yes"
6426 else
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 eval "$as_ac_Header=no"
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 ac_res=`eval echo '${'$as_ac_Header'}'`
6436 { echo "$as_me:$LINENO: result: $ac_res" >&5
6437 echo "${ECHO_T}$ac_res" >&6; }
6438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6439 cat >>confdefs.h <<_ACEOF
6440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6441 _ACEOF
6445 done
6448 # checks for typedefs
6449 was_it_defined=no
6450 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6451 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 #include <time.h>
6460 _ACEOF
6461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462 $EGREP "clock_t" >/dev/null 2>&1; then
6463 was_it_defined=yes
6464 else
6467 cat >>confdefs.h <<\_ACEOF
6468 #define clock_t long
6469 _ACEOF
6473 rm -f conftest*
6475 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6476 echo "${ECHO_T}$was_it_defined" >&6; }
6478 # Check whether using makedev requires defining _OSF_SOURCE
6479 { echo "$as_me:$LINENO: checking for makedev" >&5
6480 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 #include <sys/types.h>
6489 main ()
6491 makedev(0, 0)
6493 return 0;
6495 _ACEOF
6496 rm -f conftest.$ac_objext conftest$ac_exeext
6497 if { (ac_try="$ac_link"
6498 case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6501 esac
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_link") 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && {
6510 test -z "$ac_c_werror_flag" ||
6511 test ! -s conftest.err
6512 } && test -s conftest$ac_exeext &&
6513 $as_test_x conftest$ac_exeext; then
6514 ac_cv_has_makedev=yes
6515 else
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6519 ac_cv_has_makedev=no
6522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6523 conftest$ac_exeext conftest.$ac_ext
6524 if test "$ac_cv_has_makedev" = "no"; then
6525 # we didn't link, try if _OSF_SOURCE will allow us to link
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6533 #define _OSF_SOURCE 1
6534 #include <sys/types.h>
6537 main ()
6539 makedev(0, 0)
6541 return 0;
6543 _ACEOF
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (ac_try="$ac_link"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_link") 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest$ac_exeext &&
6561 $as_test_x conftest$ac_exeext; then
6562 ac_cv_has_makedev=yes
6563 else
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_cv_has_makedev=no
6570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6571 conftest$ac_exeext conftest.$ac_ext
6572 if test "$ac_cv_has_makedev" = "yes"; then
6574 cat >>confdefs.h <<\_ACEOF
6575 #define _OSF_SOURCE 1
6576 _ACEOF
6580 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6581 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6582 if test "$ac_cv_has_makedev" = "yes"; then
6584 cat >>confdefs.h <<\_ACEOF
6585 #define HAVE_MAKEDEV 1
6586 _ACEOF
6590 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6591 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6592 # defined, but the compiler does not support pragma redefine_extname,
6593 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6594 # structures (such as rlimit64) without declaring them. As a
6595 # work-around, disable LFS on such configurations
6597 use_lfs=yes
6598 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6599 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6607 #define _LARGEFILE_SOURCE 1
6608 #define _FILE_OFFSET_BITS 64
6609 #include <sys/resource.h>
6612 main ()
6614 struct rlimit foo;
6616 return 0;
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (ac_try="$ac_compile"
6621 case "(($ac_try" in
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6624 esac
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6636 sol_lfs_bug=no
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 sol_lfs_bug=yes
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6646 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6647 if test "$sol_lfs_bug" = "yes"; then
6648 use_lfs=no
6651 if test "$use_lfs" = "yes"; then
6652 # Two defines needed to enable largefile support on various platforms
6653 # These may affect some typedefs
6655 cat >>confdefs.h <<\_ACEOF
6656 #define _LARGEFILE_SOURCE 1
6657 _ACEOF
6660 cat >>confdefs.h <<\_ACEOF
6661 #define _FILE_OFFSET_BITS 64
6662 _ACEOF
6666 # Add some code to confdefs.h so that the test for off_t works on SCO
6667 cat >> confdefs.h <<\EOF
6668 #if defined(SCO_DS)
6669 #undef _OFF_T
6670 #endif
6673 # Type availability checks
6674 { echo "$as_me:$LINENO: checking for mode_t" >&5
6675 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6676 if test "${ac_cv_type_mode_t+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h. */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6685 $ac_includes_default
6686 typedef mode_t ac__type_new_;
6688 main ()
6690 if ((ac__type_new_ *) 0)
6691 return 0;
6692 if (sizeof (ac__type_new_))
6693 return 0;
6695 return 0;
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 ac_cv_type_mode_t=yes
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_cv_type_mode_t=no
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6726 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6727 if test $ac_cv_type_mode_t = yes; then
6729 else
6731 cat >>confdefs.h <<_ACEOF
6732 #define mode_t int
6733 _ACEOF
6737 { echo "$as_me:$LINENO: checking for off_t" >&5
6738 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6739 if test "${ac_cv_type_off_t+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 $ac_includes_default
6749 typedef off_t ac__type_new_;
6751 main ()
6753 if ((ac__type_new_ *) 0)
6754 return 0;
6755 if (sizeof (ac__type_new_))
6756 return 0;
6758 return 0;
6760 _ACEOF
6761 rm -f conftest.$ac_objext
6762 if { (ac_try="$ac_compile"
6763 case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_compile") 2>conftest.er1
6769 ac_status=$?
6770 grep -v '^ *+' conftest.er1 >conftest.err
6771 rm -f conftest.er1
6772 cat conftest.err >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } && {
6775 test -z "$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6777 } && test -s conftest.$ac_objext; then
6778 ac_cv_type_off_t=yes
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_cv_type_off_t=no
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6789 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6790 if test $ac_cv_type_off_t = yes; then
6792 else
6794 cat >>confdefs.h <<_ACEOF
6795 #define off_t long int
6796 _ACEOF
6800 { echo "$as_me:$LINENO: checking for pid_t" >&5
6801 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6802 if test "${ac_cv_type_pid_t+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 $ac_includes_default
6812 typedef pid_t ac__type_new_;
6814 main ()
6816 if ((ac__type_new_ *) 0)
6817 return 0;
6818 if (sizeof (ac__type_new_))
6819 return 0;
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (ac_try="$ac_compile"
6826 case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829 esac
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
6841 ac_cv_type_pid_t=yes
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_cv_type_pid_t=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6852 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6853 if test $ac_cv_type_pid_t = yes; then
6855 else
6857 cat >>confdefs.h <<_ACEOF
6858 #define pid_t int
6859 _ACEOF
6863 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6864 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6865 if test "${ac_cv_type_signal+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <sys/types.h>
6875 #include <signal.h>
6878 main ()
6880 return *(signal (0, 0)) (0) == 1;
6882 return 0;
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6887 case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.$ac_objext; then
6902 ac_cv_type_signal=int
6903 else
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 ac_cv_type_signal=void
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6913 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6915 cat >>confdefs.h <<_ACEOF
6916 #define RETSIGTYPE $ac_cv_type_signal
6917 _ACEOF
6920 { echo "$as_me:$LINENO: checking for size_t" >&5
6921 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6922 if test "${ac_cv_type_size_t+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 $ac_includes_default
6932 typedef size_t ac__type_new_;
6934 main ()
6936 if ((ac__type_new_ *) 0)
6937 return 0;
6938 if (sizeof (ac__type_new_))
6939 return 0;
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (ac_try="$ac_compile"
6946 case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949 esac
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6961 ac_cv_type_size_t=yes
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 ac_cv_type_size_t=no
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6972 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6973 if test $ac_cv_type_size_t = yes; then
6975 else
6977 cat >>confdefs.h <<_ACEOF
6978 #define size_t unsigned int
6979 _ACEOF
6983 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6984 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6985 if test "${ac_cv_type_uid_t+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 #include <sys/types.h>
6996 _ACEOF
6997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6998 $EGREP "uid_t" >/dev/null 2>&1; then
6999 ac_cv_type_uid_t=yes
7000 else
7001 ac_cv_type_uid_t=no
7003 rm -f conftest*
7006 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7007 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7008 if test $ac_cv_type_uid_t = no; then
7010 cat >>confdefs.h <<\_ACEOF
7011 #define uid_t int
7012 _ACEOF
7015 cat >>confdefs.h <<\_ACEOF
7016 #define gid_t int
7017 _ACEOF
7021 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7022 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7023 if test "${ac_cv_type_ssize_t+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 $ac_includes_default
7033 typedef ssize_t ac__type_new_;
7035 main ()
7037 if ((ac__type_new_ *) 0)
7038 return 0;
7039 if (sizeof (ac__type_new_))
7040 return 0;
7042 return 0;
7044 _ACEOF
7045 rm -f conftest.$ac_objext
7046 if { (ac_try="$ac_compile"
7047 case "(($ac_try" in
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7050 esac
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_compile") 2>conftest.er1
7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } && {
7059 test -z "$ac_c_werror_flag" ||
7060 test ! -s conftest.err
7061 } && test -s conftest.$ac_objext; then
7062 ac_cv_type_ssize_t=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 ac_cv_type_ssize_t=no
7070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7073 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7074 if test $ac_cv_type_ssize_t = yes; then
7076 cat >>confdefs.h <<\_ACEOF
7077 #define HAVE_SSIZE_T 1
7078 _ACEOF
7083 # Sizes of various common basic types
7084 # ANSI C requires sizeof(char) == 1, so no need to check it
7085 { echo "$as_me:$LINENO: checking for int" >&5
7086 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7087 if test "${ac_cv_type_int+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 $ac_includes_default
7097 typedef int ac__type_new_;
7099 main ()
7101 if ((ac__type_new_ *) 0)
7102 return 0;
7103 if (sizeof (ac__type_new_))
7104 return 0;
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (ac_try="$ac_compile"
7111 case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114 esac
7115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_compile") 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.$ac_objext; then
7126 ac_cv_type_int=yes
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_cv_type_int=no
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7137 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7139 # The cast to long int works around a bug in the HP C Compiler
7140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7142 # This bug is HP SR number 8606223364.
7143 { echo "$as_me:$LINENO: checking size of int" >&5
7144 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7145 if test "${ac_cv_sizeof_int+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148 if test "$cross_compiling" = yes; then
7149 # Depending upon the size, compute the lo and hi bounds.
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 $ac_includes_default
7157 typedef int ac__type_sizeof_;
7159 main ()
7161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7162 test_array [0] = 0
7165 return 0;
7167 _ACEOF
7168 rm -f conftest.$ac_objext
7169 if { (ac_try="$ac_compile"
7170 case "(($ac_try" in
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7173 esac
7174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7175 (eval "$ac_compile") 2>conftest.er1
7176 ac_status=$?
7177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } && {
7182 test -z "$ac_c_werror_flag" ||
7183 test ! -s conftest.err
7184 } && test -s conftest.$ac_objext; then
7185 ac_lo=0 ac_mid=0
7186 while :; do
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h. */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7194 typedef int ac__type_sizeof_;
7196 main ()
7198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7199 test_array [0] = 0
7202 return 0;
7204 _ACEOF
7205 rm -f conftest.$ac_objext
7206 if { (ac_try="$ac_compile"
7207 case "(($ac_try" in
7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7210 esac
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_compile") 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } && {
7219 test -z "$ac_c_werror_flag" ||
7220 test ! -s conftest.err
7221 } && test -s conftest.$ac_objext; then
7222 ac_hi=$ac_mid; break
7223 else
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 ac_lo=`expr $ac_mid + 1`
7228 if test $ac_lo -le $ac_mid; then
7229 ac_lo= ac_hi=
7230 break
7232 ac_mid=`expr 2 '*' $ac_mid + 1`
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 done
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7248 typedef int ac__type_sizeof_;
7250 main ()
7252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7253 test_array [0] = 0
7256 return 0;
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7261 case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 ac_hi=-1 ac_mid=-1
7277 while :; do
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 $ac_includes_default
7285 typedef int ac__type_sizeof_;
7287 main ()
7289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7290 test_array [0] = 0
7293 return 0;
7295 _ACEOF
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7298 case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301 esac
7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303 (eval "$ac_compile") 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest.$ac_objext; then
7313 ac_lo=$ac_mid; break
7314 else
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7318 ac_hi=`expr '(' $ac_mid ')' - 1`
7319 if test $ac_mid -le $ac_hi; then
7320 ac_lo= ac_hi=
7321 break
7323 ac_mid=`expr 2 '*' $ac_mid`
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 done
7328 else
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 ac_lo= ac_hi=
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 # Binary search between lo and hi bounds.
7340 while test "x$ac_lo" != "x$ac_hi"; do
7341 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7342 cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h. */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 $ac_includes_default
7349 typedef int ac__type_sizeof_;
7351 main ()
7353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7354 test_array [0] = 0
7357 return 0;
7359 _ACEOF
7360 rm -f conftest.$ac_objext
7361 if { (ac_try="$ac_compile"
7362 case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365 esac
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_compile") 2>conftest.er1
7368 ac_status=$?
7369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } && {
7374 test -z "$ac_c_werror_flag" ||
7375 test ! -s conftest.err
7376 } && test -s conftest.$ac_objext; then
7377 ac_hi=$ac_mid
7378 else
7379 echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.$ac_ext >&5
7382 ac_lo=`expr '(' $ac_mid ')' + 1`
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 done
7387 case $ac_lo in
7388 ?*) ac_cv_sizeof_int=$ac_lo;;
7389 '') if test "$ac_cv_type_int" = yes; then
7390 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7391 See \`config.log' for more details." >&5
7392 echo "$as_me: error: cannot compute sizeof (int)
7393 See \`config.log' for more details." >&2;}
7394 { (exit 77); exit 77; }; }
7395 else
7396 ac_cv_sizeof_int=0
7397 fi ;;
7398 esac
7399 else
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h. */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 $ac_includes_default
7407 typedef int ac__type_sizeof_;
7408 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7409 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7410 #include <stdio.h>
7411 #include <stdlib.h>
7413 main ()
7416 FILE *f = fopen ("conftest.val", "w");
7417 if (! f)
7418 return 1;
7419 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7421 long int i = longval ();
7422 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7423 return 1;
7424 fprintf (f, "%ld\n", i);
7426 else
7428 unsigned long int i = ulongval ();
7429 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7430 return 1;
7431 fprintf (f, "%lu\n", i);
7433 return ferror (f) || fclose (f) != 0;
7436 return 0;
7438 _ACEOF
7439 rm -f conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7441 case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_link") 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7450 { (case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_try") 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_sizeof_int=`cat conftest.val`
7460 else
7461 echo "$as_me: program exited with status $ac_status" >&5
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7465 ( exit $ac_status )
7466 if test "$ac_cv_type_int" = yes; then
7467 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7468 See \`config.log' for more details." >&5
7469 echo "$as_me: error: cannot compute sizeof (int)
7470 See \`config.log' for more details." >&2;}
7471 { (exit 77); exit 77; }; }
7472 else
7473 ac_cv_sizeof_int=0
7476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7478 rm -f conftest.val
7480 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7481 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7485 cat >>confdefs.h <<_ACEOF
7486 #define SIZEOF_INT $ac_cv_sizeof_int
7487 _ACEOF
7490 { echo "$as_me:$LINENO: checking for long" >&5
7491 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7492 if test "${ac_cv_type_long+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7502 typedef long ac__type_new_;
7504 main ()
7506 if ((ac__type_new_ *) 0)
7507 return 0;
7508 if (sizeof (ac__type_new_))
7509 return 0;
7511 return 0;
7513 _ACEOF
7514 rm -f conftest.$ac_objext
7515 if { (ac_try="$ac_compile"
7516 case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519 esac
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_compile") 2>conftest.er1
7522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } && {
7528 test -z "$ac_c_werror_flag" ||
7529 test ! -s conftest.err
7530 } && test -s conftest.$ac_objext; then
7531 ac_cv_type_long=yes
7532 else
7533 echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7536 ac_cv_type_long=no
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7542 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7544 # The cast to long int works around a bug in the HP C Compiler
7545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7547 # This bug is HP SR number 8606223364.
7548 { echo "$as_me:$LINENO: checking size of long" >&5
7549 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7550 if test "${ac_cv_sizeof_long+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 if test "$cross_compiling" = yes; then
7554 # Depending upon the size, compute the lo and hi bounds.
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 typedef long ac__type_sizeof_;
7564 main ()
7566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7567 test_array [0] = 0
7570 return 0;
7572 _ACEOF
7573 rm -f conftest.$ac_objext
7574 if { (ac_try="$ac_compile"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_lo=0 ac_mid=0
7591 while :; do
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 $ac_includes_default
7599 typedef long ac__type_sizeof_;
7601 main ()
7603 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7604 test_array [0] = 0
7607 return 0;
7609 _ACEOF
7610 rm -f conftest.$ac_objext
7611 if { (ac_try="$ac_compile"
7612 case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_compile") 2>conftest.er1
7618 ac_status=$?
7619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } && {
7624 test -z "$ac_c_werror_flag" ||
7625 test ! -s conftest.err
7626 } && test -s conftest.$ac_objext; then
7627 ac_hi=$ac_mid; break
7628 else
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7632 ac_lo=`expr $ac_mid + 1`
7633 if test $ac_lo -le $ac_mid; then
7634 ac_lo= ac_hi=
7635 break
7637 ac_mid=`expr 2 '*' $ac_mid + 1`
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 done
7642 else
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 $ac_includes_default
7653 typedef long ac__type_sizeof_;
7655 main ()
7657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7658 test_array [0] = 0
7661 return 0;
7663 _ACEOF
7664 rm -f conftest.$ac_objext
7665 if { (ac_try="$ac_compile"
7666 case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7669 esac
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_compile") 2>conftest.er1
7672 ac_status=$?
7673 grep -v '^ *+' conftest.er1 >conftest.err
7674 rm -f conftest.er1
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } && {
7678 test -z "$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 } && test -s conftest.$ac_objext; then
7681 ac_hi=-1 ac_mid=-1
7682 while :; do
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 typedef long ac__type_sizeof_;
7692 main ()
7694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7695 test_array [0] = 0
7698 return 0;
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7703 case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
7718 ac_lo=$ac_mid; break
7719 else
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7723 ac_hi=`expr '(' $ac_mid ')' - 1`
7724 if test $ac_mid -le $ac_hi; then
7725 ac_lo= ac_hi=
7726 break
7728 ac_mid=`expr 2 '*' $ac_mid`
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 done
7733 else
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7737 ac_lo= ac_hi=
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744 # Binary search between lo and hi bounds.
7745 while test "x$ac_lo" != "x$ac_hi"; do
7746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7747 cat >conftest.$ac_ext <<_ACEOF
7748 /* confdefs.h. */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 $ac_includes_default
7754 typedef long ac__type_sizeof_;
7756 main ()
7758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7759 test_array [0] = 0
7762 return 0;
7764 _ACEOF
7765 rm -f conftest.$ac_objext
7766 if { (ac_try="$ac_compile"
7767 case "(($ac_try" in
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7770 esac
7771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772 (eval "$ac_compile") 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } && {
7779 test -z "$ac_c_werror_flag" ||
7780 test ! -s conftest.err
7781 } && test -s conftest.$ac_objext; then
7782 ac_hi=$ac_mid
7783 else
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 ac_lo=`expr '(' $ac_mid ')' + 1`
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 done
7792 case $ac_lo in
7793 ?*) ac_cv_sizeof_long=$ac_lo;;
7794 '') if test "$ac_cv_type_long" = yes; then
7795 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7796 See \`config.log' for more details." >&5
7797 echo "$as_me: error: cannot compute sizeof (long)
7798 See \`config.log' for more details." >&2;}
7799 { (exit 77); exit 77; }; }
7800 else
7801 ac_cv_sizeof_long=0
7802 fi ;;
7803 esac
7804 else
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7812 typedef long ac__type_sizeof_;
7813 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7814 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7815 #include <stdio.h>
7816 #include <stdlib.h>
7818 main ()
7821 FILE *f = fopen ("conftest.val", "w");
7822 if (! f)
7823 return 1;
7824 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7826 long int i = longval ();
7827 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7828 return 1;
7829 fprintf (f, "%ld\n", i);
7831 else
7833 unsigned long int i = ulongval ();
7834 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7835 return 1;
7836 fprintf (f, "%lu\n", i);
7838 return ferror (f) || fclose (f) != 0;
7841 return 0;
7843 _ACEOF
7844 rm -f conftest$ac_exeext
7845 if { (ac_try="$ac_link"
7846 case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849 esac
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_link") 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7855 { (case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_try") 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 ac_cv_sizeof_long=`cat conftest.val`
7865 else
7866 echo "$as_me: program exited with status $ac_status" >&5
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 ( exit $ac_status )
7871 if test "$ac_cv_type_long" = yes; then
7872 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7873 See \`config.log' for more details." >&5
7874 echo "$as_me: error: cannot compute sizeof (long)
7875 See \`config.log' for more details." >&2;}
7876 { (exit 77); exit 77; }; }
7877 else
7878 ac_cv_sizeof_long=0
7881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7883 rm -f conftest.val
7885 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7886 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7890 cat >>confdefs.h <<_ACEOF
7891 #define SIZEOF_LONG $ac_cv_sizeof_long
7892 _ACEOF
7895 { echo "$as_me:$LINENO: checking for void *" >&5
7896 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7897 if test "${ac_cv_type_void_p+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h. */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 $ac_includes_default
7907 typedef void * ac__type_new_;
7909 main ()
7911 if ((ac__type_new_ *) 0)
7912 return 0;
7913 if (sizeof (ac__type_new_))
7914 return 0;
7916 return 0;
7918 _ACEOF
7919 rm -f conftest.$ac_objext
7920 if { (ac_try="$ac_compile"
7921 case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
7936 ac_cv_type_void_p=yes
7937 else
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 ac_cv_type_void_p=no
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7947 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7949 # The cast to long int works around a bug in the HP C Compiler
7950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7952 # This bug is HP SR number 8606223364.
7953 { echo "$as_me:$LINENO: checking size of void *" >&5
7954 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7955 if test "${ac_cv_sizeof_void_p+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958 if test "$cross_compiling" = yes; then
7959 # Depending upon the size, compute the lo and hi bounds.
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h. */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 $ac_includes_default
7967 typedef void * ac__type_sizeof_;
7969 main ()
7971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7972 test_array [0] = 0
7975 return 0;
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7980 case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
7995 ac_lo=0 ac_mid=0
7996 while :; do
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 $ac_includes_default
8004 typedef void * ac__type_sizeof_;
8006 main ()
8008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8009 test_array [0] = 0
8012 return 0;
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8032 ac_hi=$ac_mid; break
8033 else
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 ac_lo=`expr $ac_mid + 1`
8038 if test $ac_lo -le $ac_mid; then
8039 ac_lo= ac_hi=
8040 break
8042 ac_mid=`expr 2 '*' $ac_mid + 1`
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 done
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h. */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8058 typedef void * ac__type_sizeof_;
8060 main ()
8062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8063 test_array [0] = 0
8066 return 0;
8068 _ACEOF
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8071 case "(($ac_try" in
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_compile") 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.$ac_objext; then
8086 ac_hi=-1 ac_mid=-1
8087 while :; do
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 $ac_includes_default
8095 typedef void * ac__type_sizeof_;
8097 main ()
8099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8100 test_array [0] = 0
8103 return 0;
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_lo=$ac_mid; break
8124 else
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_hi=`expr '(' $ac_mid ')' - 1`
8129 if test $ac_mid -le $ac_hi; then
8130 ac_lo= ac_hi=
8131 break
8133 ac_mid=`expr 2 '*' $ac_mid`
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 done
8138 else
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8142 ac_lo= ac_hi=
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 # Binary search between lo and hi bounds.
8150 while test "x$ac_lo" != "x$ac_hi"; do
8151 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8152 cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h. */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8158 $ac_includes_default
8159 typedef void * ac__type_sizeof_;
8161 main ()
8163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8164 test_array [0] = 0
8167 return 0;
8169 _ACEOF
8170 rm -f conftest.$ac_objext
8171 if { (ac_try="$ac_compile"
8172 case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_compile") 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.$ac_objext; then
8187 ac_hi=$ac_mid
8188 else
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_lo=`expr '(' $ac_mid ')' + 1`
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 done
8197 case $ac_lo in
8198 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8199 '') if test "$ac_cv_type_void_p" = yes; then
8200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8201 See \`config.log' for more details." >&5
8202 echo "$as_me: error: cannot compute sizeof (void *)
8203 See \`config.log' for more details." >&2;}
8204 { (exit 77); exit 77; }; }
8205 else
8206 ac_cv_sizeof_void_p=0
8207 fi ;;
8208 esac
8209 else
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 $ac_includes_default
8217 typedef void * ac__type_sizeof_;
8218 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8219 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8220 #include <stdio.h>
8221 #include <stdlib.h>
8223 main ()
8226 FILE *f = fopen ("conftest.val", "w");
8227 if (! f)
8228 return 1;
8229 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8231 long int i = longval ();
8232 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8233 return 1;
8234 fprintf (f, "%ld\n", i);
8236 else
8238 unsigned long int i = ulongval ();
8239 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8240 return 1;
8241 fprintf (f, "%lu\n", i);
8243 return ferror (f) || fclose (f) != 0;
8246 return 0;
8248 _ACEOF
8249 rm -f conftest$ac_exeext
8250 if { (ac_try="$ac_link"
8251 case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_link") 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8260 { (case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_try") 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_cv_sizeof_void_p=`cat conftest.val`
8270 else
8271 echo "$as_me: program exited with status $ac_status" >&5
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8275 ( exit $ac_status )
8276 if test "$ac_cv_type_void_p" = yes; then
8277 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8278 See \`config.log' for more details." >&5
8279 echo "$as_me: error: cannot compute sizeof (void *)
8280 See \`config.log' for more details." >&2;}
8281 { (exit 77); exit 77; }; }
8282 else
8283 ac_cv_sizeof_void_p=0
8286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8288 rm -f conftest.val
8290 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8291 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8295 cat >>confdefs.h <<_ACEOF
8296 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8297 _ACEOF
8300 { echo "$as_me:$LINENO: checking for short" >&5
8301 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8302 if test "${ac_cv_type_short+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h. */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 typedef short ac__type_new_;
8314 main ()
8316 if ((ac__type_new_ *) 0)
8317 return 0;
8318 if (sizeof (ac__type_new_))
8319 return 0;
8321 return 0;
8323 _ACEOF
8324 rm -f conftest.$ac_objext
8325 if { (ac_try="$ac_compile"
8326 case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329 esac
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_compile") 2>conftest.er1
8332 ac_status=$?
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } && {
8338 test -z "$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8340 } && test -s conftest.$ac_objext; then
8341 ac_cv_type_short=yes
8342 else
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8346 ac_cv_type_short=no
8349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8352 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8354 # The cast to long int works around a bug in the HP C Compiler
8355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8357 # This bug is HP SR number 8606223364.
8358 { echo "$as_me:$LINENO: checking size of short" >&5
8359 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8360 if test "${ac_cv_sizeof_short+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363 if test "$cross_compiling" = yes; then
8364 # Depending upon the size, compute the lo and hi bounds.
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 typedef short ac__type_sizeof_;
8374 main ()
8376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8377 test_array [0] = 0
8380 return 0;
8382 _ACEOF
8383 rm -f conftest.$ac_objext
8384 if { (ac_try="$ac_compile"
8385 case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_compile") 2>conftest.er1
8391 ac_status=$?
8392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest.$ac_objext; then
8400 ac_lo=0 ac_mid=0
8401 while :; do
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 $ac_includes_default
8409 typedef short ac__type_sizeof_;
8411 main ()
8413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8414 test_array [0] = 0
8417 return 0;
8419 _ACEOF
8420 rm -f conftest.$ac_objext
8421 if { (ac_try="$ac_compile"
8422 case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compile") 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && {
8434 test -z "$ac_c_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest.$ac_objext; then
8437 ac_hi=$ac_mid; break
8438 else
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 ac_lo=`expr $ac_mid + 1`
8443 if test $ac_lo -le $ac_mid; then
8444 ac_lo= ac_hi=
8445 break
8447 ac_mid=`expr 2 '*' $ac_mid + 1`
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 done
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8456 cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h. */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 $ac_includes_default
8463 typedef short ac__type_sizeof_;
8465 main ()
8467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8468 test_array [0] = 0
8471 return 0;
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (ac_try="$ac_compile"
8476 case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8491 ac_hi=-1 ac_mid=-1
8492 while :; do
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 typedef short ac__type_sizeof_;
8502 main ()
8504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8505 test_array [0] = 0
8508 return 0;
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_compile") 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_c_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest.$ac_objext; then
8528 ac_lo=$ac_mid; break
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 ac_hi=`expr '(' $ac_mid ')' - 1`
8534 if test $ac_mid -le $ac_hi; then
8535 ac_lo= ac_hi=
8536 break
8538 ac_mid=`expr 2 '*' $ac_mid`
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 done
8543 else
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 ac_lo= ac_hi=
8550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 # Binary search between lo and hi bounds.
8555 while test "x$ac_lo" != "x$ac_hi"; do
8556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h. */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 $ac_includes_default
8564 typedef short ac__type_sizeof_;
8566 main ()
8568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8569 test_array [0] = 0
8572 return 0;
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8583 ac_status=$?
8584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
8592 ac_hi=$ac_mid
8593 else
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 ac_lo=`expr '(' $ac_mid ')' + 1`
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 done
8602 case $ac_lo in
8603 ?*) ac_cv_sizeof_short=$ac_lo;;
8604 '') if test "$ac_cv_type_short" = yes; then
8605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8606 See \`config.log' for more details." >&5
8607 echo "$as_me: error: cannot compute sizeof (short)
8608 See \`config.log' for more details." >&2;}
8609 { (exit 77); exit 77; }; }
8610 else
8611 ac_cv_sizeof_short=0
8612 fi ;;
8613 esac
8614 else
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h. */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 $ac_includes_default
8622 typedef short ac__type_sizeof_;
8623 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8624 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8625 #include <stdio.h>
8626 #include <stdlib.h>
8628 main ()
8631 FILE *f = fopen ("conftest.val", "w");
8632 if (! f)
8633 return 1;
8634 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8636 long int i = longval ();
8637 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8638 return 1;
8639 fprintf (f, "%ld\n", i);
8641 else
8643 unsigned long int i = ulongval ();
8644 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8645 return 1;
8646 fprintf (f, "%lu\n", i);
8648 return ferror (f) || fclose (f) != 0;
8651 return 0;
8653 _ACEOF
8654 rm -f conftest$ac_exeext
8655 if { (ac_try="$ac_link"
8656 case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659 esac
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_link") 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8665 { (case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668 esac
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_try") 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_sizeof_short=`cat conftest.val`
8675 else
8676 echo "$as_me: program exited with status $ac_status" >&5
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 ( exit $ac_status )
8681 if test "$ac_cv_type_short" = yes; then
8682 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8683 See \`config.log' for more details." >&5
8684 echo "$as_me: error: cannot compute sizeof (short)
8685 See \`config.log' for more details." >&2;}
8686 { (exit 77); exit 77; }; }
8687 else
8688 ac_cv_sizeof_short=0
8691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8693 rm -f conftest.val
8695 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8696 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8700 cat >>confdefs.h <<_ACEOF
8701 #define SIZEOF_SHORT $ac_cv_sizeof_short
8702 _ACEOF
8705 { echo "$as_me:$LINENO: checking for float" >&5
8706 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8707 if test "${ac_cv_type_float+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h. */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 $ac_includes_default
8717 typedef float ac__type_new_;
8719 main ()
8721 if ((ac__type_new_ *) 0)
8722 return 0;
8723 if (sizeof (ac__type_new_))
8724 return 0;
8726 return 0;
8728 _ACEOF
8729 rm -f conftest.$ac_objext
8730 if { (ac_try="$ac_compile"
8731 case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734 esac
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_compile") 2>conftest.er1
8737 ac_status=$?
8738 grep -v '^ *+' conftest.er1 >conftest.err
8739 rm -f conftest.er1
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest.$ac_objext; then
8746 ac_cv_type_float=yes
8747 else
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8751 ac_cv_type_float=no
8754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8757 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8759 # The cast to long int works around a bug in the HP C Compiler
8760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8762 # This bug is HP SR number 8606223364.
8763 { echo "$as_me:$LINENO: checking size of float" >&5
8764 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8765 if test "${ac_cv_sizeof_float+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768 if test "$cross_compiling" = yes; then
8769 # Depending upon the size, compute the lo and hi bounds.
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 $ac_includes_default
8777 typedef float ac__type_sizeof_;
8779 main ()
8781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8782 test_array [0] = 0
8785 return 0;
8787 _ACEOF
8788 rm -f conftest.$ac_objext
8789 if { (ac_try="$ac_compile"
8790 case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_compile") 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
8804 } && test -s conftest.$ac_objext; then
8805 ac_lo=0 ac_mid=0
8806 while :; do
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h. */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 typedef float ac__type_sizeof_;
8816 main ()
8818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8819 test_array [0] = 0
8822 return 0;
8824 _ACEOF
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8827 case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.$ac_objext; then
8842 ac_hi=$ac_mid; break
8843 else
8844 echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8847 ac_lo=`expr $ac_mid + 1`
8848 if test $ac_lo -le $ac_mid; then
8849 ac_lo= ac_hi=
8850 break
8852 ac_mid=`expr 2 '*' $ac_mid + 1`
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 done
8857 else
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 cat >conftest.$ac_ext <<_ACEOF
8862 /* confdefs.h. */
8863 _ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8867 $ac_includes_default
8868 typedef float ac__type_sizeof_;
8870 main ()
8872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8873 test_array [0] = 0
8876 return 0;
8878 _ACEOF
8879 rm -f conftest.$ac_objext
8880 if { (ac_try="$ac_compile"
8881 case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest.$ac_objext; then
8896 ac_hi=-1 ac_mid=-1
8897 while :; do
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8905 typedef float ac__type_sizeof_;
8907 main ()
8909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8910 test_array [0] = 0
8913 return 0;
8915 _ACEOF
8916 rm -f conftest.$ac_objext
8917 if { (ac_try="$ac_compile"
8918 case "(($ac_try" in
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_compile") 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest.$ac_objext; then
8933 ac_lo=$ac_mid; break
8934 else
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8938 ac_hi=`expr '(' $ac_mid ')' - 1`
8939 if test $ac_mid -le $ac_hi; then
8940 ac_lo= ac_hi=
8941 break
8943 ac_mid=`expr 2 '*' $ac_mid`
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 done
8948 else
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_lo= ac_hi=
8955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 # Binary search between lo and hi bounds.
8960 while test "x$ac_lo" != "x$ac_hi"; do
8961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h. */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968 $ac_includes_default
8969 typedef float ac__type_sizeof_;
8971 main ()
8973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8974 test_array [0] = 0
8977 return 0;
8979 _ACEOF
8980 rm -f conftest.$ac_objext
8981 if { (ac_try="$ac_compile"
8982 case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8985 esac
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_compile") 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } && {
8994 test -z "$ac_c_werror_flag" ||
8995 test ! -s conftest.err
8996 } && test -s conftest.$ac_objext; then
8997 ac_hi=$ac_mid
8998 else
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9002 ac_lo=`expr '(' $ac_mid ')' + 1`
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 done
9007 case $ac_lo in
9008 ?*) ac_cv_sizeof_float=$ac_lo;;
9009 '') if test "$ac_cv_type_float" = yes; then
9010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9011 See \`config.log' for more details." >&5
9012 echo "$as_me: error: cannot compute sizeof (float)
9013 See \`config.log' for more details." >&2;}
9014 { (exit 77); exit 77; }; }
9015 else
9016 ac_cv_sizeof_float=0
9017 fi ;;
9018 esac
9019 else
9020 cat >conftest.$ac_ext <<_ACEOF
9021 /* confdefs.h. */
9022 _ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 $ac_includes_default
9027 typedef float ac__type_sizeof_;
9028 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9029 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9030 #include <stdio.h>
9031 #include <stdlib.h>
9033 main ()
9036 FILE *f = fopen ("conftest.val", "w");
9037 if (! f)
9038 return 1;
9039 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9041 long int i = longval ();
9042 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9043 return 1;
9044 fprintf (f, "%ld\n", i);
9046 else
9048 unsigned long int i = ulongval ();
9049 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9050 return 1;
9051 fprintf (f, "%lu\n", i);
9053 return ferror (f) || fclose (f) != 0;
9056 return 0;
9058 _ACEOF
9059 rm -f conftest$ac_exeext
9060 if { (ac_try="$ac_link"
9061 case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064 esac
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_link") 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9070 { (case "(($ac_try" in
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9073 esac
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_try") 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_cv_sizeof_float=`cat conftest.val`
9080 else
9081 echo "$as_me: program exited with status $ac_status" >&5
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 ( exit $ac_status )
9086 if test "$ac_cv_type_float" = yes; then
9087 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9088 See \`config.log' for more details." >&5
9089 echo "$as_me: error: cannot compute sizeof (float)
9090 See \`config.log' for more details." >&2;}
9091 { (exit 77); exit 77; }; }
9092 else
9093 ac_cv_sizeof_float=0
9096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9098 rm -f conftest.val
9100 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9101 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9105 cat >>confdefs.h <<_ACEOF
9106 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9107 _ACEOF
9110 { echo "$as_me:$LINENO: checking for double" >&5
9111 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9112 if test "${ac_cv_type_double+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115 cat >conftest.$ac_ext <<_ACEOF
9116 /* confdefs.h. */
9117 _ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9121 $ac_includes_default
9122 typedef double ac__type_new_;
9124 main ()
9126 if ((ac__type_new_ *) 0)
9127 return 0;
9128 if (sizeof (ac__type_new_))
9129 return 0;
9131 return 0;
9133 _ACEOF
9134 rm -f conftest.$ac_objext
9135 if { (ac_try="$ac_compile"
9136 case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139 esac
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_compile") 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } && {
9148 test -z "$ac_c_werror_flag" ||
9149 test ! -s conftest.err
9150 } && test -s conftest.$ac_objext; then
9151 ac_cv_type_double=yes
9152 else
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 ac_cv_type_double=no
9159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9162 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9164 # The cast to long int works around a bug in the HP C Compiler
9165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9167 # This bug is HP SR number 8606223364.
9168 { echo "$as_me:$LINENO: checking size of double" >&5
9169 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9170 if test "${ac_cv_sizeof_double+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173 if test "$cross_compiling" = yes; then
9174 # Depending upon the size, compute the lo and hi bounds.
9175 cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h. */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9181 $ac_includes_default
9182 typedef double ac__type_sizeof_;
9184 main ()
9186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9187 test_array [0] = 0
9190 return 0;
9192 _ACEOF
9193 rm -f conftest.$ac_objext
9194 if { (ac_try="$ac_compile"
9195 case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_compile") 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest.$ac_objext; then
9210 ac_lo=0 ac_mid=0
9211 while :; do
9212 cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h. */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 $ac_includes_default
9219 typedef double ac__type_sizeof_;
9221 main ()
9223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9224 test_array [0] = 0
9227 return 0;
9229 _ACEOF
9230 rm -f conftest.$ac_objext
9231 if { (ac_try="$ac_compile"
9232 case "(($ac_try" in
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9235 esac
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_compile") 2>conftest.er1
9238 ac_status=$?
9239 grep -v '^ *+' conftest.er1 >conftest.err
9240 rm -f conftest.er1
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest.$ac_objext; then
9247 ac_hi=$ac_mid; break
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9252 ac_lo=`expr $ac_mid + 1`
9253 if test $ac_lo -le $ac_mid; then
9254 ac_lo= ac_hi=
9255 break
9257 ac_mid=`expr 2 '*' $ac_mid + 1`
9260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9261 done
9262 else
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 cat >conftest.$ac_ext <<_ACEOF
9267 /* confdefs.h. */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9272 $ac_includes_default
9273 typedef double ac__type_sizeof_;
9275 main ()
9277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9278 test_array [0] = 0
9281 return 0;
9283 _ACEOF
9284 rm -f conftest.$ac_objext
9285 if { (ac_try="$ac_compile"
9286 case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9289 esac
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_compile") 2>conftest.er1
9292 ac_status=$?
9293 grep -v '^ *+' conftest.er1 >conftest.err
9294 rm -f conftest.er1
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && {
9298 test -z "$ac_c_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest.$ac_objext; then
9301 ac_hi=-1 ac_mid=-1
9302 while :; do
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9310 typedef double ac__type_sizeof_;
9312 main ()
9314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9315 test_array [0] = 0
9318 return 0;
9320 _ACEOF
9321 rm -f conftest.$ac_objext
9322 if { (ac_try="$ac_compile"
9323 case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326 esac
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_compile") 2>conftest.er1
9329 ac_status=$?
9330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && {
9335 test -z "$ac_c_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest.$ac_objext; then
9338 ac_lo=$ac_mid; break
9339 else
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9343 ac_hi=`expr '(' $ac_mid ')' - 1`
9344 if test $ac_mid -le $ac_hi; then
9345 ac_lo= ac_hi=
9346 break
9348 ac_mid=`expr 2 '*' $ac_mid`
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352 done
9353 else
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9357 ac_lo= ac_hi=
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 # Binary search between lo and hi bounds.
9365 while test "x$ac_lo" != "x$ac_hi"; do
9366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9374 typedef double ac__type_sizeof_;
9376 main ()
9378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9379 test_array [0] = 0
9382 return 0;
9384 _ACEOF
9385 rm -f conftest.$ac_objext
9386 if { (ac_try="$ac_compile"
9387 case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9390 esac
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_compile") 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest.$ac_objext; then
9402 ac_hi=$ac_mid
9403 else
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_lo=`expr '(' $ac_mid ')' + 1`
9410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 done
9412 case $ac_lo in
9413 ?*) ac_cv_sizeof_double=$ac_lo;;
9414 '') if test "$ac_cv_type_double" = yes; then
9415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9416 See \`config.log' for more details." >&5
9417 echo "$as_me: error: cannot compute sizeof (double)
9418 See \`config.log' for more details." >&2;}
9419 { (exit 77); exit 77; }; }
9420 else
9421 ac_cv_sizeof_double=0
9422 fi ;;
9423 esac
9424 else
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 $ac_includes_default
9432 typedef double ac__type_sizeof_;
9433 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9434 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9435 #include <stdio.h>
9436 #include <stdlib.h>
9438 main ()
9441 FILE *f = fopen ("conftest.val", "w");
9442 if (! f)
9443 return 1;
9444 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9446 long int i = longval ();
9447 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9448 return 1;
9449 fprintf (f, "%ld\n", i);
9451 else
9453 unsigned long int i = ulongval ();
9454 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9455 return 1;
9456 fprintf (f, "%lu\n", i);
9458 return ferror (f) || fclose (f) != 0;
9461 return 0;
9463 _ACEOF
9464 rm -f conftest$ac_exeext
9465 if { (ac_try="$ac_link"
9466 case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469 esac
9470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_link") 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9475 { (case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_try") 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_sizeof_double=`cat conftest.val`
9485 else
9486 echo "$as_me: program exited with status $ac_status" >&5
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9490 ( exit $ac_status )
9491 if test "$ac_cv_type_double" = yes; then
9492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9493 See \`config.log' for more details." >&5
9494 echo "$as_me: error: cannot compute sizeof (double)
9495 See \`config.log' for more details." >&2;}
9496 { (exit 77); exit 77; }; }
9497 else
9498 ac_cv_sizeof_double=0
9501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9503 rm -f conftest.val
9505 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9506 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9510 cat >>confdefs.h <<_ACEOF
9511 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9512 _ACEOF
9515 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9516 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9517 if test "${ac_cv_type_fpos_t+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 $ac_includes_default
9527 typedef fpos_t ac__type_new_;
9529 main ()
9531 if ((ac__type_new_ *) 0)
9532 return 0;
9533 if (sizeof (ac__type_new_))
9534 return 0;
9536 return 0;
9538 _ACEOF
9539 rm -f conftest.$ac_objext
9540 if { (ac_try="$ac_compile"
9541 case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_compile") 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest.$ac_objext; then
9556 ac_cv_type_fpos_t=yes
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9561 ac_cv_type_fpos_t=no
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9567 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9569 # The cast to long int works around a bug in the HP C Compiler
9570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9572 # This bug is HP SR number 8606223364.
9573 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9574 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9575 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578 if test "$cross_compiling" = yes; then
9579 # Depending upon the size, compute the lo and hi bounds.
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 $ac_includes_default
9587 typedef fpos_t ac__type_sizeof_;
9589 main ()
9591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9592 test_array [0] = 0
9595 return 0;
9597 _ACEOF
9598 rm -f conftest.$ac_objext
9599 if { (ac_try="$ac_compile"
9600 case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_compile") 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest.$ac_objext; then
9615 ac_lo=0 ac_mid=0
9616 while :; do
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h. */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 $ac_includes_default
9624 typedef fpos_t ac__type_sizeof_;
9626 main ()
9628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9629 test_array [0] = 0
9632 return 0;
9634 _ACEOF
9635 rm -f conftest.$ac_objext
9636 if { (ac_try="$ac_compile"
9637 case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_compile") 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest.$ac_objext; then
9652 ac_hi=$ac_mid; break
9653 else
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 ac_lo=`expr $ac_mid + 1`
9658 if test $ac_lo -le $ac_mid; then
9659 ac_lo= ac_hi=
9660 break
9662 ac_mid=`expr 2 '*' $ac_mid + 1`
9665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 done
9667 else
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h. */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 $ac_includes_default
9678 typedef fpos_t ac__type_sizeof_;
9680 main ()
9682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9683 test_array [0] = 0
9686 return 0;
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (ac_try="$ac_compile"
9691 case "(($ac_try" in
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9694 esac
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_compile") 2>conftest.er1
9697 ac_status=$?
9698 grep -v '^ *+' conftest.er1 >conftest.err
9699 rm -f conftest.er1
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } && {
9703 test -z "$ac_c_werror_flag" ||
9704 test ! -s conftest.err
9705 } && test -s conftest.$ac_objext; then
9706 ac_hi=-1 ac_mid=-1
9707 while :; do
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h. */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 $ac_includes_default
9715 typedef fpos_t ac__type_sizeof_;
9717 main ()
9719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9720 test_array [0] = 0
9723 return 0;
9725 _ACEOF
9726 rm -f conftest.$ac_objext
9727 if { (ac_try="$ac_compile"
9728 case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731 esac
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_compile") 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } && {
9740 test -z "$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9742 } && test -s conftest.$ac_objext; then
9743 ac_lo=$ac_mid; break
9744 else
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9748 ac_hi=`expr '(' $ac_mid ')' - 1`
9749 if test $ac_mid -le $ac_hi; then
9750 ac_lo= ac_hi=
9751 break
9753 ac_mid=`expr 2 '*' $ac_mid`
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 done
9758 else
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 ac_lo= ac_hi=
9765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769 # Binary search between lo and hi bounds.
9770 while test "x$ac_lo" != "x$ac_hi"; do
9771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h. */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 $ac_includes_default
9779 typedef fpos_t ac__type_sizeof_;
9781 main ()
9783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9784 test_array [0] = 0
9787 return 0;
9789 _ACEOF
9790 rm -f conftest.$ac_objext
9791 if { (ac_try="$ac_compile"
9792 case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795 esac
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_compile") 2>conftest.er1
9798 ac_status=$?
9799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest.$ac_objext; then
9807 ac_hi=$ac_mid
9808 else
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_lo=`expr '(' $ac_mid ')' + 1`
9815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816 done
9817 case $ac_lo in
9818 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9819 '') if test "$ac_cv_type_fpos_t" = yes; then
9820 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9821 See \`config.log' for more details." >&5
9822 echo "$as_me: error: cannot compute sizeof (fpos_t)
9823 See \`config.log' for more details." >&2;}
9824 { (exit 77); exit 77; }; }
9825 else
9826 ac_cv_sizeof_fpos_t=0
9827 fi ;;
9828 esac
9829 else
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 $ac_includes_default
9837 typedef fpos_t ac__type_sizeof_;
9838 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9839 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9840 #include <stdio.h>
9841 #include <stdlib.h>
9843 main ()
9846 FILE *f = fopen ("conftest.val", "w");
9847 if (! f)
9848 return 1;
9849 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9851 long int i = longval ();
9852 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9853 return 1;
9854 fprintf (f, "%ld\n", i);
9856 else
9858 unsigned long int i = ulongval ();
9859 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9860 return 1;
9861 fprintf (f, "%lu\n", i);
9863 return ferror (f) || fclose (f) != 0;
9866 return 0;
9868 _ACEOF
9869 rm -f conftest$ac_exeext
9870 if { (ac_try="$ac_link"
9871 case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_link") 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_sizeof_fpos_t=`cat conftest.val`
9890 else
9891 echo "$as_me: program exited with status $ac_status" >&5
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 ( exit $ac_status )
9896 if test "$ac_cv_type_fpos_t" = yes; then
9897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9898 See \`config.log' for more details." >&5
9899 echo "$as_me: error: cannot compute sizeof (fpos_t)
9900 See \`config.log' for more details." >&2;}
9901 { (exit 77); exit 77; }; }
9902 else
9903 ac_cv_sizeof_fpos_t=0
9906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9908 rm -f conftest.val
9910 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9911 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9915 cat >>confdefs.h <<_ACEOF
9916 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9917 _ACEOF
9920 { echo "$as_me:$LINENO: checking for size_t" >&5
9921 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9922 if test "${ac_cv_type_size_t+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 $ac_includes_default
9932 typedef size_t ac__type_new_;
9934 main ()
9936 if ((ac__type_new_ *) 0)
9937 return 0;
9938 if (sizeof (ac__type_new_))
9939 return 0;
9941 return 0;
9943 _ACEOF
9944 rm -f conftest.$ac_objext
9945 if { (ac_try="$ac_compile"
9946 case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9949 esac
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_compile") 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } && {
9958 test -z "$ac_c_werror_flag" ||
9959 test ! -s conftest.err
9960 } && test -s conftest.$ac_objext; then
9961 ac_cv_type_size_t=yes
9962 else
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9966 ac_cv_type_size_t=no
9969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9971 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9972 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9974 # The cast to long int works around a bug in the HP C Compiler
9975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9977 # This bug is HP SR number 8606223364.
9978 { echo "$as_me:$LINENO: checking size of size_t" >&5
9979 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9980 if test "${ac_cv_sizeof_size_t+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983 if test "$cross_compiling" = yes; then
9984 # Depending upon the size, compute the lo and hi bounds.
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h. */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 $ac_includes_default
9992 typedef size_t ac__type_sizeof_;
9994 main ()
9996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9997 test_array [0] = 0
10000 return 0;
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
10020 ac_lo=0 ac_mid=0
10021 while :; do
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 $ac_includes_default
10029 typedef size_t ac__type_sizeof_;
10031 main ()
10033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10034 test_array [0] = 0
10037 return 0;
10039 _ACEOF
10040 rm -f conftest.$ac_objext
10041 if { (ac_try="$ac_compile"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_compile") 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest.$ac_objext; then
10057 ac_hi=$ac_mid; break
10058 else
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10062 ac_lo=`expr $ac_mid + 1`
10063 if test $ac_lo -le $ac_mid; then
10064 ac_lo= ac_hi=
10065 break
10067 ac_mid=`expr 2 '*' $ac_mid + 1`
10070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 done
10072 else
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 $ac_includes_default
10083 typedef size_t ac__type_sizeof_;
10085 main ()
10087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10088 test_array [0] = 0
10091 return 0;
10093 _ACEOF
10094 rm -f conftest.$ac_objext
10095 if { (ac_try="$ac_compile"
10096 case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_compile") 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest.$ac_objext; then
10111 ac_hi=-1 ac_mid=-1
10112 while :; do
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h. */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 $ac_includes_default
10120 typedef size_t ac__type_sizeof_;
10122 main ()
10124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10125 test_array [0] = 0
10128 return 0;
10130 _ACEOF
10131 rm -f conftest.$ac_objext
10132 if { (ac_try="$ac_compile"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_compile") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.$ac_objext; then
10148 ac_lo=$ac_mid; break
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_hi=`expr '(' $ac_mid ')' - 1`
10154 if test $ac_mid -le $ac_hi; then
10155 ac_lo= ac_hi=
10156 break
10158 ac_mid=`expr 2 '*' $ac_mid`
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162 done
10163 else
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_lo= ac_hi=
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10174 # Binary search between lo and hi bounds.
10175 while test "x$ac_lo" != "x$ac_hi"; do
10176 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h. */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 $ac_includes_default
10184 typedef size_t ac__type_sizeof_;
10186 main ()
10188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10189 test_array [0] = 0
10192 return 0;
10194 _ACEOF
10195 rm -f conftest.$ac_objext
10196 if { (ac_try="$ac_compile"
10197 case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200 esac
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_compile") 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && {
10209 test -z "$ac_c_werror_flag" ||
10210 test ! -s conftest.err
10211 } && test -s conftest.$ac_objext; then
10212 ac_hi=$ac_mid
10213 else
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_lo=`expr '(' $ac_mid ')' + 1`
10220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10221 done
10222 case $ac_lo in
10223 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10224 '') if test "$ac_cv_type_size_t" = yes; then
10225 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10226 See \`config.log' for more details." >&5
10227 echo "$as_me: error: cannot compute sizeof (size_t)
10228 See \`config.log' for more details." >&2;}
10229 { (exit 77); exit 77; }; }
10230 else
10231 ac_cv_sizeof_size_t=0
10232 fi ;;
10233 esac
10234 else
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 $ac_includes_default
10242 typedef size_t ac__type_sizeof_;
10243 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10244 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10245 #include <stdio.h>
10246 #include <stdlib.h>
10248 main ()
10251 FILE *f = fopen ("conftest.val", "w");
10252 if (! f)
10253 return 1;
10254 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10256 long int i = longval ();
10257 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10258 return 1;
10259 fprintf (f, "%ld\n", i);
10261 else
10263 unsigned long int i = ulongval ();
10264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10265 return 1;
10266 fprintf (f, "%lu\n", i);
10268 return ferror (f) || fclose (f) != 0;
10271 return 0;
10273 _ACEOF
10274 rm -f conftest$ac_exeext
10275 if { (ac_try="$ac_link"
10276 case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279 esac
10280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10281 (eval "$ac_link") 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; }; then
10294 ac_cv_sizeof_size_t=`cat conftest.val`
10295 else
10296 echo "$as_me: program exited with status $ac_status" >&5
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10300 ( exit $ac_status )
10301 if test "$ac_cv_type_size_t" = yes; then
10302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10303 See \`config.log' for more details." >&5
10304 echo "$as_me: error: cannot compute sizeof (size_t)
10305 See \`config.log' for more details." >&2;}
10306 { (exit 77); exit 77; }; }
10307 else
10308 ac_cv_sizeof_size_t=0
10311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10313 rm -f conftest.val
10315 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10316 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10320 cat >>confdefs.h <<_ACEOF
10321 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10322 _ACEOF
10325 { echo "$as_me:$LINENO: checking for pid_t" >&5
10326 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10327 if test "${ac_cv_type_pid_t+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330 cat >conftest.$ac_ext <<_ACEOF
10331 /* confdefs.h. */
10332 _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336 $ac_includes_default
10337 typedef pid_t ac__type_new_;
10339 main ()
10341 if ((ac__type_new_ *) 0)
10342 return 0;
10343 if (sizeof (ac__type_new_))
10344 return 0;
10346 return 0;
10348 _ACEOF
10349 rm -f conftest.$ac_objext
10350 if { (ac_try="$ac_compile"
10351 case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_compile") 2>conftest.er1
10357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && {
10363 test -z "$ac_c_werror_flag" ||
10364 test ! -s conftest.err
10365 } && test -s conftest.$ac_objext; then
10366 ac_cv_type_pid_t=yes
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 ac_cv_type_pid_t=no
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10377 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10379 # The cast to long int works around a bug in the HP C Compiler
10380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10382 # This bug is HP SR number 8606223364.
10383 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10384 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10385 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388 if test "$cross_compiling" = yes; then
10389 # Depending upon the size, compute the lo and hi bounds.
10390 cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h. */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 $ac_includes_default
10397 typedef pid_t ac__type_sizeof_;
10399 main ()
10401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10402 test_array [0] = 0
10405 return 0;
10407 _ACEOF
10408 rm -f conftest.$ac_objext
10409 if { (ac_try="$ac_compile"
10410 case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_compile") 2>conftest.er1
10416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && {
10422 test -z "$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 } && test -s conftest.$ac_objext; then
10425 ac_lo=0 ac_mid=0
10426 while :; do
10427 cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h. */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 $ac_includes_default
10434 typedef pid_t ac__type_sizeof_;
10436 main ()
10438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10439 test_array [0] = 0
10442 return 0;
10444 _ACEOF
10445 rm -f conftest.$ac_objext
10446 if { (ac_try="$ac_compile"
10447 case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10450 esac
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_compile") 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && {
10459 test -z "$ac_c_werror_flag" ||
10460 test ! -s conftest.err
10461 } && test -s conftest.$ac_objext; then
10462 ac_hi=$ac_mid; break
10463 else
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 ac_lo=`expr $ac_mid + 1`
10468 if test $ac_lo -le $ac_mid; then
10469 ac_lo= ac_hi=
10470 break
10472 ac_mid=`expr 2 '*' $ac_mid + 1`
10475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 done
10477 else
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 $ac_includes_default
10488 typedef pid_t ac__type_sizeof_;
10490 main ()
10492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10493 test_array [0] = 0
10496 return 0;
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (ac_try="$ac_compile"
10501 case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10504 esac
10505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506 (eval "$ac_compile") 2>conftest.er1
10507 ac_status=$?
10508 grep -v '^ *+' conftest.er1 >conftest.err
10509 rm -f conftest.er1
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } && {
10513 test -z "$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10515 } && test -s conftest.$ac_objext; then
10516 ac_hi=-1 ac_mid=-1
10517 while :; do
10518 cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h. */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 $ac_includes_default
10525 typedef pid_t ac__type_sizeof_;
10527 main ()
10529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10530 test_array [0] = 0
10533 return 0;
10535 _ACEOF
10536 rm -f conftest.$ac_objext
10537 if { (ac_try="$ac_compile"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_compile") 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && {
10550 test -z "$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 } && test -s conftest.$ac_objext; then
10553 ac_lo=$ac_mid; break
10554 else
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 ac_hi=`expr '(' $ac_mid ')' - 1`
10559 if test $ac_mid -le $ac_hi; then
10560 ac_lo= ac_hi=
10561 break
10563 ac_mid=`expr 2 '*' $ac_mid`
10566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567 done
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_lo= ac_hi=
10575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579 # Binary search between lo and hi bounds.
10580 while test "x$ac_lo" != "x$ac_hi"; do
10581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 $ac_includes_default
10589 typedef pid_t ac__type_sizeof_;
10591 main ()
10593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10594 test_array [0] = 0
10597 return 0;
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest.$ac_objext; then
10617 ac_hi=$ac_mid
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_lo=`expr '(' $ac_mid ')' + 1`
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626 done
10627 case $ac_lo in
10628 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10629 '') if test "$ac_cv_type_pid_t" = yes; then
10630 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10631 See \`config.log' for more details." >&5
10632 echo "$as_me: error: cannot compute sizeof (pid_t)
10633 See \`config.log' for more details." >&2;}
10634 { (exit 77); exit 77; }; }
10635 else
10636 ac_cv_sizeof_pid_t=0
10637 fi ;;
10638 esac
10639 else
10640 cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h. */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 $ac_includes_default
10647 typedef pid_t ac__type_sizeof_;
10648 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10649 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10650 #include <stdio.h>
10651 #include <stdlib.h>
10653 main ()
10656 FILE *f = fopen ("conftest.val", "w");
10657 if (! f)
10658 return 1;
10659 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10661 long int i = longval ();
10662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10663 return 1;
10664 fprintf (f, "%ld\n", i);
10666 else
10668 unsigned long int i = ulongval ();
10669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10670 return 1;
10671 fprintf (f, "%lu\n", i);
10673 return ferror (f) || fclose (f) != 0;
10676 return 0;
10678 _ACEOF
10679 rm -f conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10684 esac
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_link") 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10690 { (case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_try") 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 ac_cv_sizeof_pid_t=`cat conftest.val`
10700 else
10701 echo "$as_me: program exited with status $ac_status" >&5
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 ( exit $ac_status )
10706 if test "$ac_cv_type_pid_t" = yes; then
10707 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10708 See \`config.log' for more details." >&5
10709 echo "$as_me: error: cannot compute sizeof (pid_t)
10710 See \`config.log' for more details." >&2;}
10711 { (exit 77); exit 77; }; }
10712 else
10713 ac_cv_sizeof_pid_t=0
10716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10718 rm -f conftest.val
10720 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10721 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10725 cat >>confdefs.h <<_ACEOF
10726 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10727 _ACEOF
10731 { echo "$as_me:$LINENO: checking for long long support" >&5
10732 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10733 have_long_long=no
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10742 main ()
10744 long long x; x = (long long)0;
10746 return 0;
10748 _ACEOF
10749 rm -f conftest.$ac_objext
10750 if { (ac_try="$ac_compile"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754 esac
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_compile") 2>conftest.er1
10757 ac_status=$?
10758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest.$ac_objext; then
10768 cat >>confdefs.h <<\_ACEOF
10769 #define HAVE_LONG_LONG 1
10770 _ACEOF
10772 have_long_long=yes
10774 else
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10783 echo "${ECHO_T}$have_long_long" >&6; }
10784 if test "$have_long_long" = yes ; then
10785 { echo "$as_me:$LINENO: checking for long long" >&5
10786 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10787 if test "${ac_cv_type_long_long+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790 cat >conftest.$ac_ext <<_ACEOF
10791 /* confdefs.h. */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796 $ac_includes_default
10797 typedef long long ac__type_new_;
10799 main ()
10801 if ((ac__type_new_ *) 0)
10802 return 0;
10803 if (sizeof (ac__type_new_))
10804 return 0;
10806 return 0;
10808 _ACEOF
10809 rm -f conftest.$ac_objext
10810 if { (ac_try="$ac_compile"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_compile") 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && {
10823 test -z "$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 } && test -s conftest.$ac_objext; then
10826 ac_cv_type_long_long=yes
10827 else
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10831 ac_cv_type_long_long=no
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10837 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10839 # The cast to long int works around a bug in the HP C Compiler
10840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10842 # This bug is HP SR number 8606223364.
10843 { echo "$as_me:$LINENO: checking size of long long" >&5
10844 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10845 if test "${ac_cv_sizeof_long_long+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848 if test "$cross_compiling" = yes; then
10849 # Depending upon the size, compute the lo and hi bounds.
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h. */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 $ac_includes_default
10857 typedef long long ac__type_sizeof_;
10859 main ()
10861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10862 test_array [0] = 0
10865 return 0;
10867 _ACEOF
10868 rm -f conftest.$ac_objext
10869 if { (ac_try="$ac_compile"
10870 case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_compile") 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest.$ac_objext; then
10885 ac_lo=0 ac_mid=0
10886 while :; do
10887 cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h. */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893 $ac_includes_default
10894 typedef long long ac__type_sizeof_;
10896 main ()
10898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10899 test_array [0] = 0
10902 return 0;
10904 _ACEOF
10905 rm -f conftest.$ac_objext
10906 if { (ac_try="$ac_compile"
10907 case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910 esac
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_compile") 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } && {
10919 test -z "$ac_c_werror_flag" ||
10920 test ! -s conftest.err
10921 } && test -s conftest.$ac_objext; then
10922 ac_hi=$ac_mid; break
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 ac_lo=`expr $ac_mid + 1`
10928 if test $ac_lo -le $ac_mid; then
10929 ac_lo= ac_hi=
10930 break
10932 ac_mid=`expr 2 '*' $ac_mid + 1`
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 done
10937 else
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 $ac_includes_default
10948 typedef long long ac__type_sizeof_;
10950 main ()
10952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10953 test_array [0] = 0
10956 return 0;
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (ac_try="$ac_compile"
10961 case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest.$ac_objext; then
10976 ac_hi=-1 ac_mid=-1
10977 while :; do
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 $ac_includes_default
10985 typedef long long ac__type_sizeof_;
10987 main ()
10989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10990 test_array [0] = 0
10993 return 0;
10995 _ACEOF
10996 rm -f conftest.$ac_objext
10997 if { (ac_try="$ac_compile"
10998 case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_compile") 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest.$ac_objext; then
11013 ac_lo=$ac_mid; break
11014 else
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 ac_hi=`expr '(' $ac_mid ')' - 1`
11019 if test $ac_mid -le $ac_hi; then
11020 ac_lo= ac_hi=
11021 break
11023 ac_mid=`expr 2 '*' $ac_mid`
11026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11027 done
11028 else
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_lo= ac_hi=
11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11039 # Binary search between lo and hi bounds.
11040 while test "x$ac_lo" != "x$ac_hi"; do
11041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 $ac_includes_default
11049 typedef long long ac__type_sizeof_;
11051 main ()
11053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11054 test_array [0] = 0
11057 return 0;
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest.$ac_objext; then
11077 ac_hi=$ac_mid
11078 else
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 ac_lo=`expr '(' $ac_mid ')' + 1`
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11086 done
11087 case $ac_lo in
11088 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11089 '') if test "$ac_cv_type_long_long" = yes; then
11090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11091 See \`config.log' for more details." >&5
11092 echo "$as_me: error: cannot compute sizeof (long long)
11093 See \`config.log' for more details." >&2;}
11094 { (exit 77); exit 77; }; }
11095 else
11096 ac_cv_sizeof_long_long=0
11097 fi ;;
11098 esac
11099 else
11100 cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h. */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 $ac_includes_default
11107 typedef long long ac__type_sizeof_;
11108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11110 #include <stdio.h>
11111 #include <stdlib.h>
11113 main ()
11116 FILE *f = fopen ("conftest.val", "w");
11117 if (! f)
11118 return 1;
11119 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11121 long int i = longval ();
11122 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11123 return 1;
11124 fprintf (f, "%ld\n", i);
11126 else
11128 unsigned long int i = ulongval ();
11129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11130 return 1;
11131 fprintf (f, "%lu\n", i);
11133 return ferror (f) || fclose (f) != 0;
11136 return 0;
11138 _ACEOF
11139 rm -f conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_cv_sizeof_long_long=`cat conftest.val`
11160 else
11161 echo "$as_me: program exited with status $ac_status" >&5
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 ( exit $ac_status )
11166 if test "$ac_cv_type_long_long" = yes; then
11167 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11168 See \`config.log' for more details." >&5
11169 echo "$as_me: error: cannot compute sizeof (long long)
11170 See \`config.log' for more details." >&2;}
11171 { (exit 77); exit 77; }; }
11172 else
11173 ac_cv_sizeof_long_long=0
11176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11178 rm -f conftest.val
11180 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11181 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11185 cat >>confdefs.h <<_ACEOF
11186 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11187 _ACEOF
11192 { echo "$as_me:$LINENO: checking for long double support" >&5
11193 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11194 have_long_double=no
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h. */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11203 main ()
11205 long double x; x = (long double)0.;
11207 return 0;
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (ac_try="$ac_compile"
11212 case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11215 esac
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_compile") 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && {
11224 test -z "$ac_c_werror_flag" ||
11225 test ! -s conftest.err
11226 } && test -s conftest.$ac_objext; then
11229 cat >>confdefs.h <<\_ACEOF
11230 #define HAVE_LONG_DOUBLE 1
11231 _ACEOF
11233 have_long_double=yes
11235 else
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11244 echo "${ECHO_T}$have_long_double" >&6; }
11245 if test "$have_long_double" = yes ; then
11246 { echo "$as_me:$LINENO: checking for long double" >&5
11247 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11248 if test "${ac_cv_type_long_double+set}" = set; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h. */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 $ac_includes_default
11258 typedef long double ac__type_new_;
11260 main ()
11262 if ((ac__type_new_ *) 0)
11263 return 0;
11264 if (sizeof (ac__type_new_))
11265 return 0;
11267 return 0;
11269 _ACEOF
11270 rm -f conftest.$ac_objext
11271 if { (ac_try="$ac_compile"
11272 case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11275 esac
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_compile") 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } && {
11284 test -z "$ac_c_werror_flag" ||
11285 test ! -s conftest.err
11286 } && test -s conftest.$ac_objext; then
11287 ac_cv_type_long_double=yes
11288 else
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 ac_cv_type_long_double=no
11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11298 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11300 # The cast to long int works around a bug in the HP C Compiler
11301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11303 # This bug is HP SR number 8606223364.
11304 { echo "$as_me:$LINENO: checking size of long double" >&5
11305 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11306 if test "${ac_cv_sizeof_long_double+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309 if test "$cross_compiling" = yes; then
11310 # Depending upon the size, compute the lo and hi bounds.
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11318 typedef long double ac__type_sizeof_;
11320 main ()
11322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11323 test_array [0] = 0
11326 return 0;
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (ac_try="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest.$ac_objext; then
11346 ac_lo=0 ac_mid=0
11347 while :; do
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h. */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 $ac_includes_default
11355 typedef long double ac__type_sizeof_;
11357 main ()
11359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11360 test_array [0] = 0
11363 return 0;
11365 _ACEOF
11366 rm -f conftest.$ac_objext
11367 if { (ac_try="$ac_compile"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_compile") 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } && {
11380 test -z "$ac_c_werror_flag" ||
11381 test ! -s conftest.err
11382 } && test -s conftest.$ac_objext; then
11383 ac_hi=$ac_mid; break
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 ac_lo=`expr $ac_mid + 1`
11389 if test $ac_lo -le $ac_mid; then
11390 ac_lo= ac_hi=
11391 break
11393 ac_mid=`expr 2 '*' $ac_mid + 1`
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 done
11398 else
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h. */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 $ac_includes_default
11409 typedef long double ac__type_sizeof_;
11411 main ()
11413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11414 test_array [0] = 0
11417 return 0;
11419 _ACEOF
11420 rm -f conftest.$ac_objext
11421 if { (ac_try="$ac_compile"
11422 case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest.$ac_objext; then
11437 ac_hi=-1 ac_mid=-1
11438 while :; do
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 $ac_includes_default
11446 typedef long double ac__type_sizeof_;
11448 main ()
11450 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11451 test_array [0] = 0
11454 return 0;
11456 _ACEOF
11457 rm -f conftest.$ac_objext
11458 if { (ac_try="$ac_compile"
11459 case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462 esac
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_compile") 2>conftest.er1
11465 ac_status=$?
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest.$ac_objext; then
11474 ac_lo=$ac_mid; break
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11479 ac_hi=`expr '(' $ac_mid ')' - 1`
11480 if test $ac_mid -le $ac_hi; then
11481 ac_lo= ac_hi=
11482 break
11484 ac_mid=`expr 2 '*' $ac_mid`
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11488 done
11489 else
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11493 ac_lo= ac_hi=
11496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 # Binary search between lo and hi bounds.
11501 while test "x$ac_lo" != "x$ac_hi"; do
11502 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 $ac_includes_default
11510 typedef long double ac__type_sizeof_;
11512 main ()
11514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11515 test_array [0] = 0
11518 return 0;
11520 _ACEOF
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11538 ac_hi=$ac_mid
11539 else
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_lo=`expr '(' $ac_mid ')' + 1`
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 done
11548 case $ac_lo in
11549 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11550 '') if test "$ac_cv_type_long_double" = yes; then
11551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11552 See \`config.log' for more details." >&5
11553 echo "$as_me: error: cannot compute sizeof (long double)
11554 See \`config.log' for more details." >&2;}
11555 { (exit 77); exit 77; }; }
11556 else
11557 ac_cv_sizeof_long_double=0
11558 fi ;;
11559 esac
11560 else
11561 cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h. */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 $ac_includes_default
11568 typedef long double ac__type_sizeof_;
11569 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11570 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11571 #include <stdio.h>
11572 #include <stdlib.h>
11574 main ()
11577 FILE *f = fopen ("conftest.val", "w");
11578 if (! f)
11579 return 1;
11580 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11582 long int i = longval ();
11583 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11584 return 1;
11585 fprintf (f, "%ld\n", i);
11587 else
11589 unsigned long int i = ulongval ();
11590 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11591 return 1;
11592 fprintf (f, "%lu\n", i);
11594 return ferror (f) || fclose (f) != 0;
11597 return 0;
11599 _ACEOF
11600 rm -f conftest$ac_exeext
11601 if { (ac_try="$ac_link"
11602 case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605 esac
11606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_link") 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11611 { (case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11614 esac
11615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11616 (eval "$ac_try") 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 ac_cv_sizeof_long_double=`cat conftest.val`
11621 else
11622 echo "$as_me: program exited with status $ac_status" >&5
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 ( exit $ac_status )
11627 if test "$ac_cv_type_long_double" = yes; then
11628 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11629 See \`config.log' for more details." >&5
11630 echo "$as_me: error: cannot compute sizeof (long double)
11631 See \`config.log' for more details." >&2;}
11632 { (exit 77); exit 77; }; }
11633 else
11634 ac_cv_sizeof_long_double=0
11637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11639 rm -f conftest.val
11641 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11642 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11646 cat >>confdefs.h <<_ACEOF
11647 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11648 _ACEOF
11653 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11654 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11655 have_c99_bool=no
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h. */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11664 main ()
11666 _Bool x; x = (_Bool)0;
11668 return 0;
11670 _ACEOF
11671 rm -f conftest.$ac_objext
11672 if { (ac_try="$ac_compile"
11673 case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_compile") 2>conftest.er1
11679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest.$ac_objext; then
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE_C99_BOOL 1
11692 _ACEOF
11694 have_c99_bool=yes
11696 else
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11704 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11705 echo "${ECHO_T}$have_c99_bool" >&6; }
11706 if test "$have_c99_bool" = yes ; then
11707 { echo "$as_me:$LINENO: checking for _Bool" >&5
11708 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11709 if test "${ac_cv_type__Bool+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712 cat >conftest.$ac_ext <<_ACEOF
11713 /* confdefs.h. */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11718 $ac_includes_default
11719 typedef _Bool ac__type_new_;
11721 main ()
11723 if ((ac__type_new_ *) 0)
11724 return 0;
11725 if (sizeof (ac__type_new_))
11726 return 0;
11728 return 0;
11730 _ACEOF
11731 rm -f conftest.$ac_objext
11732 if { (ac_try="$ac_compile"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_compile") 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest.$ac_objext; then
11748 ac_cv_type__Bool=yes
11749 else
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ac_cv_type__Bool=no
11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11759 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11761 # The cast to long int works around a bug in the HP C Compiler
11762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11764 # This bug is HP SR number 8606223364.
11765 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11766 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11767 if test "${ac_cv_sizeof__Bool+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770 if test "$cross_compiling" = yes; then
11771 # Depending upon the size, compute the lo and hi bounds.
11772 cat >conftest.$ac_ext <<_ACEOF
11773 /* confdefs.h. */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 $ac_includes_default
11779 typedef _Bool ac__type_sizeof_;
11781 main ()
11783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11784 test_array [0] = 0
11787 return 0;
11789 _ACEOF
11790 rm -f conftest.$ac_objext
11791 if { (ac_try="$ac_compile"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_compile") 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } && {
11804 test -z "$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 } && test -s conftest.$ac_objext; then
11807 ac_lo=0 ac_mid=0
11808 while :; do
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 typedef _Bool ac__type_sizeof_;
11818 main ()
11820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11821 test_array [0] = 0
11824 return 0;
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (ac_try="$ac_compile"
11829 case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_hi=$ac_mid; break
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_lo=`expr $ac_mid + 1`
11850 if test $ac_lo -le $ac_mid; then
11851 ac_lo= ac_hi=
11852 break
11854 ac_mid=`expr 2 '*' $ac_mid + 1`
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 done
11859 else
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 $ac_includes_default
11870 typedef _Bool ac__type_sizeof_;
11872 main ()
11874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11875 test_array [0] = 0
11878 return 0;
11880 _ACEOF
11881 rm -f conftest.$ac_objext
11882 if { (ac_try="$ac_compile"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_compile") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest.$ac_objext; then
11898 ac_hi=-1 ac_mid=-1
11899 while :; do
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 $ac_includes_default
11907 typedef _Bool ac__type_sizeof_;
11909 main ()
11911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11912 test_array [0] = 0
11915 return 0;
11917 _ACEOF
11918 rm -f conftest.$ac_objext
11919 if { (ac_try="$ac_compile"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_compile") 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest.$ac_objext; then
11935 ac_lo=$ac_mid; break
11936 else
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ac_hi=`expr '(' $ac_mid ')' - 1`
11941 if test $ac_mid -le $ac_hi; then
11942 ac_lo= ac_hi=
11943 break
11945 ac_mid=`expr 2 '*' $ac_mid`
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 done
11950 else
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 ac_lo= ac_hi=
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 # Binary search between lo and hi bounds.
11962 while test "x$ac_lo" != "x$ac_hi"; do
11963 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11964 cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h. */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 $ac_includes_default
11971 typedef _Bool ac__type_sizeof_;
11973 main ()
11975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11976 test_array [0] = 0
11979 return 0;
11981 _ACEOF
11982 rm -f conftest.$ac_objext
11983 if { (ac_try="$ac_compile"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_compile") 2>conftest.er1
11990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest.$ac_objext; then
11999 ac_hi=$ac_mid
12000 else
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 ac_lo=`expr '(' $ac_mid ')' + 1`
12007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12008 done
12009 case $ac_lo in
12010 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12011 '') if test "$ac_cv_type__Bool" = yes; then
12012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12013 See \`config.log' for more details." >&5
12014 echo "$as_me: error: cannot compute sizeof (_Bool)
12015 See \`config.log' for more details." >&2;}
12016 { (exit 77); exit 77; }; }
12017 else
12018 ac_cv_sizeof__Bool=0
12019 fi ;;
12020 esac
12021 else
12022 cat >conftest.$ac_ext <<_ACEOF
12023 /* confdefs.h. */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 $ac_includes_default
12029 typedef _Bool ac__type_sizeof_;
12030 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12031 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12032 #include <stdio.h>
12033 #include <stdlib.h>
12035 main ()
12038 FILE *f = fopen ("conftest.val", "w");
12039 if (! f)
12040 return 1;
12041 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12043 long int i = longval ();
12044 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12045 return 1;
12046 fprintf (f, "%ld\n", i);
12048 else
12050 unsigned long int i = ulongval ();
12051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12052 return 1;
12053 fprintf (f, "%lu\n", i);
12055 return ferror (f) || fclose (f) != 0;
12058 return 0;
12060 _ACEOF
12061 rm -f conftest$ac_exeext
12062 if { (ac_try="$ac_link"
12063 case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066 esac
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_link") 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12072 { (case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_try") 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_sizeof__Bool=`cat conftest.val`
12082 else
12083 echo "$as_me: program exited with status $ac_status" >&5
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ( exit $ac_status )
12088 if test "$ac_cv_type__Bool" = yes; then
12089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12090 See \`config.log' for more details." >&5
12091 echo "$as_me: error: cannot compute sizeof (_Bool)
12092 See \`config.log' for more details." >&2;}
12093 { (exit 77); exit 77; }; }
12094 else
12095 ac_cv_sizeof__Bool=0
12098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12100 rm -f conftest.val
12102 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12103 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12107 cat >>confdefs.h <<_ACEOF
12108 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12109 _ACEOF
12114 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12115 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12116 if test "${ac_cv_type_uintptr_t+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 #ifdef HAVE_STDINT_H
12126 #include <stdint.h>
12127 #endif
12129 typedef uintptr_t ac__type_new_;
12131 main ()
12133 if ((ac__type_new_ *) 0)
12134 return 0;
12135 if (sizeof (ac__type_new_))
12136 return 0;
12138 return 0;
12140 _ACEOF
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_compile") 2>conftest.er1
12149 ac_status=$?
12150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } && {
12155 test -z "$ac_c_werror_flag" ||
12156 test ! -s conftest.err
12157 } && test -s conftest.$ac_objext; then
12158 ac_cv_type_uintptr_t=yes
12159 else
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12163 ac_cv_type_uintptr_t=no
12166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12169 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12170 if test $ac_cv_type_uintptr_t = yes; then
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_UINTPTR_T 1
12174 _ACEOF
12176 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12177 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12178 if test "${ac_cv_type_uintptr_t+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12188 typedef uintptr_t ac__type_new_;
12190 main ()
12192 if ((ac__type_new_ *) 0)
12193 return 0;
12194 if (sizeof (ac__type_new_))
12195 return 0;
12197 return 0;
12199 _ACEOF
12200 rm -f conftest.$ac_objext
12201 if { (ac_try="$ac_compile"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_compile") 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest.$ac_objext; then
12217 ac_cv_type_uintptr_t=yes
12218 else
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_cv_type_uintptr_t=no
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12228 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12230 # The cast to long int works around a bug in the HP C Compiler
12231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12233 # This bug is HP SR number 8606223364.
12234 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12235 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12236 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 if test "$cross_compiling" = yes; then
12240 # Depending upon the size, compute the lo and hi bounds.
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 $ac_includes_default
12248 typedef uintptr_t ac__type_sizeof_;
12250 main ()
12252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12253 test_array [0] = 0
12256 return 0;
12258 _ACEOF
12259 rm -f conftest.$ac_objext
12260 if { (ac_try="$ac_compile"
12261 case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_compile") 2>conftest.er1
12267 ac_status=$?
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } && {
12273 test -z "$ac_c_werror_flag" ||
12274 test ! -s conftest.err
12275 } && test -s conftest.$ac_objext; then
12276 ac_lo=0 ac_mid=0
12277 while :; do
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h. */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 $ac_includes_default
12285 typedef uintptr_t ac__type_sizeof_;
12287 main ()
12289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12290 test_array [0] = 0
12293 return 0;
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_compile") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest.$ac_objext; then
12313 ac_hi=$ac_mid; break
12314 else
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 ac_lo=`expr $ac_mid + 1`
12319 if test $ac_lo -le $ac_mid; then
12320 ac_lo= ac_hi=
12321 break
12323 ac_mid=`expr 2 '*' $ac_mid + 1`
12326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12327 done
12328 else
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 $ac_includes_default
12339 typedef uintptr_t ac__type_sizeof_;
12341 main ()
12343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12344 test_array [0] = 0
12347 return 0;
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (ac_try="$ac_compile"
12352 case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12355 esac
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_compile") 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && {
12364 test -z "$ac_c_werror_flag" ||
12365 test ! -s conftest.err
12366 } && test -s conftest.$ac_objext; then
12367 ac_hi=-1 ac_mid=-1
12368 while :; do
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h. */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12375 $ac_includes_default
12376 typedef uintptr_t ac__type_sizeof_;
12378 main ()
12380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12381 test_array [0] = 0
12384 return 0;
12386 _ACEOF
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_compile") 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest.$ac_objext; then
12404 ac_lo=$ac_mid; break
12405 else
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 ac_hi=`expr '(' $ac_mid ')' - 1`
12410 if test $ac_mid -le $ac_hi; then
12411 ac_lo= ac_hi=
12412 break
12414 ac_mid=`expr 2 '*' $ac_mid`
12417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 done
12419 else
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 ac_lo= ac_hi=
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 # Binary search between lo and hi bounds.
12431 while test "x$ac_lo" != "x$ac_hi"; do
12432 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12433 cat >conftest.$ac_ext <<_ACEOF
12434 /* confdefs.h. */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12439 $ac_includes_default
12440 typedef uintptr_t ac__type_sizeof_;
12442 main ()
12444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12445 test_array [0] = 0
12448 return 0;
12450 _ACEOF
12451 rm -f conftest.$ac_objext
12452 if { (ac_try="$ac_compile"
12453 case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456 esac
12457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_compile") 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } && {
12465 test -z "$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 } && test -s conftest.$ac_objext; then
12468 ac_hi=$ac_mid
12469 else
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_lo=`expr '(' $ac_mid ')' + 1`
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477 done
12478 case $ac_lo in
12479 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12480 '') if test "$ac_cv_type_uintptr_t" = yes; then
12481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12482 See \`config.log' for more details." >&5
12483 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12484 See \`config.log' for more details." >&2;}
12485 { (exit 77); exit 77; }; }
12486 else
12487 ac_cv_sizeof_uintptr_t=0
12488 fi ;;
12489 esac
12490 else
12491 cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h. */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 $ac_includes_default
12498 typedef uintptr_t ac__type_sizeof_;
12499 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12500 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12501 #include <stdio.h>
12502 #include <stdlib.h>
12504 main ()
12507 FILE *f = fopen ("conftest.val", "w");
12508 if (! f)
12509 return 1;
12510 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12512 long int i = longval ();
12513 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12514 return 1;
12515 fprintf (f, "%ld\n", i);
12517 else
12519 unsigned long int i = ulongval ();
12520 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12521 return 1;
12522 fprintf (f, "%lu\n", i);
12524 return ferror (f) || fclose (f) != 0;
12527 return 0;
12529 _ACEOF
12530 rm -f conftest$ac_exeext
12531 if { (ac_try="$ac_link"
12532 case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535 esac
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_link") 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12551 else
12552 echo "$as_me: program exited with status $ac_status" >&5
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ( exit $ac_status )
12557 if test "$ac_cv_type_uintptr_t" = yes; then
12558 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12559 See \`config.log' for more details." >&5
12560 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12561 See \`config.log' for more details." >&2;}
12562 { (exit 77); exit 77; }; }
12563 else
12564 ac_cv_sizeof_uintptr_t=0
12567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12569 rm -f conftest.val
12571 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12572 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12576 cat >>confdefs.h <<_ACEOF
12577 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12578 _ACEOF
12585 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12586 { echo "$as_me:$LINENO: checking size of off_t" >&5
12587 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12588 if test "${ac_cv_sizeof_off_t+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 if test "$cross_compiling" = yes; then
12592 ac_cv_sizeof_off_t=4
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 #include <stdio.h>
12601 #include <sys/types.h>
12602 main()
12604 FILE *f=fopen("conftestval", "w");
12605 if (!f) exit(1);
12606 fprintf(f, "%d\n", sizeof(off_t));
12607 exit(0);
12609 _ACEOF
12610 rm -f conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12621 { (case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_cv_sizeof_off_t=`cat conftestval`
12631 else
12632 echo "$as_me: program exited with status $ac_status" >&5
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 ( exit $ac_status )
12637 ac_cv_sizeof_off_t=0
12639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12646 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12647 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12649 cat >>confdefs.h <<_ACEOF
12650 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12651 _ACEOF
12654 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12655 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12656 if test "$have_long_long" = yes -a \
12657 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12658 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12660 cat >>confdefs.h <<\_ACEOF
12661 #define HAVE_LARGEFILE_SUPPORT 1
12662 _ACEOF
12664 { echo "$as_me:$LINENO: result: yes" >&5
12665 echo "${ECHO_T}yes" >&6; }
12666 else
12667 { echo "$as_me:$LINENO: result: no" >&5
12668 echo "${ECHO_T}no" >&6; }
12671 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12672 { echo "$as_me:$LINENO: checking size of time_t" >&5
12673 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12674 if test "${ac_cv_sizeof_time_t+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677 if test "$cross_compiling" = yes; then
12678 ac_cv_sizeof_time_t=4
12679 else
12680 cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h. */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12686 #include <stdio.h>
12687 #include <time.h>
12688 main()
12690 FILE *f=fopen("conftestval", "w");
12691 if (!f) exit(1);
12692 fprintf(f, "%d\n", sizeof(time_t));
12693 exit(0);
12695 _ACEOF
12696 rm -f conftest$ac_exeext
12697 if { (ac_try="$ac_link"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_link") 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12707 { (case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710 esac
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_sizeof_time_t=`cat conftestval`
12717 else
12718 echo "$as_me: program exited with status $ac_status" >&5
12719 echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ( exit $ac_status )
12723 ac_cv_sizeof_time_t=0
12725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12732 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12733 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12735 cat >>confdefs.h <<_ACEOF
12736 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12737 _ACEOF
12741 # if have pthread_t then define SIZEOF_PTHREAD_T
12742 ac_save_cc="$CC"
12743 if test "$ac_cv_kpthread" = "yes"
12744 then CC="$CC -Kpthread"
12745 elif test "$ac_cv_kthread" = "yes"
12746 then CC="$CC -Kthread"
12747 elif test "$ac_cv_pthread" = "yes"
12748 then CC="$CC -pthread"
12750 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12751 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12752 have_pthread_t=no
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h. */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 #include <pthread.h>
12761 main ()
12763 pthread_t x; x = *(pthread_t*)0;
12765 return 0;
12767 _ACEOF
12768 rm -f conftest.$ac_objext
12769 if { (ac_try="$ac_compile"
12770 case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773 esac
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_compile") 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } && {
12782 test -z "$ac_c_werror_flag" ||
12783 test ! -s conftest.err
12784 } && test -s conftest.$ac_objext; then
12785 have_pthread_t=yes
12786 else
12787 echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.$ac_ext >&5
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12795 echo "${ECHO_T}$have_pthread_t" >&6; }
12796 if test "$have_pthread_t" = yes ; then
12797 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12798 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12799 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12800 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803 if test "$cross_compiling" = yes; then
12804 ac_cv_sizeof_pthread_t=4
12805 else
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 #include <stdio.h>
12813 #include <pthread.h>
12814 main()
12816 FILE *f=fopen("conftestval", "w");
12817 if (!f) exit(1);
12818 fprintf(f, "%d\n", sizeof(pthread_t));
12819 exit(0);
12821 _ACEOF
12822 rm -f conftest$ac_exeext
12823 if { (ac_try="$ac_link"
12824 case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12827 esac
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_link") 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12833 { (case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_try") 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_cv_sizeof_pthread_t=`cat conftestval`
12843 else
12844 echo "$as_me: program exited with status $ac_status" >&5
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ( exit $ac_status )
12849 ac_cv_sizeof_pthread_t=0
12851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12858 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12859 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12861 cat >>confdefs.h <<_ACEOF
12862 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12863 _ACEOF
12866 CC="$ac_save_cc"
12868 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12869 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12870 # Check whether --enable-toolbox-glue was given.
12871 if test "${enable_toolbox_glue+set}" = set; then
12872 enableval=$enable_toolbox_glue;
12876 if test -z "$enable_toolbox_glue"
12877 then
12878 case $ac_sys_system/$ac_sys_release in
12879 Darwin/*)
12880 enable_toolbox_glue="yes";;
12882 enable_toolbox_glue="no";;
12883 esac
12885 case "$enable_toolbox_glue" in
12886 yes)
12887 extra_machdep_objs="Python/mactoolboxglue.o"
12888 extra_undefs="-u _PyMac_Error"
12890 cat >>confdefs.h <<\_ACEOF
12891 #define USE_TOOLBOX_OBJECT_GLUE 1
12892 _ACEOF
12896 extra_machdep_objs=""
12897 extra_undefs=""
12899 esac
12900 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12901 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12905 case $ac_sys_system/$ac_sys_release in
12906 Darwin/[01567]\..*)
12907 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12909 Darwin/*)
12910 OTHER_LIBTOOL_OPT=""
12912 esac
12915 case $ac_sys_system/$ac_sys_release in
12916 Darwin/[01567]\..*)
12917 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12918 if test "${enable_universalsdk}"; then
12920 else
12921 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
12923 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12924 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12925 Darwin/*)
12926 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12927 if test ${gcc_version} '<' 4.0
12928 then
12929 LIBTOOL_CRUFT="-lcc_dynamic"
12930 else
12931 LIBTOOL_CRUFT=""
12933 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
12934 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12935 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12936 esac
12938 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12939 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12940 if test "$enable_framework"
12941 then
12942 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12943 # -F. is needed to allow linking to the framework while
12944 # in the build location.
12946 cat >>confdefs.h <<\_ACEOF
12947 #define WITH_NEXT_FRAMEWORK 1
12948 _ACEOF
12950 { echo "$as_me:$LINENO: result: yes" >&5
12951 echo "${ECHO_T}yes" >&6; }
12952 else
12953 { echo "$as_me:$LINENO: result: no" >&5
12954 echo "${ECHO_T}no" >&6; }
12957 { echo "$as_me:$LINENO: checking for dyld" >&5
12958 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12959 case $ac_sys_system/$ac_sys_release in
12960 Darwin/*)
12962 cat >>confdefs.h <<\_ACEOF
12963 #define WITH_DYLD 1
12964 _ACEOF
12966 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12967 echo "${ECHO_T}always on for Darwin" >&6; }
12970 { echo "$as_me:$LINENO: result: no" >&5
12971 echo "${ECHO_T}no" >&6; }
12973 esac
12975 # Set info about shared libraries.
12981 # SO is the extension of shared libraries `(including the dot!)
12982 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12983 { echo "$as_me:$LINENO: checking SO" >&5
12984 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12985 if test -z "$SO"
12986 then
12987 case $ac_sys_system in
12988 hp*|HP*)
12989 case `uname -m` in
12990 ia64) SO=.so;;
12991 *) SO=.sl;;
12992 esac
12994 CYGWIN*) SO=.dll;;
12995 *) SO=.so;;
12996 esac
12997 else
12998 # this might also be a termcap variable, see #610332
12999 echo
13000 echo '====================================================================='
13001 echo '+ +'
13002 echo '+ WARNING: You have set SO in your environment. +'
13003 echo '+ Do you really mean to change the extension for shared libraries? +'
13004 echo '+ Continuing in 10 seconds to let you to ponder. +'
13005 echo '+ +'
13006 echo '====================================================================='
13007 sleep 10
13009 { echo "$as_me:$LINENO: result: $SO" >&5
13010 echo "${ECHO_T}$SO" >&6; }
13013 cat >>confdefs.h <<_ACEOF
13014 #define SHLIB_EXT "$SO"
13015 _ACEOF
13017 # LDSHARED is the ld *command* used to create shared library
13018 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13019 # (Shared libraries in this instance are shared modules to be loaded into
13020 # Python, as opposed to building Python itself as a shared library.)
13021 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13022 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13023 if test -z "$LDSHARED"
13024 then
13025 case $ac_sys_system/$ac_sys_release in
13026 AIX*)
13027 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13028 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13030 BeOS*)
13031 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13032 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13034 IRIX/5*) LDSHARED="ld -shared";;
13035 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13036 SunOS/5*)
13037 if test "$GCC" = "yes"
13038 then LDSHARED='$(CC) -shared'
13039 else LDSHARED='$(CC) -G';
13040 fi ;;
13041 hp*|HP*)
13042 if test "$GCC" = "yes"
13043 then LDSHARED='$(CC) -shared'
13044 else LDSHARED='ld -b';
13045 fi ;;
13046 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13047 Darwin/1.3*)
13048 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13049 if test "$enable_framework" ; then
13050 # Link against the framework. All externals should be defined.
13051 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13052 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13053 else
13054 # No framework. Ignore undefined symbols, assuming they come from Python
13055 LDSHARED="$LDSHARED -undefined suppress"
13056 fi ;;
13057 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13058 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13059 if test "$enable_framework" ; then
13060 # Link against the framework. All externals should be defined.
13061 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13062 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13063 else
13064 # No framework, use the Python app as bundle-loader
13065 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13066 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13067 fi ;;
13068 Darwin/*)
13069 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13070 # This allows an extension to be used in any Python
13072 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13073 then
13074 if test "${enable_universalsdk}"; then
13075 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13077 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13078 BLDSHARED="$LDSHARED"
13079 else
13080 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13081 if test "$enable_framework" ; then
13082 # Link against the framework. All externals should be defined.
13083 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13084 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13085 else
13086 # No framework, use the Python app as bundle-loader
13087 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13088 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13092 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13093 BSD/OS*/4*) LDSHARED="gcc -shared";;
13094 FreeBSD*)
13095 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13096 then
13097 LDSHARED="$CC -shared ${LDFLAGS}"
13098 else
13099 LDSHARED="ld -Bshareable ${LDFLAGS}"
13100 fi;;
13101 OpenBSD*)
13102 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13103 then
13104 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13105 else
13106 case `uname -r` in
13107 [01].* | 2.[0-7] | 2.[0-7].*)
13108 LDSHARED="ld -Bshareable ${LDFLAGS}"
13111 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13113 esac
13114 fi;;
13115 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13116 OpenUNIX*|UnixWare*)
13117 if test "$GCC" = "yes"
13118 then LDSHARED='$(CC) -shared'
13119 else LDSHARED='$(CC) -G'
13120 fi;;
13121 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13122 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13123 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13124 atheos*) LDSHARED="gcc -shared";;
13125 *) LDSHARED="ld";;
13126 esac
13128 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13129 echo "${ECHO_T}$LDSHARED" >&6; }
13130 BLDSHARED=${BLDSHARED-$LDSHARED}
13131 # CCSHARED are the C *flags* used to create objects to go into a shared
13132 # library (module) -- this is only needed for a few systems
13133 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13134 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13135 if test -z "$CCSHARED"
13136 then
13137 case $ac_sys_system/$ac_sys_release in
13138 SunOS*) if test "$GCC" = yes;
13139 then CCSHARED="-fPIC";
13140 elif test `uname -p` = sparc;
13141 then CCSHARED="-xcode=pic32";
13142 else CCSHARED="-Kpic";
13143 fi;;
13144 hp*|HP*) if test "$GCC" = yes;
13145 then CCSHARED="-fPIC";
13146 else CCSHARED="+z";
13147 fi;;
13148 Linux*|GNU*) CCSHARED="-fPIC";;
13149 BSD/OS*/4*) CCSHARED="-fpic";;
13150 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13151 OpenUNIX*|UnixWare*)
13152 if test "$GCC" = "yes"
13153 then CCSHARED="-fPIC"
13154 else CCSHARED="-KPIC"
13155 fi;;
13156 SCO_SV*)
13157 if test "$GCC" = "yes"
13158 then CCSHARED="-fPIC"
13159 else CCSHARED="-Kpic -belf"
13160 fi;;
13161 Monterey*) CCSHARED="-G";;
13162 IRIX*/6*) case $CC in
13163 *gcc*) CCSHARED="-shared";;
13164 *) CCSHARED="";;
13165 esac;;
13166 atheos*) CCSHARED="-fPIC";;
13167 esac
13169 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13170 echo "${ECHO_T}$CCSHARED" >&6; }
13171 # LINKFORSHARED are the flags passed to the $(CC) command that links
13172 # the python executable -- this is only needed for a few systems
13173 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13174 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13175 if test -z "$LINKFORSHARED"
13176 then
13177 case $ac_sys_system/$ac_sys_release in
13178 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13179 hp*|HP*)
13180 LINKFORSHARED="-Wl,-E -Wl,+s";;
13181 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13182 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13183 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13184 # -u libsys_s pulls in all symbols in libsys
13185 Darwin/*)
13186 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13187 # which is
13188 # not used by the core itself but which needs to be in the core so
13189 # that dynamically loaded extension modules have access to it.
13190 # -prebind is no longer used, because it actually seems to give a
13191 # slowdown in stead of a speedup, maybe due to the large number of
13192 # dynamic loads Python does.
13194 LINKFORSHARED="$extra_undefs"
13195 if test "$enable_framework"
13196 then
13197 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13199 LINKFORSHARED="$LINKFORSHARED";;
13200 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13201 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13202 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13203 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13204 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13205 then
13206 LINKFORSHARED="-Wl,--export-dynamic"
13207 fi;;
13208 SunOS/5*) case $CC in
13209 *gcc*)
13210 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13211 then
13212 LINKFORSHARED="-Xlinker --export-dynamic"
13213 fi;;
13214 esac;;
13215 CYGWIN*)
13216 if test $enable_shared = "no"
13217 then
13218 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13219 fi;;
13220 QNX*)
13221 # -Wl,-E causes the symbols to be added to the dynamic
13222 # symbol table so that they can be found when a module
13223 # is loaded. -N 2048K causes the stack size to be set
13224 # to 2048 kilobytes so that the stack doesn't overflow
13225 # when running test_compile.py.
13226 LINKFORSHARED='-Wl,-E -N 2048K';;
13227 esac
13229 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13230 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13234 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13235 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13236 if test ! "$LIBRARY" = "$LDLIBRARY"
13237 then
13238 case $ac_sys_system in
13239 CYGWIN*)
13240 # Cygwin needs CCSHARED when building extension DLLs
13241 # but not when building the interpreter DLL.
13242 CFLAGSFORSHARED='';;
13244 CFLAGSFORSHARED='$(CCSHARED)'
13245 esac
13247 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13248 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13250 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13251 # library (with --enable-shared).
13252 # For platforms on which shared libraries are not allowed to have unresolved
13253 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13254 # if it is not required, since it creates a dependency of the shared library
13255 # to LIBS. This, in turn, means that applications linking the shared libpython
13256 # don't need to link LIBS explicitly. The default should be only changed
13257 # on systems where this approach causes problems.
13259 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13260 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13261 case "$ac_sys_system" in
13263 SHLIBS='$(LIBS)';;
13264 esac
13265 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13266 echo "${ECHO_T}$SHLIBS" >&6; }
13269 # checks for libraries
13271 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275 else
13276 ac_check_lib_save_LIBS=$LIBS
13277 LIBS="-ldl $LIBS"
13278 cat >conftest.$ac_ext <<_ACEOF
13279 /* confdefs.h. */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13285 /* Override any GCC internal prototype to avoid an error.
13286 Use char because int might match the return type of a GCC
13287 builtin and then its argument prototype would still apply. */
13288 #ifdef __cplusplus
13289 extern "C"
13290 #endif
13291 char dlopen ();
13293 main ()
13295 return dlopen ();
13297 return 0;
13299 _ACEOF
13300 rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (ac_try="$ac_link"
13302 case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13305 esac
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_link") 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } && {
13314 test -z "$ac_c_werror_flag" ||
13315 test ! -s conftest.err
13316 } && test -s conftest$ac_exeext &&
13317 $as_test_x conftest$ac_exeext; then
13318 ac_cv_lib_dl_dlopen=yes
13319 else
13320 echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13323 ac_cv_lib_dl_dlopen=no
13326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13327 conftest$ac_exeext conftest.$ac_ext
13328 LIBS=$ac_check_lib_save_LIBS
13330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13332 if test $ac_cv_lib_dl_dlopen = yes; then
13333 cat >>confdefs.h <<_ACEOF
13334 #define HAVE_LIBDL 1
13335 _ACEOF
13337 LIBS="-ldl $LIBS"
13340 # Dynamic linking for SunOS/Solaris and SYSV
13342 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13343 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13344 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347 ac_check_lib_save_LIBS=$LIBS
13348 LIBS="-ldld $LIBS"
13349 cat >conftest.$ac_ext <<_ACEOF
13350 /* confdefs.h. */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13356 /* Override any GCC internal prototype to avoid an error.
13357 Use char because int might match the return type of a GCC
13358 builtin and then its argument prototype would still apply. */
13359 #ifdef __cplusplus
13360 extern "C"
13361 #endif
13362 char shl_load ();
13364 main ()
13366 return shl_load ();
13368 return 0;
13370 _ACEOF
13371 rm -f conftest.$ac_objext conftest$ac_exeext
13372 if { (ac_try="$ac_link"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_link") 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 } && test -s conftest$ac_exeext &&
13388 $as_test_x conftest$ac_exeext; then
13389 ac_cv_lib_dld_shl_load=yes
13390 else
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_cv_lib_dld_shl_load=no
13397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS
13401 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13402 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13403 if test $ac_cv_lib_dld_shl_load = yes; then
13404 cat >>confdefs.h <<_ACEOF
13405 #define HAVE_LIBDLD 1
13406 _ACEOF
13408 LIBS="-ldld $LIBS"
13411 # Dynamic linking for HP-UX
13413 # only check for sem_init if thread support is requested
13414 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13415 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13416 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13417 if test "${ac_cv_search_sem_init+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 else
13420 ac_func_search_save_LIBS=$LIBS
13421 cat >conftest.$ac_ext <<_ACEOF
13422 /* confdefs.h. */
13423 _ACEOF
13424 cat confdefs.h >>conftest.$ac_ext
13425 cat >>conftest.$ac_ext <<_ACEOF
13426 /* end confdefs.h. */
13428 /* Override any GCC internal prototype to avoid an error.
13429 Use char because int might match the return type of a GCC
13430 builtin and then its argument prototype would still apply. */
13431 #ifdef __cplusplus
13432 extern "C"
13433 #endif
13434 char sem_init ();
13436 main ()
13438 return sem_init ();
13440 return 0;
13442 _ACEOF
13443 for ac_lib in '' pthread rt posix4; do
13444 if test -z "$ac_lib"; then
13445 ac_res="none required"
13446 else
13447 ac_res=-l$ac_lib
13448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13450 rm -f conftest.$ac_objext conftest$ac_exeext
13451 if { (ac_try="$ac_link"
13452 case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_link") 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && {
13464 test -z "$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 } && test -s conftest$ac_exeext &&
13467 $as_test_x conftest$ac_exeext; then
13468 ac_cv_search_sem_init=$ac_res
13469 else
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13477 conftest$ac_exeext
13478 if test "${ac_cv_search_sem_init+set}" = set; then
13479 break
13481 done
13482 if test "${ac_cv_search_sem_init+set}" = set; then
13484 else
13485 ac_cv_search_sem_init=no
13487 rm conftest.$ac_ext
13488 LIBS=$ac_func_search_save_LIBS
13490 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13491 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13492 ac_res=$ac_cv_search_sem_init
13493 if test "$ac_res" != no; then
13494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13497 # 'Real Time' functions on Solaris
13498 # posix4 on Solaris 2.6
13499 # pthread (first!) on Linux
13502 # check if we need libintl for locale functions
13503 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13504 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13505 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508 ac_check_lib_save_LIBS=$LIBS
13509 LIBS="-lintl $LIBS"
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13517 /* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
13520 #ifdef __cplusplus
13521 extern "C"
13522 #endif
13523 char textdomain ();
13525 main ()
13527 return textdomain ();
13529 return 0;
13531 _ACEOF
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (ac_try="$ac_link"
13534 case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537 esac
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_link") 2>conftest.er1
13540 ac_status=$?
13541 grep -v '^ *+' conftest.er1 >conftest.err
13542 rm -f conftest.er1
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } && {
13546 test -z "$ac_c_werror_flag" ||
13547 test ! -s conftest.err
13548 } && test -s conftest$ac_exeext &&
13549 $as_test_x conftest$ac_exeext; then
13550 ac_cv_lib_intl_textdomain=yes
13551 else
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13555 ac_cv_lib_intl_textdomain=no
13558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13559 conftest$ac_exeext conftest.$ac_ext
13560 LIBS=$ac_check_lib_save_LIBS
13562 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13563 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13564 if test $ac_cv_lib_intl_textdomain = yes; then
13566 cat >>confdefs.h <<\_ACEOF
13567 #define WITH_LIBINTL 1
13568 _ACEOF
13573 # checks for system dependent C++ extensions support
13574 case "$ac_sys_system" in
13575 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13576 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13577 cat >conftest.$ac_ext <<_ACEOF
13578 /* confdefs.h. */
13579 _ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13583 #include "/usr/lpp/xlC/include/load.h"
13585 main ()
13587 loadAndInit("", 0, "")
13589 return 0;
13591 _ACEOF
13592 rm -f conftest.$ac_objext conftest$ac_exeext
13593 if { (ac_try="$ac_link"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597 esac
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_link") 2>conftest.er1
13600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } && {
13606 test -z "$ac_c_werror_flag" ||
13607 test ! -s conftest.err
13608 } && test -s conftest$ac_exeext &&
13609 $as_test_x conftest$ac_exeext; then
13611 cat >>confdefs.h <<\_ACEOF
13612 #define AIX_GENUINE_CPLUSPLUS 1
13613 _ACEOF
13615 { echo "$as_me:$LINENO: result: yes" >&5
13616 echo "${ECHO_T}yes" >&6; }
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 { echo "$as_me:$LINENO: result: no" >&5
13622 echo "${ECHO_T}no" >&6; }
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626 conftest$ac_exeext conftest.$ac_ext;;
13627 *) ;;
13628 esac
13630 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13631 # BeOS' sockets are stashed in libnet.
13632 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13633 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13634 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637 ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-lnsl $LIBS"
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h. */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 char t_open ();
13654 main ()
13656 return t_open ();
13658 return 0;
13660 _ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13666 esac
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } && {
13675 test -z "$ac_c_werror_flag" ||
13676 test ! -s conftest.err
13677 } && test -s conftest$ac_exeext &&
13678 $as_test_x conftest$ac_exeext; then
13679 ac_cv_lib_nsl_t_open=yes
13680 else
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 ac_cv_lib_nsl_t_open=no
13687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13688 conftest$ac_exeext conftest.$ac_ext
13689 LIBS=$ac_check_lib_save_LIBS
13691 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13692 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13693 if test $ac_cv_lib_nsl_t_open = yes; then
13694 LIBS="-lnsl $LIBS"
13696 # SVR4
13697 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13698 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13699 if test "${ac_cv_lib_socket_socket+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702 ac_check_lib_save_LIBS=$LIBS
13703 LIBS="-lsocket $LIBS $LIBS"
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 /* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply. */
13714 #ifdef __cplusplus
13715 extern "C"
13716 #endif
13717 char socket ();
13719 main ()
13721 return socket ();
13723 return 0;
13725 _ACEOF
13726 rm -f conftest.$ac_objext conftest$ac_exeext
13727 if { (ac_try="$ac_link"
13728 case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731 esac
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_link") 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } && {
13740 test -z "$ac_c_werror_flag" ||
13741 test ! -s conftest.err
13742 } && test -s conftest$ac_exeext &&
13743 $as_test_x conftest$ac_exeext; then
13744 ac_cv_lib_socket_socket=yes
13745 else
13746 echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13749 ac_cv_lib_socket_socket=no
13752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13753 conftest$ac_exeext conftest.$ac_ext
13754 LIBS=$ac_check_lib_save_LIBS
13756 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13757 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13758 if test $ac_cv_lib_socket_socket = yes; then
13759 LIBS="-lsocket $LIBS"
13761 # SVR4 sockets
13763 case "$ac_sys_system" in
13764 BeOS*)
13765 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13766 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13767 if test "${ac_cv_lib_net_socket+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770 ac_check_lib_save_LIBS=$LIBS
13771 LIBS="-lnet $LIBS $LIBS"
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h. */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
13782 #ifdef __cplusplus
13783 extern "C"
13784 #endif
13785 char socket ();
13787 main ()
13789 return socket ();
13791 return 0;
13793 _ACEOF
13794 rm -f conftest.$ac_objext conftest$ac_exeext
13795 if { (ac_try="$ac_link"
13796 case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799 esac
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_link") 2>conftest.er1
13802 ac_status=$?
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } && {
13808 test -z "$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 } && test -s conftest$ac_exeext &&
13811 $as_test_x conftest$ac_exeext; then
13812 ac_cv_lib_net_socket=yes
13813 else
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13817 ac_cv_lib_net_socket=no
13820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13821 conftest$ac_exeext conftest.$ac_ext
13822 LIBS=$ac_check_lib_save_LIBS
13824 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13825 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13826 if test $ac_cv_lib_net_socket = yes; then
13827 LIBS="-lnet $LIBS"
13829 # BeOS
13831 esac
13833 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13834 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13836 # Check whether --with-libs was given.
13837 if test "${with_libs+set}" = set; then
13838 withval=$with_libs;
13839 { echo "$as_me:$LINENO: result: $withval" >&5
13840 echo "${ECHO_T}$withval" >&6; }
13841 LIBS="$withval $LIBS"
13843 else
13844 { echo "$as_me:$LINENO: result: no" >&5
13845 echo "${ECHO_T}no" >&6; }
13849 # Check for use of the system libffi library
13850 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13851 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13853 # Check whether --with-system_ffi was given.
13854 if test "${with_system_ffi+set}" = set; then
13855 withval=$with_system_ffi;
13859 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13860 echo "${ECHO_T}$with_system_ffi" >&6; }
13862 # Determine if signalmodule should be used.
13865 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13866 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13868 # Check whether --with-signal-module was given.
13869 if test "${with_signal_module+set}" = set; then
13870 withval=$with_signal_module;
13874 if test -z "$with_signal_module"
13875 then with_signal_module="yes"
13877 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13878 echo "${ECHO_T}$with_signal_module" >&6; }
13880 if test "${with_signal_module}" = "yes"; then
13881 USE_SIGNAL_MODULE=""
13882 SIGNAL_OBJS=""
13883 else
13884 USE_SIGNAL_MODULE="#"
13885 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13888 # This is used to generate Setup.config
13890 USE_THREAD_MODULE=""
13892 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13893 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13896 # Check whether --with-dec-threads was given.
13897 if test "${with_dec_threads+set}" = set; then
13898 withval=$with_dec_threads;
13899 { echo "$as_me:$LINENO: result: $withval" >&5
13900 echo "${ECHO_T}$withval" >&6; }
13901 LDLAST=-threads
13902 if test "${with_thread+set}" != set; then
13903 with_thread="$withval";
13905 else
13906 { echo "$as_me:$LINENO: result: no" >&5
13907 echo "${ECHO_T}no" >&6; }
13911 # Templates for things AC_DEFINEd more than once.
13912 # For a single AC_DEFINE, no template is needed.
13920 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13921 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13923 # Check whether --with-threads was given.
13924 if test "${with_threads+set}" = set; then
13925 withval=$with_threads;
13929 # --with-thread is deprecated, but check for it anyway
13931 # Check whether --with-thread was given.
13932 if test "${with_thread+set}" = set; then
13933 withval=$with_thread; with_threads=$with_thread
13937 if test -z "$with_threads"
13938 then with_threads="yes"
13940 { echo "$as_me:$LINENO: result: $with_threads" >&5
13941 echo "${ECHO_T}$with_threads" >&6; }
13944 if test "$with_threads" = "no"
13945 then
13946 USE_THREAD_MODULE="#"
13947 elif test "$ac_cv_pthread_is_default" = yes
13948 then
13949 cat >>confdefs.h <<\_ACEOF
13950 #define WITH_THREAD 1
13951 _ACEOF
13953 # Defining _REENTRANT on system with POSIX threads should not hurt.
13954 cat >>confdefs.h <<\_ACEOF
13955 #define _REENTRANT 1
13956 _ACEOF
13958 posix_threads=yes
13959 THREADOBJ="Python/thread.o"
13960 elif test "$ac_cv_kpthread" = "yes"
13961 then
13962 CC="$CC -Kpthread"
13963 if test "$ac_cv_cxx_thread" = "yes"; then
13964 CXX="$CXX -Kpthread"
13966 cat >>confdefs.h <<\_ACEOF
13967 #define WITH_THREAD 1
13968 _ACEOF
13970 posix_threads=yes
13971 THREADOBJ="Python/thread.o"
13972 elif test "$ac_cv_kthread" = "yes"
13973 then
13974 CC="$CC -Kthread"
13975 if test "$ac_cv_cxx_thread" = "yes"; then
13976 CXX="$CXX -Kthread"
13978 cat >>confdefs.h <<\_ACEOF
13979 #define WITH_THREAD 1
13980 _ACEOF
13982 posix_threads=yes
13983 THREADOBJ="Python/thread.o"
13984 elif test "$ac_cv_pthread" = "yes"
13985 then
13986 CC="$CC -pthread"
13987 if test "$ac_cv_cxx_thread" = "yes"; then
13988 CXX="$CXX -pthread"
13990 cat >>confdefs.h <<\_ACEOF
13991 #define WITH_THREAD 1
13992 _ACEOF
13994 posix_threads=yes
13995 THREADOBJ="Python/thread.o"
13996 else
13997 if test ! -z "$with_threads" -a -d "$with_threads"
13998 then LDFLAGS="$LDFLAGS -L$with_threads"
14000 if test ! -z "$withval" -a -d "$withval"
14001 then LDFLAGS="$LDFLAGS -L$withval"
14004 # According to the POSIX spec, a pthreads implementation must
14005 # define _POSIX_THREADS in unistd.h. Some apparently don't
14006 # (e.g. gnu pth with pthread emulation)
14007 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14008 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14009 cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h. */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14016 #include <unistd.h>
14017 #ifdef _POSIX_THREADS
14019 #endif
14021 _ACEOF
14022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14023 $EGREP "yes" >/dev/null 2>&1; then
14024 unistd_defines_pthreads=yes
14025 else
14026 unistd_defines_pthreads=no
14028 rm -f conftest*
14030 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14031 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14033 cat >>confdefs.h <<\_ACEOF
14034 #define _REENTRANT 1
14035 _ACEOF
14037 if test "${ac_cv_header_cthreads_h+set}" = set; then
14038 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14039 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14040 if test "${ac_cv_header_cthreads_h+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14044 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14045 else
14046 # Is the header compilable?
14047 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14048 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14049 cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h. */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 $ac_includes_default
14056 #include <cthreads.h>
14057 _ACEOF
14058 rm -f conftest.$ac_objext
14059 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
14075 ac_header_compiler=yes
14076 else
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080 ac_header_compiler=no
14083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14085 echo "${ECHO_T}$ac_header_compiler" >&6; }
14087 # Is the header present?
14088 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14089 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14090 cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h. */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 #include <cthreads.h>
14097 _ACEOF
14098 if { (ac_try="$ac_cpp conftest.$ac_ext"
14099 case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14102 esac
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14105 ac_status=$?
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } >/dev/null && {
14111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14112 test ! -s conftest.err
14113 }; then
14114 ac_header_preproc=yes
14115 else
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 ac_header_preproc=no
14122 rm -f conftest.err conftest.$ac_ext
14123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14124 echo "${ECHO_T}$ac_header_preproc" >&6; }
14126 # So? What about this header?
14127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14128 yes:no: )
14129 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14130 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14132 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14133 ac_header_preproc=yes
14135 no:yes:* )
14136 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14137 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14138 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14139 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14141 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14143 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14145 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14147 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14148 ( cat <<\_ASBOX
14149 ## ------------------------------------------------ ##
14150 ## Report this to http://www.python.org/python-bugs ##
14151 ## ------------------------------------------------ ##
14152 _ASBOX
14153 ) | sed "s/^/$as_me: WARNING: /" >&2
14155 esac
14156 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14157 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14158 if test "${ac_cv_header_cthreads_h+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161 ac_cv_header_cthreads_h=$ac_header_preproc
14163 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14164 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14167 if test $ac_cv_header_cthreads_h = yes; then
14168 cat >>confdefs.h <<\_ACEOF
14169 #define WITH_THREAD 1
14170 _ACEOF
14172 cat >>confdefs.h <<\_ACEOF
14173 #define C_THREADS 1
14174 _ACEOF
14177 cat >>confdefs.h <<\_ACEOF
14178 #define HURD_C_THREADS 1
14179 _ACEOF
14181 LIBS="$LIBS -lthreads"
14182 THREADOBJ="Python/thread.o"
14183 else
14185 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14186 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14187 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14188 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14192 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14193 else
14194 # Is the header compilable?
14195 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14196 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14197 cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h. */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 $ac_includes_default
14204 #include <mach/cthreads.h>
14205 _ACEOF
14206 rm -f conftest.$ac_objext
14207 if { (ac_try="$ac_compile"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_compile") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } && {
14220 test -z "$ac_c_werror_flag" ||
14221 test ! -s conftest.err
14222 } && test -s conftest.$ac_objext; then
14223 ac_header_compiler=yes
14224 else
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_header_compiler=no
14231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14233 echo "${ECHO_T}$ac_header_compiler" >&6; }
14235 # Is the header present?
14236 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14237 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <mach/cthreads.h>
14245 _ACEOF
14246 if { (ac_try="$ac_cpp conftest.$ac_ext"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14253 ac_status=$?
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } >/dev/null && {
14259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 }; then
14262 ac_header_preproc=yes
14263 else
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_header_preproc=no
14270 rm -f conftest.err conftest.$ac_ext
14271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14272 echo "${ECHO_T}$ac_header_preproc" >&6; }
14274 # So? What about this header?
14275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14276 yes:no: )
14277 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14278 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14280 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14281 ac_header_preproc=yes
14283 no:yes:* )
14284 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14285 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14286 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14287 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14288 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14289 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14291 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14293 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14294 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14295 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14296 ( cat <<\_ASBOX
14297 ## ------------------------------------------------ ##
14298 ## Report this to http://www.python.org/python-bugs ##
14299 ## ------------------------------------------------ ##
14300 _ASBOX
14301 ) | sed "s/^/$as_me: WARNING: /" >&2
14303 esac
14304 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14305 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14306 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14311 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14312 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14315 if test $ac_cv_header_mach_cthreads_h = yes; then
14316 cat >>confdefs.h <<\_ACEOF
14317 #define WITH_THREAD 1
14318 _ACEOF
14320 cat >>confdefs.h <<\_ACEOF
14321 #define C_THREADS 1
14322 _ACEOF
14325 cat >>confdefs.h <<\_ACEOF
14326 #define MACH_C_THREADS 1
14327 _ACEOF
14329 THREADOBJ="Python/thread.o"
14330 else
14332 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14333 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14335 # Check whether --with-pth was given.
14336 if test "${with_pth+set}" = set; then
14337 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14338 echo "${ECHO_T}$withval" >&6; }
14339 cat >>confdefs.h <<\_ACEOF
14340 #define WITH_THREAD 1
14341 _ACEOF
14344 cat >>confdefs.h <<\_ACEOF
14345 #define HAVE_PTH 1
14346 _ACEOF
14348 LIBS="-lpth $LIBS"
14349 THREADOBJ="Python/thread.o"
14350 else
14351 { echo "$as_me:$LINENO: result: no" >&5
14352 echo "${ECHO_T}no" >&6; }
14354 # Just looking for pthread_create in libpthread is not enough:
14355 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14356 # So we really have to include pthread.h, and then link.
14357 _libs=$LIBS
14358 LIBS="$LIBS -lpthread"
14359 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14360 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14361 cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h. */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 #include <pthread.h>
14369 void * start_routine (void *arg) { exit (0); }
14371 main ()
14374 pthread_create (NULL, NULL, start_routine, NULL)
14376 return 0;
14378 _ACEOF
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_link") 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } && {
14393 test -z "$ac_c_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest$ac_exeext &&
14396 $as_test_x conftest$ac_exeext; then
14398 { echo "$as_me:$LINENO: result: yes" >&5
14399 echo "${ECHO_T}yes" >&6; }
14400 cat >>confdefs.h <<\_ACEOF
14401 #define WITH_THREAD 1
14402 _ACEOF
14404 posix_threads=yes
14405 THREADOBJ="Python/thread.o"
14406 else
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14411 LIBS=$_libs
14412 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14413 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14414 if test "${ac_cv_func_pthread_detach+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h. */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14425 #define pthread_detach innocuous_pthread_detach
14427 /* System header to define __stub macros and hopefully few prototypes,
14428 which can conflict with char pthread_detach (); below.
14429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14430 <limits.h> exists even on freestanding compilers. */
14432 #ifdef __STDC__
14433 # include <limits.h>
14434 #else
14435 # include <assert.h>
14436 #endif
14438 #undef pthread_detach
14440 /* Override any GCC internal prototype to avoid an error.
14441 Use char because int might match the return type of a GCC
14442 builtin and then its argument prototype would still apply. */
14443 #ifdef __cplusplus
14444 extern "C"
14445 #endif
14446 char pthread_detach ();
14447 /* The GNU C library defines this for functions which it implements
14448 to always fail with ENOSYS. Some functions are actually named
14449 something starting with __ and the normal name is an alias. */
14450 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14451 choke me
14452 #endif
14455 main ()
14457 return pthread_detach ();
14459 return 0;
14461 _ACEOF
14462 rm -f conftest.$ac_objext conftest$ac_exeext
14463 if { (ac_try="$ac_link"
14464 case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467 esac
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_link") 2>conftest.er1
14470 ac_status=$?
14471 grep -v '^ *+' conftest.er1 >conftest.err
14472 rm -f conftest.er1
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } && {
14476 test -z "$ac_c_werror_flag" ||
14477 test ! -s conftest.err
14478 } && test -s conftest$ac_exeext &&
14479 $as_test_x conftest$ac_exeext; then
14480 ac_cv_func_pthread_detach=yes
14481 else
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14485 ac_cv_func_pthread_detach=no
14488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14489 conftest$ac_exeext conftest.$ac_ext
14491 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14492 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14493 if test $ac_cv_func_pthread_detach = yes; then
14494 cat >>confdefs.h <<\_ACEOF
14495 #define WITH_THREAD 1
14496 _ACEOF
14498 posix_threads=yes
14499 THREADOBJ="Python/thread.o"
14500 else
14502 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14503 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14504 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14505 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14509 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14510 else
14511 # Is the header compilable?
14512 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14513 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h. */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 $ac_includes_default
14521 #include <atheos/threads.h>
14522 _ACEOF
14523 rm -f conftest.$ac_objext
14524 if { (ac_try="$ac_compile"
14525 case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_compile") 2>conftest.er1
14531 ac_status=$?
14532 grep -v '^ *+' conftest.er1 >conftest.err
14533 rm -f conftest.er1
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } && {
14537 test -z "$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest.$ac_objext; then
14540 ac_header_compiler=yes
14541 else
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_header_compiler=no
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14550 echo "${ECHO_T}$ac_header_compiler" >&6; }
14552 # Is the header present?
14553 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14554 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14555 cat >conftest.$ac_ext <<_ACEOF
14556 /* confdefs.h. */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 #include <atheos/threads.h>
14562 _ACEOF
14563 if { (ac_try="$ac_cpp conftest.$ac_ext"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } >/dev/null && {
14576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14577 test ! -s conftest.err
14578 }; then
14579 ac_header_preproc=yes
14580 else
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ac_header_preproc=no
14587 rm -f conftest.err conftest.$ac_ext
14588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14589 echo "${ECHO_T}$ac_header_preproc" >&6; }
14591 # So? What about this header?
14592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14593 yes:no: )
14594 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14595 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14597 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14598 ac_header_preproc=yes
14600 no:yes:* )
14601 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14602 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14604 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14605 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14606 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14607 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14608 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14609 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14610 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14612 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14613 ( cat <<\_ASBOX
14614 ## ------------------------------------------------ ##
14615 ## Report this to http://www.python.org/python-bugs ##
14616 ## ------------------------------------------------ ##
14617 _ASBOX
14618 ) | sed "s/^/$as_me: WARNING: /" >&2
14620 esac
14621 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14622 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14623 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626 ac_cv_header_atheos_threads_h=$ac_header_preproc
14628 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14629 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14632 if test $ac_cv_header_atheos_threads_h = yes; then
14633 cat >>confdefs.h <<\_ACEOF
14634 #define WITH_THREAD 1
14635 _ACEOF
14638 cat >>confdefs.h <<\_ACEOF
14639 #define ATHEOS_THREADS 1
14640 _ACEOF
14642 THREADOBJ="Python/thread.o"
14643 else
14645 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14646 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14647 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14648 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14652 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14653 else
14654 # Is the header compilable?
14655 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14656 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14657 cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h. */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 $ac_includes_default
14664 #include <kernel/OS.h>
14665 _ACEOF
14666 rm -f conftest.$ac_objext
14667 if { (ac_try="$ac_compile"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_compile") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest.$ac_objext; then
14683 ac_header_compiler=yes
14684 else
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ac_header_compiler=no
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14693 echo "${ECHO_T}$ac_header_compiler" >&6; }
14695 # Is the header present?
14696 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14697 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14698 cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h. */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14704 #include <kernel/OS.h>
14705 _ACEOF
14706 if { (ac_try="$ac_cpp conftest.$ac_ext"
14707 case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14710 esac
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14713 ac_status=$?
14714 grep -v '^ *+' conftest.er1 >conftest.err
14715 rm -f conftest.er1
14716 cat conftest.err >&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } >/dev/null && {
14719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14720 test ! -s conftest.err
14721 }; then
14722 ac_header_preproc=yes
14723 else
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14727 ac_header_preproc=no
14730 rm -f conftest.err conftest.$ac_ext
14731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14732 echo "${ECHO_T}$ac_header_preproc" >&6; }
14734 # So? What about this header?
14735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14736 yes:no: )
14737 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14738 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14740 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14741 ac_header_preproc=yes
14743 no:yes:* )
14744 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14745 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14747 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14749 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14751 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14753 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14755 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14756 ( cat <<\_ASBOX
14757 ## ------------------------------------------------ ##
14758 ## Report this to http://www.python.org/python-bugs ##
14759 ## ------------------------------------------------ ##
14760 _ASBOX
14761 ) | sed "s/^/$as_me: WARNING: /" >&2
14763 esac
14764 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14765 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14766 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769 ac_cv_header_kernel_OS_h=$ac_header_preproc
14771 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14772 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14775 if test $ac_cv_header_kernel_OS_h = yes; then
14776 cat >>confdefs.h <<\_ACEOF
14777 #define WITH_THREAD 1
14778 _ACEOF
14781 cat >>confdefs.h <<\_ACEOF
14782 #define BEOS_THREADS 1
14783 _ACEOF
14785 THREADOBJ="Python/thread.o"
14786 else
14788 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14789 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14790 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 else
14793 ac_check_lib_save_LIBS=$LIBS
14794 LIBS="-lpthreads $LIBS"
14795 cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h. */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14802 /* Override any GCC internal prototype to avoid an error.
14803 Use char because int might match the return type of a GCC
14804 builtin and then its argument prototype would still apply. */
14805 #ifdef __cplusplus
14806 extern "C"
14807 #endif
14808 char pthread_create ();
14810 main ()
14812 return pthread_create ();
14814 return 0;
14816 _ACEOF
14817 rm -f conftest.$ac_objext conftest$ac_exeext
14818 if { (ac_try="$ac_link"
14819 case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14822 esac
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_link") 2>conftest.er1
14825 ac_status=$?
14826 grep -v '^ *+' conftest.er1 >conftest.err
14827 rm -f conftest.er1
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } && {
14831 test -z "$ac_c_werror_flag" ||
14832 test ! -s conftest.err
14833 } && test -s conftest$ac_exeext &&
14834 $as_test_x conftest$ac_exeext; then
14835 ac_cv_lib_pthreads_pthread_create=yes
14836 else
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 ac_cv_lib_pthreads_pthread_create=no
14843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14844 conftest$ac_exeext conftest.$ac_ext
14845 LIBS=$ac_check_lib_save_LIBS
14847 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14848 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14849 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14850 cat >>confdefs.h <<\_ACEOF
14851 #define WITH_THREAD 1
14852 _ACEOF
14854 posix_threads=yes
14855 LIBS="$LIBS -lpthreads"
14856 THREADOBJ="Python/thread.o"
14857 else
14859 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14860 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14861 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864 ac_check_lib_save_LIBS=$LIBS
14865 LIBS="-lc_r $LIBS"
14866 cat >conftest.$ac_ext <<_ACEOF
14867 /* confdefs.h. */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14873 /* Override any GCC internal prototype to avoid an error.
14874 Use char because int might match the return type of a GCC
14875 builtin and then its argument prototype would still apply. */
14876 #ifdef __cplusplus
14877 extern "C"
14878 #endif
14879 char pthread_create ();
14881 main ()
14883 return pthread_create ();
14885 return 0;
14887 _ACEOF
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (ac_try="$ac_link"
14890 case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_link") 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } && {
14902 test -z "$ac_c_werror_flag" ||
14903 test ! -s conftest.err
14904 } && test -s conftest$ac_exeext &&
14905 $as_test_x conftest$ac_exeext; then
14906 ac_cv_lib_c_r_pthread_create=yes
14907 else
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911 ac_cv_lib_c_r_pthread_create=no
14914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14915 conftest$ac_exeext conftest.$ac_ext
14916 LIBS=$ac_check_lib_save_LIBS
14918 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14919 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14920 if test $ac_cv_lib_c_r_pthread_create = yes; then
14921 cat >>confdefs.h <<\_ACEOF
14922 #define WITH_THREAD 1
14923 _ACEOF
14925 posix_threads=yes
14926 LIBS="$LIBS -lc_r"
14927 THREADOBJ="Python/thread.o"
14928 else
14930 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14931 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14932 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935 ac_check_lib_save_LIBS=$LIBS
14936 LIBS="-lpthread $LIBS"
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h. */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14944 /* Override any GCC internal prototype to avoid an error.
14945 Use char because int might match the return type of a GCC
14946 builtin and then its argument prototype would still apply. */
14947 #ifdef __cplusplus
14948 extern "C"
14949 #endif
14950 char __pthread_create_system ();
14952 main ()
14954 return __pthread_create_system ();
14956 return 0;
14958 _ACEOF
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (ac_try="$ac_link"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_link") 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } && {
14973 test -z "$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 } && test -s conftest$ac_exeext &&
14976 $as_test_x conftest$ac_exeext; then
14977 ac_cv_lib_pthread___pthread_create_system=yes
14978 else
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 ac_cv_lib_pthread___pthread_create_system=no
14985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14986 conftest$ac_exeext conftest.$ac_ext
14987 LIBS=$ac_check_lib_save_LIBS
14989 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14990 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14991 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14992 cat >>confdefs.h <<\_ACEOF
14993 #define WITH_THREAD 1
14994 _ACEOF
14996 posix_threads=yes
14997 LIBS="$LIBS -lpthread"
14998 THREADOBJ="Python/thread.o"
14999 else
15001 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15002 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15003 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006 ac_check_lib_save_LIBS=$LIBS
15007 LIBS="-lcma $LIBS"
15008 cat >conftest.$ac_ext <<_ACEOF
15009 /* confdefs.h. */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15015 /* Override any GCC internal prototype to avoid an error.
15016 Use char because int might match the return type of a GCC
15017 builtin and then its argument prototype would still apply. */
15018 #ifdef __cplusplus
15019 extern "C"
15020 #endif
15021 char pthread_create ();
15023 main ()
15025 return pthread_create ();
15027 return 0;
15029 _ACEOF
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (ac_try="$ac_link"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035 esac
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_link") 2>conftest.er1
15038 ac_status=$?
15039 grep -v '^ *+' conftest.er1 >conftest.err
15040 rm -f conftest.er1
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && {
15044 test -z "$ac_c_werror_flag" ||
15045 test ! -s conftest.err
15046 } && test -s conftest$ac_exeext &&
15047 $as_test_x conftest$ac_exeext; then
15048 ac_cv_lib_cma_pthread_create=yes
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_cv_lib_cma_pthread_create=no
15056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15057 conftest$ac_exeext conftest.$ac_ext
15058 LIBS=$ac_check_lib_save_LIBS
15060 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15061 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15062 if test $ac_cv_lib_cma_pthread_create = yes; then
15063 cat >>confdefs.h <<\_ACEOF
15064 #define WITH_THREAD 1
15065 _ACEOF
15067 posix_threads=yes
15068 LIBS="$LIBS -lcma"
15069 THREADOBJ="Python/thread.o"
15070 else
15072 USE_THREAD_MODULE="#"
15092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15093 conftest$ac_exeext conftest.$ac_ext
15103 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15104 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15105 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108 ac_check_lib_save_LIBS=$LIBS
15109 LIBS="-lmpc $LIBS"
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h. */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15117 /* Override any GCC internal prototype to avoid an error.
15118 Use char because int might match the return type of a GCC
15119 builtin and then its argument prototype would still apply. */
15120 #ifdef __cplusplus
15121 extern "C"
15122 #endif
15123 char usconfig ();
15125 main ()
15127 return usconfig ();
15129 return 0;
15131 _ACEOF
15132 rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_link") 2>conftest.er1
15140 ac_status=$?
15141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -f conftest.er1
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest$ac_exeext &&
15149 $as_test_x conftest$ac_exeext; then
15150 ac_cv_lib_mpc_usconfig=yes
15151 else
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 ac_cv_lib_mpc_usconfig=no
15158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15159 conftest$ac_exeext conftest.$ac_ext
15160 LIBS=$ac_check_lib_save_LIBS
15162 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15163 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15164 if test $ac_cv_lib_mpc_usconfig = yes; then
15165 cat >>confdefs.h <<\_ACEOF
15166 #define WITH_THREAD 1
15167 _ACEOF
15169 LIBS="$LIBS -lmpc"
15170 THREADOBJ="Python/thread.o"
15171 USE_THREAD_MODULE=""
15175 if test "$posix_threads" != "yes"; then
15176 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15177 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15178 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181 ac_check_lib_save_LIBS=$LIBS
15182 LIBS="-lthread $LIBS"
15183 cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h. */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15190 /* Override any GCC internal prototype to avoid an error.
15191 Use char because int might match the return type of a GCC
15192 builtin and then its argument prototype would still apply. */
15193 #ifdef __cplusplus
15194 extern "C"
15195 #endif
15196 char thr_create ();
15198 main ()
15200 return thr_create ();
15202 return 0;
15204 _ACEOF
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest$ac_exeext &&
15222 $as_test_x conftest$ac_exeext; then
15223 ac_cv_lib_thread_thr_create=yes
15224 else
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15228 ac_cv_lib_thread_thr_create=no
15231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15232 conftest$ac_exeext conftest.$ac_ext
15233 LIBS=$ac_check_lib_save_LIBS
15235 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15236 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15237 if test $ac_cv_lib_thread_thr_create = yes; then
15238 cat >>confdefs.h <<\_ACEOF
15239 #define WITH_THREAD 1
15240 _ACEOF
15242 LIBS="$LIBS -lthread"
15243 THREADOBJ="Python/thread.o"
15244 USE_THREAD_MODULE=""
15249 if test "$USE_THREAD_MODULE" != "#"
15250 then
15251 # If the above checks didn't disable threads, (at least) OSF1
15252 # needs this '-threads' argument during linking.
15253 case $ac_sys_system in
15254 OSF1) LDLAST=-threads;;
15255 esac
15259 if test "$posix_threads" = "yes"; then
15260 if test "$unistd_defines_pthreads" = "no"; then
15262 cat >>confdefs.h <<\_ACEOF
15263 #define _POSIX_THREADS 1
15264 _ACEOF
15268 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15269 case $ac_sys_system/$ac_sys_release in
15270 SunOS/5.6)
15271 cat >>confdefs.h <<\_ACEOF
15272 #define HAVE_PTHREAD_DESTRUCTOR 1
15273 _ACEOF
15276 SunOS/5.8)
15277 cat >>confdefs.h <<\_ACEOF
15278 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15279 _ACEOF
15282 AIX/5)
15283 cat >>confdefs.h <<\_ACEOF
15284 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15285 _ACEOF
15288 esac
15290 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15291 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15292 if test "${ac_cv_pthread_system_supported+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 else
15295 if test "$cross_compiling" = yes; then
15296 ac_cv_pthread_system_supported=no
15297 else
15298 cat >conftest.$ac_ext <<_ACEOF
15299 /* confdefs.h. */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15304 #include <pthread.h>
15305 void *foo(void *parm) {
15306 return NULL;
15308 main() {
15309 pthread_attr_t attr;
15310 pthread_t id;
15311 if (pthread_attr_init(&attr)) exit(-1);
15312 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15313 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15314 exit(0);
15316 _ACEOF
15317 rm -f conftest$ac_exeext
15318 if { (ac_try="$ac_link"
15319 case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15322 esac
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_link") 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15328 { (case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15337 ac_cv_pthread_system_supported=yes
15338 else
15339 echo "$as_me: program exited with status $ac_status" >&5
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15343 ( exit $ac_status )
15344 ac_cv_pthread_system_supported=no
15346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15353 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15354 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15355 if test "$ac_cv_pthread_system_supported" = "yes"; then
15357 cat >>confdefs.h <<\_ACEOF
15358 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15359 _ACEOF
15363 for ac_func in pthread_sigmask
15365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371 cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h. */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15379 #define $ac_func innocuous_$ac_func
15381 /* System header to define __stub macros and hopefully few prototypes,
15382 which can conflict with char $ac_func (); below.
15383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384 <limits.h> exists even on freestanding compilers. */
15386 #ifdef __STDC__
15387 # include <limits.h>
15388 #else
15389 # include <assert.h>
15390 #endif
15392 #undef $ac_func
15394 /* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
15397 #ifdef __cplusplus
15398 extern "C"
15399 #endif
15400 char $ac_func ();
15401 /* The GNU C library defines this for functions which it implements
15402 to always fail with ENOSYS. Some functions are actually named
15403 something starting with __ and the normal name is an alias. */
15404 #if defined __stub_$ac_func || defined __stub___$ac_func
15405 choke me
15406 #endif
15409 main ()
15411 return $ac_func ();
15413 return 0;
15415 _ACEOF
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (ac_try="$ac_link"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15421 esac
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_link") 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest$ac_exeext &&
15433 $as_test_x conftest$ac_exeext; then
15434 eval "$as_ac_var=yes"
15435 else
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 eval "$as_ac_var=no"
15442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15443 conftest$ac_exeext conftest.$ac_ext
15445 ac_res=`eval echo '${'$as_ac_var'}'`
15446 { echo "$as_me:$LINENO: result: $ac_res" >&5
15447 echo "${ECHO_T}$ac_res" >&6; }
15448 if test `eval echo '${'$as_ac_var'}'` = yes; then
15449 cat >>confdefs.h <<_ACEOF
15450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15451 _ACEOF
15452 case $ac_sys_system in
15453 CYGWIN*)
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15457 _ACEOF
15460 esac
15462 done
15467 # Check for enable-ipv6
15470 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15471 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15472 # Check whether --enable-ipv6 was given.
15473 if test "${enable_ipv6+set}" = set; then
15474 enableval=$enable_ipv6; case "$enableval" in
15476 { echo "$as_me:$LINENO: result: no" >&5
15477 echo "${ECHO_T}no" >&6; }
15478 ipv6=no
15480 *) { echo "$as_me:$LINENO: result: yes" >&5
15481 echo "${ECHO_T}yes" >&6; }
15482 cat >>confdefs.h <<\_ACEOF
15483 #define ENABLE_IPV6 1
15484 _ACEOF
15486 ipv6=yes
15488 esac
15489 else
15491 if test "$cross_compiling" = yes; then
15492 { echo "$as_me:$LINENO: result: no" >&5
15493 echo "${ECHO_T}no" >&6; }
15494 ipv6=no
15496 else
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 /* AF_INET6 available check */
15504 #include <sys/types.h>
15505 #include <sys/socket.h>
15506 main()
15508 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15509 exit(1);
15510 else
15511 exit(0);
15514 _ACEOF
15515 rm -f conftest$ac_exeext
15516 if { (ac_try="$ac_link"
15517 case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_link") 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15526 { (case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_try") 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 { echo "$as_me:$LINENO: result: yes" >&5
15536 echo "${ECHO_T}yes" >&6; }
15537 ipv6=yes
15538 else
15539 echo "$as_me: program exited with status $ac_status" >&5
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ( exit $ac_status )
15544 { echo "$as_me:$LINENO: result: no" >&5
15545 echo "${ECHO_T}no" >&6; }
15546 ipv6=no
15548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15553 if test "$ipv6" = "yes"; then
15554 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15555 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15556 cat >conftest.$ac_ext <<_ACEOF
15557 /* confdefs.h. */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562 #include <sys/types.h>
15563 #include <netinet/in.h>
15565 main ()
15567 struct sockaddr_in6 x;
15568 x.sin6_scope_id;
15570 return 0;
15572 _ACEOF
15573 rm -f conftest.$ac_objext
15574 if { (ac_try="$ac_compile"
15575 case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_compile") 2>conftest.er1
15581 ac_status=$?
15582 grep -v '^ *+' conftest.er1 >conftest.err
15583 rm -f conftest.er1
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } && {
15587 test -z "$ac_c_werror_flag" ||
15588 test ! -s conftest.err
15589 } && test -s conftest.$ac_objext; then
15590 { echo "$as_me:$LINENO: result: yes" >&5
15591 echo "${ECHO_T}yes" >&6; }
15592 ipv6=yes
15593 else
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 { echo "$as_me:$LINENO: result: no" >&5
15598 echo "${ECHO_T}no" >&6; }
15599 ipv6=no
15602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15605 if test "$ipv6" = "yes"; then
15606 cat >>confdefs.h <<\_ACEOF
15607 #define ENABLE_IPV6 1
15608 _ACEOF
15615 ipv6type=unknown
15616 ipv6lib=none
15617 ipv6trylibc=no
15619 if test "$ipv6" = "yes"; then
15620 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15621 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15622 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15624 case $i in
15625 inria)
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h. */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15633 #include <netinet/in.h>
15634 #ifdef IPV6_INRIA_VERSION
15636 #endif
15637 _ACEOF
15638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15639 $EGREP "yes" >/dev/null 2>&1; then
15640 ipv6type=$i
15642 rm -f conftest*
15645 kame)
15646 cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h. */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15653 #include <netinet/in.h>
15654 #ifdef __KAME__
15656 #endif
15657 _ACEOF
15658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15659 $EGREP "yes" >/dev/null 2>&1; then
15660 ipv6type=$i;
15661 ipv6lib=inet6
15662 ipv6libdir=/usr/local/v6/lib
15663 ipv6trylibc=yes
15665 rm -f conftest*
15668 linux-glibc)
15669 cat >conftest.$ac_ext <<_ACEOF
15670 /* confdefs.h. */
15671 _ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15676 #include <features.h>
15677 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15679 #endif
15680 _ACEOF
15681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15682 $EGREP "yes" >/dev/null 2>&1; then
15683 ipv6type=$i;
15684 ipv6trylibc=yes
15686 rm -f conftest*
15689 linux-inet6)
15690 if test -d /usr/inet6; then
15691 ipv6type=$i
15692 ipv6lib=inet6
15693 ipv6libdir=/usr/inet6/lib
15694 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15697 solaris)
15698 if test -f /etc/netconfig; then
15699 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15700 ipv6type=$i
15701 ipv6trylibc=yes
15705 toshiba)
15706 cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h. */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15713 #include <sys/param.h>
15714 #ifdef _TOSHIBA_INET6
15716 #endif
15717 _ACEOF
15718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15719 $EGREP "yes" >/dev/null 2>&1; then
15720 ipv6type=$i;
15721 ipv6lib=inet6;
15722 ipv6libdir=/usr/local/v6/lib
15724 rm -f conftest*
15727 v6d)
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h. */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15735 #include </usr/local/v6/include/sys/v6config.h>
15736 #ifdef __V6D__
15738 #endif
15739 _ACEOF
15740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15741 $EGREP "yes" >/dev/null 2>&1; then
15742 ipv6type=$i;
15743 ipv6lib=v6;
15744 ipv6libdir=/usr/local/v6/lib;
15745 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15747 rm -f conftest*
15750 zeta)
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h. */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15758 #include <sys/param.h>
15759 #ifdef _ZETA_MINAMI_INET6
15761 #endif
15762 _ACEOF
15763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15764 $EGREP "yes" >/dev/null 2>&1; then
15765 ipv6type=$i;
15766 ipv6lib=inet6;
15767 ipv6libdir=/usr/local/v6/lib
15769 rm -f conftest*
15772 esac
15773 if test "$ipv6type" != "unknown"; then
15774 break
15776 done
15777 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15778 echo "${ECHO_T}$ipv6type" >&6; }
15781 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15782 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15783 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15784 echo "using lib$ipv6lib"
15785 else
15786 if test $ipv6trylibc = "yes"; then
15787 echo "using libc"
15788 else
15789 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15790 echo "You need to fetch lib$ipv6lib.a from appropriate"
15791 echo 'ipv6 kit and compile beforehand.'
15792 exit 1
15797 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15798 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h. */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 #include <Carbon/Carbon.h>
15807 main ()
15809 FSIORefNum fRef = 0
15811 return 0;
15813 _ACEOF
15814 rm -f conftest.$ac_objext
15815 if { (ac_try="$ac_compile"
15816 case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819 esac
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_compile") 2>conftest.er1
15822 ac_status=$?
15823 grep -v '^ *+' conftest.er1 >conftest.err
15824 rm -f conftest.er1
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } && {
15828 test -z "$ac_c_werror_flag" ||
15829 test ! -s conftest.err
15830 } && test -s conftest.$ac_objext; then
15832 cat >>confdefs.h <<\_ACEOF
15833 #define HAVE_OSX105_SDK 1
15834 _ACEOF
15836 { echo "$as_me:$LINENO: result: yes" >&5
15837 echo "${ECHO_T}yes" >&6; }
15838 else
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15842 { echo "$as_me:$LINENO: result: no" >&5
15843 echo "${ECHO_T}no" >&6; }
15847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849 # Check for --with-doc-strings
15850 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15851 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15853 # Check whether --with-doc-strings was given.
15854 if test "${with_doc_strings+set}" = set; then
15855 withval=$with_doc_strings;
15859 if test -z "$with_doc_strings"
15860 then with_doc_strings="yes"
15862 if test "$with_doc_strings" != "no"
15863 then
15865 cat >>confdefs.h <<\_ACEOF
15866 #define WITH_DOC_STRINGS 1
15867 _ACEOF
15870 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15871 echo "${ECHO_T}$with_doc_strings" >&6; }
15873 # Check for Python-specific malloc support
15874 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15875 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15877 # Check whether --with-tsc was given.
15878 if test "${with_tsc+set}" = set; then
15879 withval=$with_tsc;
15880 if test "$withval" != no
15881 then
15883 cat >>confdefs.h <<\_ACEOF
15884 #define WITH_TSC 1
15885 _ACEOF
15887 { echo "$as_me:$LINENO: result: yes" >&5
15888 echo "${ECHO_T}yes" >&6; }
15889 else { echo "$as_me:$LINENO: result: no" >&5
15890 echo "${ECHO_T}no" >&6; }
15892 else
15893 { echo "$as_me:$LINENO: result: no" >&5
15894 echo "${ECHO_T}no" >&6; }
15898 # Check for Python-specific malloc support
15899 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15900 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15902 # Check whether --with-pymalloc was given.
15903 if test "${with_pymalloc+set}" = set; then
15904 withval=$with_pymalloc;
15908 if test -z "$with_pymalloc"
15909 then with_pymalloc="yes"
15911 if test "$with_pymalloc" != "no"
15912 then
15914 cat >>confdefs.h <<\_ACEOF
15915 #define WITH_PYMALLOC 1
15916 _ACEOF
15919 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15920 echo "${ECHO_T}$with_pymalloc" >&6; }
15922 # Check for --with-wctype-functions
15923 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15924 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15926 # Check whether --with-wctype-functions was given.
15927 if test "${with_wctype_functions+set}" = set; then
15928 withval=$with_wctype_functions;
15929 if test "$withval" != no
15930 then
15932 cat >>confdefs.h <<\_ACEOF
15933 #define WANT_WCTYPE_FUNCTIONS 1
15934 _ACEOF
15936 { echo "$as_me:$LINENO: result: yes" >&5
15937 echo "${ECHO_T}yes" >&6; }
15938 else { echo "$as_me:$LINENO: result: no" >&5
15939 echo "${ECHO_T}no" >&6; }
15941 else
15942 { echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6; }
15947 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15949 DLINCLDIR=.
15951 # the dlopen() function means we might want to use dynload_shlib.o. some
15952 # platforms, such as AIX, have dlopen(), but don't want to use it.
15954 for ac_func in dlopen
15956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 else
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h. */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15970 #define $ac_func innocuous_$ac_func
15972 /* System header to define __stub macros and hopefully few prototypes,
15973 which can conflict with char $ac_func (); below.
15974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15975 <limits.h> exists even on freestanding compilers. */
15977 #ifdef __STDC__
15978 # include <limits.h>
15979 #else
15980 # include <assert.h>
15981 #endif
15983 #undef $ac_func
15985 /* Override any GCC internal prototype to avoid an error.
15986 Use char because int might match the return type of a GCC
15987 builtin and then its argument prototype would still apply. */
15988 #ifdef __cplusplus
15989 extern "C"
15990 #endif
15991 char $ac_func ();
15992 /* The GNU C library defines this for functions which it implements
15993 to always fail with ENOSYS. Some functions are actually named
15994 something starting with __ and the normal name is an alias. */
15995 #if defined __stub_$ac_func || defined __stub___$ac_func
15996 choke me
15997 #endif
16000 main ()
16002 return $ac_func ();
16004 return 0;
16006 _ACEOF
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (ac_try="$ac_link"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_link") 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } && {
16021 test -z "$ac_c_werror_flag" ||
16022 test ! -s conftest.err
16023 } && test -s conftest$ac_exeext &&
16024 $as_test_x conftest$ac_exeext; then
16025 eval "$as_ac_var=yes"
16026 else
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 eval "$as_ac_var=no"
16033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16034 conftest$ac_exeext conftest.$ac_ext
16036 ac_res=`eval echo '${'$as_ac_var'}'`
16037 { echo "$as_me:$LINENO: result: $ac_res" >&5
16038 echo "${ECHO_T}$ac_res" >&6; }
16039 if test `eval echo '${'$as_ac_var'}'` = yes; then
16040 cat >>confdefs.h <<_ACEOF
16041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16042 _ACEOF
16045 done
16048 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16049 # loading of modules.
16051 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16052 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16053 if test -z "$DYNLOADFILE"
16054 then
16055 case $ac_sys_system/$ac_sys_release in
16056 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16057 if test "$ac_cv_func_dlopen" = yes
16058 then DYNLOADFILE="dynload_shlib.o"
16059 else DYNLOADFILE="dynload_aix.o"
16062 BeOS*) DYNLOADFILE="dynload_beos.o";;
16063 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16064 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16065 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16066 atheos*) DYNLOADFILE="dynload_atheos.o";;
16068 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16069 # out any dynamic loading
16070 if test "$ac_cv_func_dlopen" = yes
16071 then DYNLOADFILE="dynload_shlib.o"
16072 else DYNLOADFILE="dynload_stub.o"
16075 esac
16077 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16078 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16079 if test "$DYNLOADFILE" != "dynload_stub.o"
16080 then
16082 cat >>confdefs.h <<\_ACEOF
16083 #define HAVE_DYNAMIC_LOADING 1
16084 _ACEOF
16088 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16091 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16092 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16093 if test -z "$MACHDEP_OBJS"
16094 then
16095 MACHDEP_OBJS=$extra_machdep_objs
16096 else
16097 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16099 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16100 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16102 # checks for library functions
16184 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16185 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16186 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16187 getpriority getpwent getspnam getspent getsid getwd \
16188 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16189 mremap nice pathconf pause plock poll pthread_init \
16190 putenv readlink realpath \
16191 select setegid seteuid setgid \
16192 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16193 sigaction siginterrupt sigrelse strftime \
16194 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16195 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203 cat >conftest.$ac_ext <<_ACEOF
16204 /* confdefs.h. */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16211 #define $ac_func innocuous_$ac_func
16213 /* System header to define __stub macros and hopefully few prototypes,
16214 which can conflict with char $ac_func (); below.
16215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16216 <limits.h> exists even on freestanding compilers. */
16218 #ifdef __STDC__
16219 # include <limits.h>
16220 #else
16221 # include <assert.h>
16222 #endif
16224 #undef $ac_func
16226 /* Override any GCC internal prototype to avoid an error.
16227 Use char because int might match the return type of a GCC
16228 builtin and then its argument prototype would still apply. */
16229 #ifdef __cplusplus
16230 extern "C"
16231 #endif
16232 char $ac_func ();
16233 /* The GNU C library defines this for functions which it implements
16234 to always fail with ENOSYS. Some functions are actually named
16235 something starting with __ and the normal name is an alias. */
16236 #if defined __stub_$ac_func || defined __stub___$ac_func
16237 choke me
16238 #endif
16241 main ()
16243 return $ac_func ();
16245 return 0;
16247 _ACEOF
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (ac_try="$ac_link"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253 esac
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_link") 2>conftest.er1
16256 ac_status=$?
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest$ac_exeext &&
16265 $as_test_x conftest$ac_exeext; then
16266 eval "$as_ac_var=yes"
16267 else
16268 echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16271 eval "$as_ac_var=no"
16274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16275 conftest$ac_exeext conftest.$ac_ext
16277 ac_res=`eval echo '${'$as_ac_var'}'`
16278 { echo "$as_me:$LINENO: result: $ac_res" >&5
16279 echo "${ECHO_T}$ac_res" >&6; }
16280 if test `eval echo '${'$as_ac_var'}'` = yes; then
16281 cat >>confdefs.h <<_ACEOF
16282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16283 _ACEOF
16286 done
16289 # For some functions, having a definition is not sufficient, since
16290 # we want to take their address.
16291 { echo "$as_me:$LINENO: checking for chroot" >&5
16292 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16293 cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h. */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 #include <unistd.h>
16301 main ()
16303 void *x=chroot
16305 return 0;
16307 _ACEOF
16308 rm -f conftest.$ac_objext
16309 if { (ac_try="$ac_compile"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_compile") 2>conftest.er1
16316 ac_status=$?
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } && {
16322 test -z "$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16324 } && test -s conftest.$ac_objext; then
16326 cat >>confdefs.h <<\_ACEOF
16327 #define HAVE_CHROOT 1
16328 _ACEOF
16330 { echo "$as_me:$LINENO: result: yes" >&5
16331 echo "${ECHO_T}yes" >&6; }
16332 else
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 { echo "$as_me:$LINENO: result: no" >&5
16337 echo "${ECHO_T}no" >&6; }
16341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342 { echo "$as_me:$LINENO: checking for link" >&5
16343 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 #include <unistd.h>
16352 main ()
16354 void *x=link
16356 return 0;
16358 _ACEOF
16359 rm -f conftest.$ac_objext
16360 if { (ac_try="$ac_compile"
16361 case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364 esac
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_compile") 2>conftest.er1
16367 ac_status=$?
16368 grep -v '^ *+' conftest.er1 >conftest.err
16369 rm -f conftest.er1
16370 cat conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } && {
16373 test -z "$ac_c_werror_flag" ||
16374 test ! -s conftest.err
16375 } && test -s conftest.$ac_objext; then
16377 cat >>confdefs.h <<\_ACEOF
16378 #define HAVE_LINK 1
16379 _ACEOF
16381 { echo "$as_me:$LINENO: result: yes" >&5
16382 echo "${ECHO_T}yes" >&6; }
16383 else
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 { echo "$as_me:$LINENO: result: no" >&5
16388 echo "${ECHO_T}no" >&6; }
16392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393 { echo "$as_me:$LINENO: checking for symlink" >&5
16394 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 #include <unistd.h>
16403 main ()
16405 void *x=symlink
16407 return 0;
16409 _ACEOF
16410 rm -f conftest.$ac_objext
16411 if { (ac_try="$ac_compile"
16412 case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415 esac
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_compile") 2>conftest.er1
16418 ac_status=$?
16419 grep -v '^ *+' conftest.er1 >conftest.err
16420 rm -f conftest.er1
16421 cat conftest.err >&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } && {
16424 test -z "$ac_c_werror_flag" ||
16425 test ! -s conftest.err
16426 } && test -s conftest.$ac_objext; then
16428 cat >>confdefs.h <<\_ACEOF
16429 #define HAVE_SYMLINK 1
16430 _ACEOF
16432 { echo "$as_me:$LINENO: result: yes" >&5
16433 echo "${ECHO_T}yes" >&6; }
16434 else
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16438 { echo "$as_me:$LINENO: result: no" >&5
16439 echo "${ECHO_T}no" >&6; }
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444 { echo "$as_me:$LINENO: checking for fchdir" >&5
16445 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16446 cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h. */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 #include <unistd.h>
16454 main ()
16456 void *x=fchdir
16458 return 0;
16460 _ACEOF
16461 rm -f conftest.$ac_objext
16462 if { (ac_try="$ac_compile"
16463 case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16466 esac
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_compile") 2>conftest.er1
16469 ac_status=$?
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } && {
16475 test -z "$ac_c_werror_flag" ||
16476 test ! -s conftest.err
16477 } && test -s conftest.$ac_objext; then
16479 cat >>confdefs.h <<\_ACEOF
16480 #define HAVE_FCHDIR 1
16481 _ACEOF
16483 { echo "$as_me:$LINENO: result: yes" >&5
16484 echo "${ECHO_T}yes" >&6; }
16485 else
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 { echo "$as_me:$LINENO: result: no" >&5
16490 echo "${ECHO_T}no" >&6; }
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 { echo "$as_me:$LINENO: checking for fsync" >&5
16496 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16497 cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h. */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 #include <unistd.h>
16505 main ()
16507 void *x=fsync
16509 return 0;
16511 _ACEOF
16512 rm -f conftest.$ac_objext
16513 if { (ac_try="$ac_compile"
16514 case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16517 esac
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_compile") 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } && {
16526 test -z "$ac_c_werror_flag" ||
16527 test ! -s conftest.err
16528 } && test -s conftest.$ac_objext; then
16530 cat >>confdefs.h <<\_ACEOF
16531 #define HAVE_FSYNC 1
16532 _ACEOF
16534 { echo "$as_me:$LINENO: result: yes" >&5
16535 echo "${ECHO_T}yes" >&6; }
16536 else
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16540 { echo "$as_me:$LINENO: result: no" >&5
16541 echo "${ECHO_T}no" >&6; }
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16547 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16548 cat >conftest.$ac_ext <<_ACEOF
16549 /* confdefs.h. */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 #include <unistd.h>
16556 main ()
16558 void *x=fdatasync
16560 return 0;
16562 _ACEOF
16563 rm -f conftest.$ac_objext
16564 if { (ac_try="$ac_compile"
16565 case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
16571 ac_status=$?
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } && {
16577 test -z "$ac_c_werror_flag" ||
16578 test ! -s conftest.err
16579 } && test -s conftest.$ac_objext; then
16581 cat >>confdefs.h <<\_ACEOF
16582 #define HAVE_FDATASYNC 1
16583 _ACEOF
16585 { echo "$as_me:$LINENO: result: yes" >&5
16586 echo "${ECHO_T}yes" >&6; }
16587 else
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 { echo "$as_me:$LINENO: result: no" >&5
16592 echo "${ECHO_T}no" >&6; }
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597 { echo "$as_me:$LINENO: checking for epoll" >&5
16598 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16599 cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h. */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 #include <sys/epoll.h>
16607 main ()
16609 void *x=epoll_create
16611 return 0;
16613 _ACEOF
16614 rm -f conftest.$ac_objext
16615 if { (ac_try="$ac_compile"
16616 case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_compile") 2>conftest.er1
16622 ac_status=$?
16623 grep -v '^ *+' conftest.er1 >conftest.err
16624 rm -f conftest.er1
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && {
16628 test -z "$ac_c_werror_flag" ||
16629 test ! -s conftest.err
16630 } && test -s conftest.$ac_objext; then
16632 cat >>confdefs.h <<\_ACEOF
16633 #define HAVE_EPOLL 1
16634 _ACEOF
16636 { echo "$as_me:$LINENO: result: yes" >&5
16637 echo "${ECHO_T}yes" >&6; }
16638 else
16639 echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16642 { echo "$as_me:$LINENO: result: no" >&5
16643 echo "${ECHO_T}no" >&6; }
16647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648 { echo "$as_me:$LINENO: checking for kqueue" >&5
16649 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h. */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16657 #include <sys/types.h>
16658 #include <sys/event.h>
16661 main ()
16663 int x=kqueue()
16665 return 0;
16667 _ACEOF
16668 rm -f conftest.$ac_objext
16669 if { (ac_try="$ac_compile"
16670 case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_compile") 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } && {
16682 test -z "$ac_c_werror_flag" ||
16683 test ! -s conftest.err
16684 } && test -s conftest.$ac_objext; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_KQUEUE 1
16688 _ACEOF
16690 { echo "$as_me:$LINENO: result: yes" >&5
16691 echo "${ECHO_T}yes" >&6; }
16692 else
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16696 { echo "$as_me:$LINENO: result: no" >&5
16697 echo "${ECHO_T}no" >&6; }
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 # On some systems (eg. FreeBSD 5), we would find a definition of the
16703 # functions ctermid_r, setgroups in the library, but no prototype
16704 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16705 # address to avoid compiler warnings and potential miscompilations
16706 # because of the missing prototypes.
16708 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16709 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h. */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16717 #include "confdefs.h"
16718 #include <stdio.h>
16721 main ()
16723 void* p = ctermid_r
16725 return 0;
16727 _ACEOF
16728 rm -f conftest.$ac_objext
16729 if { (ac_try="$ac_compile"
16730 case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_compile") 2>conftest.er1
16736 ac_status=$?
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest.$ac_objext; then
16746 cat >>confdefs.h <<\_ACEOF
16747 #define HAVE_CTERMID_R 1
16748 _ACEOF
16750 { echo "$as_me:$LINENO: result: yes" >&5
16751 echo "${ECHO_T}yes" >&6; }
16752 else
16753 echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.$ac_ext >&5
16756 { echo "$as_me:$LINENO: result: no" >&5
16757 echo "${ECHO_T}no" >&6; }
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763 { echo "$as_me:$LINENO: checking for flock" >&5
16764 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16765 cat >conftest.$ac_ext <<_ACEOF
16766 /* confdefs.h. */
16767 _ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16772 #include "confdefs.h"
16773 #include <sys/file.h>
16776 main ()
16778 void* p = flock
16780 return 0;
16782 _ACEOF
16783 rm -f conftest.$ac_objext
16784 if { (ac_try="$ac_compile"
16785 case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16788 esac
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_compile") 2>conftest.er1
16791 ac_status=$?
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } && {
16797 test -z "$ac_c_werror_flag" ||
16798 test ! -s conftest.err
16799 } && test -s conftest.$ac_objext; then
16801 cat >>confdefs.h <<\_ACEOF
16802 #define HAVE_FLOCK 1
16803 _ACEOF
16805 { echo "$as_me:$LINENO: result: yes" >&5
16806 echo "${ECHO_T}yes" >&6; }
16807 else
16808 echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 { echo "$as_me:$LINENO: result: no" >&5
16812 echo "${ECHO_T}no" >&6; }
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16819 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16820 cat >conftest.$ac_ext <<_ACEOF
16821 /* confdefs.h. */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16827 #include "confdefs.h"
16828 #include <unistd.h>
16831 main ()
16833 void* p = getpagesize
16835 return 0;
16837 _ACEOF
16838 rm -f conftest.$ac_objext
16839 if { (ac_try="$ac_compile"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_compile") 2>conftest.er1
16846 ac_status=$?
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest.$ac_objext; then
16856 cat >>confdefs.h <<\_ACEOF
16857 #define HAVE_GETPAGESIZE 1
16858 _ACEOF
16860 { echo "$as_me:$LINENO: result: yes" >&5
16861 echo "${ECHO_T}yes" >&6; }
16862 else
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 { echo "$as_me:$LINENO: result: no" >&5
16867 echo "${ECHO_T}no" >&6; }
16871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873 for ac_prog in true
16875 # Extract the first word of "$ac_prog", so it can be a program name with args.
16876 set dummy $ac_prog; ac_word=$2
16877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16879 if test "${ac_cv_prog_TRUE+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882 if test -n "$TRUE"; then
16883 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16884 else
16885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16886 for as_dir in $PATH
16888 IFS=$as_save_IFS
16889 test -z "$as_dir" && as_dir=.
16890 for ac_exec_ext in '' $ac_executable_extensions; do
16891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16892 ac_cv_prog_TRUE="$ac_prog"
16893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16894 break 2
16896 done
16897 done
16898 IFS=$as_save_IFS
16902 TRUE=$ac_cv_prog_TRUE
16903 if test -n "$TRUE"; then
16904 { echo "$as_me:$LINENO: result: $TRUE" >&5
16905 echo "${ECHO_T}$TRUE" >&6; }
16906 else
16907 { echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6; }
16912 test -n "$TRUE" && break
16913 done
16914 test -n "$TRUE" || TRUE="/bin/true"
16917 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16918 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16919 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922 ac_check_lib_save_LIBS=$LIBS
16923 LIBS="-lc $LIBS"
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h. */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16931 /* Override any GCC internal prototype to avoid an error.
16932 Use char because int might match the return type of a GCC
16933 builtin and then its argument prototype would still apply. */
16934 #ifdef __cplusplus
16935 extern "C"
16936 #endif
16937 char inet_aton ();
16939 main ()
16941 return inet_aton ();
16943 return 0;
16945 _ACEOF
16946 rm -f conftest.$ac_objext conftest$ac_exeext
16947 if { (ac_try="$ac_link"
16948 case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16951 esac
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_link") 2>conftest.er1
16954 ac_status=$?
16955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } && {
16960 test -z "$ac_c_werror_flag" ||
16961 test ! -s conftest.err
16962 } && test -s conftest$ac_exeext &&
16963 $as_test_x conftest$ac_exeext; then
16964 ac_cv_lib_c_inet_aton=yes
16965 else
16966 echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16969 ac_cv_lib_c_inet_aton=no
16972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16973 conftest$ac_exeext conftest.$ac_ext
16974 LIBS=$ac_check_lib_save_LIBS
16976 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16977 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16978 if test $ac_cv_lib_c_inet_aton = yes; then
16979 $ac_cv_prog_TRUE
16980 else
16982 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16983 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16984 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987 ac_check_lib_save_LIBS=$LIBS
16988 LIBS="-lresolv $LIBS"
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h. */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16996 /* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
16999 #ifdef __cplusplus
17000 extern "C"
17001 #endif
17002 char inet_aton ();
17004 main ()
17006 return inet_aton ();
17008 return 0;
17010 _ACEOF
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && {
17025 test -z "$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 } && test -s conftest$ac_exeext &&
17028 $as_test_x conftest$ac_exeext; then
17029 ac_cv_lib_resolv_inet_aton=yes
17030 else
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17034 ac_cv_lib_resolv_inet_aton=no
17037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17038 conftest$ac_exeext conftest.$ac_ext
17039 LIBS=$ac_check_lib_save_LIBS
17041 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17042 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17043 if test $ac_cv_lib_resolv_inet_aton = yes; then
17044 cat >>confdefs.h <<_ACEOF
17045 #define HAVE_LIBRESOLV 1
17046 _ACEOF
17048 LIBS="-lresolv $LIBS"
17056 # On Tru64, chflags seems to be present, but calling it will
17057 # exit Python
17058 { echo "$as_me:$LINENO: checking for chflags" >&5
17059 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17060 if test "$cross_compiling" = yes; then
17061 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17062 See \`config.log' for more details." >&5
17063 echo "$as_me: error: cannot run test program while cross compiling
17064 See \`config.log' for more details." >&2;}
17065 { (exit 1); exit 1; }; }
17066 else
17067 cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h. */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17074 #include <sys/stat.h>
17075 #include <unistd.h>
17076 int main(int argc, char*argv[])
17078 if(chflags(argv[0], 0) != 0)
17079 return 1;
17080 return 0;
17083 _ACEOF
17084 rm -f conftest$ac_exeext
17085 if { (ac_try="$ac_link"
17086 case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_link") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17105 cat >>confdefs.h <<\_ACEOF
17106 #define HAVE_CHFLAGS 1
17107 _ACEOF
17109 { echo "$as_me:$LINENO: result: yes" >&5
17110 echo "${ECHO_T}yes" >&6; }
17111 else
17112 echo "$as_me: program exited with status $ac_status" >&5
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ( exit $ac_status )
17117 { echo "$as_me:$LINENO: result: no" >&5
17118 echo "${ECHO_T}no" >&6; }
17121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17126 { echo "$as_me:$LINENO: checking for lchflags" >&5
17127 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17128 if test "$cross_compiling" = yes; then
17129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17130 See \`config.log' for more details." >&5
17131 echo "$as_me: error: cannot run test program while cross compiling
17132 See \`config.log' for more details." >&2;}
17133 { (exit 1); exit 1; }; }
17134 else
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h. */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17142 #include <sys/stat.h>
17143 #include <unistd.h>
17144 int main(int argc, char*argv[])
17146 if(lchflags(argv[0], 0) != 0)
17147 return 1;
17148 return 0;
17151 _ACEOF
17152 rm -f conftest$ac_exeext
17153 if { (ac_try="$ac_link"
17154 case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17163 { (case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166 esac
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_try") 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17173 cat >>confdefs.h <<\_ACEOF
17174 #define HAVE_LCHFLAGS 1
17175 _ACEOF
17177 { echo "$as_me:$LINENO: result: yes" >&5
17178 echo "${ECHO_T}yes" >&6; }
17179 else
17180 echo "$as_me: program exited with status $ac_status" >&5
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17184 ( exit $ac_status )
17185 { echo "$as_me:$LINENO: result: no" >&5
17186 echo "${ECHO_T}no" >&6; }
17189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17194 case $ac_sys_system/$ac_sys_release in
17195 Darwin/*)
17196 _CUR_CFLAGS="${CFLAGS}"
17197 _CUR_LDFLAGS="${LDFLAGS}"
17198 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17199 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17201 esac
17203 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17204 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17205 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208 ac_check_lib_save_LIBS=$LIBS
17209 LIBS="-lz $LIBS"
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h. */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 char inflateCopy ();
17225 main ()
17227 return inflateCopy ();
17229 return 0;
17231 _ACEOF
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
17240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } && {
17246 test -z "$ac_c_werror_flag" ||
17247 test ! -s conftest.err
17248 } && test -s conftest$ac_exeext &&
17249 $as_test_x conftest$ac_exeext; then
17250 ac_cv_lib_z_inflateCopy=yes
17251 else
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17255 ac_cv_lib_z_inflateCopy=no
17258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17259 conftest$ac_exeext conftest.$ac_ext
17260 LIBS=$ac_check_lib_save_LIBS
17262 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17263 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17264 if test $ac_cv_lib_z_inflateCopy = yes; then
17266 cat >>confdefs.h <<\_ACEOF
17267 #define HAVE_ZLIB_COPY 1
17268 _ACEOF
17273 case $ac_sys_system/$ac_sys_release in
17274 Darwin/*)
17275 CFLAGS="${_CUR_CFLAGS}"
17276 LDFLAGS="${_CUR_LDFLAGS}"
17278 esac
17280 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17281 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17282 cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h. */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17289 #include "confdefs.h"
17290 #include <netdb.h>
17293 main ()
17295 void* p = hstrerror; hstrerror(0)
17297 return 0;
17299 _ACEOF
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (ac_try="$ac_link"
17302 case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_link") 2>conftest.er1
17308 ac_status=$?
17309 grep -v '^ *+' conftest.er1 >conftest.err
17310 rm -f conftest.er1
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest$ac_exeext &&
17317 $as_test_x conftest$ac_exeext; then
17319 cat >>confdefs.h <<\_ACEOF
17320 #define HAVE_HSTRERROR 1
17321 _ACEOF
17323 { echo "$as_me:$LINENO: result: yes" >&5
17324 echo "${ECHO_T}yes" >&6; }
17325 else
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 { echo "$as_me:$LINENO: result: no" >&5
17330 echo "${ECHO_T}no" >&6; }
17334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17335 conftest$ac_exeext conftest.$ac_ext
17337 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17338 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17339 cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h. */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17346 #include "confdefs.h"
17347 #include <sys/types.h>
17348 #include <sys/socket.h>
17349 #include <netinet/in.h>
17350 #include <arpa/inet.h>
17353 main ()
17355 void* p = inet_aton;inet_aton(0,0)
17357 return 0;
17359 _ACEOF
17360 rm -f conftest.$ac_objext conftest$ac_exeext
17361 if { (ac_try="$ac_link"
17362 case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365 esac
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_link") 2>conftest.er1
17368 ac_status=$?
17369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } && {
17374 test -z "$ac_c_werror_flag" ||
17375 test ! -s conftest.err
17376 } && test -s conftest$ac_exeext &&
17377 $as_test_x conftest$ac_exeext; then
17379 cat >>confdefs.h <<\_ACEOF
17380 #define HAVE_INET_ATON 1
17381 _ACEOF
17383 { echo "$as_me:$LINENO: result: yes" >&5
17384 echo "${ECHO_T}yes" >&6; }
17385 else
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17389 { echo "$as_me:$LINENO: result: no" >&5
17390 echo "${ECHO_T}no" >&6; }
17394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17395 conftest$ac_exeext conftest.$ac_ext
17397 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17398 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17399 cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h. */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17406 #include "confdefs.h"
17407 #include <sys/types.h>
17408 #include <sys/socket.h>
17409 #include <netinet/in.h>
17410 #include <arpa/inet.h>
17413 main ()
17415 void* p = inet_pton
17417 return 0;
17419 _ACEOF
17420 rm -f conftest.$ac_objext
17421 if { (ac_try="$ac_compile"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_compile") 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest.$ac_objext; then
17438 cat >>confdefs.h <<\_ACEOF
17439 #define HAVE_INET_PTON 1
17440 _ACEOF
17442 { echo "$as_me:$LINENO: result: yes" >&5
17443 echo "${ECHO_T}yes" >&6; }
17444 else
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 { echo "$as_me:$LINENO: result: no" >&5
17449 echo "${ECHO_T}no" >&6; }
17453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455 # On some systems, setgroups is in unistd.h, on others, in grp.h
17456 { echo "$as_me:$LINENO: checking for setgroups" >&5
17457 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17458 cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h. */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17465 #include "confdefs.h"
17466 #include <unistd.h>
17467 #ifdef HAVE_GRP_H
17468 #include <grp.h>
17469 #endif
17472 main ()
17474 void* p = setgroups
17476 return 0;
17478 _ACEOF
17479 rm -f conftest.$ac_objext
17480 if { (ac_try="$ac_compile"
17481 case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484 esac
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_compile") 2>conftest.er1
17487 ac_status=$?
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && {
17493 test -z "$ac_c_werror_flag" ||
17494 test ! -s conftest.err
17495 } && test -s conftest.$ac_objext; then
17497 cat >>confdefs.h <<\_ACEOF
17498 #define HAVE_SETGROUPS 1
17499 _ACEOF
17501 { echo "$as_me:$LINENO: result: yes" >&5
17502 echo "${ECHO_T}yes" >&6; }
17503 else
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 { echo "$as_me:$LINENO: result: no" >&5
17508 echo "${ECHO_T}no" >&6; }
17512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17514 # check for openpty and forkpty
17517 for ac_func in openpty
17519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h. */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17533 #define $ac_func innocuous_$ac_func
17535 /* System header to define __stub macros and hopefully few prototypes,
17536 which can conflict with char $ac_func (); below.
17537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538 <limits.h> exists even on freestanding compilers. */
17540 #ifdef __STDC__
17541 # include <limits.h>
17542 #else
17543 # include <assert.h>
17544 #endif
17546 #undef $ac_func
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17551 #ifdef __cplusplus
17552 extern "C"
17553 #endif
17554 char $ac_func ();
17555 /* The GNU C library defines this for functions which it implements
17556 to always fail with ENOSYS. Some functions are actually named
17557 something starting with __ and the normal name is an alias. */
17558 #if defined __stub_$ac_func || defined __stub___$ac_func
17559 choke me
17560 #endif
17563 main ()
17565 return $ac_func ();
17567 return 0;
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575 esac
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_link") 2>conftest.er1
17578 ac_status=$?
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && {
17584 test -z "$ac_c_werror_flag" ||
17585 test ! -s conftest.err
17586 } && test -s conftest$ac_exeext &&
17587 $as_test_x conftest$ac_exeext; then
17588 eval "$as_ac_var=yes"
17589 else
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 eval "$as_ac_var=no"
17596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17597 conftest$ac_exeext conftest.$ac_ext
17599 ac_res=`eval echo '${'$as_ac_var'}'`
17600 { echo "$as_me:$LINENO: result: $ac_res" >&5
17601 echo "${ECHO_T}$ac_res" >&6; }
17602 if test `eval echo '${'$as_ac_var'}'` = yes; then
17603 cat >>confdefs.h <<_ACEOF
17604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17605 _ACEOF
17607 else
17608 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17609 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17610 if test "${ac_cv_lib_util_openpty+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613 ac_check_lib_save_LIBS=$LIBS
17614 LIBS="-lutil $LIBS"
17615 cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h. */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17622 /* Override any GCC internal prototype to avoid an error.
17623 Use char because int might match the return type of a GCC
17624 builtin and then its argument prototype would still apply. */
17625 #ifdef __cplusplus
17626 extern "C"
17627 #endif
17628 char openpty ();
17630 main ()
17632 return openpty ();
17634 return 0;
17636 _ACEOF
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (ac_try="$ac_link"
17639 case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17642 esac
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_link") 2>conftest.er1
17645 ac_status=$?
17646 grep -v '^ *+' conftest.er1 >conftest.err
17647 rm -f conftest.er1
17648 cat conftest.err >&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } && {
17651 test -z "$ac_c_werror_flag" ||
17652 test ! -s conftest.err
17653 } && test -s conftest$ac_exeext &&
17654 $as_test_x conftest$ac_exeext; then
17655 ac_cv_lib_util_openpty=yes
17656 else
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_cv_lib_util_openpty=no
17663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17664 conftest$ac_exeext conftest.$ac_ext
17665 LIBS=$ac_check_lib_save_LIBS
17667 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17668 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17669 if test $ac_cv_lib_util_openpty = yes; then
17670 cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_OPENPTY 1
17672 _ACEOF
17673 LIBS="$LIBS -lutil"
17674 else
17675 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17676 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17677 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680 ac_check_lib_save_LIBS=$LIBS
17681 LIBS="-lbsd $LIBS"
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h. */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 /* Override any GCC internal prototype to avoid an error.
17690 Use char because int might match the return type of a GCC
17691 builtin and then its argument prototype would still apply. */
17692 #ifdef __cplusplus
17693 extern "C"
17694 #endif
17695 char openpty ();
17697 main ()
17699 return openpty ();
17701 return 0;
17703 _ACEOF
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (ac_try="$ac_link"
17706 case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_link") 2>conftest.er1
17712 ac_status=$?
17713 grep -v '^ *+' conftest.er1 >conftest.err
17714 rm -f conftest.er1
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } && {
17718 test -z "$ac_c_werror_flag" ||
17719 test ! -s conftest.err
17720 } && test -s conftest$ac_exeext &&
17721 $as_test_x conftest$ac_exeext; then
17722 ac_cv_lib_bsd_openpty=yes
17723 else
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_cv_lib_bsd_openpty=no
17730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17731 conftest$ac_exeext conftest.$ac_ext
17732 LIBS=$ac_check_lib_save_LIBS
17734 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17735 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17736 if test $ac_cv_lib_bsd_openpty = yes; then
17737 cat >>confdefs.h <<\_ACEOF
17738 #define HAVE_OPENPTY 1
17739 _ACEOF
17740 LIBS="$LIBS -lbsd"
17748 done
17751 for ac_func in forkpty
17753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 else
17759 cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h. */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17767 #define $ac_func innocuous_$ac_func
17769 /* System header to define __stub macros and hopefully few prototypes,
17770 which can conflict with char $ac_func (); below.
17771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17772 <limits.h> exists even on freestanding compilers. */
17774 #ifdef __STDC__
17775 # include <limits.h>
17776 #else
17777 # include <assert.h>
17778 #endif
17780 #undef $ac_func
17782 /* Override any GCC internal prototype to avoid an error.
17783 Use char because int might match the return type of a GCC
17784 builtin and then its argument prototype would still apply. */
17785 #ifdef __cplusplus
17786 extern "C"
17787 #endif
17788 char $ac_func ();
17789 /* The GNU C library defines this for functions which it implements
17790 to always fail with ENOSYS. Some functions are actually named
17791 something starting with __ and the normal name is an alias. */
17792 #if defined __stub_$ac_func || defined __stub___$ac_func
17793 choke me
17794 #endif
17797 main ()
17799 return $ac_func ();
17801 return 0;
17803 _ACEOF
17804 rm -f conftest.$ac_objext conftest$ac_exeext
17805 if { (ac_try="$ac_link"
17806 case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_link") 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } && {
17818 test -z "$ac_c_werror_flag" ||
17819 test ! -s conftest.err
17820 } && test -s conftest$ac_exeext &&
17821 $as_test_x conftest$ac_exeext; then
17822 eval "$as_ac_var=yes"
17823 else
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 eval "$as_ac_var=no"
17830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17831 conftest$ac_exeext conftest.$ac_ext
17833 ac_res=`eval echo '${'$as_ac_var'}'`
17834 { echo "$as_me:$LINENO: result: $ac_res" >&5
17835 echo "${ECHO_T}$ac_res" >&6; }
17836 if test `eval echo '${'$as_ac_var'}'` = yes; then
17837 cat >>confdefs.h <<_ACEOF
17838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17839 _ACEOF
17841 else
17842 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17843 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17844 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847 ac_check_lib_save_LIBS=$LIBS
17848 LIBS="-lutil $LIBS"
17849 cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h. */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17856 /* Override any GCC internal prototype to avoid an error.
17857 Use char because int might match the return type of a GCC
17858 builtin and then its argument prototype would still apply. */
17859 #ifdef __cplusplus
17860 extern "C"
17861 #endif
17862 char forkpty ();
17864 main ()
17866 return forkpty ();
17868 return 0;
17870 _ACEOF
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876 esac
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_link") 2>conftest.er1
17879 ac_status=$?
17880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -f conftest.er1
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } && {
17885 test -z "$ac_c_werror_flag" ||
17886 test ! -s conftest.err
17887 } && test -s conftest$ac_exeext &&
17888 $as_test_x conftest$ac_exeext; then
17889 ac_cv_lib_util_forkpty=yes
17890 else
17891 echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17894 ac_cv_lib_util_forkpty=no
17897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17898 conftest$ac_exeext conftest.$ac_ext
17899 LIBS=$ac_check_lib_save_LIBS
17901 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17902 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17903 if test $ac_cv_lib_util_forkpty = yes; then
17904 cat >>confdefs.h <<\_ACEOF
17905 #define HAVE_FORKPTY 1
17906 _ACEOF
17907 LIBS="$LIBS -lutil"
17908 else
17909 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17910 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17911 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914 ac_check_lib_save_LIBS=$LIBS
17915 LIBS="-lbsd $LIBS"
17916 cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h. */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17923 /* Override any GCC internal prototype to avoid an error.
17924 Use char because int might match the return type of a GCC
17925 builtin and then its argument prototype would still apply. */
17926 #ifdef __cplusplus
17927 extern "C"
17928 #endif
17929 char forkpty ();
17931 main ()
17933 return forkpty ();
17935 return 0;
17937 _ACEOF
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (ac_try="$ac_link"
17940 case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17943 esac
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_link") 2>conftest.er1
17946 ac_status=$?
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } && {
17952 test -z "$ac_c_werror_flag" ||
17953 test ! -s conftest.err
17954 } && test -s conftest$ac_exeext &&
17955 $as_test_x conftest$ac_exeext; then
17956 ac_cv_lib_bsd_forkpty=yes
17957 else
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_cv_lib_bsd_forkpty=no
17964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17965 conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17968 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17969 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17970 if test $ac_cv_lib_bsd_forkpty = yes; then
17971 cat >>confdefs.h <<\_ACEOF
17972 #define HAVE_FORKPTY 1
17973 _ACEOF
17974 LIBS="$LIBS -lbsd"
17982 done
17985 # Stuff for expat.
17987 for ac_func in memmove
17989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995 cat >conftest.$ac_ext <<_ACEOF
17996 /* confdefs.h. */
17997 _ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18003 #define $ac_func innocuous_$ac_func
18005 /* System header to define __stub macros and hopefully few prototypes,
18006 which can conflict with char $ac_func (); below.
18007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18008 <limits.h> exists even on freestanding compilers. */
18010 #ifdef __STDC__
18011 # include <limits.h>
18012 #else
18013 # include <assert.h>
18014 #endif
18016 #undef $ac_func
18018 /* Override any GCC internal prototype to avoid an error.
18019 Use char because int might match the return type of a GCC
18020 builtin and then its argument prototype would still apply. */
18021 #ifdef __cplusplus
18022 extern "C"
18023 #endif
18024 char $ac_func ();
18025 /* The GNU C library defines this for functions which it implements
18026 to always fail with ENOSYS. Some functions are actually named
18027 something starting with __ and the normal name is an alias. */
18028 #if defined __stub_$ac_func || defined __stub___$ac_func
18029 choke me
18030 #endif
18033 main ()
18035 return $ac_func ();
18037 return 0;
18039 _ACEOF
18040 rm -f conftest.$ac_objext conftest$ac_exeext
18041 if { (ac_try="$ac_link"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_link") 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } && {
18054 test -z "$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18056 } && test -s conftest$ac_exeext &&
18057 $as_test_x conftest$ac_exeext; then
18058 eval "$as_ac_var=yes"
18059 else
18060 echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18063 eval "$as_ac_var=no"
18066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18067 conftest$ac_exeext conftest.$ac_ext
18069 ac_res=`eval echo '${'$as_ac_var'}'`
18070 { echo "$as_me:$LINENO: result: $ac_res" >&5
18071 echo "${ECHO_T}$ac_res" >&6; }
18072 if test `eval echo '${'$as_ac_var'}'` = yes; then
18073 cat >>confdefs.h <<_ACEOF
18074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18075 _ACEOF
18078 done
18081 # check for long file support functions
18088 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 else
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18104 #define $ac_func innocuous_$ac_func
18106 /* System header to define __stub macros and hopefully few prototypes,
18107 which can conflict with char $ac_func (); below.
18108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18109 <limits.h> exists even on freestanding compilers. */
18111 #ifdef __STDC__
18112 # include <limits.h>
18113 #else
18114 # include <assert.h>
18115 #endif
18117 #undef $ac_func
18119 /* Override any GCC internal prototype to avoid an error.
18120 Use char because int might match the return type of a GCC
18121 builtin and then its argument prototype would still apply. */
18122 #ifdef __cplusplus
18123 extern "C"
18124 #endif
18125 char $ac_func ();
18126 /* The GNU C library defines this for functions which it implements
18127 to always fail with ENOSYS. Some functions are actually named
18128 something starting with __ and the normal name is an alias. */
18129 #if defined __stub_$ac_func || defined __stub___$ac_func
18130 choke me
18131 #endif
18134 main ()
18136 return $ac_func ();
18138 return 0;
18140 _ACEOF
18141 rm -f conftest.$ac_objext conftest$ac_exeext
18142 if { (ac_try="$ac_link"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18146 esac
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_link") 2>conftest.er1
18149 ac_status=$?
18150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } && {
18155 test -z "$ac_c_werror_flag" ||
18156 test ! -s conftest.err
18157 } && test -s conftest$ac_exeext &&
18158 $as_test_x conftest$ac_exeext; then
18159 eval "$as_ac_var=yes"
18160 else
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 eval "$as_ac_var=no"
18167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18168 conftest$ac_exeext conftest.$ac_ext
18170 ac_res=`eval echo '${'$as_ac_var'}'`
18171 { echo "$as_me:$LINENO: result: $ac_res" >&5
18172 echo "${ECHO_T}$ac_res" >&6; }
18173 if test `eval echo '${'$as_ac_var'}'` = yes; then
18174 cat >>confdefs.h <<_ACEOF
18175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18176 _ACEOF
18179 done
18185 for ac_func in dup2 getcwd strdup
18187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 else
18193 cat >conftest.$ac_ext <<_ACEOF
18194 /* confdefs.h. */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18201 #define $ac_func innocuous_$ac_func
18203 /* System header to define __stub macros and hopefully few prototypes,
18204 which can conflict with char $ac_func (); below.
18205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18206 <limits.h> exists even on freestanding compilers. */
18208 #ifdef __STDC__
18209 # include <limits.h>
18210 #else
18211 # include <assert.h>
18212 #endif
18214 #undef $ac_func
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 char $ac_func ();
18223 /* The GNU C library defines this for functions which it implements
18224 to always fail with ENOSYS. Some functions are actually named
18225 something starting with __ and the normal name is an alias. */
18226 #if defined __stub_$ac_func || defined __stub___$ac_func
18227 choke me
18228 #endif
18231 main ()
18233 return $ac_func ();
18235 return 0;
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest$ac_exeext &&
18255 $as_test_x conftest$ac_exeext; then
18256 eval "$as_ac_var=yes"
18257 else
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 eval "$as_ac_var=no"
18264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18265 conftest$ac_exeext conftest.$ac_ext
18267 ac_res=`eval echo '${'$as_ac_var'}'`
18268 { echo "$as_me:$LINENO: result: $ac_res" >&5
18269 echo "${ECHO_T}$ac_res" >&6; }
18270 if test `eval echo '${'$as_ac_var'}'` = yes; then
18271 cat >>confdefs.h <<_ACEOF
18272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18273 _ACEOF
18275 else
18276 case " $LIBOBJS " in
18277 *" $ac_func.$ac_objext "* ) ;;
18278 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18280 esac
18283 done
18287 for ac_func in getpgrp
18289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 else
18295 cat >conftest.$ac_ext <<_ACEOF
18296 /* confdefs.h. */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18303 #define $ac_func innocuous_$ac_func
18305 /* System header to define __stub macros and hopefully few prototypes,
18306 which can conflict with char $ac_func (); below.
18307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18308 <limits.h> exists even on freestanding compilers. */
18310 #ifdef __STDC__
18311 # include <limits.h>
18312 #else
18313 # include <assert.h>
18314 #endif
18316 #undef $ac_func
18318 /* Override any GCC internal prototype to avoid an error.
18319 Use char because int might match the return type of a GCC
18320 builtin and then its argument prototype would still apply. */
18321 #ifdef __cplusplus
18322 extern "C"
18323 #endif
18324 char $ac_func ();
18325 /* The GNU C library defines this for functions which it implements
18326 to always fail with ENOSYS. Some functions are actually named
18327 something starting with __ and the normal name is an alias. */
18328 #if defined __stub_$ac_func || defined __stub___$ac_func
18329 choke me
18330 #endif
18333 main ()
18335 return $ac_func ();
18337 return 0;
18339 _ACEOF
18340 rm -f conftest.$ac_objext conftest$ac_exeext
18341 if { (ac_try="$ac_link"
18342 case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_link") 2>conftest.er1
18348 ac_status=$?
18349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest$ac_exeext &&
18357 $as_test_x conftest$ac_exeext; then
18358 eval "$as_ac_var=yes"
18359 else
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18363 eval "$as_ac_var=no"
18366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18367 conftest$ac_exeext conftest.$ac_ext
18369 ac_res=`eval echo '${'$as_ac_var'}'`
18370 { echo "$as_me:$LINENO: result: $ac_res" >&5
18371 echo "${ECHO_T}$ac_res" >&6; }
18372 if test `eval echo '${'$as_ac_var'}'` = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18375 _ACEOF
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h. */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18382 #include <unistd.h>
18384 main ()
18386 getpgrp(0);
18388 return 0;
18390 _ACEOF
18391 rm -f conftest.$ac_objext
18392 if { (ac_try="$ac_compile"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396 esac
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_compile") 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } && {
18405 test -z "$ac_c_werror_flag" ||
18406 test ! -s conftest.err
18407 } && test -s conftest.$ac_objext; then
18409 cat >>confdefs.h <<\_ACEOF
18410 #define GETPGRP_HAVE_ARG 1
18411 _ACEOF
18414 else
18415 echo "$as_me: failed program was:" >&5
18416 sed 's/^/| /' conftest.$ac_ext >&5
18421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18424 done
18427 for ac_func in setpgrp
18429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18434 else
18435 cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h. */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18443 #define $ac_func innocuous_$ac_func
18445 /* System header to define __stub macros and hopefully few prototypes,
18446 which can conflict with char $ac_func (); below.
18447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18448 <limits.h> exists even on freestanding compilers. */
18450 #ifdef __STDC__
18451 # include <limits.h>
18452 #else
18453 # include <assert.h>
18454 #endif
18456 #undef $ac_func
18458 /* Override any GCC internal prototype to avoid an error.
18459 Use char because int might match the return type of a GCC
18460 builtin and then its argument prototype would still apply. */
18461 #ifdef __cplusplus
18462 extern "C"
18463 #endif
18464 char $ac_func ();
18465 /* The GNU C library defines this for functions which it implements
18466 to always fail with ENOSYS. Some functions are actually named
18467 something starting with __ and the normal name is an alias. */
18468 #if defined __stub_$ac_func || defined __stub___$ac_func
18469 choke me
18470 #endif
18473 main ()
18475 return $ac_func ();
18477 return 0;
18479 _ACEOF
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (ac_try="$ac_link"
18482 case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485 esac
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_link") 2>conftest.er1
18488 ac_status=$?
18489 grep -v '^ *+' conftest.er1 >conftest.err
18490 rm -f conftest.er1
18491 cat conftest.err >&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } && {
18494 test -z "$ac_c_werror_flag" ||
18495 test ! -s conftest.err
18496 } && test -s conftest$ac_exeext &&
18497 $as_test_x conftest$ac_exeext; then
18498 eval "$as_ac_var=yes"
18499 else
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18503 eval "$as_ac_var=no"
18506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18507 conftest$ac_exeext conftest.$ac_ext
18509 ac_res=`eval echo '${'$as_ac_var'}'`
18510 { echo "$as_me:$LINENO: result: $ac_res" >&5
18511 echo "${ECHO_T}$ac_res" >&6; }
18512 if test `eval echo '${'$as_ac_var'}'` = yes; then
18513 cat >>confdefs.h <<_ACEOF
18514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18515 _ACEOF
18516 cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h. */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 #include <unistd.h>
18524 main ()
18526 setpgrp(0,0);
18528 return 0;
18530 _ACEOF
18531 rm -f conftest.$ac_objext
18532 if { (ac_try="$ac_compile"
18533 case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_compile") 2>conftest.er1
18539 ac_status=$?
18540 grep -v '^ *+' conftest.er1 >conftest.err
18541 rm -f conftest.er1
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } && {
18545 test -z "$ac_c_werror_flag" ||
18546 test ! -s conftest.err
18547 } && test -s conftest.$ac_objext; then
18549 cat >>confdefs.h <<\_ACEOF
18550 #define SETPGRP_HAVE_ARG 1
18551 _ACEOF
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18564 done
18567 for ac_func in gettimeofday
18569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h. */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18583 #define $ac_func innocuous_$ac_func
18585 /* System header to define __stub macros and hopefully few prototypes,
18586 which can conflict with char $ac_func (); below.
18587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18588 <limits.h> exists even on freestanding compilers. */
18590 #ifdef __STDC__
18591 # include <limits.h>
18592 #else
18593 # include <assert.h>
18594 #endif
18596 #undef $ac_func
18598 /* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18601 #ifdef __cplusplus
18602 extern "C"
18603 #endif
18604 char $ac_func ();
18605 /* The GNU C library defines this for functions which it implements
18606 to always fail with ENOSYS. Some functions are actually named
18607 something starting with __ and the normal name is an alias. */
18608 #if defined __stub_$ac_func || defined __stub___$ac_func
18609 choke me
18610 #endif
18613 main ()
18615 return $ac_func ();
18617 return 0;
18619 _ACEOF
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_link") 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest$ac_exeext &&
18637 $as_test_x conftest$ac_exeext; then
18638 eval "$as_ac_var=yes"
18639 else
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18643 eval "$as_ac_var=no"
18646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18647 conftest$ac_exeext conftest.$ac_ext
18649 ac_res=`eval echo '${'$as_ac_var'}'`
18650 { echo "$as_me:$LINENO: result: $ac_res" >&5
18651 echo "${ECHO_T}$ac_res" >&6; }
18652 if test `eval echo '${'$as_ac_var'}'` = yes; then
18653 cat >>confdefs.h <<_ACEOF
18654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18655 _ACEOF
18656 cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h. */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 #include <sys/time.h>
18664 main ()
18666 gettimeofday((struct timeval*)0,(struct timezone*)0);
18668 return 0;
18670 _ACEOF
18671 rm -f conftest.$ac_objext
18672 if { (ac_try="$ac_compile"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_compile") 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } && {
18685 test -z "$ac_c_werror_flag" ||
18686 test ! -s conftest.err
18687 } && test -s conftest.$ac_objext; then
18689 else
18690 echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18694 cat >>confdefs.h <<\_ACEOF
18695 #define GETTIMEOFDAY_NO_TZ 1
18696 _ACEOF
18701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18704 done
18707 { echo "$as_me:$LINENO: checking for major" >&5
18708 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h. */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18716 #if defined(MAJOR_IN_MKDEV)
18717 #include <sys/mkdev.h>
18718 #elif defined(MAJOR_IN_SYSMACROS)
18719 #include <sys/sysmacros.h>
18720 #else
18721 #include <sys/types.h>
18722 #endif
18725 main ()
18728 makedev(major(0),minor(0));
18731 return 0;
18733 _ACEOF
18734 rm -f conftest.$ac_objext conftest$ac_exeext
18735 if { (ac_try="$ac_link"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_link") 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } && {
18748 test -z "$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest$ac_exeext &&
18751 $as_test_x conftest$ac_exeext; then
18754 cat >>confdefs.h <<\_ACEOF
18755 #define HAVE_DEVICE_MACROS 1
18756 _ACEOF
18758 { echo "$as_me:$LINENO: result: yes" >&5
18759 echo "${ECHO_T}yes" >&6; }
18761 else
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18766 { echo "$as_me:$LINENO: result: no" >&5
18767 echo "${ECHO_T}no" >&6; }
18771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18772 conftest$ac_exeext conftest.$ac_ext
18774 # On OSF/1 V5.1, getaddrinfo is available, but a define
18775 # for [no]getaddrinfo in netdb.h.
18776 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18777 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18778 cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h. */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18785 #include <sys/types.h>
18786 #include <sys/socket.h>
18787 #include <netdb.h>
18788 #include <stdio.h>
18791 main ()
18794 getaddrinfo(NULL, NULL, NULL, NULL);
18797 return 0;
18799 _ACEOF
18800 rm -f conftest.$ac_objext conftest$ac_exeext
18801 if { (ac_try="$ac_link"
18802 case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18805 esac
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_link") 2>conftest.er1
18808 ac_status=$?
18809 grep -v '^ *+' conftest.er1 >conftest.err
18810 rm -f conftest.er1
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } && {
18814 test -z "$ac_c_werror_flag" ||
18815 test ! -s conftest.err
18816 } && test -s conftest$ac_exeext &&
18817 $as_test_x conftest$ac_exeext; then
18819 { echo "$as_me:$LINENO: result: yes" >&5
18820 echo "${ECHO_T}yes" >&6; }
18821 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18822 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18823 if test "$cross_compiling" = yes; then
18824 { echo "$as_me:$LINENO: result: buggy" >&5
18825 echo "${ECHO_T}buggy" >&6; }
18826 buggygetaddrinfo=yes
18827 else
18828 cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h. */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18835 #include <sys/types.h>
18836 #include <netdb.h>
18837 #include <string.h>
18838 #include <sys/socket.h>
18839 #include <netinet/in.h>
18841 main()
18843 int passive, gaierr, inet4 = 0, inet6 = 0;
18844 struct addrinfo hints, *ai, *aitop;
18845 char straddr[INET6_ADDRSTRLEN], strport[16];
18847 for (passive = 0; passive <= 1; passive++) {
18848 memset(&hints, 0, sizeof(hints));
18849 hints.ai_family = AF_UNSPEC;
18850 hints.ai_flags = passive ? AI_PASSIVE : 0;
18851 hints.ai_socktype = SOCK_STREAM;
18852 hints.ai_protocol = IPPROTO_TCP;
18853 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18854 (void)gai_strerror(gaierr);
18855 goto bad;
18857 for (ai = aitop; ai; ai = ai->ai_next) {
18858 if (ai->ai_addr == NULL ||
18859 ai->ai_addrlen == 0 ||
18860 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18861 straddr, sizeof(straddr), strport, sizeof(strport),
18862 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18863 goto bad;
18865 switch (ai->ai_family) {
18866 case AF_INET:
18867 if (strcmp(strport, "54321") != 0) {
18868 goto bad;
18870 if (passive) {
18871 if (strcmp(straddr, "0.0.0.0") != 0) {
18872 goto bad;
18874 } else {
18875 if (strcmp(straddr, "127.0.0.1") != 0) {
18876 goto bad;
18879 inet4++;
18880 break;
18881 case AF_INET6:
18882 if (strcmp(strport, "54321") != 0) {
18883 goto bad;
18885 if (passive) {
18886 if (strcmp(straddr, "::") != 0) {
18887 goto bad;
18889 } else {
18890 if (strcmp(straddr, "::1") != 0) {
18891 goto bad;
18894 inet6++;
18895 break;
18896 case AF_UNSPEC:
18897 goto bad;
18898 break;
18899 default:
18900 /* another family support? */
18901 break;
18906 if (!(inet4 == 0 || inet4 == 2))
18907 goto bad;
18908 if (!(inet6 == 0 || inet6 == 2))
18909 goto bad;
18911 if (aitop)
18912 freeaddrinfo(aitop);
18913 exit(0);
18915 bad:
18916 if (aitop)
18917 freeaddrinfo(aitop);
18918 exit(1);
18921 _ACEOF
18922 rm -f conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_link") 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18933 { (case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_try") 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 { echo "$as_me:$LINENO: result: good" >&5
18943 echo "${ECHO_T}good" >&6; }
18944 buggygetaddrinfo=no
18945 else
18946 echo "$as_me: program exited with status $ac_status" >&5
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18950 ( exit $ac_status )
18951 { echo "$as_me:$LINENO: result: buggy" >&5
18952 echo "${ECHO_T}buggy" >&6; }
18953 buggygetaddrinfo=yes
18955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18959 else
18960 echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18964 { echo "$as_me:$LINENO: result: no" >&5
18965 echo "${ECHO_T}no" >&6; }
18966 buggygetaddrinfo=yes
18970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18971 conftest$ac_exeext conftest.$ac_ext
18973 if test "$buggygetaddrinfo" = "yes"; then
18974 if test "$ipv6" = "yes"; then
18975 echo 'Fatal: You must get working getaddrinfo() function.'
18976 echo ' or you can specify "--disable-ipv6"'.
18977 exit 1
18979 else
18981 cat >>confdefs.h <<\_ACEOF
18982 #define HAVE_GETADDRINFO 1
18983 _ACEOF
18987 for ac_func in getnameinfo
18989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995 cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h. */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19003 #define $ac_func innocuous_$ac_func
19005 /* System header to define __stub macros and hopefully few prototypes,
19006 which can conflict with char $ac_func (); below.
19007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19008 <limits.h> exists even on freestanding compilers. */
19010 #ifdef __STDC__
19011 # include <limits.h>
19012 #else
19013 # include <assert.h>
19014 #endif
19016 #undef $ac_func
19018 /* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19021 #ifdef __cplusplus
19022 extern "C"
19023 #endif
19024 char $ac_func ();
19025 /* The GNU C library defines this for functions which it implements
19026 to always fail with ENOSYS. Some functions are actually named
19027 something starting with __ and the normal name is an alias. */
19028 #if defined __stub_$ac_func || defined __stub___$ac_func
19029 choke me
19030 #endif
19033 main ()
19035 return $ac_func ();
19037 return 0;
19039 _ACEOF
19040 rm -f conftest.$ac_objext conftest$ac_exeext
19041 if { (ac_try="$ac_link"
19042 case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19045 esac
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_link") 2>conftest.er1
19048 ac_status=$?
19049 grep -v '^ *+' conftest.er1 >conftest.err
19050 rm -f conftest.er1
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } && {
19054 test -z "$ac_c_werror_flag" ||
19055 test ! -s conftest.err
19056 } && test -s conftest$ac_exeext &&
19057 $as_test_x conftest$ac_exeext; then
19058 eval "$as_ac_var=yes"
19059 else
19060 echo "$as_me: failed program was:" >&5
19061 sed 's/^/| /' conftest.$ac_ext >&5
19063 eval "$as_ac_var=no"
19066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19067 conftest$ac_exeext conftest.$ac_ext
19069 ac_res=`eval echo '${'$as_ac_var'}'`
19070 { echo "$as_me:$LINENO: result: $ac_res" >&5
19071 echo "${ECHO_T}$ac_res" >&6; }
19072 if test `eval echo '${'$as_ac_var'}'` = yes; then
19073 cat >>confdefs.h <<_ACEOF
19074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19075 _ACEOF
19078 done
19081 # checks for structures
19082 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19083 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19084 if test "${ac_cv_header_time+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19086 else
19087 cat >conftest.$ac_ext <<_ACEOF
19088 /* confdefs.h. */
19089 _ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19093 #include <sys/types.h>
19094 #include <sys/time.h>
19095 #include <time.h>
19098 main ()
19100 if ((struct tm *) 0)
19101 return 0;
19103 return 0;
19105 _ACEOF
19106 rm -f conftest.$ac_objext
19107 if { (ac_try="$ac_compile"
19108 case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19111 esac
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_compile") 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } && {
19120 test -z "$ac_c_werror_flag" ||
19121 test ! -s conftest.err
19122 } && test -s conftest.$ac_objext; then
19123 ac_cv_header_time=yes
19124 else
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19128 ac_cv_header_time=no
19131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19134 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19135 if test $ac_cv_header_time = yes; then
19137 cat >>confdefs.h <<\_ACEOF
19138 #define TIME_WITH_SYS_TIME 1
19139 _ACEOF
19143 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19144 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19145 if test "${ac_cv_struct_tm+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148 cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h. */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #include <sys/types.h>
19155 #include <time.h>
19158 main ()
19160 struct tm tm;
19161 int *p = &tm.tm_sec;
19162 return !p;
19164 return 0;
19166 _ACEOF
19167 rm -f conftest.$ac_objext
19168 if { (ac_try="$ac_compile"
19169 case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172 esac
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_compile") 2>conftest.er1
19175 ac_status=$?
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } && {
19181 test -z "$ac_c_werror_flag" ||
19182 test ! -s conftest.err
19183 } && test -s conftest.$ac_objext; then
19184 ac_cv_struct_tm=time.h
19185 else
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19189 ac_cv_struct_tm=sys/time.h
19192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19194 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19195 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19196 if test $ac_cv_struct_tm = sys/time.h; then
19198 cat >>confdefs.h <<\_ACEOF
19199 #define TM_IN_SYS_TIME 1
19200 _ACEOF
19204 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19205 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19206 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19208 else
19209 cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h. */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 #include <sys/types.h>
19216 #include <$ac_cv_struct_tm>
19220 main ()
19222 static struct tm ac_aggr;
19223 if (ac_aggr.tm_zone)
19224 return 0;
19226 return 0;
19228 _ACEOF
19229 rm -f conftest.$ac_objext
19230 if { (ac_try="$ac_compile"
19231 case "(($ac_try" in
19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233 *) ac_try_echo=$ac_try;;
19234 esac
19235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236 (eval "$ac_compile") 2>conftest.er1
19237 ac_status=$?
19238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } && {
19243 test -z "$ac_c_werror_flag" ||
19244 test ! -s conftest.err
19245 } && test -s conftest.$ac_objext; then
19246 ac_cv_member_struct_tm_tm_zone=yes
19247 else
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h. */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 #include <sys/types.h>
19258 #include <$ac_cv_struct_tm>
19262 main ()
19264 static struct tm ac_aggr;
19265 if (sizeof ac_aggr.tm_zone)
19266 return 0;
19268 return 0;
19270 _ACEOF
19271 rm -f conftest.$ac_objext
19272 if { (ac_try="$ac_compile"
19273 case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19276 esac
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_compile") 2>conftest.er1
19279 ac_status=$?
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } && {
19285 test -z "$ac_c_werror_flag" ||
19286 test ! -s conftest.err
19287 } && test -s conftest.$ac_objext; then
19288 ac_cv_member_struct_tm_tm_zone=yes
19289 else
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 ac_cv_member_struct_tm_tm_zone=no
19296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19301 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19302 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19303 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19305 cat >>confdefs.h <<_ACEOF
19306 #define HAVE_STRUCT_TM_TM_ZONE 1
19307 _ACEOF
19312 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19314 cat >>confdefs.h <<\_ACEOF
19315 #define HAVE_TM_ZONE 1
19316 _ACEOF
19318 else
19319 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19320 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19321 if test "${ac_cv_have_decl_tzname+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324 cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h. */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330 #include <time.h>
19333 main ()
19335 #ifndef tzname
19336 (void) tzname;
19337 #endif
19340 return 0;
19342 _ACEOF
19343 rm -f conftest.$ac_objext
19344 if { (ac_try="$ac_compile"
19345 case "(($ac_try" in
19346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347 *) ac_try_echo=$ac_try;;
19348 esac
19349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350 (eval "$ac_compile") 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } && {
19357 test -z "$ac_c_werror_flag" ||
19358 test ! -s conftest.err
19359 } && test -s conftest.$ac_objext; then
19360 ac_cv_have_decl_tzname=yes
19361 else
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19365 ac_cv_have_decl_tzname=no
19368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19370 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19371 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19372 if test $ac_cv_have_decl_tzname = yes; then
19374 cat >>confdefs.h <<_ACEOF
19375 #define HAVE_DECL_TZNAME 1
19376 _ACEOF
19379 else
19380 cat >>confdefs.h <<_ACEOF
19381 #define HAVE_DECL_TZNAME 0
19382 _ACEOF
19388 { echo "$as_me:$LINENO: checking for tzname" >&5
19389 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19390 if test "${ac_cv_var_tzname+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 else
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h. */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 #include <time.h>
19400 #if !HAVE_DECL_TZNAME
19401 extern char *tzname[];
19402 #endif
19405 main ()
19407 return tzname[0][0];
19409 return 0;
19411 _ACEOF
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (ac_try="$ac_link"
19414 case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_link") 2>conftest.er1
19420 ac_status=$?
19421 grep -v '^ *+' conftest.er1 >conftest.err
19422 rm -f conftest.er1
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } && {
19426 test -z "$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19428 } && test -s conftest$ac_exeext &&
19429 $as_test_x conftest$ac_exeext; then
19430 ac_cv_var_tzname=yes
19431 else
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ac_cv_var_tzname=no
19438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19439 conftest$ac_exeext conftest.$ac_ext
19441 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19442 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19443 if test $ac_cv_var_tzname = yes; then
19445 cat >>confdefs.h <<\_ACEOF
19446 #define HAVE_TZNAME 1
19447 _ACEOF
19452 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19453 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19454 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457 cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h. */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 $ac_includes_default
19465 main ()
19467 static struct stat ac_aggr;
19468 if (ac_aggr.st_rdev)
19469 return 0;
19471 return 0;
19473 _ACEOF
19474 rm -f conftest.$ac_objext
19475 if { (ac_try="$ac_compile"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19479 esac
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_compile") 2>conftest.er1
19482 ac_status=$?
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } && {
19488 test -z "$ac_c_werror_flag" ||
19489 test ! -s conftest.err
19490 } && test -s conftest.$ac_objext; then
19491 ac_cv_member_struct_stat_st_rdev=yes
19492 else
19493 echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.$ac_ext >&5
19496 cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h. */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 $ac_includes_default
19504 main ()
19506 static struct stat ac_aggr;
19507 if (sizeof ac_aggr.st_rdev)
19508 return 0;
19510 return 0;
19512 _ACEOF
19513 rm -f conftest.$ac_objext
19514 if { (ac_try="$ac_compile"
19515 case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518 esac
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_compile") 2>conftest.er1
19521 ac_status=$?
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } && {
19527 test -z "$ac_c_werror_flag" ||
19528 test ! -s conftest.err
19529 } && test -s conftest.$ac_objext; then
19530 ac_cv_member_struct_stat_st_rdev=yes
19531 else
19532 echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19535 ac_cv_member_struct_stat_st_rdev=no
19538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19543 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19544 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19545 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19547 cat >>confdefs.h <<_ACEOF
19548 #define HAVE_STRUCT_STAT_ST_RDEV 1
19549 _ACEOF
19554 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19555 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19556 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 $ac_includes_default
19567 main ()
19569 static struct stat ac_aggr;
19570 if (ac_aggr.st_blksize)
19571 return 0;
19573 return 0;
19575 _ACEOF
19576 rm -f conftest.$ac_objext
19577 if { (ac_try="$ac_compile"
19578 case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19581 esac
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_compile") 2>conftest.er1
19584 ac_status=$?
19585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } && {
19590 test -z "$ac_c_werror_flag" ||
19591 test ! -s conftest.err
19592 } && test -s conftest.$ac_objext; then
19593 ac_cv_member_struct_stat_st_blksize=yes
19594 else
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h. */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 $ac_includes_default
19606 main ()
19608 static struct stat ac_aggr;
19609 if (sizeof ac_aggr.st_blksize)
19610 return 0;
19612 return 0;
19614 _ACEOF
19615 rm -f conftest.$ac_objext
19616 if { (ac_try="$ac_compile"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_compile") 2>conftest.er1
19623 ac_status=$?
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest.$ac_objext; then
19632 ac_cv_member_struct_stat_st_blksize=yes
19633 else
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 ac_cv_member_struct_stat_st_blksize=no
19640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19645 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19646 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19647 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19649 cat >>confdefs.h <<_ACEOF
19650 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19651 _ACEOF
19656 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19657 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19658 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 else
19661 cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h. */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19667 $ac_includes_default
19669 main ()
19671 static struct stat ac_aggr;
19672 if (ac_aggr.st_flags)
19673 return 0;
19675 return 0;
19677 _ACEOF
19678 rm -f conftest.$ac_objext
19679 if { (ac_try="$ac_compile"
19680 case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683 esac
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_compile") 2>conftest.er1
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } && {
19692 test -z "$ac_c_werror_flag" ||
19693 test ! -s conftest.err
19694 } && test -s conftest.$ac_objext; then
19695 ac_cv_member_struct_stat_st_flags=yes
19696 else
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19700 cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h. */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 $ac_includes_default
19708 main ()
19710 static struct stat ac_aggr;
19711 if (sizeof ac_aggr.st_flags)
19712 return 0;
19714 return 0;
19716 _ACEOF
19717 rm -f conftest.$ac_objext
19718 if { (ac_try="$ac_compile"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_compile") 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest.$ac_objext; then
19734 ac_cv_member_struct_stat_st_flags=yes
19735 else
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 ac_cv_member_struct_stat_st_flags=no
19742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19748 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19749 if test $ac_cv_member_struct_stat_st_flags = yes; then
19751 cat >>confdefs.h <<_ACEOF
19752 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19753 _ACEOF
19758 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19759 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19760 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h. */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 $ac_includes_default
19771 main ()
19773 static struct stat ac_aggr;
19774 if (ac_aggr.st_gen)
19775 return 0;
19777 return 0;
19779 _ACEOF
19780 rm -f conftest.$ac_objext
19781 if { (ac_try="$ac_compile"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_compile") 2>conftest.er1
19788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest.$ac_objext; then
19797 ac_cv_member_struct_stat_st_gen=yes
19798 else
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 cat >conftest.$ac_ext <<_ACEOF
19803 /* confdefs.h. */
19804 _ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h. */
19808 $ac_includes_default
19810 main ()
19812 static struct stat ac_aggr;
19813 if (sizeof ac_aggr.st_gen)
19814 return 0;
19816 return 0;
19818 _ACEOF
19819 rm -f conftest.$ac_objext
19820 if { (ac_try="$ac_compile"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_compile") 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest.$ac_objext; then
19836 ac_cv_member_struct_stat_st_gen=yes
19837 else
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 ac_cv_member_struct_stat_st_gen=no
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19849 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19850 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19851 if test $ac_cv_member_struct_stat_st_gen = yes; then
19853 cat >>confdefs.h <<_ACEOF
19854 #define HAVE_STRUCT_STAT_ST_GEN 1
19855 _ACEOF
19860 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19861 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19862 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h. */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 $ac_includes_default
19873 main ()
19875 static struct stat ac_aggr;
19876 if (ac_aggr.st_birthtime)
19877 return 0;
19879 return 0;
19881 _ACEOF
19882 rm -f conftest.$ac_objext
19883 if { (ac_try="$ac_compile"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } && {
19896 test -z "$ac_c_werror_flag" ||
19897 test ! -s conftest.err
19898 } && test -s conftest.$ac_objext; then
19899 ac_cv_member_struct_stat_st_birthtime=yes
19900 else
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h. */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 $ac_includes_default
19912 main ()
19914 static struct stat ac_aggr;
19915 if (sizeof ac_aggr.st_birthtime)
19916 return 0;
19918 return 0;
19920 _ACEOF
19921 rm -f conftest.$ac_objext
19922 if { (ac_try="$ac_compile"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_compile") 2>conftest.er1
19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest.$ac_objext; then
19938 ac_cv_member_struct_stat_st_birthtime=yes
19939 else
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19943 ac_cv_member_struct_stat_st_birthtime=no
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19952 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19953 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19955 cat >>confdefs.h <<_ACEOF
19956 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19957 _ACEOF
19962 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19963 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19964 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 $ac_includes_default
19975 main ()
19977 static struct stat ac_aggr;
19978 if (ac_aggr.st_blocks)
19979 return 0;
19981 return 0;
19983 _ACEOF
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19992 ac_status=$?
19993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20001 ac_cv_member_struct_stat_st_blocks=yes
20002 else
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h. */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012 $ac_includes_default
20014 main ()
20016 static struct stat ac_aggr;
20017 if (sizeof ac_aggr.st_blocks)
20018 return 0;
20020 return 0;
20022 _ACEOF
20023 rm -f conftest.$ac_objext
20024 if { (ac_try="$ac_compile"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_compile") 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest.$ac_objext; then
20040 ac_cv_member_struct_stat_st_blocks=yes
20041 else
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_cv_member_struct_stat_st_blocks=no
20048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20053 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20054 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20055 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20057 cat >>confdefs.h <<_ACEOF
20058 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20059 _ACEOF
20062 cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_ST_BLOCKS 1
20064 _ACEOF
20066 else
20067 case " $LIBOBJS " in
20068 *" fileblocks.$ac_objext "* ) ;;
20069 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20071 esac
20077 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20078 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20079 if test "${ac_cv_header_time_altzone+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082 cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h. */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 #include <time.h>
20090 main ()
20092 return altzone;
20094 return 0;
20096 _ACEOF
20097 rm -f conftest.$ac_objext
20098 if { (ac_try="$ac_compile"
20099 case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20102 esac
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_compile") 2>conftest.er1
20105 ac_status=$?
20106 grep -v '^ *+' conftest.er1 >conftest.err
20107 rm -f conftest.er1
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } && {
20111 test -z "$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 } && test -s conftest.$ac_objext; then
20114 ac_cv_header_time_altzone=yes
20115 else
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 ac_cv_header_time_altzone=no
20122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20125 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20126 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20127 if test $ac_cv_header_time_altzone = yes; then
20129 cat >>confdefs.h <<\_ACEOF
20130 #define HAVE_ALTZONE 1
20131 _ACEOF
20135 was_it_defined=no
20136 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20137 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20138 cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h. */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20145 #include <sys/types.h>
20146 #include <sys/select.h>
20147 #include <sys/time.h>
20150 main ()
20154 return 0;
20156 _ACEOF
20157 rm -f conftest.$ac_objext
20158 if { (ac_try="$ac_compile"
20159 case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162 esac
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_compile") 2>conftest.er1
20165 ac_status=$?
20166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } && {
20171 test -z "$ac_c_werror_flag" ||
20172 test ! -s conftest.err
20173 } && test -s conftest.$ac_objext; then
20176 cat >>confdefs.h <<\_ACEOF
20177 #define SYS_SELECT_WITH_SYS_TIME 1
20178 _ACEOF
20180 was_it_defined=yes
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20191 echo "${ECHO_T}$was_it_defined" >&6; }
20193 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20194 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20195 if test "${ac_cv_struct_addrinfo+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198 cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h. */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20205 # include <netdb.h>
20207 main ()
20209 struct addrinfo a
20211 return 0;
20213 _ACEOF
20214 rm -f conftest.$ac_objext
20215 if { (ac_try="$ac_compile"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_compile") 2>conftest.er1
20222 ac_status=$?
20223 grep -v '^ *+' conftest.er1 >conftest.err
20224 rm -f conftest.er1
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } && {
20228 test -z "$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20230 } && test -s conftest.$ac_objext; then
20231 ac_cv_struct_addrinfo=yes
20232 else
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ac_cv_struct_addrinfo=no
20239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20242 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20243 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20244 if test $ac_cv_struct_addrinfo = yes; then
20246 cat >>confdefs.h <<\_ACEOF
20247 #define HAVE_ADDRINFO 1
20248 _ACEOF
20252 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20253 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20254 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20256 else
20257 cat >conftest.$ac_ext <<_ACEOF
20258 /* confdefs.h. */
20259 _ACEOF
20260 cat confdefs.h >>conftest.$ac_ext
20261 cat >>conftest.$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20264 # include <sys/types.h>
20265 # include <sys/socket.h>
20267 main ()
20269 struct sockaddr_storage s
20271 return 0;
20273 _ACEOF
20274 rm -f conftest.$ac_objext
20275 if { (ac_try="$ac_compile"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
20282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest.$ac_objext; then
20291 ac_cv_struct_sockaddr_storage=yes
20292 else
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20296 ac_cv_struct_sockaddr_storage=no
20299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20303 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20304 if test $ac_cv_struct_sockaddr_storage = yes; then
20306 cat >>confdefs.h <<\_ACEOF
20307 #define HAVE_SOCKADDR_STORAGE 1
20308 _ACEOF
20312 # checks for compiler characteristics
20315 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20316 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20317 if test "${ac_cv_c_char_unsigned+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320 cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h. */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 $ac_includes_default
20328 main ()
20330 static int test_array [1 - 2 * !(((char) -1) < 0)];
20331 test_array [0] = 0
20334 return 0;
20336 _ACEOF
20337 rm -f conftest.$ac_objext
20338 if { (ac_try="$ac_compile"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_compile") 2>conftest.er1
20345 ac_status=$?
20346 grep -v '^ *+' conftest.er1 >conftest.err
20347 rm -f conftest.er1
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest.$ac_objext; then
20354 ac_cv_c_char_unsigned=no
20355 else
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20359 ac_cv_c_char_unsigned=yes
20362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20364 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20365 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20366 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20367 cat >>confdefs.h <<\_ACEOF
20368 #define __CHAR_UNSIGNED__ 1
20369 _ACEOF
20373 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20374 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20375 if test "${ac_cv_c_const+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h. */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20386 main ()
20388 /* FIXME: Include the comments suggested by Paul. */
20389 #ifndef __cplusplus
20390 /* Ultrix mips cc rejects this. */
20391 typedef int charset[2];
20392 const charset cs;
20393 /* SunOS 4.1.1 cc rejects this. */
20394 char const *const *pcpcc;
20395 char **ppc;
20396 /* NEC SVR4.0.2 mips cc rejects this. */
20397 struct point {int x, y;};
20398 static struct point const zero = {0,0};
20399 /* AIX XL C 1.02.0.0 rejects this.
20400 It does not let you subtract one const X* pointer from another in
20401 an arm of an if-expression whose if-part is not a constant
20402 expression */
20403 const char *g = "string";
20404 pcpcc = &g + (g ? g-g : 0);
20405 /* HPUX 7.0 cc rejects these. */
20406 ++pcpcc;
20407 ppc = (char**) pcpcc;
20408 pcpcc = (char const *const *) ppc;
20409 { /* SCO 3.2v4 cc rejects this. */
20410 char *t;
20411 char const *s = 0 ? (char *) 0 : (char const *) 0;
20413 *t++ = 0;
20414 if (s) return 0;
20416 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20417 int x[] = {25, 17};
20418 const int *foo = &x[0];
20419 ++foo;
20421 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20422 typedef const int *iptr;
20423 iptr p = 0;
20424 ++p;
20426 { /* AIX XL C 1.02.0.0 rejects this saying
20427 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20428 struct s { int j; const int *ap[3]; };
20429 struct s *b; b->j = 5;
20431 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20432 const int foo = 10;
20433 if (!foo) return 0;
20435 return !cs[0] && !zero.x;
20436 #endif
20439 return 0;
20441 _ACEOF
20442 rm -f conftest.$ac_objext
20443 if { (ac_try="$ac_compile"
20444 case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20447 esac
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_compile") 2>conftest.er1
20450 ac_status=$?
20451 grep -v '^ *+' conftest.er1 >conftest.err
20452 rm -f conftest.er1
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } && {
20456 test -z "$ac_c_werror_flag" ||
20457 test ! -s conftest.err
20458 } && test -s conftest.$ac_objext; then
20459 ac_cv_c_const=yes
20460 else
20461 echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.$ac_ext >&5
20464 ac_cv_c_const=no
20467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20469 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20470 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20471 if test $ac_cv_c_const = no; then
20473 cat >>confdefs.h <<\_ACEOF
20474 #define const
20475 _ACEOF
20480 works=no
20481 { echo "$as_me:$LINENO: checking for working volatile" >&5
20482 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20483 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h. */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20491 main ()
20493 volatile int x; x = 0;
20495 return 0;
20497 _ACEOF
20498 rm -f conftest.$ac_objext
20499 if { (ac_try="$ac_compile"
20500 case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503 esac
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_compile") 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && {
20512 test -z "$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20514 } && test -s conftest.$ac_objext; then
20515 works=yes
20516 else
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20521 cat >>confdefs.h <<\_ACEOF
20522 #define volatile
20523 _ACEOF
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529 { echo "$as_me:$LINENO: result: $works" >&5
20530 echo "${ECHO_T}$works" >&6; }
20532 works=no
20533 { echo "$as_me:$LINENO: checking for working signed char" >&5
20534 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20543 main ()
20545 signed char c;
20547 return 0;
20549 _ACEOF
20550 rm -f conftest.$ac_objext
20551 if { (ac_try="$ac_compile"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_compile") 2>conftest.er1
20558 ac_status=$?
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } && {
20564 test -z "$ac_c_werror_flag" ||
20565 test ! -s conftest.err
20566 } && test -s conftest.$ac_objext; then
20567 works=yes
20568 else
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20573 cat >>confdefs.h <<\_ACEOF
20574 #define signed
20575 _ACEOF
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result: $works" >&5
20582 echo "${ECHO_T}$works" >&6; }
20584 have_prototypes=no
20585 { echo "$as_me:$LINENO: checking for prototypes" >&5
20586 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 int foo(int x) { return 0; }
20595 main ()
20597 return foo(10);
20599 return 0;
20601 _ACEOF
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_compile") 2>conftest.er1
20610 ac_status=$?
20611 grep -v '^ *+' conftest.er1 >conftest.err
20612 rm -f conftest.er1
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest.$ac_objext; then
20621 cat >>confdefs.h <<\_ACEOF
20622 #define HAVE_PROTOTYPES 1
20623 _ACEOF
20625 have_prototypes=yes
20627 else
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20635 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20636 echo "${ECHO_T}$have_prototypes" >&6; }
20638 works=no
20639 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20640 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h. */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20648 #include <stdarg.h>
20649 int foo(int x, ...) {
20650 va_list va;
20651 va_start(va, x);
20652 va_arg(va, int);
20653 va_arg(va, char *);
20654 va_arg(va, double);
20655 return 0;
20659 main ()
20661 return foo(10, "", 3.14);
20663 return 0;
20665 _ACEOF
20666 rm -f conftest.$ac_objext
20667 if { (ac_try="$ac_compile"
20668 case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_compile") 2>conftest.er1
20674 ac_status=$?
20675 grep -v '^ *+' conftest.er1 >conftest.err
20676 rm -f conftest.er1
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } && {
20680 test -z "$ac_c_werror_flag" ||
20681 test ! -s conftest.err
20682 } && test -s conftest.$ac_objext; then
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_STDARG_PROTOTYPES 1
20687 _ACEOF
20689 works=yes
20691 else
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20699 { echo "$as_me:$LINENO: result: $works" >&5
20700 echo "${ECHO_T}$works" >&6; }
20702 # check for socketpair
20703 { echo "$as_me:$LINENO: checking for socketpair" >&5
20704 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20705 cat >conftest.$ac_ext <<_ACEOF
20706 /* confdefs.h. */
20707 _ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20712 #include <sys/types.h>
20713 #include <sys/socket.h>
20716 main ()
20718 void *x=socketpair
20720 return 0;
20722 _ACEOF
20723 rm -f conftest.$ac_objext
20724 if { (ac_try="$ac_compile"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20728 esac
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_compile") 2>conftest.er1
20731 ac_status=$?
20732 grep -v '^ *+' conftest.er1 >conftest.err
20733 rm -f conftest.er1
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest.$ac_objext; then
20741 cat >>confdefs.h <<\_ACEOF
20742 #define HAVE_SOCKETPAIR 1
20743 _ACEOF
20745 { echo "$as_me:$LINENO: result: yes" >&5
20746 echo "${ECHO_T}yes" >&6; }
20747 else
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 { echo "$as_me:$LINENO: result: no" >&5
20752 echo "${ECHO_T}no" >&6; }
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758 # check if sockaddr has sa_len member
20759 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20760 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20761 cat >conftest.$ac_ext <<_ACEOF
20762 /* confdefs.h. */
20763 _ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20767 #include <sys/types.h>
20768 #include <sys/socket.h>
20770 main ()
20772 struct sockaddr x;
20773 x.sa_len = 0;
20775 return 0;
20777 _ACEOF
20778 rm -f conftest.$ac_objext
20779 if { (ac_try="$ac_compile"
20780 case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_compile") 2>conftest.er1
20786 ac_status=$?
20787 grep -v '^ *+' conftest.er1 >conftest.err
20788 rm -f conftest.er1
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } && {
20792 test -z "$ac_c_werror_flag" ||
20793 test ! -s conftest.err
20794 } && test -s conftest.$ac_objext; then
20795 { echo "$as_me:$LINENO: result: yes" >&5
20796 echo "${ECHO_T}yes" >&6; }
20798 cat >>confdefs.h <<\_ACEOF
20799 #define HAVE_SOCKADDR_SA_LEN 1
20800 _ACEOF
20802 else
20803 echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20806 { echo "$as_me:$LINENO: result: no" >&5
20807 echo "${ECHO_T}no" >&6; }
20810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20812 va_list_is_array=no
20813 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20814 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20815 cat >conftest.$ac_ext <<_ACEOF
20816 /* confdefs.h. */
20817 _ACEOF
20818 cat confdefs.h >>conftest.$ac_ext
20819 cat >>conftest.$ac_ext <<_ACEOF
20820 /* end confdefs.h. */
20822 #ifdef HAVE_STDARG_PROTOTYPES
20823 #include <stdarg.h>
20824 #else
20825 #include <varargs.h>
20826 #endif
20829 main ()
20831 va_list list1, list2; list1 = list2;
20833 return 0;
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20844 ac_status=$?
20845 grep -v '^ *+' conftest.er1 >conftest.err
20846 rm -f conftest.er1
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.$ac_objext; then
20854 else
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20860 cat >>confdefs.h <<\_ACEOF
20861 #define VA_LIST_IS_ARRAY 1
20862 _ACEOF
20864 va_list_is_array=yes
20868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20869 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20870 echo "${ECHO_T}$va_list_is_array" >&6; }
20872 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20876 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20877 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20878 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20880 else
20881 cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h. */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20889 #define gethostbyname_r innocuous_gethostbyname_r
20891 /* System header to define __stub macros and hopefully few prototypes,
20892 which can conflict with char gethostbyname_r (); below.
20893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20894 <limits.h> exists even on freestanding compilers. */
20896 #ifdef __STDC__
20897 # include <limits.h>
20898 #else
20899 # include <assert.h>
20900 #endif
20902 #undef gethostbyname_r
20904 /* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
20907 #ifdef __cplusplus
20908 extern "C"
20909 #endif
20910 char gethostbyname_r ();
20911 /* The GNU C library defines this for functions which it implements
20912 to always fail with ENOSYS. Some functions are actually named
20913 something starting with __ and the normal name is an alias. */
20914 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20915 choke me
20916 #endif
20919 main ()
20921 return gethostbyname_r ();
20923 return 0;
20925 _ACEOF
20926 rm -f conftest.$ac_objext conftest$ac_exeext
20927 if { (ac_try="$ac_link"
20928 case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20931 esac
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_link") 2>conftest.er1
20934 ac_status=$?
20935 grep -v '^ *+' conftest.er1 >conftest.err
20936 rm -f conftest.er1
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } && {
20940 test -z "$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 } && test -s conftest$ac_exeext &&
20943 $as_test_x conftest$ac_exeext; then
20944 ac_cv_func_gethostbyname_r=yes
20945 else
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 ac_cv_func_gethostbyname_r=no
20952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20953 conftest$ac_exeext conftest.$ac_ext
20955 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20956 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20957 if test $ac_cv_func_gethostbyname_r = yes; then
20959 cat >>confdefs.h <<\_ACEOF
20960 #define HAVE_GETHOSTBYNAME_R 1
20961 _ACEOF
20963 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20964 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20965 OLD_CFLAGS=$CFLAGS
20966 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20967 cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h. */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20974 # include <netdb.h>
20977 main ()
20980 char *name;
20981 struct hostent *he, *res;
20982 char buffer[2048];
20983 int buflen = 2048;
20984 int h_errnop;
20986 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20989 return 0;
20991 _ACEOF
20992 rm -f conftest.$ac_objext
20993 if { (ac_try="$ac_compile"
20994 case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20997 esac
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999 (eval "$ac_compile") 2>conftest.er1
21000 ac_status=$?
21001 grep -v '^ *+' conftest.er1 >conftest.err
21002 rm -f conftest.er1
21003 cat conftest.err >&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } && {
21006 test -z "$ac_c_werror_flag" ||
21007 test ! -s conftest.err
21008 } && test -s conftest.$ac_objext; then
21010 cat >>confdefs.h <<\_ACEOF
21011 #define HAVE_GETHOSTBYNAME_R 1
21012 _ACEOF
21015 cat >>confdefs.h <<\_ACEOF
21016 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21017 _ACEOF
21019 { echo "$as_me:$LINENO: result: yes" >&5
21020 echo "${ECHO_T}yes" >&6; }
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21027 { echo "$as_me:$LINENO: result: no" >&5
21028 echo "${ECHO_T}no" >&6; }
21029 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21030 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21031 cat >conftest.$ac_ext <<_ACEOF
21032 /* confdefs.h. */
21033 _ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21038 # include <netdb.h>
21041 main ()
21044 char *name;
21045 struct hostent *he;
21046 char buffer[2048];
21047 int buflen = 2048;
21048 int h_errnop;
21050 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21053 return 0;
21055 _ACEOF
21056 rm -f conftest.$ac_objext
21057 if { (ac_try="$ac_compile"
21058 case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21061 esac
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_compile") 2>conftest.er1
21064 ac_status=$?
21065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest.$ac_objext; then
21074 cat >>confdefs.h <<\_ACEOF
21075 #define HAVE_GETHOSTBYNAME_R 1
21076 _ACEOF
21079 cat >>confdefs.h <<\_ACEOF
21080 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21081 _ACEOF
21083 { echo "$as_me:$LINENO: result: yes" >&5
21084 echo "${ECHO_T}yes" >&6; }
21086 else
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21091 { echo "$as_me:$LINENO: result: no" >&5
21092 echo "${ECHO_T}no" >&6; }
21093 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21094 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21095 cat >conftest.$ac_ext <<_ACEOF
21096 /* confdefs.h. */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21102 # include <netdb.h>
21105 main ()
21108 char *name;
21109 struct hostent *he;
21110 struct hostent_data data;
21112 (void) gethostbyname_r(name, he, &data);
21115 return 0;
21117 _ACEOF
21118 rm -f conftest.$ac_objext
21119 if { (ac_try="$ac_compile"
21120 case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21123 esac
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_compile") 2>conftest.er1
21126 ac_status=$?
21127 grep -v '^ *+' conftest.er1 >conftest.err
21128 rm -f conftest.er1
21129 cat conftest.err >&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest.$ac_objext; then
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_GETHOSTBYNAME_R 1
21138 _ACEOF
21141 cat >>confdefs.h <<\_ACEOF
21142 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21143 _ACEOF
21145 { echo "$as_me:$LINENO: result: yes" >&5
21146 echo "${ECHO_T}yes" >&6; }
21148 else
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21153 { echo "$as_me:$LINENO: result: no" >&5
21154 echo "${ECHO_T}no" >&6; }
21158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167 CFLAGS=$OLD_CFLAGS
21169 else
21172 for ac_func in gethostbyname
21174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 else
21180 cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h. */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21188 #define $ac_func innocuous_$ac_func
21190 /* System header to define __stub macros and hopefully few prototypes,
21191 which can conflict with char $ac_func (); below.
21192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21193 <limits.h> exists even on freestanding compilers. */
21195 #ifdef __STDC__
21196 # include <limits.h>
21197 #else
21198 # include <assert.h>
21199 #endif
21201 #undef $ac_func
21203 /* Override any GCC internal prototype to avoid an error.
21204 Use char because int might match the return type of a GCC
21205 builtin and then its argument prototype would still apply. */
21206 #ifdef __cplusplus
21207 extern "C"
21208 #endif
21209 char $ac_func ();
21210 /* The GNU C library defines this for functions which it implements
21211 to always fail with ENOSYS. Some functions are actually named
21212 something starting with __ and the normal name is an alias. */
21213 #if defined __stub_$ac_func || defined __stub___$ac_func
21214 choke me
21215 #endif
21218 main ()
21220 return $ac_func ();
21222 return 0;
21224 _ACEOF
21225 rm -f conftest.$ac_objext conftest$ac_exeext
21226 if { (ac_try="$ac_link"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_link") 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest$ac_exeext &&
21242 $as_test_x conftest$ac_exeext; then
21243 eval "$as_ac_var=yes"
21244 else
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 eval "$as_ac_var=no"
21251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21252 conftest$ac_exeext conftest.$ac_ext
21254 ac_res=`eval echo '${'$as_ac_var'}'`
21255 { echo "$as_me:$LINENO: result: $ac_res" >&5
21256 echo "${ECHO_T}$ac_res" >&6; }
21257 if test `eval echo '${'$as_ac_var'}'` = yes; then
21258 cat >>confdefs.h <<_ACEOF
21259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21260 _ACEOF
21263 done
21274 # checks for system services
21275 # (none yet)
21277 # Linux requires this for correct f.p. operations
21278 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21279 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21280 if test "${ac_cv_func___fpu_control+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21291 #define __fpu_control innocuous___fpu_control
21293 /* System header to define __stub macros and hopefully few prototypes,
21294 which can conflict with char __fpu_control (); below.
21295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21296 <limits.h> exists even on freestanding compilers. */
21298 #ifdef __STDC__
21299 # include <limits.h>
21300 #else
21301 # include <assert.h>
21302 #endif
21304 #undef __fpu_control
21306 /* Override any GCC internal prototype to avoid an error.
21307 Use char because int might match the return type of a GCC
21308 builtin and then its argument prototype would still apply. */
21309 #ifdef __cplusplus
21310 extern "C"
21311 #endif
21312 char __fpu_control ();
21313 /* The GNU C library defines this for functions which it implements
21314 to always fail with ENOSYS. Some functions are actually named
21315 something starting with __ and the normal name is an alias. */
21316 #if defined __stub___fpu_control || defined __stub_____fpu_control
21317 choke me
21318 #endif
21321 main ()
21323 return __fpu_control ();
21325 return 0;
21327 _ACEOF
21328 rm -f conftest.$ac_objext conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_link") 2>conftest.er1
21336 ac_status=$?
21337 grep -v '^ *+' conftest.er1 >conftest.err
21338 rm -f conftest.er1
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } && {
21342 test -z "$ac_c_werror_flag" ||
21343 test ! -s conftest.err
21344 } && test -s conftest$ac_exeext &&
21345 $as_test_x conftest$ac_exeext; then
21346 ac_cv_func___fpu_control=yes
21347 else
21348 echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 ac_cv_func___fpu_control=no
21354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21355 conftest$ac_exeext conftest.$ac_ext
21357 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21358 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21359 if test $ac_cv_func___fpu_control = yes; then
21361 else
21363 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21364 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21365 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21367 else
21368 ac_check_lib_save_LIBS=$LIBS
21369 LIBS="-lieee $LIBS"
21370 cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h. */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21377 /* Override any GCC internal prototype to avoid an error.
21378 Use char because int might match the return type of a GCC
21379 builtin and then its argument prototype would still apply. */
21380 #ifdef __cplusplus
21381 extern "C"
21382 #endif
21383 char __fpu_control ();
21385 main ()
21387 return __fpu_control ();
21389 return 0;
21391 _ACEOF
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_link") 2>conftest.er1
21400 ac_status=$?
21401 grep -v '^ *+' conftest.er1 >conftest.err
21402 rm -f conftest.er1
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && {
21406 test -z "$ac_c_werror_flag" ||
21407 test ! -s conftest.err
21408 } && test -s conftest$ac_exeext &&
21409 $as_test_x conftest$ac_exeext; then
21410 ac_cv_lib_ieee___fpu_control=yes
21411 else
21412 echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21415 ac_cv_lib_ieee___fpu_control=no
21418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21419 conftest$ac_exeext conftest.$ac_ext
21420 LIBS=$ac_check_lib_save_LIBS
21422 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21423 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21424 if test $ac_cv_lib_ieee___fpu_control = yes; then
21425 cat >>confdefs.h <<_ACEOF
21426 #define HAVE_LIBIEEE 1
21427 _ACEOF
21429 LIBS="-lieee $LIBS"
21437 # Check for --with-fpectl
21438 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21439 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21441 # Check whether --with-fpectl was given.
21442 if test "${with_fpectl+set}" = set; then
21443 withval=$with_fpectl;
21444 if test "$withval" != no
21445 then
21447 cat >>confdefs.h <<\_ACEOF
21448 #define WANT_SIGFPE_HANDLER 1
21449 _ACEOF
21451 { echo "$as_me:$LINENO: result: yes" >&5
21452 echo "${ECHO_T}yes" >&6; }
21453 else { echo "$as_me:$LINENO: result: no" >&5
21454 echo "${ECHO_T}no" >&6; }
21456 else
21457 { echo "$as_me:$LINENO: result: no" >&5
21458 echo "${ECHO_T}no" >&6; }
21462 # check for --with-libm=...
21464 case $ac_sys_system in
21465 Darwin) ;;
21466 BeOS) ;;
21467 *) LIBM=-lm
21468 esac
21469 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21470 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21472 # Check whether --with-libm was given.
21473 if test "${with_libm+set}" = set; then
21474 withval=$with_libm;
21475 if test "$withval" = no
21476 then LIBM=
21477 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21478 echo "${ECHO_T}force LIBM empty" >&6; }
21479 elif test "$withval" != yes
21480 then LIBM=$withval
21481 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21482 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21483 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21484 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21485 { (exit 1); exit 1; }; }
21487 else
21488 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21489 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21493 # check for --with-libc=...
21495 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21496 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21498 # Check whether --with-libc was given.
21499 if test "${with_libc+set}" = set; then
21500 withval=$with_libc;
21501 if test "$withval" = no
21502 then LIBC=
21503 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21504 echo "${ECHO_T}force LIBC empty" >&6; }
21505 elif test "$withval" != yes
21506 then LIBC=$withval
21507 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21508 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21509 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21510 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21511 { (exit 1); exit 1; }; }
21513 else
21514 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21515 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21519 # ************************************
21520 # * Check for mathematical functions *
21521 # ************************************
21523 LIBS_SAVE=$LIBS
21524 LIBS="$LIBS $LIBM"
21526 # Detect whether system arithmetic is subject to x87-style double
21527 # rounding issues. The result of this test has little meaning on non
21528 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21529 # mode is round-to-nearest and double rounding issues are present, and
21530 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21531 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21532 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21533 if test "${ac_cv_x87_double_rounding+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21535 else
21537 if test "$cross_compiling" = yes; then
21538 ac_cv_x87_double_rounding=no
21539 else
21540 cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h. */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21547 #include <stdlib.h>
21548 #include <math.h>
21549 int main() {
21550 volatile double x, y, z;
21551 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21552 x = 0.99999999999999989; /* 1-2**-53 */
21553 y = 1./x;
21554 if (y != 1.)
21555 exit(0);
21556 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21557 x = 1e16;
21558 y = 2.99999;
21559 z = x + y;
21560 if (z != 1e16+4.)
21561 exit(0);
21562 /* both tests show evidence of double rounding */
21563 exit(1);
21566 _ACEOF
21567 rm -f conftest$ac_exeext
21568 if { (ac_try="$ac_link"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_link") 2>&5
21575 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21578 { (case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583 (eval "$ac_try") 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 ac_cv_x87_double_rounding=no
21588 else
21589 echo "$as_me: program exited with status $ac_status" >&5
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 ( exit $ac_status )
21594 ac_cv_x87_double_rounding=yes
21596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21602 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21603 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21604 if test "$ac_cv_x87_double_rounding" = yes
21605 then
21607 cat >>confdefs.h <<\_ACEOF
21608 #define X87_DOUBLE_ROUNDING 1
21609 _ACEOF
21614 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21615 # -0. on some architectures.
21616 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21617 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21618 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21622 if test "$cross_compiling" = yes; then
21623 ac_cv_tanh_preserves_zero_sign=no
21624 else
21625 cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h. */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21632 #include <math.h>
21633 #include <stdlib.h>
21634 int main() {
21635 /* return 0 if either negative zeros don't exist
21636 on this platform or if negative zeros exist
21637 and tanh(-0.) == -0. */
21638 if (atan2(0., -1.) == atan2(-0., -1.) ||
21639 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21640 else exit(1);
21643 _ACEOF
21644 rm -f conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>&5
21652 ac_status=$?
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21655 { (case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21658 esac
21659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_try") 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21664 ac_cv_tanh_preserves_zero_sign=yes
21665 else
21666 echo "$as_me: program exited with status $ac_status" >&5
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 ( exit $ac_status )
21671 ac_cv_tanh_preserves_zero_sign=no
21673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21679 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21680 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21681 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21682 then
21684 cat >>confdefs.h <<\_ACEOF
21685 #define TANH_PRESERVES_ZERO_SIGN 1
21686 _ACEOF
21698 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
21700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 else
21706 cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h. */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21714 #define $ac_func innocuous_$ac_func
21716 /* System header to define __stub macros and hopefully few prototypes,
21717 which can conflict with char $ac_func (); below.
21718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21719 <limits.h> exists even on freestanding compilers. */
21721 #ifdef __STDC__
21722 # include <limits.h>
21723 #else
21724 # include <assert.h>
21725 #endif
21727 #undef $ac_func
21729 /* Override any GCC internal prototype to avoid an error.
21730 Use char because int might match the return type of a GCC
21731 builtin and then its argument prototype would still apply. */
21732 #ifdef __cplusplus
21733 extern "C"
21734 #endif
21735 char $ac_func ();
21736 /* The GNU C library defines this for functions which it implements
21737 to always fail with ENOSYS. Some functions are actually named
21738 something starting with __ and the normal name is an alias. */
21739 #if defined __stub_$ac_func || defined __stub___$ac_func
21740 choke me
21741 #endif
21744 main ()
21746 return $ac_func ();
21748 return 0;
21750 _ACEOF
21751 rm -f conftest.$ac_objext conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_link") 2>conftest.er1
21759 ac_status=$?
21760 grep -v '^ *+' conftest.er1 >conftest.err
21761 rm -f conftest.er1
21762 cat conftest.err >&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } && {
21765 test -z "$ac_c_werror_flag" ||
21766 test ! -s conftest.err
21767 } && test -s conftest$ac_exeext &&
21768 $as_test_x conftest$ac_exeext; then
21769 eval "$as_ac_var=yes"
21770 else
21771 echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21774 eval "$as_ac_var=no"
21777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21778 conftest$ac_exeext conftest.$ac_ext
21780 ac_res=`eval echo '${'$as_ac_var'}'`
21781 { echo "$as_me:$LINENO: result: $ac_res" >&5
21782 echo "${ECHO_T}$ac_res" >&6; }
21783 if test `eval echo '${'$as_ac_var'}'` = yes; then
21784 cat >>confdefs.h <<_ACEOF
21785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21786 _ACEOF
21789 done
21791 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
21792 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
21793 if test "${ac_cv_have_decl_isinf+set}" = set; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21795 else
21796 cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h. */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802 #include <math.h>
21805 main ()
21807 #ifndef isinf
21808 (void) isinf;
21809 #endif
21812 return 0;
21814 _ACEOF
21815 rm -f conftest.$ac_objext
21816 if { (ac_try="$ac_compile"
21817 case "(($ac_try" in
21818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21819 *) ac_try_echo=$ac_try;;
21820 esac
21821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21822 (eval "$ac_compile") 2>conftest.er1
21823 ac_status=$?
21824 grep -v '^ *+' conftest.er1 >conftest.err
21825 rm -f conftest.er1
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && {
21829 test -z "$ac_c_werror_flag" ||
21830 test ! -s conftest.err
21831 } && test -s conftest.$ac_objext; then
21832 ac_cv_have_decl_isinf=yes
21833 else
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 ac_cv_have_decl_isinf=no
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
21843 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
21844 if test $ac_cv_have_decl_isinf = yes; then
21846 cat >>confdefs.h <<_ACEOF
21847 #define HAVE_DECL_ISINF 1
21848 _ACEOF
21851 else
21852 cat >>confdefs.h <<_ACEOF
21853 #define HAVE_DECL_ISINF 0
21854 _ACEOF
21858 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
21859 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
21860 if test "${ac_cv_have_decl_isnan+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863 cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h. */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 #include <math.h>
21872 main ()
21874 #ifndef isnan
21875 (void) isnan;
21876 #endif
21879 return 0;
21881 _ACEOF
21882 rm -f conftest.$ac_objext
21883 if { (ac_try="$ac_compile"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_compile") 2>conftest.er1
21890 ac_status=$?
21891 grep -v '^ *+' conftest.er1 >conftest.err
21892 rm -f conftest.er1
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest.$ac_objext; then
21899 ac_cv_have_decl_isnan=yes
21900 else
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_cv_have_decl_isnan=no
21907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
21910 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
21911 if test $ac_cv_have_decl_isnan = yes; then
21913 cat >>confdefs.h <<_ACEOF
21914 #define HAVE_DECL_ISNAN 1
21915 _ACEOF
21918 else
21919 cat >>confdefs.h <<_ACEOF
21920 #define HAVE_DECL_ISNAN 0
21921 _ACEOF
21925 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
21926 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
21927 if test "${ac_cv_have_decl_isfinite+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 else
21930 cat >conftest.$ac_ext <<_ACEOF
21931 /* confdefs.h. */
21932 _ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h. */
21936 #include <math.h>
21939 main ()
21941 #ifndef isfinite
21942 (void) isfinite;
21943 #endif
21946 return 0;
21948 _ACEOF
21949 rm -f conftest.$ac_objext
21950 if { (ac_try="$ac_compile"
21951 case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21954 esac
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_compile") 2>conftest.er1
21957 ac_status=$?
21958 grep -v '^ *+' conftest.er1 >conftest.err
21959 rm -f conftest.er1
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } && {
21963 test -z "$ac_c_werror_flag" ||
21964 test ! -s conftest.err
21965 } && test -s conftest.$ac_objext; then
21966 ac_cv_have_decl_isfinite=yes
21967 else
21968 echo "$as_me: failed program was:" >&5
21969 sed 's/^/| /' conftest.$ac_ext >&5
21971 ac_cv_have_decl_isfinite=no
21974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21976 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
21977 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
21978 if test $ac_cv_have_decl_isfinite = yes; then
21980 cat >>confdefs.h <<_ACEOF
21981 #define HAVE_DECL_ISFINITE 1
21982 _ACEOF
21985 else
21986 cat >>confdefs.h <<_ACEOF
21987 #define HAVE_DECL_ISFINITE 0
21988 _ACEOF
21995 LIBS=$LIBS_SAVE
21997 # check for wchar.h
21998 if test "${ac_cv_header_wchar_h+set}" = set; then
21999 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22000 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22001 if test "${ac_cv_header_wchar_h+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22005 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22006 else
22007 # Is the header compilable?
22008 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22009 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22010 cat >conftest.$ac_ext <<_ACEOF
22011 /* confdefs.h. */
22012 _ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22016 $ac_includes_default
22017 #include <wchar.h>
22018 _ACEOF
22019 rm -f conftest.$ac_objext
22020 if { (ac_try="$ac_compile"
22021 case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22024 esac
22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026 (eval "$ac_compile") 2>conftest.er1
22027 ac_status=$?
22028 grep -v '^ *+' conftest.er1 >conftest.err
22029 rm -f conftest.er1
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } && {
22033 test -z "$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22035 } && test -s conftest.$ac_objext; then
22036 ac_header_compiler=yes
22037 else
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ac_header_compiler=no
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22046 echo "${ECHO_T}$ac_header_compiler" >&6; }
22048 # Is the header present?
22049 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22050 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 #include <wchar.h>
22058 _ACEOF
22059 if { (ac_try="$ac_cpp conftest.$ac_ext"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22066 ac_status=$?
22067 grep -v '^ *+' conftest.er1 >conftest.err
22068 rm -f conftest.er1
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } >/dev/null && {
22072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22073 test ! -s conftest.err
22074 }; then
22075 ac_header_preproc=yes
22076 else
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ac_header_preproc=no
22083 rm -f conftest.err conftest.$ac_ext
22084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22085 echo "${ECHO_T}$ac_header_preproc" >&6; }
22087 # So? What about this header?
22088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22089 yes:no: )
22090 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22091 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22093 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22094 ac_header_preproc=yes
22096 no:yes:* )
22097 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22098 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22099 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22100 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22101 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22102 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22103 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22104 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22105 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22106 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22107 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22108 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22109 ( cat <<\_ASBOX
22110 ## ------------------------------------------------ ##
22111 ## Report this to http://www.python.org/python-bugs ##
22112 ## ------------------------------------------------ ##
22113 _ASBOX
22114 ) | sed "s/^/$as_me: WARNING: /" >&2
22116 esac
22117 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22118 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22119 if test "${ac_cv_header_wchar_h+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22121 else
22122 ac_cv_header_wchar_h=$ac_header_preproc
22124 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22125 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22128 if test $ac_cv_header_wchar_h = yes; then
22131 cat >>confdefs.h <<\_ACEOF
22132 #define HAVE_WCHAR_H 1
22133 _ACEOF
22135 wchar_h="yes"
22137 else
22138 wchar_h="no"
22144 # determine wchar_t size
22145 if test "$wchar_h" = yes
22146 then
22147 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22148 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22149 if test "${ac_cv_type_wchar_t+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 else
22152 cat >conftest.$ac_ext <<_ACEOF
22153 /* confdefs.h. */
22154 _ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h. */
22158 #include <wchar.h>
22160 typedef wchar_t ac__type_new_;
22162 main ()
22164 if ((ac__type_new_ *) 0)
22165 return 0;
22166 if (sizeof (ac__type_new_))
22167 return 0;
22169 return 0;
22171 _ACEOF
22172 rm -f conftest.$ac_objext
22173 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22180 ac_status=$?
22181 grep -v '^ *+' conftest.er1 >conftest.err
22182 rm -f conftest.er1
22183 cat conftest.err >&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); } && {
22186 test -z "$ac_c_werror_flag" ||
22187 test ! -s conftest.err
22188 } && test -s conftest.$ac_objext; then
22189 ac_cv_type_wchar_t=yes
22190 else
22191 echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22194 ac_cv_type_wchar_t=no
22197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22199 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22200 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22202 # The cast to long int works around a bug in the HP C Compiler
22203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22205 # This bug is HP SR number 8606223364.
22206 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22207 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22208 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 else
22211 if test "$cross_compiling" = yes; then
22212 # Depending upon the size, compute the lo and hi bounds.
22213 cat >conftest.$ac_ext <<_ACEOF
22214 /* confdefs.h. */
22215 _ACEOF
22216 cat confdefs.h >>conftest.$ac_ext
22217 cat >>conftest.$ac_ext <<_ACEOF
22218 /* end confdefs.h. */
22219 #include <wchar.h>
22221 typedef wchar_t ac__type_sizeof_;
22223 main ()
22225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22226 test_array [0] = 0
22229 return 0;
22231 _ACEOF
22232 rm -f conftest.$ac_objext
22233 if { (ac_try="$ac_compile"
22234 case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22237 esac
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_compile") 2>conftest.er1
22240 ac_status=$?
22241 grep -v '^ *+' conftest.er1 >conftest.err
22242 rm -f conftest.er1
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest.$ac_objext; then
22249 ac_lo=0 ac_mid=0
22250 while :; do
22251 cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h. */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 #include <wchar.h>
22259 typedef wchar_t ac__type_sizeof_;
22261 main ()
22263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22264 test_array [0] = 0
22267 return 0;
22269 _ACEOF
22270 rm -f conftest.$ac_objext
22271 if { (ac_try="$ac_compile"
22272 case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_compile") 2>conftest.er1
22278 ac_status=$?
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest.$ac_objext; then
22287 ac_hi=$ac_mid; break
22288 else
22289 echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22292 ac_lo=`expr $ac_mid + 1`
22293 if test $ac_lo -le $ac_mid; then
22294 ac_lo= ac_hi=
22295 break
22297 ac_mid=`expr 2 '*' $ac_mid + 1`
22300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22301 done
22302 else
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22306 cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h. */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22312 #include <wchar.h>
22314 typedef wchar_t ac__type_sizeof_;
22316 main ()
22318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22319 test_array [0] = 0
22322 return 0;
22324 _ACEOF
22325 rm -f conftest.$ac_objext
22326 if { (ac_try="$ac_compile"
22327 case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_compile") 2>conftest.er1
22333 ac_status=$?
22334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } && {
22339 test -z "$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22341 } && test -s conftest.$ac_objext; then
22342 ac_hi=-1 ac_mid=-1
22343 while :; do
22344 cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h. */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 #include <wchar.h>
22352 typedef wchar_t ac__type_sizeof_;
22354 main ()
22356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22357 test_array [0] = 0
22360 return 0;
22362 _ACEOF
22363 rm -f conftest.$ac_objext
22364 if { (ac_try="$ac_compile"
22365 case "(($ac_try" in
22366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367 *) ac_try_echo=$ac_try;;
22368 esac
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370 (eval "$ac_compile") 2>conftest.er1
22371 ac_status=$?
22372 grep -v '^ *+' conftest.er1 >conftest.err
22373 rm -f conftest.er1
22374 cat conftest.err >&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } && {
22377 test -z "$ac_c_werror_flag" ||
22378 test ! -s conftest.err
22379 } && test -s conftest.$ac_objext; then
22380 ac_lo=$ac_mid; break
22381 else
22382 echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.$ac_ext >&5
22385 ac_hi=`expr '(' $ac_mid ')' - 1`
22386 if test $ac_mid -le $ac_hi; then
22387 ac_lo= ac_hi=
22388 break
22390 ac_mid=`expr 2 '*' $ac_mid`
22393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22394 done
22395 else
22396 echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ac_lo= ac_hi=
22402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 # Binary search between lo and hi bounds.
22407 while test "x$ac_lo" != "x$ac_hi"; do
22408 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22409 cat >conftest.$ac_ext <<_ACEOF
22410 /* confdefs.h. */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 #include <wchar.h>
22417 typedef wchar_t ac__type_sizeof_;
22419 main ()
22421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22422 test_array [0] = 0
22425 return 0;
22427 _ACEOF
22428 rm -f conftest.$ac_objext
22429 if { (ac_try="$ac_compile"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22433 esac
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_compile") 2>conftest.er1
22436 ac_status=$?
22437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
22445 ac_hi=$ac_mid
22446 else
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_lo=`expr '(' $ac_mid ')' + 1`
22453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22454 done
22455 case $ac_lo in
22456 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22457 '') if test "$ac_cv_type_wchar_t" = yes; then
22458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22459 See \`config.log' for more details." >&5
22460 echo "$as_me: error: cannot compute sizeof (wchar_t)
22461 See \`config.log' for more details." >&2;}
22462 { (exit 77); exit 77; }; }
22463 else
22464 ac_cv_sizeof_wchar_t=0
22465 fi ;;
22466 esac
22467 else
22468 cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h. */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 #include <wchar.h>
22476 typedef wchar_t ac__type_sizeof_;
22477 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22478 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22479 #include <stdio.h>
22480 #include <stdlib.h>
22482 main ()
22485 FILE *f = fopen ("conftest.val", "w");
22486 if (! f)
22487 return 1;
22488 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22490 long int i = longval ();
22491 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22492 return 1;
22493 fprintf (f, "%ld\n", i);
22495 else
22497 unsigned long int i = ulongval ();
22498 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22499 return 1;
22500 fprintf (f, "%lu\n", i);
22502 return ferror (f) || fclose (f) != 0;
22505 return 0;
22507 _ACEOF
22508 rm -f 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>&5
22516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22519 { (case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22522 esac
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_try") 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 ac_cv_sizeof_wchar_t=`cat conftest.val`
22529 else
22530 echo "$as_me: program exited with status $ac_status" >&5
22531 echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22534 ( exit $ac_status )
22535 if test "$ac_cv_type_wchar_t" = yes; then
22536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22537 See \`config.log' for more details." >&5
22538 echo "$as_me: error: cannot compute sizeof (wchar_t)
22539 See \`config.log' for more details." >&2;}
22540 { (exit 77); exit 77; }; }
22541 else
22542 ac_cv_sizeof_wchar_t=0
22545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22547 rm -f conftest.val
22549 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22550 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22554 cat >>confdefs.h <<_ACEOF
22555 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22556 _ACEOF
22561 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22562 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22563 have_ucs4_tcl=no
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h. */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22571 #include <tcl.h>
22572 #if TCL_UTF_MAX != 6
22573 # error "NOT UCS4_TCL"
22574 #endif
22576 main ()
22580 return 0;
22582 _ACEOF
22583 rm -f conftest.$ac_objext
22584 if { (ac_try="$ac_compile"
22585 case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22588 esac
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_compile") 2>conftest.er1
22591 ac_status=$?
22592 grep -v '^ *+' conftest.er1 >conftest.err
22593 rm -f conftest.er1
22594 cat conftest.err >&5
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); } && {
22597 test -z "$ac_c_werror_flag" ||
22598 test ! -s conftest.err
22599 } && test -s conftest.$ac_objext; then
22602 cat >>confdefs.h <<\_ACEOF
22603 #define HAVE_UCS4_TCL 1
22604 _ACEOF
22606 have_ucs4_tcl=yes
22608 else
22609 echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22617 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22619 # check whether wchar_t is signed or not
22620 if test "$wchar_h" = yes
22621 then
22622 # check whether wchar_t is signed or not
22623 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22624 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22625 if test "${ac_cv_wchar_t_signed+set}" = set; then
22626 echo $ECHO_N "(cached) $ECHO_C" >&6
22627 else
22629 if test "$cross_compiling" = yes; then
22630 ac_cv_wchar_t_signed=yes
22631 else
22632 cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h. */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22639 #include <wchar.h>
22640 int main()
22642 /* Success: exit code 0 */
22643 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22646 _ACEOF
22647 rm -f conftest$ac_exeext
22648 if { (ac_try="$ac_link"
22649 case "(($ac_try" in
22650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22651 *) ac_try_echo=$ac_try;;
22652 esac
22653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22654 (eval "$ac_link") 2>&5
22655 ac_status=$?
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22658 { (case "(($ac_try" in
22659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660 *) ac_try_echo=$ac_try;;
22661 esac
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663 (eval "$ac_try") 2>&5
22664 ac_status=$?
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); }; }; then
22667 ac_cv_wchar_t_signed=yes
22668 else
22669 echo "$as_me: program exited with status $ac_status" >&5
22670 echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22673 ( exit $ac_status )
22674 ac_cv_wchar_t_signed=no
22676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22682 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22683 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22686 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
22687 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
22688 # Check whether --enable-unicode was given.
22689 if test "${enable_unicode+set}" = set; then
22690 enableval=$enable_unicode;
22691 else
22692 enable_unicode=yes
22696 if test $enable_unicode = yes
22697 then
22698 # Without any arguments, Py_UNICODE defaults to two-byte mode
22699 case "$have_ucs4_tcl" in
22700 yes) enable_unicode="ucs4"
22702 *) enable_unicode="ucs2"
22704 esac
22709 case "$enable_unicode" in
22710 ucs2) unicode_size="2"
22711 cat >>confdefs.h <<\_ACEOF
22712 #define Py_UNICODE_SIZE 2
22713 _ACEOF
22716 ucs4) unicode_size="4"
22717 cat >>confdefs.h <<\_ACEOF
22718 #define Py_UNICODE_SIZE 4
22719 _ACEOF
22722 esac
22728 if test "$enable_unicode" = "no"
22729 then
22730 UNICODE_OBJS=""
22731 { echo "$as_me:$LINENO: result: not used" >&5
22732 echo "${ECHO_T}not used" >&6; }
22733 else
22734 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
22736 cat >>confdefs.h <<\_ACEOF
22737 #define Py_USING_UNICODE 1
22738 _ACEOF
22741 # wchar_t is only usable if it maps to an unsigned type
22742 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22743 -a "$ac_cv_wchar_t_signed" = "no"
22744 then
22745 PY_UNICODE_TYPE="wchar_t"
22747 cat >>confdefs.h <<\_ACEOF
22748 #define HAVE_USABLE_WCHAR_T 1
22749 _ACEOF
22751 cat >>confdefs.h <<\_ACEOF
22752 #define PY_UNICODE_TYPE wchar_t
22753 _ACEOF
22755 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22756 then
22757 PY_UNICODE_TYPE="unsigned short"
22758 cat >>confdefs.h <<\_ACEOF
22759 #define PY_UNICODE_TYPE unsigned short
22760 _ACEOF
22762 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22763 then
22764 PY_UNICODE_TYPE="unsigned long"
22765 cat >>confdefs.h <<\_ACEOF
22766 #define PY_UNICODE_TYPE unsigned long
22767 _ACEOF
22769 else
22770 PY_UNICODE_TYPE="no type found"
22772 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22773 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22776 # check for endianness
22777 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22778 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22779 if test "${ac_cv_c_bigendian+set}" = set; then
22780 echo $ECHO_N "(cached) $ECHO_C" >&6
22781 else
22782 # See if sys/param.h defines the BYTE_ORDER macro.
22783 cat >conftest.$ac_ext <<_ACEOF
22784 /* confdefs.h. */
22785 _ACEOF
22786 cat confdefs.h >>conftest.$ac_ext
22787 cat >>conftest.$ac_ext <<_ACEOF
22788 /* end confdefs.h. */
22789 #include <sys/types.h>
22790 #include <sys/param.h>
22793 main ()
22795 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22796 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22797 bogus endian macros
22798 #endif
22801 return 0;
22803 _ACEOF
22804 rm -f conftest.$ac_objext
22805 if { (ac_try="$ac_compile"
22806 case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22809 esac
22810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_compile") 2>conftest.er1
22812 ac_status=$?
22813 grep -v '^ *+' conftest.er1 >conftest.err
22814 rm -f conftest.er1
22815 cat conftest.err >&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest.$ac_objext; then
22821 # It does; now see whether it defined to BIG_ENDIAN or not.
22822 cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h. */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 #include <sys/types.h>
22829 #include <sys/param.h>
22832 main ()
22834 #if BYTE_ORDER != BIG_ENDIAN
22835 not big endian
22836 #endif
22839 return 0;
22841 _ACEOF
22842 rm -f conftest.$ac_objext
22843 if { (ac_try="$ac_compile"
22844 case "(($ac_try" in
22845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846 *) ac_try_echo=$ac_try;;
22847 esac
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849 (eval "$ac_compile") 2>conftest.er1
22850 ac_status=$?
22851 grep -v '^ *+' conftest.er1 >conftest.err
22852 rm -f conftest.er1
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } && {
22856 test -z "$ac_c_werror_flag" ||
22857 test ! -s conftest.err
22858 } && test -s conftest.$ac_objext; then
22859 ac_cv_c_bigendian=yes
22860 else
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 ac_cv_c_bigendian=no
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868 else
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 # It does not; compile a test program.
22873 if test "$cross_compiling" = yes; then
22874 # try to guess the endianness by grepping values into an object file
22875 ac_cv_c_bigendian=unknown
22876 cat >conftest.$ac_ext <<_ACEOF
22877 /* confdefs.h. */
22878 _ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h. */
22882 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22883 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22884 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22885 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22886 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22887 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22889 main ()
22891 _ascii (); _ebcdic ();
22893 return 0;
22895 _ACEOF
22896 rm -f conftest.$ac_objext
22897 if { (ac_try="$ac_compile"
22898 case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22901 esac
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_compile") 2>conftest.er1
22904 ac_status=$?
22905 grep -v '^ *+' conftest.er1 >conftest.err
22906 rm -f conftest.er1
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest.$ac_objext; then
22913 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22914 ac_cv_c_bigendian=yes
22916 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22917 if test "$ac_cv_c_bigendian" = unknown; then
22918 ac_cv_c_bigendian=no
22919 else
22920 # finding both strings is unlikely to happen, but who knows?
22921 ac_cv_c_bigendian=unknown
22924 else
22925 echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932 else
22933 cat >conftest.$ac_ext <<_ACEOF
22934 /* confdefs.h. */
22935 _ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22939 $ac_includes_default
22941 main ()
22944 /* Are we little or big endian? From Harbison&Steele. */
22945 union
22947 long int l;
22948 char c[sizeof (long int)];
22949 } u;
22950 u.l = 1;
22951 return u.c[sizeof (long int) - 1] == 1;
22954 return 0;
22956 _ACEOF
22957 rm -f conftest$ac_exeext
22958 if { (ac_try="$ac_link"
22959 case "(($ac_try" in
22960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961 *) ac_try_echo=$ac_try;;
22962 esac
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964 (eval "$ac_link") 2>&5
22965 ac_status=$?
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22968 { (case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_try") 2>&5
22974 ac_status=$?
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 ac_cv_c_bigendian=no
22978 else
22979 echo "$as_me: program exited with status $ac_status" >&5
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22983 ( exit $ac_status )
22984 ac_cv_c_bigendian=yes
22986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22994 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22995 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22996 case $ac_cv_c_bigendian in
22997 yes)
22999 cat >>confdefs.h <<\_ACEOF
23000 #define WORDS_BIGENDIAN 1
23001 _ACEOF
23006 { { echo "$as_me:$LINENO: error: unknown endianness
23007 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23008 echo "$as_me: error: unknown endianness
23009 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23010 { (exit 1); exit 1; }; } ;;
23011 esac
23014 # Check whether right shifting a negative integer extends the sign bit
23015 # or fills with zeros (like the Cray J90, according to Tim Peters).
23016 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23017 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23018 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23019 echo $ECHO_N "(cached) $ECHO_C" >&6
23020 else
23022 if test "$cross_compiling" = yes; then
23023 ac_cv_rshift_extends_sign=yes
23024 else
23025 cat >conftest.$ac_ext <<_ACEOF
23026 /* confdefs.h. */
23027 _ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23032 int main()
23034 exit(((-1)>>3 == -1) ? 0 : 1);
23037 _ACEOF
23038 rm -f conftest$ac_exeext
23039 if { (ac_try="$ac_link"
23040 case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23043 esac
23044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045 (eval "$ac_link") 2>&5
23046 ac_status=$?
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23049 { (case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23052 esac
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_try") 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; }; then
23058 ac_cv_rshift_extends_sign=yes
23059 else
23060 echo "$as_me: program exited with status $ac_status" >&5
23061 echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23064 ( exit $ac_status )
23065 ac_cv_rshift_extends_sign=no
23067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23074 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23075 if test "$ac_cv_rshift_extends_sign" = no
23076 then
23078 cat >>confdefs.h <<\_ACEOF
23079 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23080 _ACEOF
23084 # check for getc_unlocked and related locking functions
23085 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23086 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23087 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23089 else
23091 cat >conftest.$ac_ext <<_ACEOF
23092 /* confdefs.h. */
23093 _ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h. */
23097 #include <stdio.h>
23099 main ()
23102 FILE *f = fopen("/dev/null", "r");
23103 flockfile(f);
23104 getc_unlocked(f);
23105 funlockfile(f);
23108 return 0;
23110 _ACEOF
23111 rm -f conftest.$ac_objext conftest$ac_exeext
23112 if { (ac_try="$ac_link"
23113 case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23116 esac
23117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118 (eval "$ac_link") 2>conftest.er1
23119 ac_status=$?
23120 grep -v '^ *+' conftest.er1 >conftest.err
23121 rm -f conftest.er1
23122 cat conftest.err >&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } && {
23125 test -z "$ac_c_werror_flag" ||
23126 test ! -s conftest.err
23127 } && test -s conftest$ac_exeext &&
23128 $as_test_x conftest$ac_exeext; then
23129 ac_cv_have_getc_unlocked=yes
23130 else
23131 echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23134 ac_cv_have_getc_unlocked=no
23137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23138 conftest$ac_exeext conftest.$ac_ext
23141 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23142 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23143 if test "$ac_cv_have_getc_unlocked" = yes
23144 then
23146 cat >>confdefs.h <<\_ACEOF
23147 #define HAVE_GETC_UNLOCKED 1
23148 _ACEOF
23152 # check where readline lives
23153 # save the value of LIBS so we don't actually link Python with readline
23154 LIBS_no_readline=$LIBS
23156 # On some systems we need to link readline to a termcap compatible
23157 # library. NOTE: Keep the precedence of listed libraries synchronised
23158 # with setup.py.
23159 py_cv_lib_readline=no
23160 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23161 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23162 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23163 if test -z "$py_libtermcap"; then
23164 READLINE_LIBS="-lreadline"
23165 else
23166 READLINE_LIBS="-lreadline -l$py_libtermcap"
23168 LIBS="$READLINE_LIBS $LIBS_no_readline"
23169 cat >conftest.$ac_ext <<_ACEOF
23170 /* confdefs.h. */
23171 _ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23176 /* Override any GCC internal prototype to avoid an error.
23177 Use char because int might match the return type of a GCC
23178 builtin and then its argument prototype would still apply. */
23179 #ifdef __cplusplus
23180 extern "C"
23181 #endif
23182 char readline ();
23184 main ()
23186 return readline ();
23188 return 0;
23190 _ACEOF
23191 rm -f conftest.$ac_objext conftest$ac_exeext
23192 if { (ac_try="$ac_link"
23193 case "(($ac_try" in
23194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195 *) ac_try_echo=$ac_try;;
23196 esac
23197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23198 (eval "$ac_link") 2>conftest.er1
23199 ac_status=$?
23200 grep -v '^ *+' conftest.er1 >conftest.err
23201 rm -f conftest.er1
23202 cat conftest.err >&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); } && {
23205 test -z "$ac_c_werror_flag" ||
23206 test ! -s conftest.err
23207 } && test -s conftest$ac_exeext &&
23208 $as_test_x conftest$ac_exeext; then
23209 py_cv_lib_readline=yes
23210 else
23211 echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23218 conftest$ac_exeext conftest.$ac_ext
23219 if test $py_cv_lib_readline = yes; then
23220 break
23222 done
23223 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23224 #AC_SUBST([READLINE_LIBS])
23225 if test $py_cv_lib_readline = no; then
23226 { echo "$as_me:$LINENO: result: none" >&5
23227 echo "${ECHO_T}none" >&6; }
23228 else
23229 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23230 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23232 cat >>confdefs.h <<\_ACEOF
23233 #define HAVE_LIBREADLINE 1
23234 _ACEOF
23238 # check for readline 2.1
23239 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23240 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23241 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 else
23244 ac_check_lib_save_LIBS=$LIBS
23245 LIBS="-lreadline $READLINE_LIBS $LIBS"
23246 cat >conftest.$ac_ext <<_ACEOF
23247 /* confdefs.h. */
23248 _ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h. */
23253 /* Override any GCC internal prototype to avoid an error.
23254 Use char because int might match the return type of a GCC
23255 builtin and then its argument prototype would still apply. */
23256 #ifdef __cplusplus
23257 extern "C"
23258 #endif
23259 char rl_callback_handler_install ();
23261 main ()
23263 return rl_callback_handler_install ();
23265 return 0;
23267 _ACEOF
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23273 esac
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_link") 2>conftest.er1
23276 ac_status=$?
23277 grep -v '^ *+' conftest.er1 >conftest.err
23278 rm -f conftest.er1
23279 cat conftest.err >&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } && {
23282 test -z "$ac_c_werror_flag" ||
23283 test ! -s conftest.err
23284 } && test -s conftest$ac_exeext &&
23285 $as_test_x conftest$ac_exeext; then
23286 ac_cv_lib_readline_rl_callback_handler_install=yes
23287 else
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 ac_cv_lib_readline_rl_callback_handler_install=no
23294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23295 conftest$ac_exeext conftest.$ac_ext
23296 LIBS=$ac_check_lib_save_LIBS
23298 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23299 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23300 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23302 cat >>confdefs.h <<\_ACEOF
23303 #define HAVE_RL_CALLBACK 1
23304 _ACEOF
23309 # check for readline 2.2
23310 cat >conftest.$ac_ext <<_ACEOF
23311 /* confdefs.h. */
23312 _ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h. */
23316 #include <readline/readline.h>
23317 _ACEOF
23318 if { (ac_try="$ac_cpp conftest.$ac_ext"
23319 case "(($ac_try" in
23320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23322 esac
23323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23325 ac_status=$?
23326 grep -v '^ *+' conftest.er1 >conftest.err
23327 rm -f conftest.er1
23328 cat conftest.err >&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } >/dev/null && {
23331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23332 test ! -s conftest.err
23333 }; then
23334 have_readline=yes
23335 else
23336 echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23339 have_readline=no
23342 rm -f conftest.err conftest.$ac_ext
23343 if test $have_readline = yes
23344 then
23345 cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h. */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h. */
23351 #include <readline/readline.h>
23353 _ACEOF
23354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23355 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23357 cat >>confdefs.h <<\_ACEOF
23358 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23359 _ACEOF
23362 rm -f conftest*
23366 # check for readline 4.0
23367 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23368 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23369 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 else
23372 ac_check_lib_save_LIBS=$LIBS
23373 LIBS="-lreadline $READLINE_LIBS $LIBS"
23374 cat >conftest.$ac_ext <<_ACEOF
23375 /* confdefs.h. */
23376 _ACEOF
23377 cat confdefs.h >>conftest.$ac_ext
23378 cat >>conftest.$ac_ext <<_ACEOF
23379 /* end confdefs.h. */
23381 /* Override any GCC internal prototype to avoid an error.
23382 Use char because int might match the return type of a GCC
23383 builtin and then its argument prototype would still apply. */
23384 #ifdef __cplusplus
23385 extern "C"
23386 #endif
23387 char rl_pre_input_hook ();
23389 main ()
23391 return rl_pre_input_hook ();
23393 return 0;
23395 _ACEOF
23396 rm -f conftest.$ac_objext conftest$ac_exeext
23397 if { (ac_try="$ac_link"
23398 case "(($ac_try" in
23399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400 *) ac_try_echo=$ac_try;;
23401 esac
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_link") 2>conftest.er1
23404 ac_status=$?
23405 grep -v '^ *+' conftest.er1 >conftest.err
23406 rm -f conftest.er1
23407 cat conftest.err >&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); } && {
23410 test -z "$ac_c_werror_flag" ||
23411 test ! -s conftest.err
23412 } && test -s conftest$ac_exeext &&
23413 $as_test_x conftest$ac_exeext; then
23414 ac_cv_lib_readline_rl_pre_input_hook=yes
23415 else
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23419 ac_cv_lib_readline_rl_pre_input_hook=no
23422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23423 conftest$ac_exeext conftest.$ac_ext
23424 LIBS=$ac_check_lib_save_LIBS
23426 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23427 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23428 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23430 cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_RL_PRE_INPUT_HOOK 1
23432 _ACEOF
23437 # also in 4.0
23438 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23439 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23440 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23443 ac_check_lib_save_LIBS=$LIBS
23444 LIBS="-lreadline $READLINE_LIBS $LIBS"
23445 cat >conftest.$ac_ext <<_ACEOF
23446 /* confdefs.h. */
23447 _ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h. */
23452 /* Override any GCC internal prototype to avoid an error.
23453 Use char because int might match the return type of a GCC
23454 builtin and then its argument prototype would still apply. */
23455 #ifdef __cplusplus
23456 extern "C"
23457 #endif
23458 char rl_completion_display_matches_hook ();
23460 main ()
23462 return rl_completion_display_matches_hook ();
23464 return 0;
23466 _ACEOF
23467 rm -f conftest.$ac_objext conftest$ac_exeext
23468 if { (ac_try="$ac_link"
23469 case "(($ac_try" in
23470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471 *) ac_try_echo=$ac_try;;
23472 esac
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474 (eval "$ac_link") 2>conftest.er1
23475 ac_status=$?
23476 grep -v '^ *+' conftest.er1 >conftest.err
23477 rm -f conftest.er1
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } && {
23481 test -z "$ac_c_werror_flag" ||
23482 test ! -s conftest.err
23483 } && test -s conftest$ac_exeext &&
23484 $as_test_x conftest$ac_exeext; then
23485 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23486 else
23487 echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23490 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23494 conftest$ac_exeext conftest.$ac_ext
23495 LIBS=$ac_check_lib_save_LIBS
23497 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23498 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23499 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23501 cat >>confdefs.h <<\_ACEOF
23502 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23503 _ACEOF
23508 # check for readline 4.2
23509 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23510 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23511 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
23513 else
23514 ac_check_lib_save_LIBS=$LIBS
23515 LIBS="-lreadline $READLINE_LIBS $LIBS"
23516 cat >conftest.$ac_ext <<_ACEOF
23517 /* confdefs.h. */
23518 _ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23523 /* Override any GCC internal prototype to avoid an error.
23524 Use char because int might match the return type of a GCC
23525 builtin and then its argument prototype would still apply. */
23526 #ifdef __cplusplus
23527 extern "C"
23528 #endif
23529 char rl_completion_matches ();
23531 main ()
23533 return rl_completion_matches ();
23535 return 0;
23537 _ACEOF
23538 rm -f conftest.$ac_objext conftest$ac_exeext
23539 if { (ac_try="$ac_link"
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_link") 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_exeext &&
23555 $as_test_x conftest$ac_exeext; then
23556 ac_cv_lib_readline_rl_completion_matches=yes
23557 else
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23561 ac_cv_lib_readline_rl_completion_matches=no
23564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23565 conftest$ac_exeext conftest.$ac_ext
23566 LIBS=$ac_check_lib_save_LIBS
23568 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23569 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23570 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23572 cat >>confdefs.h <<\_ACEOF
23573 #define HAVE_RL_COMPLETION_MATCHES 1
23574 _ACEOF
23579 # also in readline 4.2
23580 cat >conftest.$ac_ext <<_ACEOF
23581 /* confdefs.h. */
23582 _ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586 #include <readline/readline.h>
23587 _ACEOF
23588 if { (ac_try="$ac_cpp conftest.$ac_ext"
23589 case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23595 ac_status=$?
23596 grep -v '^ *+' conftest.er1 >conftest.err
23597 rm -f conftest.er1
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } >/dev/null && {
23601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23603 }; then
23604 have_readline=yes
23605 else
23606 echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23609 have_readline=no
23612 rm -f conftest.err conftest.$ac_ext
23613 if test $have_readline = yes
23614 then
23615 cat >conftest.$ac_ext <<_ACEOF
23616 /* confdefs.h. */
23617 _ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 #include <readline/readline.h>
23623 _ACEOF
23624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23625 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
23627 cat >>confdefs.h <<\_ACEOF
23628 #define HAVE_RL_CATCH_SIGNAL 1
23629 _ACEOF
23632 rm -f conftest*
23636 # End of readline checks: restore LIBS
23637 LIBS=$LIBS_no_readline
23639 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23640 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23641 if test "${ac_cv_broken_nice+set}" = set; then
23642 echo $ECHO_N "(cached) $ECHO_C" >&6
23643 else
23645 if test "$cross_compiling" = yes; then
23646 ac_cv_broken_nice=no
23647 else
23648 cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h. */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23655 int main()
23657 int val1 = nice(1);
23658 if (val1 != -1 && val1 == nice(2))
23659 exit(0);
23660 exit(1);
23663 _ACEOF
23664 rm -f conftest$ac_exeext
23665 if { (ac_try="$ac_link"
23666 case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23669 esac
23670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671 (eval "$ac_link") 2>&5
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23675 { (case "(($ac_try" in
23676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677 *) ac_try_echo=$ac_try;;
23678 esac
23679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23680 (eval "$ac_try") 2>&5
23681 ac_status=$?
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); }; }; then
23684 ac_cv_broken_nice=yes
23685 else
23686 echo "$as_me: program exited with status $ac_status" >&5
23687 echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23690 ( exit $ac_status )
23691 ac_cv_broken_nice=no
23693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23699 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23700 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23701 if test "$ac_cv_broken_nice" = yes
23702 then
23704 cat >>confdefs.h <<\_ACEOF
23705 #define HAVE_BROKEN_NICE 1
23706 _ACEOF
23710 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23711 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23712 if test "$cross_compiling" = yes; then
23713 ac_cv_broken_poll=no
23714 else
23715 cat >conftest.$ac_ext <<_ACEOF
23716 /* confdefs.h. */
23717 _ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h. */
23722 #include <poll.h>
23724 int main (void)
23726 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23728 close (42);
23730 int poll_test = poll (&poll_struct, 1, 0);
23732 if (poll_test < 0)
23734 exit(0);
23736 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23738 exit(0);
23740 else
23742 exit(1);
23746 _ACEOF
23747 rm -f conftest$ac_exeext
23748 if { (ac_try="$ac_link"
23749 case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23752 esac
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_link") 2>&5
23755 ac_status=$?
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23758 { (case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_try") 2>&5
23764 ac_status=$?
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); }; }; then
23767 ac_cv_broken_poll=yes
23768 else
23769 echo "$as_me: program exited with status $ac_status" >&5
23770 echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23773 ( exit $ac_status )
23774 ac_cv_broken_poll=no
23776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23780 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23781 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23782 if test "$ac_cv_broken_poll" = yes
23783 then
23785 cat >>confdefs.h <<\_ACEOF
23786 #define HAVE_BROKEN_POLL 1
23787 _ACEOF
23791 # Before we can test tzset, we need to check if struct tm has a tm_zone
23792 # (which is not required by ISO C or UNIX spec) and/or if we support
23793 # tzname[]
23794 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23795 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23796 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23798 else
23799 cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h. */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23805 #include <sys/types.h>
23806 #include <$ac_cv_struct_tm>
23810 main ()
23812 static struct tm ac_aggr;
23813 if (ac_aggr.tm_zone)
23814 return 0;
23816 return 0;
23818 _ACEOF
23819 rm -f conftest.$ac_objext
23820 if { (ac_try="$ac_compile"
23821 case "(($ac_try" in
23822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823 *) ac_try_echo=$ac_try;;
23824 esac
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826 (eval "$ac_compile") 2>conftest.er1
23827 ac_status=$?
23828 grep -v '^ *+' conftest.er1 >conftest.err
23829 rm -f conftest.er1
23830 cat conftest.err >&5
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } && {
23833 test -z "$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 } && test -s conftest.$ac_objext; then
23836 ac_cv_member_struct_tm_tm_zone=yes
23837 else
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23841 cat >conftest.$ac_ext <<_ACEOF
23842 /* confdefs.h. */
23843 _ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23847 #include <sys/types.h>
23848 #include <$ac_cv_struct_tm>
23852 main ()
23854 static struct tm ac_aggr;
23855 if (sizeof ac_aggr.tm_zone)
23856 return 0;
23858 return 0;
23860 _ACEOF
23861 rm -f conftest.$ac_objext
23862 if { (ac_try="$ac_compile"
23863 case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23866 esac
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868 (eval "$ac_compile") 2>conftest.er1
23869 ac_status=$?
23870 grep -v '^ *+' conftest.er1 >conftest.err
23871 rm -f conftest.er1
23872 cat conftest.err >&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); } && {
23875 test -z "$ac_c_werror_flag" ||
23876 test ! -s conftest.err
23877 } && test -s conftest.$ac_objext; then
23878 ac_cv_member_struct_tm_tm_zone=yes
23879 else
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883 ac_cv_member_struct_tm_tm_zone=no
23886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23891 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23892 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23893 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23895 cat >>confdefs.h <<_ACEOF
23896 #define HAVE_STRUCT_TM_TM_ZONE 1
23897 _ACEOF
23902 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23904 cat >>confdefs.h <<\_ACEOF
23905 #define HAVE_TM_ZONE 1
23906 _ACEOF
23908 else
23909 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23910 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23911 if test "${ac_cv_have_decl_tzname+set}" = set; then
23912 echo $ECHO_N "(cached) $ECHO_C" >&6
23913 else
23914 cat >conftest.$ac_ext <<_ACEOF
23915 /* confdefs.h. */
23916 _ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h. */
23920 #include <time.h>
23923 main ()
23925 #ifndef tzname
23926 (void) tzname;
23927 #endif
23930 return 0;
23932 _ACEOF
23933 rm -f conftest.$ac_objext
23934 if { (ac_try="$ac_compile"
23935 case "(($ac_try" in
23936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937 *) ac_try_echo=$ac_try;;
23938 esac
23939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23940 (eval "$ac_compile") 2>conftest.er1
23941 ac_status=$?
23942 grep -v '^ *+' conftest.er1 >conftest.err
23943 rm -f conftest.er1
23944 cat conftest.err >&5
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } && {
23947 test -z "$ac_c_werror_flag" ||
23948 test ! -s conftest.err
23949 } && test -s conftest.$ac_objext; then
23950 ac_cv_have_decl_tzname=yes
23951 else
23952 echo "$as_me: failed program was:" >&5
23953 sed 's/^/| /' conftest.$ac_ext >&5
23955 ac_cv_have_decl_tzname=no
23958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23960 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23961 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23962 if test $ac_cv_have_decl_tzname = yes; then
23964 cat >>confdefs.h <<_ACEOF
23965 #define HAVE_DECL_TZNAME 1
23966 _ACEOF
23969 else
23970 cat >>confdefs.h <<_ACEOF
23971 #define HAVE_DECL_TZNAME 0
23972 _ACEOF
23978 { echo "$as_me:$LINENO: checking for tzname" >&5
23979 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23980 if test "${ac_cv_var_tzname+set}" = set; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23982 else
23983 cat >conftest.$ac_ext <<_ACEOF
23984 /* confdefs.h. */
23985 _ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 #include <time.h>
23990 #if !HAVE_DECL_TZNAME
23991 extern char *tzname[];
23992 #endif
23995 main ()
23997 return tzname[0][0];
23999 return 0;
24001 _ACEOF
24002 rm -f conftest.$ac_objext conftest$ac_exeext
24003 if { (ac_try="$ac_link"
24004 case "(($ac_try" in
24005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24006 *) ac_try_echo=$ac_try;;
24007 esac
24008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009 (eval "$ac_link") 2>conftest.er1
24010 ac_status=$?
24011 grep -v '^ *+' conftest.er1 >conftest.err
24012 rm -f conftest.er1
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } && {
24016 test -z "$ac_c_werror_flag" ||
24017 test ! -s conftest.err
24018 } && test -s conftest$ac_exeext &&
24019 $as_test_x conftest$ac_exeext; then
24020 ac_cv_var_tzname=yes
24021 else
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24025 ac_cv_var_tzname=no
24028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24029 conftest$ac_exeext conftest.$ac_ext
24031 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24032 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24033 if test $ac_cv_var_tzname = yes; then
24035 cat >>confdefs.h <<\_ACEOF
24036 #define HAVE_TZNAME 1
24037 _ACEOF
24043 # check tzset(3) exists and works like we expect it to
24044 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24045 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24046 if test "${ac_cv_working_tzset+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24048 else
24050 if test "$cross_compiling" = yes; then
24051 ac_cv_working_tzset=no
24052 else
24053 cat >conftest.$ac_ext <<_ACEOF
24054 /* confdefs.h. */
24055 _ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24060 #include <stdlib.h>
24061 #include <time.h>
24062 #include <string.h>
24064 #if HAVE_TZNAME
24065 extern char *tzname[];
24066 #endif
24068 int main()
24070 /* Note that we need to ensure that not only does tzset(3)
24071 do 'something' with localtime, but it works as documented
24072 in the library reference and as expected by the test suite.
24073 This includes making sure that tzname is set properly if
24074 tm->tm_zone does not exist since it is the alternative way
24075 of getting timezone info.
24077 Red Hat 6.2 doesn't understand the southern hemisphere
24078 after New Year's Day.
24081 time_t groundhogday = 1044144000; /* GMT-based */
24082 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24084 putenv("TZ=UTC+0");
24085 tzset();
24086 if (localtime(&groundhogday)->tm_hour != 0)
24087 exit(1);
24088 #if HAVE_TZNAME
24089 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24090 if (strcmp(tzname[0], "UTC") ||
24091 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24092 exit(1);
24093 #endif
24095 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24096 tzset();
24097 if (localtime(&groundhogday)->tm_hour != 19)
24098 exit(1);
24099 #if HAVE_TZNAME
24100 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24101 exit(1);
24102 #endif
24104 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24105 tzset();
24106 if (localtime(&groundhogday)->tm_hour != 11)
24107 exit(1);
24108 #if HAVE_TZNAME
24109 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24110 exit(1);
24111 #endif
24113 #if HAVE_STRUCT_TM_TM_ZONE
24114 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24115 exit(1);
24116 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24117 exit(1);
24118 #endif
24120 exit(0);
24123 _ACEOF
24124 rm -f conftest$ac_exeext
24125 if { (ac_try="$ac_link"
24126 case "(($ac_try" in
24127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128 *) ac_try_echo=$ac_try;;
24129 esac
24130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24131 (eval "$ac_link") 2>&5
24132 ac_status=$?
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24135 { (case "(($ac_try" in
24136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137 *) ac_try_echo=$ac_try;;
24138 esac
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140 (eval "$ac_try") 2>&5
24141 ac_status=$?
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; }; then
24144 ac_cv_working_tzset=yes
24145 else
24146 echo "$as_me: program exited with status $ac_status" >&5
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24150 ( exit $ac_status )
24151 ac_cv_working_tzset=no
24153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24159 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24160 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24161 if test "$ac_cv_working_tzset" = yes
24162 then
24164 cat >>confdefs.h <<\_ACEOF
24165 #define HAVE_WORKING_TZSET 1
24166 _ACEOF
24170 # Look for subsecond timestamps in struct stat
24171 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24172 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24173 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24175 else
24176 cat >conftest.$ac_ext <<_ACEOF
24177 /* confdefs.h. */
24178 _ACEOF
24179 cat confdefs.h >>conftest.$ac_ext
24180 cat >>conftest.$ac_ext <<_ACEOF
24181 /* end confdefs.h. */
24182 #include <sys/stat.h>
24184 main ()
24187 struct stat st;
24188 st.st_mtim.tv_nsec = 1;
24191 return 0;
24193 _ACEOF
24194 rm -f conftest.$ac_objext
24195 if { (ac_try="$ac_compile"
24196 case "(($ac_try" in
24197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24198 *) ac_try_echo=$ac_try;;
24199 esac
24200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24201 (eval "$ac_compile") 2>conftest.er1
24202 ac_status=$?
24203 grep -v '^ *+' conftest.er1 >conftest.err
24204 rm -f conftest.er1
24205 cat conftest.err >&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } && {
24208 test -z "$ac_c_werror_flag" ||
24209 test ! -s conftest.err
24210 } && test -s conftest.$ac_objext; then
24211 ac_cv_stat_tv_nsec=yes
24212 else
24213 echo "$as_me: failed program was:" >&5
24214 sed 's/^/| /' conftest.$ac_ext >&5
24216 ac_cv_stat_tv_nsec=no
24219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24222 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24223 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24224 if test "$ac_cv_stat_tv_nsec" = yes
24225 then
24227 cat >>confdefs.h <<\_ACEOF
24228 #define HAVE_STAT_TV_NSEC 1
24229 _ACEOF
24233 # Look for BSD style subsecond timestamps in struct stat
24234 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24235 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24236 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24237 echo $ECHO_N "(cached) $ECHO_C" >&6
24238 else
24239 cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h. */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 #include <sys/stat.h>
24247 main ()
24250 struct stat st;
24251 st.st_mtimespec.tv_nsec = 1;
24254 return 0;
24256 _ACEOF
24257 rm -f conftest.$ac_objext
24258 if { (ac_try="$ac_compile"
24259 case "(($ac_try" in
24260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261 *) ac_try_echo=$ac_try;;
24262 esac
24263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264 (eval "$ac_compile") 2>conftest.er1
24265 ac_status=$?
24266 grep -v '^ *+' conftest.er1 >conftest.err
24267 rm -f conftest.er1
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } && {
24271 test -z "$ac_c_werror_flag" ||
24272 test ! -s conftest.err
24273 } && test -s conftest.$ac_objext; then
24274 ac_cv_stat_tv_nsec2=yes
24275 else
24276 echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24279 ac_cv_stat_tv_nsec2=no
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24286 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24287 if test "$ac_cv_stat_tv_nsec2" = yes
24288 then
24290 cat >>confdefs.h <<\_ACEOF
24291 #define HAVE_STAT_TV_NSEC2 1
24292 _ACEOF
24296 # On HP/UX 11.0, mvwdelch is a block with a return statement
24297 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24298 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24299 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24301 else
24302 cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h. */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 #include <curses.h>
24310 main ()
24313 int rtn;
24314 rtn = mvwdelch(0,0,0);
24317 return 0;
24319 _ACEOF
24320 rm -f conftest.$ac_objext
24321 if { (ac_try="$ac_compile"
24322 case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_compile") 2>conftest.er1
24328 ac_status=$?
24329 grep -v '^ *+' conftest.er1 >conftest.err
24330 rm -f conftest.er1
24331 cat conftest.err >&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } && {
24334 test -z "$ac_c_werror_flag" ||
24335 test ! -s conftest.err
24336 } && test -s conftest.$ac_objext; then
24337 ac_cv_mvwdelch_is_expression=yes
24338 else
24339 echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.$ac_ext >&5
24342 ac_cv_mvwdelch_is_expression=no
24345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24348 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24349 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24351 if test "$ac_cv_mvwdelch_is_expression" = yes
24352 then
24354 cat >>confdefs.h <<\_ACEOF
24355 #define MVWDELCH_IS_EXPRESSION 1
24356 _ACEOF
24360 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24361 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24362 if test "${ac_cv_window_has_flags+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24364 else
24365 cat >conftest.$ac_ext <<_ACEOF
24366 /* confdefs.h. */
24367 _ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24371 #include <curses.h>
24373 main ()
24376 WINDOW *w;
24377 w->_flags = 0;
24380 return 0;
24382 _ACEOF
24383 rm -f conftest.$ac_objext
24384 if { (ac_try="$ac_compile"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24388 esac
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_compile") 2>conftest.er1
24391 ac_status=$?
24392 grep -v '^ *+' conftest.er1 >conftest.err
24393 rm -f conftest.er1
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } && {
24397 test -z "$ac_c_werror_flag" ||
24398 test ! -s conftest.err
24399 } && test -s conftest.$ac_objext; then
24400 ac_cv_window_has_flags=yes
24401 else
24402 echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24405 ac_cv_window_has_flags=no
24408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24411 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24412 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24415 if test "$ac_cv_window_has_flags" = yes
24416 then
24418 cat >>confdefs.h <<\_ACEOF
24419 #define WINDOW_HAS_FLAGS 1
24420 _ACEOF
24424 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24425 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24426 cat >conftest.$ac_ext <<_ACEOF
24427 /* confdefs.h. */
24428 _ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h. */
24432 #include <curses.h>
24434 main ()
24436 void *x=is_term_resized
24438 return 0;
24440 _ACEOF
24441 rm -f conftest.$ac_objext
24442 if { (ac_try="$ac_compile"
24443 case "(($ac_try" in
24444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445 *) ac_try_echo=$ac_try;;
24446 esac
24447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24448 (eval "$ac_compile") 2>conftest.er1
24449 ac_status=$?
24450 grep -v '^ *+' conftest.er1 >conftest.err
24451 rm -f conftest.er1
24452 cat conftest.err >&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } && {
24455 test -z "$ac_c_werror_flag" ||
24456 test ! -s conftest.err
24457 } && test -s conftest.$ac_objext; then
24459 cat >>confdefs.h <<\_ACEOF
24460 #define HAVE_CURSES_IS_TERM_RESIZED 1
24461 _ACEOF
24463 { echo "$as_me:$LINENO: result: yes" >&5
24464 echo "${ECHO_T}yes" >&6; }
24465 else
24466 echo "$as_me: failed program was:" >&5
24467 sed 's/^/| /' conftest.$ac_ext >&5
24469 { echo "$as_me:$LINENO: result: no" >&5
24470 echo "${ECHO_T}no" >&6; }
24474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24476 { echo "$as_me:$LINENO: checking for resize_term" >&5
24477 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24478 cat >conftest.$ac_ext <<_ACEOF
24479 /* confdefs.h. */
24480 _ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 #include <curses.h>
24486 main ()
24488 void *x=resize_term
24490 return 0;
24492 _ACEOF
24493 rm -f conftest.$ac_objext
24494 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
24511 cat >>confdefs.h <<\_ACEOF
24512 #define HAVE_CURSES_RESIZE_TERM 1
24513 _ACEOF
24515 { echo "$as_me:$LINENO: result: yes" >&5
24516 echo "${ECHO_T}yes" >&6; }
24517 else
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24521 { echo "$as_me:$LINENO: result: no" >&5
24522 echo "${ECHO_T}no" >&6; }
24526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24528 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24529 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24530 cat >conftest.$ac_ext <<_ACEOF
24531 /* confdefs.h. */
24532 _ACEOF
24533 cat confdefs.h >>conftest.$ac_ext
24534 cat >>conftest.$ac_ext <<_ACEOF
24535 /* end confdefs.h. */
24536 #include <curses.h>
24538 main ()
24540 void *x=resizeterm
24542 return 0;
24544 _ACEOF
24545 rm -f conftest.$ac_objext
24546 if { (ac_try="$ac_compile"
24547 case "(($ac_try" in
24548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549 *) ac_try_echo=$ac_try;;
24550 esac
24551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24552 (eval "$ac_compile") 2>conftest.er1
24553 ac_status=$?
24554 grep -v '^ *+' conftest.er1 >conftest.err
24555 rm -f conftest.er1
24556 cat conftest.err >&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } && {
24559 test -z "$ac_c_werror_flag" ||
24560 test ! -s conftest.err
24561 } && test -s conftest.$ac_objext; then
24563 cat >>confdefs.h <<\_ACEOF
24564 #define HAVE_CURSES_RESIZETERM 1
24565 _ACEOF
24567 { echo "$as_me:$LINENO: result: yes" >&5
24568 echo "${ECHO_T}yes" >&6; }
24569 else
24570 echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24573 { echo "$as_me:$LINENO: result: no" >&5
24574 echo "${ECHO_T}no" >&6; }
24578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24580 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24581 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24583 if test -r /dev/ptmx
24584 then
24585 { echo "$as_me:$LINENO: result: yes" >&5
24586 echo "${ECHO_T}yes" >&6; }
24588 cat >>confdefs.h <<\_ACEOF
24589 #define HAVE_DEV_PTMX 1
24590 _ACEOF
24592 else
24593 { echo "$as_me:$LINENO: result: no" >&5
24594 echo "${ECHO_T}no" >&6; }
24597 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24598 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24600 if test -r /dev/ptc
24601 then
24602 { echo "$as_me:$LINENO: result: yes" >&5
24603 echo "${ECHO_T}yes" >&6; }
24605 cat >>confdefs.h <<\_ACEOF
24606 #define HAVE_DEV_PTC 1
24607 _ACEOF
24609 else
24610 { echo "$as_me:$LINENO: result: no" >&5
24611 echo "${ECHO_T}no" >&6; }
24614 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24615 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24616 if test "$cross_compiling" = yes; then
24617 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24618 See \`config.log' for more details." >&5
24619 echo "$as_me: error: cannot run test program while cross compiling
24620 See \`config.log' for more details." >&2;}
24621 { (exit 1); exit 1; }; }
24622 else
24623 cat >conftest.$ac_ext <<_ACEOF
24624 /* confdefs.h. */
24625 _ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629 #include <stdio.h>
24630 #include <stddef.h>
24631 #include <string.h>
24633 #ifdef HAVE_SYS_TYPES_H
24634 #include <sys/types.h>
24635 #endif
24637 #ifdef HAVE_SSIZE_T
24638 typedef ssize_t Py_ssize_t;
24639 #elif SIZEOF_VOID_P == SIZEOF_LONG
24640 typedef long Py_ssize_t;
24641 #else
24642 typedef int Py_ssize_t;
24643 #endif
24645 int main()
24647 char buffer[256];
24649 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24650 return 1;
24652 if (strcmp(buffer, "123"))
24653 return 1;
24655 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24656 return 1;
24658 if (strcmp(buffer, "-123"))
24659 return 1;
24661 return 0;
24663 _ACEOF
24664 rm -f conftest$ac_exeext
24665 if { (ac_try="$ac_link"
24666 case "(($ac_try" in
24667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24668 *) ac_try_echo=$ac_try;;
24669 esac
24670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24671 (eval "$ac_link") 2>&5
24672 ac_status=$?
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24675 { (case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24678 esac
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680 (eval "$ac_try") 2>&5
24681 ac_status=$?
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
24684 { echo "$as_me:$LINENO: result: yes" >&5
24685 echo "${ECHO_T}yes" >&6; }
24687 cat >>confdefs.h <<\_ACEOF
24688 #define PY_FORMAT_SIZE_T "z"
24689 _ACEOF
24691 else
24692 echo "$as_me: program exited with status $ac_status" >&5
24693 echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24696 ( exit $ac_status )
24697 { echo "$as_me:$LINENO: result: no" >&5
24698 echo "${ECHO_T}no" >&6; }
24700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24705 { echo "$as_me:$LINENO: checking for socklen_t" >&5
24706 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
24707 if test "${ac_cv_type_socklen_t+set}" = set; then
24708 echo $ECHO_N "(cached) $ECHO_C" >&6
24709 else
24710 cat >conftest.$ac_ext <<_ACEOF
24711 /* confdefs.h. */
24712 _ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24717 #ifdef HAVE_SYS_TYPES_H
24718 #include <sys/types.h>
24719 #endif
24720 #ifdef HAVE_SYS_SOCKET_H
24721 #include <sys/socket.h>
24722 #endif
24725 typedef socklen_t ac__type_new_;
24727 main ()
24729 if ((ac__type_new_ *) 0)
24730 return 0;
24731 if (sizeof (ac__type_new_))
24732 return 0;
24734 return 0;
24736 _ACEOF
24737 rm -f conftest.$ac_objext
24738 if { (ac_try="$ac_compile"
24739 case "(($ac_try" in
24740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24742 esac
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744 (eval "$ac_compile") 2>conftest.er1
24745 ac_status=$?
24746 grep -v '^ *+' conftest.er1 >conftest.err
24747 rm -f conftest.er1
24748 cat conftest.err >&5
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); } && {
24751 test -z "$ac_c_werror_flag" ||
24752 test ! -s conftest.err
24753 } && test -s conftest.$ac_objext; then
24754 ac_cv_type_socklen_t=yes
24755 else
24756 echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24759 ac_cv_type_socklen_t=no
24762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24764 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24765 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24766 if test $ac_cv_type_socklen_t = yes; then
24768 else
24770 cat >>confdefs.h <<\_ACEOF
24771 #define socklen_t int
24772 _ACEOF
24779 for h in `(cd $srcdir;echo Python/thread_*.h)`
24781 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24782 done
24785 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24786 { echo "$as_me:$LINENO: checking for build directories" >&5
24787 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24788 for dir in $SRCDIRS; do
24789 if test ! -d $dir; then
24790 mkdir $dir
24792 done
24793 { echo "$as_me:$LINENO: result: done" >&5
24794 echo "${ECHO_T}done" >&6; }
24796 # generate output files
24797 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24799 cat >confcache <<\_ACEOF
24800 # This file is a shell script that caches the results of configure
24801 # tests run on this system so they can be shared between configure
24802 # scripts and configure runs, see configure's option --config-cache.
24803 # It is not useful on other systems. If it contains results you don't
24804 # want to keep, you may remove or edit it.
24806 # config.status only pays attention to the cache file if you give it
24807 # the --recheck option to rerun configure.
24809 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24811 # following values.
24813 _ACEOF
24815 # The following way of writing the cache mishandles newlines in values,
24816 # but we know of no workaround that is simple, portable, and efficient.
24817 # So, we kill variables containing newlines.
24818 # Ultrix sh set writes to stderr and can't be redirected directly,
24819 # and sets the high bit in the cache file unless we assign to the vars.
24821 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24822 eval ac_val=\$$ac_var
24823 case $ac_val in #(
24824 *${as_nl}*)
24825 case $ac_var in #(
24826 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24827 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24828 esac
24829 case $ac_var in #(
24830 _ | IFS | as_nl) ;; #(
24831 *) $as_unset $ac_var ;;
24832 esac ;;
24833 esac
24834 done
24836 (set) 2>&1 |
24837 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24838 *${as_nl}ac_space=\ *)
24839 # `set' does not quote correctly, so add quotes (double-quote
24840 # substitution turns \\\\ into \\, and sed turns \\ into \).
24841 sed -n \
24842 "s/'/'\\\\''/g;
24843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24844 ;; #(
24846 # `set' quotes correctly as required by POSIX, so do not add quotes.
24847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24849 esac |
24850 sort
24852 sed '
24853 /^ac_cv_env_/b end
24854 t clear
24855 :clear
24856 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24857 t end
24858 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24859 :end' >>confcache
24860 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24861 if test -w "$cache_file"; then
24862 test "x$cache_file" != "x/dev/null" &&
24863 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24864 echo "$as_me: updating cache $cache_file" >&6;}
24865 cat confcache >$cache_file
24866 else
24867 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24868 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24871 rm -f confcache
24873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24874 # Let make expand exec_prefix.
24875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24877 DEFS=-DHAVE_CONFIG_H
24879 ac_libobjs=
24880 ac_ltlibobjs=
24881 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24882 # 1. Remove the extension, and $U if already installed.
24883 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24884 ac_i=`echo "$ac_i" | sed "$ac_script"`
24885 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24886 # will be set to the directory where LIBOBJS objects are built.
24887 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24888 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24889 done
24890 LIBOBJS=$ac_libobjs
24892 LTLIBOBJS=$ac_ltlibobjs
24896 : ${CONFIG_STATUS=./config.status}
24897 ac_clean_files_save=$ac_clean_files
24898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24899 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24900 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24901 cat >$CONFIG_STATUS <<_ACEOF
24902 #! $SHELL
24903 # Generated by $as_me.
24904 # Run this file to recreate the current configuration.
24905 # Compiler output produced by configure, useful for debugging
24906 # configure, is in config.log if it exists.
24908 debug=false
24909 ac_cs_recheck=false
24910 ac_cs_silent=false
24911 SHELL=\${CONFIG_SHELL-$SHELL}
24912 _ACEOF
24914 cat >>$CONFIG_STATUS <<\_ACEOF
24915 ## --------------------- ##
24916 ## M4sh Initialization. ##
24917 ## --------------------- ##
24919 # Be more Bourne compatible
24920 DUALCASE=1; export DUALCASE # for MKS sh
24921 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24922 emulate sh
24923 NULLCMD=:
24924 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24925 # is contrary to our usage. Disable this feature.
24926 alias -g '${1+"$@"}'='"$@"'
24927 setopt NO_GLOB_SUBST
24928 else
24929 case `(set -o) 2>/dev/null` in
24930 *posix*) set -o posix ;;
24931 esac
24938 # PATH needs CR
24939 # Avoid depending upon Character Ranges.
24940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24943 as_cr_digits='0123456789'
24944 as_cr_alnum=$as_cr_Letters$as_cr_digits
24946 # The user is always right.
24947 if test "${PATH_SEPARATOR+set}" != set; then
24948 echo "#! /bin/sh" >conf$$.sh
24949 echo "exit 0" >>conf$$.sh
24950 chmod +x conf$$.sh
24951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24952 PATH_SEPARATOR=';'
24953 else
24954 PATH_SEPARATOR=:
24956 rm -f conf$$.sh
24959 # Support unset when possible.
24960 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24961 as_unset=unset
24962 else
24963 as_unset=false
24967 # IFS
24968 # We need space, tab and new line, in precisely that order. Quoting is
24969 # there to prevent editors from complaining about space-tab.
24970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24971 # splitting by setting IFS to empty value.)
24972 as_nl='
24974 IFS=" "" $as_nl"
24976 # Find who we are. Look in the path if we contain no directory separator.
24977 case $0 in
24978 *[\\/]* ) as_myself=$0 ;;
24979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24980 for as_dir in $PATH
24982 IFS=$as_save_IFS
24983 test -z "$as_dir" && as_dir=.
24984 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24985 done
24986 IFS=$as_save_IFS
24989 esac
24990 # We did not find ourselves, most probably we were run as `sh COMMAND'
24991 # in which case we are not to be found in the path.
24992 if test "x$as_myself" = x; then
24993 as_myself=$0
24995 if test ! -f "$as_myself"; then
24996 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24997 { (exit 1); exit 1; }
25000 # Work around bugs in pre-3.0 UWIN ksh.
25001 for as_var in ENV MAIL MAILPATH
25002 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25003 done
25004 PS1='$ '
25005 PS2='> '
25006 PS4='+ '
25008 # NLS nuisances.
25009 for as_var in \
25010 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25011 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25012 LC_TELEPHONE LC_TIME
25014 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25015 eval $as_var=C; export $as_var
25016 else
25017 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25019 done
25021 # Required to use basename.
25022 if expr a : '\(a\)' >/dev/null 2>&1 &&
25023 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25024 as_expr=expr
25025 else
25026 as_expr=false
25029 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25030 as_basename=basename
25031 else
25032 as_basename=false
25036 # Name of the executable.
25037 as_me=`$as_basename -- "$0" ||
25038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25039 X"$0" : 'X\(//\)$' \| \
25040 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25041 echo X/"$0" |
25042 sed '/^.*\/\([^/][^/]*\)\/*$/{
25043 s//\1/
25046 /^X\/\(\/\/\)$/{
25047 s//\1/
25050 /^X\/\(\/\).*/{
25051 s//\1/
25054 s/.*/./; q'`
25056 # CDPATH.
25057 $as_unset CDPATH
25061 as_lineno_1=$LINENO
25062 as_lineno_2=$LINENO
25063 test "x$as_lineno_1" != "x$as_lineno_2" &&
25064 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25067 # uniformly replaced by the line number. The first 'sed' inserts a
25068 # line-number line after each line using $LINENO; the second 'sed'
25069 # does the real work. The second script uses 'N' to pair each
25070 # line-number line with the line containing $LINENO, and appends
25071 # trailing '-' during substitution so that $LINENO is not a special
25072 # case at line end.
25073 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25074 # scripts with optimization help from Paolo Bonzini. Blame Lee
25075 # E. McMahon (1931-1989) for sed's syntax. :-)
25076 sed -n '
25078 /[$]LINENO/=
25079 ' <$as_myself |
25080 sed '
25081 s/[$]LINENO.*/&-/
25082 t lineno
25084 :lineno
25086 :loop
25087 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25088 t loop
25089 s/-\n.*//
25090 ' >$as_me.lineno &&
25091 chmod +x "$as_me.lineno" ||
25092 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25093 { (exit 1); exit 1; }; }
25095 # Don't try to exec as it changes $[0], causing all sort of problems
25096 # (the dirname of $[0] is not the place where we might find the
25097 # original and so on. Autoconf is especially sensitive to this).
25098 . "./$as_me.lineno"
25099 # Exit status is that of the last command.
25100 exit
25104 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25105 as_dirname=dirname
25106 else
25107 as_dirname=false
25110 ECHO_C= ECHO_N= ECHO_T=
25111 case `echo -n x` in
25112 -n*)
25113 case `echo 'x\c'` in
25114 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25115 *) ECHO_C='\c';;
25116 esac;;
25118 ECHO_N='-n';;
25119 esac
25121 if expr a : '\(a\)' >/dev/null 2>&1 &&
25122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25123 as_expr=expr
25124 else
25125 as_expr=false
25128 rm -f conf$$ conf$$.exe conf$$.file
25129 if test -d conf$$.dir; then
25130 rm -f conf$$.dir/conf$$.file
25131 else
25132 rm -f conf$$.dir
25133 mkdir conf$$.dir
25135 echo >conf$$.file
25136 if ln -s conf$$.file conf$$ 2>/dev/null; then
25137 as_ln_s='ln -s'
25138 # ... but there are two gotchas:
25139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25141 # In both cases, we have to default to `cp -p'.
25142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25143 as_ln_s='cp -p'
25144 elif ln conf$$.file conf$$ 2>/dev/null; then
25145 as_ln_s=ln
25146 else
25147 as_ln_s='cp -p'
25149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25150 rmdir conf$$.dir 2>/dev/null
25152 if mkdir -p . 2>/dev/null; then
25153 as_mkdir_p=:
25154 else
25155 test -d ./-p && rmdir ./-p
25156 as_mkdir_p=false
25159 if test -x / >/dev/null 2>&1; then
25160 as_test_x='test -x'
25161 else
25162 if ls -dL / >/dev/null 2>&1; then
25163 as_ls_L_option=L
25164 else
25165 as_ls_L_option=
25167 as_test_x='
25168 eval sh -c '\''
25169 if test -d "$1"; then
25170 test -d "$1/.";
25171 else
25172 case $1 in
25173 -*)set "./$1";;
25174 esac;
25175 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25176 ???[sx]*):;;*)false;;esac;fi
25177 '\'' sh
25180 as_executable_p=$as_test_x
25182 # Sed expression to map a string onto a valid CPP name.
25183 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25185 # Sed expression to map a string onto a valid variable name.
25186 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25189 exec 6>&1
25191 # Save the log message, to keep $[0] and so on meaningful, and to
25192 # report actual input values of CONFIG_FILES etc. instead of their
25193 # values after options handling.
25194 ac_log="
25195 This file was extended by python $as_me 2.7, which was
25196 generated by GNU Autoconf 2.61. Invocation command line was
25198 CONFIG_FILES = $CONFIG_FILES
25199 CONFIG_HEADERS = $CONFIG_HEADERS
25200 CONFIG_LINKS = $CONFIG_LINKS
25201 CONFIG_COMMANDS = $CONFIG_COMMANDS
25202 $ $0 $@
25204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25207 _ACEOF
25209 cat >>$CONFIG_STATUS <<_ACEOF
25210 # Files that config.status was made for.
25211 config_files="$ac_config_files"
25212 config_headers="$ac_config_headers"
25214 _ACEOF
25216 cat >>$CONFIG_STATUS <<\_ACEOF
25217 ac_cs_usage="\
25218 \`$as_me' instantiates files from templates according to the
25219 current configuration.
25221 Usage: $0 [OPTIONS] [FILE]...
25223 -h, --help print this help, then exit
25224 -V, --version print version number and configuration settings, then exit
25225 -q, --quiet do not print progress messages
25226 -d, --debug don't remove temporary files
25227 --recheck update $as_me by reconfiguring in the same conditions
25228 --file=FILE[:TEMPLATE]
25229 instantiate the configuration file FILE
25230 --header=FILE[:TEMPLATE]
25231 instantiate the configuration header FILE
25233 Configuration files:
25234 $config_files
25236 Configuration headers:
25237 $config_headers
25239 Report bugs to <bug-autoconf@gnu.org>."
25241 _ACEOF
25242 cat >>$CONFIG_STATUS <<_ACEOF
25243 ac_cs_version="\\
25244 python config.status 2.7
25245 configured by $0, generated by GNU Autoconf 2.61,
25246 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25248 Copyright (C) 2006 Free Software Foundation, Inc.
25249 This config.status script is free software; the Free Software Foundation
25250 gives unlimited permission to copy, distribute and modify it."
25252 ac_pwd='$ac_pwd'
25253 srcdir='$srcdir'
25254 INSTALL='$INSTALL'
25255 _ACEOF
25257 cat >>$CONFIG_STATUS <<\_ACEOF
25258 # If no file are specified by the user, then we need to provide default
25259 # value. By we need to know if files were specified by the user.
25260 ac_need_defaults=:
25261 while test $# != 0
25263 case $1 in
25264 --*=*)
25265 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25266 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25267 ac_shift=:
25270 ac_option=$1
25271 ac_optarg=$2
25272 ac_shift=shift
25274 esac
25276 case $ac_option in
25277 # Handling of the options.
25278 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25279 ac_cs_recheck=: ;;
25280 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25281 echo "$ac_cs_version"; exit ;;
25282 --debug | --debu | --deb | --de | --d | -d )
25283 debug=: ;;
25284 --file | --fil | --fi | --f )
25285 $ac_shift
25286 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25287 ac_need_defaults=false;;
25288 --header | --heade | --head | --hea )
25289 $ac_shift
25290 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25291 ac_need_defaults=false;;
25292 --he | --h)
25293 # Conflict between --help and --header
25294 { echo "$as_me: error: ambiguous option: $1
25295 Try \`$0 --help' for more information." >&2
25296 { (exit 1); exit 1; }; };;
25297 --help | --hel | -h )
25298 echo "$ac_cs_usage"; exit ;;
25299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25301 ac_cs_silent=: ;;
25303 # This is an error.
25304 -*) { echo "$as_me: error: unrecognized option: $1
25305 Try \`$0 --help' for more information." >&2
25306 { (exit 1); exit 1; }; } ;;
25308 *) ac_config_targets="$ac_config_targets $1"
25309 ac_need_defaults=false ;;
25311 esac
25312 shift
25313 done
25315 ac_configure_extra_args=
25317 if $ac_cs_silent; then
25318 exec 6>/dev/null
25319 ac_configure_extra_args="$ac_configure_extra_args --silent"
25322 _ACEOF
25323 cat >>$CONFIG_STATUS <<_ACEOF
25324 if \$ac_cs_recheck; then
25325 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25326 CONFIG_SHELL=$SHELL
25327 export CONFIG_SHELL
25328 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25331 _ACEOF
25332 cat >>$CONFIG_STATUS <<\_ACEOF
25333 exec 5>>config.log
25335 echo
25336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25337 ## Running $as_me. ##
25338 _ASBOX
25339 echo "$ac_log"
25340 } >&5
25342 _ACEOF
25343 cat >>$CONFIG_STATUS <<_ACEOF
25344 _ACEOF
25346 cat >>$CONFIG_STATUS <<\_ACEOF
25348 # Handling of arguments.
25349 for ac_config_target in $ac_config_targets
25351 case $ac_config_target in
25352 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25353 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25354 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25355 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25356 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25357 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25358 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25359 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25361 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25362 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25363 { (exit 1); exit 1; }; };;
25364 esac
25365 done
25368 # If the user did not use the arguments to specify the items to instantiate,
25369 # then the envvar interface is used. Set only those that are not.
25370 # We use the long form for the default assignment because of an extremely
25371 # bizarre bug on SunOS 4.1.3.
25372 if $ac_need_defaults; then
25373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25377 # Have a temporary directory for convenience. Make it in the build tree
25378 # simply because there is no reason against having it here, and in addition,
25379 # creating and moving files from /tmp can sometimes cause problems.
25380 # Hook for its removal unless debugging.
25381 # Note that there is a small window in which the directory will not be cleaned:
25382 # after its creation but before its name has been assigned to `$tmp'.
25383 $debug ||
25385 tmp=
25386 trap 'exit_status=$?
25387 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25389 trap '{ (exit 1); exit 1; }' 1 2 13 15
25391 # Create a (secure) tmp directory for tmp files.
25394 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25395 test -n "$tmp" && test -d "$tmp"
25396 } ||
25398 tmp=./conf$$-$RANDOM
25399 (umask 077 && mkdir "$tmp")
25400 } ||
25402 echo "$me: cannot create a temporary directory in ." >&2
25403 { (exit 1); exit 1; }
25407 # Set up the sed scripts for CONFIG_FILES section.
25410 # No need to generate the scripts if there are no CONFIG_FILES.
25411 # This happens for instance when ./config.status config.h
25412 if test -n "$CONFIG_FILES"; then
25414 _ACEOF
25418 ac_delim='%!_!# '
25419 for ac_last_try in false false false false false :; do
25420 cat >conf$$subs.sed <<_ACEOF
25421 SHELL!$SHELL$ac_delim
25422 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25423 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25424 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25425 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25426 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25427 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25428 exec_prefix!$exec_prefix$ac_delim
25429 prefix!$prefix$ac_delim
25430 program_transform_name!$program_transform_name$ac_delim
25431 bindir!$bindir$ac_delim
25432 sbindir!$sbindir$ac_delim
25433 libexecdir!$libexecdir$ac_delim
25434 datarootdir!$datarootdir$ac_delim
25435 datadir!$datadir$ac_delim
25436 sysconfdir!$sysconfdir$ac_delim
25437 sharedstatedir!$sharedstatedir$ac_delim
25438 localstatedir!$localstatedir$ac_delim
25439 includedir!$includedir$ac_delim
25440 oldincludedir!$oldincludedir$ac_delim
25441 docdir!$docdir$ac_delim
25442 infodir!$infodir$ac_delim
25443 htmldir!$htmldir$ac_delim
25444 dvidir!$dvidir$ac_delim
25445 pdfdir!$pdfdir$ac_delim
25446 psdir!$psdir$ac_delim
25447 libdir!$libdir$ac_delim
25448 localedir!$localedir$ac_delim
25449 mandir!$mandir$ac_delim
25450 DEFS!$DEFS$ac_delim
25451 ECHO_C!$ECHO_C$ac_delim
25452 ECHO_N!$ECHO_N$ac_delim
25453 ECHO_T!$ECHO_T$ac_delim
25454 LIBS!$LIBS$ac_delim
25455 build_alias!$build_alias$ac_delim
25456 host_alias!$host_alias$ac_delim
25457 target_alias!$target_alias$ac_delim
25458 VERSION!$VERSION$ac_delim
25459 SOVERSION!$SOVERSION$ac_delim
25460 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25461 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25462 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25463 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25464 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25465 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25466 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25467 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25468 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25469 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25470 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25471 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25472 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25473 MACHDEP!$MACHDEP$ac_delim
25474 SGI_ABI!$SGI_ABI$ac_delim
25475 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25476 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25477 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25478 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25479 CC!$CC$ac_delim
25480 CFLAGS!$CFLAGS$ac_delim
25481 LDFLAGS!$LDFLAGS$ac_delim
25482 CPPFLAGS!$CPPFLAGS$ac_delim
25483 ac_ct_CC!$ac_ct_CC$ac_delim
25484 EXEEXT!$EXEEXT$ac_delim
25485 OBJEXT!$OBJEXT$ac_delim
25486 CXX!$CXX$ac_delim
25487 MAINCC!$MAINCC$ac_delim
25488 CPP!$CPP$ac_delim
25489 GREP!$GREP$ac_delim
25490 EGREP!$EGREP$ac_delim
25491 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25492 LIBRARY!$LIBRARY$ac_delim
25493 LDLIBRARY!$LDLIBRARY$ac_delim
25494 DLLLIBRARY!$DLLLIBRARY$ac_delim
25495 BLDLIBRARY!$BLDLIBRARY$ac_delim
25496 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25497 INSTSONAME!$INSTSONAME$ac_delim
25498 RUNSHARED!$RUNSHARED$ac_delim
25499 LINKCC!$LINKCC$ac_delim
25500 RANLIB!$RANLIB$ac_delim
25501 AR!$AR$ac_delim
25502 SVNVERSION!$SVNVERSION$ac_delim
25503 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25504 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25505 INSTALL_DATA!$INSTALL_DATA$ac_delim
25506 LN!$LN$ac_delim
25507 OPT!$OPT$ac_delim
25508 BASECFLAGS!$BASECFLAGS$ac_delim
25509 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25510 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25511 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25512 SO!$SO$ac_delim
25513 LDSHARED!$LDSHARED$ac_delim
25514 BLDSHARED!$BLDSHARED$ac_delim
25515 CCSHARED!$CCSHARED$ac_delim
25516 LINKFORSHARED!$LINKFORSHARED$ac_delim
25517 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25518 _ACEOF
25520 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25521 break
25522 elif $ac_last_try; then
25523 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25524 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25525 { (exit 1); exit 1; }; }
25526 else
25527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25529 done
25531 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25532 if test -n "$ac_eof"; then
25533 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25534 ac_eof=`expr $ac_eof + 1`
25537 cat >>$CONFIG_STATUS <<_ACEOF
25538 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25540 _ACEOF
25541 sed '
25542 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25543 s/^/s,@/; s/!/@,|#_!!_#|/
25546 s/'"$ac_delim"'$/,g/; t
25547 s/$/\\/; p
25548 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25549 ' >>$CONFIG_STATUS <conf$$subs.sed
25550 rm -f conf$$subs.sed
25551 cat >>$CONFIG_STATUS <<_ACEOF
25552 CEOF$ac_eof
25553 _ACEOF
25556 ac_delim='%!_!# '
25557 for ac_last_try in false false false false false :; do
25558 cat >conf$$subs.sed <<_ACEOF
25559 SHLIBS!$SHLIBS$ac_delim
25560 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25561 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25562 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25563 LDLAST!$LDLAST$ac_delim
25564 THREADOBJ!$THREADOBJ$ac_delim
25565 DLINCLDIR!$DLINCLDIR$ac_delim
25566 DYNLOADFILE!$DYNLOADFILE$ac_delim
25567 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25568 TRUE!$TRUE$ac_delim
25569 LIBOBJS!$LIBOBJS$ac_delim
25570 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25571 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25572 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25573 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25574 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25575 LIBM!$LIBM$ac_delim
25576 LIBC!$LIBC$ac_delim
25577 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25578 THREADHEADERS!$THREADHEADERS$ac_delim
25579 SRCDIRS!$SRCDIRS$ac_delim
25580 LTLIBOBJS!$LTLIBOBJS$ac_delim
25581 _ACEOF
25583 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25584 break
25585 elif $ac_last_try; then
25586 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25587 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25588 { (exit 1); exit 1; }; }
25589 else
25590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25592 done
25594 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25595 if test -n "$ac_eof"; then
25596 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25597 ac_eof=`expr $ac_eof + 1`
25600 cat >>$CONFIG_STATUS <<_ACEOF
25601 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25603 _ACEOF
25604 sed '
25605 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25606 s/^/s,@/; s/!/@,|#_!!_#|/
25609 s/'"$ac_delim"'$/,g/; t
25610 s/$/\\/; p
25611 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25612 ' >>$CONFIG_STATUS <conf$$subs.sed
25613 rm -f conf$$subs.sed
25614 cat >>$CONFIG_STATUS <<_ACEOF
25615 :end
25616 s/|#_!!_#|//g
25617 CEOF$ac_eof
25618 _ACEOF
25621 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25622 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25623 # trailing colons and then remove the whole line if VPATH becomes empty
25624 # (actually we leave an empty line to preserve line numbers).
25625 if test "x$srcdir" = x.; then
25626 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25627 s/:*\$(srcdir):*/:/
25628 s/:*\${srcdir}:*/:/
25629 s/:*@srcdir@:*/:/
25630 s/^\([^=]*=[ ]*\):*/\1/
25631 s/:*$//
25632 s/^[^=]*=[ ]*$//
25636 cat >>$CONFIG_STATUS <<\_ACEOF
25637 fi # test -n "$CONFIG_FILES"
25640 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25642 case $ac_tag in
25643 :[FHLC]) ac_mode=$ac_tag; continue;;
25644 esac
25645 case $ac_mode$ac_tag in
25646 :[FHL]*:*);;
25647 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25648 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25649 { (exit 1); exit 1; }; };;
25650 :[FH]-) ac_tag=-:-;;
25651 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25652 esac
25653 ac_save_IFS=$IFS
25654 IFS=:
25655 set x $ac_tag
25656 IFS=$ac_save_IFS
25657 shift
25658 ac_file=$1
25659 shift
25661 case $ac_mode in
25662 :L) ac_source=$1;;
25663 :[FH])
25664 ac_file_inputs=
25665 for ac_f
25667 case $ac_f in
25668 -) ac_f="$tmp/stdin";;
25669 *) # Look for the file first in the build tree, then in the source tree
25670 # (if the path is not absolute). The absolute path cannot be DOS-style,
25671 # because $ac_f cannot contain `:'.
25672 test -f "$ac_f" ||
25673 case $ac_f in
25674 [\\/$]*) false;;
25675 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25676 esac ||
25677 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25678 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25679 { (exit 1); exit 1; }; };;
25680 esac
25681 ac_file_inputs="$ac_file_inputs $ac_f"
25682 done
25684 # Let's still pretend it is `configure' which instantiates (i.e., don't
25685 # use $as_me), people would be surprised to read:
25686 # /* config.h. Generated by config.status. */
25687 configure_input="Generated from "`IFS=:
25688 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25689 if test x"$ac_file" != x-; then
25690 configure_input="$ac_file. $configure_input"
25691 { echo "$as_me:$LINENO: creating $ac_file" >&5
25692 echo "$as_me: creating $ac_file" >&6;}
25695 case $ac_tag in
25696 *:-:* | *:-) cat >"$tmp/stdin";;
25697 esac
25699 esac
25701 ac_dir=`$as_dirname -- "$ac_file" ||
25702 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25703 X"$ac_file" : 'X\(//\)[^/]' \| \
25704 X"$ac_file" : 'X\(//\)$' \| \
25705 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25706 echo X"$ac_file" |
25707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25708 s//\1/
25711 /^X\(\/\/\)[^/].*/{
25712 s//\1/
25715 /^X\(\/\/\)$/{
25716 s//\1/
25719 /^X\(\/\).*/{
25720 s//\1/
25723 s/.*/./; q'`
25724 { as_dir="$ac_dir"
25725 case $as_dir in #(
25726 -*) as_dir=./$as_dir;;
25727 esac
25728 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25729 as_dirs=
25730 while :; do
25731 case $as_dir in #(
25732 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25733 *) as_qdir=$as_dir;;
25734 esac
25735 as_dirs="'$as_qdir' $as_dirs"
25736 as_dir=`$as_dirname -- "$as_dir" ||
25737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25738 X"$as_dir" : 'X\(//\)[^/]' \| \
25739 X"$as_dir" : 'X\(//\)$' \| \
25740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25741 echo X"$as_dir" |
25742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25743 s//\1/
25746 /^X\(\/\/\)[^/].*/{
25747 s//\1/
25750 /^X\(\/\/\)$/{
25751 s//\1/
25754 /^X\(\/\).*/{
25755 s//\1/
25758 s/.*/./; q'`
25759 test -d "$as_dir" && break
25760 done
25761 test -z "$as_dirs" || eval "mkdir $as_dirs"
25762 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25763 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25764 { (exit 1); exit 1; }; }; }
25765 ac_builddir=.
25767 case "$ac_dir" in
25768 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25770 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25771 # A ".." for each directory in $ac_dir_suffix.
25772 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25773 case $ac_top_builddir_sub in
25774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25776 esac ;;
25777 esac
25778 ac_abs_top_builddir=$ac_pwd
25779 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25780 # for backward compatibility:
25781 ac_top_builddir=$ac_top_build_prefix
25783 case $srcdir in
25784 .) # We are building in place.
25785 ac_srcdir=.
25786 ac_top_srcdir=$ac_top_builddir_sub
25787 ac_abs_top_srcdir=$ac_pwd ;;
25788 [\\/]* | ?:[\\/]* ) # Absolute name.
25789 ac_srcdir=$srcdir$ac_dir_suffix;
25790 ac_top_srcdir=$srcdir
25791 ac_abs_top_srcdir=$srcdir ;;
25792 *) # Relative name.
25793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25794 ac_top_srcdir=$ac_top_build_prefix$srcdir
25795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25796 esac
25797 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25800 case $ac_mode in
25803 # CONFIG_FILE
25806 case $INSTALL in
25807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25808 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25809 esac
25810 _ACEOF
25812 cat >>$CONFIG_STATUS <<\_ACEOF
25813 # If the template does not know about datarootdir, expand it.
25814 # FIXME: This hack should be removed a few years after 2.60.
25815 ac_datarootdir_hack=; ac_datarootdir_seen=
25817 case `sed -n '/datarootdir/ {
25821 /@datadir@/p
25822 /@docdir@/p
25823 /@infodir@/p
25824 /@localedir@/p
25825 /@mandir@/p
25826 ' $ac_file_inputs` in
25827 *datarootdir*) ac_datarootdir_seen=yes;;
25828 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25829 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25830 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25831 _ACEOF
25832 cat >>$CONFIG_STATUS <<_ACEOF
25833 ac_datarootdir_hack='
25834 s&@datadir@&$datadir&g
25835 s&@docdir@&$docdir&g
25836 s&@infodir@&$infodir&g
25837 s&@localedir@&$localedir&g
25838 s&@mandir@&$mandir&g
25839 s&\\\${datarootdir}&$datarootdir&g' ;;
25840 esac
25841 _ACEOF
25843 # Neutralize VPATH when `$srcdir' = `.'.
25844 # Shell code in configure.ac might set extrasub.
25845 # FIXME: do we really want to maintain this feature?
25846 cat >>$CONFIG_STATUS <<_ACEOF
25847 sed "$ac_vpsub
25848 $extrasub
25849 _ACEOF
25850 cat >>$CONFIG_STATUS <<\_ACEOF
25852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25853 s&@configure_input@&$configure_input&;t t
25854 s&@top_builddir@&$ac_top_builddir_sub&;t t
25855 s&@srcdir@&$ac_srcdir&;t t
25856 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25857 s&@top_srcdir@&$ac_top_srcdir&;t t
25858 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25859 s&@builddir@&$ac_builddir&;t t
25860 s&@abs_builddir@&$ac_abs_builddir&;t t
25861 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25862 s&@INSTALL@&$ac_INSTALL&;t t
25863 $ac_datarootdir_hack
25864 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25866 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25867 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25868 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25869 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25870 which seems to be undefined. Please make sure it is defined." >&5
25871 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25872 which seems to be undefined. Please make sure it is defined." >&2;}
25874 rm -f "$tmp/stdin"
25875 case $ac_file in
25876 -) cat "$tmp/out"; rm -f "$tmp/out";;
25877 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25878 esac
25882 # CONFIG_HEADER
25884 _ACEOF
25886 # Transform confdefs.h into a sed script `conftest.defines', that
25887 # substitutes the proper values into config.h.in to produce config.h.
25888 rm -f conftest.defines conftest.tail
25889 # First, append a space to every undef/define line, to ease matching.
25890 echo 's/$/ /' >conftest.defines
25891 # Then, protect against being on the right side of a sed subst, or in
25892 # an unquoted here document, in config.status. If some macros were
25893 # called several times there might be several #defines for the same
25894 # symbol, which is useless. But do not sort them, since the last
25895 # AC_DEFINE must be honored.
25896 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25897 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25898 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25899 # PARAMS is the parameter list in the macro definition--in most cases, it's
25900 # just an empty string.
25901 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25902 ac_dB='\\)[ (].*,\\1define\\2'
25903 ac_dC=' '
25904 ac_dD=' ,'
25906 uniq confdefs.h |
25907 sed -n '
25908 t rset
25909 :rset
25910 s/^[ ]*#[ ]*define[ ][ ]*//
25911 t ok
25914 s/[\\&,]/\\&/g
25915 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25916 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25917 ' >>conftest.defines
25919 # Remove the space that was appended to ease matching.
25920 # Then replace #undef with comments. This is necessary, for
25921 # example, in the case of _POSIX_SOURCE, which is predefined and required
25922 # on some systems where configure will not decide to define it.
25923 # (The regexp can be short, since the line contains either #define or #undef.)
25924 echo 's/ $//
25925 s,^[ #]*u.*,/* & */,' >>conftest.defines
25927 # Break up conftest.defines:
25928 ac_max_sed_lines=50
25930 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25931 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25932 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25933 # et cetera.
25934 ac_in='$ac_file_inputs'
25935 ac_out='"$tmp/out1"'
25936 ac_nxt='"$tmp/out2"'
25938 while :
25940 # Write a here document:
25941 cat >>$CONFIG_STATUS <<_ACEOF
25942 # First, check the format of the line:
25943 cat >"\$tmp/defines.sed" <<\\CEOF
25944 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25945 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25947 :def
25948 _ACEOF
25949 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25950 echo 'CEOF
25951 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25952 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25953 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25954 grep . conftest.tail >/dev/null || break
25955 rm -f conftest.defines
25956 mv conftest.tail conftest.defines
25957 done
25958 rm -f conftest.defines conftest.tail
25960 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25961 cat >>$CONFIG_STATUS <<\_ACEOF
25962 if test x"$ac_file" != x-; then
25963 echo "/* $configure_input */" >"$tmp/config.h"
25964 cat "$ac_result" >>"$tmp/config.h"
25965 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25966 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25967 echo "$as_me: $ac_file is unchanged" >&6;}
25968 else
25969 rm -f $ac_file
25970 mv "$tmp/config.h" $ac_file
25972 else
25973 echo "/* $configure_input */"
25974 cat "$ac_result"
25976 rm -f "$tmp/out12"
25980 esac
25982 done # for ac_tag
25985 { (exit 0); exit 0; }
25986 _ACEOF
25987 chmod +x $CONFIG_STATUS
25988 ac_clean_files=$ac_clean_files_save
25991 # configure is writing to config.log, and then calls config.status.
25992 # config.status does its own redirection, appending to config.log.
25993 # Unfortunately, on DOS this fails, as config.log is still kept open
25994 # by configure, so config.status won't be able to write to it; its
25995 # output is simply discarded. So we exec the FD to /dev/null,
25996 # effectively closing config.log, so it can be properly (re)opened and
25997 # appended to by config.status. When coming back to configure, we
25998 # need to make the FD available again.
25999 if test "$no_create" != yes; then
26000 ac_cs_success=:
26001 ac_config_status_args=
26002 test "$silent" = yes &&
26003 ac_config_status_args="$ac_config_status_args --quiet"
26004 exec 5>/dev/null
26005 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26006 exec 5>>config.log
26007 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26008 # would make configure fail if this is the last instruction.
26009 $ac_cs_success || { (exit 1); exit 1; }
26013 echo "creating Modules/Setup"
26014 if test ! -f Modules/Setup
26015 then
26016 cp $srcdir/Modules/Setup.dist Modules/Setup
26019 echo "creating Modules/Setup.local"
26020 if test ! -f Modules/Setup.local
26021 then
26022 echo "# Edit this file for local setup changes" >Modules/Setup.local
26025 echo "creating Makefile"
26026 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26027 -s Modules Modules/Setup.config \
26028 Modules/Setup.local Modules/Setup
26030 case $ac_sys_system in
26031 BeOS)
26032 { echo "$as_me:$LINENO: WARNING:
26034 Support for BeOS is deprecated as of Python 2.6.
26035 See PEP 11 for the gory details.
26036 " >&5
26037 echo "$as_me: WARNING:
26039 Support for BeOS is deprecated as of Python 2.6.
26040 See PEP 11 for the gory details.
26041 " >&2;}
26043 *) ;;
26044 esac
26046 mv config.c Modules