Issue #3726: Allowed spaces in separators in logging configuration files.
[python.git] / configure
blob3ab80ab34249f736388f5f653b4e363aa1f3177c
1 #! /bin/sh
2 # From configure.in Revision: 65652 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.6'
579 PACKAGE_STRING='python 2.6'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 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.6 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.6:";;
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.6
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.6, 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.6
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*)
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
2089 # OpenBSD's readline library needs the libcurses
2090 READLINE_LIBS="-lcurses"
2092 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2093 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2094 # Marc Recht
2095 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2096 define_xopen_source=no;;
2097 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2098 # of union __?sigval. Reported by Stuart Bishop.
2099 SunOS/5.6)
2100 define_xopen_source=no;;
2101 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2102 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2103 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2104 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2105 define_xopen_source=no;;
2106 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2107 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2108 SCO_SV/3.2)
2109 define_xopen_source=no;;
2110 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2111 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2112 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2113 # This should hopefully be fixed in FreeBSD 4.9
2114 FreeBSD/4.8* | Darwin/6* )
2115 define_xopen_source=no;;
2116 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2117 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2118 # or has another value. By not (re)defining it, the defaults come in place.
2119 AIX/4)
2120 define_xopen_source=no;;
2121 AIX/5)
2122 if test `uname -r` -eq 1; then
2123 define_xopen_source=no
2126 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2127 # disables platform specific features beyond repair.
2128 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2129 # has no effect, don't bother defining them
2130 Darwin/[789].*)
2131 define_xopen_source=no
2133 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2134 # defining NI_NUMERICHOST.
2135 QNX/6.3.2)
2136 define_xopen_source=no
2139 esac
2141 if test $define_xopen_source = yes
2142 then
2143 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2144 # defined precisely as g++ defines it
2145 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2146 # compiler
2147 case $ac_sys_system/$ac_sys_release in
2148 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2150 cat >>confdefs.h <<\_ACEOF
2151 #define _XOPEN_SOURCE 500
2152 _ACEOF
2157 cat >>confdefs.h <<\_ACEOF
2158 #define _XOPEN_SOURCE 600
2159 _ACEOF
2162 esac
2164 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2165 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2166 # several APIs are not declared. Since this is also needed in some
2167 # cases for HP-UX, we define it globally.
2168 # except for Solaris 10, where it must not be defined,
2169 # as it implies XPG4.2
2170 case $ac_sys_system/$ac_sys_release in
2171 SunOS/5.10)
2175 cat >>confdefs.h <<\_ACEOF
2176 #define _XOPEN_SOURCE_EXTENDED 1
2177 _ACEOF
2180 esac
2183 cat >>confdefs.h <<\_ACEOF
2184 #define _POSIX_C_SOURCE 200112L
2185 _ACEOF
2191 # SGI compilers allow the specification of the both the ABI and the
2192 # ISA on the command line. Depending on the values of these switches,
2193 # different and often incompatable code will be generated.
2195 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2196 # thus supply support for various ABI/ISA combinations. The MACHDEP
2197 # variable is also adjusted.
2200 if test ! -z "$SGI_ABI"
2201 then
2202 CC="cc $SGI_ABI"
2203 LDFLAGS="$SGI_ABI $LDFLAGS"
2204 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2206 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2207 echo "${ECHO_T}$MACHDEP" >&6; }
2209 # And add extra plat-mac for darwin
2212 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2213 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2214 if test -z "$EXTRAPLATDIR"
2215 then
2216 case $MACHDEP in
2217 darwin)
2218 EXTRAPLATDIR="\$(PLATMACDIRS)"
2219 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2222 EXTRAPLATDIR=""
2223 EXTRAMACHDEPPATH=""
2225 esac
2227 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2228 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2230 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2231 # it may influence the way we can build extensions, so distutils
2232 # needs to check it
2235 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2236 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2238 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2239 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2240 ac_sys_machine=`uname -m`
2241 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2242 echo "${ECHO_T}$ac_sys_machine" >&6; }
2244 # checks for alternative programs
2246 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2247 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2248 # just to get things to compile and link. Users are free to override OPT
2249 # when running configure or make. The build should not break if they do.
2250 # BASECFLAGS should generally not be messed with, however.
2252 # XXX shouldn't some/most/all of this code be merged with the stuff later
2253 # on that fiddles with OPT and BASECFLAGS?
2254 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2255 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2257 # Check whether --with-gcc was given.
2258 if test "${with_gcc+set}" = set; then
2259 withval=$with_gcc;
2260 case $withval in
2261 no) CC=cc
2262 without_gcc=yes;;
2263 yes) CC=gcc
2264 without_gcc=no;;
2265 *) CC=$withval
2266 without_gcc=$withval;;
2267 esac
2268 else
2270 case $ac_sys_system in
2271 AIX*) CC=cc_r
2272 without_gcc=;;
2273 BeOS*)
2274 case $BE_HOST_CPU in
2275 ppc)
2276 CC=mwcc
2277 without_gcc=yes
2278 BASECFLAGS="$BASECFLAGS -export pragma"
2279 OPT="$OPT -O"
2280 LDFLAGS="$LDFLAGS -nodup"
2282 x86)
2283 CC=gcc
2284 without_gcc=no
2285 OPT="$OPT -O"
2288 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2289 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2290 { (exit 1); exit 1; }; }
2292 esac
2293 AR="\$(srcdir)/Modules/ar_beos"
2294 RANLIB=:
2296 Monterey*)
2297 RANLIB=:
2298 without_gcc=;;
2299 *) without_gcc=no;;
2300 esac
2303 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2304 echo "${ECHO_T}$without_gcc" >&6; }
2306 # If the user switches compilers, we can't believe the cache
2307 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2308 then
2309 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2310 (it is also a good idea to do 'make clean' before compiling)" >&5
2311 echo "$as_me: error: cached CC is different -- throw away $cache_file
2312 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2313 { (exit 1); exit 1; }; }
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2343 done
2344 done
2345 IFS=$as_save_IFS
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 { echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6; }
2353 else
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2360 if test -z "$ac_cv_prog_CC"; then
2361 ac_ct_CC=$CC
2362 # Extract the first word of "gcc", so it can be a program name with args.
2363 set dummy gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$ac_ct_CC"; then
2370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_ac_ct_CC="gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2383 done
2384 done
2385 IFS=$as_save_IFS
2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390 if test -n "$ac_ct_CC"; then
2391 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392 echo "${ECHO_T}$ac_ct_CC" >&6; }
2393 else
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2398 if test "x$ac_ct_CC" = x; then
2399 CC=""
2400 else
2401 case $cross_compiling:$ac_tool_warned in
2402 yes:)
2403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf@gnu.org." >&5
2406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet. If you think this
2408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2409 ac_tool_warned=yes ;;
2410 esac
2411 CC=$ac_ct_CC
2413 else
2414 CC="$ac_cv_prog_CC"
2417 if test -z "$CC"; then
2418 if test -n "$ac_tool_prefix"; then
2419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2420 set dummy ${ac_tool_prefix}cc; ac_word=$2
2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_CC+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC="$CC" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436 ac_cv_prog_CC="${ac_tool_prefix}cc"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 break 2
2440 done
2441 done
2442 IFS=$as_save_IFS
2446 CC=$ac_cv_prog_CC
2447 if test -n "$CC"; then
2448 { echo "$as_me:$LINENO: result: $CC" >&5
2449 echo "${ECHO_T}$CC" >&6; }
2450 else
2451 { echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6; }
2458 if test -z "$CC"; then
2459 # Extract the first word of "cc", so it can be a program name with args.
2460 set dummy cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 ac_prog_rejected=no
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2478 ac_prog_rejected=yes
2479 continue
2481 ac_cv_prog_CC="cc"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2485 done
2486 done
2487 IFS=$as_save_IFS
2489 if test $ac_prog_rejected = yes; then
2490 # We found a bogon in the path, so make sure we never use it.
2491 set dummy $ac_cv_prog_CC
2492 shift
2493 if test $# != 0; then
2494 # We chose a different compiler from the bogus one.
2495 # However, it has the same basename, so the bogon will be chosen
2496 # first if we set CC to just the basename; use the full file name.
2497 shift
2498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2503 CC=$ac_cv_prog_CC
2504 if test -n "$CC"; then
2505 { echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2514 if test -z "$CC"; then
2515 if test -n "$ac_tool_prefix"; then
2516 for ac_prog in cl.exe
2518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2539 done
2540 done
2541 IFS=$as_save_IFS
2545 CC=$ac_cv_prog_CC
2546 if test -n "$CC"; then
2547 { echo "$as_me:$LINENO: result: $CC" >&5
2548 echo "${ECHO_T}$CC" >&6; }
2549 else
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2555 test -n "$CC" && break
2556 done
2558 if test -z "$CC"; then
2559 ac_ct_CC=$CC
2560 for ac_prog in cl.exe
2562 # Extract the first word of "$ac_prog", so it can be a program name with args.
2563 set dummy $ac_prog; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569 if test -n "$ac_ct_CC"; then
2570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_ac_ct_CC="$ac_prog"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2583 done
2584 done
2585 IFS=$as_save_IFS
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592 echo "${ECHO_T}$ac_ct_CC" >&6; }
2593 else
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2599 test -n "$ac_ct_CC" && break
2600 done
2602 if test "x$ac_ct_CC" = x; then
2603 CC=""
2604 else
2605 case $cross_compiling:$ac_tool_warned in
2606 yes:)
2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet. If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&5
2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet. If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615 CC=$ac_ct_CC
2622 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2623 See \`config.log' for more details." >&5
2624 echo "$as_me: error: no acceptable C compiler found in \$PATH
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2628 # Provide some information about the compiler.
2629 echo "$as_me:$LINENO: checking for C compiler version" >&5
2630 ac_compiler=`set X $ac_compile; echo $2`
2631 { (ac_try="$ac_compiler --version >&5"
2632 case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compiler --version >&5") 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }
2641 { (ac_try="$ac_compiler -v >&5"
2642 case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compiler -v >&5") 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }
2651 { (ac_try="$ac_compiler -V >&5"
2652 case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655 esac
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compiler -V >&5") 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }
2662 cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h. */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2670 main ()
2674 return 0;
2676 _ACEOF
2677 ac_clean_files_save=$ac_clean_files
2678 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2679 # Try to create an executable without -o first, disregard a.out.
2680 # It will help us diagnose broken compilers, and finding out an intuition
2681 # of exeext.
2682 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2683 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2684 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2686 # List of possible output files, starting from the most likely.
2687 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2688 # only as a last resort. b.out is created by i960 compilers.
2689 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2691 # The IRIX 6 linker writes into existing files which may not be
2692 # executable, retaining their permissions. Remove them first so a
2693 # subsequent execution test works.
2694 ac_rmfiles=
2695 for ac_file in $ac_files
2697 case $ac_file in
2698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2699 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2700 esac
2701 done
2702 rm -f $ac_rmfiles
2704 if { (ac_try="$ac_link_default"
2705 case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_link_default") 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; then
2714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2716 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2717 # so that the user can short-circuit this test for compilers unknown to
2718 # Autoconf.
2719 for ac_file in $ac_files ''
2721 test -f "$ac_file" || continue
2722 case $ac_file in
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2725 [ab].out )
2726 # We found the default executable, but exeext='' is most
2727 # certainly right.
2728 break;;
2729 *.* )
2730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2731 then :; else
2732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2734 # We set ac_cv_exeext here because the later test for it is not
2735 # safe: cross compilers may not add the suffix if given an `-o'
2736 # argument, so we may need to know it at that point already.
2737 # Even if this section looks crufty: it has the advantage of
2738 # actually working.
2739 break;;
2741 break;;
2742 esac
2743 done
2744 test "$ac_cv_exeext" = no && ac_cv_exeext=
2746 else
2747 ac_file=''
2750 { echo "$as_me:$LINENO: result: $ac_file" >&5
2751 echo "${ECHO_T}$ac_file" >&6; }
2752 if test -z "$ac_file"; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2757 See \`config.log' for more details." >&5
2758 echo "$as_me: error: C compiler cannot create executables
2759 See \`config.log' for more details." >&2;}
2760 { (exit 77); exit 77; }; }
2763 ac_exeext=$ac_cv_exeext
2765 # Check that the compiler produces executables we can run. If not, either
2766 # the compiler is broken, or we cross compile.
2767 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2770 # If not cross compiling, check that we can run a simple program.
2771 if test "$cross_compiling" != yes; then
2772 if { ac_try='./$ac_file'
2773 { (case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_try") 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 cross_compiling=no
2783 else
2784 if test "$cross_compiling" = maybe; then
2785 cross_compiling=yes
2786 else
2787 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2788 If you meant to cross compile, use \`--host'.
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: cannot run C compiled programs.
2791 If you meant to cross compile, use \`--host'.
2792 See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2797 { echo "$as_me:$LINENO: result: yes" >&5
2798 echo "${ECHO_T}yes" >&6; }
2800 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2801 ac_clean_files=$ac_clean_files_save
2802 # Check that the compiler produces executables we can run. If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2805 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2806 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2807 echo "${ECHO_T}$cross_compiling" >&6; }
2809 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2810 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2811 if { (ac_try="$ac_link"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
2821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2823 # work properly (i.e., refer to `conftest.exe'), while it won't with
2824 # `rm'.
2825 for ac_file in conftest.exe conftest conftest.*; do
2826 test -f "$ac_file" || continue
2827 case $ac_file in
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2830 break;;
2831 * ) break;;
2832 esac
2833 done
2834 else
2835 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2836 See \`config.log' for more details." >&5
2837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2838 See \`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2842 rm -f conftest$ac_cv_exeext
2843 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2844 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2846 rm -f conftest.$ac_ext
2847 EXEEXT=$ac_cv_exeext
2848 ac_exeext=$EXEEXT
2849 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2851 if test "${ac_cv_objext+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2862 main ()
2866 return 0;
2868 _ACEOF
2869 rm -f conftest.o conftest.obj
2870 if { (ac_try="$ac_compile"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 for ac_file in conftest.o conftest.obj conftest.*; do
2881 test -f "$ac_file" || continue;
2882 case $ac_file in
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2885 break;;
2886 esac
2887 done
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2901 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2902 echo "${ECHO_T}$ac_cv_objext" >&6; }
2903 OBJEXT=$ac_cv_objext
2904 ac_objext=$OBJEXT
2905 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2918 main ()
2920 #ifndef __GNUC__
2921 choke me
2922 #endif
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.$ac_objext; then
2945 ac_compiler_gnu=yes
2946 else
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 ac_compiler_gnu=no
2953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2957 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2958 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2959 GCC=`test $ac_compiler_gnu = yes && echo yes`
2960 ac_test_CFLAGS=${CFLAGS+set}
2961 ac_save_CFLAGS=$CFLAGS
2962 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2963 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_cc_g+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967 ac_save_c_werror_flag=$ac_c_werror_flag
2968 ac_c_werror_flag=yes
2969 ac_cv_prog_cc_g=no
2970 CFLAGS="-g"
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2979 main ()
2983 return 0;
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
3003 ac_cv_prog_cc_g=yes
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 CFLAGS=""
3009 cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h. */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3017 main ()
3021 return 0;
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.$ac_objext; then
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 ac_c_werror_flag=$ac_save_c_werror_flag
3047 CFLAGS="-g"
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3056 main ()
3060 return 0;
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3080 ac_cv_prog_cc_g=yes
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_c_werror_flag=$ac_save_c_werror_flag
3097 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3098 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3099 if test "$ac_test_CFLAGS" = set; then
3100 CFLAGS=$ac_save_CFLAGS
3101 elif test $ac_cv_prog_cc_g = yes; then
3102 if test "$GCC" = yes; then
3103 CFLAGS="-g -O2"
3104 else
3105 CFLAGS="-g"
3107 else
3108 if test "$GCC" = yes; then
3109 CFLAGS="-O2"
3110 else
3111 CFLAGS=
3114 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3115 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_cc_c89+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 ac_cv_prog_cc_c89=no
3120 ac_save_CC=$CC
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <stdarg.h>
3128 #include <stdio.h>
3129 #include <sys/types.h>
3130 #include <sys/stat.h>
3131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3132 struct buf { int x; };
3133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3134 static char *e (p, i)
3135 char **p;
3136 int i;
3138 return p[i];
3140 static char *f (char * (*g) (char **, int), char **p, ...)
3142 char *s;
3143 va_list v;
3144 va_start (v,p);
3145 s = g (p, va_arg (v,int));
3146 va_end (v);
3147 return s;
3150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3151 function prototypes and stuff, but not '\xHH' hex character constants.
3152 These don't provoke an error unfortunately, instead are silently treated
3153 as 'x'. The following induces an error, until -std is added to get
3154 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3155 array size at least. It's necessary to write '\x00'==0 to get something
3156 that's true only with -std. */
3157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3160 inside strings and character constants. */
3161 #define FOO(x) 'x'
3162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3164 int test (int i, double x);
3165 struct s1 {int (*f) (int a);};
3166 struct s2 {int (*f) (double a);};
3167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3168 int argc;
3169 char **argv;
3171 main ()
3173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3175 return 0;
3177 _ACEOF
3178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3179 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3181 CC="$ac_save_CC $ac_arg"
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.$ac_objext; then
3199 ac_cv_prog_cc_c89=$ac_arg
3200 else
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f core conftest.err conftest.$ac_objext
3208 test "x$ac_cv_prog_cc_c89" != "xno" && break
3209 done
3210 rm -f conftest.$ac_ext
3211 CC=$ac_save_CC
3214 # AC_CACHE_VAL
3215 case "x$ac_cv_prog_cc_c89" in
3217 { echo "$as_me:$LINENO: result: none needed" >&5
3218 echo "${ECHO_T}none needed" >&6; } ;;
3219 xno)
3220 { echo "$as_me:$LINENO: result: unsupported" >&5
3221 echo "${ECHO_T}unsupported" >&6; } ;;
3223 CC="$CC $ac_cv_prog_cc_c89"
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3226 esac
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3239 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3241 # Check whether --with-cxx_main was given.
3242 if test "${with_cxx_main+set}" = set; then
3243 withval=$with_cxx_main;
3245 case $withval in
3246 no) with_cxx_main=no
3247 MAINCC='$(CC)';;
3248 yes) with_cxx_main=yes
3249 MAINCC='$(CXX)';;
3250 *) with_cxx_main=yes
3251 MAINCC=$withval
3252 if test -z "$CXX"
3253 then
3254 CXX=$withval
3255 fi;;
3256 esac
3257 else
3259 with_cxx_main=no
3260 MAINCC='$(CC)'
3264 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3265 echo "${ECHO_T}$with_cxx_main" >&6; }
3267 preset_cxx="$CXX"
3268 if test -z "$CXX"
3269 then
3270 case "$CC" in
3271 gcc) # Extract the first word of "g++", so it can be a program name with args.
3272 set dummy g++; ac_word=$2
3273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3275 if test "${ac_cv_path_CXX+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 case $CXX in
3279 [\\/]* | ?:[\\/]*)
3280 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in notfound
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3296 IFS=$as_save_IFS
3298 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3300 esac
3302 CXX=$ac_cv_path_CXX
3303 if test -n "$CXX"; then
3304 { echo "$as_me:$LINENO: result: $CXX" >&5
3305 echo "${ECHO_T}$CXX" >&6; }
3306 else
3307 { echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6; }
3312 cc) # Extract the first word of "c++", so it can be a program name with args.
3313 set dummy c++; ac_word=$2
3314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3316 if test "${ac_cv_path_CXX+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 case $CXX in
3320 [\\/]* | ?:[\\/]*)
3321 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in notfound
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3335 done
3336 done
3337 IFS=$as_save_IFS
3339 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3341 esac
3343 CXX=$ac_cv_path_CXX
3344 if test -n "$CXX"; then
3345 { echo "$as_me:$LINENO: result: $CXX" >&5
3346 echo "${ECHO_T}$CXX" >&6; }
3347 else
3348 { echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6; }
3353 esac
3354 if test "$CXX" = "notfound"
3355 then
3356 CXX=""
3359 if test -z "$CXX"
3360 then
3361 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3363 # Extract the first word of "$ac_prog", so it can be a program name with args.
3364 set dummy $ac_prog; ac_word=$2
3365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3367 if test "${ac_cv_prog_CXX+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 if test -n "$CXX"; then
3371 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CXX="$ac_prog"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3384 done
3385 done
3386 IFS=$as_save_IFS
3390 CXX=$ac_cv_prog_CXX
3391 if test -n "$CXX"; then
3392 { echo "$as_me:$LINENO: result: $CXX" >&5
3393 echo "${ECHO_T}$CXX" >&6; }
3394 else
3395 { echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6; }
3400 test -n "$CXX" && break
3401 done
3402 test -n "$CXX" || CXX="notfound"
3404 if test "$CXX" = "notfound"
3405 then
3406 CXX=""
3409 if test "$preset_cxx" != "$CXX"
3410 then
3411 { echo "$as_me:$LINENO: WARNING:
3413 By default, distutils will build C++ extension modules with \"$CXX\".
3414 If this is not intended, then set CXX on the configure command line.
3415 " >&5
3416 echo "$as_me: WARNING:
3418 By default, distutils will build C++ extension modules with \"$CXX\".
3419 If this is not intended, then set CXX on the configure command line.
3420 " >&2;}
3424 # checks for UNIX variants that set C preprocessor variables
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3432 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3433 # On Suns, sometimes $CPP names a directory.
3434 if test -n "$CPP" && test -d "$CPP"; then
3435 CPP=
3437 if test -z "$CPP"; then
3438 if test "${ac_cv_prog_CPP+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 # Double quotes because CPP needs to be expanded
3442 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3444 ac_preproc_ok=false
3445 for ac_c_preproc_warn_flag in '' yes
3447 # Use a header file that comes with gcc, so configuring glibc
3448 # with a fresh cross-compiler works.
3449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450 # <limits.h> exists even on freestanding compilers.
3451 # On the NeXT, cc -E runs the code through the compiler's parser,
3452 # not just through cpp. "Syntax error" is here to catch this case.
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h. */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459 #ifdef __STDC__
3460 # include <limits.h>
3461 #else
3462 # include <assert.h>
3463 #endif
3464 Syntax error
3465 _ACEOF
3466 if { (ac_try="$ac_cpp conftest.$ac_ext"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null && {
3479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3481 }; then
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 # Broken: fails on valid input.
3488 continue
3491 rm -f conftest.err conftest.$ac_ext
3493 # OK, works on sane cases. Now check whether nonexistent headers
3494 # can be detected and how.
3495 cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h. */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 #include <ac_nonexistent.h>
3502 _ACEOF
3503 if { (ac_try="$ac_cpp conftest.$ac_ext"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } >/dev/null && {
3516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 }; then
3519 # Broken: success on invalid input.
3520 continue
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 # Passes both tests.
3526 ac_preproc_ok=:
3527 break
3530 rm -f conftest.err conftest.$ac_ext
3532 done
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then
3536 break
3539 done
3540 ac_cv_prog_CPP=$CPP
3543 CPP=$ac_cv_prog_CPP
3544 else
3545 ac_cv_prog_CPP=$CPP
3547 { echo "$as_me:$LINENO: result: $CPP" >&5
3548 echo "${ECHO_T}$CPP" >&6; }
3549 ac_preproc_ok=false
3550 for ac_c_preproc_warn_flag in '' yes
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #ifdef __STDC__
3565 # include <limits.h>
3566 #else
3567 # include <assert.h>
3568 #endif
3569 Syntax error
3570 _ACEOF
3571 if { (ac_try="$ac_cpp conftest.$ac_ext"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev/null && {
3584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3586 }; then
3588 else
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 # Broken: fails on valid input.
3593 continue
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether nonexistent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3607 _ACEOF
3608 if { (ac_try="$ac_cpp conftest.$ac_ext"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } >/dev/null && {
3621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 }; then
3624 # Broken: success on invalid input.
3625 continue
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 # Passes both tests.
3631 ac_preproc_ok=:
3632 break
3635 rm -f conftest.err conftest.$ac_ext
3637 done
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then
3642 else
3643 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details." >&2;}
3647 { (exit 1); exit 1; }; }
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3658 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 # Extract the first word of "grep ggrep" to use in msg output
3663 if test -z "$GREP"; then
3664 set dummy grep ggrep; ac_prog_name=$2
3665 if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 ac_path_GREP_found=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_prog in grep ggrep; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3679 # Check for GNU ac_path_GREP and select it if it is found.
3680 # Check for GNU $ac_path_GREP
3681 case `"$ac_path_GREP" --version 2>&1` in
3682 *GNU*)
3683 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3685 ac_count=0
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687 while :
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'GREP' >> "conftest.nl"
3693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695 ac_count=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_GREP="$ac_path_GREP"
3699 ac_path_GREP_max=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3703 done
3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705 esac
3708 $ac_path_GREP_found && break 3
3709 done
3710 done
3712 done
3713 IFS=$as_save_IFS
3718 GREP="$ac_cv_path_GREP"
3719 if test -z "$GREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3725 else
3726 ac_cv_path_GREP=$GREP
3731 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3732 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3733 GREP="$ac_cv_path_GREP"
3736 { echo "$as_me:$LINENO: checking for egrep" >&5
3737 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3738 if test "${ac_cv_path_EGREP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3742 then ac_cv_path_EGREP="$GREP -E"
3743 else
3744 # Extract the first word of "egrep" to use in msg output
3745 if test -z "$EGREP"; then
3746 set dummy egrep; ac_prog_name=$2
3747 if test "${ac_cv_path_EGREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 ac_path_EGREP_found=false
3751 # Loop through the user's path and test for each of PROGNAME-LIST
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_prog in egrep; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3760 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3761 # Check for GNU ac_path_EGREP and select it if it is found.
3762 # Check for GNU $ac_path_EGREP
3763 case `"$ac_path_EGREP" --version 2>&1` in
3764 *GNU*)
3765 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3767 ac_count=0
3768 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3769 while :
3771 cat "conftest.in" "conftest.in" >"conftest.tmp"
3772 mv "conftest.tmp" "conftest.in"
3773 cp "conftest.in" "conftest.nl"
3774 echo 'EGREP' >> "conftest.nl"
3775 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3777 ac_count=`expr $ac_count + 1`
3778 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3779 # Best one so far, save it but keep looking for a better one
3780 ac_cv_path_EGREP="$ac_path_EGREP"
3781 ac_path_EGREP_max=$ac_count
3783 # 10*(2^10) chars as input seems more than enough
3784 test $ac_count -gt 10 && break
3785 done
3786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3787 esac
3790 $ac_path_EGREP_found && break 3
3791 done
3792 done
3794 done
3795 IFS=$as_save_IFS
3800 EGREP="$ac_cv_path_EGREP"
3801 if test -z "$EGREP"; then
3802 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3803 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3804 { (exit 1); exit 1; }; }
3807 else
3808 ac_cv_path_EGREP=$EGREP
3814 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3815 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3816 EGREP="$ac_cv_path_EGREP"
3820 { echo "$as_me:$LINENO: checking for AIX" >&5
3821 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 #ifdef _AIX
3830 #endif
3832 _ACEOF
3833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834 $EGREP "yes" >/dev/null 2>&1; then
3835 { echo "$as_me:$LINENO: result: yes" >&5
3836 echo "${ECHO_T}yes" >&6; }
3837 cat >>confdefs.h <<\_ACEOF
3838 #define _ALL_SOURCE 1
3839 _ACEOF
3841 else
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3845 rm -f conftest*
3849 # Check for unsupported systems
3850 case $ac_sys_system/$ac_sys_release in
3851 atheos*|Linux*/1*)
3852 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3853 echo See README for details.
3854 exit 1;;
3855 esac
3858 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3859 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3861 # Check whether --with-suffix was given.
3862 if test "${with_suffix+set}" = set; then
3863 withval=$with_suffix;
3864 case $withval in
3865 no) EXEEXT=;;
3866 yes) EXEEXT=.exe;;
3867 *) EXEEXT=$withval;;
3868 esac
3871 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3872 echo "${ECHO_T}$EXEEXT" >&6; }
3874 # Test whether we're running on a non-case-sensitive system, in which
3875 # case we give a warning if no ext is given
3877 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3878 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3879 if test ! -d CaseSensitiveTestDir; then
3880 mkdir CaseSensitiveTestDir
3883 if test -d casesensitivetestdir
3884 then
3885 { echo "$as_me:$LINENO: result: yes" >&5
3886 echo "${ECHO_T}yes" >&6; }
3887 BUILDEXEEXT=.exe
3888 else
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3891 BUILDEXEEXT=$EXEEXT
3893 rmdir CaseSensitiveTestDir
3895 case $MACHDEP in
3896 bsdos*)
3897 case $CC in
3898 gcc) CC="$CC -D_HAVE_BSDI";;
3899 esac;;
3900 esac
3902 case $ac_sys_system in
3903 hp*|HP*)
3904 case $CC in
3905 cc|*/cc) CC="$CC -Ae";;
3906 esac;;
3907 Monterey*)
3908 case $CC in
3909 cc) CC="$CC -Wl,-Bexport";;
3910 esac;;
3911 SunOS*)
3912 # Some functions have a prototype only with that define, e.g. confstr
3914 cat >>confdefs.h <<\_ACEOF
3915 #define __EXTENSIONS__ 1
3916 _ACEOF
3919 esac
3923 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3924 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3925 if test -z "$LIBRARY"
3926 then
3927 LIBRARY='libpython$(VERSION).a'
3929 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3930 echo "${ECHO_T}$LIBRARY" >&6; }
3932 # LDLIBRARY is the name of the library to link against (as opposed to the
3933 # name of the library into which to insert object files). BLDLIBRARY is also
3934 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3935 # is blank as the main program is not linked directly against LDLIBRARY.
3936 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3937 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3938 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3939 # DLLLIBRARY is the shared (i.e., DLL) library.
3941 # RUNSHARED is used to run shared python without installed libraries
3943 # INSTSONAME is the name of the shared library that will be use to install
3944 # on the system - some systems like version suffix, others don't
3951 LDLIBRARY="$LIBRARY"
3952 BLDLIBRARY='$(LDLIBRARY)'
3953 INSTSONAME='$(LDLIBRARY)'
3954 DLLLIBRARY=''
3955 LDLIBRARYDIR=''
3956 RUNSHARED=''
3958 # LINKCC is the command that links the python executable -- default is $(CC).
3959 # If CXX is set, and if it is needed to link a main function that was
3960 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3961 # python might then depend on the C++ runtime
3962 # This is altered for AIX in order to build the export list before
3963 # linking.
3965 { echo "$as_me:$LINENO: checking LINKCC" >&5
3966 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3967 if test -z "$LINKCC"
3968 then
3969 LINKCC='$(PURIFY) $(MAINCC)'
3970 case $ac_sys_system in
3971 AIX*)
3972 exp_extra="\"\""
3973 if test $ac_sys_release -ge 5 -o \
3974 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3975 exp_extra="."
3977 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3978 Monterey64*)
3979 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3980 QNX*)
3981 # qcc must be used because the other compilers do not
3982 # support -N.
3983 LINKCC=qcc;;
3984 esac
3986 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3987 echo "${ECHO_T}$LINKCC" >&6; }
3989 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3990 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3991 # Check whether --enable-shared was given.
3992 if test "${enable_shared+set}" = set; then
3993 enableval=$enable_shared;
3997 if test -z "$enable_shared"
3998 then
3999 case $ac_sys_system in
4000 CYGWIN* | atheos*)
4001 enable_shared="yes";;
4003 enable_shared="no";;
4004 esac
4006 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4007 echo "${ECHO_T}$enable_shared" >&6; }
4009 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4010 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4011 # Check whether --enable-profiling was given.
4012 if test "${enable_profiling+set}" = set; then
4013 enableval=$enable_profiling; ac_save_cc="$CC"
4014 CC="$CC -pg"
4015 if test "$cross_compiling" = yes; then
4016 ac_enable_profiling="no"
4017 else
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 int main() { return 0; }
4025 _ACEOF
4026 rm -f conftest$ac_exeext
4027 if { (ac_try="$ac_link"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_link") 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_enable_profiling="yes"
4047 else
4048 echo "$as_me: program exited with status $ac_status" >&5
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 ( exit $ac_status )
4053 ac_enable_profiling="no"
4055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4059 CC="$ac_save_cc"
4062 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4063 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4065 case "$ac_enable_profiling" in
4066 "yes")
4067 BASECFLAGS="-pg $BASECFLAGS"
4068 LDFLAGS="-pg $LDFLAGS"
4070 esac
4072 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4073 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4075 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4076 # library that we build, but we do not want to link against it (we
4077 # will find it with a -framework option). For this reason there is an
4078 # extra variable BLDLIBRARY against which Python and the extension
4079 # modules are linked, BLDLIBRARY. This is normally the same as
4080 # LDLIBRARY, but empty for MacOSX framework builds.
4081 if test "$enable_framework"
4082 then
4083 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4084 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4085 BLDLIBRARY=''
4086 else
4087 BLDLIBRARY='$(LDLIBRARY)'
4090 # Other platforms follow
4091 if test $enable_shared = "yes"; then
4093 cat >>confdefs.h <<\_ACEOF
4094 #define Py_ENABLE_SHARED 1
4095 _ACEOF
4097 case $ac_sys_system in
4098 BeOS*)
4099 LDLIBRARY='libpython$(VERSION).so'
4101 CYGWIN*)
4102 LDLIBRARY='libpython$(VERSION).dll.a'
4103 DLLLIBRARY='libpython$(VERSION).dll'
4105 SunOS*)
4106 LDLIBRARY='libpython$(VERSION).so'
4107 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4108 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4109 INSTSONAME="$LDLIBRARY".$SOVERSION
4111 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4112 LDLIBRARY='libpython$(VERSION).so'
4113 BLDLIBRARY='-L. -lpython$(VERSION)'
4114 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4115 case $ac_sys_system in
4116 FreeBSD*)
4117 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4119 esac
4120 INSTSONAME="$LDLIBRARY".$SOVERSION
4122 hp*|HP*)
4123 case `uname -m` in
4124 ia64)
4125 LDLIBRARY='libpython$(VERSION).so'
4128 LDLIBRARY='libpython$(VERSION).sl'
4130 esac
4131 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4132 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4134 OSF*)
4135 LDLIBRARY='libpython$(VERSION).so'
4136 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4137 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4139 atheos*)
4140 LDLIBRARY='libpython$(VERSION).so'
4141 BLDLIBRARY='-L. -lpython$(VERSION)'
4142 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4144 esac
4145 else # shared is disabled
4146 case $ac_sys_system in
4147 CYGWIN*)
4148 BLDLIBRARY='$(LIBRARY)'
4149 LDLIBRARY='libpython$(VERSION).dll.a'
4151 esac
4154 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4155 echo "${ECHO_T}$LDLIBRARY" >&6; }
4157 if test -n "$ac_tool_prefix"; then
4158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4162 if test "${ac_cv_prog_RANLIB+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 if test -n "$RANLIB"; then
4166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4179 done
4180 done
4181 IFS=$as_save_IFS
4185 RANLIB=$ac_cv_prog_RANLIB
4186 if test -n "$RANLIB"; then
4187 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4188 echo "${ECHO_T}$RANLIB" >&6; }
4189 else
4190 { echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6; }
4196 if test -z "$ac_cv_prog_RANLIB"; then
4197 ac_ct_RANLIB=$RANLIB
4198 # Extract the first word of "ranlib", so it can be a program name with args.
4199 set dummy ranlib; ac_word=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$ac_ct_RANLIB"; then
4206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_ac_ct_RANLIB="ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4221 IFS=$as_save_IFS
4225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4226 if test -n "$ac_ct_RANLIB"; then
4227 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4228 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4229 else
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4234 if test "x$ac_ct_RANLIB" = x; then
4235 RANLIB=":"
4236 else
4237 case $cross_compiling:$ac_tool_warned in
4238 yes:)
4239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4240 whose name does not start with the host triplet. If you think this
4241 configuration is useful to you, please write to autoconf@gnu.org." >&5
4242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4243 whose name does not start with the host triplet. If you think this
4244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4245 ac_tool_warned=yes ;;
4246 esac
4247 RANLIB=$ac_ct_RANLIB
4249 else
4250 RANLIB="$ac_cv_prog_RANLIB"
4254 for ac_prog in ar aal
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4260 if test "${ac_cv_prog_AR+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 if test -n "$AR"; then
4264 ac_cv_prog_AR="$AR" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_prog_AR="$ac_prog"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4277 done
4278 done
4279 IFS=$as_save_IFS
4283 AR=$ac_cv_prog_AR
4284 if test -n "$AR"; then
4285 { echo "$as_me:$LINENO: result: $AR" >&5
4286 echo "${ECHO_T}$AR" >&6; }
4287 else
4288 { echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6; }
4293 test -n "$AR" && break
4294 done
4295 test -n "$AR" || AR="ar"
4299 # Extract the first word of "svnversion", so it can be a program name with args.
4300 set dummy svnversion; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 if test -n "$SVNVERSION"; then
4307 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_SVNVERSION="found"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4322 IFS=$as_save_IFS
4324 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4327 SVNVERSION=$ac_cv_prog_SVNVERSION
4328 if test -n "$SVNVERSION"; then
4329 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4330 echo "${ECHO_T}$SVNVERSION" >&6; }
4331 else
4332 { echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6; }
4337 if test $SVNVERSION = found
4338 then
4339 SVNVERSION="svnversion \$(srcdir)"
4340 else
4341 SVNVERSION="echo exported"
4344 case $MACHDEP in
4345 bsdos*|hp*|HP*)
4346 # install -d does not work on BSDI or HP-UX
4347 if test -z "$INSTALL"
4348 then
4349 INSTALL="${srcdir}/install-sh -c"
4351 esac
4352 ac_aux_dir=
4353 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4354 if test -f "$ac_dir/install-sh"; then
4355 ac_aux_dir=$ac_dir
4356 ac_install_sh="$ac_aux_dir/install-sh -c"
4357 break
4358 elif 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/shtool"; then
4363 ac_aux_dir=$ac_dir
4364 ac_install_sh="$ac_aux_dir/shtool install -c"
4365 break
4367 done
4368 if test -z "$ac_aux_dir"; then
4369 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4370 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4371 { (exit 1); exit 1; }; }
4374 # These three variables are undocumented and unsupported,
4375 # and are intended to be withdrawn in a future Autoconf release.
4376 # They can cause serious problems if a builder's source tree is in a directory
4377 # whose full name contains unusual characters.
4378 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4379 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4380 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4383 # Find a good install program. We prefer a C program (faster),
4384 # so one script is as good as another. But avoid the broken or
4385 # incompatible versions:
4386 # SysV /etc/install, /usr/sbin/install
4387 # SunOS /usr/etc/install
4388 # IRIX /sbin/install
4389 # AIX /bin/install
4390 # AmigaOS /C/install, which installs bootblocks on floppy discs
4391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4394 # OS/2's system install, which has a completely different semantic
4395 # ./install, which can be erroneously created by make from ./install.sh.
4396 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4397 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4398 if test -z "$INSTALL"; then
4399 if test "${ac_cv_path_install+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 # Account for people who put trailing slashes in PATH elements.
4408 case $as_dir/ in
4409 ./ | .// | /cC/* | \
4410 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4411 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4412 /usr/ucb/* ) ;;
4414 # OSF1 and SCO ODT 3.0 have their own names for install.
4415 # Don't use installbsd from OSF since it installs stuff as root
4416 # by default.
4417 for ac_prog in ginstall scoinst install; do
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4420 if test $ac_prog = install &&
4421 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4422 # AIX install. It has an incompatible calling convention.
4424 elif test $ac_prog = install &&
4425 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4426 # program-specific install script used by HP pwplus--don't use.
4428 else
4429 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4430 break 3
4433 done
4434 done
4436 esac
4437 done
4438 IFS=$as_save_IFS
4442 if test "${ac_cv_path_install+set}" = set; then
4443 INSTALL=$ac_cv_path_install
4444 else
4445 # As a last resort, use the slow shell script. Don't cache a
4446 # value for INSTALL within a source directory, because that will
4447 # break other packages using the cache if that directory is
4448 # removed, or if the value is a relative name.
4449 INSTALL=$ac_install_sh
4452 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4453 echo "${ECHO_T}$INSTALL" >&6; }
4455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4456 # It thinks the first close brace ends the variable substitution.
4457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4464 # Not every filesystem supports hard links
4466 if test -z "$LN" ; then
4467 case $ac_sys_system in
4468 BeOS*) LN="ln -s";;
4469 CYGWIN*) LN="ln -s";;
4470 atheos*) LN="ln -s";;
4471 *) LN=ln;;
4472 esac
4475 # Check for --with-pydebug
4476 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4477 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4479 # Check whether --with-pydebug was given.
4480 if test "${with_pydebug+set}" = set; then
4481 withval=$with_pydebug;
4482 if test "$withval" != no
4483 then
4485 cat >>confdefs.h <<\_ACEOF
4486 #define Py_DEBUG 1
4487 _ACEOF
4489 { echo "$as_me:$LINENO: result: yes" >&5
4490 echo "${ECHO_T}yes" >&6; };
4491 Py_DEBUG='true'
4492 else { echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4495 else
4496 { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }
4501 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4502 # merged with this chunk of code?
4504 # Optimizer/debugger flags
4505 # ------------------------
4506 # (The following bit of code is complicated enough - please keep things
4507 # indented properly. Just pretend you're editing Python code. ;-)
4509 # There are two parallel sets of case statements below, one that checks to
4510 # see if OPT was set and one that does BASECFLAGS setting based upon
4511 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4512 # user set OPT.
4514 # tweak OPT based on compiler and platform, only if the user didn't set
4515 # it on the command line
4517 if test -z "$OPT"
4518 then
4519 case $GCC in
4520 yes)
4521 if test "$CC" != 'g++' ; then
4522 STRICT_PROTO="-Wstrict-prototypes"
4524 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4525 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4526 WRAP="-fwrapv"
4528 case $ac_cv_prog_cc_g in
4529 yes)
4530 if test "$Py_DEBUG" = 'true' ; then
4531 # Optimization messes up debuggers, so turn it off for
4532 # debug builds.
4533 OPT="-g -Wall $STRICT_PROTO"
4534 else
4535 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4539 OPT="-O3 -Wall $STRICT_PROTO"
4541 esac
4542 case $ac_sys_system in
4543 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4545 esac
4549 OPT="-O"
4551 esac
4553 # The current (beta) Monterey compiler dies with optimizations
4554 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4555 case $ac_sys_system in
4556 Monterey*)
4557 OPT=""
4559 esac
4565 # The -arch flags for universal builds on OSX
4566 UNIVERSAL_ARCH_FLAGS=
4569 # tweak BASECFLAGS based on compiler and platform
4570 case $GCC in
4571 yes)
4572 # Python violates C99 rules, by casting between incompatible
4573 # pointer types. GCC may generate bad code as a result of that,
4574 # so use -fno-strict-aliasing if supported.
4575 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4576 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4577 ac_save_cc="$CC"
4578 CC="$CC -fno-strict-aliasing"
4579 if test "$cross_compiling" = yes; then
4580 ac_cv_no_strict_aliasing_ok=no
4581 else
4582 cat >conftest.$ac_ext <<_ACEOF
4583 /* confdefs.h. */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588 int main() { return 0; }
4589 _ACEOF
4590 rm -f conftest$ac_exeext
4591 if { (ac_try="$ac_link"
4592 case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_link") 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4601 { (case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_try") 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_cv_no_strict_aliasing_ok=yes
4611 else
4612 echo "$as_me: program exited with status $ac_status" >&5
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 ( exit $ac_status )
4617 ac_cv_no_strict_aliasing_ok=no
4619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4623 CC="$ac_save_cc"
4624 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4625 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4626 if test $ac_cv_no_strict_aliasing_ok = yes
4627 then
4628 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4631 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4632 # support. Without this, treatment of subnormals doesn't follow
4633 # the standard.
4634 case $ac_sys_machine in
4635 alpha*)
4636 BASECFLAGS="$BASECFLAGS -mieee"
4638 esac
4640 case $ac_sys_system in
4641 SCO_SV*)
4642 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4644 # is there any other compiler on Darwin besides gcc?
4645 Darwin*)
4646 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4647 # used to be here, but non-Apple gcc doesn't accept them.
4650 if test "${enable_universalsdk}"; then
4651 UNIVERSAL_ARCH_FLAGS=""
4652 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4653 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4654 ARCH_RUN_32BIT=""
4656 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4657 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4659 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4660 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4661 ARCH_RUN_32BIT="arch -i386 -ppc"
4663 else
4664 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4665 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4666 { (exit 1); exit 1; }; }
4671 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4672 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4673 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4674 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4678 # Calculate the right deployment target for this build.
4680 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4681 if test ${cur_target} '>' 10.2; then
4682 cur_target=10.3
4684 if test "${UNIVERSAL_ARCHS}" = "all"; then
4685 # Ensure that the default platform for a 4-way
4686 # universal build is OSX 10.5, that's the first
4687 # OS release where 4-way builds make sense.
4688 cur_target='10.5'
4690 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4692 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4693 # environment with a value that is the same as what we'll use
4694 # in the Makefile to ensure that we'll get the same compiler
4695 # environment during configure and build time.
4696 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4697 export MACOSX_DEPLOYMENT_TARGET
4698 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4701 OSF*)
4702 BASECFLAGS="$BASECFLAGS -mieee"
4704 esac
4708 case $ac_sys_system in
4709 OpenUNIX*|UnixWare*)
4710 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4712 OSF*)
4713 BASECFLAGS="$BASECFLAGS -ieee -std"
4715 SCO_SV*)
4716 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4718 esac
4720 esac
4722 if test "$Py_DEBUG" = 'true'; then
4724 else
4725 OPT="-DNDEBUG $OPT"
4728 if test "$ac_arch_flags"
4729 then
4730 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4733 # disable check for icc since it seems to pass, but generates a warning
4734 if test "$CC" = icc
4735 then
4736 ac_cv_opt_olimit_ok=no
4739 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4740 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4741 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 ac_save_cc="$CC"
4745 CC="$CC -OPT:Olimit=0"
4746 if test "$cross_compiling" = yes; then
4747 ac_cv_opt_olimit_ok=no
4748 else
4749 cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h. */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 int main() { return 0; }
4756 _ACEOF
4757 rm -f conftest$ac_exeext
4758 if { (ac_try="$ac_link"
4759 case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762 esac
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_link") 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4768 { (case "(($ac_try" in
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4771 esac
4772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773 (eval "$ac_try") 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 ac_cv_opt_olimit_ok=yes
4778 else
4779 echo "$as_me: program exited with status $ac_status" >&5
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4783 ( exit $ac_status )
4784 ac_cv_opt_olimit_ok=no
4786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4790 CC="$ac_save_cc"
4793 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4794 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4795 if test $ac_cv_opt_olimit_ok = yes; then
4796 case $ac_sys_system in
4797 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4798 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4799 # environment?
4800 Darwin*)
4803 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4805 esac
4806 else
4807 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4808 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4809 if test "${ac_cv_olimit_ok+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812 ac_save_cc="$CC"
4813 CC="$CC -Olimit 1500"
4814 if test "$cross_compiling" = yes; then
4815 ac_cv_olimit_ok=no
4816 else
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 int main() { return 0; }
4824 _ACEOF
4825 rm -f conftest$ac_exeext
4826 if { (ac_try="$ac_link"
4827 case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_link") 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4836 { (case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_try") 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_cv_olimit_ok=yes
4846 else
4847 echo "$as_me: program exited with status $ac_status" >&5
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 ( exit $ac_status )
4852 ac_cv_olimit_ok=no
4854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4858 CC="$ac_save_cc"
4861 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4862 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4863 if test $ac_cv_olimit_ok = yes; then
4864 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4868 # Check whether GCC supports PyArg_ParseTuple format
4869 if test "$GCC" = "yes"
4870 then
4871 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4872 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4873 save_CFLAGS=$CFLAGS
4874 CFLAGS="$CFLAGS -Werror"
4875 cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h. */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4882 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4885 main ()
4889 return 0;
4891 _ACEOF
4892 rm -f conftest.$ac_objext
4893 if { (ac_try="$ac_compile"
4894 case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4897 esac
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4910 cat >>confdefs.h <<\_ACEOF
4911 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4912 _ACEOF
4914 { echo "$as_me:$LINENO: result: yes" >&5
4915 echo "${ECHO_T}yes" >&6; }
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 { echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6; }
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 CFLAGS=$save_CFLAGS
4929 # On some compilers, pthreads are available without further options
4930 # (e.g. MacOS X). On some of these systems, the compiler will not
4931 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4932 # So we have to see first whether pthreads are available without
4933 # options before we can check whether -Kpthread improves anything.
4934 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4935 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4936 if test "${ac_cv_pthread_is_default+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939 if test "$cross_compiling" = yes; then
4940 ac_cv_pthread_is_default=no
4941 else
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 #include <pthread.h>
4951 void* routine(void* p){return NULL;}
4953 int main(){
4954 pthread_t p;
4955 if(pthread_create(&p,NULL,routine,NULL)!=0)
4956 return 1;
4957 (void)pthread_detach(p);
4958 return 0;
4961 _ACEOF
4962 rm -f conftest$ac_exeext
4963 if { (ac_try="$ac_link"
4964 case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_link") 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4973 { (case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976 esac
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_try") 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4983 ac_cv_pthread_is_default=yes
4984 ac_cv_kthread=no
4985 ac_cv_pthread=no
4987 else
4988 echo "$as_me: program exited with status $ac_status" >&5
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 ( exit $ac_status )
4993 ac_cv_pthread_is_default=no
4995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5002 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5003 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5006 if test $ac_cv_pthread_is_default = yes
5007 then
5008 ac_cv_kpthread=no
5009 else
5010 # -Kpthread, if available, provides the right #defines
5011 # and linker options to make pthread_create available
5012 # Some compilers won't report that they do not support -Kpthread,
5013 # so we need to run a program to see whether it really made the
5014 # function available.
5015 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5016 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5017 if test "${ac_cv_kpthread+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 ac_save_cc="$CC"
5021 CC="$CC -Kpthread"
5022 if test "$cross_compiling" = yes; then
5023 ac_cv_kpthread=no
5024 else
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5032 #include <pthread.h>
5034 void* routine(void* p){return NULL;}
5036 int main(){
5037 pthread_t p;
5038 if(pthread_create(&p,NULL,routine,NULL)!=0)
5039 return 1;
5040 (void)pthread_detach(p);
5041 return 0;
5044 _ACEOF
5045 rm -f conftest$ac_exeext
5046 if { (ac_try="$ac_link"
5047 case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_link") 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5056 { (case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_try") 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_cv_kpthread=yes
5066 else
5067 echo "$as_me: program exited with status $ac_status" >&5
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 ( exit $ac_status )
5072 ac_cv_kpthread=no
5074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5078 CC="$ac_save_cc"
5081 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5082 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5085 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5086 then
5087 # -Kthread, if available, provides the right #defines
5088 # and linker options to make pthread_create available
5089 # Some compilers won't report that they do not support -Kthread,
5090 # so we need to run a program to see whether it really made the
5091 # function available.
5092 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5093 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5094 if test "${ac_cv_kthread+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097 ac_save_cc="$CC"
5098 CC="$CC -Kthread"
5099 if test "$cross_compiling" = yes; then
5100 ac_cv_kthread=no
5101 else
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5109 #include <pthread.h>
5111 void* routine(void* p){return NULL;}
5113 int main(){
5114 pthread_t p;
5115 if(pthread_create(&p,NULL,routine,NULL)!=0)
5116 return 1;
5117 (void)pthread_detach(p);
5118 return 0;
5121 _ACEOF
5122 rm -f conftest$ac_exeext
5123 if { (ac_try="$ac_link"
5124 case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_link") 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5133 { (case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136 esac
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_try") 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_kthread=yes
5143 else
5144 echo "$as_me: program exited with status $ac_status" >&5
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ( exit $ac_status )
5149 ac_cv_kthread=no
5151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5155 CC="$ac_save_cc"
5158 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5159 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5162 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5163 then
5164 # -pthread, if available, provides the right #defines
5165 # and linker options to make pthread_create available
5166 # Some compilers won't report that they do not support -pthread,
5167 # so we need to run a program to see whether it really made the
5168 # function available.
5169 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5170 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5171 if test "${ac_cv_thread+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 ac_save_cc="$CC"
5175 CC="$CC -pthread"
5176 if test "$cross_compiling" = yes; then
5177 ac_cv_pthread=no
5178 else
5179 cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h. */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5186 #include <pthread.h>
5188 void* routine(void* p){return NULL;}
5190 int main(){
5191 pthread_t p;
5192 if(pthread_create(&p,NULL,routine,NULL)!=0)
5193 return 1;
5194 (void)pthread_detach(p);
5195 return 0;
5198 _ACEOF
5199 rm -f conftest$ac_exeext
5200 if { (ac_try="$ac_link"
5201 case "(($ac_try" in
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5204 esac
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_link") 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5210 { (case "(($ac_try" in
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5213 esac
5214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215 (eval "$ac_try") 2>&5
5216 ac_status=$?
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5219 ac_cv_pthread=yes
5220 else
5221 echo "$as_me: program exited with status $ac_status" >&5
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5225 ( exit $ac_status )
5226 ac_cv_pthread=no
5228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5232 CC="$ac_save_cc"
5235 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5236 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5239 # If we have set a CC compiler flag for thread support then
5240 # check if it works for CXX, too.
5241 ac_cv_cxx_thread=no
5242 if test ! -z "$CXX"
5243 then
5244 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5245 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5246 ac_save_cxx="$CXX"
5248 if test "$ac_cv_kpthread" = "yes"
5249 then
5250 CXX="$CXX -Kpthread"
5251 ac_cv_cxx_thread=yes
5252 elif test "$ac_cv_kthread" = "yes"
5253 then
5254 CXX="$CXX -Kthread"
5255 ac_cv_cxx_thread=yes
5256 elif test "$ac_cv_pthread" = "yes"
5257 then
5258 CXX="$CXX -pthread"
5259 ac_cv_cxx_thread=yes
5262 if test $ac_cv_cxx_thread = yes
5263 then
5264 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5265 $CXX -c conftest.$ac_ext 2>&5
5266 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5267 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5268 then
5269 ac_cv_cxx_thread=yes
5270 else
5271 ac_cv_cxx_thread=no
5273 rm -fr conftest*
5275 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5276 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5278 CXX="$ac_save_cxx"
5281 # checks for header files
5282 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5283 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5284 if test "${ac_cv_header_stdc+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287 cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 #include <stdlib.h>
5294 #include <stdarg.h>
5295 #include <string.h>
5296 #include <float.h>
5299 main ()
5303 return 0;
5305 _ACEOF
5306 rm -f conftest.$ac_objext
5307 if { (ac_try="$ac_compile"
5308 case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compile") 2>conftest.er1
5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } && {
5320 test -z "$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5322 } && test -s conftest.$ac_objext; then
5323 ac_cv_header_stdc=yes
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_cv_header_stdc=no
5331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 if test $ac_cv_header_stdc = yes; then
5334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5335 cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 #include <string.h>
5343 _ACEOF
5344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5345 $EGREP "memchr" >/dev/null 2>&1; then
5347 else
5348 ac_cv_header_stdc=no
5350 rm -f conftest*
5354 if test $ac_cv_header_stdc = yes; then
5355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5356 cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <stdlib.h>
5364 _ACEOF
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "free" >/dev/null 2>&1; then
5368 else
5369 ac_cv_header_stdc=no
5371 rm -f conftest*
5375 if test $ac_cv_header_stdc = yes; then
5376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5377 if test "$cross_compiling" = yes; then
5379 else
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <ctype.h>
5387 #include <stdlib.h>
5388 #if ((' ' & 0x0FF) == 0x020)
5389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5391 #else
5392 # define ISLOWER(c) \
5393 (('a' <= (c) && (c) <= 'i') \
5394 || ('j' <= (c) && (c) <= 'r') \
5395 || ('s' <= (c) && (c) <= 'z'))
5396 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5397 #endif
5399 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5401 main ()
5403 int i;
5404 for (i = 0; i < 256; i++)
5405 if (XOR (islower (i), ISLOWER (i))
5406 || toupper (i) != TOUPPER (i))
5407 return 2;
5408 return 0;
5410 _ACEOF
5411 rm -f conftest$ac_exeext
5412 if { (ac_try="$ac_link"
5413 case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416 esac
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_link") 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5422 { (case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425 esac
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_try") 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5432 else
5433 echo "$as_me: program exited with status $ac_status" >&5
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5437 ( exit $ac_status )
5438 ac_cv_header_stdc=no
5440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5446 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5447 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5448 if test $ac_cv_header_stdc = yes; then
5450 cat >>confdefs.h <<\_ACEOF
5451 #define STDC_HEADERS 1
5452 _ACEOF
5456 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5466 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5467 inttypes.h stdint.h unistd.h
5469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5483 #include <$ac_header>
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (ac_try="$ac_compile"
5487 case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490 esac
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5502 eval "$as_ac_Header=yes"
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 eval "$as_ac_Header=no"
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 ac_res=`eval echo '${'$as_ac_Header'}'`
5513 { echo "$as_me:$LINENO: result: $ac_res" >&5
5514 echo "${ECHO_T}$ac_res" >&6; }
5515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5516 cat >>confdefs.h <<_ACEOF
5517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5518 _ACEOF
5522 done
5579 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5580 fcntl.h grp.h \
5581 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5582 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5583 unistd.h utime.h \
5584 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5585 sys/lock.h sys/mkdev.h sys/modem.h \
5586 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5587 sys/termio.h sys/time.h \
5588 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5589 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5590 bluetooth/bluetooth.h linux/tipc.h
5592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 ac_res=`eval echo '${'$as_ac_Header'}'`
5600 { echo "$as_me:$LINENO: result: $ac_res" >&5
5601 echo "${ECHO_T}$ac_res" >&6; }
5602 else
5603 # Is the header compilable?
5604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5606 cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h. */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 $ac_includes_default
5613 #include <$ac_header>
5614 _ACEOF
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5632 ac_header_compiler=yes
5633 else
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5637 ac_header_compiler=no
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5642 echo "${ECHO_T}$ac_header_compiler" >&6; }
5644 # Is the header present?
5645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <$ac_header>
5654 _ACEOF
5655 if { (ac_try="$ac_cpp conftest.$ac_ext"
5656 case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev/null && {
5668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 }; then
5671 ac_header_preproc=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_header_preproc=no
5679 rm -f conftest.err conftest.$ac_ext
5680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5681 echo "${ECHO_T}$ac_header_preproc" >&6; }
5683 # So? What about this header?
5684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5685 yes:no: )
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5690 ac_header_preproc=yes
5692 no:yes:* )
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5705 ( cat <<\_ASBOX
5706 ## ------------------------------------------------ ##
5707 ## Report this to http://www.python.org/python-bugs ##
5708 ## ------------------------------------------------ ##
5709 _ASBOX
5710 ) | sed "s/^/$as_me: WARNING: /" >&2
5712 esac
5713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 eval "$as_ac_Header=\$ac_header_preproc"
5720 ac_res=`eval echo '${'$as_ac_Header'}'`
5721 { echo "$as_me:$LINENO: result: $ac_res" >&5
5722 echo "${ECHO_T}$ac_res" >&6; }
5725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5726 cat >>confdefs.h <<_ACEOF
5727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5728 _ACEOF
5732 done
5739 ac_header_dirent=no
5740 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5741 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5742 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5743 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h. */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 #include <sys/types.h>
5754 #include <$ac_hdr>
5757 main ()
5759 if ((DIR *) 0)
5760 return 0;
5762 return 0;
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (ac_try="$ac_compile"
5767 case "(($ac_try" in
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5770 esac
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_compile") 2>conftest.er1
5773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && {
5779 test -z "$ac_c_werror_flag" ||
5780 test ! -s conftest.err
5781 } && test -s conftest.$ac_objext; then
5782 eval "$as_ac_Header=yes"
5783 else
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 eval "$as_ac_Header=no"
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 ac_res=`eval echo '${'$as_ac_Header'}'`
5793 { echo "$as_me:$LINENO: result: $ac_res" >&5
5794 echo "${ECHO_T}$ac_res" >&6; }
5795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5796 cat >>confdefs.h <<_ACEOF
5797 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5798 _ACEOF
5800 ac_header_dirent=$ac_hdr; break
5803 done
5804 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5805 if test $ac_header_dirent = dirent.h; then
5806 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5808 if test "${ac_cv_search_opendir+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 ac_func_search_save_LIBS=$LIBS
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5819 /* Override any GCC internal prototype to avoid an error.
5820 Use char because int might match the return type of a GCC
5821 builtin and then its argument prototype would still apply. */
5822 #ifdef __cplusplus
5823 extern "C"
5824 #endif
5825 char opendir ();
5827 main ()
5829 return opendir ();
5831 return 0;
5833 _ACEOF
5834 for ac_lib in '' dir; do
5835 if test -z "$ac_lib"; then
5836 ac_res="none required"
5837 else
5838 ac_res=-l$ac_lib
5839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5841 rm -f conftest.$ac_objext conftest$ac_exeext
5842 if { (ac_try="$ac_link"
5843 case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_link") 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } && {
5855 test -z "$ac_c_werror_flag" ||
5856 test ! -s conftest.err
5857 } && test -s conftest$ac_exeext &&
5858 $as_test_x conftest$ac_exeext; then
5859 ac_cv_search_opendir=$ac_res
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5868 conftest$ac_exeext
5869 if test "${ac_cv_search_opendir+set}" = set; then
5870 break
5872 done
5873 if test "${ac_cv_search_opendir+set}" = set; then
5875 else
5876 ac_cv_search_opendir=no
5878 rm conftest.$ac_ext
5879 LIBS=$ac_func_search_save_LIBS
5881 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5882 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5883 ac_res=$ac_cv_search_opendir
5884 if test "$ac_res" != no; then
5885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5889 else
5890 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5891 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5892 if test "${ac_cv_search_opendir+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 ac_func_search_save_LIBS=$LIBS
5896 cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h. */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5903 /* Override any GCC internal prototype to avoid an error.
5904 Use char because int might match the return type of a GCC
5905 builtin and then its argument prototype would still apply. */
5906 #ifdef __cplusplus
5907 extern "C"
5908 #endif
5909 char opendir ();
5911 main ()
5913 return opendir ();
5915 return 0;
5917 _ACEOF
5918 for ac_lib in '' x; do
5919 if test -z "$ac_lib"; then
5920 ac_res="none required"
5921 else
5922 ac_res=-l$ac_lib
5923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5925 rm -f conftest.$ac_objext conftest$ac_exeext
5926 if { (ac_try="$ac_link"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_link") 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest$ac_exeext &&
5942 $as_test_x conftest$ac_exeext; then
5943 ac_cv_search_opendir=$ac_res
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5952 conftest$ac_exeext
5953 if test "${ac_cv_search_opendir+set}" = set; then
5954 break
5956 done
5957 if test "${ac_cv_search_opendir+set}" = set; then
5959 else
5960 ac_cv_search_opendir=no
5962 rm conftest.$ac_ext
5963 LIBS=$ac_func_search_save_LIBS
5965 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5966 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5967 ac_res=$ac_cv_search_opendir
5968 if test "$ac_res" != no; then
5969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5975 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5976 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5977 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <sys/types.h>
5988 main ()
5990 return makedev(0, 0);
5992 return 0;
5994 _ACEOF
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (ac_try="$ac_link"
5997 case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_link") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest$ac_exeext &&
6012 $as_test_x conftest$ac_exeext; then
6013 ac_cv_header_sys_types_h_makedev=yes
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ac_cv_header_sys_types_h_makedev=no
6021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6022 conftest$ac_exeext conftest.$ac_ext
6025 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6026 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6028 if test $ac_cv_header_sys_types_h_makedev = no; then
6029 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6030 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6031 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6032 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6036 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6037 else
6038 # Is the header compilable?
6039 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6040 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6048 #include <sys/mkdev.h>
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest.$ac_objext; then
6067 ac_header_compiler=yes
6068 else
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6072 ac_header_compiler=no
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6077 echo "${ECHO_T}$ac_header_compiler" >&6; }
6079 # Is the header present?
6080 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6081 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 #include <sys/mkdev.h>
6089 _ACEOF
6090 if { (ac_try="$ac_cpp conftest.$ac_ext"
6091 case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094 esac
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } >/dev/null && {
6103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6104 test ! -s conftest.err
6105 }; then
6106 ac_header_preproc=yes
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_header_preproc=no
6114 rm -f conftest.err conftest.$ac_ext
6115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6116 echo "${ECHO_T}$ac_header_preproc" >&6; }
6118 # So? What about this header?
6119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6120 yes:no: )
6121 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6122 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6124 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6125 ac_header_preproc=yes
6127 no:yes:* )
6128 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6129 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6131 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6133 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6135 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6139 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6140 ( cat <<\_ASBOX
6141 ## ------------------------------------------------ ##
6142 ## Report this to http://www.python.org/python-bugs ##
6143 ## ------------------------------------------------ ##
6144 _ASBOX
6145 ) | sed "s/^/$as_me: WARNING: /" >&2
6147 esac
6148 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6149 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6150 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6155 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6156 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6159 if test $ac_cv_header_sys_mkdev_h = yes; then
6161 cat >>confdefs.h <<\_ACEOF
6162 #define MAJOR_IN_MKDEV 1
6163 _ACEOF
6169 if test $ac_cv_header_sys_mkdev_h = no; then
6170 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6171 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6172 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6173 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6177 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6178 else
6179 # Is the header compilable?
6180 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6181 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h. */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6188 $ac_includes_default
6189 #include <sys/sysmacros.h>
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6193 case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196 esac
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
6208 ac_header_compiler=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_header_compiler=no
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6218 echo "${ECHO_T}$ac_header_compiler" >&6; }
6220 # Is the header present?
6221 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6222 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <sys/sysmacros.h>
6230 _ACEOF
6231 if { (ac_try="$ac_cpp conftest.$ac_ext"
6232 case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235 esac
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } >/dev/null && {
6244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 }; then
6247 ac_header_preproc=yes
6248 else
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 ac_header_preproc=no
6255 rm -f conftest.err conftest.$ac_ext
6256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6257 echo "${ECHO_T}$ac_header_preproc" >&6; }
6259 # So? What about this header?
6260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6261 yes:no: )
6262 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6263 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6264 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6265 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6266 ac_header_preproc=yes
6268 no:yes:* )
6269 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6270 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6272 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6274 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6276 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6280 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6281 ( cat <<\_ASBOX
6282 ## ------------------------------------------------ ##
6283 ## Report this to http://www.python.org/python-bugs ##
6284 ## ------------------------------------------------ ##
6285 _ASBOX
6286 ) | sed "s/^/$as_me: WARNING: /" >&2
6288 esac
6289 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6290 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6291 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6296 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6297 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6300 if test $ac_cv_header_sys_sysmacros_h = yes; then
6302 cat >>confdefs.h <<\_ACEOF
6303 #define MAJOR_IN_SYSMACROS 1
6304 _ACEOF
6313 # On Solaris, term.h requires curses.h
6315 for ac_header in term.h
6317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h. */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6330 #ifdef HAVE_CURSES_H
6331 #include <curses.h>
6332 #endif
6335 #include <$ac_header>
6336 _ACEOF
6337 rm -f conftest.$ac_objext
6338 if { (ac_try="$ac_compile"
6339 case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342 esac
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compile") 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest.$ac_objext; then
6354 eval "$as_ac_Header=yes"
6355 else
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 eval "$as_ac_Header=no"
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 ac_res=`eval echo '${'$as_ac_Header'}'`
6365 { echo "$as_me:$LINENO: result: $ac_res" >&5
6366 echo "${ECHO_T}$ac_res" >&6; }
6367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6368 cat >>confdefs.h <<_ACEOF
6369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6370 _ACEOF
6374 done
6377 # On Linux, netlink.h requires asm/types.h
6379 for ac_header in linux/netlink.h
6381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6394 #ifdef HAVE_ASM_TYPES_H
6395 #include <asm/types.h>
6396 #endif
6397 #ifdef HAVE_SYS_SOCKET_H
6398 #include <sys/socket.h>
6399 #endif
6402 #include <$ac_header>
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (ac_try="$ac_compile"
6406 case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest.$ac_objext; then
6421 eval "$as_ac_Header=yes"
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 eval "$as_ac_Header=no"
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 ac_res=`eval echo '${'$as_ac_Header'}'`
6432 { echo "$as_me:$LINENO: result: $ac_res" >&5
6433 echo "${ECHO_T}$ac_res" >&6; }
6434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6435 cat >>confdefs.h <<_ACEOF
6436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6437 _ACEOF
6441 done
6444 # checks for typedefs
6445 was_it_defined=no
6446 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6447 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 #include <time.h>
6456 _ACEOF
6457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6458 $EGREP "clock_t" >/dev/null 2>&1; then
6459 was_it_defined=yes
6460 else
6463 cat >>confdefs.h <<\_ACEOF
6464 #define clock_t long
6465 _ACEOF
6469 rm -f conftest*
6471 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6472 echo "${ECHO_T}$was_it_defined" >&6; }
6474 # Check whether using makedev requires defining _OSF_SOURCE
6475 { echo "$as_me:$LINENO: checking for makedev" >&5
6476 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 #include <sys/types.h>
6485 main ()
6487 makedev(0, 0)
6489 return 0;
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (ac_try="$ac_link"
6494 case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497 esac
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_link") 2>conftest.er1
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && {
6506 test -z "$ac_c_werror_flag" ||
6507 test ! -s conftest.err
6508 } && test -s conftest$ac_exeext &&
6509 $as_test_x conftest$ac_exeext; then
6510 ac_cv_has_makedev=yes
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 ac_cv_has_makedev=no
6518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6519 conftest$ac_exeext conftest.$ac_ext
6520 if test "$ac_cv_has_makedev" = "no"; then
6521 # we didn't link, try if _OSF_SOURCE will allow us to link
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6529 #define _OSF_SOURCE 1
6530 #include <sys/types.h>
6533 main ()
6535 makedev(0, 0)
6537 return 0;
6539 _ACEOF
6540 rm -f conftest.$ac_objext conftest$ac_exeext
6541 if { (ac_try="$ac_link"
6542 case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_link") 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_c_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest$ac_exeext &&
6557 $as_test_x conftest$ac_exeext; then
6558 ac_cv_has_makedev=yes
6559 else
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563 ac_cv_has_makedev=no
6566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6567 conftest$ac_exeext conftest.$ac_ext
6568 if test "$ac_cv_has_makedev" = "yes"; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define _OSF_SOURCE 1
6572 _ACEOF
6576 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6577 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6578 if test "$ac_cv_has_makedev" = "yes"; then
6580 cat >>confdefs.h <<\_ACEOF
6581 #define HAVE_MAKEDEV 1
6582 _ACEOF
6586 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6587 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6588 # defined, but the compiler does not support pragma redefine_extname,
6589 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6590 # structures (such as rlimit64) without declaring them. As a
6591 # work-around, disable LFS on such configurations
6593 use_lfs=yes
6594 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6595 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6596 cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6603 #define _LARGEFILE_SOURCE 1
6604 #define _FILE_OFFSET_BITS 64
6605 #include <sys/resource.h>
6608 main ()
6610 struct rlimit foo;
6612 return 0;
6614 _ACEOF
6615 rm -f conftest.$ac_objext
6616 if { (ac_try="$ac_compile"
6617 case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620 esac
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_compile") 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest.$ac_objext; then
6632 sol_lfs_bug=no
6633 else
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6637 sol_lfs_bug=yes
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6642 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6643 if test "$sol_lfs_bug" = "yes"; then
6644 use_lfs=no
6647 if test "$use_lfs" = "yes"; then
6648 # Two defines needed to enable largefile support on various platforms
6649 # These may affect some typedefs
6651 cat >>confdefs.h <<\_ACEOF
6652 #define _LARGEFILE_SOURCE 1
6653 _ACEOF
6656 cat >>confdefs.h <<\_ACEOF
6657 #define _FILE_OFFSET_BITS 64
6658 _ACEOF
6662 # Add some code to confdefs.h so that the test for off_t works on SCO
6663 cat >> confdefs.h <<\EOF
6664 #if defined(SCO_DS)
6665 #undef _OFF_T
6666 #endif
6669 # Type availability checks
6670 { echo "$as_me:$LINENO: checking for mode_t" >&5
6671 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6672 if test "${ac_cv_type_mode_t+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675 cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h. */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 $ac_includes_default
6682 typedef mode_t ac__type_new_;
6684 main ()
6686 if ((ac__type_new_ *) 0)
6687 return 0;
6688 if (sizeof (ac__type_new_))
6689 return 0;
6691 return 0;
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (ac_try="$ac_compile"
6696 case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699 esac
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_compile") 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && {
6708 test -z "$ac_c_werror_flag" ||
6709 test ! -s conftest.err
6710 } && test -s conftest.$ac_objext; then
6711 ac_cv_type_mode_t=yes
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_cv_type_mode_t=no
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6722 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6723 if test $ac_cv_type_mode_t = yes; then
6725 else
6727 cat >>confdefs.h <<_ACEOF
6728 #define mode_t int
6729 _ACEOF
6733 { echo "$as_me:$LINENO: checking for off_t" >&5
6734 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6735 if test "${ac_cv_type_off_t+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6745 typedef off_t ac__type_new_;
6747 main ()
6749 if ((ac__type_new_ *) 0)
6750 return 0;
6751 if (sizeof (ac__type_new_))
6752 return 0;
6754 return 0;
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (ac_try="$ac_compile"
6759 case "(($ac_try" in
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6762 esac
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6765 ac_status=$?
6766 grep -v '^ *+' conftest.er1 >conftest.err
6767 rm -f conftest.er1
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } && {
6771 test -z "$ac_c_werror_flag" ||
6772 test ! -s conftest.err
6773 } && test -s conftest.$ac_objext; then
6774 ac_cv_type_off_t=yes
6775 else
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6779 ac_cv_type_off_t=no
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6785 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6786 if test $ac_cv_type_off_t = yes; then
6788 else
6790 cat >>confdefs.h <<_ACEOF
6791 #define off_t long int
6792 _ACEOF
6796 { echo "$as_me:$LINENO: checking for pid_t" >&5
6797 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6798 if test "${ac_cv_type_pid_t+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 typedef pid_t ac__type_new_;
6810 main ()
6812 if ((ac__type_new_ *) 0)
6813 return 0;
6814 if (sizeof (ac__type_new_))
6815 return 0;
6817 return 0;
6819 _ACEOF
6820 rm -f conftest.$ac_objext
6821 if { (ac_try="$ac_compile"
6822 case "(($ac_try" in
6823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824 *) ac_try_echo=$ac_try;;
6825 esac
6826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6827 (eval "$ac_compile") 2>conftest.er1
6828 ac_status=$?
6829 grep -v '^ *+' conftest.er1 >conftest.err
6830 rm -f conftest.er1
6831 cat conftest.err >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } && {
6834 test -z "$ac_c_werror_flag" ||
6835 test ! -s conftest.err
6836 } && test -s conftest.$ac_objext; then
6837 ac_cv_type_pid_t=yes
6838 else
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6842 ac_cv_type_pid_t=no
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6848 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6849 if test $ac_cv_type_pid_t = yes; then
6851 else
6853 cat >>confdefs.h <<_ACEOF
6854 #define pid_t int
6855 _ACEOF
6859 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6860 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6861 if test "${ac_cv_type_signal+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 #include <sys/types.h>
6871 #include <signal.h>
6874 main ()
6876 return *(signal (0, 0)) (0) == 1;
6878 return 0;
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 ac_cv_type_signal=int
6899 else
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 ac_cv_type_signal=void
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6909 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6911 cat >>confdefs.h <<_ACEOF
6912 #define RETSIGTYPE $ac_cv_type_signal
6913 _ACEOF
6916 { echo "$as_me:$LINENO: checking for size_t" >&5
6917 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6918 if test "${ac_cv_type_size_t+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 $ac_includes_default
6928 typedef size_t ac__type_new_;
6930 main ()
6932 if ((ac__type_new_ *) 0)
6933 return 0;
6934 if (sizeof (ac__type_new_))
6935 return 0;
6937 return 0;
6939 _ACEOF
6940 rm -f conftest.$ac_objext
6941 if { (ac_try="$ac_compile"
6942 case "(($ac_try" in
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6945 esac
6946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_compile") 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest.$ac_objext; then
6957 ac_cv_type_size_t=yes
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_cv_type_size_t=no
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6968 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6969 if test $ac_cv_type_size_t = yes; then
6971 else
6973 cat >>confdefs.h <<_ACEOF
6974 #define size_t unsigned int
6975 _ACEOF
6979 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6980 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6981 if test "${ac_cv_type_uid_t+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h. */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6990 #include <sys/types.h>
6992 _ACEOF
6993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6994 $EGREP "uid_t" >/dev/null 2>&1; then
6995 ac_cv_type_uid_t=yes
6996 else
6997 ac_cv_type_uid_t=no
6999 rm -f conftest*
7002 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7003 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7004 if test $ac_cv_type_uid_t = no; then
7006 cat >>confdefs.h <<\_ACEOF
7007 #define uid_t int
7008 _ACEOF
7011 cat >>confdefs.h <<\_ACEOF
7012 #define gid_t int
7013 _ACEOF
7017 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7018 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7019 if test "${ac_cv_type_ssize_t+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7029 typedef ssize_t ac__type_new_;
7031 main ()
7033 if ((ac__type_new_ *) 0)
7034 return 0;
7035 if (sizeof (ac__type_new_))
7036 return 0;
7038 return 0;
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_type_ssize_t=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_cv_type_ssize_t=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7069 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7070 if test $ac_cv_type_ssize_t = yes; then
7072 cat >>confdefs.h <<\_ACEOF
7073 #define HAVE_SSIZE_T 1
7074 _ACEOF
7079 # Sizes of various common basic types
7080 # ANSI C requires sizeof(char) == 1, so no need to check it
7081 { echo "$as_me:$LINENO: checking for int" >&5
7082 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7083 if test "${ac_cv_type_int+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h. */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7093 typedef int ac__type_new_;
7095 main ()
7097 if ((ac__type_new_ *) 0)
7098 return 0;
7099 if (sizeof (ac__type_new_))
7100 return 0;
7102 return 0;
7104 _ACEOF
7105 rm -f conftest.$ac_objext
7106 if { (ac_try="$ac_compile"
7107 case "(($ac_try" in
7108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7109 *) ac_try_echo=$ac_try;;
7110 esac
7111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7112 (eval "$ac_compile") 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } && {
7119 test -z "$ac_c_werror_flag" ||
7120 test ! -s conftest.err
7121 } && test -s conftest.$ac_objext; then
7122 ac_cv_type_int=yes
7123 else
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 ac_cv_type_int=no
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7133 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7135 # The cast to long int works around a bug in the HP C Compiler
7136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7138 # This bug is HP SR number 8606223364.
7139 { echo "$as_me:$LINENO: checking size of int" >&5
7140 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7141 if test "${ac_cv_sizeof_int+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 if test "$cross_compiling" = yes; then
7145 # Depending upon the size, compute the lo and hi bounds.
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h. */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 $ac_includes_default
7153 typedef int ac__type_sizeof_;
7155 main ()
7157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7158 test_array [0] = 0
7161 return 0;
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 ac_lo=0 ac_mid=0
7182 while :; do
7183 cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h. */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 $ac_includes_default
7190 typedef int ac__type_sizeof_;
7192 main ()
7194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7195 test_array [0] = 0
7198 return 0;
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7203 case "(($ac_try" in
7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7206 esac
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_compile") 2>conftest.er1
7209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } && {
7215 test -z "$ac_c_werror_flag" ||
7216 test ! -s conftest.err
7217 } && test -s conftest.$ac_objext; then
7218 ac_hi=$ac_mid; break
7219 else
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 ac_lo=`expr $ac_mid + 1`
7224 if test $ac_lo -le $ac_mid; then
7225 ac_lo= ac_hi=
7226 break
7228 ac_mid=`expr 2 '*' $ac_mid + 1`
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 done
7233 else
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 $ac_includes_default
7244 typedef int ac__type_sizeof_;
7246 main ()
7248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7249 test_array [0] = 0
7252 return 0;
7254 _ACEOF
7255 rm -f conftest.$ac_objext
7256 if { (ac_try="$ac_compile"
7257 case "(($ac_try" in
7258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259 *) ac_try_echo=$ac_try;;
7260 esac
7261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262 (eval "$ac_compile") 2>conftest.er1
7263 ac_status=$?
7264 grep -v '^ *+' conftest.er1 >conftest.err
7265 rm -f conftest.er1
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && {
7269 test -z "$ac_c_werror_flag" ||
7270 test ! -s conftest.err
7271 } && test -s conftest.$ac_objext; then
7272 ac_hi=-1 ac_mid=-1
7273 while :; do
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h. */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 $ac_includes_default
7281 typedef int ac__type_sizeof_;
7283 main ()
7285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7286 test_array [0] = 0
7289 return 0;
7291 _ACEOF
7292 rm -f conftest.$ac_objext
7293 if { (ac_try="$ac_compile"
7294 case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7297 esac
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_compile") 2>conftest.er1
7300 ac_status=$?
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_c_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest.$ac_objext; then
7309 ac_lo=$ac_mid; break
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 ac_hi=`expr '(' $ac_mid ')' - 1`
7315 if test $ac_mid -le $ac_hi; then
7316 ac_lo= ac_hi=
7317 break
7319 ac_mid=`expr 2 '*' $ac_mid`
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 done
7324 else
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7328 ac_lo= ac_hi=
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 # Binary search between lo and hi bounds.
7336 while test "x$ac_lo" != "x$ac_hi"; do
7337 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h. */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 $ac_includes_default
7345 typedef int ac__type_sizeof_;
7347 main ()
7349 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7350 test_array [0] = 0
7353 return 0;
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7358 case "(($ac_try" in
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7361 esac
7362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363 (eval "$ac_compile") 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest.$ac_objext; then
7373 ac_hi=$ac_mid
7374 else
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7378 ac_lo=`expr '(' $ac_mid ')' + 1`
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 done
7383 case $ac_lo in
7384 ?*) ac_cv_sizeof_int=$ac_lo;;
7385 '') if test "$ac_cv_type_int" = yes; then
7386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7387 See \`config.log' for more details." >&5
7388 echo "$as_me: error: cannot compute sizeof (int)
7389 See \`config.log' for more details." >&2;}
7390 { (exit 77); exit 77; }; }
7391 else
7392 ac_cv_sizeof_int=0
7393 fi ;;
7394 esac
7395 else
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7403 typedef int ac__type_sizeof_;
7404 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7405 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7406 #include <stdio.h>
7407 #include <stdlib.h>
7409 main ()
7412 FILE *f = fopen ("conftest.val", "w");
7413 if (! f)
7414 return 1;
7415 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7417 long int i = longval ();
7418 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7419 return 1;
7420 fprintf (f, "%ld\n", i);
7422 else
7424 unsigned long int i = ulongval ();
7425 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7426 return 1;
7427 fprintf (f, "%lu\n", i);
7429 return ferror (f) || fclose (f) != 0;
7432 return 0;
7434 _ACEOF
7435 rm -f conftest$ac_exeext
7436 if { (ac_try="$ac_link"
7437 case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7440 esac
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_link") 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7446 { (case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449 esac
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_try") 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 ac_cv_sizeof_int=`cat conftest.val`
7456 else
7457 echo "$as_me: program exited with status $ac_status" >&5
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 ( exit $ac_status )
7462 if test "$ac_cv_type_int" = yes; then
7463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7464 See \`config.log' for more details." >&5
7465 echo "$as_me: error: cannot compute sizeof (int)
7466 See \`config.log' for more details." >&2;}
7467 { (exit 77); exit 77; }; }
7468 else
7469 ac_cv_sizeof_int=0
7472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7474 rm -f conftest.val
7476 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7477 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7481 cat >>confdefs.h <<_ACEOF
7482 #define SIZEOF_INT $ac_cv_sizeof_int
7483 _ACEOF
7486 { echo "$as_me:$LINENO: checking for long" >&5
7487 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7488 if test "${ac_cv_type_long+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491 cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h. */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 $ac_includes_default
7498 typedef long ac__type_new_;
7500 main ()
7502 if ((ac__type_new_ *) 0)
7503 return 0;
7504 if (sizeof (ac__type_new_))
7505 return 0;
7507 return 0;
7509 _ACEOF
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7512 case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7515 esac
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_compile") 2>conftest.er1
7518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } && {
7524 test -z "$ac_c_werror_flag" ||
7525 test ! -s conftest.err
7526 } && test -s conftest.$ac_objext; then
7527 ac_cv_type_long=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 ac_cv_type_long=no
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7538 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7540 # The cast to long int works around a bug in the HP C Compiler
7541 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7542 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7543 # This bug is HP SR number 8606223364.
7544 { echo "$as_me:$LINENO: checking size of long" >&5
7545 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7546 if test "${ac_cv_sizeof_long+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549 if test "$cross_compiling" = yes; then
7550 # Depending upon the size, compute the lo and hi bounds.
7551 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h. */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 $ac_includes_default
7558 typedef long ac__type_sizeof_;
7560 main ()
7562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7563 test_array [0] = 0
7566 return 0;
7568 _ACEOF
7569 rm -f conftest.$ac_objext
7570 if { (ac_try="$ac_compile"
7571 case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574 esac
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 ac_lo=0 ac_mid=0
7587 while :; do
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 $ac_includes_default
7595 typedef long ac__type_sizeof_;
7597 main ()
7599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7600 test_array [0] = 0
7603 return 0;
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (ac_try="$ac_compile"
7608 case "(($ac_try" in
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_compile") 2>conftest.er1
7614 ac_status=$?
7615 grep -v '^ *+' conftest.er1 >conftest.err
7616 rm -f conftest.er1
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } && {
7620 test -z "$ac_c_werror_flag" ||
7621 test ! -s conftest.err
7622 } && test -s conftest.$ac_objext; then
7623 ac_hi=$ac_mid; break
7624 else
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ac_lo=`expr $ac_mid + 1`
7629 if test $ac_lo -le $ac_mid; then
7630 ac_lo= ac_hi=
7631 break
7633 ac_mid=`expr 2 '*' $ac_mid + 1`
7636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7637 done
7638 else
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 $ac_includes_default
7649 typedef long ac__type_sizeof_;
7651 main ()
7653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7654 test_array [0] = 0
7657 return 0;
7659 _ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7662 case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665 esac
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_c_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest.$ac_objext; then
7677 ac_hi=-1 ac_mid=-1
7678 while :; do
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 $ac_includes_default
7686 typedef long ac__type_sizeof_;
7688 main ()
7690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7691 test_array [0] = 0
7694 return 0;
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (ac_try="$ac_compile"
7699 case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702 esac
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_compile") 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } && {
7711 test -z "$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 } && test -s conftest.$ac_objext; then
7714 ac_lo=$ac_mid; break
7715 else
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 ac_hi=`expr '(' $ac_mid ')' - 1`
7720 if test $ac_mid -le $ac_hi; then
7721 ac_lo= ac_hi=
7722 break
7724 ac_mid=`expr 2 '*' $ac_mid`
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 done
7729 else
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7733 ac_lo= ac_hi=
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 # Binary search between lo and hi bounds.
7741 while test "x$ac_lo" != "x$ac_hi"; do
7742 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7743 cat >conftest.$ac_ext <<_ACEOF
7744 /* confdefs.h. */
7745 _ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 $ac_includes_default
7750 typedef long ac__type_sizeof_;
7752 main ()
7754 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7755 test_array [0] = 0
7758 return 0;
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (ac_try="$ac_compile"
7763 case "(($ac_try" in
7764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7766 esac
7767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7769 ac_status=$?
7770 grep -v '^ *+' conftest.er1 >conftest.err
7771 rm -f conftest.er1
7772 cat conftest.err >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7778 ac_hi=$ac_mid
7779 else
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_lo=`expr '(' $ac_mid ')' + 1`
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 done
7788 case $ac_lo in
7789 ?*) ac_cv_sizeof_long=$ac_lo;;
7790 '') if test "$ac_cv_type_long" = yes; then
7791 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7792 See \`config.log' for more details." >&5
7793 echo "$as_me: error: cannot compute sizeof (long)
7794 See \`config.log' for more details." >&2;}
7795 { (exit 77); exit 77; }; }
7796 else
7797 ac_cv_sizeof_long=0
7798 fi ;;
7799 esac
7800 else
7801 cat >conftest.$ac_ext <<_ACEOF
7802 /* confdefs.h. */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 $ac_includes_default
7808 typedef long ac__type_sizeof_;
7809 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7810 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7811 #include <stdio.h>
7812 #include <stdlib.h>
7814 main ()
7817 FILE *f = fopen ("conftest.val", "w");
7818 if (! f)
7819 return 1;
7820 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7822 long int i = longval ();
7823 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7824 return 1;
7825 fprintf (f, "%ld\n", i);
7827 else
7829 unsigned long int i = ulongval ();
7830 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7831 return 1;
7832 fprintf (f, "%lu\n", i);
7834 return ferror (f) || fclose (f) != 0;
7837 return 0;
7839 _ACEOF
7840 rm -f conftest$ac_exeext
7841 if { (ac_try="$ac_link"
7842 case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_link") 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854 esac
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_cv_sizeof_long=`cat conftest.val`
7861 else
7862 echo "$as_me: program exited with status $ac_status" >&5
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 ( exit $ac_status )
7867 if test "$ac_cv_type_long" = yes; then
7868 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7869 See \`config.log' for more details." >&5
7870 echo "$as_me: error: cannot compute sizeof (long)
7871 See \`config.log' for more details." >&2;}
7872 { (exit 77); exit 77; }; }
7873 else
7874 ac_cv_sizeof_long=0
7877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7879 rm -f conftest.val
7881 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7882 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7886 cat >>confdefs.h <<_ACEOF
7887 #define SIZEOF_LONG $ac_cv_sizeof_long
7888 _ACEOF
7891 { echo "$as_me:$LINENO: checking for void *" >&5
7892 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7893 if test "${ac_cv_type_void_p+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896 cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h. */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 $ac_includes_default
7903 typedef void * ac__type_new_;
7905 main ()
7907 if ((ac__type_new_ *) 0)
7908 return 0;
7909 if (sizeof (ac__type_new_))
7910 return 0;
7912 return 0;
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7917 case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7932 ac_cv_type_void_p=yes
7933 else
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 ac_cv_type_void_p=no
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7943 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7945 # The cast to long int works around a bug in the HP C Compiler
7946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7948 # This bug is HP SR number 8606223364.
7949 { echo "$as_me:$LINENO: checking size of void *" >&5
7950 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7951 if test "${ac_cv_sizeof_void_p+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 if test "$cross_compiling" = yes; then
7955 # Depending upon the size, compute the lo and hi bounds.
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 $ac_includes_default
7963 typedef void * ac__type_sizeof_;
7965 main ()
7967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7968 test_array [0] = 0
7971 return 0;
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7976 case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 ac_lo=0 ac_mid=0
7992 while :; do
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h. */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 $ac_includes_default
8000 typedef void * ac__type_sizeof_;
8002 main ()
8004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8005 test_array [0] = 0
8008 return 0;
8010 _ACEOF
8011 rm -f conftest.$ac_objext
8012 if { (ac_try="$ac_compile"
8013 case "(($ac_try" in
8014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8015 *) ac_try_echo=$ac_try;;
8016 esac
8017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8018 (eval "$ac_compile") 2>conftest.er1
8019 ac_status=$?
8020 grep -v '^ *+' conftest.er1 >conftest.err
8021 rm -f conftest.er1
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } && {
8025 test -z "$ac_c_werror_flag" ||
8026 test ! -s conftest.err
8027 } && test -s conftest.$ac_objext; then
8028 ac_hi=$ac_mid; break
8029 else
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 ac_lo=`expr $ac_mid + 1`
8034 if test $ac_lo -le $ac_mid; then
8035 ac_lo= ac_hi=
8036 break
8038 ac_mid=`expr 2 '*' $ac_mid + 1`
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 done
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h. */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053 $ac_includes_default
8054 typedef void * ac__type_sizeof_;
8056 main ()
8058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8059 test_array [0] = 0
8062 return 0;
8064 _ACEOF
8065 rm -f conftest.$ac_objext
8066 if { (ac_try="$ac_compile"
8067 case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_compile") 2>conftest.er1
8073 ac_status=$?
8074 grep -v '^ *+' conftest.er1 >conftest.err
8075 rm -f conftest.er1
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest.$ac_objext; then
8082 ac_hi=-1 ac_mid=-1
8083 while :; do
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h. */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 $ac_includes_default
8091 typedef void * ac__type_sizeof_;
8093 main ()
8095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8096 test_array [0] = 0
8099 return 0;
8101 _ACEOF
8102 rm -f conftest.$ac_objext
8103 if { (ac_try="$ac_compile"
8104 case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107 esac
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_compile") 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } && {
8116 test -z "$ac_c_werror_flag" ||
8117 test ! -s conftest.err
8118 } && test -s conftest.$ac_objext; then
8119 ac_lo=$ac_mid; break
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8124 ac_hi=`expr '(' $ac_mid ')' - 1`
8125 if test $ac_mid -le $ac_hi; then
8126 ac_lo= ac_hi=
8127 break
8129 ac_mid=`expr 2 '*' $ac_mid`
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 done
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_lo= ac_hi=
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145 # Binary search between lo and hi bounds.
8146 while test "x$ac_lo" != "x$ac_hi"; do
8147 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8148 cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h. */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 $ac_includes_default
8155 typedef void * ac__type_sizeof_;
8157 main ()
8159 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8160 test_array [0] = 0
8163 return 0;
8165 _ACEOF
8166 rm -f conftest.$ac_objext
8167 if { (ac_try="$ac_compile"
8168 case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_compile") 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && {
8180 test -z "$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8182 } && test -s conftest.$ac_objext; then
8183 ac_hi=$ac_mid
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 ac_lo=`expr '(' $ac_mid ')' + 1`
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 done
8193 case $ac_lo in
8194 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8195 '') if test "$ac_cv_type_void_p" = yes; then
8196 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8197 See \`config.log' for more details." >&5
8198 echo "$as_me: error: cannot compute sizeof (void *)
8199 See \`config.log' for more details." >&2;}
8200 { (exit 77); exit 77; }; }
8201 else
8202 ac_cv_sizeof_void_p=0
8203 fi ;;
8204 esac
8205 else
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h. */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 $ac_includes_default
8213 typedef void * ac__type_sizeof_;
8214 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8215 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8216 #include <stdio.h>
8217 #include <stdlib.h>
8219 main ()
8222 FILE *f = fopen ("conftest.val", "w");
8223 if (! f)
8224 return 1;
8225 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8227 long int i = longval ();
8228 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8229 return 1;
8230 fprintf (f, "%ld\n", i);
8232 else
8234 unsigned long int i = ulongval ();
8235 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8236 return 1;
8237 fprintf (f, "%lu\n", i);
8239 return ferror (f) || fclose (f) != 0;
8242 return 0;
8244 _ACEOF
8245 rm -f conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8247 case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_link") 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_sizeof_void_p=`cat conftest.val`
8266 else
8267 echo "$as_me: program exited with status $ac_status" >&5
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 ( exit $ac_status )
8272 if test "$ac_cv_type_void_p" = yes; then
8273 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8274 See \`config.log' for more details." >&5
8275 echo "$as_me: error: cannot compute sizeof (void *)
8276 See \`config.log' for more details." >&2;}
8277 { (exit 77); exit 77; }; }
8278 else
8279 ac_cv_sizeof_void_p=0
8282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8284 rm -f conftest.val
8286 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8287 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8291 cat >>confdefs.h <<_ACEOF
8292 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8293 _ACEOF
8296 { echo "$as_me:$LINENO: checking for short" >&5
8297 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8298 if test "${ac_cv_type_short+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 $ac_includes_default
8308 typedef short ac__type_new_;
8310 main ()
8312 if ((ac__type_new_ *) 0)
8313 return 0;
8314 if (sizeof (ac__type_new_))
8315 return 0;
8317 return 0;
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (ac_try="$ac_compile"
8322 case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8325 esac
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.$ac_objext; then
8337 ac_cv_type_short=yes
8338 else
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 ac_cv_type_short=no
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8348 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8350 # The cast to long int works around a bug in the HP C Compiler
8351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8353 # This bug is HP SR number 8606223364.
8354 { echo "$as_me:$LINENO: checking size of short" >&5
8355 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8356 if test "${ac_cv_sizeof_short+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359 if test "$cross_compiling" = yes; then
8360 # Depending upon the size, compute the lo and hi bounds.
8361 cat >conftest.$ac_ext <<_ACEOF
8362 /* confdefs.h. */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8367 $ac_includes_default
8368 typedef short ac__type_sizeof_;
8370 main ()
8372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8373 test_array [0] = 0
8376 return 0;
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (ac_try="$ac_compile"
8381 case "(($ac_try" in
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8384 esac
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_compile") 2>conftest.er1
8387 ac_status=$?
8388 grep -v '^ *+' conftest.er1 >conftest.err
8389 rm -f conftest.er1
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && {
8393 test -z "$ac_c_werror_flag" ||
8394 test ! -s conftest.err
8395 } && test -s conftest.$ac_objext; then
8396 ac_lo=0 ac_mid=0
8397 while :; do
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h. */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 $ac_includes_default
8405 typedef short ac__type_sizeof_;
8407 main ()
8409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8410 test_array [0] = 0
8413 return 0;
8415 _ACEOF
8416 rm -f conftest.$ac_objext
8417 if { (ac_try="$ac_compile"
8418 case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8421 esac
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_compile") 2>conftest.er1
8424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest.$ac_objext; then
8433 ac_hi=$ac_mid; break
8434 else
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 ac_lo=`expr $ac_mid + 1`
8439 if test $ac_lo -le $ac_mid; then
8440 ac_lo= ac_hi=
8441 break
8443 ac_mid=`expr 2 '*' $ac_mid + 1`
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 done
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h. */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8459 typedef short ac__type_sizeof_;
8461 main ()
8463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8464 test_array [0] = 0
8467 return 0;
8469 _ACEOF
8470 rm -f conftest.$ac_objext
8471 if { (ac_try="$ac_compile"
8472 case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475 esac
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_compile") 2>conftest.er1
8478 ac_status=$?
8479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && {
8484 test -z "$ac_c_werror_flag" ||
8485 test ! -s conftest.err
8486 } && test -s conftest.$ac_objext; then
8487 ac_hi=-1 ac_mid=-1
8488 while :; do
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 $ac_includes_default
8496 typedef short ac__type_sizeof_;
8498 main ()
8500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8501 test_array [0] = 0
8504 return 0;
8506 _ACEOF
8507 rm -f conftest.$ac_objext
8508 if { (ac_try="$ac_compile"
8509 case "(($ac_try" in
8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511 *) ac_try_echo=$ac_try;;
8512 esac
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8515 ac_status=$?
8516 grep -v '^ *+' conftest.er1 >conftest.err
8517 rm -f conftest.er1
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8524 ac_lo=$ac_mid; break
8525 else
8526 echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 ac_hi=`expr '(' $ac_mid ')' - 1`
8530 if test $ac_mid -le $ac_hi; then
8531 ac_lo= ac_hi=
8532 break
8534 ac_mid=`expr 2 '*' $ac_mid`
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 done
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_lo= ac_hi=
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 # Binary search between lo and hi bounds.
8551 while test "x$ac_lo" != "x$ac_hi"; do
8552 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 $ac_includes_default
8560 typedef short ac__type_sizeof_;
8562 main ()
8564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8565 test_array [0] = 0
8568 return 0;
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.$ac_objext; then
8588 ac_hi=$ac_mid
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_lo=`expr '(' $ac_mid ')' + 1`
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 done
8598 case $ac_lo in
8599 ?*) ac_cv_sizeof_short=$ac_lo;;
8600 '') if test "$ac_cv_type_short" = yes; then
8601 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8602 See \`config.log' for more details." >&5
8603 echo "$as_me: error: cannot compute sizeof (short)
8604 See \`config.log' for more details." >&2;}
8605 { (exit 77); exit 77; }; }
8606 else
8607 ac_cv_sizeof_short=0
8608 fi ;;
8609 esac
8610 else
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 typedef short ac__type_sizeof_;
8619 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8620 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8621 #include <stdio.h>
8622 #include <stdlib.h>
8624 main ()
8627 FILE *f = fopen ("conftest.val", "w");
8628 if (! f)
8629 return 1;
8630 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8632 long int i = longval ();
8633 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8634 return 1;
8635 fprintf (f, "%ld\n", i);
8637 else
8639 unsigned long int i = ulongval ();
8640 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8641 return 1;
8642 fprintf (f, "%lu\n", i);
8644 return ferror (f) || fclose (f) != 0;
8647 return 0;
8649 _ACEOF
8650 rm -f conftest$ac_exeext
8651 if { (ac_try="$ac_link"
8652 case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655 esac
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_link") 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8661 { (case "(($ac_try" in
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8664 esac
8665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8666 (eval "$ac_try") 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_sizeof_short=`cat conftest.val`
8671 else
8672 echo "$as_me: program exited with status $ac_status" >&5
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8676 ( exit $ac_status )
8677 if test "$ac_cv_type_short" = yes; then
8678 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8679 See \`config.log' for more details." >&5
8680 echo "$as_me: error: cannot compute sizeof (short)
8681 See \`config.log' for more details." >&2;}
8682 { (exit 77); exit 77; }; }
8683 else
8684 ac_cv_sizeof_short=0
8687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8689 rm -f conftest.val
8691 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8692 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8696 cat >>confdefs.h <<_ACEOF
8697 #define SIZEOF_SHORT $ac_cv_sizeof_short
8698 _ACEOF
8701 { echo "$as_me:$LINENO: checking for float" >&5
8702 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8703 if test "${ac_cv_type_float+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 $ac_includes_default
8713 typedef float ac__type_new_;
8715 main ()
8717 if ((ac__type_new_ *) 0)
8718 return 0;
8719 if (sizeof (ac__type_new_))
8720 return 0;
8722 return 0;
8724 _ACEOF
8725 rm -f conftest.$ac_objext
8726 if { (ac_try="$ac_compile"
8727 case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_compile") 2>conftest.er1
8733 ac_status=$?
8734 grep -v '^ *+' conftest.er1 >conftest.err
8735 rm -f conftest.er1
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && {
8739 test -z "$ac_c_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest.$ac_objext; then
8742 ac_cv_type_float=yes
8743 else
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_cv_type_float=no
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8753 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8755 # The cast to long int works around a bug in the HP C Compiler
8756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8758 # This bug is HP SR number 8606223364.
8759 { echo "$as_me:$LINENO: checking size of float" >&5
8760 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8761 if test "${ac_cv_sizeof_float+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764 if test "$cross_compiling" = yes; then
8765 # Depending upon the size, compute the lo and hi bounds.
8766 cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h. */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 $ac_includes_default
8773 typedef float ac__type_sizeof_;
8775 main ()
8777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8778 test_array [0] = 0
8781 return 0;
8783 _ACEOF
8784 rm -f conftest.$ac_objext
8785 if { (ac_try="$ac_compile"
8786 case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8789 esac
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_compile") 2>conftest.er1
8792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } && {
8798 test -z "$ac_c_werror_flag" ||
8799 test ! -s conftest.err
8800 } && test -s conftest.$ac_objext; then
8801 ac_lo=0 ac_mid=0
8802 while :; do
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h. */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 $ac_includes_default
8810 typedef float ac__type_sizeof_;
8812 main ()
8814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8815 test_array [0] = 0
8818 return 0;
8820 _ACEOF
8821 rm -f conftest.$ac_objext
8822 if { (ac_try="$ac_compile"
8823 case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826 esac
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_compile") 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && {
8835 test -z "$ac_c_werror_flag" ||
8836 test ! -s conftest.err
8837 } && test -s conftest.$ac_objext; then
8838 ac_hi=$ac_mid; break
8839 else
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 ac_lo=`expr $ac_mid + 1`
8844 if test $ac_lo -le $ac_mid; then
8845 ac_lo= ac_hi=
8846 break
8848 ac_mid=`expr 2 '*' $ac_mid + 1`
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 done
8853 else
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8857 cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h. */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863 $ac_includes_default
8864 typedef float ac__type_sizeof_;
8866 main ()
8868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8869 test_array [0] = 0
8872 return 0;
8874 _ACEOF
8875 rm -f conftest.$ac_objext
8876 if { (ac_try="$ac_compile"
8877 case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_compile") 2>conftest.er1
8883 ac_status=$?
8884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.$ac_objext; then
8892 ac_hi=-1 ac_mid=-1
8893 while :; do
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 $ac_includes_default
8901 typedef float ac__type_sizeof_;
8903 main ()
8905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8906 test_array [0] = 0
8909 return 0;
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8914 case "(($ac_try" in
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_compile") 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } && {
8926 test -z "$ac_c_werror_flag" ||
8927 test ! -s conftest.err
8928 } && test -s conftest.$ac_objext; then
8929 ac_lo=$ac_mid; break
8930 else
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_hi=`expr '(' $ac_mid ')' - 1`
8935 if test $ac_mid -le $ac_hi; then
8936 ac_lo= ac_hi=
8937 break
8939 ac_mid=`expr 2 '*' $ac_mid`
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 done
8944 else
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 ac_lo= ac_hi=
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955 # Binary search between lo and hi bounds.
8956 while test "x$ac_lo" != "x$ac_hi"; do
8957 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8958 cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h. */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 $ac_includes_default
8965 typedef float ac__type_sizeof_;
8967 main ()
8969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8970 test_array [0] = 0
8973 return 0;
8975 _ACEOF
8976 rm -f conftest.$ac_objext
8977 if { (ac_try="$ac_compile"
8978 case "(($ac_try" in
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8981 esac
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_compile") 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest.$ac_objext; then
8993 ac_hi=$ac_mid
8994 else
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_lo=`expr '(' $ac_mid ')' + 1`
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 done
9003 case $ac_lo in
9004 ?*) ac_cv_sizeof_float=$ac_lo;;
9005 '') if test "$ac_cv_type_float" = yes; then
9006 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9007 See \`config.log' for more details." >&5
9008 echo "$as_me: error: cannot compute sizeof (float)
9009 See \`config.log' for more details." >&2;}
9010 { (exit 77); exit 77; }; }
9011 else
9012 ac_cv_sizeof_float=0
9013 fi ;;
9014 esac
9015 else
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9022 $ac_includes_default
9023 typedef float ac__type_sizeof_;
9024 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9025 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9026 #include <stdio.h>
9027 #include <stdlib.h>
9029 main ()
9032 FILE *f = fopen ("conftest.val", "w");
9033 if (! f)
9034 return 1;
9035 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9037 long int i = longval ();
9038 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9039 return 1;
9040 fprintf (f, "%ld\n", i);
9042 else
9044 unsigned long int i = ulongval ();
9045 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9046 return 1;
9047 fprintf (f, "%lu\n", i);
9049 return ferror (f) || fclose (f) != 0;
9052 return 0;
9054 _ACEOF
9055 rm -f conftest$ac_exeext
9056 if { (ac_try="$ac_link"
9057 case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9060 esac
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_link") 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9066 { (case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069 esac
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_try") 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_sizeof_float=`cat conftest.val`
9076 else
9077 echo "$as_me: program exited with status $ac_status" >&5
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 ( exit $ac_status )
9082 if test "$ac_cv_type_float" = yes; then
9083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9084 See \`config.log' for more details." >&5
9085 echo "$as_me: error: cannot compute sizeof (float)
9086 See \`config.log' for more details." >&2;}
9087 { (exit 77); exit 77; }; }
9088 else
9089 ac_cv_sizeof_float=0
9092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9094 rm -f conftest.val
9096 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9097 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9101 cat >>confdefs.h <<_ACEOF
9102 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9103 _ACEOF
9106 { echo "$as_me:$LINENO: checking for double" >&5
9107 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9108 if test "${ac_cv_type_double+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9118 typedef double ac__type_new_;
9120 main ()
9122 if ((ac__type_new_ *) 0)
9123 return 0;
9124 if (sizeof (ac__type_new_))
9125 return 0;
9127 return 0;
9129 _ACEOF
9130 rm -f conftest.$ac_objext
9131 if { (ac_try="$ac_compile"
9132 case "(($ac_try" in
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9135 esac
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_compile") 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest.$ac_objext; then
9147 ac_cv_type_double=yes
9148 else
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 ac_cv_type_double=no
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9158 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9160 # The cast to long int works around a bug in the HP C Compiler
9161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9163 # This bug is HP SR number 8606223364.
9164 { echo "$as_me:$LINENO: checking size of double" >&5
9165 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9166 if test "${ac_cv_sizeof_double+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 else
9169 if test "$cross_compiling" = yes; then
9170 # Depending upon the size, compute the lo and hi bounds.
9171 cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h. */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 $ac_includes_default
9178 typedef double ac__type_sizeof_;
9180 main ()
9182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9183 test_array [0] = 0
9186 return 0;
9188 _ACEOF
9189 rm -f conftest.$ac_objext
9190 if { (ac_try="$ac_compile"
9191 case "(($ac_try" in
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9194 esac
9195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196 (eval "$ac_compile") 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } && {
9203 test -z "$ac_c_werror_flag" ||
9204 test ! -s conftest.err
9205 } && test -s conftest.$ac_objext; then
9206 ac_lo=0 ac_mid=0
9207 while :; do
9208 cat >conftest.$ac_ext <<_ACEOF
9209 /* confdefs.h. */
9210 _ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9214 $ac_includes_default
9215 typedef double ac__type_sizeof_;
9217 main ()
9219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9220 test_array [0] = 0
9223 return 0;
9225 _ACEOF
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9228 case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest.$ac_objext; then
9243 ac_hi=$ac_mid; break
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9248 ac_lo=`expr $ac_mid + 1`
9249 if test $ac_lo -le $ac_mid; then
9250 ac_lo= ac_hi=
9251 break
9253 ac_mid=`expr 2 '*' $ac_mid + 1`
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 done
9258 else
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h. */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268 $ac_includes_default
9269 typedef double ac__type_sizeof_;
9271 main ()
9273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9274 test_array [0] = 0
9277 return 0;
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (ac_try="$ac_compile"
9282 case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285 esac
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_compile") 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } && {
9294 test -z "$ac_c_werror_flag" ||
9295 test ! -s conftest.err
9296 } && test -s conftest.$ac_objext; then
9297 ac_hi=-1 ac_mid=-1
9298 while :; do
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h. */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 $ac_includes_default
9306 typedef double ac__type_sizeof_;
9308 main ()
9310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9311 test_array [0] = 0
9314 return 0;
9316 _ACEOF
9317 rm -f conftest.$ac_objext
9318 if { (ac_try="$ac_compile"
9319 case "(($ac_try" in
9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321 *) ac_try_echo=$ac_try;;
9322 esac
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_compile") 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && {
9331 test -z "$ac_c_werror_flag" ||
9332 test ! -s conftest.err
9333 } && test -s conftest.$ac_objext; then
9334 ac_lo=$ac_mid; break
9335 else
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 ac_hi=`expr '(' $ac_mid ')' - 1`
9340 if test $ac_mid -le $ac_hi; then
9341 ac_lo= ac_hi=
9342 break
9344 ac_mid=`expr 2 '*' $ac_mid`
9347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348 done
9349 else
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9353 ac_lo= ac_hi=
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 # Binary search between lo and hi bounds.
9361 while test "x$ac_lo" != "x$ac_hi"; do
9362 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h. */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 $ac_includes_default
9370 typedef double ac__type_sizeof_;
9372 main ()
9374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9375 test_array [0] = 0
9378 return 0;
9380 _ACEOF
9381 rm -f conftest.$ac_objext
9382 if { (ac_try="$ac_compile"
9383 case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386 esac
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_compile") 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest.$ac_objext; then
9398 ac_hi=$ac_mid
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_lo=`expr '(' $ac_mid ')' + 1`
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407 done
9408 case $ac_lo in
9409 ?*) ac_cv_sizeof_double=$ac_lo;;
9410 '') if test "$ac_cv_type_double" = yes; then
9411 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9412 See \`config.log' for more details." >&5
9413 echo "$as_me: error: cannot compute sizeof (double)
9414 See \`config.log' for more details." >&2;}
9415 { (exit 77); exit 77; }; }
9416 else
9417 ac_cv_sizeof_double=0
9418 fi ;;
9419 esac
9420 else
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 $ac_includes_default
9428 typedef double ac__type_sizeof_;
9429 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9430 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9431 #include <stdio.h>
9432 #include <stdlib.h>
9434 main ()
9437 FILE *f = fopen ("conftest.val", "w");
9438 if (! f)
9439 return 1;
9440 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9442 long int i = longval ();
9443 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9444 return 1;
9445 fprintf (f, "%ld\n", i);
9447 else
9449 unsigned long int i = ulongval ();
9450 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9451 return 1;
9452 fprintf (f, "%lu\n", i);
9454 return ferror (f) || fclose (f) != 0;
9457 return 0;
9459 _ACEOF
9460 rm -f conftest$ac_exeext
9461 if { (ac_try="$ac_link"
9462 case "(($ac_try" in
9463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9464 *) ac_try_echo=$ac_try;;
9465 esac
9466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9467 (eval "$ac_link") 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9471 { (case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_try") 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 ac_cv_sizeof_double=`cat conftest.val`
9481 else
9482 echo "$as_me: program exited with status $ac_status" >&5
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 ( exit $ac_status )
9487 if test "$ac_cv_type_double" = yes; then
9488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9489 See \`config.log' for more details." >&5
9490 echo "$as_me: error: cannot compute sizeof (double)
9491 See \`config.log' for more details." >&2;}
9492 { (exit 77); exit 77; }; }
9493 else
9494 ac_cv_sizeof_double=0
9497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9499 rm -f conftest.val
9501 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9502 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9506 cat >>confdefs.h <<_ACEOF
9507 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9508 _ACEOF
9511 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9512 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9513 if test "${ac_cv_type_fpos_t+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h. */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 $ac_includes_default
9523 typedef fpos_t ac__type_new_;
9525 main ()
9527 if ((ac__type_new_ *) 0)
9528 return 0;
9529 if (sizeof (ac__type_new_))
9530 return 0;
9532 return 0;
9534 _ACEOF
9535 rm -f conftest.$ac_objext
9536 if { (ac_try="$ac_compile"
9537 case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_compile") 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest.$ac_objext; then
9552 ac_cv_type_fpos_t=yes
9553 else
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9557 ac_cv_type_fpos_t=no
9560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9563 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9565 # The cast to long int works around a bug in the HP C Compiler
9566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9568 # This bug is HP SR number 8606223364.
9569 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9570 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9571 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 if test "$cross_compiling" = yes; then
9575 # Depending upon the size, compute the lo and hi bounds.
9576 cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h. */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 $ac_includes_default
9583 typedef fpos_t ac__type_sizeof_;
9585 main ()
9587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9588 test_array [0] = 0
9591 return 0;
9593 _ACEOF
9594 rm -f conftest.$ac_objext
9595 if { (ac_try="$ac_compile"
9596 case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_compile") 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest.$ac_objext; then
9611 ac_lo=0 ac_mid=0
9612 while :; do
9613 cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h. */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 $ac_includes_default
9620 typedef fpos_t ac__type_sizeof_;
9622 main ()
9624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9625 test_array [0] = 0
9628 return 0;
9630 _ACEOF
9631 rm -f conftest.$ac_objext
9632 if { (ac_try="$ac_compile"
9633 case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_compile") 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } && {
9645 test -z "$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9647 } && test -s conftest.$ac_objext; then
9648 ac_hi=$ac_mid; break
9649 else
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 ac_lo=`expr $ac_mid + 1`
9654 if test $ac_lo -le $ac_mid; then
9655 ac_lo= ac_hi=
9656 break
9658 ac_mid=`expr 2 '*' $ac_mid + 1`
9661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 done
9663 else
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h. */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673 $ac_includes_default
9674 typedef fpos_t ac__type_sizeof_;
9676 main ()
9678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9679 test_array [0] = 0
9682 return 0;
9684 _ACEOF
9685 rm -f conftest.$ac_objext
9686 if { (ac_try="$ac_compile"
9687 case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_compile") 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest.$ac_objext; then
9702 ac_hi=-1 ac_mid=-1
9703 while :; do
9704 cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h. */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710 $ac_includes_default
9711 typedef fpos_t ac__type_sizeof_;
9713 main ()
9715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9716 test_array [0] = 0
9719 return 0;
9721 _ACEOF
9722 rm -f conftest.$ac_objext
9723 if { (ac_try="$ac_compile"
9724 case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_compile") 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest.$ac_objext; then
9739 ac_lo=$ac_mid; break
9740 else
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_hi=`expr '(' $ac_mid ')' - 1`
9745 if test $ac_mid -le $ac_hi; then
9746 ac_lo= ac_hi=
9747 break
9749 ac_mid=`expr 2 '*' $ac_mid`
9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753 done
9754 else
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_lo= ac_hi=
9761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9765 # Binary search between lo and hi bounds.
9766 while test "x$ac_lo" != "x$ac_hi"; do
9767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9768 cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h. */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 $ac_includes_default
9775 typedef fpos_t ac__type_sizeof_;
9777 main ()
9779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9780 test_array [0] = 0
9783 return 0;
9785 _ACEOF
9786 rm -f conftest.$ac_objext
9787 if { (ac_try="$ac_compile"
9788 case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_compile") 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest.$ac_objext; then
9803 ac_hi=$ac_mid
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_lo=`expr '(' $ac_mid ')' + 1`
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812 done
9813 case $ac_lo in
9814 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9815 '') if test "$ac_cv_type_fpos_t" = yes; then
9816 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9817 See \`config.log' for more details." >&5
9818 echo "$as_me: error: cannot compute sizeof (fpos_t)
9819 See \`config.log' for more details." >&2;}
9820 { (exit 77); exit 77; }; }
9821 else
9822 ac_cv_sizeof_fpos_t=0
9823 fi ;;
9824 esac
9825 else
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9833 typedef fpos_t ac__type_sizeof_;
9834 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9835 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9836 #include <stdio.h>
9837 #include <stdlib.h>
9839 main ()
9842 FILE *f = fopen ("conftest.val", "w");
9843 if (! f)
9844 return 1;
9845 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9847 long int i = longval ();
9848 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9849 return 1;
9850 fprintf (f, "%ld\n", i);
9852 else
9854 unsigned long int i = ulongval ();
9855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9856 return 1;
9857 fprintf (f, "%lu\n", i);
9859 return ferror (f) || fclose (f) != 0;
9862 return 0;
9864 _ACEOF
9865 rm -f conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9867 case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9870 esac
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_sizeof_fpos_t=`cat conftest.val`
9886 else
9887 echo "$as_me: program exited with status $ac_status" >&5
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 ( exit $ac_status )
9892 if test "$ac_cv_type_fpos_t" = yes; then
9893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9894 See \`config.log' for more details." >&5
9895 echo "$as_me: error: cannot compute sizeof (fpos_t)
9896 See \`config.log' for more details." >&2;}
9897 { (exit 77); exit 77; }; }
9898 else
9899 ac_cv_sizeof_fpos_t=0
9902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9904 rm -f conftest.val
9906 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9907 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9911 cat >>confdefs.h <<_ACEOF
9912 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9913 _ACEOF
9916 { echo "$as_me:$LINENO: checking for size_t" >&5
9917 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9918 if test "${ac_cv_type_size_t+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921 cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h. */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9927 $ac_includes_default
9928 typedef size_t ac__type_new_;
9930 main ()
9932 if ((ac__type_new_ *) 0)
9933 return 0;
9934 if (sizeof (ac__type_new_))
9935 return 0;
9937 return 0;
9939 _ACEOF
9940 rm -f conftest.$ac_objext
9941 if { (ac_try="$ac_compile"
9942 case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_compile") 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && {
9954 test -z "$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 } && test -s conftest.$ac_objext; then
9957 ac_cv_type_size_t=yes
9958 else
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_cv_type_size_t=no
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9968 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9970 # The cast to long int works around a bug in the HP C Compiler
9971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9973 # This bug is HP SR number 8606223364.
9974 { echo "$as_me:$LINENO: checking size of size_t" >&5
9975 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9976 if test "${ac_cv_sizeof_size_t+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 if test "$cross_compiling" = yes; then
9980 # Depending upon the size, compute the lo and hi bounds.
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 $ac_includes_default
9988 typedef size_t ac__type_sizeof_;
9990 main ()
9992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9993 test_array [0] = 0
9996 return 0;
9998 _ACEOF
9999 rm -f conftest.$ac_objext
10000 if { (ac_try="$ac_compile"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_compile") 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && {
10013 test -z "$ac_c_werror_flag" ||
10014 test ! -s conftest.err
10015 } && test -s conftest.$ac_objext; then
10016 ac_lo=0 ac_mid=0
10017 while :; do
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 $ac_includes_default
10025 typedef size_t ac__type_sizeof_;
10027 main ()
10029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10030 test_array [0] = 0
10033 return 0;
10035 _ACEOF
10036 rm -f conftest.$ac_objext
10037 if { (ac_try="$ac_compile"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041 esac
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_compile") 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } && {
10050 test -z "$ac_c_werror_flag" ||
10051 test ! -s conftest.err
10052 } && test -s conftest.$ac_objext; then
10053 ac_hi=$ac_mid; break
10054 else
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ac_lo=`expr $ac_mid + 1`
10059 if test $ac_lo -le $ac_mid; then
10060 ac_lo= ac_hi=
10061 break
10063 ac_mid=`expr 2 '*' $ac_mid + 1`
10066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067 done
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 $ac_includes_default
10079 typedef size_t ac__type_sizeof_;
10081 main ()
10083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10084 test_array [0] = 0
10087 return 0;
10089 _ACEOF
10090 rm -f conftest.$ac_objext
10091 if { (ac_try="$ac_compile"
10092 case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_compile") 2>conftest.er1
10098 ac_status=$?
10099 grep -v '^ *+' conftest.er1 >conftest.err
10100 rm -f conftest.er1
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && {
10104 test -z "$ac_c_werror_flag" ||
10105 test ! -s conftest.err
10106 } && test -s conftest.$ac_objext; then
10107 ac_hi=-1 ac_mid=-1
10108 while :; do
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 $ac_includes_default
10116 typedef size_t ac__type_sizeof_;
10118 main ()
10120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10121 test_array [0] = 0
10124 return 0;
10126 _ACEOF
10127 rm -f conftest.$ac_objext
10128 if { (ac_try="$ac_compile"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_compile") 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest.$ac_objext; then
10144 ac_lo=$ac_mid; break
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_hi=`expr '(' $ac_mid ')' - 1`
10150 if test $ac_mid -le $ac_hi; then
10151 ac_lo= ac_hi=
10152 break
10154 ac_mid=`expr 2 '*' $ac_mid`
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 done
10159 else
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10163 ac_lo= ac_hi=
10166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10170 # Binary search between lo and hi bounds.
10171 while test "x$ac_lo" != "x$ac_hi"; do
10172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10173 cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h. */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 $ac_includes_default
10180 typedef size_t ac__type_sizeof_;
10182 main ()
10184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10185 test_array [0] = 0
10188 return 0;
10190 _ACEOF
10191 rm -f conftest.$ac_objext
10192 if { (ac_try="$ac_compile"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_compile") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest.$ac_objext; then
10208 ac_hi=$ac_mid
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_lo=`expr '(' $ac_mid ')' + 1`
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217 done
10218 case $ac_lo in
10219 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10220 '') if test "$ac_cv_type_size_t" = yes; then
10221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10222 See \`config.log' for more details." >&5
10223 echo "$as_me: error: cannot compute sizeof (size_t)
10224 See \`config.log' for more details." >&2;}
10225 { (exit 77); exit 77; }; }
10226 else
10227 ac_cv_sizeof_size_t=0
10228 fi ;;
10229 esac
10230 else
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h. */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 $ac_includes_default
10238 typedef size_t ac__type_sizeof_;
10239 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10240 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10241 #include <stdio.h>
10242 #include <stdlib.h>
10244 main ()
10247 FILE *f = fopen ("conftest.val", "w");
10248 if (! f)
10249 return 1;
10250 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10252 long int i = longval ();
10253 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10254 return 1;
10255 fprintf (f, "%ld\n", i);
10257 else
10259 unsigned long int i = ulongval ();
10260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10261 return 1;
10262 fprintf (f, "%lu\n", i);
10264 return ferror (f) || fclose (f) != 0;
10267 return 0;
10269 _ACEOF
10270 rm -f conftest$ac_exeext
10271 if { (ac_try="$ac_link"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275 esac
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_link") 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10281 { (case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10284 esac
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_try") 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; }; then
10290 ac_cv_sizeof_size_t=`cat conftest.val`
10291 else
10292 echo "$as_me: program exited with status $ac_status" >&5
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 ( exit $ac_status )
10297 if test "$ac_cv_type_size_t" = yes; then
10298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10299 See \`config.log' for more details." >&5
10300 echo "$as_me: error: cannot compute sizeof (size_t)
10301 See \`config.log' for more details." >&2;}
10302 { (exit 77); exit 77; }; }
10303 else
10304 ac_cv_sizeof_size_t=0
10307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10309 rm -f conftest.val
10311 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10312 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10316 cat >>confdefs.h <<_ACEOF
10317 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10318 _ACEOF
10321 { echo "$as_me:$LINENO: checking for pid_t" >&5
10322 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10323 if test "${ac_cv_type_pid_t+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326 cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h. */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 $ac_includes_default
10333 typedef pid_t ac__type_new_;
10335 main ()
10337 if ((ac__type_new_ *) 0)
10338 return 0;
10339 if (sizeof (ac__type_new_))
10340 return 0;
10342 return 0;
10344 _ACEOF
10345 rm -f conftest.$ac_objext
10346 if { (ac_try="$ac_compile"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350 esac
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_compile") 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && {
10359 test -z "$ac_c_werror_flag" ||
10360 test ! -s conftest.err
10361 } && test -s conftest.$ac_objext; then
10362 ac_cv_type_pid_t=yes
10363 else
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10367 ac_cv_type_pid_t=no
10370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10373 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10375 # The cast to long int works around a bug in the HP C Compiler
10376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10378 # This bug is HP SR number 8606223364.
10379 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10380 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10381 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384 if test "$cross_compiling" = yes; then
10385 # Depending upon the size, compute the lo and hi bounds.
10386 cat >conftest.$ac_ext <<_ACEOF
10387 /* confdefs.h. */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10392 $ac_includes_default
10393 typedef pid_t ac__type_sizeof_;
10395 main ()
10397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10398 test_array [0] = 0
10401 return 0;
10403 _ACEOF
10404 rm -f conftest.$ac_objext
10405 if { (ac_try="$ac_compile"
10406 case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_compile") 2>conftest.er1
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } && {
10418 test -z "$ac_c_werror_flag" ||
10419 test ! -s conftest.err
10420 } && test -s conftest.$ac_objext; then
10421 ac_lo=0 ac_mid=0
10422 while :; do
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h. */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 $ac_includes_default
10430 typedef pid_t ac__type_sizeof_;
10432 main ()
10434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10435 test_array [0] = 0
10438 return 0;
10440 _ACEOF
10441 rm -f conftest.$ac_objext
10442 if { (ac_try="$ac_compile"
10443 case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10446 esac
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_compile") 2>conftest.er1
10449 ac_status=$?
10450 grep -v '^ *+' conftest.er1 >conftest.err
10451 rm -f conftest.er1
10452 cat conftest.err >&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } && {
10455 test -z "$ac_c_werror_flag" ||
10456 test ! -s conftest.err
10457 } && test -s conftest.$ac_objext; then
10458 ac_hi=$ac_mid; break
10459 else
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 ac_lo=`expr $ac_mid + 1`
10464 if test $ac_lo -le $ac_mid; then
10465 ac_lo= ac_hi=
10466 break
10468 ac_mid=`expr 2 '*' $ac_mid + 1`
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 done
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 cat >conftest.$ac_ext <<_ACEOF
10478 /* confdefs.h. */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 $ac_includes_default
10484 typedef pid_t ac__type_sizeof_;
10486 main ()
10488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10489 test_array [0] = 0
10492 return 0;
10494 _ACEOF
10495 rm -f conftest.$ac_objext
10496 if { (ac_try="$ac_compile"
10497 case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10500 esac
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_compile") 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && {
10509 test -z "$ac_c_werror_flag" ||
10510 test ! -s conftest.err
10511 } && test -s conftest.$ac_objext; then
10512 ac_hi=-1 ac_mid=-1
10513 while :; do
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 $ac_includes_default
10521 typedef pid_t ac__type_sizeof_;
10523 main ()
10525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10526 test_array [0] = 0
10529 return 0;
10531 _ACEOF
10532 rm -f conftest.$ac_objext
10533 if { (ac_try="$ac_compile"
10534 case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_compile") 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest.$ac_objext; then
10549 ac_lo=$ac_mid; break
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 ac_hi=`expr '(' $ac_mid ')' - 1`
10555 if test $ac_mid -le $ac_hi; then
10556 ac_lo= ac_hi=
10557 break
10559 ac_mid=`expr 2 '*' $ac_mid`
10562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10563 done
10564 else
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_lo= ac_hi=
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 # Binary search between lo and hi bounds.
10576 while test "x$ac_lo" != "x$ac_hi"; do
10577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h. */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 $ac_includes_default
10585 typedef pid_t ac__type_sizeof_;
10587 main ()
10589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10590 test_array [0] = 0
10593 return 0;
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (ac_try="$ac_compile"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_compile") 2>conftest.er1
10604 ac_status=$?
10605 grep -v '^ *+' conftest.er1 >conftest.err
10606 rm -f conftest.er1
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest.$ac_objext; then
10613 ac_hi=$ac_mid
10614 else
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 ac_lo=`expr '(' $ac_mid ')' + 1`
10621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10622 done
10623 case $ac_lo in
10624 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10625 '') if test "$ac_cv_type_pid_t" = yes; then
10626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10627 See \`config.log' for more details." >&5
10628 echo "$as_me: error: cannot compute sizeof (pid_t)
10629 See \`config.log' for more details." >&2;}
10630 { (exit 77); exit 77; }; }
10631 else
10632 ac_cv_sizeof_pid_t=0
10633 fi ;;
10634 esac
10635 else
10636 cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h. */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 $ac_includes_default
10643 typedef pid_t ac__type_sizeof_;
10644 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10645 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10646 #include <stdio.h>
10647 #include <stdlib.h>
10649 main ()
10652 FILE *f = fopen ("conftest.val", "w");
10653 if (! f)
10654 return 1;
10655 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10657 long int i = longval ();
10658 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10659 return 1;
10660 fprintf (f, "%ld\n", i);
10662 else
10664 unsigned long int i = ulongval ();
10665 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10666 return 1;
10667 fprintf (f, "%lu\n", i);
10669 return ferror (f) || fclose (f) != 0;
10672 return 0;
10674 _ACEOF
10675 rm -f conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680 esac
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_link") 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10686 { (case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10689 esac
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_try") 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 ac_cv_sizeof_pid_t=`cat conftest.val`
10696 else
10697 echo "$as_me: program exited with status $ac_status" >&5
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ( exit $ac_status )
10702 if test "$ac_cv_type_pid_t" = yes; then
10703 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10704 See \`config.log' for more details." >&5
10705 echo "$as_me: error: cannot compute sizeof (pid_t)
10706 See \`config.log' for more details." >&2;}
10707 { (exit 77); exit 77; }; }
10708 else
10709 ac_cv_sizeof_pid_t=0
10712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10714 rm -f conftest.val
10716 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10717 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10721 cat >>confdefs.h <<_ACEOF
10722 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10723 _ACEOF
10727 { echo "$as_me:$LINENO: checking for long long support" >&5
10728 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10729 have_long_long=no
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h. */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10738 main ()
10740 long long x; x = (long long)0;
10742 return 0;
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest.$ac_objext; then
10764 cat >>confdefs.h <<\_ACEOF
10765 #define HAVE_LONG_LONG 1
10766 _ACEOF
10768 have_long_long=yes
10770 else
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10779 echo "${ECHO_T}$have_long_long" >&6; }
10780 if test "$have_long_long" = yes ; then
10781 { echo "$as_me:$LINENO: checking for long long" >&5
10782 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10783 if test "${ac_cv_type_long_long+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 else
10786 cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h. */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 $ac_includes_default
10793 typedef long long ac__type_new_;
10795 main ()
10797 if ((ac__type_new_ *) 0)
10798 return 0;
10799 if (sizeof (ac__type_new_))
10800 return 0;
10802 return 0;
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest.$ac_objext; then
10822 ac_cv_type_long_long=yes
10823 else
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_cv_type_long_long=no
10830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10833 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10835 # The cast to long int works around a bug in the HP C Compiler
10836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10838 # This bug is HP SR number 8606223364.
10839 { echo "$as_me:$LINENO: checking size of long long" >&5
10840 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10841 if test "${ac_cv_sizeof_long_long+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844 if test "$cross_compiling" = yes; then
10845 # Depending upon the size, compute the lo and hi bounds.
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 $ac_includes_default
10853 typedef long long ac__type_sizeof_;
10855 main ()
10857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10858 test_array [0] = 0
10861 return 0;
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (ac_try="$ac_compile"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_compile") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest.$ac_objext; then
10881 ac_lo=0 ac_mid=0
10882 while :; do
10883 cat >conftest.$ac_ext <<_ACEOF
10884 /* confdefs.h. */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 $ac_includes_default
10890 typedef long long ac__type_sizeof_;
10892 main ()
10894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10895 test_array [0] = 0
10898 return 0;
10900 _ACEOF
10901 rm -f conftest.$ac_objext
10902 if { (ac_try="$ac_compile"
10903 case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906 esac
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_compile") 2>conftest.er1
10909 ac_status=$?
10910 grep -v '^ *+' conftest.er1 >conftest.err
10911 rm -f conftest.er1
10912 cat conftest.err >&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } && {
10915 test -z "$ac_c_werror_flag" ||
10916 test ! -s conftest.err
10917 } && test -s conftest.$ac_objext; then
10918 ac_hi=$ac_mid; break
10919 else
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_lo=`expr $ac_mid + 1`
10924 if test $ac_lo -le $ac_mid; then
10925 ac_lo= ac_hi=
10926 break
10928 ac_mid=`expr 2 '*' $ac_mid + 1`
10931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10932 done
10933 else
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h. */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 $ac_includes_default
10944 typedef long long ac__type_sizeof_;
10946 main ()
10948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10949 test_array [0] = 0
10952 return 0;
10954 _ACEOF
10955 rm -f conftest.$ac_objext
10956 if { (ac_try="$ac_compile"
10957 case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_compile") 2>conftest.er1
10963 ac_status=$?
10964 grep -v '^ *+' conftest.er1 >conftest.err
10965 rm -f conftest.er1
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } && {
10969 test -z "$ac_c_werror_flag" ||
10970 test ! -s conftest.err
10971 } && test -s conftest.$ac_objext; then
10972 ac_hi=-1 ac_mid=-1
10973 while :; do
10974 cat >conftest.$ac_ext <<_ACEOF
10975 /* confdefs.h. */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10980 $ac_includes_default
10981 typedef long long ac__type_sizeof_;
10983 main ()
10985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10986 test_array [0] = 0
10989 return 0;
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997 esac
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_compile") 2>conftest.er1
11000 ac_status=$?
11001 grep -v '^ *+' conftest.er1 >conftest.err
11002 rm -f conftest.er1
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } && {
11006 test -z "$ac_c_werror_flag" ||
11007 test ! -s conftest.err
11008 } && test -s conftest.$ac_objext; then
11009 ac_lo=$ac_mid; break
11010 else
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_hi=`expr '(' $ac_mid ')' - 1`
11015 if test $ac_mid -le $ac_hi; then
11016 ac_lo= ac_hi=
11017 break
11019 ac_mid=`expr 2 '*' $ac_mid`
11022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11023 done
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 ac_lo= ac_hi=
11031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11035 # Binary search between lo and hi bounds.
11036 while test "x$ac_lo" != "x$ac_hi"; do
11037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11038 cat >conftest.$ac_ext <<_ACEOF
11039 /* confdefs.h. */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 $ac_includes_default
11045 typedef long long ac__type_sizeof_;
11047 main ()
11049 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11050 test_array [0] = 0
11053 return 0;
11055 _ACEOF
11056 rm -f conftest.$ac_objext
11057 if { (ac_try="$ac_compile"
11058 case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11061 esac
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_compile") 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && {
11070 test -z "$ac_c_werror_flag" ||
11071 test ! -s conftest.err
11072 } && test -s conftest.$ac_objext; then
11073 ac_hi=$ac_mid
11074 else
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 ac_lo=`expr '(' $ac_mid ')' + 1`
11081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11082 done
11083 case $ac_lo in
11084 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11085 '') if test "$ac_cv_type_long_long" = yes; then
11086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11087 See \`config.log' for more details." >&5
11088 echo "$as_me: error: cannot compute sizeof (long long)
11089 See \`config.log' for more details." >&2;}
11090 { (exit 77); exit 77; }; }
11091 else
11092 ac_cv_sizeof_long_long=0
11093 fi ;;
11094 esac
11095 else
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h. */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 $ac_includes_default
11103 typedef long long ac__type_sizeof_;
11104 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11105 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11106 #include <stdio.h>
11107 #include <stdlib.h>
11109 main ()
11112 FILE *f = fopen ("conftest.val", "w");
11113 if (! f)
11114 return 1;
11115 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11117 long int i = longval ();
11118 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11119 return 1;
11120 fprintf (f, "%ld\n", i);
11122 else
11124 unsigned long int i = ulongval ();
11125 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11126 return 1;
11127 fprintf (f, "%lu\n", i);
11129 return ferror (f) || fclose (f) != 0;
11132 return 0;
11134 _ACEOF
11135 rm -f conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140 esac
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_link") 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11149 esac
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_sizeof_long_long=`cat conftest.val`
11156 else
11157 echo "$as_me: program exited with status $ac_status" >&5
11158 echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11161 ( exit $ac_status )
11162 if test "$ac_cv_type_long_long" = yes; then
11163 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11164 See \`config.log' for more details." >&5
11165 echo "$as_me: error: cannot compute sizeof (long long)
11166 See \`config.log' for more details." >&2;}
11167 { (exit 77); exit 77; }; }
11168 else
11169 ac_cv_sizeof_long_long=0
11172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11174 rm -f conftest.val
11176 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11177 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11181 cat >>confdefs.h <<_ACEOF
11182 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11183 _ACEOF
11188 { echo "$as_me:$LINENO: checking for long double support" >&5
11189 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11190 have_long_double=no
11191 cat >conftest.$ac_ext <<_ACEOF
11192 /* confdefs.h. */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11199 main ()
11201 long double x; x = (long double)0.;
11203 return 0;
11205 _ACEOF
11206 rm -f conftest.$ac_objext
11207 if { (ac_try="$ac_compile"
11208 case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11211 esac
11212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213 (eval "$ac_compile") 2>conftest.er1
11214 ac_status=$?
11215 grep -v '^ *+' conftest.er1 >conftest.err
11216 rm -f conftest.er1
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } && {
11220 test -z "$ac_c_werror_flag" ||
11221 test ! -s conftest.err
11222 } && test -s conftest.$ac_objext; then
11225 cat >>confdefs.h <<\_ACEOF
11226 #define HAVE_LONG_DOUBLE 1
11227 _ACEOF
11229 have_long_double=yes
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11240 echo "${ECHO_T}$have_long_double" >&6; }
11241 if test "$have_long_double" = yes ; then
11242 { echo "$as_me:$LINENO: checking for long double" >&5
11243 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11244 if test "${ac_cv_type_long_double+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247 cat >conftest.$ac_ext <<_ACEOF
11248 /* confdefs.h. */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11253 $ac_includes_default
11254 typedef long double ac__type_new_;
11256 main ()
11258 if ((ac__type_new_ *) 0)
11259 return 0;
11260 if (sizeof (ac__type_new_))
11261 return 0;
11263 return 0;
11265 _ACEOF
11266 rm -f conftest.$ac_objext
11267 if { (ac_try="$ac_compile"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271 esac
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_compile") 2>conftest.er1
11274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest.$ac_objext; then
11283 ac_cv_type_long_double=yes
11284 else
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_cv_type_long_double=no
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11294 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11296 # The cast to long int works around a bug in the HP C Compiler
11297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11299 # This bug is HP SR number 8606223364.
11300 { echo "$as_me:$LINENO: checking size of long double" >&5
11301 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11302 if test "${ac_cv_sizeof_long_double+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305 if test "$cross_compiling" = yes; then
11306 # Depending upon the size, compute the lo and hi bounds.
11307 cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h. */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 $ac_includes_default
11314 typedef long double ac__type_sizeof_;
11316 main ()
11318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11319 test_array [0] = 0
11322 return 0;
11324 _ACEOF
11325 rm -f conftest.$ac_objext
11326 if { (ac_try="$ac_compile"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11330 esac
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_compile") 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && {
11339 test -z "$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11341 } && test -s conftest.$ac_objext; then
11342 ac_lo=0 ac_mid=0
11343 while :; do
11344 cat >conftest.$ac_ext <<_ACEOF
11345 /* confdefs.h. */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11350 $ac_includes_default
11351 typedef long double ac__type_sizeof_;
11353 main ()
11355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11356 test_array [0] = 0
11359 return 0;
11361 _ACEOF
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest.$ac_objext; then
11379 ac_hi=$ac_mid; break
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_lo=`expr $ac_mid + 1`
11385 if test $ac_lo -le $ac_mid; then
11386 ac_lo= ac_hi=
11387 break
11389 ac_mid=`expr 2 '*' $ac_mid + 1`
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393 done
11394 else
11395 echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11398 cat >conftest.$ac_ext <<_ACEOF
11399 /* confdefs.h. */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11404 $ac_includes_default
11405 typedef long double ac__type_sizeof_;
11407 main ()
11409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11410 test_array [0] = 0
11413 return 0;
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (ac_try="$ac_compile"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11421 esac
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && {
11430 test -z "$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11432 } && test -s conftest.$ac_objext; then
11433 ac_hi=-1 ac_mid=-1
11434 while :; do
11435 cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h. */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 $ac_includes_default
11442 typedef long double ac__type_sizeof_;
11444 main ()
11446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11447 test_array [0] = 0
11450 return 0;
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (ac_try="$ac_compile"
11455 case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458 esac
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_compile") 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest.$ac_objext; then
11470 ac_lo=$ac_mid; break
11471 else
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_hi=`expr '(' $ac_mid ')' - 1`
11476 if test $ac_mid -le $ac_hi; then
11477 ac_lo= ac_hi=
11478 break
11480 ac_mid=`expr 2 '*' $ac_mid`
11483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11484 done
11485 else
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11489 ac_lo= ac_hi=
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 # Binary search between lo and hi bounds.
11497 while test "x$ac_lo" != "x$ac_hi"; do
11498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h. */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 typedef long double ac__type_sizeof_;
11508 main ()
11510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11511 test_array [0] = 0
11514 return 0;
11516 _ACEOF
11517 rm -f conftest.$ac_objext
11518 if { (ac_try="$ac_compile"
11519 case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522 esac
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_compile") 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } && {
11531 test -z "$ac_c_werror_flag" ||
11532 test ! -s conftest.err
11533 } && test -s conftest.$ac_objext; then
11534 ac_hi=$ac_mid
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 ac_lo=`expr '(' $ac_mid ')' + 1`
11542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11543 done
11544 case $ac_lo in
11545 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11546 '') if test "$ac_cv_type_long_double" = yes; then
11547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11548 See \`config.log' for more details." >&5
11549 echo "$as_me: error: cannot compute sizeof (long double)
11550 See \`config.log' for more details." >&2;}
11551 { (exit 77); exit 77; }; }
11552 else
11553 ac_cv_sizeof_long_double=0
11554 fi ;;
11555 esac
11556 else
11557 cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h. */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11563 $ac_includes_default
11564 typedef long double ac__type_sizeof_;
11565 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11566 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11567 #include <stdio.h>
11568 #include <stdlib.h>
11570 main ()
11573 FILE *f = fopen ("conftest.val", "w");
11574 if (! f)
11575 return 1;
11576 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11578 long int i = longval ();
11579 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11580 return 1;
11581 fprintf (f, "%ld\n", i);
11583 else
11585 unsigned long int i = ulongval ();
11586 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11587 return 1;
11588 fprintf (f, "%lu\n", i);
11590 return ferror (f) || fclose (f) != 0;
11593 return 0;
11595 _ACEOF
11596 rm -f conftest$ac_exeext
11597 if { (ac_try="$ac_link"
11598 case "(($ac_try" in
11599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11601 esac
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_link") 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11607 { (case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11610 esac
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_try") 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_sizeof_long_double=`cat conftest.val`
11617 else
11618 echo "$as_me: program exited with status $ac_status" >&5
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11622 ( exit $ac_status )
11623 if test "$ac_cv_type_long_double" = yes; then
11624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11625 See \`config.log' for more details." >&5
11626 echo "$as_me: error: cannot compute sizeof (long double)
11627 See \`config.log' for more details." >&2;}
11628 { (exit 77); exit 77; }; }
11629 else
11630 ac_cv_sizeof_long_double=0
11633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11635 rm -f conftest.val
11637 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11638 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11642 cat >>confdefs.h <<_ACEOF
11643 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11644 _ACEOF
11649 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11650 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11651 have_c99_bool=no
11652 cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h. */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11660 main ()
11662 _Bool x; x = (_Bool)0;
11664 return 0;
11666 _ACEOF
11667 rm -f conftest.$ac_objext
11668 if { (ac_try="$ac_compile"
11669 case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11672 esac
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_compile") 2>conftest.er1
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } && {
11681 test -z "$ac_c_werror_flag" ||
11682 test ! -s conftest.err
11683 } && test -s conftest.$ac_objext; then
11686 cat >>confdefs.h <<\_ACEOF
11687 #define HAVE_C99_BOOL 1
11688 _ACEOF
11690 have_c99_bool=yes
11692 else
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11700 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11701 echo "${ECHO_T}$have_c99_bool" >&6; }
11702 if test "$have_c99_bool" = yes ; then
11703 { echo "$as_me:$LINENO: checking for _Bool" >&5
11704 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11705 if test "${ac_cv_type__Bool+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 else
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 $ac_includes_default
11715 typedef _Bool ac__type_new_;
11717 main ()
11719 if ((ac__type_new_ *) 0)
11720 return 0;
11721 if (sizeof (ac__type_new_))
11722 return 0;
11724 return 0;
11726 _ACEOF
11727 rm -f conftest.$ac_objext
11728 if { (ac_try="$ac_compile"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_compile") 2>conftest.er1
11735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest.$ac_objext; then
11744 ac_cv_type__Bool=yes
11745 else
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749 ac_cv_type__Bool=no
11752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11755 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11757 # The cast to long int works around a bug in the HP C Compiler
11758 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11759 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11760 # This bug is HP SR number 8606223364.
11761 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11762 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11763 if test "${ac_cv_sizeof__Bool+set}" = set; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 else
11766 if test "$cross_compiling" = yes; then
11767 # Depending upon the size, compute the lo and hi bounds.
11768 cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h. */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 $ac_includes_default
11775 typedef _Bool ac__type_sizeof_;
11777 main ()
11779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11780 test_array [0] = 0
11783 return 0;
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (ac_try="$ac_compile"
11788 case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11794 ac_status=$?
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } && {
11800 test -z "$ac_c_werror_flag" ||
11801 test ! -s conftest.err
11802 } && test -s conftest.$ac_objext; then
11803 ac_lo=0 ac_mid=0
11804 while :; do
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 $ac_includes_default
11812 typedef _Bool ac__type_sizeof_;
11814 main ()
11816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11817 test_array [0] = 0
11820 return 0;
11822 _ACEOF
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_compile") 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } && {
11837 test -z "$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 } && test -s conftest.$ac_objext; then
11840 ac_hi=$ac_mid; break
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 ac_lo=`expr $ac_mid + 1`
11846 if test $ac_lo -le $ac_mid; then
11847 ac_lo= ac_hi=
11848 break
11850 ac_mid=`expr 2 '*' $ac_mid + 1`
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 done
11855 else
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11866 typedef _Bool ac__type_sizeof_;
11868 main ()
11870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11871 test_array [0] = 0
11874 return 0;
11876 _ACEOF
11877 rm -f conftest.$ac_objext
11878 if { (ac_try="$ac_compile"
11879 case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11882 esac
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_compile") 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } && {
11891 test -z "$ac_c_werror_flag" ||
11892 test ! -s conftest.err
11893 } && test -s conftest.$ac_objext; then
11894 ac_hi=-1 ac_mid=-1
11895 while :; do
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 $ac_includes_default
11903 typedef _Bool ac__type_sizeof_;
11905 main ()
11907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11908 test_array [0] = 0
11911 return 0;
11913 _ACEOF
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
11931 ac_lo=$ac_mid; break
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_hi=`expr '(' $ac_mid ')' - 1`
11937 if test $ac_mid -le $ac_hi; then
11938 ac_lo= ac_hi=
11939 break
11941 ac_mid=`expr 2 '*' $ac_mid`
11944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11945 done
11946 else
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 ac_lo= ac_hi=
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 # Binary search between lo and hi bounds.
11958 while test "x$ac_lo" != "x$ac_hi"; do
11959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 $ac_includes_default
11967 typedef _Bool ac__type_sizeof_;
11969 main ()
11971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11972 test_array [0] = 0
11975 return 0;
11977 _ACEOF
11978 rm -f conftest.$ac_objext
11979 if { (ac_try="$ac_compile"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest.$ac_objext; then
11995 ac_hi=$ac_mid
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_lo=`expr '(' $ac_mid ')' + 1`
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 done
12005 case $ac_lo in
12006 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12007 '') if test "$ac_cv_type__Bool" = yes; then
12008 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12009 See \`config.log' for more details." >&5
12010 echo "$as_me: error: cannot compute sizeof (_Bool)
12011 See \`config.log' for more details." >&2;}
12012 { (exit 77); exit 77; }; }
12013 else
12014 ac_cv_sizeof__Bool=0
12015 fi ;;
12016 esac
12017 else
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h. */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12025 typedef _Bool ac__type_sizeof_;
12026 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12027 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12028 #include <stdio.h>
12029 #include <stdlib.h>
12031 main ()
12034 FILE *f = fopen ("conftest.val", "w");
12035 if (! f)
12036 return 1;
12037 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12039 long int i = longval ();
12040 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12041 return 1;
12042 fprintf (f, "%ld\n", i);
12044 else
12046 unsigned long int i = ulongval ();
12047 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12048 return 1;
12049 fprintf (f, "%lu\n", i);
12051 return ferror (f) || fclose (f) != 0;
12054 return 0;
12056 _ACEOF
12057 rm -f conftest$ac_exeext
12058 if { (ac_try="$ac_link"
12059 case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12062 esac
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_link") 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 ac_cv_sizeof__Bool=`cat conftest.val`
12078 else
12079 echo "$as_me: program exited with status $ac_status" >&5
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 ( exit $ac_status )
12084 if test "$ac_cv_type__Bool" = yes; then
12085 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12086 See \`config.log' for more details." >&5
12087 echo "$as_me: error: cannot compute sizeof (_Bool)
12088 See \`config.log' for more details." >&2;}
12089 { (exit 77); exit 77; }; }
12090 else
12091 ac_cv_sizeof__Bool=0
12094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12096 rm -f conftest.val
12098 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12099 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12103 cat >>confdefs.h <<_ACEOF
12104 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12105 _ACEOF
12110 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12111 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12112 if test "${ac_cv_type_uintptr_t+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115 cat >conftest.$ac_ext <<_ACEOF
12116 /* confdefs.h. */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 #ifdef HAVE_STDINT_H
12122 #include <stdint.h>
12123 #endif
12125 typedef uintptr_t ac__type_new_;
12127 main ()
12129 if ((ac__type_new_ *) 0)
12130 return 0;
12131 if (sizeof (ac__type_new_))
12132 return 0;
12134 return 0;
12136 _ACEOF
12137 rm -f conftest.$ac_objext
12138 if { (ac_try="$ac_compile"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_compile") 2>conftest.er1
12145 ac_status=$?
12146 grep -v '^ *+' conftest.er1 >conftest.err
12147 rm -f conftest.er1
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } && {
12151 test -z "$ac_c_werror_flag" ||
12152 test ! -s conftest.err
12153 } && test -s conftest.$ac_objext; then
12154 ac_cv_type_uintptr_t=yes
12155 else
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 ac_cv_type_uintptr_t=no
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12165 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12166 if test $ac_cv_type_uintptr_t = yes; then
12168 cat >>confdefs.h <<_ACEOF
12169 #define HAVE_UINTPTR_T 1
12170 _ACEOF
12172 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12173 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12174 if test "${ac_cv_type_uintptr_t+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 $ac_includes_default
12184 typedef uintptr_t ac__type_new_;
12186 main ()
12188 if ((ac__type_new_ *) 0)
12189 return 0;
12190 if (sizeof (ac__type_new_))
12191 return 0;
12193 return 0;
12195 _ACEOF
12196 rm -f conftest.$ac_objext
12197 if { (ac_try="$ac_compile"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_compile") 2>conftest.er1
12204 ac_status=$?
12205 grep -v '^ *+' conftest.er1 >conftest.err
12206 rm -f conftest.er1
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && {
12210 test -z "$ac_c_werror_flag" ||
12211 test ! -s conftest.err
12212 } && test -s conftest.$ac_objext; then
12213 ac_cv_type_uintptr_t=yes
12214 else
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 ac_cv_type_uintptr_t=no
12221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12224 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12226 # The cast to long int works around a bug in the HP C Compiler
12227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12229 # This bug is HP SR number 8606223364.
12230 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12231 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12232 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235 if test "$cross_compiling" = yes; then
12236 # Depending upon the size, compute the lo and hi bounds.
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 $ac_includes_default
12244 typedef uintptr_t ac__type_sizeof_;
12246 main ()
12248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12249 test_array [0] = 0
12252 return 0;
12254 _ACEOF
12255 rm -f conftest.$ac_objext
12256 if { (ac_try="$ac_compile"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_compile") 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest.$ac_objext; then
12272 ac_lo=0 ac_mid=0
12273 while :; do
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 $ac_includes_default
12281 typedef uintptr_t ac__type_sizeof_;
12283 main ()
12285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12286 test_array [0] = 0
12289 return 0;
12291 _ACEOF
12292 rm -f conftest.$ac_objext
12293 if { (ac_try="$ac_compile"
12294 case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297 esac
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_compile") 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && {
12306 test -z "$ac_c_werror_flag" ||
12307 test ! -s conftest.err
12308 } && test -s conftest.$ac_objext; then
12309 ac_hi=$ac_mid; break
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_lo=`expr $ac_mid + 1`
12315 if test $ac_lo -le $ac_mid; then
12316 ac_lo= ac_hi=
12317 break
12319 ac_mid=`expr 2 '*' $ac_mid + 1`
12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323 done
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h. */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 $ac_includes_default
12335 typedef uintptr_t ac__type_sizeof_;
12337 main ()
12339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12340 test_array [0] = 0
12343 return 0;
12345 _ACEOF
12346 rm -f conftest.$ac_objext
12347 if { (ac_try="$ac_compile"
12348 case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_compile") 2>conftest.er1
12354 ac_status=$?
12355 grep -v '^ *+' conftest.er1 >conftest.err
12356 rm -f conftest.er1
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest.$ac_objext; then
12363 ac_hi=-1 ac_mid=-1
12364 while :; do
12365 cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h. */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 $ac_includes_default
12372 typedef uintptr_t ac__type_sizeof_;
12374 main ()
12376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12377 test_array [0] = 0
12380 return 0;
12382 _ACEOF
12383 rm -f conftest.$ac_objext
12384 if { (ac_try="$ac_compile"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388 esac
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_compile") 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } && {
12397 test -z "$ac_c_werror_flag" ||
12398 test ! -s conftest.err
12399 } && test -s conftest.$ac_objext; then
12400 ac_lo=$ac_mid; break
12401 else
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12405 ac_hi=`expr '(' $ac_mid ')' - 1`
12406 if test $ac_mid -le $ac_hi; then
12407 ac_lo= ac_hi=
12408 break
12410 ac_mid=`expr 2 '*' $ac_mid`
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 done
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_lo= ac_hi=
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426 # Binary search between lo and hi bounds.
12427 while test "x$ac_lo" != "x$ac_hi"; do
12428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12429 cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h. */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12435 $ac_includes_default
12436 typedef uintptr_t ac__type_sizeof_;
12438 main ()
12440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12441 test_array [0] = 0
12444 return 0;
12446 _ACEOF
12447 rm -f conftest.$ac_objext
12448 if { (ac_try="$ac_compile"
12449 case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_compile") 2>conftest.er1
12455 ac_status=$?
12456 grep -v '^ *+' conftest.er1 >conftest.err
12457 rm -f conftest.er1
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && {
12461 test -z "$ac_c_werror_flag" ||
12462 test ! -s conftest.err
12463 } && test -s conftest.$ac_objext; then
12464 ac_hi=$ac_mid
12465 else
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ac_lo=`expr '(' $ac_mid ')' + 1`
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 done
12474 case $ac_lo in
12475 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12476 '') if test "$ac_cv_type_uintptr_t" = yes; then
12477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12478 See \`config.log' for more details." >&5
12479 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12480 See \`config.log' for more details." >&2;}
12481 { (exit 77); exit 77; }; }
12482 else
12483 ac_cv_sizeof_uintptr_t=0
12484 fi ;;
12485 esac
12486 else
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h. */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 $ac_includes_default
12494 typedef uintptr_t ac__type_sizeof_;
12495 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12496 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12497 #include <stdio.h>
12498 #include <stdlib.h>
12500 main ()
12503 FILE *f = fopen ("conftest.val", "w");
12504 if (! f)
12505 return 1;
12506 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12508 long int i = longval ();
12509 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12510 return 1;
12511 fprintf (f, "%ld\n", i);
12513 else
12515 unsigned long int i = ulongval ();
12516 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12517 return 1;
12518 fprintf (f, "%lu\n", i);
12520 return ferror (f) || fclose (f) != 0;
12523 return 0;
12525 _ACEOF
12526 rm -f conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12547 else
12548 echo "$as_me: program exited with status $ac_status" >&5
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ( exit $ac_status )
12553 if test "$ac_cv_type_uintptr_t" = yes; then
12554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12555 See \`config.log' for more details." >&5
12556 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12557 See \`config.log' for more details." >&2;}
12558 { (exit 77); exit 77; }; }
12559 else
12560 ac_cv_sizeof_uintptr_t=0
12563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12565 rm -f conftest.val
12567 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12568 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12572 cat >>confdefs.h <<_ACEOF
12573 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12574 _ACEOF
12581 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12582 { echo "$as_me:$LINENO: checking size of off_t" >&5
12583 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12584 if test "${ac_cv_sizeof_off_t+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587 if test "$cross_compiling" = yes; then
12588 ac_cv_sizeof_off_t=4
12589 else
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h. */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 #include <stdio.h>
12597 #include <sys/types.h>
12598 main()
12600 FILE *f=fopen("conftestval", "w");
12601 if (!f) exit(1);
12602 fprintf(f, "%d\n", sizeof(off_t));
12603 exit(0);
12605 _ACEOF
12606 rm -f conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_link") 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12617 { (case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12620 esac
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_try") 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_cv_sizeof_off_t=`cat conftestval`
12627 else
12628 echo "$as_me: program exited with status $ac_status" >&5
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ( exit $ac_status )
12633 ac_cv_sizeof_off_t=0
12635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12642 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12643 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12645 cat >>confdefs.h <<_ACEOF
12646 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12647 _ACEOF
12650 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12651 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12652 if test "$have_long_long" = yes -a \
12653 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12654 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_LARGEFILE_SUPPORT 1
12658 _ACEOF
12660 { echo "$as_me:$LINENO: result: yes" >&5
12661 echo "${ECHO_T}yes" >&6; }
12662 else
12663 { echo "$as_me:$LINENO: result: no" >&5
12664 echo "${ECHO_T}no" >&6; }
12667 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12668 { echo "$as_me:$LINENO: checking size of time_t" >&5
12669 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12670 if test "${ac_cv_sizeof_time_t+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673 if test "$cross_compiling" = yes; then
12674 ac_cv_sizeof_time_t=4
12675 else
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 #include <stdio.h>
12683 #include <time.h>
12684 main()
12686 FILE *f=fopen("conftestval", "w");
12687 if (!f) exit(1);
12688 fprintf(f, "%d\n", sizeof(time_t));
12689 exit(0);
12691 _ACEOF
12692 rm -f conftest$ac_exeext
12693 if { (ac_try="$ac_link"
12694 case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697 esac
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_link") 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 ac_cv_sizeof_time_t=`cat conftestval`
12713 else
12714 echo "$as_me: program exited with status $ac_status" >&5
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ( exit $ac_status )
12719 ac_cv_sizeof_time_t=0
12721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12728 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12729 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12731 cat >>confdefs.h <<_ACEOF
12732 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12733 _ACEOF
12737 # if have pthread_t then define SIZEOF_PTHREAD_T
12738 ac_save_cc="$CC"
12739 if test "$ac_cv_kpthread" = "yes"
12740 then CC="$CC -Kpthread"
12741 elif test "$ac_cv_kthread" = "yes"
12742 then CC="$CC -Kthread"
12743 elif test "$ac_cv_pthread" = "yes"
12744 then CC="$CC -pthread"
12746 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12747 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12748 have_pthread_t=no
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h. */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12755 #include <pthread.h>
12757 main ()
12759 pthread_t x; x = *(pthread_t*)0;
12761 return 0;
12763 _ACEOF
12764 rm -f conftest.$ac_objext
12765 if { (ac_try="$ac_compile"
12766 case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12769 esac
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_compile") 2>conftest.er1
12772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest.$ac_objext; then
12781 have_pthread_t=yes
12782 else
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12790 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12791 echo "${ECHO_T}$have_pthread_t" >&6; }
12792 if test "$have_pthread_t" = yes ; then
12793 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12794 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12795 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12796 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 else
12799 if test "$cross_compiling" = yes; then
12800 ac_cv_sizeof_pthread_t=4
12801 else
12802 cat >conftest.$ac_ext <<_ACEOF
12803 /* confdefs.h. */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12808 #include <stdio.h>
12809 #include <pthread.h>
12810 main()
12812 FILE *f=fopen("conftestval", "w");
12813 if (!f) exit(1);
12814 fprintf(f, "%d\n", sizeof(pthread_t));
12815 exit(0);
12817 _ACEOF
12818 rm -f conftest$ac_exeext
12819 if { (ac_try="$ac_link"
12820 case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823 esac
12824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825 (eval "$ac_link") 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12829 { (case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_try") 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 ac_cv_sizeof_pthread_t=`cat conftestval`
12839 else
12840 echo "$as_me: program exited with status $ac_status" >&5
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 ( exit $ac_status )
12845 ac_cv_sizeof_pthread_t=0
12847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12854 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12855 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12857 cat >>confdefs.h <<_ACEOF
12858 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12859 _ACEOF
12862 CC="$ac_save_cc"
12864 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12865 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12866 # Check whether --enable-toolbox-glue was given.
12867 if test "${enable_toolbox_glue+set}" = set; then
12868 enableval=$enable_toolbox_glue;
12872 if test -z "$enable_toolbox_glue"
12873 then
12874 case $ac_sys_system/$ac_sys_release in
12875 Darwin/*)
12876 enable_toolbox_glue="yes";;
12878 enable_toolbox_glue="no";;
12879 esac
12881 case "$enable_toolbox_glue" in
12882 yes)
12883 extra_machdep_objs="Python/mactoolboxglue.o"
12884 extra_undefs="-u _PyMac_Error"
12886 cat >>confdefs.h <<\_ACEOF
12887 #define USE_TOOLBOX_OBJECT_GLUE 1
12888 _ACEOF
12892 extra_machdep_objs=""
12893 extra_undefs=""
12895 esac
12896 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12897 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12901 case $ac_sys_system/$ac_sys_release in
12902 Darwin/[01567]\..*)
12903 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12905 Darwin/*)
12906 OTHER_LIBTOOL_OPT=""
12908 esac
12911 case $ac_sys_system/$ac_sys_release in
12912 Darwin/[01567]\..*)
12913 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12914 if test "${enable_universalsdk}"; then
12916 else
12917 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
12919 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12920 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12921 Darwin/*)
12922 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12923 if test ${gcc_version} '<' 4.0
12924 then
12925 LIBTOOL_CRUFT="-lcc_dynamic"
12926 else
12927 LIBTOOL_CRUFT=""
12929 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
12930 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12931 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12932 esac
12934 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12935 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12936 if test "$enable_framework"
12937 then
12938 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12939 # -F. is needed to allow linking to the framework while
12940 # in the build location.
12942 cat >>confdefs.h <<\_ACEOF
12943 #define WITH_NEXT_FRAMEWORK 1
12944 _ACEOF
12946 { echo "$as_me:$LINENO: result: yes" >&5
12947 echo "${ECHO_T}yes" >&6; }
12948 else
12949 { echo "$as_me:$LINENO: result: no" >&5
12950 echo "${ECHO_T}no" >&6; }
12953 { echo "$as_me:$LINENO: checking for dyld" >&5
12954 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12955 case $ac_sys_system/$ac_sys_release in
12956 Darwin/*)
12958 cat >>confdefs.h <<\_ACEOF
12959 #define WITH_DYLD 1
12960 _ACEOF
12962 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12963 echo "${ECHO_T}always on for Darwin" >&6; }
12966 { echo "$as_me:$LINENO: result: no" >&5
12967 echo "${ECHO_T}no" >&6; }
12969 esac
12971 # Set info about shared libraries.
12977 # SO is the extension of shared libraries `(including the dot!)
12978 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12979 { echo "$as_me:$LINENO: checking SO" >&5
12980 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12981 if test -z "$SO"
12982 then
12983 case $ac_sys_system in
12984 hp*|HP*)
12985 case `uname -m` in
12986 ia64) SO=.so;;
12987 *) SO=.sl;;
12988 esac
12990 CYGWIN*) SO=.dll;;
12991 *) SO=.so;;
12992 esac
12993 else
12994 # this might also be a termcap variable, see #610332
12995 echo
12996 echo '====================================================================='
12997 echo '+ +'
12998 echo '+ WARNING: You have set SO in your environment. +'
12999 echo '+ Do you really mean to change the extension for shared libraries? +'
13000 echo '+ Continuing in 10 seconds to let you to ponder. +'
13001 echo '+ +'
13002 echo '====================================================================='
13003 sleep 10
13005 { echo "$as_me:$LINENO: result: $SO" >&5
13006 echo "${ECHO_T}$SO" >&6; }
13008 cat >>confdefs.h <<_ACEOF
13009 #define SHLIB_EXT "$SO"
13010 _ACEOF
13012 # LDSHARED is the ld *command* used to create shared library
13013 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13014 # (Shared libraries in this instance are shared modules to be loaded into
13015 # Python, as opposed to building Python itself as a shared library.)
13016 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13017 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13018 if test -z "$LDSHARED"
13019 then
13020 case $ac_sys_system/$ac_sys_release in
13021 AIX*)
13022 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13023 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13025 BeOS*)
13026 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13027 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13029 IRIX/5*) LDSHARED="ld -shared";;
13030 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13031 SunOS/5*)
13032 if test "$GCC" = "yes"
13033 then LDSHARED='$(CC) -shared'
13034 else LDSHARED='$(CC) -G';
13035 fi ;;
13036 hp*|HP*)
13037 if test "$GCC" = "yes"
13038 then LDSHARED='$(CC) -shared'
13039 else LDSHARED='ld -b';
13040 fi ;;
13041 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13042 Darwin/1.3*)
13043 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13044 if test "$enable_framework" ; then
13045 # Link against the framework. All externals should be defined.
13046 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13047 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13048 else
13049 # No framework. Ignore undefined symbols, assuming they come from Python
13050 LDSHARED="$LDSHARED -undefined suppress"
13051 fi ;;
13052 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13053 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13054 if test "$enable_framework" ; then
13055 # Link against the framework. All externals should be defined.
13056 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13057 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13058 else
13059 # No framework, use the Python app as bundle-loader
13060 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13061 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13062 fi ;;
13063 Darwin/*)
13064 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13065 # This allows an extension to be used in any Python
13067 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13068 then
13069 if test "${enable_universalsdk}"; then
13070 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13072 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13073 BLDSHARED="$LDSHARED"
13074 else
13075 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13076 if test "$enable_framework" ; then
13077 # Link against the framework. All externals should be defined.
13078 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13079 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13080 else
13081 # No framework, use the Python app as bundle-loader
13082 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13083 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13087 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13088 BSD/OS*/4*) LDSHARED="gcc -shared";;
13089 FreeBSD*)
13090 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13091 then
13092 LDSHARED="$CC -shared ${LDFLAGS}"
13093 else
13094 LDSHARED="ld -Bshareable ${LDFLAGS}"
13095 fi;;
13096 OpenBSD*)
13097 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13098 then
13099 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13100 else
13101 case `uname -r` in
13102 [01].* | 2.[0-7] | 2.[0-7].*)
13103 LDSHARED="ld -Bshareable ${LDFLAGS}"
13106 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13108 esac
13109 fi;;
13110 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13111 OpenUNIX*|UnixWare*)
13112 if test "$GCC" = "yes"
13113 then LDSHARED='$(CC) -shared'
13114 else LDSHARED='$(CC) -G'
13115 fi;;
13116 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13117 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13118 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13119 atheos*) LDSHARED="gcc -shared";;
13120 *) LDSHARED="ld";;
13121 esac
13123 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13124 echo "${ECHO_T}$LDSHARED" >&6; }
13125 BLDSHARED=${BLDSHARED-$LDSHARED}
13126 # CCSHARED are the C *flags* used to create objects to go into a shared
13127 # library (module) -- this is only needed for a few systems
13128 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13129 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13130 if test -z "$CCSHARED"
13131 then
13132 case $ac_sys_system/$ac_sys_release in
13133 SunOS*) if test "$GCC" = yes;
13134 then CCSHARED="-fPIC";
13135 elif test `uname -p` = sparc;
13136 then CCSHARED="-xcode=pic32";
13137 else CCSHARED="-Kpic";
13138 fi;;
13139 hp*|HP*) if test "$GCC" = yes;
13140 then CCSHARED="-fPIC";
13141 else CCSHARED="+z";
13142 fi;;
13143 Linux*|GNU*) CCSHARED="-fPIC";;
13144 BSD/OS*/4*) CCSHARED="-fpic";;
13145 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13146 OpenUNIX*|UnixWare*)
13147 if test "$GCC" = "yes"
13148 then CCSHARED="-fPIC"
13149 else CCSHARED="-KPIC"
13150 fi;;
13151 SCO_SV*)
13152 if test "$GCC" = "yes"
13153 then CCSHARED="-fPIC"
13154 else CCSHARED="-Kpic -belf"
13155 fi;;
13156 Monterey*) CCSHARED="-G";;
13157 IRIX*/6*) case $CC in
13158 *gcc*) CCSHARED="-shared";;
13159 *) CCSHARED="";;
13160 esac;;
13161 atheos*) CCSHARED="-fPIC";;
13162 esac
13164 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13165 echo "${ECHO_T}$CCSHARED" >&6; }
13166 # LINKFORSHARED are the flags passed to the $(CC) command that links
13167 # the python executable -- this is only needed for a few systems
13168 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13169 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13170 if test -z "$LINKFORSHARED"
13171 then
13172 case $ac_sys_system/$ac_sys_release in
13173 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13174 hp*|HP*)
13175 LINKFORSHARED="-Wl,-E -Wl,+s";;
13176 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13177 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13178 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13179 # -u libsys_s pulls in all symbols in libsys
13180 Darwin/*)
13181 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13182 # which is
13183 # not used by the core itself but which needs to be in the core so
13184 # that dynamically loaded extension modules have access to it.
13185 # -prebind is no longer used, because it actually seems to give a
13186 # slowdown in stead of a speedup, maybe due to the large number of
13187 # dynamic loads Python does.
13189 LINKFORSHARED="$extra_undefs"
13190 if test "$enable_framework"
13191 then
13192 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13194 LINKFORSHARED="$LINKFORSHARED";;
13195 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13196 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13197 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13198 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13199 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13200 then
13201 LINKFORSHARED="-Wl,--export-dynamic"
13202 fi;;
13203 SunOS/5*) case $CC in
13204 *gcc*)
13205 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13206 then
13207 LINKFORSHARED="-Xlinker --export-dynamic"
13208 fi;;
13209 esac;;
13210 CYGWIN*)
13211 if test $enable_shared = "no"
13212 then
13213 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13214 fi;;
13215 QNX*)
13216 # -Wl,-E causes the symbols to be added to the dynamic
13217 # symbol table so that they can be found when a module
13218 # is loaded. -N 2048K causes the stack size to be set
13219 # to 2048 kilobytes so that the stack doesn't overflow
13220 # when running test_compile.py.
13221 LINKFORSHARED='-Wl,-E -N 2048K';;
13222 esac
13224 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13225 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13229 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13230 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13231 if test ! "$LIBRARY" = "$LDLIBRARY"
13232 then
13233 case $ac_sys_system in
13234 CYGWIN*)
13235 # Cygwin needs CCSHARED when building extension DLLs
13236 # but not when building the interpreter DLL.
13237 CFLAGSFORSHARED='';;
13239 CFLAGSFORSHARED='$(CCSHARED)'
13240 esac
13242 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13243 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13245 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13246 # library (with --enable-shared).
13247 # For platforms on which shared libraries are not allowed to have unresolved
13248 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13249 # if it is not required, since it creates a dependency of the shared library
13250 # to LIBS. This, in turn, means that applications linking the shared libpython
13251 # don't need to link LIBS explicitly. The default should be only changed
13252 # on systems where this approach causes problems.
13254 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13255 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13256 case "$ac_sys_system" in
13258 SHLIBS='$(LIBS)';;
13259 esac
13260 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13261 echo "${ECHO_T}$SHLIBS" >&6; }
13264 # checks for libraries
13266 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13267 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13268 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271 ac_check_lib_save_LIBS=$LIBS
13272 LIBS="-ldl $LIBS"
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char dlopen ();
13288 main ()
13290 return dlopen ();
13292 return 0;
13294 _ACEOF
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (ac_try="$ac_link"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300 esac
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_link") 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } && {
13309 test -z "$ac_c_werror_flag" ||
13310 test ! -s conftest.err
13311 } && test -s conftest$ac_exeext &&
13312 $as_test_x conftest$ac_exeext; then
13313 ac_cv_lib_dl_dlopen=yes
13314 else
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 ac_cv_lib_dl_dlopen=no
13321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13322 conftest$ac_exeext conftest.$ac_ext
13323 LIBS=$ac_check_lib_save_LIBS
13325 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13326 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13327 if test $ac_cv_lib_dl_dlopen = yes; then
13328 cat >>confdefs.h <<_ACEOF
13329 #define HAVE_LIBDL 1
13330 _ACEOF
13332 LIBS="-ldl $LIBS"
13335 # Dynamic linking for SunOS/Solaris and SYSV
13337 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13338 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13339 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342 ac_check_lib_save_LIBS=$LIBS
13343 LIBS="-ldld $LIBS"
13344 cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h. */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13354 #ifdef __cplusplus
13355 extern "C"
13356 #endif
13357 char shl_load ();
13359 main ()
13361 return shl_load ();
13363 return 0;
13365 _ACEOF
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } && {
13380 test -z "$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13382 } && test -s conftest$ac_exeext &&
13383 $as_test_x conftest$ac_exeext; then
13384 ac_cv_lib_dld_shl_load=yes
13385 else
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13389 ac_cv_lib_dld_shl_load=no
13392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13393 conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13397 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13398 if test $ac_cv_lib_dld_shl_load = yes; then
13399 cat >>confdefs.h <<_ACEOF
13400 #define HAVE_LIBDLD 1
13401 _ACEOF
13403 LIBS="-ldld $LIBS"
13406 # Dynamic linking for HP-UX
13408 # only check for sem_ini if thread support is requested
13409 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13410 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13411 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13412 if test "${ac_cv_search_sem_init+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415 ac_func_search_save_LIBS=$LIBS
13416 cat >conftest.$ac_ext <<_ACEOF
13417 /* confdefs.h. */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13423 /* Override any GCC internal prototype to avoid an error.
13424 Use char because int might match the return type of a GCC
13425 builtin and then its argument prototype would still apply. */
13426 #ifdef __cplusplus
13427 extern "C"
13428 #endif
13429 char sem_init ();
13431 main ()
13433 return sem_init ();
13435 return 0;
13437 _ACEOF
13438 for ac_lib in '' pthread rt posix4; do
13439 if test -z "$ac_lib"; then
13440 ac_res="none required"
13441 else
13442 ac_res=-l$ac_lib
13443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13445 rm -f conftest.$ac_objext conftest$ac_exeext
13446 if { (ac_try="$ac_link"
13447 case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_link") 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest$ac_exeext &&
13462 $as_test_x conftest$ac_exeext; then
13463 ac_cv_search_sem_init=$ac_res
13464 else
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13472 conftest$ac_exeext
13473 if test "${ac_cv_search_sem_init+set}" = set; then
13474 break
13476 done
13477 if test "${ac_cv_search_sem_init+set}" = set; then
13479 else
13480 ac_cv_search_sem_init=no
13482 rm conftest.$ac_ext
13483 LIBS=$ac_func_search_save_LIBS
13485 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13486 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13487 ac_res=$ac_cv_search_sem_init
13488 if test "$ac_res" != no; then
13489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13492 # 'Real Time' functions on Solaris
13493 # posix4 on Solaris 2.6
13494 # pthread (first!) on Linux
13497 # check if we need libintl for locale functions
13498 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13499 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13500 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503 ac_check_lib_save_LIBS=$LIBS
13504 LIBS="-lintl $LIBS"
13505 cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h. */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13512 /* Override any GCC internal prototype to avoid an error.
13513 Use char because int might match the return type of a GCC
13514 builtin and then its argument prototype would still apply. */
13515 #ifdef __cplusplus
13516 extern "C"
13517 #endif
13518 char textdomain ();
13520 main ()
13522 return textdomain ();
13524 return 0;
13526 _ACEOF
13527 rm -f conftest.$ac_objext conftest$ac_exeext
13528 if { (ac_try="$ac_link"
13529 case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_link") 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } && {
13541 test -z "$ac_c_werror_flag" ||
13542 test ! -s conftest.err
13543 } && test -s conftest$ac_exeext &&
13544 $as_test_x conftest$ac_exeext; then
13545 ac_cv_lib_intl_textdomain=yes
13546 else
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13550 ac_cv_lib_intl_textdomain=no
13553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13554 conftest$ac_exeext conftest.$ac_ext
13555 LIBS=$ac_check_lib_save_LIBS
13557 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13558 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13559 if test $ac_cv_lib_intl_textdomain = yes; then
13561 cat >>confdefs.h <<\_ACEOF
13562 #define WITH_LIBINTL 1
13563 _ACEOF
13568 # checks for system dependent C++ extensions support
13569 case "$ac_sys_system" in
13570 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13571 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h. */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 #include "/usr/lpp/xlC/include/load.h"
13580 main ()
13582 loadAndInit("", 0, "")
13584 return 0;
13586 _ACEOF
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (ac_try="$ac_link"
13589 case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592 esac
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_link") 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } && {
13601 test -z "$ac_c_werror_flag" ||
13602 test ! -s conftest.err
13603 } && test -s conftest$ac_exeext &&
13604 $as_test_x conftest$ac_exeext; then
13606 cat >>confdefs.h <<\_ACEOF
13607 #define AIX_GENUINE_CPLUSPLUS 1
13608 _ACEOF
13610 { echo "$as_me:$LINENO: result: yes" >&5
13611 echo "${ECHO_T}yes" >&6; }
13612 else
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13616 { echo "$as_me:$LINENO: result: no" >&5
13617 echo "${ECHO_T}no" >&6; }
13620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13621 conftest$ac_exeext conftest.$ac_ext;;
13622 *) ;;
13623 esac
13625 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13626 # BeOS' sockets are stashed in libnet.
13627 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13628 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13629 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 else
13632 ac_check_lib_save_LIBS=$LIBS
13633 LIBS="-lnsl $LIBS"
13634 cat >conftest.$ac_ext <<_ACEOF
13635 /* confdefs.h. */
13636 _ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13641 /* Override any GCC internal prototype to avoid an error.
13642 Use char because int might match the return type of a GCC
13643 builtin and then its argument prototype would still apply. */
13644 #ifdef __cplusplus
13645 extern "C"
13646 #endif
13647 char t_open ();
13649 main ()
13651 return t_open ();
13653 return 0;
13655 _ACEOF
13656 rm -f conftest.$ac_objext conftest$ac_exeext
13657 if { (ac_try="$ac_link"
13658 case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13661 esac
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_link") 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } && {
13670 test -z "$ac_c_werror_flag" ||
13671 test ! -s conftest.err
13672 } && test -s conftest$ac_exeext &&
13673 $as_test_x conftest$ac_exeext; then
13674 ac_cv_lib_nsl_t_open=yes
13675 else
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_cv_lib_nsl_t_open=no
13682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13683 conftest$ac_exeext conftest.$ac_ext
13684 LIBS=$ac_check_lib_save_LIBS
13686 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13687 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13688 if test $ac_cv_lib_nsl_t_open = yes; then
13689 LIBS="-lnsl $LIBS"
13691 # SVR4
13692 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13693 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13694 if test "${ac_cv_lib_socket_socket+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13697 ac_check_lib_save_LIBS=$LIBS
13698 LIBS="-lsocket $LIBS $LIBS"
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h. */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13706 /* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
13709 #ifdef __cplusplus
13710 extern "C"
13711 #endif
13712 char socket ();
13714 main ()
13716 return socket ();
13718 return 0;
13720 _ACEOF
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (ac_try="$ac_link"
13723 case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13726 esac
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_link") 2>conftest.er1
13729 ac_status=$?
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && {
13735 test -z "$ac_c_werror_flag" ||
13736 test ! -s conftest.err
13737 } && test -s conftest$ac_exeext &&
13738 $as_test_x conftest$ac_exeext; then
13739 ac_cv_lib_socket_socket=yes
13740 else
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13744 ac_cv_lib_socket_socket=no
13747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13748 conftest$ac_exeext conftest.$ac_ext
13749 LIBS=$ac_check_lib_save_LIBS
13751 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13752 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13753 if test $ac_cv_lib_socket_socket = yes; then
13754 LIBS="-lsocket $LIBS"
13756 # SVR4 sockets
13758 case "$ac_sys_system" in
13759 BeOS*)
13760 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13761 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13762 if test "${ac_cv_lib_net_socket+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765 ac_check_lib_save_LIBS=$LIBS
13766 LIBS="-lnet $LIBS $LIBS"
13767 cat >conftest.$ac_ext <<_ACEOF
13768 /* confdefs.h. */
13769 _ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13777 #ifdef __cplusplus
13778 extern "C"
13779 #endif
13780 char socket ();
13782 main ()
13784 return socket ();
13786 return 0;
13788 _ACEOF
13789 rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (ac_try="$ac_link"
13791 case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794 esac
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_link") 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && {
13803 test -z "$ac_c_werror_flag" ||
13804 test ! -s conftest.err
13805 } && test -s conftest$ac_exeext &&
13806 $as_test_x conftest$ac_exeext; then
13807 ac_cv_lib_net_socket=yes
13808 else
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13812 ac_cv_lib_net_socket=no
13815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13816 conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13819 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13820 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13821 if test $ac_cv_lib_net_socket = yes; then
13822 LIBS="-lnet $LIBS"
13824 # BeOS
13826 esac
13828 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13829 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13831 # Check whether --with-libs was given.
13832 if test "${with_libs+set}" = set; then
13833 withval=$with_libs;
13834 { echo "$as_me:$LINENO: result: $withval" >&5
13835 echo "${ECHO_T}$withval" >&6; }
13836 LIBS="$withval $LIBS"
13838 else
13839 { echo "$as_me:$LINENO: result: no" >&5
13840 echo "${ECHO_T}no" >&6; }
13844 # Check for use of the system libffi library
13845 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13846 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13848 # Check whether --with-system_ffi was given.
13849 if test "${with_system_ffi+set}" = set; then
13850 withval=$with_system_ffi;
13854 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13855 echo "${ECHO_T}$with_system_ffi" >&6; }
13857 # Determine if signalmodule should be used.
13860 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13861 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13863 # Check whether --with-signal-module was given.
13864 if test "${with_signal_module+set}" = set; then
13865 withval=$with_signal_module;
13869 if test -z "$with_signal_module"
13870 then with_signal_module="yes"
13872 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13873 echo "${ECHO_T}$with_signal_module" >&6; }
13875 if test "${with_signal_module}" = "yes"; then
13876 USE_SIGNAL_MODULE=""
13877 SIGNAL_OBJS=""
13878 else
13879 USE_SIGNAL_MODULE="#"
13880 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13883 # This is used to generate Setup.config
13885 USE_THREAD_MODULE=""
13887 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13888 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13891 # Check whether --with-dec-threads was given.
13892 if test "${with_dec_threads+set}" = set; then
13893 withval=$with_dec_threads;
13894 { echo "$as_me:$LINENO: result: $withval" >&5
13895 echo "${ECHO_T}$withval" >&6; }
13896 LDLAST=-threads
13897 if test "${with_thread+set}" != set; then
13898 with_thread="$withval";
13900 else
13901 { echo "$as_me:$LINENO: result: no" >&5
13902 echo "${ECHO_T}no" >&6; }
13906 # Templates for things AC_DEFINEd more than once.
13907 # For a single AC_DEFINE, no template is needed.
13915 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13916 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13918 # Check whether --with-threads was given.
13919 if test "${with_threads+set}" = set; then
13920 withval=$with_threads;
13924 # --with-thread is deprecated, but check for it anyway
13926 # Check whether --with-thread was given.
13927 if test "${with_thread+set}" = set; then
13928 withval=$with_thread; with_threads=$with_thread
13932 if test -z "$with_threads"
13933 then with_threads="yes"
13935 { echo "$as_me:$LINENO: result: $with_threads" >&5
13936 echo "${ECHO_T}$with_threads" >&6; }
13939 if test "$with_threads" = "no"
13940 then
13941 USE_THREAD_MODULE="#"
13942 elif test "$ac_cv_pthread_is_default" = yes
13943 then
13944 cat >>confdefs.h <<\_ACEOF
13945 #define WITH_THREAD 1
13946 _ACEOF
13948 # Defining _REENTRANT on system with POSIX threads should not hurt.
13949 cat >>confdefs.h <<\_ACEOF
13950 #define _REENTRANT 1
13951 _ACEOF
13953 posix_threads=yes
13954 THREADOBJ="Python/thread.o"
13955 elif test "$ac_cv_kpthread" = "yes"
13956 then
13957 CC="$CC -Kpthread"
13958 if test "$ac_cv_cxx_thread" = "yes"; then
13959 CXX="$CXX -Kpthread"
13961 cat >>confdefs.h <<\_ACEOF
13962 #define WITH_THREAD 1
13963 _ACEOF
13965 posix_threads=yes
13966 THREADOBJ="Python/thread.o"
13967 elif test "$ac_cv_kthread" = "yes"
13968 then
13969 CC="$CC -Kthread"
13970 if test "$ac_cv_cxx_thread" = "yes"; then
13971 CXX="$CXX -Kthread"
13973 cat >>confdefs.h <<\_ACEOF
13974 #define WITH_THREAD 1
13975 _ACEOF
13977 posix_threads=yes
13978 THREADOBJ="Python/thread.o"
13979 elif test "$ac_cv_pthread" = "yes"
13980 then
13981 CC="$CC -pthread"
13982 if test "$ac_cv_cxx_thread" = "yes"; then
13983 CXX="$CXX -pthread"
13985 cat >>confdefs.h <<\_ACEOF
13986 #define WITH_THREAD 1
13987 _ACEOF
13989 posix_threads=yes
13990 THREADOBJ="Python/thread.o"
13991 else
13992 if test ! -z "$with_threads" -a -d "$with_threads"
13993 then LDFLAGS="$LDFLAGS -L$with_threads"
13995 if test ! -z "$withval" -a -d "$withval"
13996 then LDFLAGS="$LDFLAGS -L$withval"
13999 # According to the POSIX spec, a pthreads implementation must
14000 # define _POSIX_THREADS in unistd.h. Some apparently don't
14001 # (e.g. gnu pth with pthread emulation)
14002 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14003 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14011 #include <unistd.h>
14012 #ifdef _POSIX_THREADS
14014 #endif
14016 _ACEOF
14017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14018 $EGREP "yes" >/dev/null 2>&1; then
14019 unistd_defines_pthreads=yes
14020 else
14021 unistd_defines_pthreads=no
14023 rm -f conftest*
14025 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14026 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14028 cat >>confdefs.h <<\_ACEOF
14029 #define _REENTRANT 1
14030 _ACEOF
14032 if test "${ac_cv_header_cthreads_h+set}" = set; then
14033 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14034 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14035 if test "${ac_cv_header_cthreads_h+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14039 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14040 else
14041 # Is the header compilable?
14042 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14043 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14044 cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h. */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 $ac_includes_default
14051 #include <cthreads.h>
14052 _ACEOF
14053 rm -f conftest.$ac_objext
14054 if { (ac_try="$ac_compile"
14055 case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14058 esac
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_compile") 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && {
14067 test -z "$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14069 } && test -s conftest.$ac_objext; then
14070 ac_header_compiler=yes
14071 else
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14075 ac_header_compiler=no
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14080 echo "${ECHO_T}$ac_header_compiler" >&6; }
14082 # Is the header present?
14083 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14084 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14085 cat >conftest.$ac_ext <<_ACEOF
14086 /* confdefs.h. */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14091 #include <cthreads.h>
14092 _ACEOF
14093 if { (ac_try="$ac_cpp conftest.$ac_ext"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } >/dev/null && {
14106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14107 test ! -s conftest.err
14108 }; then
14109 ac_header_preproc=yes
14110 else
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_header_preproc=no
14117 rm -f conftest.err conftest.$ac_ext
14118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14119 echo "${ECHO_T}$ac_header_preproc" >&6; }
14121 # So? What about this header?
14122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14123 yes:no: )
14124 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14125 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14127 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14128 ac_header_preproc=yes
14130 no:yes:* )
14131 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14132 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14134 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14136 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14138 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14140 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14141 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14142 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14143 ( cat <<\_ASBOX
14144 ## ------------------------------------------------ ##
14145 ## Report this to http://www.python.org/python-bugs ##
14146 ## ------------------------------------------------ ##
14147 _ASBOX
14148 ) | sed "s/^/$as_me: WARNING: /" >&2
14150 esac
14151 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14152 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14153 if test "${ac_cv_header_cthreads_h+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156 ac_cv_header_cthreads_h=$ac_header_preproc
14158 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14159 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14162 if test $ac_cv_header_cthreads_h = yes; then
14163 cat >>confdefs.h <<\_ACEOF
14164 #define WITH_THREAD 1
14165 _ACEOF
14167 cat >>confdefs.h <<\_ACEOF
14168 #define C_THREADS 1
14169 _ACEOF
14172 cat >>confdefs.h <<\_ACEOF
14173 #define HURD_C_THREADS 1
14174 _ACEOF
14176 LIBS="$LIBS -lthreads"
14177 THREADOBJ="Python/thread.o"
14178 else
14180 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14181 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14182 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14183 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14187 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14188 else
14189 # Is the header compilable?
14190 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14191 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14192 cat >conftest.$ac_ext <<_ACEOF
14193 /* confdefs.h. */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 $ac_includes_default
14199 #include <mach/cthreads.h>
14200 _ACEOF
14201 rm -f conftest.$ac_objext
14202 if { (ac_try="$ac_compile"
14203 case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14206 esac
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_compile") 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } && {
14215 test -z "$ac_c_werror_flag" ||
14216 test ! -s conftest.err
14217 } && test -s conftest.$ac_objext; then
14218 ac_header_compiler=yes
14219 else
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 ac_header_compiler=no
14226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14228 echo "${ECHO_T}$ac_header_compiler" >&6; }
14230 # Is the header present?
14231 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14232 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 #include <mach/cthreads.h>
14240 _ACEOF
14241 if { (ac_try="$ac_cpp conftest.$ac_ext"
14242 case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245 esac
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14248 ac_status=$?
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } >/dev/null && {
14254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14256 }; then
14257 ac_header_preproc=yes
14258 else
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 ac_header_preproc=no
14265 rm -f conftest.err conftest.$ac_ext
14266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14267 echo "${ECHO_T}$ac_header_preproc" >&6; }
14269 # So? What about this header?
14270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14271 yes:no: )
14272 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14273 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14274 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14275 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14276 ac_header_preproc=yes
14278 no:yes:* )
14279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14280 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14282 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14284 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14286 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14287 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14288 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14290 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14291 ( cat <<\_ASBOX
14292 ## ------------------------------------------------ ##
14293 ## Report this to http://www.python.org/python-bugs ##
14294 ## ------------------------------------------------ ##
14295 _ASBOX
14296 ) | sed "s/^/$as_me: WARNING: /" >&2
14298 esac
14299 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14300 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14301 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 else
14304 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14306 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14307 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14310 if test $ac_cv_header_mach_cthreads_h = yes; then
14311 cat >>confdefs.h <<\_ACEOF
14312 #define WITH_THREAD 1
14313 _ACEOF
14315 cat >>confdefs.h <<\_ACEOF
14316 #define C_THREADS 1
14317 _ACEOF
14320 cat >>confdefs.h <<\_ACEOF
14321 #define MACH_C_THREADS 1
14322 _ACEOF
14324 THREADOBJ="Python/thread.o"
14325 else
14327 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14328 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14330 # Check whether --with-pth was given.
14331 if test "${with_pth+set}" = set; then
14332 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14333 echo "${ECHO_T}$withval" >&6; }
14334 cat >>confdefs.h <<\_ACEOF
14335 #define WITH_THREAD 1
14336 _ACEOF
14339 cat >>confdefs.h <<\_ACEOF
14340 #define HAVE_PTH 1
14341 _ACEOF
14343 LIBS="-lpth $LIBS"
14344 THREADOBJ="Python/thread.o"
14345 else
14346 { echo "$as_me:$LINENO: result: no" >&5
14347 echo "${ECHO_T}no" >&6; }
14349 # Just looking for pthread_create in libpthread is not enough:
14350 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14351 # So we really have to include pthread.h, and then link.
14352 _libs=$LIBS
14353 LIBS="$LIBS -lpthread"
14354 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14355 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h. */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362 #include <pthread.h>
14364 void * start_routine (void *arg) { exit (0); }
14366 main ()
14369 pthread_create (NULL, NULL, start_routine, NULL)
14371 return 0;
14373 _ACEOF
14374 rm -f conftest.$ac_objext conftest$ac_exeext
14375 if { (ac_try="$ac_link"
14376 case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_link") 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest$ac_exeext &&
14391 $as_test_x conftest$ac_exeext; then
14393 { echo "$as_me:$LINENO: result: yes" >&5
14394 echo "${ECHO_T}yes" >&6; }
14395 cat >>confdefs.h <<\_ACEOF
14396 #define WITH_THREAD 1
14397 _ACEOF
14399 posix_threads=yes
14400 THREADOBJ="Python/thread.o"
14401 else
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14406 LIBS=$_libs
14407 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14408 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14409 if test "${ac_cv_func_pthread_detach+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412 cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h. */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14420 #define pthread_detach innocuous_pthread_detach
14422 /* System header to define __stub macros and hopefully few prototypes,
14423 which can conflict with char pthread_detach (); below.
14424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14425 <limits.h> exists even on freestanding compilers. */
14427 #ifdef __STDC__
14428 # include <limits.h>
14429 #else
14430 # include <assert.h>
14431 #endif
14433 #undef pthread_detach
14435 /* Override any GCC internal prototype to avoid an error.
14436 Use char because int might match the return type of a GCC
14437 builtin and then its argument prototype would still apply. */
14438 #ifdef __cplusplus
14439 extern "C"
14440 #endif
14441 char pthread_detach ();
14442 /* The GNU C library defines this for functions which it implements
14443 to always fail with ENOSYS. Some functions are actually named
14444 something starting with __ and the normal name is an alias. */
14445 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14446 choke me
14447 #endif
14450 main ()
14452 return pthread_detach ();
14454 return 0;
14456 _ACEOF
14457 rm -f conftest.$ac_objext conftest$ac_exeext
14458 if { (ac_try="$ac_link"
14459 case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462 esac
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_link") 2>conftest.er1
14465 ac_status=$?
14466 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && {
14471 test -z "$ac_c_werror_flag" ||
14472 test ! -s conftest.err
14473 } && test -s conftest$ac_exeext &&
14474 $as_test_x conftest$ac_exeext; then
14475 ac_cv_func_pthread_detach=yes
14476 else
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14480 ac_cv_func_pthread_detach=no
14483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14484 conftest$ac_exeext conftest.$ac_ext
14486 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14487 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14488 if test $ac_cv_func_pthread_detach = yes; then
14489 cat >>confdefs.h <<\_ACEOF
14490 #define WITH_THREAD 1
14491 _ACEOF
14493 posix_threads=yes
14494 THREADOBJ="Python/thread.o"
14495 else
14497 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14498 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14499 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14500 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14504 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14505 else
14506 # Is the header compilable?
14507 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14508 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14509 cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h. */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14515 $ac_includes_default
14516 #include <atheos/threads.h>
14517 _ACEOF
14518 rm -f conftest.$ac_objext
14519 if { (ac_try="$ac_compile"
14520 case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_compile") 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } && {
14532 test -z "$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14534 } && test -s conftest.$ac_objext; then
14535 ac_header_compiler=yes
14536 else
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_header_compiler=no
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14545 echo "${ECHO_T}$ac_header_compiler" >&6; }
14547 # Is the header present?
14548 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14549 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h. */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 #include <atheos/threads.h>
14557 _ACEOF
14558 if { (ac_try="$ac_cpp conftest.$ac_ext"
14559 case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14565 ac_status=$?
14566 grep -v '^ *+' conftest.er1 >conftest.err
14567 rm -f conftest.er1
14568 cat conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } >/dev/null && {
14571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14572 test ! -s conftest.err
14573 }; then
14574 ac_header_preproc=yes
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 ac_header_preproc=no
14582 rm -f conftest.err conftest.$ac_ext
14583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14584 echo "${ECHO_T}$ac_header_preproc" >&6; }
14586 # So? What about this header?
14587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14588 yes:no: )
14589 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14590 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14591 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14592 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14593 ac_header_preproc=yes
14595 no:yes:* )
14596 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14597 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14599 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14601 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14603 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14605 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14607 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14608 ( cat <<\_ASBOX
14609 ## ------------------------------------------------ ##
14610 ## Report this to http://www.python.org/python-bugs ##
14611 ## ------------------------------------------------ ##
14612 _ASBOX
14613 ) | sed "s/^/$as_me: WARNING: /" >&2
14615 esac
14616 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14617 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14618 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621 ac_cv_header_atheos_threads_h=$ac_header_preproc
14623 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14624 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14627 if test $ac_cv_header_atheos_threads_h = yes; then
14628 cat >>confdefs.h <<\_ACEOF
14629 #define WITH_THREAD 1
14630 _ACEOF
14633 cat >>confdefs.h <<\_ACEOF
14634 #define ATHEOS_THREADS 1
14635 _ACEOF
14637 THREADOBJ="Python/thread.o"
14638 else
14640 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14641 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14642 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14643 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14647 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14648 else
14649 # Is the header compilable?
14650 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14651 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14652 cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h. */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14658 $ac_includes_default
14659 #include <kernel/OS.h>
14660 _ACEOF
14661 rm -f conftest.$ac_objext
14662 if { (ac_try="$ac_compile"
14663 case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14666 esac
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668 (eval "$ac_compile") 2>conftest.er1
14669 ac_status=$?
14670 grep -v '^ *+' conftest.er1 >conftest.err
14671 rm -f conftest.er1
14672 cat conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } && {
14675 test -z "$ac_c_werror_flag" ||
14676 test ! -s conftest.err
14677 } && test -s conftest.$ac_objext; then
14678 ac_header_compiler=yes
14679 else
14680 echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 ac_header_compiler=no
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14688 echo "${ECHO_T}$ac_header_compiler" >&6; }
14690 # Is the header present?
14691 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14692 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14693 cat >conftest.$ac_ext <<_ACEOF
14694 /* confdefs.h. */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 #include <kernel/OS.h>
14700 _ACEOF
14701 if { (ac_try="$ac_cpp conftest.$ac_ext"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } >/dev/null && {
14714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 }; then
14717 ac_header_preproc=yes
14718 else
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 ac_header_preproc=no
14725 rm -f conftest.err conftest.$ac_ext
14726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14727 echo "${ECHO_T}$ac_header_preproc" >&6; }
14729 # So? What about this header?
14730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14731 yes:no: )
14732 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14733 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14735 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14736 ac_header_preproc=yes
14738 no:yes:* )
14739 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14740 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14742 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14744 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14746 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14748 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14750 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14751 ( cat <<\_ASBOX
14752 ## ------------------------------------------------ ##
14753 ## Report this to http://www.python.org/python-bugs ##
14754 ## ------------------------------------------------ ##
14755 _ASBOX
14756 ) | sed "s/^/$as_me: WARNING: /" >&2
14758 esac
14759 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14760 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14761 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 else
14764 ac_cv_header_kernel_OS_h=$ac_header_preproc
14766 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14767 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14770 if test $ac_cv_header_kernel_OS_h = yes; then
14771 cat >>confdefs.h <<\_ACEOF
14772 #define WITH_THREAD 1
14773 _ACEOF
14776 cat >>confdefs.h <<\_ACEOF
14777 #define BEOS_THREADS 1
14778 _ACEOF
14780 THREADOBJ="Python/thread.o"
14781 else
14783 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14784 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14785 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788 ac_check_lib_save_LIBS=$LIBS
14789 LIBS="-lpthreads $LIBS"
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h. */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14797 /* Override any GCC internal prototype to avoid an error.
14798 Use char because int might match the return type of a GCC
14799 builtin and then its argument prototype would still apply. */
14800 #ifdef __cplusplus
14801 extern "C"
14802 #endif
14803 char pthread_create ();
14805 main ()
14807 return pthread_create ();
14809 return 0;
14811 _ACEOF
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (ac_try="$ac_link"
14814 case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_link") 2>conftest.er1
14820 ac_status=$?
14821 grep -v '^ *+' conftest.er1 >conftest.err
14822 rm -f conftest.er1
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && {
14826 test -z "$ac_c_werror_flag" ||
14827 test ! -s conftest.err
14828 } && test -s conftest$ac_exeext &&
14829 $as_test_x conftest$ac_exeext; then
14830 ac_cv_lib_pthreads_pthread_create=yes
14831 else
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 ac_cv_lib_pthreads_pthread_create=no
14838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14839 conftest$ac_exeext conftest.$ac_ext
14840 LIBS=$ac_check_lib_save_LIBS
14842 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14843 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14844 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14845 cat >>confdefs.h <<\_ACEOF
14846 #define WITH_THREAD 1
14847 _ACEOF
14849 posix_threads=yes
14850 LIBS="$LIBS -lpthreads"
14851 THREADOBJ="Python/thread.o"
14852 else
14854 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14855 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14856 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859 ac_check_lib_save_LIBS=$LIBS
14860 LIBS="-lc_r $LIBS"
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h. */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14868 /* Override any GCC internal prototype to avoid an error.
14869 Use char because int might match the return type of a GCC
14870 builtin and then its argument prototype would still apply. */
14871 #ifdef __cplusplus
14872 extern "C"
14873 #endif
14874 char pthread_create ();
14876 main ()
14878 return pthread_create ();
14880 return 0;
14882 _ACEOF
14883 rm -f conftest.$ac_objext conftest$ac_exeext
14884 if { (ac_try="$ac_link"
14885 case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_link") 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && {
14897 test -z "$ac_c_werror_flag" ||
14898 test ! -s conftest.err
14899 } && test -s conftest$ac_exeext &&
14900 $as_test_x conftest$ac_exeext; then
14901 ac_cv_lib_c_r_pthread_create=yes
14902 else
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14906 ac_cv_lib_c_r_pthread_create=no
14909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14910 conftest$ac_exeext conftest.$ac_ext
14911 LIBS=$ac_check_lib_save_LIBS
14913 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14914 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14915 if test $ac_cv_lib_c_r_pthread_create = yes; then
14916 cat >>confdefs.h <<\_ACEOF
14917 #define WITH_THREAD 1
14918 _ACEOF
14920 posix_threads=yes
14921 LIBS="$LIBS -lc_r"
14922 THREADOBJ="Python/thread.o"
14923 else
14925 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14926 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14927 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930 ac_check_lib_save_LIBS=$LIBS
14931 LIBS="-lpthread $LIBS"
14932 cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h. */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14939 /* Override any GCC internal prototype to avoid an error.
14940 Use char because int might match the return type of a GCC
14941 builtin and then its argument prototype would still apply. */
14942 #ifdef __cplusplus
14943 extern "C"
14944 #endif
14945 char __pthread_create_system ();
14947 main ()
14949 return __pthread_create_system ();
14951 return 0;
14953 _ACEOF
14954 rm -f conftest.$ac_objext conftest$ac_exeext
14955 if { (ac_try="$ac_link"
14956 case "(($ac_try" in
14957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958 *) ac_try_echo=$ac_try;;
14959 esac
14960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961 (eval "$ac_link") 2>conftest.er1
14962 ac_status=$?
14963 grep -v '^ *+' conftest.er1 >conftest.err
14964 rm -f conftest.er1
14965 cat conftest.err >&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } && {
14968 test -z "$ac_c_werror_flag" ||
14969 test ! -s conftest.err
14970 } && test -s conftest$ac_exeext &&
14971 $as_test_x conftest$ac_exeext; then
14972 ac_cv_lib_pthread___pthread_create_system=yes
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 ac_cv_lib_pthread___pthread_create_system=no
14980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14981 conftest$ac_exeext conftest.$ac_ext
14982 LIBS=$ac_check_lib_save_LIBS
14984 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14985 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14986 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14987 cat >>confdefs.h <<\_ACEOF
14988 #define WITH_THREAD 1
14989 _ACEOF
14991 posix_threads=yes
14992 LIBS="$LIBS -lpthread"
14993 THREADOBJ="Python/thread.o"
14994 else
14996 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14997 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14998 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001 ac_check_lib_save_LIBS=$LIBS
15002 LIBS="-lcma $LIBS"
15003 cat >conftest.$ac_ext <<_ACEOF
15004 /* confdefs.h. */
15005 _ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15010 /* Override any GCC internal prototype to avoid an error.
15011 Use char because int might match the return type of a GCC
15012 builtin and then its argument prototype would still apply. */
15013 #ifdef __cplusplus
15014 extern "C"
15015 #endif
15016 char pthread_create ();
15018 main ()
15020 return pthread_create ();
15022 return 0;
15024 _ACEOF
15025 rm -f conftest.$ac_objext conftest$ac_exeext
15026 if { (ac_try="$ac_link"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_link") 2>conftest.er1
15033 ac_status=$?
15034 grep -v '^ *+' conftest.er1 >conftest.err
15035 rm -f conftest.er1
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && {
15039 test -z "$ac_c_werror_flag" ||
15040 test ! -s conftest.err
15041 } && test -s conftest$ac_exeext &&
15042 $as_test_x conftest$ac_exeext; then
15043 ac_cv_lib_cma_pthread_create=yes
15044 else
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ac_cv_lib_cma_pthread_create=no
15051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15052 conftest$ac_exeext conftest.$ac_ext
15053 LIBS=$ac_check_lib_save_LIBS
15055 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15056 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15057 if test $ac_cv_lib_cma_pthread_create = yes; then
15058 cat >>confdefs.h <<\_ACEOF
15059 #define WITH_THREAD 1
15060 _ACEOF
15062 posix_threads=yes
15063 LIBS="$LIBS -lcma"
15064 THREADOBJ="Python/thread.o"
15065 else
15067 USE_THREAD_MODULE="#"
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15098 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15099 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15100 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 else
15103 ac_check_lib_save_LIBS=$LIBS
15104 LIBS="-lmpc $LIBS"
15105 cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h. */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15112 /* Override any GCC internal prototype to avoid an error.
15113 Use char because int might match the return type of a GCC
15114 builtin and then its argument prototype would still apply. */
15115 #ifdef __cplusplus
15116 extern "C"
15117 #endif
15118 char usconfig ();
15120 main ()
15122 return usconfig ();
15124 return 0;
15126 _ACEOF
15127 rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (ac_try="$ac_link"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_link") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest$ac_exeext &&
15144 $as_test_x conftest$ac_exeext; then
15145 ac_cv_lib_mpc_usconfig=yes
15146 else
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ac_cv_lib_mpc_usconfig=no
15153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15154 conftest$ac_exeext conftest.$ac_ext
15155 LIBS=$ac_check_lib_save_LIBS
15157 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15158 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15159 if test $ac_cv_lib_mpc_usconfig = yes; then
15160 cat >>confdefs.h <<\_ACEOF
15161 #define WITH_THREAD 1
15162 _ACEOF
15164 LIBS="$LIBS -lmpc"
15165 THREADOBJ="Python/thread.o"
15166 USE_THREAD_MODULE=""
15170 if test "$posix_threads" != "yes"; then
15171 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15172 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15173 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 else
15176 ac_check_lib_save_LIBS=$LIBS
15177 LIBS="-lthread $LIBS"
15178 cat >conftest.$ac_ext <<_ACEOF
15179 /* confdefs.h. */
15180 _ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15185 /* Override any GCC internal prototype to avoid an error.
15186 Use char because int might match the return type of a GCC
15187 builtin and then its argument prototype would still apply. */
15188 #ifdef __cplusplus
15189 extern "C"
15190 #endif
15191 char thr_create ();
15193 main ()
15195 return thr_create ();
15197 return 0;
15199 _ACEOF
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15205 esac
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_link") 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } && {
15214 test -z "$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15216 } && test -s conftest$ac_exeext &&
15217 $as_test_x conftest$ac_exeext; then
15218 ac_cv_lib_thread_thr_create=yes
15219 else
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 ac_cv_lib_thread_thr_create=no
15226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15227 conftest$ac_exeext conftest.$ac_ext
15228 LIBS=$ac_check_lib_save_LIBS
15230 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15231 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15232 if test $ac_cv_lib_thread_thr_create = yes; then
15233 cat >>confdefs.h <<\_ACEOF
15234 #define WITH_THREAD 1
15235 _ACEOF
15237 LIBS="$LIBS -lthread"
15238 THREADOBJ="Python/thread.o"
15239 USE_THREAD_MODULE=""
15244 if test "$USE_THREAD_MODULE" != "#"
15245 then
15246 # If the above checks didn't disable threads, (at least) OSF1
15247 # needs this '-threads' argument during linking.
15248 case $ac_sys_system in
15249 OSF1) LDLAST=-threads;;
15250 esac
15254 if test "$posix_threads" = "yes"; then
15255 if test "$unistd_defines_pthreads" = "no"; then
15257 cat >>confdefs.h <<\_ACEOF
15258 #define _POSIX_THREADS 1
15259 _ACEOF
15263 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15264 case $ac_sys_system/$ac_sys_release in
15265 SunOS/5.6)
15266 cat >>confdefs.h <<\_ACEOF
15267 #define HAVE_PTHREAD_DESTRUCTOR 1
15268 _ACEOF
15271 SunOS/5.8)
15272 cat >>confdefs.h <<\_ACEOF
15273 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15274 _ACEOF
15277 AIX/5)
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15280 _ACEOF
15283 esac
15285 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15286 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15287 if test "${ac_cv_pthread_system_supported+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290 if test "$cross_compiling" = yes; then
15291 ac_cv_pthread_system_supported=no
15292 else
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h. */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 #include <pthread.h>
15300 void *foo(void *parm) {
15301 return NULL;
15303 main() {
15304 pthread_attr_t attr;
15305 pthread_t id;
15306 if (pthread_attr_init(&attr)) exit(-1);
15307 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15308 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15309 exit(0);
15311 _ACEOF
15312 rm -f conftest$ac_exeext
15313 if { (ac_try="$ac_link"
15314 case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15317 esac
15318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319 (eval "$ac_link") 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15323 { (case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326 esac
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_try") 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 ac_cv_pthread_system_supported=yes
15333 else
15334 echo "$as_me: program exited with status $ac_status" >&5
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 ( exit $ac_status )
15339 ac_cv_pthread_system_supported=no
15341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15348 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15349 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15350 if test "$ac_cv_pthread_system_supported" = "yes"; then
15352 cat >>confdefs.h <<\_ACEOF
15353 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15354 _ACEOF
15358 for ac_func in pthread_sigmask
15360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366 cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h. */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15374 #define $ac_func innocuous_$ac_func
15376 /* System header to define __stub macros and hopefully few prototypes,
15377 which can conflict with char $ac_func (); below.
15378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15379 <limits.h> exists even on freestanding compilers. */
15381 #ifdef __STDC__
15382 # include <limits.h>
15383 #else
15384 # include <assert.h>
15385 #endif
15387 #undef $ac_func
15389 /* Override any GCC internal prototype to avoid an error.
15390 Use char because int might match the return type of a GCC
15391 builtin and then its argument prototype would still apply. */
15392 #ifdef __cplusplus
15393 extern "C"
15394 #endif
15395 char $ac_func ();
15396 /* The GNU C library defines this for functions which it implements
15397 to always fail with ENOSYS. Some functions are actually named
15398 something starting with __ and the normal name is an alias. */
15399 #if defined __stub_$ac_func || defined __stub___$ac_func
15400 choke me
15401 #endif
15404 main ()
15406 return $ac_func ();
15408 return 0;
15410 _ACEOF
15411 rm -f conftest.$ac_objext conftest$ac_exeext
15412 if { (ac_try="$ac_link"
15413 case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_link") 2>conftest.er1
15419 ac_status=$?
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } && {
15425 test -z "$ac_c_werror_flag" ||
15426 test ! -s conftest.err
15427 } && test -s conftest$ac_exeext &&
15428 $as_test_x conftest$ac_exeext; then
15429 eval "$as_ac_var=yes"
15430 else
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15434 eval "$as_ac_var=no"
15437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15438 conftest$ac_exeext conftest.$ac_ext
15440 ac_res=`eval echo '${'$as_ac_var'}'`
15441 { echo "$as_me:$LINENO: result: $ac_res" >&5
15442 echo "${ECHO_T}$ac_res" >&6; }
15443 if test `eval echo '${'$as_ac_var'}'` = yes; then
15444 cat >>confdefs.h <<_ACEOF
15445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15446 _ACEOF
15447 case $ac_sys_system in
15448 CYGWIN*)
15450 cat >>confdefs.h <<\_ACEOF
15451 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15452 _ACEOF
15455 esac
15457 done
15462 # Check for enable-ipv6
15465 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15466 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15467 # Check whether --enable-ipv6 was given.
15468 if test "${enable_ipv6+set}" = set; then
15469 enableval=$enable_ipv6; case "$enableval" in
15471 { echo "$as_me:$LINENO: result: no" >&5
15472 echo "${ECHO_T}no" >&6; }
15473 ipv6=no
15475 *) { echo "$as_me:$LINENO: result: yes" >&5
15476 echo "${ECHO_T}yes" >&6; }
15477 cat >>confdefs.h <<\_ACEOF
15478 #define ENABLE_IPV6 1
15479 _ACEOF
15481 ipv6=yes
15483 esac
15484 else
15486 if test "$cross_compiling" = yes; then
15487 { echo "$as_me:$LINENO: result: no" >&5
15488 echo "${ECHO_T}no" >&6; }
15489 ipv6=no
15491 else
15492 cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h. */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 /* AF_INET6 available check */
15499 #include <sys/types.h>
15500 #include <sys/socket.h>
15501 main()
15503 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15504 exit(1);
15505 else
15506 exit(0);
15509 _ACEOF
15510 rm -f conftest$ac_exeext
15511 if { (ac_try="$ac_link"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_link") 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15521 { (case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524 esac
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_try") 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15530 { echo "$as_me:$LINENO: result: yes" >&5
15531 echo "${ECHO_T}yes" >&6; }
15532 ipv6=yes
15533 else
15534 echo "$as_me: program exited with status $ac_status" >&5
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 ( exit $ac_status )
15539 { echo "$as_me:$LINENO: result: no" >&5
15540 echo "${ECHO_T}no" >&6; }
15541 ipv6=no
15543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15548 if test "$ipv6" = "yes"; then
15549 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15550 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h. */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 #include <sys/types.h>
15558 #include <netinet/in.h>
15560 main ()
15562 struct sockaddr_in6 x;
15563 x.sin6_scope_id;
15565 return 0;
15567 _ACEOF
15568 rm -f conftest.$ac_objext
15569 if { (ac_try="$ac_compile"
15570 case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15573 esac
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_compile") 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest.$ac_objext; then
15585 { echo "$as_me:$LINENO: result: yes" >&5
15586 echo "${ECHO_T}yes" >&6; }
15587 ipv6=yes
15588 else
15589 echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15592 { echo "$as_me:$LINENO: result: no" >&5
15593 echo "${ECHO_T}no" >&6; }
15594 ipv6=no
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600 if test "$ipv6" = "yes"; then
15601 cat >>confdefs.h <<\_ACEOF
15602 #define ENABLE_IPV6 1
15603 _ACEOF
15610 ipv6type=unknown
15611 ipv6lib=none
15612 ipv6trylibc=no
15614 if test "$ipv6" = "yes"; then
15615 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15616 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15617 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15619 case $i in
15620 inria)
15621 cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h. */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15628 #include <netinet/in.h>
15629 #ifdef IPV6_INRIA_VERSION
15631 #endif
15632 _ACEOF
15633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15634 $EGREP "yes" >/dev/null 2>&1; then
15635 ipv6type=$i
15637 rm -f conftest*
15640 kame)
15641 cat >conftest.$ac_ext <<_ACEOF
15642 /* confdefs.h. */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15648 #include <netinet/in.h>
15649 #ifdef __KAME__
15651 #endif
15652 _ACEOF
15653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15654 $EGREP "yes" >/dev/null 2>&1; then
15655 ipv6type=$i;
15656 ipv6lib=inet6
15657 ipv6libdir=/usr/local/v6/lib
15658 ipv6trylibc=yes
15660 rm -f conftest*
15663 linux-glibc)
15664 cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h. */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15671 #include <features.h>
15672 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15674 #endif
15675 _ACEOF
15676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15677 $EGREP "yes" >/dev/null 2>&1; then
15678 ipv6type=$i;
15679 ipv6trylibc=yes
15681 rm -f conftest*
15684 linux-inet6)
15685 if test -d /usr/inet6; then
15686 ipv6type=$i
15687 ipv6lib=inet6
15688 ipv6libdir=/usr/inet6/lib
15689 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15692 solaris)
15693 if test -f /etc/netconfig; then
15694 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15695 ipv6type=$i
15696 ipv6trylibc=yes
15700 toshiba)
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h. */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15708 #include <sys/param.h>
15709 #ifdef _TOSHIBA_INET6
15711 #endif
15712 _ACEOF
15713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15714 $EGREP "yes" >/dev/null 2>&1; then
15715 ipv6type=$i;
15716 ipv6lib=inet6;
15717 ipv6libdir=/usr/local/v6/lib
15719 rm -f conftest*
15722 v6d)
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15730 #include </usr/local/v6/include/sys/v6config.h>
15731 #ifdef __V6D__
15733 #endif
15734 _ACEOF
15735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15736 $EGREP "yes" >/dev/null 2>&1; then
15737 ipv6type=$i;
15738 ipv6lib=v6;
15739 ipv6libdir=/usr/local/v6/lib;
15740 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15742 rm -f conftest*
15745 zeta)
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h. */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15753 #include <sys/param.h>
15754 #ifdef _ZETA_MINAMI_INET6
15756 #endif
15757 _ACEOF
15758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15759 $EGREP "yes" >/dev/null 2>&1; then
15760 ipv6type=$i;
15761 ipv6lib=inet6;
15762 ipv6libdir=/usr/local/v6/lib
15764 rm -f conftest*
15767 esac
15768 if test "$ipv6type" != "unknown"; then
15769 break
15771 done
15772 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15773 echo "${ECHO_T}$ipv6type" >&6; }
15776 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15777 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15778 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15779 echo "using lib$ipv6lib"
15780 else
15781 if test $ipv6trylibc = "yes"; then
15782 echo "using libc"
15783 else
15784 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15785 echo "You need to fetch lib$ipv6lib.a from appropriate"
15786 echo 'ipv6 kit and compile beforehand.'
15787 exit 1
15792 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15793 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h. */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <Carbon/Carbon.h>
15802 main ()
15804 FSIORefNum fRef = 0
15806 return 0;
15808 _ACEOF
15809 rm -f conftest.$ac_objext
15810 if { (ac_try="$ac_compile"
15811 case "(($ac_try" in
15812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15813 *) ac_try_echo=$ac_try;;
15814 esac
15815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15816 (eval "$ac_compile") 2>conftest.er1
15817 ac_status=$?
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } && {
15823 test -z "$ac_c_werror_flag" ||
15824 test ! -s conftest.err
15825 } && test -s conftest.$ac_objext; then
15827 cat >>confdefs.h <<\_ACEOF
15828 #define HAVE_OSX105_SDK 1
15829 _ACEOF
15831 { echo "$as_me:$LINENO: result: yes" >&5
15832 echo "${ECHO_T}yes" >&6; }
15833 else
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 { echo "$as_me:$LINENO: result: no" >&5
15838 echo "${ECHO_T}no" >&6; }
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 # Check for --with-doc-strings
15845 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15846 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15848 # Check whether --with-doc-strings was given.
15849 if test "${with_doc_strings+set}" = set; then
15850 withval=$with_doc_strings;
15854 if test -z "$with_doc_strings"
15855 then with_doc_strings="yes"
15857 if test "$with_doc_strings" != "no"
15858 then
15860 cat >>confdefs.h <<\_ACEOF
15861 #define WITH_DOC_STRINGS 1
15862 _ACEOF
15865 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15866 echo "${ECHO_T}$with_doc_strings" >&6; }
15868 # Check for Python-specific malloc support
15869 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15870 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15872 # Check whether --with-tsc was given.
15873 if test "${with_tsc+set}" = set; then
15874 withval=$with_tsc;
15875 if test "$withval" != no
15876 then
15878 cat >>confdefs.h <<\_ACEOF
15879 #define WITH_TSC 1
15880 _ACEOF
15882 { echo "$as_me:$LINENO: result: yes" >&5
15883 echo "${ECHO_T}yes" >&6; }
15884 else { echo "$as_me:$LINENO: result: no" >&5
15885 echo "${ECHO_T}no" >&6; }
15887 else
15888 { echo "$as_me:$LINENO: result: no" >&5
15889 echo "${ECHO_T}no" >&6; }
15893 # Check for Python-specific malloc support
15894 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15895 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15897 # Check whether --with-pymalloc was given.
15898 if test "${with_pymalloc+set}" = set; then
15899 withval=$with_pymalloc;
15903 if test -z "$with_pymalloc"
15904 then with_pymalloc="yes"
15906 if test "$with_pymalloc" != "no"
15907 then
15909 cat >>confdefs.h <<\_ACEOF
15910 #define WITH_PYMALLOC 1
15911 _ACEOF
15914 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15915 echo "${ECHO_T}$with_pymalloc" >&6; }
15917 # Check for --with-wctype-functions
15918 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15919 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15921 # Check whether --with-wctype-functions was given.
15922 if test "${with_wctype_functions+set}" = set; then
15923 withval=$with_wctype_functions;
15924 if test "$withval" != no
15925 then
15927 cat >>confdefs.h <<\_ACEOF
15928 #define WANT_WCTYPE_FUNCTIONS 1
15929 _ACEOF
15931 { echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6; }
15933 else { echo "$as_me:$LINENO: result: no" >&5
15934 echo "${ECHO_T}no" >&6; }
15936 else
15937 { echo "$as_me:$LINENO: result: no" >&5
15938 echo "${ECHO_T}no" >&6; }
15942 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15944 DLINCLDIR=.
15946 # the dlopen() function means we might want to use dynload_shlib.o. some
15947 # platforms, such as AIX, have dlopen(), but don't want to use it.
15949 for ac_func in dlopen
15951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957 cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h. */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15965 #define $ac_func innocuous_$ac_func
15967 /* System header to define __stub macros and hopefully few prototypes,
15968 which can conflict with char $ac_func (); below.
15969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15970 <limits.h> exists even on freestanding compilers. */
15972 #ifdef __STDC__
15973 # include <limits.h>
15974 #else
15975 # include <assert.h>
15976 #endif
15978 #undef $ac_func
15980 /* Override any GCC internal prototype to avoid an error.
15981 Use char because int might match the return type of a GCC
15982 builtin and then its argument prototype would still apply. */
15983 #ifdef __cplusplus
15984 extern "C"
15985 #endif
15986 char $ac_func ();
15987 /* The GNU C library defines this for functions which it implements
15988 to always fail with ENOSYS. Some functions are actually named
15989 something starting with __ and the normal name is an alias. */
15990 #if defined __stub_$ac_func || defined __stub___$ac_func
15991 choke me
15992 #endif
15995 main ()
15997 return $ac_func ();
15999 return 0;
16001 _ACEOF
16002 rm -f conftest.$ac_objext conftest$ac_exeext
16003 if { (ac_try="$ac_link"
16004 case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_link") 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } && {
16016 test -z "$ac_c_werror_flag" ||
16017 test ! -s conftest.err
16018 } && test -s conftest$ac_exeext &&
16019 $as_test_x conftest$ac_exeext; then
16020 eval "$as_ac_var=yes"
16021 else
16022 echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16025 eval "$as_ac_var=no"
16028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16029 conftest$ac_exeext conftest.$ac_ext
16031 ac_res=`eval echo '${'$as_ac_var'}'`
16032 { echo "$as_me:$LINENO: result: $ac_res" >&5
16033 echo "${ECHO_T}$ac_res" >&6; }
16034 if test `eval echo '${'$as_ac_var'}'` = yes; then
16035 cat >>confdefs.h <<_ACEOF
16036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16037 _ACEOF
16040 done
16043 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16044 # loading of modules.
16046 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16047 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16048 if test -z "$DYNLOADFILE"
16049 then
16050 case $ac_sys_system/$ac_sys_release in
16051 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16052 if test "$ac_cv_func_dlopen" = yes
16053 then DYNLOADFILE="dynload_shlib.o"
16054 else DYNLOADFILE="dynload_aix.o"
16057 BeOS*) DYNLOADFILE="dynload_beos.o";;
16058 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16059 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16060 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16061 atheos*) DYNLOADFILE="dynload_atheos.o";;
16063 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16064 # out any dynamic loading
16065 if test "$ac_cv_func_dlopen" = yes
16066 then DYNLOADFILE="dynload_shlib.o"
16067 else DYNLOADFILE="dynload_stub.o"
16070 esac
16072 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16073 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16074 if test "$DYNLOADFILE" != "dynload_stub.o"
16075 then
16077 cat >>confdefs.h <<\_ACEOF
16078 #define HAVE_DYNAMIC_LOADING 1
16079 _ACEOF
16083 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16086 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16087 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16088 if test -z "$MACHDEP_OBJS"
16089 then
16090 MACHDEP_OBJS=$extra_machdep_objs
16091 else
16092 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16094 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16095 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16097 # checks for library functions
16179 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16180 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16181 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16182 getpriority getpwent getspnam getspent getsid getwd \
16183 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16184 mremap nice pathconf pause plock poll pthread_init \
16185 putenv readlink realpath \
16186 select setegid seteuid setgid \
16187 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16188 sigaction siginterrupt sigrelse strftime \
16189 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16190 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 else
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h. */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16206 #define $ac_func innocuous_$ac_func
16208 /* System header to define __stub macros and hopefully few prototypes,
16209 which can conflict with char $ac_func (); below.
16210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16211 <limits.h> exists even on freestanding compilers. */
16213 #ifdef __STDC__
16214 # include <limits.h>
16215 #else
16216 # include <assert.h>
16217 #endif
16219 #undef $ac_func
16221 /* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16224 #ifdef __cplusplus
16225 extern "C"
16226 #endif
16227 char $ac_func ();
16228 /* The GNU C library defines this for functions which it implements
16229 to always fail with ENOSYS. Some functions are actually named
16230 something starting with __ and the normal name is an alias. */
16231 #if defined __stub_$ac_func || defined __stub___$ac_func
16232 choke me
16233 #endif
16236 main ()
16238 return $ac_func ();
16240 return 0;
16242 _ACEOF
16243 rm -f conftest.$ac_objext conftest$ac_exeext
16244 if { (ac_try="$ac_link"
16245 case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16248 esac
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_link") 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest$ac_exeext &&
16260 $as_test_x conftest$ac_exeext; then
16261 eval "$as_ac_var=yes"
16262 else
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 eval "$as_ac_var=no"
16269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16270 conftest$ac_exeext conftest.$ac_ext
16272 ac_res=`eval echo '${'$as_ac_var'}'`
16273 { echo "$as_me:$LINENO: result: $ac_res" >&5
16274 echo "${ECHO_T}$ac_res" >&6; }
16275 if test `eval echo '${'$as_ac_var'}'` = yes; then
16276 cat >>confdefs.h <<_ACEOF
16277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16278 _ACEOF
16281 done
16284 # For some functions, having a definition is not sufficient, since
16285 # we want to take their address.
16286 { echo "$as_me:$LINENO: checking for chroot" >&5
16287 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h. */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 #include <unistd.h>
16296 main ()
16298 void *x=chroot
16300 return 0;
16302 _ACEOF
16303 rm -f conftest.$ac_objext
16304 if { (ac_try="$ac_compile"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest.$ac_objext; then
16321 cat >>confdefs.h <<\_ACEOF
16322 #define HAVE_CHROOT 1
16323 _ACEOF
16325 { echo "$as_me:$LINENO: result: yes" >&5
16326 echo "${ECHO_T}yes" >&6; }
16327 else
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 { echo "$as_me:$LINENO: result: no" >&5
16332 echo "${ECHO_T}no" >&6; }
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16337 { echo "$as_me:$LINENO: checking for link" >&5
16338 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 #include <unistd.h>
16347 main ()
16349 void *x=link
16351 return 0;
16353 _ACEOF
16354 rm -f conftest.$ac_objext
16355 if { (ac_try="$ac_compile"
16356 case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16359 esac
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_compile") 2>conftest.er1
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } && {
16368 test -z "$ac_c_werror_flag" ||
16369 test ! -s conftest.err
16370 } && test -s conftest.$ac_objext; then
16372 cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_LINK 1
16374 _ACEOF
16376 { echo "$as_me:$LINENO: result: yes" >&5
16377 echo "${ECHO_T}yes" >&6; }
16378 else
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 { echo "$as_me:$LINENO: result: no" >&5
16383 echo "${ECHO_T}no" >&6; }
16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 { echo "$as_me:$LINENO: checking for symlink" >&5
16389 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16390 cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h. */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 #include <unistd.h>
16398 main ()
16400 void *x=symlink
16402 return 0;
16404 _ACEOF
16405 rm -f conftest.$ac_objext
16406 if { (ac_try="$ac_compile"
16407 case "(($ac_try" in
16408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409 *) ac_try_echo=$ac_try;;
16410 esac
16411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412 (eval "$ac_compile") 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } && {
16419 test -z "$ac_c_werror_flag" ||
16420 test ! -s conftest.err
16421 } && test -s conftest.$ac_objext; then
16423 cat >>confdefs.h <<\_ACEOF
16424 #define HAVE_SYMLINK 1
16425 _ACEOF
16427 { echo "$as_me:$LINENO: result: yes" >&5
16428 echo "${ECHO_T}yes" >&6; }
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 { echo "$as_me:$LINENO: result: no" >&5
16434 echo "${ECHO_T}no" >&6; }
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 { echo "$as_me:$LINENO: checking for fchdir" >&5
16440 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16441 cat >conftest.$ac_ext <<_ACEOF
16442 /* confdefs.h. */
16443 _ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h. */
16447 #include <unistd.h>
16449 main ()
16451 void *x=fchdir
16453 return 0;
16455 _ACEOF
16456 rm -f conftest.$ac_objext
16457 if { (ac_try="$ac_compile"
16458 case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16464 ac_status=$?
16465 grep -v '^ *+' conftest.er1 >conftest.err
16466 rm -f conftest.er1
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } && {
16470 test -z "$ac_c_werror_flag" ||
16471 test ! -s conftest.err
16472 } && test -s conftest.$ac_objext; then
16474 cat >>confdefs.h <<\_ACEOF
16475 #define HAVE_FCHDIR 1
16476 _ACEOF
16478 { echo "$as_me:$LINENO: result: yes" >&5
16479 echo "${ECHO_T}yes" >&6; }
16480 else
16481 echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16484 { echo "$as_me:$LINENO: result: no" >&5
16485 echo "${ECHO_T}no" >&6; }
16489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490 { echo "$as_me:$LINENO: checking for fsync" >&5
16491 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h. */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 #include <unistd.h>
16500 main ()
16502 void *x=fsync
16504 return 0;
16506 _ACEOF
16507 rm -f conftest.$ac_objext
16508 if { (ac_try="$ac_compile"
16509 case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16512 esac
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_compile") 2>conftest.er1
16515 ac_status=$?
16516 grep -v '^ *+' conftest.er1 >conftest.err
16517 rm -f conftest.er1
16518 cat conftest.err >&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } && {
16521 test -z "$ac_c_werror_flag" ||
16522 test ! -s conftest.err
16523 } && test -s conftest.$ac_objext; then
16525 cat >>confdefs.h <<\_ACEOF
16526 #define HAVE_FSYNC 1
16527 _ACEOF
16529 { echo "$as_me:$LINENO: result: yes" >&5
16530 echo "${ECHO_T}yes" >&6; }
16531 else
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 { echo "$as_me:$LINENO: result: no" >&5
16536 echo "${ECHO_T}no" >&6; }
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16542 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 #include <unistd.h>
16551 main ()
16553 void *x=fdatasync
16555 return 0;
16557 _ACEOF
16558 rm -f conftest.$ac_objext
16559 if { (ac_try="$ac_compile"
16560 case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16563 esac
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_compile") 2>conftest.er1
16566 ac_status=$?
16567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } && {
16572 test -z "$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16574 } && test -s conftest.$ac_objext; then
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_FDATASYNC 1
16578 _ACEOF
16580 { echo "$as_me:$LINENO: result: yes" >&5
16581 echo "${ECHO_T}yes" >&6; }
16582 else
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16586 { echo "$as_me:$LINENO: result: no" >&5
16587 echo "${ECHO_T}no" >&6; }
16591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16592 { echo "$as_me:$LINENO: checking for epoll" >&5
16593 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16594 cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h. */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include <sys/epoll.h>
16602 main ()
16604 void *x=epoll_create
16606 return 0;
16608 _ACEOF
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_compile") 2>conftest.er1
16617 ac_status=$?
16618 grep -v '^ *+' conftest.er1 >conftest.err
16619 rm -f conftest.er1
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } && {
16623 test -z "$ac_c_werror_flag" ||
16624 test ! -s conftest.err
16625 } && test -s conftest.$ac_objext; then
16627 cat >>confdefs.h <<\_ACEOF
16628 #define HAVE_EPOLL 1
16629 _ACEOF
16631 { echo "$as_me:$LINENO: result: yes" >&5
16632 echo "${ECHO_T}yes" >&6; }
16633 else
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16637 { echo "$as_me:$LINENO: result: no" >&5
16638 echo "${ECHO_T}no" >&6; }
16642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16643 { echo "$as_me:$LINENO: checking for kqueue" >&5
16644 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16645 cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h. */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16652 #include <sys/types.h>
16653 #include <sys/event.h>
16656 main ()
16658 int x=kqueue()
16660 return 0;
16662 _ACEOF
16663 rm -f conftest.$ac_objext
16664 if { (ac_try="$ac_compile"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_compile") 2>conftest.er1
16671 ac_status=$?
16672 grep -v '^ *+' conftest.er1 >conftest.err
16673 rm -f conftest.er1
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } && {
16677 test -z "$ac_c_werror_flag" ||
16678 test ! -s conftest.err
16679 } && test -s conftest.$ac_objext; then
16681 cat >>confdefs.h <<\_ACEOF
16682 #define HAVE_KQUEUE 1
16683 _ACEOF
16685 { echo "$as_me:$LINENO: result: yes" >&5
16686 echo "${ECHO_T}yes" >&6; }
16687 else
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 { echo "$as_me:$LINENO: result: no" >&5
16692 echo "${ECHO_T}no" >&6; }
16696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16697 # On some systems (eg. FreeBSD 5), we would find a definition of the
16698 # functions ctermid_r, setgroups in the library, but no prototype
16699 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16700 # address to avoid compiler warnings and potential miscompilations
16701 # because of the missing prototypes.
16703 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16704 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16705 cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h. */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16712 #include "confdefs.h"
16713 #include <stdio.h>
16716 main ()
16718 void* p = ctermid_r
16720 return 0;
16722 _ACEOF
16723 rm -f conftest.$ac_objext
16724 if { (ac_try="$ac_compile"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728 esac
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_compile") 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest.$ac_objext; then
16741 cat >>confdefs.h <<\_ACEOF
16742 #define HAVE_CTERMID_R 1
16743 _ACEOF
16745 { echo "$as_me:$LINENO: result: yes" >&5
16746 echo "${ECHO_T}yes" >&6; }
16747 else
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 { echo "$as_me:$LINENO: result: no" >&5
16752 echo "${ECHO_T}no" >&6; }
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758 { echo "$as_me:$LINENO: checking for flock" >&5
16759 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16767 #include "confdefs.h"
16768 #include <sys/file.h>
16771 main ()
16773 void* p = flock
16775 return 0;
16777 _ACEOF
16778 rm -f conftest.$ac_objext
16779 if { (ac_try="$ac_compile"
16780 case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783 esac
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_compile") 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } && {
16792 test -z "$ac_c_werror_flag" ||
16793 test ! -s conftest.err
16794 } && test -s conftest.$ac_objext; then
16796 cat >>confdefs.h <<\_ACEOF
16797 #define HAVE_FLOCK 1
16798 _ACEOF
16800 { echo "$as_me:$LINENO: result: yes" >&5
16801 echo "${ECHO_T}yes" >&6; }
16802 else
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 { echo "$as_me:$LINENO: result: no" >&5
16807 echo "${ECHO_T}no" >&6; }
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16813 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16814 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16822 #include "confdefs.h"
16823 #include <unistd.h>
16826 main ()
16828 void* p = getpagesize
16830 return 0;
16832 _ACEOF
16833 rm -f conftest.$ac_objext
16834 if { (ac_try="$ac_compile"
16835 case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_compile") 2>conftest.er1
16841 ac_status=$?
16842 grep -v '^ *+' conftest.er1 >conftest.err
16843 rm -f conftest.er1
16844 cat conftest.err >&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } && {
16847 test -z "$ac_c_werror_flag" ||
16848 test ! -s conftest.err
16849 } && test -s conftest.$ac_objext; then
16851 cat >>confdefs.h <<\_ACEOF
16852 #define HAVE_GETPAGESIZE 1
16853 _ACEOF
16855 { echo "$as_me:$LINENO: result: yes" >&5
16856 echo "${ECHO_T}yes" >&6; }
16857 else
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16861 { echo "$as_me:$LINENO: result: no" >&5
16862 echo "${ECHO_T}no" >&6; }
16866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868 for ac_prog in true
16870 # Extract the first word of "$ac_prog", so it can be a program name with args.
16871 set dummy $ac_prog; ac_word=$2
16872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16874 if test "${ac_cv_prog_TRUE+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16876 else
16877 if test -n "$TRUE"; then
16878 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16879 else
16880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16881 for as_dir in $PATH
16883 IFS=$as_save_IFS
16884 test -z "$as_dir" && as_dir=.
16885 for ac_exec_ext in '' $ac_executable_extensions; do
16886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16887 ac_cv_prog_TRUE="$ac_prog"
16888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16889 break 2
16891 done
16892 done
16893 IFS=$as_save_IFS
16897 TRUE=$ac_cv_prog_TRUE
16898 if test -n "$TRUE"; then
16899 { echo "$as_me:$LINENO: result: $TRUE" >&5
16900 echo "${ECHO_T}$TRUE" >&6; }
16901 else
16902 { echo "$as_me:$LINENO: result: no" >&5
16903 echo "${ECHO_T}no" >&6; }
16907 test -n "$TRUE" && break
16908 done
16909 test -n "$TRUE" || TRUE="/bin/true"
16912 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16913 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16914 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16916 else
16917 ac_check_lib_save_LIBS=$LIBS
16918 LIBS="-lc $LIBS"
16919 cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h. */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16926 /* Override any GCC internal prototype to avoid an error.
16927 Use char because int might match the return type of a GCC
16928 builtin and then its argument prototype would still apply. */
16929 #ifdef __cplusplus
16930 extern "C"
16931 #endif
16932 char inet_aton ();
16934 main ()
16936 return inet_aton ();
16938 return 0;
16940 _ACEOF
16941 rm -f conftest.$ac_objext conftest$ac_exeext
16942 if { (ac_try="$ac_link"
16943 case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_link") 2>conftest.er1
16949 ac_status=$?
16950 grep -v '^ *+' conftest.er1 >conftest.err
16951 rm -f conftest.er1
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } && {
16955 test -z "$ac_c_werror_flag" ||
16956 test ! -s conftest.err
16957 } && test -s conftest$ac_exeext &&
16958 $as_test_x conftest$ac_exeext; then
16959 ac_cv_lib_c_inet_aton=yes
16960 else
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_cv_lib_c_inet_aton=no
16967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16968 conftest$ac_exeext conftest.$ac_ext
16969 LIBS=$ac_check_lib_save_LIBS
16971 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16972 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16973 if test $ac_cv_lib_c_inet_aton = yes; then
16974 $ac_cv_prog_TRUE
16975 else
16977 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16978 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16979 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982 ac_check_lib_save_LIBS=$LIBS
16983 LIBS="-lresolv $LIBS"
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h. */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16991 /* Override any GCC internal prototype to avoid an error.
16992 Use char because int might match the return type of a GCC
16993 builtin and then its argument prototype would still apply. */
16994 #ifdef __cplusplus
16995 extern "C"
16996 #endif
16997 char inet_aton ();
16999 main ()
17001 return inet_aton ();
17003 return 0;
17005 _ACEOF
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (ac_try="$ac_link"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011 esac
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_link") 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && {
17020 test -z "$ac_c_werror_flag" ||
17021 test ! -s conftest.err
17022 } && test -s conftest$ac_exeext &&
17023 $as_test_x conftest$ac_exeext; then
17024 ac_cv_lib_resolv_inet_aton=yes
17025 else
17026 echo "$as_me: failed program was:" >&5
17027 sed 's/^/| /' conftest.$ac_ext >&5
17029 ac_cv_lib_resolv_inet_aton=no
17032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17033 conftest$ac_exeext conftest.$ac_ext
17034 LIBS=$ac_check_lib_save_LIBS
17036 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17037 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17038 if test $ac_cv_lib_resolv_inet_aton = yes; then
17039 cat >>confdefs.h <<_ACEOF
17040 #define HAVE_LIBRESOLV 1
17041 _ACEOF
17043 LIBS="-lresolv $LIBS"
17051 # On Tru64, chflags seems to be present, but calling it will
17052 # exit Python
17053 { echo "$as_me:$LINENO: checking for chflags" >&5
17054 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17055 if test "$cross_compiling" = yes; then
17056 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17057 See \`config.log' for more details." >&5
17058 echo "$as_me: error: cannot run test program while cross compiling
17059 See \`config.log' for more details." >&2;}
17060 { (exit 1); exit 1; }; }
17061 else
17062 cat >conftest.$ac_ext <<_ACEOF
17063 /* confdefs.h. */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17069 #include <sys/stat.h>
17070 #include <unistd.h>
17071 int main(int argc, char*argv[])
17073 if(chflags(argv[0], 0) != 0)
17074 return 1;
17075 return 0;
17078 _ACEOF
17079 rm -f conftest$ac_exeext
17080 if { (ac_try="$ac_link"
17081 case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_link") 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17100 cat >>confdefs.h <<\_ACEOF
17101 #define HAVE_CHFLAGS 1
17102 _ACEOF
17104 { echo "$as_me:$LINENO: result: yes" >&5
17105 echo "${ECHO_T}yes" >&6; }
17106 else
17107 echo "$as_me: program exited with status $ac_status" >&5
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17111 ( exit $ac_status )
17112 { echo "$as_me:$LINENO: result: no" >&5
17113 echo "${ECHO_T}no" >&6; }
17116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17121 { echo "$as_me:$LINENO: checking for lchflags" >&5
17122 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17123 if test "$cross_compiling" = yes; then
17124 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17125 See \`config.log' for more details." >&5
17126 echo "$as_me: error: cannot run test program while cross compiling
17127 See \`config.log' for more details." >&2;}
17128 { (exit 1); exit 1; }; }
17129 else
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h. */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17137 #include <sys/stat.h>
17138 #include <unistd.h>
17139 int main(int argc, char*argv[])
17141 if(lchflags(argv[0], 0) != 0)
17142 return 1;
17143 return 0;
17146 _ACEOF
17147 rm -f conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161 esac
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_try") 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17168 cat >>confdefs.h <<\_ACEOF
17169 #define HAVE_LCHFLAGS 1
17170 _ACEOF
17172 { echo "$as_me:$LINENO: result: yes" >&5
17173 echo "${ECHO_T}yes" >&6; }
17174 else
17175 echo "$as_me: program exited with status $ac_status" >&5
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 ( exit $ac_status )
17180 { echo "$as_me:$LINENO: result: no" >&5
17181 echo "${ECHO_T}no" >&6; }
17184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17189 case $ac_sys_system/$ac_sys_release in
17190 Darwin/*)
17191 _CUR_CFLAGS="${CFLAGS}"
17192 _CUR_LDFLAGS="${LDFLAGS}"
17193 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17194 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17196 esac
17198 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17199 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17200 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17203 ac_check_lib_save_LIBS=$LIBS
17204 LIBS="-lz $LIBS"
17205 cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h. */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17212 /* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17215 #ifdef __cplusplus
17216 extern "C"
17217 #endif
17218 char inflateCopy ();
17220 main ()
17222 return inflateCopy ();
17224 return 0;
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } && {
17241 test -z "$ac_c_werror_flag" ||
17242 test ! -s conftest.err
17243 } && test -s conftest$ac_exeext &&
17244 $as_test_x conftest$ac_exeext; then
17245 ac_cv_lib_z_inflateCopy=yes
17246 else
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 ac_cv_lib_z_inflateCopy=no
17253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17254 conftest$ac_exeext conftest.$ac_ext
17255 LIBS=$ac_check_lib_save_LIBS
17257 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17258 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17259 if test $ac_cv_lib_z_inflateCopy = yes; then
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_ZLIB_COPY 1
17263 _ACEOF
17268 case $ac_sys_system/$ac_sys_release in
17269 Darwin/*)
17270 CFLAGS="${_CUR_CFLAGS}"
17271 LDFLAGS="${_CUR_LDFLAGS}"
17273 esac
17275 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17276 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17277 cat >conftest.$ac_ext <<_ACEOF
17278 /* confdefs.h. */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17284 #include "confdefs.h"
17285 #include <netdb.h>
17288 main ()
17290 void* p = hstrerror; hstrerror(0)
17292 return 0;
17294 _ACEOF
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (ac_try="$ac_link"
17297 case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17300 esac
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302 (eval "$ac_link") 2>conftest.er1
17303 ac_status=$?
17304 grep -v '^ *+' conftest.er1 >conftest.err
17305 rm -f conftest.er1
17306 cat conftest.err >&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } && {
17309 test -z "$ac_c_werror_flag" ||
17310 test ! -s conftest.err
17311 } && test -s conftest$ac_exeext &&
17312 $as_test_x conftest$ac_exeext; then
17314 cat >>confdefs.h <<\_ACEOF
17315 #define HAVE_HSTRERROR 1
17316 _ACEOF
17318 { echo "$as_me:$LINENO: result: yes" >&5
17319 echo "${ECHO_T}yes" >&6; }
17320 else
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 { echo "$as_me:$LINENO: result: no" >&5
17325 echo "${ECHO_T}no" >&6; }
17329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17330 conftest$ac_exeext conftest.$ac_ext
17332 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17333 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17341 #include "confdefs.h"
17342 #include <sys/types.h>
17343 #include <sys/socket.h>
17344 #include <netinet/in.h>
17345 #include <arpa/inet.h>
17348 main ()
17350 void* p = inet_aton;inet_aton(0,0)
17352 return 0;
17354 _ACEOF
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_link") 2>conftest.er1
17363 ac_status=$?
17364 grep -v '^ *+' conftest.er1 >conftest.err
17365 rm -f conftest.er1
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && {
17369 test -z "$ac_c_werror_flag" ||
17370 test ! -s conftest.err
17371 } && test -s conftest$ac_exeext &&
17372 $as_test_x conftest$ac_exeext; then
17374 cat >>confdefs.h <<\_ACEOF
17375 #define HAVE_INET_ATON 1
17376 _ACEOF
17378 { echo "$as_me:$LINENO: result: yes" >&5
17379 echo "${ECHO_T}yes" >&6; }
17380 else
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 { echo "$as_me:$LINENO: result: no" >&5
17385 echo "${ECHO_T}no" >&6; }
17389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17390 conftest$ac_exeext conftest.$ac_ext
17392 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17393 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17394 cat >conftest.$ac_ext <<_ACEOF
17395 /* confdefs.h. */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17401 #include "confdefs.h"
17402 #include <sys/types.h>
17403 #include <sys/socket.h>
17404 #include <netinet/in.h>
17405 #include <arpa/inet.h>
17408 main ()
17410 void* p = inet_pton
17412 return 0;
17414 _ACEOF
17415 rm -f conftest.$ac_objext
17416 if { (ac_try="$ac_compile"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_compile") 2>conftest.er1
17423 ac_status=$?
17424 grep -v '^ *+' conftest.er1 >conftest.err
17425 rm -f conftest.er1
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && {
17429 test -z "$ac_c_werror_flag" ||
17430 test ! -s conftest.err
17431 } && test -s conftest.$ac_objext; then
17433 cat >>confdefs.h <<\_ACEOF
17434 #define HAVE_INET_PTON 1
17435 _ACEOF
17437 { echo "$as_me:$LINENO: result: yes" >&5
17438 echo "${ECHO_T}yes" >&6; }
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 { echo "$as_me:$LINENO: result: no" >&5
17444 echo "${ECHO_T}no" >&6; }
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450 # On some systems, setgroups is in unistd.h, on others, in grp.h
17451 { echo "$as_me:$LINENO: checking for setgroups" >&5
17452 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17460 #include "confdefs.h"
17461 #include <unistd.h>
17462 #ifdef HAVE_GRP_H
17463 #include <grp.h>
17464 #endif
17467 main ()
17469 void* p = setgroups
17471 return 0;
17473 _ACEOF
17474 rm -f conftest.$ac_objext
17475 if { (ac_try="$ac_compile"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479 esac
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_compile") 2>conftest.er1
17482 ac_status=$?
17483 grep -v '^ *+' conftest.er1 >conftest.err
17484 rm -f conftest.er1
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } && {
17488 test -z "$ac_c_werror_flag" ||
17489 test ! -s conftest.err
17490 } && test -s conftest.$ac_objext; then
17492 cat >>confdefs.h <<\_ACEOF
17493 #define HAVE_SETGROUPS 1
17494 _ACEOF
17496 { echo "$as_me:$LINENO: result: yes" >&5
17497 echo "${ECHO_T}yes" >&6; }
17498 else
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 { echo "$as_me:$LINENO: result: no" >&5
17503 echo "${ECHO_T}no" >&6; }
17507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509 # check for openpty and forkpty
17512 for ac_func in openpty
17514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 else
17520 cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h. */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17528 #define $ac_func innocuous_$ac_func
17530 /* System header to define __stub macros and hopefully few prototypes,
17531 which can conflict with char $ac_func (); below.
17532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17533 <limits.h> exists even on freestanding compilers. */
17535 #ifdef __STDC__
17536 # include <limits.h>
17537 #else
17538 # include <assert.h>
17539 #endif
17541 #undef $ac_func
17543 /* Override any GCC internal prototype to avoid an error.
17544 Use char because int might match the return type of a GCC
17545 builtin and then its argument prototype would still apply. */
17546 #ifdef __cplusplus
17547 extern "C"
17548 #endif
17549 char $ac_func ();
17550 /* The GNU C library defines this for functions which it implements
17551 to always fail with ENOSYS. Some functions are actually named
17552 something starting with __ and the normal name is an alias. */
17553 #if defined __stub_$ac_func || defined __stub___$ac_func
17554 choke me
17555 #endif
17558 main ()
17560 return $ac_func ();
17562 return 0;
17564 _ACEOF
17565 rm -f conftest.$ac_objext conftest$ac_exeext
17566 if { (ac_try="$ac_link"
17567 case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17570 esac
17571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_link") 2>conftest.er1
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } && {
17579 test -z "$ac_c_werror_flag" ||
17580 test ! -s conftest.err
17581 } && test -s conftest$ac_exeext &&
17582 $as_test_x conftest$ac_exeext; then
17583 eval "$as_ac_var=yes"
17584 else
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 eval "$as_ac_var=no"
17591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17592 conftest$ac_exeext conftest.$ac_ext
17594 ac_res=`eval echo '${'$as_ac_var'}'`
17595 { echo "$as_me:$LINENO: result: $ac_res" >&5
17596 echo "${ECHO_T}$ac_res" >&6; }
17597 if test `eval echo '${'$as_ac_var'}'` = yes; then
17598 cat >>confdefs.h <<_ACEOF
17599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17600 _ACEOF
17602 else
17603 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17604 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17605 if test "${ac_cv_lib_util_openpty+set}" = set; then
17606 echo $ECHO_N "(cached) $ECHO_C" >&6
17607 else
17608 ac_check_lib_save_LIBS=$LIBS
17609 LIBS="-lutil $LIBS"
17610 cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h. */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17617 /* Override any GCC internal prototype to avoid an error.
17618 Use char because int might match the return type of a GCC
17619 builtin and then its argument prototype would still apply. */
17620 #ifdef __cplusplus
17621 extern "C"
17622 #endif
17623 char openpty ();
17625 main ()
17627 return openpty ();
17629 return 0;
17631 _ACEOF
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17637 esac
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_link") 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } && {
17646 test -z "$ac_c_werror_flag" ||
17647 test ! -s conftest.err
17648 } && test -s conftest$ac_exeext &&
17649 $as_test_x conftest$ac_exeext; then
17650 ac_cv_lib_util_openpty=yes
17651 else
17652 echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17655 ac_cv_lib_util_openpty=no
17658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17659 conftest$ac_exeext conftest.$ac_ext
17660 LIBS=$ac_check_lib_save_LIBS
17662 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17663 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17664 if test $ac_cv_lib_util_openpty = yes; then
17665 cat >>confdefs.h <<\_ACEOF
17666 #define HAVE_OPENPTY 1
17667 _ACEOF
17668 LIBS="$LIBS -lutil"
17669 else
17670 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17671 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17672 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17674 else
17675 ac_check_lib_save_LIBS=$LIBS
17676 LIBS="-lbsd $LIBS"
17677 cat >conftest.$ac_ext <<_ACEOF
17678 /* confdefs.h. */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17684 /* Override any GCC internal prototype to avoid an error.
17685 Use char because int might match the return type of a GCC
17686 builtin and then its argument prototype would still apply. */
17687 #ifdef __cplusplus
17688 extern "C"
17689 #endif
17690 char openpty ();
17692 main ()
17694 return openpty ();
17696 return 0;
17698 _ACEOF
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (ac_try="$ac_link"
17701 case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17704 esac
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_link") 2>conftest.er1
17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && {
17713 test -z "$ac_c_werror_flag" ||
17714 test ! -s conftest.err
17715 } && test -s conftest$ac_exeext &&
17716 $as_test_x conftest$ac_exeext; then
17717 ac_cv_lib_bsd_openpty=yes
17718 else
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ac_cv_lib_bsd_openpty=no
17725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17726 conftest$ac_exeext conftest.$ac_ext
17727 LIBS=$ac_check_lib_save_LIBS
17729 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17730 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17731 if test $ac_cv_lib_bsd_openpty = yes; then
17732 cat >>confdefs.h <<\_ACEOF
17733 #define HAVE_OPENPTY 1
17734 _ACEOF
17735 LIBS="$LIBS -lbsd"
17743 done
17746 for ac_func in forkpty
17748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754 cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h. */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17762 #define $ac_func innocuous_$ac_func
17764 /* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char $ac_func (); below.
17766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767 <limits.h> exists even on freestanding compilers. */
17769 #ifdef __STDC__
17770 # include <limits.h>
17771 #else
17772 # include <assert.h>
17773 #endif
17775 #undef $ac_func
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 char $ac_func ();
17784 /* The GNU C library defines this for functions which it implements
17785 to always fail with ENOSYS. Some functions are actually named
17786 something starting with __ and the normal name is an alias. */
17787 #if defined __stub_$ac_func || defined __stub___$ac_func
17788 choke me
17789 #endif
17792 main ()
17794 return $ac_func ();
17796 return 0;
17798 _ACEOF
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (ac_try="$ac_link"
17801 case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804 esac
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_link") 2>conftest.er1
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } && {
17813 test -z "$ac_c_werror_flag" ||
17814 test ! -s conftest.err
17815 } && test -s conftest$ac_exeext &&
17816 $as_test_x conftest$ac_exeext; then
17817 eval "$as_ac_var=yes"
17818 else
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17822 eval "$as_ac_var=no"
17825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17826 conftest$ac_exeext conftest.$ac_ext
17828 ac_res=`eval echo '${'$as_ac_var'}'`
17829 { echo "$as_me:$LINENO: result: $ac_res" >&5
17830 echo "${ECHO_T}$ac_res" >&6; }
17831 if test `eval echo '${'$as_ac_var'}'` = yes; then
17832 cat >>confdefs.h <<_ACEOF
17833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17834 _ACEOF
17836 else
17837 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17838 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17839 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17841 else
17842 ac_check_lib_save_LIBS=$LIBS
17843 LIBS="-lutil $LIBS"
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h. */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17851 /* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17854 #ifdef __cplusplus
17855 extern "C"
17856 #endif
17857 char forkpty ();
17859 main ()
17861 return forkpty ();
17863 return 0;
17865 _ACEOF
17866 rm -f conftest.$ac_objext conftest$ac_exeext
17867 if { (ac_try="$ac_link"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17871 esac
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873 (eval "$ac_link") 2>conftest.er1
17874 ac_status=$?
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } && {
17880 test -z "$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 } && test -s conftest$ac_exeext &&
17883 $as_test_x conftest$ac_exeext; then
17884 ac_cv_lib_util_forkpty=yes
17885 else
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ac_cv_lib_util_forkpty=no
17892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17893 conftest$ac_exeext conftest.$ac_ext
17894 LIBS=$ac_check_lib_save_LIBS
17896 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17897 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17898 if test $ac_cv_lib_util_forkpty = yes; then
17899 cat >>confdefs.h <<\_ACEOF
17900 #define HAVE_FORKPTY 1
17901 _ACEOF
17902 LIBS="$LIBS -lutil"
17903 else
17904 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17905 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17906 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909 ac_check_lib_save_LIBS=$LIBS
17910 LIBS="-lbsd $LIBS"
17911 cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h. */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17921 #ifdef __cplusplus
17922 extern "C"
17923 #endif
17924 char forkpty ();
17926 main ()
17928 return forkpty ();
17930 return 0;
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
17935 case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_link") 2>conftest.er1
17941 ac_status=$?
17942 grep -v '^ *+' conftest.er1 >conftest.err
17943 rm -f conftest.er1
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } && {
17947 test -z "$ac_c_werror_flag" ||
17948 test ! -s conftest.err
17949 } && test -s conftest$ac_exeext &&
17950 $as_test_x conftest$ac_exeext; then
17951 ac_cv_lib_bsd_forkpty=yes
17952 else
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 ac_cv_lib_bsd_forkpty=no
17959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17964 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17965 if test $ac_cv_lib_bsd_forkpty = yes; then
17966 cat >>confdefs.h <<\_ACEOF
17967 #define HAVE_FORKPTY 1
17968 _ACEOF
17969 LIBS="$LIBS -lbsd"
17977 done
17980 # Stuff for expat.
17982 for ac_func in memmove
17984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h. */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17998 #define $ac_func innocuous_$ac_func
18000 /* System header to define __stub macros and hopefully few prototypes,
18001 which can conflict with char $ac_func (); below.
18002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18003 <limits.h> exists even on freestanding compilers. */
18005 #ifdef __STDC__
18006 # include <limits.h>
18007 #else
18008 # include <assert.h>
18009 #endif
18011 #undef $ac_func
18013 /* Override any GCC internal prototype to avoid an error.
18014 Use char because int might match the return type of a GCC
18015 builtin and then its argument prototype would still apply. */
18016 #ifdef __cplusplus
18017 extern "C"
18018 #endif
18019 char $ac_func ();
18020 /* The GNU C library defines this for functions which it implements
18021 to always fail with ENOSYS. Some functions are actually named
18022 something starting with __ and the normal name is an alias. */
18023 #if defined __stub_$ac_func || defined __stub___$ac_func
18024 choke me
18025 #endif
18028 main ()
18030 return $ac_func ();
18032 return 0;
18034 _ACEOF
18035 rm -f conftest.$ac_objext conftest$ac_exeext
18036 if { (ac_try="$ac_link"
18037 case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18040 esac
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_link") 2>conftest.er1
18043 ac_status=$?
18044 grep -v '^ *+' conftest.er1 >conftest.err
18045 rm -f conftest.er1
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && {
18049 test -z "$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18051 } && test -s conftest$ac_exeext &&
18052 $as_test_x conftest$ac_exeext; then
18053 eval "$as_ac_var=yes"
18054 else
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 eval "$as_ac_var=no"
18061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18062 conftest$ac_exeext conftest.$ac_ext
18064 ac_res=`eval echo '${'$as_ac_var'}'`
18065 { echo "$as_me:$LINENO: result: $ac_res" >&5
18066 echo "${ECHO_T}$ac_res" >&6; }
18067 if test `eval echo '${'$as_ac_var'}'` = yes; then
18068 cat >>confdefs.h <<_ACEOF
18069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18070 _ACEOF
18073 done
18076 # check for long file support functions
18083 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091 cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h. */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18099 #define $ac_func innocuous_$ac_func
18101 /* System header to define __stub macros and hopefully few prototypes,
18102 which can conflict with char $ac_func (); below.
18103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18104 <limits.h> exists even on freestanding compilers. */
18106 #ifdef __STDC__
18107 # include <limits.h>
18108 #else
18109 # include <assert.h>
18110 #endif
18112 #undef $ac_func
18114 /* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18117 #ifdef __cplusplus
18118 extern "C"
18119 #endif
18120 char $ac_func ();
18121 /* The GNU C library defines this for functions which it implements
18122 to always fail with ENOSYS. Some functions are actually named
18123 something starting with __ and the normal name is an alias. */
18124 #if defined __stub_$ac_func || defined __stub___$ac_func
18125 choke me
18126 #endif
18129 main ()
18131 return $ac_func ();
18133 return 0;
18135 _ACEOF
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest$ac_exeext &&
18153 $as_test_x conftest$ac_exeext; then
18154 eval "$as_ac_var=yes"
18155 else
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 eval "$as_ac_var=no"
18162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18163 conftest$ac_exeext conftest.$ac_ext
18165 ac_res=`eval echo '${'$as_ac_var'}'`
18166 { echo "$as_me:$LINENO: result: $ac_res" >&5
18167 echo "${ECHO_T}$ac_res" >&6; }
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169 cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18171 _ACEOF
18174 done
18180 for ac_func in dup2 getcwd strdup
18182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18187 else
18188 cat >conftest.$ac_ext <<_ACEOF
18189 /* confdefs.h. */
18190 _ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18196 #define $ac_func innocuous_$ac_func
18198 /* System header to define __stub macros and hopefully few prototypes,
18199 which can conflict with char $ac_func (); below.
18200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18201 <limits.h> exists even on freestanding compilers. */
18203 #ifdef __STDC__
18204 # include <limits.h>
18205 #else
18206 # include <assert.h>
18207 #endif
18209 #undef $ac_func
18211 /* Override any GCC internal prototype to avoid an error.
18212 Use char because int might match the return type of a GCC
18213 builtin and then its argument prototype would still apply. */
18214 #ifdef __cplusplus
18215 extern "C"
18216 #endif
18217 char $ac_func ();
18218 /* The GNU C library defines this for functions which it implements
18219 to always fail with ENOSYS. Some functions are actually named
18220 something starting with __ and the normal name is an alias. */
18221 #if defined __stub_$ac_func || defined __stub___$ac_func
18222 choke me
18223 #endif
18226 main ()
18228 return $ac_func ();
18230 return 0;
18232 _ACEOF
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (ac_try="$ac_link"
18235 case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_link") 2>conftest.er1
18241 ac_status=$?
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } && {
18247 test -z "$ac_c_werror_flag" ||
18248 test ! -s conftest.err
18249 } && test -s conftest$ac_exeext &&
18250 $as_test_x conftest$ac_exeext; then
18251 eval "$as_ac_var=yes"
18252 else
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 eval "$as_ac_var=no"
18259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18260 conftest$ac_exeext conftest.$ac_ext
18262 ac_res=`eval echo '${'$as_ac_var'}'`
18263 { echo "$as_me:$LINENO: result: $ac_res" >&5
18264 echo "${ECHO_T}$ac_res" >&6; }
18265 if test `eval echo '${'$as_ac_var'}'` = yes; then
18266 cat >>confdefs.h <<_ACEOF
18267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18268 _ACEOF
18270 else
18271 case " $LIBOBJS " in
18272 *" $ac_func.$ac_objext "* ) ;;
18273 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18275 esac
18278 done
18282 for ac_func in getpgrp
18284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290 cat >conftest.$ac_ext <<_ACEOF
18291 /* confdefs.h. */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18298 #define $ac_func innocuous_$ac_func
18300 /* System header to define __stub macros and hopefully few prototypes,
18301 which can conflict with char $ac_func (); below.
18302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18303 <limits.h> exists even on freestanding compilers. */
18305 #ifdef __STDC__
18306 # include <limits.h>
18307 #else
18308 # include <assert.h>
18309 #endif
18311 #undef $ac_func
18313 /* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18316 #ifdef __cplusplus
18317 extern "C"
18318 #endif
18319 char $ac_func ();
18320 /* The GNU C library defines this for functions which it implements
18321 to always fail with ENOSYS. Some functions are actually named
18322 something starting with __ and the normal name is an alias. */
18323 #if defined __stub_$ac_func || defined __stub___$ac_func
18324 choke me
18325 #endif
18328 main ()
18330 return $ac_func ();
18332 return 0;
18334 _ACEOF
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_link") 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } && {
18349 test -z "$ac_c_werror_flag" ||
18350 test ! -s conftest.err
18351 } && test -s conftest$ac_exeext &&
18352 $as_test_x conftest$ac_exeext; then
18353 eval "$as_ac_var=yes"
18354 else
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 eval "$as_ac_var=no"
18361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18362 conftest$ac_exeext conftest.$ac_ext
18364 ac_res=`eval echo '${'$as_ac_var'}'`
18365 { echo "$as_me:$LINENO: result: $ac_res" >&5
18366 echo "${ECHO_T}$ac_res" >&6; }
18367 if test `eval echo '${'$as_ac_var'}'` = yes; then
18368 cat >>confdefs.h <<_ACEOF
18369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18370 _ACEOF
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h. */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 #include <unistd.h>
18379 main ()
18381 getpgrp(0);
18383 return 0;
18385 _ACEOF
18386 rm -f conftest.$ac_objext
18387 if { (ac_try="$ac_compile"
18388 case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18391 esac
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_compile") 2>conftest.er1
18394 ac_status=$?
18395 grep -v '^ *+' conftest.er1 >conftest.err
18396 rm -f conftest.er1
18397 cat conftest.err >&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } && {
18400 test -z "$ac_c_werror_flag" ||
18401 test ! -s conftest.err
18402 } && test -s conftest.$ac_objext; then
18404 cat >>confdefs.h <<\_ACEOF
18405 #define GETPGRP_HAVE_ARG 1
18406 _ACEOF
18409 else
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18419 done
18422 for ac_func in setpgrp
18424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 else
18430 cat >conftest.$ac_ext <<_ACEOF
18431 /* confdefs.h. */
18432 _ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18438 #define $ac_func innocuous_$ac_func
18440 /* System header to define __stub macros and hopefully few prototypes,
18441 which can conflict with char $ac_func (); below.
18442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18443 <limits.h> exists even on freestanding compilers. */
18445 #ifdef __STDC__
18446 # include <limits.h>
18447 #else
18448 # include <assert.h>
18449 #endif
18451 #undef $ac_func
18453 /* Override any GCC internal prototype to avoid an error.
18454 Use char because int might match the return type of a GCC
18455 builtin and then its argument prototype would still apply. */
18456 #ifdef __cplusplus
18457 extern "C"
18458 #endif
18459 char $ac_func ();
18460 /* The GNU C library defines this for functions which it implements
18461 to always fail with ENOSYS. Some functions are actually named
18462 something starting with __ and the normal name is an alias. */
18463 #if defined __stub_$ac_func || defined __stub___$ac_func
18464 choke me
18465 #endif
18468 main ()
18470 return $ac_func ();
18472 return 0;
18474 _ACEOF
18475 rm -f conftest.$ac_objext conftest$ac_exeext
18476 if { (ac_try="$ac_link"
18477 case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18480 esac
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_link") 2>conftest.er1
18483 ac_status=$?
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest$ac_exeext &&
18492 $as_test_x conftest$ac_exeext; then
18493 eval "$as_ac_var=yes"
18494 else
18495 echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 eval "$as_ac_var=no"
18501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18502 conftest$ac_exeext conftest.$ac_ext
18504 ac_res=`eval echo '${'$as_ac_var'}'`
18505 { echo "$as_me:$LINENO: result: $ac_res" >&5
18506 echo "${ECHO_T}$ac_res" >&6; }
18507 if test `eval echo '${'$as_ac_var'}'` = yes; then
18508 cat >>confdefs.h <<_ACEOF
18509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18510 _ACEOF
18511 cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h. */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 #include <unistd.h>
18519 main ()
18521 setpgrp(0,0);
18523 return 0;
18525 _ACEOF
18526 rm -f conftest.$ac_objext
18527 if { (ac_try="$ac_compile"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_compile") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest.$ac_objext; then
18544 cat >>confdefs.h <<\_ACEOF
18545 #define SETPGRP_HAVE_ARG 1
18546 _ACEOF
18549 else
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18559 done
18562 for ac_func in gettimeofday
18564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570 cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h. */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18578 #define $ac_func innocuous_$ac_func
18580 /* System header to define __stub macros and hopefully few prototypes,
18581 which can conflict with char $ac_func (); below.
18582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18583 <limits.h> exists even on freestanding compilers. */
18585 #ifdef __STDC__
18586 # include <limits.h>
18587 #else
18588 # include <assert.h>
18589 #endif
18591 #undef $ac_func
18593 /* Override any GCC internal prototype to avoid an error.
18594 Use char because int might match the return type of a GCC
18595 builtin and then its argument prototype would still apply. */
18596 #ifdef __cplusplus
18597 extern "C"
18598 #endif
18599 char $ac_func ();
18600 /* The GNU C library defines this for functions which it implements
18601 to always fail with ENOSYS. Some functions are actually named
18602 something starting with __ and the normal name is an alias. */
18603 #if defined __stub_$ac_func || defined __stub___$ac_func
18604 choke me
18605 #endif
18608 main ()
18610 return $ac_func ();
18612 return 0;
18614 _ACEOF
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (ac_try="$ac_link"
18617 case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_link") 2>conftest.er1
18623 ac_status=$?
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } && {
18629 test -z "$ac_c_werror_flag" ||
18630 test ! -s conftest.err
18631 } && test -s conftest$ac_exeext &&
18632 $as_test_x conftest$ac_exeext; then
18633 eval "$as_ac_var=yes"
18634 else
18635 echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18638 eval "$as_ac_var=no"
18641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18642 conftest$ac_exeext conftest.$ac_ext
18644 ac_res=`eval echo '${'$as_ac_var'}'`
18645 { echo "$as_me:$LINENO: result: $ac_res" >&5
18646 echo "${ECHO_T}$ac_res" >&6; }
18647 if test `eval echo '${'$as_ac_var'}'` = yes; then
18648 cat >>confdefs.h <<_ACEOF
18649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18650 _ACEOF
18651 cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h. */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 #include <sys/time.h>
18659 main ()
18661 gettimeofday((struct timeval*)0,(struct timezone*)0);
18663 return 0;
18665 _ACEOF
18666 rm -f conftest.$ac_objext
18667 if { (ac_try="$ac_compile"
18668 case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18671 esac
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_compile") 2>conftest.er1
18674 ac_status=$?
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } && {
18680 test -z "$ac_c_werror_flag" ||
18681 test ! -s conftest.err
18682 } && test -s conftest.$ac_objext; then
18684 else
18685 echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18689 cat >>confdefs.h <<\_ACEOF
18690 #define GETTIMEOFDAY_NO_TZ 1
18691 _ACEOF
18696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699 done
18702 { echo "$as_me:$LINENO: checking for major" >&5
18703 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18704 cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h. */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18711 #if defined(MAJOR_IN_MKDEV)
18712 #include <sys/mkdev.h>
18713 #elif defined(MAJOR_IN_SYSMACROS)
18714 #include <sys/sysmacros.h>
18715 #else
18716 #include <sys/types.h>
18717 #endif
18720 main ()
18723 makedev(major(0),minor(0));
18726 return 0;
18728 _ACEOF
18729 rm -f conftest.$ac_objext conftest$ac_exeext
18730 if { (ac_try="$ac_link"
18731 case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18734 esac
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_link") 2>conftest.er1
18737 ac_status=$?
18738 grep -v '^ *+' conftest.er1 >conftest.err
18739 rm -f conftest.er1
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } && {
18743 test -z "$ac_c_werror_flag" ||
18744 test ! -s conftest.err
18745 } && test -s conftest$ac_exeext &&
18746 $as_test_x conftest$ac_exeext; then
18749 cat >>confdefs.h <<\_ACEOF
18750 #define HAVE_DEVICE_MACROS 1
18751 _ACEOF
18753 { echo "$as_me:$LINENO: result: yes" >&5
18754 echo "${ECHO_T}yes" >&6; }
18756 else
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18761 { echo "$as_me:$LINENO: result: no" >&5
18762 echo "${ECHO_T}no" >&6; }
18766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18767 conftest$ac_exeext conftest.$ac_ext
18769 # On OSF/1 V5.1, getaddrinfo is available, but a define
18770 # for [no]getaddrinfo in netdb.h.
18771 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18772 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18773 cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h. */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18780 #include <sys/types.h>
18781 #include <sys/socket.h>
18782 #include <netdb.h>
18783 #include <stdio.h>
18786 main ()
18789 getaddrinfo(NULL, NULL, NULL, NULL);
18792 return 0;
18794 _ACEOF
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18803 ac_status=$?
18804 grep -v '^ *+' conftest.er1 >conftest.err
18805 rm -f conftest.er1
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest$ac_exeext &&
18812 $as_test_x conftest$ac_exeext; then
18814 { echo "$as_me:$LINENO: result: yes" >&5
18815 echo "${ECHO_T}yes" >&6; }
18816 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18817 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18818 if test "$cross_compiling" = yes; then
18819 { echo "$as_me:$LINENO: result: buggy" >&5
18820 echo "${ECHO_T}buggy" >&6; }
18821 buggygetaddrinfo=yes
18822 else
18823 cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h. */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18830 #include <sys/types.h>
18831 #include <netdb.h>
18832 #include <string.h>
18833 #include <sys/socket.h>
18834 #include <netinet/in.h>
18836 main()
18838 int passive, gaierr, inet4 = 0, inet6 = 0;
18839 struct addrinfo hints, *ai, *aitop;
18840 char straddr[INET6_ADDRSTRLEN], strport[16];
18842 for (passive = 0; passive <= 1; passive++) {
18843 memset(&hints, 0, sizeof(hints));
18844 hints.ai_family = AF_UNSPEC;
18845 hints.ai_flags = passive ? AI_PASSIVE : 0;
18846 hints.ai_socktype = SOCK_STREAM;
18847 hints.ai_protocol = IPPROTO_TCP;
18848 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18849 (void)gai_strerror(gaierr);
18850 goto bad;
18852 for (ai = aitop; ai; ai = ai->ai_next) {
18853 if (ai->ai_addr == NULL ||
18854 ai->ai_addrlen == 0 ||
18855 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18856 straddr, sizeof(straddr), strport, sizeof(strport),
18857 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18858 goto bad;
18860 switch (ai->ai_family) {
18861 case AF_INET:
18862 if (strcmp(strport, "54321") != 0) {
18863 goto bad;
18865 if (passive) {
18866 if (strcmp(straddr, "0.0.0.0") != 0) {
18867 goto bad;
18869 } else {
18870 if (strcmp(straddr, "127.0.0.1") != 0) {
18871 goto bad;
18874 inet4++;
18875 break;
18876 case AF_INET6:
18877 if (strcmp(strport, "54321") != 0) {
18878 goto bad;
18880 if (passive) {
18881 if (strcmp(straddr, "::") != 0) {
18882 goto bad;
18884 } else {
18885 if (strcmp(straddr, "::1") != 0) {
18886 goto bad;
18889 inet6++;
18890 break;
18891 case AF_UNSPEC:
18892 goto bad;
18893 break;
18894 default:
18895 /* another family support? */
18896 break;
18901 if (!(inet4 == 0 || inet4 == 2))
18902 goto bad;
18903 if (!(inet6 == 0 || inet6 == 2))
18904 goto bad;
18906 if (aitop)
18907 freeaddrinfo(aitop);
18908 exit(0);
18910 bad:
18911 if (aitop)
18912 freeaddrinfo(aitop);
18913 exit(1);
18916 _ACEOF
18917 rm -f conftest$ac_exeext
18918 if { (ac_try="$ac_link"
18919 case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18922 esac
18923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_link") 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18928 { (case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18931 esac
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_try") 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 { echo "$as_me:$LINENO: result: good" >&5
18938 echo "${ECHO_T}good" >&6; }
18939 buggygetaddrinfo=no
18940 else
18941 echo "$as_me: program exited with status $ac_status" >&5
18942 echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18945 ( exit $ac_status )
18946 { echo "$as_me:$LINENO: result: buggy" >&5
18947 echo "${ECHO_T}buggy" >&6; }
18948 buggygetaddrinfo=yes
18950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18954 else
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18959 { echo "$as_me:$LINENO: result: no" >&5
18960 echo "${ECHO_T}no" >&6; }
18961 buggygetaddrinfo=yes
18965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18966 conftest$ac_exeext conftest.$ac_ext
18968 if test "$buggygetaddrinfo" = "yes"; then
18969 if test "$ipv6" = "yes"; then
18970 echo 'Fatal: You must get working getaddrinfo() function.'
18971 echo ' or you can specify "--disable-ipv6"'.
18972 exit 1
18974 else
18976 cat >>confdefs.h <<\_ACEOF
18977 #define HAVE_GETADDRINFO 1
18978 _ACEOF
18982 for ac_func in getnameinfo
18984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990 cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h. */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998 #define $ac_func innocuous_$ac_func
19000 /* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char $ac_func (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19005 #ifdef __STDC__
19006 # include <limits.h>
19007 #else
19008 # include <assert.h>
19009 #endif
19011 #undef $ac_func
19013 /* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19016 #ifdef __cplusplus
19017 extern "C"
19018 #endif
19019 char $ac_func ();
19020 /* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023 #if defined __stub_$ac_func || defined __stub___$ac_func
19024 choke me
19025 #endif
19028 main ()
19030 return $ac_func ();
19032 return 0;
19034 _ACEOF
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19043 ac_status=$?
19044 grep -v '^ *+' conftest.er1 >conftest.err
19045 rm -f conftest.er1
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && {
19049 test -z "$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19051 } && test -s conftest$ac_exeext &&
19052 $as_test_x conftest$ac_exeext; then
19053 eval "$as_ac_var=yes"
19054 else
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 eval "$as_ac_var=no"
19061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062 conftest$ac_exeext conftest.$ac_ext
19064 ac_res=`eval echo '${'$as_ac_var'}'`
19065 { echo "$as_me:$LINENO: result: $ac_res" >&5
19066 echo "${ECHO_T}$ac_res" >&6; }
19067 if test `eval echo '${'$as_ac_var'}'` = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19070 _ACEOF
19073 done
19076 # checks for structures
19077 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19078 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19079 if test "${ac_cv_header_time+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19082 cat >conftest.$ac_ext <<_ACEOF
19083 /* confdefs.h. */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19088 #include <sys/types.h>
19089 #include <sys/time.h>
19090 #include <time.h>
19093 main ()
19095 if ((struct tm *) 0)
19096 return 0;
19098 return 0;
19100 _ACEOF
19101 rm -f conftest.$ac_objext
19102 if { (ac_try="$ac_compile"
19103 case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19106 esac
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_compile") 2>conftest.er1
19109 ac_status=$?
19110 grep -v '^ *+' conftest.er1 >conftest.err
19111 rm -f conftest.er1
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } && {
19115 test -z "$ac_c_werror_flag" ||
19116 test ! -s conftest.err
19117 } && test -s conftest.$ac_objext; then
19118 ac_cv_header_time=yes
19119 else
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19123 ac_cv_header_time=no
19126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19128 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19129 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19130 if test $ac_cv_header_time = yes; then
19132 cat >>confdefs.h <<\_ACEOF
19133 #define TIME_WITH_SYS_TIME 1
19134 _ACEOF
19138 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19139 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19140 if test "${ac_cv_struct_tm+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h. */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 #include <sys/types.h>
19150 #include <time.h>
19153 main ()
19155 struct tm tm;
19156 int *p = &tm.tm_sec;
19157 return !p;
19159 return 0;
19161 _ACEOF
19162 rm -f conftest.$ac_objext
19163 if { (ac_try="$ac_compile"
19164 case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_compile") 2>conftest.er1
19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } && {
19176 test -z "$ac_c_werror_flag" ||
19177 test ! -s conftest.err
19178 } && test -s conftest.$ac_objext; then
19179 ac_cv_struct_tm=time.h
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_cv_struct_tm=sys/time.h
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19190 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19191 if test $ac_cv_struct_tm = sys/time.h; then
19193 cat >>confdefs.h <<\_ACEOF
19194 #define TM_IN_SYS_TIME 1
19195 _ACEOF
19199 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19200 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19201 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19203 else
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h. */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210 #include <sys/types.h>
19211 #include <$ac_cv_struct_tm>
19215 main ()
19217 static struct tm ac_aggr;
19218 if (ac_aggr.tm_zone)
19219 return 0;
19221 return 0;
19223 _ACEOF
19224 rm -f conftest.$ac_objext
19225 if { (ac_try="$ac_compile"
19226 case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19229 esac
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_compile") 2>conftest.er1
19232 ac_status=$?
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } && {
19238 test -z "$ac_c_werror_flag" ||
19239 test ! -s conftest.err
19240 } && test -s conftest.$ac_objext; then
19241 ac_cv_member_struct_tm_tm_zone=yes
19242 else
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19246 cat >conftest.$ac_ext <<_ACEOF
19247 /* confdefs.h. */
19248 _ACEOF
19249 cat confdefs.h >>conftest.$ac_ext
19250 cat >>conftest.$ac_ext <<_ACEOF
19251 /* end confdefs.h. */
19252 #include <sys/types.h>
19253 #include <$ac_cv_struct_tm>
19257 main ()
19259 static struct tm ac_aggr;
19260 if (sizeof ac_aggr.tm_zone)
19261 return 0;
19263 return 0;
19265 _ACEOF
19266 rm -f conftest.$ac_objext
19267 if { (ac_try="$ac_compile"
19268 case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19271 esac
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_compile") 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } && {
19280 test -z "$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 } && test -s conftest.$ac_objext; then
19283 ac_cv_member_struct_tm_tm_zone=yes
19284 else
19285 echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19288 ac_cv_member_struct_tm_tm_zone=no
19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19297 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19298 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19300 cat >>confdefs.h <<_ACEOF
19301 #define HAVE_STRUCT_TM_TM_ZONE 1
19302 _ACEOF
19307 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19309 cat >>confdefs.h <<\_ACEOF
19310 #define HAVE_TM_ZONE 1
19311 _ACEOF
19313 else
19314 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19315 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19316 if test "${ac_cv_have_decl_tzname+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319 cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h. */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 #include <time.h>
19328 main ()
19330 #ifndef tzname
19331 (void) tzname;
19332 #endif
19335 return 0;
19337 _ACEOF
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest.$ac_objext; then
19355 ac_cv_have_decl_tzname=yes
19356 else
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 ac_cv_have_decl_tzname=no
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19366 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19367 if test $ac_cv_have_decl_tzname = yes; then
19369 cat >>confdefs.h <<_ACEOF
19370 #define HAVE_DECL_TZNAME 1
19371 _ACEOF
19374 else
19375 cat >>confdefs.h <<_ACEOF
19376 #define HAVE_DECL_TZNAME 0
19377 _ACEOF
19383 { echo "$as_me:$LINENO: checking for tzname" >&5
19384 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19385 if test "${ac_cv_var_tzname+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 else
19388 cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h. */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19394 #include <time.h>
19395 #if !HAVE_DECL_TZNAME
19396 extern char *tzname[];
19397 #endif
19400 main ()
19402 return tzname[0][0];
19404 return 0;
19406 _ACEOF
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (ac_try="$ac_link"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_link") 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest$ac_exeext &&
19424 $as_test_x conftest$ac_exeext; then
19425 ac_cv_var_tzname=yes
19426 else
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 ac_cv_var_tzname=no
19433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19434 conftest$ac_exeext conftest.$ac_ext
19436 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19437 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19438 if test $ac_cv_var_tzname = yes; then
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_TZNAME 1
19442 _ACEOF
19447 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19448 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19449 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 else
19452 cat >conftest.$ac_ext <<_ACEOF
19453 /* confdefs.h. */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19458 $ac_includes_default
19460 main ()
19462 static struct stat ac_aggr;
19463 if (ac_aggr.st_rdev)
19464 return 0;
19466 return 0;
19468 _ACEOF
19469 rm -f conftest.$ac_objext
19470 if { (ac_try="$ac_compile"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_compile") 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest.$ac_objext; then
19486 ac_cv_member_struct_stat_st_rdev=yes
19487 else
19488 echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19491 cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h. */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19497 $ac_includes_default
19499 main ()
19501 static struct stat ac_aggr;
19502 if (sizeof ac_aggr.st_rdev)
19503 return 0;
19505 return 0;
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (ac_try="$ac_compile"
19510 case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_compile") 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } && {
19522 test -z "$ac_c_werror_flag" ||
19523 test ! -s conftest.err
19524 } && test -s conftest.$ac_objext; then
19525 ac_cv_member_struct_stat_st_rdev=yes
19526 else
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_member_struct_stat_st_rdev=no
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19539 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19540 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_STRUCT_STAT_ST_RDEV 1
19544 _ACEOF
19549 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19550 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19551 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 else
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h. */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 $ac_includes_default
19562 main ()
19564 static struct stat ac_aggr;
19565 if (ac_aggr.st_blksize)
19566 return 0;
19568 return 0;
19570 _ACEOF
19571 rm -f conftest.$ac_objext
19572 if { (ac_try="$ac_compile"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_compile") 2>conftest.er1
19579 ac_status=$?
19580 grep -v '^ *+' conftest.er1 >conftest.err
19581 rm -f conftest.er1
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } && {
19585 test -z "$ac_c_werror_flag" ||
19586 test ! -s conftest.err
19587 } && test -s conftest.$ac_objext; then
19588 ac_cv_member_struct_stat_st_blksize=yes
19589 else
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h. */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 $ac_includes_default
19601 main ()
19603 static struct stat ac_aggr;
19604 if (sizeof ac_aggr.st_blksize)
19605 return 0;
19607 return 0;
19609 _ACEOF
19610 rm -f conftest.$ac_objext
19611 if { (ac_try="$ac_compile"
19612 case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615 esac
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_compile") 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } && {
19624 test -z "$ac_c_werror_flag" ||
19625 test ! -s conftest.err
19626 } && test -s conftest.$ac_objext; then
19627 ac_cv_member_struct_stat_st_blksize=yes
19628 else
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 ac_cv_member_struct_stat_st_blksize=no
19635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19641 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19642 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19644 cat >>confdefs.h <<_ACEOF
19645 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19646 _ACEOF
19651 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19652 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19653 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 else
19656 cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h. */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 $ac_includes_default
19664 main ()
19666 static struct stat ac_aggr;
19667 if (ac_aggr.st_flags)
19668 return 0;
19670 return 0;
19672 _ACEOF
19673 rm -f conftest.$ac_objext
19674 if { (ac_try="$ac_compile"
19675 case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_compile") 2>conftest.er1
19681 ac_status=$?
19682 grep -v '^ *+' conftest.er1 >conftest.err
19683 rm -f conftest.er1
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } && {
19687 test -z "$ac_c_werror_flag" ||
19688 test ! -s conftest.err
19689 } && test -s conftest.$ac_objext; then
19690 ac_cv_member_struct_stat_st_flags=yes
19691 else
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h. */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19701 $ac_includes_default
19703 main ()
19705 static struct stat ac_aggr;
19706 if (sizeof ac_aggr.st_flags)
19707 return 0;
19709 return 0;
19711 _ACEOF
19712 rm -f conftest.$ac_objext
19713 if { (ac_try="$ac_compile"
19714 case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717 esac
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_compile") 2>conftest.er1
19720 ac_status=$?
19721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } && {
19726 test -z "$ac_c_werror_flag" ||
19727 test ! -s conftest.err
19728 } && test -s conftest.$ac_objext; then
19729 ac_cv_member_struct_stat_st_flags=yes
19730 else
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 ac_cv_member_struct_stat_st_flags=no
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19742 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19743 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19744 if test $ac_cv_member_struct_stat_st_flags = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19748 _ACEOF
19753 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19754 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19755 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 else
19758 cat >conftest.$ac_ext <<_ACEOF
19759 /* confdefs.h. */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19764 $ac_includes_default
19766 main ()
19768 static struct stat ac_aggr;
19769 if (ac_aggr.st_gen)
19770 return 0;
19772 return 0;
19774 _ACEOF
19775 rm -f conftest.$ac_objext
19776 if { (ac_try="$ac_compile"
19777 case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_compile") 2>conftest.er1
19783 ac_status=$?
19784 grep -v '^ *+' conftest.er1 >conftest.err
19785 rm -f conftest.er1
19786 cat conftest.err >&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } && {
19789 test -z "$ac_c_werror_flag" ||
19790 test ! -s conftest.err
19791 } && test -s conftest.$ac_objext; then
19792 ac_cv_member_struct_stat_st_gen=yes
19793 else
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 $ac_includes_default
19805 main ()
19807 static struct stat ac_aggr;
19808 if (sizeof ac_aggr.st_gen)
19809 return 0;
19811 return 0;
19813 _ACEOF
19814 rm -f conftest.$ac_objext
19815 if { (ac_try="$ac_compile"
19816 case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19819 esac
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_compile") 2>conftest.er1
19822 ac_status=$?
19823 grep -v '^ *+' conftest.er1 >conftest.err
19824 rm -f conftest.er1
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } && {
19828 test -z "$ac_c_werror_flag" ||
19829 test ! -s conftest.err
19830 } && test -s conftest.$ac_objext; then
19831 ac_cv_member_struct_stat_st_gen=yes
19832 else
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 ac_cv_member_struct_stat_st_gen=no
19839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19844 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19845 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19846 if test $ac_cv_member_struct_stat_st_gen = yes; then
19848 cat >>confdefs.h <<_ACEOF
19849 #define HAVE_STRUCT_STAT_ST_GEN 1
19850 _ACEOF
19855 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19856 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19857 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 else
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h. */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 $ac_includes_default
19868 main ()
19870 static struct stat ac_aggr;
19871 if (ac_aggr.st_birthtime)
19872 return 0;
19874 return 0;
19876 _ACEOF
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_compile") 2>conftest.er1
19885 ac_status=$?
19886 grep -v '^ *+' conftest.er1 >conftest.err
19887 rm -f conftest.er1
19888 cat conftest.err >&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } && {
19891 test -z "$ac_c_werror_flag" ||
19892 test ! -s conftest.err
19893 } && test -s conftest.$ac_objext; then
19894 ac_cv_member_struct_stat_st_birthtime=yes
19895 else
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h. */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 $ac_includes_default
19907 main ()
19909 static struct stat ac_aggr;
19910 if (sizeof ac_aggr.st_birthtime)
19911 return 0;
19913 return 0;
19915 _ACEOF
19916 rm -f conftest.$ac_objext
19917 if { (ac_try="$ac_compile"
19918 case "(($ac_try" in
19919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19921 esac
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_compile") 2>conftest.er1
19924 ac_status=$?
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } && {
19930 test -z "$ac_c_werror_flag" ||
19931 test ! -s conftest.err
19932 } && test -s conftest.$ac_objext; then
19933 ac_cv_member_struct_stat_st_birthtime=yes
19934 else
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ac_cv_member_struct_stat_st_birthtime=no
19941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19947 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19948 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19950 cat >>confdefs.h <<_ACEOF
19951 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19952 _ACEOF
19957 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19958 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19959 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 $ac_includes_default
19970 main ()
19972 static struct stat ac_aggr;
19973 if (ac_aggr.st_blocks)
19974 return 0;
19976 return 0;
19978 _ACEOF
19979 rm -f conftest.$ac_objext
19980 if { (ac_try="$ac_compile"
19981 case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_compile") 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } && {
19993 test -z "$ac_c_werror_flag" ||
19994 test ! -s conftest.err
19995 } && test -s conftest.$ac_objext; then
19996 ac_cv_member_struct_stat_st_blocks=yes
19997 else
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h. */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20007 $ac_includes_default
20009 main ()
20011 static struct stat ac_aggr;
20012 if (sizeof ac_aggr.st_blocks)
20013 return 0;
20015 return 0;
20017 _ACEOF
20018 rm -f conftest.$ac_objext
20019 if { (ac_try="$ac_compile"
20020 case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20023 esac
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_compile") 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } && {
20032 test -z "$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20034 } && test -s conftest.$ac_objext; then
20035 ac_cv_member_struct_stat_st_blocks=yes
20036 else
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_cv_member_struct_stat_st_blocks=no
20043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20048 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20049 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20050 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20052 cat >>confdefs.h <<_ACEOF
20053 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20054 _ACEOF
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_ST_BLOCKS 1
20059 _ACEOF
20061 else
20062 case " $LIBOBJS " in
20063 *" fileblocks.$ac_objext "* ) ;;
20064 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20066 esac
20072 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20073 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20074 if test "${ac_cv_header_time_altzone+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077 cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h. */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 #include <time.h>
20085 main ()
20087 return altzone;
20089 return 0;
20091 _ACEOF
20092 rm -f conftest.$ac_objext
20093 if { (ac_try="$ac_compile"
20094 case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_compile") 2>conftest.er1
20100 ac_status=$?
20101 grep -v '^ *+' conftest.er1 >conftest.err
20102 rm -f conftest.er1
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } && {
20106 test -z "$ac_c_werror_flag" ||
20107 test ! -s conftest.err
20108 } && test -s conftest.$ac_objext; then
20109 ac_cv_header_time_altzone=yes
20110 else
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20114 ac_cv_header_time_altzone=no
20117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20120 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20121 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20122 if test $ac_cv_header_time_altzone = yes; then
20124 cat >>confdefs.h <<\_ACEOF
20125 #define HAVE_ALTZONE 1
20126 _ACEOF
20130 was_it_defined=no
20131 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20132 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h. */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20140 #include <sys/types.h>
20141 #include <sys/select.h>
20142 #include <sys/time.h>
20145 main ()
20149 return 0;
20151 _ACEOF
20152 rm -f conftest.$ac_objext
20153 if { (ac_try="$ac_compile"
20154 case "(($ac_try" in
20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156 *) ac_try_echo=$ac_try;;
20157 esac
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159 (eval "$ac_compile") 2>conftest.er1
20160 ac_status=$?
20161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } && {
20166 test -z "$ac_c_werror_flag" ||
20167 test ! -s conftest.err
20168 } && test -s conftest.$ac_objext; then
20171 cat >>confdefs.h <<\_ACEOF
20172 #define SYS_SELECT_WITH_SYS_TIME 1
20173 _ACEOF
20175 was_it_defined=yes
20177 else
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20185 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20186 echo "${ECHO_T}$was_it_defined" >&6; }
20188 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20189 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20190 if test "${ac_cv_struct_addrinfo+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20192 else
20193 cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h. */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20200 # include <netdb.h>
20202 main ()
20204 struct addrinfo a
20206 return 0;
20208 _ACEOF
20209 rm -f conftest.$ac_objext
20210 if { (ac_try="$ac_compile"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_compile") 2>conftest.er1
20217 ac_status=$?
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } && {
20223 test -z "$ac_c_werror_flag" ||
20224 test ! -s conftest.err
20225 } && test -s conftest.$ac_objext; then
20226 ac_cv_struct_addrinfo=yes
20227 else
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20231 ac_cv_struct_addrinfo=no
20234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20237 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20238 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20239 if test $ac_cv_struct_addrinfo = yes; then
20241 cat >>confdefs.h <<\_ACEOF
20242 #define HAVE_ADDRINFO 1
20243 _ACEOF
20247 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20248 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20249 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252 cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h. */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20259 # include <sys/types.h>
20260 # include <sys/socket.h>
20262 main ()
20264 struct sockaddr_storage s
20266 return 0;
20268 _ACEOF
20269 rm -f conftest.$ac_objext
20270 if { (ac_try="$ac_compile"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20277 ac_status=$?
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 ac_cv_struct_sockaddr_storage=yes
20287 else
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 ac_cv_struct_sockaddr_storage=no
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20298 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20299 if test $ac_cv_struct_sockaddr_storage = yes; then
20301 cat >>confdefs.h <<\_ACEOF
20302 #define HAVE_SOCKADDR_STORAGE 1
20303 _ACEOF
20307 # checks for compiler characteristics
20310 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20311 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20312 if test "${ac_cv_c_char_unsigned+set}" = set; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 else
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h. */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 $ac_includes_default
20323 main ()
20325 static int test_array [1 - 2 * !(((char) -1) < 0)];
20326 test_array [0] = 0
20329 return 0;
20331 _ACEOF
20332 rm -f conftest.$ac_objext
20333 if { (ac_try="$ac_compile"
20334 case "(($ac_try" in
20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336 *) ac_try_echo=$ac_try;;
20337 esac
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339 (eval "$ac_compile") 2>conftest.er1
20340 ac_status=$?
20341 grep -v '^ *+' conftest.er1 >conftest.err
20342 rm -f conftest.er1
20343 cat conftest.err >&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } && {
20346 test -z "$ac_c_werror_flag" ||
20347 test ! -s conftest.err
20348 } && test -s conftest.$ac_objext; then
20349 ac_cv_c_char_unsigned=no
20350 else
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ac_cv_c_char_unsigned=yes
20357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20360 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20361 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20362 cat >>confdefs.h <<\_ACEOF
20363 #define __CHAR_UNSIGNED__ 1
20364 _ACEOF
20368 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20369 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20370 if test "${ac_cv_c_const+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 else
20373 cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h. */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20381 main ()
20383 /* FIXME: Include the comments suggested by Paul. */
20384 #ifndef __cplusplus
20385 /* Ultrix mips cc rejects this. */
20386 typedef int charset[2];
20387 const charset cs;
20388 /* SunOS 4.1.1 cc rejects this. */
20389 char const *const *pcpcc;
20390 char **ppc;
20391 /* NEC SVR4.0.2 mips cc rejects this. */
20392 struct point {int x, y;};
20393 static struct point const zero = {0,0};
20394 /* AIX XL C 1.02.0.0 rejects this.
20395 It does not let you subtract one const X* pointer from another in
20396 an arm of an if-expression whose if-part is not a constant
20397 expression */
20398 const char *g = "string";
20399 pcpcc = &g + (g ? g-g : 0);
20400 /* HPUX 7.0 cc rejects these. */
20401 ++pcpcc;
20402 ppc = (char**) pcpcc;
20403 pcpcc = (char const *const *) ppc;
20404 { /* SCO 3.2v4 cc rejects this. */
20405 char *t;
20406 char const *s = 0 ? (char *) 0 : (char const *) 0;
20408 *t++ = 0;
20409 if (s) return 0;
20411 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20412 int x[] = {25, 17};
20413 const int *foo = &x[0];
20414 ++foo;
20416 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20417 typedef const int *iptr;
20418 iptr p = 0;
20419 ++p;
20421 { /* AIX XL C 1.02.0.0 rejects this saying
20422 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20423 struct s { int j; const int *ap[3]; };
20424 struct s *b; b->j = 5;
20426 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20427 const int foo = 10;
20428 if (!foo) return 0;
20430 return !cs[0] && !zero.x;
20431 #endif
20434 return 0;
20436 _ACEOF
20437 rm -f conftest.$ac_objext
20438 if { (ac_try="$ac_compile"
20439 case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_compile") 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } && {
20451 test -z "$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 } && test -s conftest.$ac_objext; then
20454 ac_cv_c_const=yes
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_cv_c_const=no
20462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20465 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20466 if test $ac_cv_c_const = no; then
20468 cat >>confdefs.h <<\_ACEOF
20469 #define const
20470 _ACEOF
20475 works=no
20476 { echo "$as_me:$LINENO: checking for working volatile" >&5
20477 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20478 cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h. */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20486 main ()
20488 volatile int x; x = 0;
20490 return 0;
20492 _ACEOF
20493 rm -f conftest.$ac_objext
20494 if { (ac_try="$ac_compile"
20495 case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20498 esac
20499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20500 (eval "$ac_compile") 2>conftest.er1
20501 ac_status=$?
20502 grep -v '^ *+' conftest.er1 >conftest.err
20503 rm -f conftest.er1
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } && {
20507 test -z "$ac_c_werror_flag" ||
20508 test ! -s conftest.err
20509 } && test -s conftest.$ac_objext; then
20510 works=yes
20511 else
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20516 cat >>confdefs.h <<\_ACEOF
20517 #define volatile
20518 _ACEOF
20523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20524 { echo "$as_me:$LINENO: result: $works" >&5
20525 echo "${ECHO_T}$works" >&6; }
20527 works=no
20528 { echo "$as_me:$LINENO: checking for working signed char" >&5
20529 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20538 main ()
20540 signed char c;
20542 return 0;
20544 _ACEOF
20545 rm -f conftest.$ac_objext
20546 if { (ac_try="$ac_compile"
20547 case "(($ac_try" in
20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20550 esac
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_compile") 2>conftest.er1
20553 ac_status=$?
20554 grep -v '^ *+' conftest.er1 >conftest.err
20555 rm -f conftest.er1
20556 cat conftest.err >&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } && {
20559 test -z "$ac_c_werror_flag" ||
20560 test ! -s conftest.err
20561 } && test -s conftest.$ac_objext; then
20562 works=yes
20563 else
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20568 cat >>confdefs.h <<\_ACEOF
20569 #define signed
20570 _ACEOF
20575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20576 { echo "$as_me:$LINENO: result: $works" >&5
20577 echo "${ECHO_T}$works" >&6; }
20579 have_prototypes=no
20580 { echo "$as_me:$LINENO: checking for prototypes" >&5
20581 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 int foo(int x) { return 0; }
20590 main ()
20592 return foo(10);
20594 return 0;
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20602 esac
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_compile") 2>conftest.er1
20605 ac_status=$?
20606 grep -v '^ *+' conftest.er1 >conftest.err
20607 rm -f conftest.er1
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && {
20611 test -z "$ac_c_werror_flag" ||
20612 test ! -s conftest.err
20613 } && test -s conftest.$ac_objext; then
20616 cat >>confdefs.h <<\_ACEOF
20617 #define HAVE_PROTOTYPES 1
20618 _ACEOF
20620 have_prototypes=yes
20622 else
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20631 echo "${ECHO_T}$have_prototypes" >&6; }
20633 works=no
20634 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20635 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h. */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20643 #include <stdarg.h>
20644 int foo(int x, ...) {
20645 va_list va;
20646 va_start(va, x);
20647 va_arg(va, int);
20648 va_arg(va, char *);
20649 va_arg(va, double);
20650 return 0;
20654 main ()
20656 return foo(10, "", 3.14);
20658 return 0;
20660 _ACEOF
20661 rm -f conftest.$ac_objext
20662 if { (ac_try="$ac_compile"
20663 case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_compile") 2>conftest.er1
20669 ac_status=$?
20670 grep -v '^ *+' conftest.er1 >conftest.err
20671 rm -f conftest.er1
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && {
20675 test -z "$ac_c_werror_flag" ||
20676 test ! -s conftest.err
20677 } && test -s conftest.$ac_objext; then
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_STDARG_PROTOTYPES 1
20682 _ACEOF
20684 works=yes
20686 else
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20694 { echo "$as_me:$LINENO: result: $works" >&5
20695 echo "${ECHO_T}$works" >&6; }
20697 # check for socketpair
20698 { echo "$as_me:$LINENO: checking for socketpair" >&5
20699 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20700 cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h. */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20707 #include <sys/types.h>
20708 #include <sys/socket.h>
20711 main ()
20713 void *x=socketpair
20715 return 0;
20717 _ACEOF
20718 rm -f conftest.$ac_objext
20719 if { (ac_try="$ac_compile"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20723 esac
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_compile") 2>conftest.er1
20726 ac_status=$?
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && {
20732 test -z "$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 } && test -s conftest.$ac_objext; then
20736 cat >>confdefs.h <<\_ACEOF
20737 #define HAVE_SOCKETPAIR 1
20738 _ACEOF
20740 { echo "$as_me:$LINENO: result: yes" >&5
20741 echo "${ECHO_T}yes" >&6; }
20742 else
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20746 { echo "$as_me:$LINENO: result: no" >&5
20747 echo "${ECHO_T}no" >&6; }
20751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20753 # check if sockaddr has sa_len member
20754 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20755 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h. */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 #include <sys/types.h>
20763 #include <sys/socket.h>
20765 main ()
20767 struct sockaddr x;
20768 x.sa_len = 0;
20770 return 0;
20772 _ACEOF
20773 rm -f conftest.$ac_objext
20774 if { (ac_try="$ac_compile"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_compile") 2>conftest.er1
20781 ac_status=$?
20782 grep -v '^ *+' conftest.er1 >conftest.err
20783 rm -f conftest.er1
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && {
20787 test -z "$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20789 } && test -s conftest.$ac_objext; then
20790 { echo "$as_me:$LINENO: result: yes" >&5
20791 echo "${ECHO_T}yes" >&6; }
20793 cat >>confdefs.h <<\_ACEOF
20794 #define HAVE_SOCKADDR_SA_LEN 1
20795 _ACEOF
20797 else
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 { echo "$as_me:$LINENO: result: no" >&5
20802 echo "${ECHO_T}no" >&6; }
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20807 va_list_is_array=no
20808 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20809 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20810 cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h. */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20817 #ifdef HAVE_STDARG_PROTOTYPES
20818 #include <stdarg.h>
20819 #else
20820 #include <varargs.h>
20821 #endif
20824 main ()
20826 va_list list1, list2; list1 = list2;
20828 return 0;
20830 _ACEOF
20831 rm -f conftest.$ac_objext
20832 if { (ac_try="$ac_compile"
20833 case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_compile") 2>conftest.er1
20839 ac_status=$?
20840 grep -v '^ *+' conftest.er1 >conftest.err
20841 rm -f conftest.er1
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } && {
20845 test -z "$ac_c_werror_flag" ||
20846 test ! -s conftest.err
20847 } && test -s conftest.$ac_objext; then
20849 else
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20855 cat >>confdefs.h <<\_ACEOF
20856 #define VA_LIST_IS_ARRAY 1
20857 _ACEOF
20859 va_list_is_array=yes
20863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20864 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20865 echo "${ECHO_T}$va_list_is_array" >&6; }
20867 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20871 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20872 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20873 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20875 else
20876 cat >conftest.$ac_ext <<_ACEOF
20877 /* confdefs.h. */
20878 _ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20884 #define gethostbyname_r innocuous_gethostbyname_r
20886 /* System header to define __stub macros and hopefully few prototypes,
20887 which can conflict with char gethostbyname_r (); below.
20888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20889 <limits.h> exists even on freestanding compilers. */
20891 #ifdef __STDC__
20892 # include <limits.h>
20893 #else
20894 # include <assert.h>
20895 #endif
20897 #undef gethostbyname_r
20899 /* Override any GCC internal prototype to avoid an error.
20900 Use char because int might match the return type of a GCC
20901 builtin and then its argument prototype would still apply. */
20902 #ifdef __cplusplus
20903 extern "C"
20904 #endif
20905 char gethostbyname_r ();
20906 /* The GNU C library defines this for functions which it implements
20907 to always fail with ENOSYS. Some functions are actually named
20908 something starting with __ and the normal name is an alias. */
20909 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20910 choke me
20911 #endif
20914 main ()
20916 return gethostbyname_r ();
20918 return 0;
20920 _ACEOF
20921 rm -f conftest.$ac_objext conftest$ac_exeext
20922 if { (ac_try="$ac_link"
20923 case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20926 esac
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_link") 2>conftest.er1
20929 ac_status=$?
20930 grep -v '^ *+' conftest.er1 >conftest.err
20931 rm -f conftest.er1
20932 cat conftest.err >&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } && {
20935 test -z "$ac_c_werror_flag" ||
20936 test ! -s conftest.err
20937 } && test -s conftest$ac_exeext &&
20938 $as_test_x conftest$ac_exeext; then
20939 ac_cv_func_gethostbyname_r=yes
20940 else
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ac_cv_func_gethostbyname_r=no
20947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20948 conftest$ac_exeext conftest.$ac_ext
20950 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20951 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20952 if test $ac_cv_func_gethostbyname_r = yes; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define HAVE_GETHOSTBYNAME_R 1
20956 _ACEOF
20958 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20959 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20960 OLD_CFLAGS=$CFLAGS
20961 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20962 cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h. */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20969 # include <netdb.h>
20972 main ()
20975 char *name;
20976 struct hostent *he, *res;
20977 char buffer[2048];
20978 int buflen = 2048;
20979 int h_errnop;
20981 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20984 return 0;
20986 _ACEOF
20987 rm -f conftest.$ac_objext
20988 if { (ac_try="$ac_compile"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20992 esac
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_compile") 2>conftest.er1
20995 ac_status=$?
20996 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest.$ac_objext; then
21005 cat >>confdefs.h <<\_ACEOF
21006 #define HAVE_GETHOSTBYNAME_R 1
21007 _ACEOF
21010 cat >>confdefs.h <<\_ACEOF
21011 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21012 _ACEOF
21014 { echo "$as_me:$LINENO: result: yes" >&5
21015 echo "${ECHO_T}yes" >&6; }
21017 else
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21022 { echo "$as_me:$LINENO: result: no" >&5
21023 echo "${ECHO_T}no" >&6; }
21024 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21025 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21026 cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h. */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21033 # include <netdb.h>
21036 main ()
21039 char *name;
21040 struct hostent *he;
21041 char buffer[2048];
21042 int buflen = 2048;
21043 int h_errnop;
21045 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21048 return 0;
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_GETHOSTBYNAME_R 1
21071 _ACEOF
21074 cat >>confdefs.h <<\_ACEOF
21075 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21076 _ACEOF
21078 { echo "$as_me:$LINENO: result: yes" >&5
21079 echo "${ECHO_T}yes" >&6; }
21081 else
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21086 { echo "$as_me:$LINENO: result: no" >&5
21087 echo "${ECHO_T}no" >&6; }
21088 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21089 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21090 cat >conftest.$ac_ext <<_ACEOF
21091 /* confdefs.h. */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21097 # include <netdb.h>
21100 main ()
21103 char *name;
21104 struct hostent *he;
21105 struct hostent_data data;
21107 (void) gethostbyname_r(name, he, &data);
21110 return 0;
21112 _ACEOF
21113 rm -f conftest.$ac_objext
21114 if { (ac_try="$ac_compile"
21115 case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_compile") 2>conftest.er1
21121 ac_status=$?
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } && {
21127 test -z "$ac_c_werror_flag" ||
21128 test ! -s conftest.err
21129 } && test -s conftest.$ac_objext; then
21131 cat >>confdefs.h <<\_ACEOF
21132 #define HAVE_GETHOSTBYNAME_R 1
21133 _ACEOF
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21138 _ACEOF
21140 { echo "$as_me:$LINENO: result: yes" >&5
21141 echo "${ECHO_T}yes" >&6; }
21143 else
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21148 { echo "$as_me:$LINENO: result: no" >&5
21149 echo "${ECHO_T}no" >&6; }
21153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162 CFLAGS=$OLD_CFLAGS
21164 else
21167 for ac_func in gethostbyname
21169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175 cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h. */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21183 #define $ac_func innocuous_$ac_func
21185 /* System header to define __stub macros and hopefully few prototypes,
21186 which can conflict with char $ac_func (); below.
21187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21188 <limits.h> exists even on freestanding compilers. */
21190 #ifdef __STDC__
21191 # include <limits.h>
21192 #else
21193 # include <assert.h>
21194 #endif
21196 #undef $ac_func
21198 /* Override any GCC internal prototype to avoid an error.
21199 Use char because int might match the return type of a GCC
21200 builtin and then its argument prototype would still apply. */
21201 #ifdef __cplusplus
21202 extern "C"
21203 #endif
21204 char $ac_func ();
21205 /* The GNU C library defines this for functions which it implements
21206 to always fail with ENOSYS. Some functions are actually named
21207 something starting with __ and the normal name is an alias. */
21208 #if defined __stub_$ac_func || defined __stub___$ac_func
21209 choke me
21210 #endif
21213 main ()
21215 return $ac_func ();
21217 return 0;
21219 _ACEOF
21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221 if { (ac_try="$ac_link"
21222 case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_link") 2>conftest.er1
21228 ac_status=$?
21229 grep -v '^ *+' conftest.er1 >conftest.err
21230 rm -f conftest.er1
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && {
21234 test -z "$ac_c_werror_flag" ||
21235 test ! -s conftest.err
21236 } && test -s conftest$ac_exeext &&
21237 $as_test_x conftest$ac_exeext; then
21238 eval "$as_ac_var=yes"
21239 else
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21243 eval "$as_ac_var=no"
21246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21247 conftest$ac_exeext conftest.$ac_ext
21249 ac_res=`eval echo '${'$as_ac_var'}'`
21250 { echo "$as_me:$LINENO: result: $ac_res" >&5
21251 echo "${ECHO_T}$ac_res" >&6; }
21252 if test `eval echo '${'$as_ac_var'}'` = yes; then
21253 cat >>confdefs.h <<_ACEOF
21254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21255 _ACEOF
21258 done
21269 # checks for system services
21270 # (none yet)
21272 # Linux requires this for correct f.p. operations
21273 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21274 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21275 if test "${ac_cv_func___fpu_control+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 else
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21286 #define __fpu_control innocuous___fpu_control
21288 /* System header to define __stub macros and hopefully few prototypes,
21289 which can conflict with char __fpu_control (); below.
21290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21291 <limits.h> exists even on freestanding compilers. */
21293 #ifdef __STDC__
21294 # include <limits.h>
21295 #else
21296 # include <assert.h>
21297 #endif
21299 #undef __fpu_control
21301 /* Override any GCC internal prototype to avoid an error.
21302 Use char because int might match the return type of a GCC
21303 builtin and then its argument prototype would still apply. */
21304 #ifdef __cplusplus
21305 extern "C"
21306 #endif
21307 char __fpu_control ();
21308 /* The GNU C library defines this for functions which it implements
21309 to always fail with ENOSYS. Some functions are actually named
21310 something starting with __ and the normal name is an alias. */
21311 #if defined __stub___fpu_control || defined __stub_____fpu_control
21312 choke me
21313 #endif
21316 main ()
21318 return __fpu_control ();
21320 return 0;
21322 _ACEOF
21323 rm -f conftest.$ac_objext conftest$ac_exeext
21324 if { (ac_try="$ac_link"
21325 case "(($ac_try" in
21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21328 esac
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330 (eval "$ac_link") 2>conftest.er1
21331 ac_status=$?
21332 grep -v '^ *+' conftest.er1 >conftest.err
21333 rm -f conftest.er1
21334 cat conftest.err >&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); } && {
21337 test -z "$ac_c_werror_flag" ||
21338 test ! -s conftest.err
21339 } && test -s conftest$ac_exeext &&
21340 $as_test_x conftest$ac_exeext; then
21341 ac_cv_func___fpu_control=yes
21342 else
21343 echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21346 ac_cv_func___fpu_control=no
21349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21350 conftest$ac_exeext conftest.$ac_ext
21352 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21353 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21354 if test $ac_cv_func___fpu_control = yes; then
21356 else
21358 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21359 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21360 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363 ac_check_lib_save_LIBS=$LIBS
21364 LIBS="-lieee $LIBS"
21365 cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h. */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21372 /* Override any GCC internal prototype to avoid an error.
21373 Use char because int might match the return type of a GCC
21374 builtin and then its argument prototype would still apply. */
21375 #ifdef __cplusplus
21376 extern "C"
21377 #endif
21378 char __fpu_control ();
21380 main ()
21382 return __fpu_control ();
21384 return 0;
21386 _ACEOF
21387 rm -f conftest.$ac_objext conftest$ac_exeext
21388 if { (ac_try="$ac_link"
21389 case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21392 esac
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_link") 2>conftest.er1
21395 ac_status=$?
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest$ac_exeext &&
21404 $as_test_x conftest$ac_exeext; then
21405 ac_cv_lib_ieee___fpu_control=yes
21406 else
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ac_cv_lib_ieee___fpu_control=no
21413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21414 conftest$ac_exeext conftest.$ac_ext
21415 LIBS=$ac_check_lib_save_LIBS
21417 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21418 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21419 if test $ac_cv_lib_ieee___fpu_control = yes; then
21420 cat >>confdefs.h <<_ACEOF
21421 #define HAVE_LIBIEEE 1
21422 _ACEOF
21424 LIBS="-lieee $LIBS"
21432 # Check for --with-fpectl
21433 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21434 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21436 # Check whether --with-fpectl was given.
21437 if test "${with_fpectl+set}" = set; then
21438 withval=$with_fpectl;
21439 if test "$withval" != no
21440 then
21442 cat >>confdefs.h <<\_ACEOF
21443 #define WANT_SIGFPE_HANDLER 1
21444 _ACEOF
21446 { echo "$as_me:$LINENO: result: yes" >&5
21447 echo "${ECHO_T}yes" >&6; }
21448 else { echo "$as_me:$LINENO: result: no" >&5
21449 echo "${ECHO_T}no" >&6; }
21451 else
21452 { echo "$as_me:$LINENO: result: no" >&5
21453 echo "${ECHO_T}no" >&6; }
21457 # check for --with-libm=...
21459 case $ac_sys_system in
21460 Darwin) ;;
21461 BeOS) ;;
21462 *) LIBM=-lm
21463 esac
21464 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21465 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21467 # Check whether --with-libm was given.
21468 if test "${with_libm+set}" = set; then
21469 withval=$with_libm;
21470 if test "$withval" = no
21471 then LIBM=
21472 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21473 echo "${ECHO_T}force LIBM empty" >&6; }
21474 elif test "$withval" != yes
21475 then LIBM=$withval
21476 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21477 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21478 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21479 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21480 { (exit 1); exit 1; }; }
21482 else
21483 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21484 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21488 # check for --with-libc=...
21490 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21491 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21493 # Check whether --with-libc was given.
21494 if test "${with_libc+set}" = set; then
21495 withval=$with_libc;
21496 if test "$withval" = no
21497 then LIBC=
21498 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21499 echo "${ECHO_T}force LIBC empty" >&6; }
21500 elif test "$withval" != yes
21501 then LIBC=$withval
21502 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21503 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21504 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21505 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21506 { (exit 1); exit 1; }; }
21508 else
21509 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21510 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21514 # ************************************
21515 # * Check for mathematical functions *
21516 # ************************************
21518 LIBS_SAVE=$LIBS
21519 LIBS="$LIBS $LIBM"
21521 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21522 # -0. on some architectures.
21523 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21524 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21525 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21529 if test "$cross_compiling" = yes; then
21530 ac_cv_tanh_preserves_zero_sign=no
21531 else
21532 cat >conftest.$ac_ext <<_ACEOF
21533 /* confdefs.h. */
21534 _ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h. */
21539 #include <math.h>
21540 #include <stdlib.h>
21541 int main() {
21542 /* return 0 if either negative zeros don't exist
21543 on this platform or if negative zeros exist
21544 and tanh(-0.) == -0. */
21545 if (atan2(0., -1.) == atan2(-0., -1.) ||
21546 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21547 else exit(1);
21550 _ACEOF
21551 rm -f conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21556 esac
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558 (eval "$ac_link") 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21562 { (case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_try") 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_tanh_preserves_zero_sign=yes
21572 else
21573 echo "$as_me: program exited with status $ac_status" >&5
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ( exit $ac_status )
21578 ac_cv_tanh_preserves_zero_sign=no
21580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21586 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21587 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21588 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21589 then
21591 cat >>confdefs.h <<\_ACEOF
21592 #define TANH_PRESERVES_ZERO_SIGN 1
21593 _ACEOF
21598 for ac_func in hypot
21600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21605 else
21606 cat >conftest.$ac_ext <<_ACEOF
21607 /* confdefs.h. */
21608 _ACEOF
21609 cat confdefs.h >>conftest.$ac_ext
21610 cat >>conftest.$ac_ext <<_ACEOF
21611 /* end confdefs.h. */
21612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21614 #define $ac_func innocuous_$ac_func
21616 /* System header to define __stub macros and hopefully few prototypes,
21617 which can conflict with char $ac_func (); below.
21618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21619 <limits.h> exists even on freestanding compilers. */
21621 #ifdef __STDC__
21622 # include <limits.h>
21623 #else
21624 # include <assert.h>
21625 #endif
21627 #undef $ac_func
21629 /* Override any GCC internal prototype to avoid an error.
21630 Use char because int might match the return type of a GCC
21631 builtin and then its argument prototype would still apply. */
21632 #ifdef __cplusplus
21633 extern "C"
21634 #endif
21635 char $ac_func ();
21636 /* The GNU C library defines this for functions which it implements
21637 to always fail with ENOSYS. Some functions are actually named
21638 something starting with __ and the normal name is an alias. */
21639 #if defined __stub_$ac_func || defined __stub___$ac_func
21640 choke me
21641 #endif
21644 main ()
21646 return $ac_func ();
21648 return 0;
21650 _ACEOF
21651 rm -f conftest.$ac_objext conftest$ac_exeext
21652 if { (ac_try="$ac_link"
21653 case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21656 esac
21657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21658 (eval "$ac_link") 2>conftest.er1
21659 ac_status=$?
21660 grep -v '^ *+' conftest.er1 >conftest.err
21661 rm -f conftest.er1
21662 cat conftest.err >&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } && {
21665 test -z "$ac_c_werror_flag" ||
21666 test ! -s conftest.err
21667 } && test -s conftest$ac_exeext &&
21668 $as_test_x conftest$ac_exeext; then
21669 eval "$as_ac_var=yes"
21670 else
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 eval "$as_ac_var=no"
21677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21678 conftest$ac_exeext conftest.$ac_ext
21680 ac_res=`eval echo '${'$as_ac_var'}'`
21681 { echo "$as_me:$LINENO: result: $ac_res" >&5
21682 echo "${ECHO_T}$ac_res" >&6; }
21683 if test `eval echo '${'$as_ac_var'}'` = yes; then
21684 cat >>confdefs.h <<_ACEOF
21685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21686 _ACEOF
21688 else
21689 case " $LIBOBJS " in
21690 *" $ac_func.$ac_objext "* ) ;;
21691 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21693 esac
21696 done
21709 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21716 else
21717 cat >conftest.$ac_ext <<_ACEOF
21718 /* confdefs.h. */
21719 _ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21725 #define $ac_func innocuous_$ac_func
21727 /* System header to define __stub macros and hopefully few prototypes,
21728 which can conflict with char $ac_func (); below.
21729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21730 <limits.h> exists even on freestanding compilers. */
21732 #ifdef __STDC__
21733 # include <limits.h>
21734 #else
21735 # include <assert.h>
21736 #endif
21738 #undef $ac_func
21740 /* Override any GCC internal prototype to avoid an error.
21741 Use char because int might match the return type of a GCC
21742 builtin and then its argument prototype would still apply. */
21743 #ifdef __cplusplus
21744 extern "C"
21745 #endif
21746 char $ac_func ();
21747 /* The GNU C library defines this for functions which it implements
21748 to always fail with ENOSYS. Some functions are actually named
21749 something starting with __ and the normal name is an alias. */
21750 #if defined __stub_$ac_func || defined __stub___$ac_func
21751 choke me
21752 #endif
21755 main ()
21757 return $ac_func ();
21759 return 0;
21761 _ACEOF
21762 rm -f conftest.$ac_objext conftest$ac_exeext
21763 if { (ac_try="$ac_link"
21764 case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767 esac
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_link") 2>conftest.er1
21770 ac_status=$?
21771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest$ac_exeext &&
21779 $as_test_x conftest$ac_exeext; then
21780 eval "$as_ac_var=yes"
21781 else
21782 echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21785 eval "$as_ac_var=no"
21788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21789 conftest$ac_exeext conftest.$ac_ext
21791 ac_res=`eval echo '${'$as_ac_var'}'`
21792 { echo "$as_me:$LINENO: result: $ac_res" >&5
21793 echo "${ECHO_T}$ac_res" >&6; }
21794 if test `eval echo '${'$as_ac_var'}'` = yes; then
21795 cat >>confdefs.h <<_ACEOF
21796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21797 _ACEOF
21800 done
21803 LIBS=$LIBS_SAVE
21805 # check for wchar.h
21806 if test "${ac_cv_header_wchar_h+set}" = set; then
21807 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21808 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21809 if test "${ac_cv_header_wchar_h+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21813 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21814 else
21815 # Is the header compilable?
21816 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21817 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h. */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21825 #include <wchar.h>
21826 _ACEOF
21827 rm -f conftest.$ac_objext
21828 if { (ac_try="$ac_compile"
21829 case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21832 esac
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_compile") 2>conftest.er1
21835 ac_status=$?
21836 grep -v '^ *+' conftest.er1 >conftest.err
21837 rm -f conftest.er1
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && {
21841 test -z "$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21843 } && test -s conftest.$ac_objext; then
21844 ac_header_compiler=yes
21845 else
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_header_compiler=no
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6; }
21856 # Is the header present?
21857 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21858 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h. */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <wchar.h>
21866 _ACEOF
21867 if { (ac_try="$ac_cpp conftest.$ac_ext"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21874 ac_status=$?
21875 grep -v '^ *+' conftest.er1 >conftest.err
21876 rm -f conftest.er1
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } >/dev/null && {
21880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21882 }; then
21883 ac_header_preproc=yes
21884 else
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_header_preproc=no
21891 rm -f conftest.err conftest.$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893 echo "${ECHO_T}$ac_header_preproc" >&6; }
21895 # So? What about this header?
21896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21897 yes:no: )
21898 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21899 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21901 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21902 ac_header_preproc=yes
21904 no:yes:* )
21905 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21906 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21908 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21910 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21912 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21914 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21916 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21917 ( cat <<\_ASBOX
21918 ## ------------------------------------------------ ##
21919 ## Report this to http://www.python.org/python-bugs ##
21920 ## ------------------------------------------------ ##
21921 _ASBOX
21922 ) | sed "s/^/$as_me: WARNING: /" >&2
21924 esac
21925 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21926 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21927 if test "${ac_cv_header_wchar_h+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 else
21930 ac_cv_header_wchar_h=$ac_header_preproc
21932 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21933 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21936 if test $ac_cv_header_wchar_h = yes; then
21939 cat >>confdefs.h <<\_ACEOF
21940 #define HAVE_WCHAR_H 1
21941 _ACEOF
21943 wchar_h="yes"
21945 else
21946 wchar_h="no"
21952 # determine wchar_t size
21953 if test "$wchar_h" = yes
21954 then
21955 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21956 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21957 if test "${ac_cv_type_wchar_t+set}" = set; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21959 else
21960 cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h. */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21966 #include <wchar.h>
21968 typedef wchar_t ac__type_new_;
21970 main ()
21972 if ((ac__type_new_ *) 0)
21973 return 0;
21974 if (sizeof (ac__type_new_))
21975 return 0;
21977 return 0;
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_cv_type_wchar_t=yes
21998 else
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_cv_type_wchar_t=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22008 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22010 # The cast to long int works around a bug in the HP C Compiler
22011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22013 # This bug is HP SR number 8606223364.
22014 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22015 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22016 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019 if test "$cross_compiling" = yes; then
22020 # Depending upon the size, compute the lo and hi bounds.
22021 cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h. */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 #include <wchar.h>
22029 typedef wchar_t ac__type_sizeof_;
22031 main ()
22033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22034 test_array [0] = 0
22037 return 0;
22039 _ACEOF
22040 rm -f conftest.$ac_objext
22041 if { (ac_try="$ac_compile"
22042 case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22045 esac
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_compile") 2>conftest.er1
22048 ac_status=$?
22049 grep -v '^ *+' conftest.er1 >conftest.err
22050 rm -f conftest.er1
22051 cat conftest.err >&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } && {
22054 test -z "$ac_c_werror_flag" ||
22055 test ! -s conftest.err
22056 } && test -s conftest.$ac_objext; then
22057 ac_lo=0 ac_mid=0
22058 while :; do
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 #include <wchar.h>
22067 typedef wchar_t ac__type_sizeof_;
22069 main ()
22071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22072 test_array [0] = 0
22075 return 0;
22077 _ACEOF
22078 rm -f conftest.$ac_objext
22079 if { (ac_try="$ac_compile"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083 esac
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_compile") 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest.$ac_objext; then
22095 ac_hi=$ac_mid; break
22096 else
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ac_lo=`expr $ac_mid + 1`
22101 if test $ac_lo -le $ac_mid; then
22102 ac_lo= ac_hi=
22103 break
22105 ac_mid=`expr 2 '*' $ac_mid + 1`
22108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22109 done
22110 else
22111 echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22114 cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h. */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 #include <wchar.h>
22122 typedef wchar_t ac__type_sizeof_;
22124 main ()
22126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22127 test_array [0] = 0
22130 return 0;
22132 _ACEOF
22133 rm -f conftest.$ac_objext
22134 if { (ac_try="$ac_compile"
22135 case "(($ac_try" in
22136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137 *) ac_try_echo=$ac_try;;
22138 esac
22139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22140 (eval "$ac_compile") 2>conftest.er1
22141 ac_status=$?
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest.$ac_objext; then
22150 ac_hi=-1 ac_mid=-1
22151 while :; do
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_sizeof_;
22162 main ()
22164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22165 test_array [0] = 0
22168 return 0;
22170 _ACEOF
22171 rm -f conftest.$ac_objext
22172 if { (ac_try="$ac_compile"
22173 case "(($ac_try" in
22174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175 *) ac_try_echo=$ac_try;;
22176 esac
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178 (eval "$ac_compile") 2>conftest.er1
22179 ac_status=$?
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } && {
22185 test -z "$ac_c_werror_flag" ||
22186 test ! -s conftest.err
22187 } && test -s conftest.$ac_objext; then
22188 ac_lo=$ac_mid; break
22189 else
22190 echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22193 ac_hi=`expr '(' $ac_mid ')' - 1`
22194 if test $ac_mid -le $ac_hi; then
22195 ac_lo= ac_hi=
22196 break
22198 ac_mid=`expr 2 '*' $ac_mid`
22201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22202 done
22203 else
22204 echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22207 ac_lo= ac_hi=
22210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214 # Binary search between lo and hi bounds.
22215 while test "x$ac_lo" != "x$ac_hi"; do
22216 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22217 cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h. */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 #include <wchar.h>
22225 typedef wchar_t ac__type_sizeof_;
22227 main ()
22229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22230 test_array [0] = 0
22233 return 0;
22235 _ACEOF
22236 rm -f conftest.$ac_objext
22237 if { (ac_try="$ac_compile"
22238 case "(($ac_try" in
22239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240 *) ac_try_echo=$ac_try;;
22241 esac
22242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243 (eval "$ac_compile") 2>conftest.er1
22244 ac_status=$?
22245 grep -v '^ *+' conftest.er1 >conftest.err
22246 rm -f conftest.er1
22247 cat conftest.err >&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } && {
22250 test -z "$ac_c_werror_flag" ||
22251 test ! -s conftest.err
22252 } && test -s conftest.$ac_objext; then
22253 ac_hi=$ac_mid
22254 else
22255 echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22258 ac_lo=`expr '(' $ac_mid ')' + 1`
22261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262 done
22263 case $ac_lo in
22264 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22265 '') if test "$ac_cv_type_wchar_t" = yes; then
22266 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22267 See \`config.log' for more details." >&5
22268 echo "$as_me: error: cannot compute sizeof (wchar_t)
22269 See \`config.log' for more details." >&2;}
22270 { (exit 77); exit 77; }; }
22271 else
22272 ac_cv_sizeof_wchar_t=0
22273 fi ;;
22274 esac
22275 else
22276 cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h. */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22282 #include <wchar.h>
22284 typedef wchar_t ac__type_sizeof_;
22285 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22286 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22287 #include <stdio.h>
22288 #include <stdlib.h>
22290 main ()
22293 FILE *f = fopen ("conftest.val", "w");
22294 if (! f)
22295 return 1;
22296 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22298 long int i = longval ();
22299 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22300 return 1;
22301 fprintf (f, "%ld\n", i);
22303 else
22305 unsigned long int i = ulongval ();
22306 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22307 return 1;
22308 fprintf (f, "%lu\n", i);
22310 return ferror (f) || fclose (f) != 0;
22313 return 0;
22315 _ACEOF
22316 rm -f conftest$ac_exeext
22317 if { (ac_try="$ac_link"
22318 case "(($ac_try" in
22319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22320 *) ac_try_echo=$ac_try;;
22321 esac
22322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22323 (eval "$ac_link") 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
22333 ac_status=$?
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); }; }; then
22336 ac_cv_sizeof_wchar_t=`cat conftest.val`
22337 else
22338 echo "$as_me: program exited with status $ac_status" >&5
22339 echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22342 ( exit $ac_status )
22343 if test "$ac_cv_type_wchar_t" = yes; then
22344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22345 See \`config.log' for more details." >&5
22346 echo "$as_me: error: cannot compute sizeof (wchar_t)
22347 See \`config.log' for more details." >&2;}
22348 { (exit 77); exit 77; }; }
22349 else
22350 ac_cv_sizeof_wchar_t=0
22353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22355 rm -f conftest.val
22357 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22358 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22362 cat >>confdefs.h <<_ACEOF
22363 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22364 _ACEOF
22369 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22370 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22371 have_ucs4_tcl=no
22372 cat >conftest.$ac_ext <<_ACEOF
22373 /* confdefs.h. */
22374 _ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h. */
22379 #include <tcl.h>
22380 #if TCL_UTF_MAX != 6
22381 # error "NOT UCS4_TCL"
22382 #endif
22384 main ()
22388 return 0;
22390 _ACEOF
22391 rm -f conftest.$ac_objext
22392 if { (ac_try="$ac_compile"
22393 case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22396 esac
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_compile") 2>conftest.er1
22399 ac_status=$?
22400 grep -v '^ *+' conftest.er1 >conftest.err
22401 rm -f conftest.er1
22402 cat conftest.err >&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } && {
22405 test -z "$ac_c_werror_flag" ||
22406 test ! -s conftest.err
22407 } && test -s conftest.$ac_objext; then
22410 cat >>confdefs.h <<\_ACEOF
22411 #define HAVE_UCS4_TCL 1
22412 _ACEOF
22414 have_ucs4_tcl=yes
22416 else
22417 echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22424 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22425 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22427 # check whether wchar_t is signed or not
22428 if test "$wchar_h" = yes
22429 then
22430 # check whether wchar_t is signed or not
22431 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22432 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22433 if test "${ac_cv_wchar_t_signed+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22435 else
22437 if test "$cross_compiling" = yes; then
22438 ac_cv_wchar_t_signed=yes
22439 else
22440 cat >conftest.$ac_ext <<_ACEOF
22441 /* confdefs.h. */
22442 _ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22447 #include <wchar.h>
22448 int main()
22450 /* Success: exit code 0 */
22451 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22454 _ACEOF
22455 rm -f conftest$ac_exeext
22456 if { (ac_try="$ac_link"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_link") 2>&5
22463 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22466 { (case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_try") 2>&5
22472 ac_status=$?
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; }; then
22475 ac_cv_wchar_t_signed=yes
22476 else
22477 echo "$as_me: program exited with status $ac_status" >&5
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ( exit $ac_status )
22482 ac_cv_wchar_t_signed=no
22484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22490 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22491 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22494 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
22495 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
22496 # Check whether --enable-unicode was given.
22497 if test "${enable_unicode+set}" = set; then
22498 enableval=$enable_unicode;
22499 else
22500 enable_unicode=yes
22504 if test $enable_unicode = yes
22505 then
22506 # Without any arguments, Py_UNICODE defaults to two-byte mode
22507 case "$have_ucs4_tcl" in
22508 yes) enable_unicode="ucs4"
22510 *) enable_unicode="ucs2"
22512 esac
22517 case "$enable_unicode" in
22518 ucs2) unicode_size="2"
22519 cat >>confdefs.h <<\_ACEOF
22520 #define Py_UNICODE_SIZE 2
22521 _ACEOF
22524 ucs4) unicode_size="4"
22525 cat >>confdefs.h <<\_ACEOF
22526 #define Py_UNICODE_SIZE 4
22527 _ACEOF
22530 esac
22536 if test "$enable_unicode" = "no"
22537 then
22538 UNICODE_OBJS=""
22539 { echo "$as_me:$LINENO: result: not used" >&5
22540 echo "${ECHO_T}not used" >&6; }
22541 else
22542 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
22544 cat >>confdefs.h <<\_ACEOF
22545 #define Py_USING_UNICODE 1
22546 _ACEOF
22549 # wchar_t is only usable if it maps to an unsigned type
22550 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22551 -a "$ac_cv_wchar_t_signed" = "no"
22552 then
22553 PY_UNICODE_TYPE="wchar_t"
22555 cat >>confdefs.h <<\_ACEOF
22556 #define HAVE_USABLE_WCHAR_T 1
22557 _ACEOF
22559 cat >>confdefs.h <<\_ACEOF
22560 #define PY_UNICODE_TYPE wchar_t
22561 _ACEOF
22563 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22564 then
22565 PY_UNICODE_TYPE="unsigned short"
22566 cat >>confdefs.h <<\_ACEOF
22567 #define PY_UNICODE_TYPE unsigned short
22568 _ACEOF
22570 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22571 then
22572 PY_UNICODE_TYPE="unsigned long"
22573 cat >>confdefs.h <<\_ACEOF
22574 #define PY_UNICODE_TYPE unsigned long
22575 _ACEOF
22577 else
22578 PY_UNICODE_TYPE="no type found"
22580 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22581 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22584 # check for endianness
22585 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22586 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22587 if test "${ac_cv_c_bigendian+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22589 else
22590 # See if sys/param.h defines the BYTE_ORDER macro.
22591 cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h. */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 #include <sys/types.h>
22598 #include <sys/param.h>
22601 main ()
22603 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22604 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22605 bogus endian macros
22606 #endif
22609 return 0;
22611 _ACEOF
22612 rm -f conftest.$ac_objext
22613 if { (ac_try="$ac_compile"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22617 esac
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_compile") 2>conftest.er1
22620 ac_status=$?
22621 grep -v '^ *+' conftest.er1 >conftest.err
22622 rm -f conftest.er1
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } && {
22626 test -z "$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22628 } && test -s conftest.$ac_objext; then
22629 # It does; now see whether it defined to BIG_ENDIAN or not.
22630 cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h. */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 #include <sys/types.h>
22637 #include <sys/param.h>
22640 main ()
22642 #if BYTE_ORDER != BIG_ENDIAN
22643 not big endian
22644 #endif
22647 return 0;
22649 _ACEOF
22650 rm -f conftest.$ac_objext
22651 if { (ac_try="$ac_compile"
22652 case "(($ac_try" in
22653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654 *) ac_try_echo=$ac_try;;
22655 esac
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657 (eval "$ac_compile") 2>conftest.er1
22658 ac_status=$?
22659 grep -v '^ *+' conftest.er1 >conftest.err
22660 rm -f conftest.er1
22661 cat conftest.err >&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } && {
22664 test -z "$ac_c_werror_flag" ||
22665 test ! -s conftest.err
22666 } && test -s conftest.$ac_objext; then
22667 ac_cv_c_bigendian=yes
22668 else
22669 echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22672 ac_cv_c_bigendian=no
22675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 else
22677 echo "$as_me: failed program was:" >&5
22678 sed 's/^/| /' conftest.$ac_ext >&5
22680 # It does not; compile a test program.
22681 if test "$cross_compiling" = yes; then
22682 # try to guess the endianness by grepping values into an object file
22683 ac_cv_c_bigendian=unknown
22684 cat >conftest.$ac_ext <<_ACEOF
22685 /* confdefs.h. */
22686 _ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h. */
22690 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22691 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22692 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22693 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22694 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22695 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22697 main ()
22699 _ascii (); _ebcdic ();
22701 return 0;
22703 _ACEOF
22704 rm -f conftest.$ac_objext
22705 if { (ac_try="$ac_compile"
22706 case "(($ac_try" in
22707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22708 *) ac_try_echo=$ac_try;;
22709 esac
22710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22711 (eval "$ac_compile") 2>conftest.er1
22712 ac_status=$?
22713 grep -v '^ *+' conftest.er1 >conftest.err
22714 rm -f conftest.er1
22715 cat conftest.err >&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } && {
22718 test -z "$ac_c_werror_flag" ||
22719 test ! -s conftest.err
22720 } && test -s conftest.$ac_objext; then
22721 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22722 ac_cv_c_bigendian=yes
22724 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22725 if test "$ac_cv_c_bigendian" = unknown; then
22726 ac_cv_c_bigendian=no
22727 else
22728 # finding both strings is unlikely to happen, but who knows?
22729 ac_cv_c_bigendian=unknown
22732 else
22733 echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740 else
22741 cat >conftest.$ac_ext <<_ACEOF
22742 /* confdefs.h. */
22743 _ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22747 $ac_includes_default
22749 main ()
22752 /* Are we little or big endian? From Harbison&Steele. */
22753 union
22755 long int l;
22756 char c[sizeof (long int)];
22757 } u;
22758 u.l = 1;
22759 return u.c[sizeof (long int) - 1] == 1;
22762 return 0;
22764 _ACEOF
22765 rm -f conftest$ac_exeext
22766 if { (ac_try="$ac_link"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22770 esac
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_link") 2>&5
22773 ac_status=$?
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22776 { (case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22779 esac
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_try") 2>&5
22782 ac_status=$?
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; }; then
22785 ac_cv_c_bigendian=no
22786 else
22787 echo "$as_me: program exited with status $ac_status" >&5
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22791 ( exit $ac_status )
22792 ac_cv_c_bigendian=yes
22794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22803 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22804 case $ac_cv_c_bigendian in
22805 yes)
22807 cat >>confdefs.h <<\_ACEOF
22808 #define WORDS_BIGENDIAN 1
22809 _ACEOF
22814 { { echo "$as_me:$LINENO: error: unknown endianness
22815 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22816 echo "$as_me: error: unknown endianness
22817 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22818 { (exit 1); exit 1; }; } ;;
22819 esac
22822 # Check whether right shifting a negative integer extends the sign bit
22823 # or fills with zeros (like the Cray J90, according to Tim Peters).
22824 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22825 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22826 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22828 else
22830 if test "$cross_compiling" = yes; then
22831 ac_cv_rshift_extends_sign=yes
22832 else
22833 cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h. */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22840 int main()
22842 exit(((-1)>>3 == -1) ? 0 : 1);
22845 _ACEOF
22846 rm -f conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_link") 2>&5
22854 ac_status=$?
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22857 { (case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_try") 2>&5
22863 ac_status=$?
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; }; then
22866 ac_cv_rshift_extends_sign=yes
22867 else
22868 echo "$as_me: program exited with status $ac_status" >&5
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 ( exit $ac_status )
22873 ac_cv_rshift_extends_sign=no
22875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22881 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22882 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22883 if test "$ac_cv_rshift_extends_sign" = no
22884 then
22886 cat >>confdefs.h <<\_ACEOF
22887 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22888 _ACEOF
22892 # check for getc_unlocked and related locking functions
22893 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22894 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22895 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22899 cat >conftest.$ac_ext <<_ACEOF
22900 /* confdefs.h. */
22901 _ACEOF
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h. */
22905 #include <stdio.h>
22907 main ()
22910 FILE *f = fopen("/dev/null", "r");
22911 flockfile(f);
22912 getc_unlocked(f);
22913 funlockfile(f);
22916 return 0;
22918 _ACEOF
22919 rm -f conftest.$ac_objext conftest$ac_exeext
22920 if { (ac_try="$ac_link"
22921 case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22924 esac
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_link") 2>conftest.er1
22927 ac_status=$?
22928 grep -v '^ *+' conftest.er1 >conftest.err
22929 rm -f conftest.er1
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } && {
22933 test -z "$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22935 } && test -s conftest$ac_exeext &&
22936 $as_test_x conftest$ac_exeext; then
22937 ac_cv_have_getc_unlocked=yes
22938 else
22939 echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22942 ac_cv_have_getc_unlocked=no
22945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22946 conftest$ac_exeext conftest.$ac_ext
22949 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22950 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22951 if test "$ac_cv_have_getc_unlocked" = yes
22952 then
22954 cat >>confdefs.h <<\_ACEOF
22955 #define HAVE_GETC_UNLOCKED 1
22956 _ACEOF
22960 # check where readline lives
22961 # save the value of LIBS so we don't actually link Python with readline
22962 LIBS_no_readline=$LIBS
22964 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22965 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22966 if test "${ac_cv_lib_readline_readline+set}" = set; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 else
22969 ac_check_lib_save_LIBS=$LIBS
22970 LIBS="-lreadline $READLINE_LIBS $LIBS"
22971 cat >conftest.$ac_ext <<_ACEOF
22972 /* confdefs.h. */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22978 /* Override any GCC internal prototype to avoid an error.
22979 Use char because int might match the return type of a GCC
22980 builtin and then its argument prototype would still apply. */
22981 #ifdef __cplusplus
22982 extern "C"
22983 #endif
22984 char readline ();
22986 main ()
22988 return readline ();
22990 return 0;
22992 _ACEOF
22993 rm -f conftest.$ac_objext conftest$ac_exeext
22994 if { (ac_try="$ac_link"
22995 case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_link") 2>conftest.er1
23001 ac_status=$?
23002 grep -v '^ *+' conftest.er1 >conftest.err
23003 rm -f conftest.er1
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } && {
23007 test -z "$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 } && test -s conftest$ac_exeext &&
23010 $as_test_x conftest$ac_exeext; then
23011 ac_cv_lib_readline_readline=yes
23012 else
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23016 ac_cv_lib_readline_readline=no
23019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23020 conftest$ac_exeext conftest.$ac_ext
23021 LIBS=$ac_check_lib_save_LIBS
23023 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
23024 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
23025 if test $ac_cv_lib_readline_readline = yes; then
23026 cat >>confdefs.h <<_ACEOF
23027 #define HAVE_LIBREADLINE 1
23028 _ACEOF
23030 LIBS="-lreadline $LIBS"
23034 if test "$ac_cv_have_readline_readline" = no
23035 then
23037 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
23038 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
23039 if test "${ac_cv_lib_termcap_readline+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 else
23042 ac_check_lib_save_LIBS=$LIBS
23043 LIBS="-ltermcap $LIBS"
23044 cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h. */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23051 /* Override any GCC internal prototype to avoid an error.
23052 Use char because int might match the return type of a GCC
23053 builtin and then its argument prototype would still apply. */
23054 #ifdef __cplusplus
23055 extern "C"
23056 #endif
23057 char readline ();
23059 main ()
23061 return readline ();
23063 return 0;
23065 _ACEOF
23066 rm -f conftest.$ac_objext conftest$ac_exeext
23067 if { (ac_try="$ac_link"
23068 case "(($ac_try" in
23069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23070 *) ac_try_echo=$ac_try;;
23071 esac
23072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23073 (eval "$ac_link") 2>conftest.er1
23074 ac_status=$?
23075 grep -v '^ *+' conftest.er1 >conftest.err
23076 rm -f conftest.er1
23077 cat conftest.err >&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } && {
23080 test -z "$ac_c_werror_flag" ||
23081 test ! -s conftest.err
23082 } && test -s conftest$ac_exeext &&
23083 $as_test_x conftest$ac_exeext; then
23084 ac_cv_lib_termcap_readline=yes
23085 else
23086 echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23089 ac_cv_lib_termcap_readline=no
23092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23093 conftest$ac_exeext conftest.$ac_ext
23094 LIBS=$ac_check_lib_save_LIBS
23096 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
23097 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
23098 if test $ac_cv_lib_termcap_readline = yes; then
23099 cat >>confdefs.h <<_ACEOF
23100 #define HAVE_LIBTERMCAP 1
23101 _ACEOF
23103 LIBS="-ltermcap $LIBS"
23109 # check for readline 2.1
23110 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23111 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23112 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23114 else
23115 ac_check_lib_save_LIBS=$LIBS
23116 LIBS="-lreadline $READLINE_LIBS $LIBS"
23117 cat >conftest.$ac_ext <<_ACEOF
23118 /* confdefs.h. */
23119 _ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23124 /* Override any GCC internal prototype to avoid an error.
23125 Use char because int might match the return type of a GCC
23126 builtin and then its argument prototype would still apply. */
23127 #ifdef __cplusplus
23128 extern "C"
23129 #endif
23130 char rl_callback_handler_install ();
23132 main ()
23134 return rl_callback_handler_install ();
23136 return 0;
23138 _ACEOF
23139 rm -f conftest.$ac_objext conftest$ac_exeext
23140 if { (ac_try="$ac_link"
23141 case "(($ac_try" in
23142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23144 esac
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_link") 2>conftest.er1
23147 ac_status=$?
23148 grep -v '^ *+' conftest.er1 >conftest.err
23149 rm -f conftest.er1
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } && {
23153 test -z "$ac_c_werror_flag" ||
23154 test ! -s conftest.err
23155 } && test -s conftest$ac_exeext &&
23156 $as_test_x conftest$ac_exeext; then
23157 ac_cv_lib_readline_rl_callback_handler_install=yes
23158 else
23159 echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23162 ac_cv_lib_readline_rl_callback_handler_install=no
23165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23166 conftest$ac_exeext conftest.$ac_ext
23167 LIBS=$ac_check_lib_save_LIBS
23169 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23170 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23171 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23173 cat >>confdefs.h <<\_ACEOF
23174 #define HAVE_RL_CALLBACK 1
23175 _ACEOF
23180 # check for readline 2.2
23181 cat >conftest.$ac_ext <<_ACEOF
23182 /* confdefs.h. */
23183 _ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23187 #include <readline/readline.h>
23188 _ACEOF
23189 if { (ac_try="$ac_cpp conftest.$ac_ext"
23190 case "(($ac_try" in
23191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23192 *) ac_try_echo=$ac_try;;
23193 esac
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23196 ac_status=$?
23197 grep -v '^ *+' conftest.er1 >conftest.err
23198 rm -f conftest.er1
23199 cat conftest.err >&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } >/dev/null && {
23202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23204 }; then
23205 have_readline=yes
23206 else
23207 echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23210 have_readline=no
23213 rm -f conftest.err conftest.$ac_ext
23214 if test $have_readline = yes
23215 then
23216 cat >conftest.$ac_ext <<_ACEOF
23217 /* confdefs.h. */
23218 _ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h. */
23222 #include <readline/readline.h>
23224 _ACEOF
23225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23226 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23228 cat >>confdefs.h <<\_ACEOF
23229 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23230 _ACEOF
23233 rm -f conftest*
23237 # check for readline 4.0
23238 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23239 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23240 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23242 else
23243 ac_check_lib_save_LIBS=$LIBS
23244 LIBS="-lreadline $READLINE_LIBS $LIBS"
23245 cat >conftest.$ac_ext <<_ACEOF
23246 /* confdefs.h. */
23247 _ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h. */
23252 /* Override any GCC internal prototype to avoid an error.
23253 Use char because int might match the return type of a GCC
23254 builtin and then its argument prototype would still apply. */
23255 #ifdef __cplusplus
23256 extern "C"
23257 #endif
23258 char rl_pre_input_hook ();
23260 main ()
23262 return rl_pre_input_hook ();
23264 return 0;
23266 _ACEOF
23267 rm -f conftest.$ac_objext conftest$ac_exeext
23268 if { (ac_try="$ac_link"
23269 case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23272 esac
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_link") 2>conftest.er1
23275 ac_status=$?
23276 grep -v '^ *+' conftest.er1 >conftest.err
23277 rm -f conftest.er1
23278 cat conftest.err >&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && {
23281 test -z "$ac_c_werror_flag" ||
23282 test ! -s conftest.err
23283 } && test -s conftest$ac_exeext &&
23284 $as_test_x conftest$ac_exeext; then
23285 ac_cv_lib_readline_rl_pre_input_hook=yes
23286 else
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23290 ac_cv_lib_readline_rl_pre_input_hook=no
23293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23294 conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23297 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23298 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23299 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23301 cat >>confdefs.h <<\_ACEOF
23302 #define HAVE_RL_PRE_INPUT_HOOK 1
23303 _ACEOF
23308 # also in 4.0
23309 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23310 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23311 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23313 else
23314 ac_check_lib_save_LIBS=$LIBS
23315 LIBS="-lreadline $READLINE_LIBS $LIBS"
23316 cat >conftest.$ac_ext <<_ACEOF
23317 /* confdefs.h. */
23318 _ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23323 /* Override any GCC internal prototype to avoid an error.
23324 Use char because int might match the return type of a GCC
23325 builtin and then its argument prototype would still apply. */
23326 #ifdef __cplusplus
23327 extern "C"
23328 #endif
23329 char rl_completion_display_matches_hook ();
23331 main ()
23333 return rl_completion_display_matches_hook ();
23335 return 0;
23337 _ACEOF
23338 rm -f conftest.$ac_objext conftest$ac_exeext
23339 if { (ac_try="$ac_link"
23340 case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23343 esac
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_link") 2>conftest.er1
23346 ac_status=$?
23347 grep -v '^ *+' conftest.er1 >conftest.err
23348 rm -f conftest.er1
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } && {
23352 test -z "$ac_c_werror_flag" ||
23353 test ! -s conftest.err
23354 } && test -s conftest$ac_exeext &&
23355 $as_test_x conftest$ac_exeext; then
23356 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23357 else
23358 echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23361 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23365 conftest$ac_exeext conftest.$ac_ext
23366 LIBS=$ac_check_lib_save_LIBS
23368 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23369 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23370 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23372 cat >>confdefs.h <<\_ACEOF
23373 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23374 _ACEOF
23379 # check for readline 4.2
23380 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23381 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23382 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23383 echo $ECHO_N "(cached) $ECHO_C" >&6
23384 else
23385 ac_check_lib_save_LIBS=$LIBS
23386 LIBS="-lreadline $READLINE_LIBS $LIBS"
23387 cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h. */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23394 /* Override any GCC internal prototype to avoid an error.
23395 Use char because int might match the return type of a GCC
23396 builtin and then its argument prototype would still apply. */
23397 #ifdef __cplusplus
23398 extern "C"
23399 #endif
23400 char rl_completion_matches ();
23402 main ()
23404 return rl_completion_matches ();
23406 return 0;
23408 _ACEOF
23409 rm -f conftest.$ac_objext conftest$ac_exeext
23410 if { (ac_try="$ac_link"
23411 case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23414 esac
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416 (eval "$ac_link") 2>conftest.er1
23417 ac_status=$?
23418 grep -v '^ *+' conftest.er1 >conftest.err
23419 rm -f conftest.er1
23420 cat conftest.err >&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } && {
23423 test -z "$ac_c_werror_flag" ||
23424 test ! -s conftest.err
23425 } && test -s conftest$ac_exeext &&
23426 $as_test_x conftest$ac_exeext; then
23427 ac_cv_lib_readline_rl_completion_matches=yes
23428 else
23429 echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ac_cv_lib_readline_rl_completion_matches=no
23435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23436 conftest$ac_exeext conftest.$ac_ext
23437 LIBS=$ac_check_lib_save_LIBS
23439 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23440 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23441 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23443 cat >>confdefs.h <<\_ACEOF
23444 #define HAVE_RL_COMPLETION_MATCHES 1
23445 _ACEOF
23450 # also in readline 4.2
23451 cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h. */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457 #include <readline/readline.h>
23458 _ACEOF
23459 if { (ac_try="$ac_cpp conftest.$ac_ext"
23460 case "(($ac_try" in
23461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23462 *) ac_try_echo=$ac_try;;
23463 esac
23464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23466 ac_status=$?
23467 grep -v '^ *+' conftest.er1 >conftest.err
23468 rm -f conftest.er1
23469 cat conftest.err >&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } >/dev/null && {
23472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23473 test ! -s conftest.err
23474 }; then
23475 have_readline=yes
23476 else
23477 echo "$as_me: failed program was:" >&5
23478 sed 's/^/| /' conftest.$ac_ext >&5
23480 have_readline=no
23483 rm -f conftest.err conftest.$ac_ext
23484 if test $have_readline = yes
23485 then
23486 cat >conftest.$ac_ext <<_ACEOF
23487 /* confdefs.h. */
23488 _ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h. */
23492 #include <readline/readline.h>
23494 _ACEOF
23495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23496 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
23498 cat >>confdefs.h <<\_ACEOF
23499 #define HAVE_RL_CATCH_SIGNAL 1
23500 _ACEOF
23503 rm -f conftest*
23507 # End of readline checks: restore LIBS
23508 LIBS=$LIBS_no_readline
23510 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23511 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23512 if test "${ac_cv_broken_nice+set}" = set; then
23513 echo $ECHO_N "(cached) $ECHO_C" >&6
23514 else
23516 if test "$cross_compiling" = yes; then
23517 ac_cv_broken_nice=no
23518 else
23519 cat >conftest.$ac_ext <<_ACEOF
23520 /* confdefs.h. */
23521 _ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h. */
23526 int main()
23528 int val1 = nice(1);
23529 if (val1 != -1 && val1 == nice(2))
23530 exit(0);
23531 exit(1);
23534 _ACEOF
23535 rm -f conftest$ac_exeext
23536 if { (ac_try="$ac_link"
23537 case "(($ac_try" in
23538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539 *) ac_try_echo=$ac_try;;
23540 esac
23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542 (eval "$ac_link") 2>&5
23543 ac_status=$?
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23546 { (case "(($ac_try" in
23547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23549 esac
23550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23551 (eval "$ac_try") 2>&5
23552 ac_status=$?
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); }; }; then
23555 ac_cv_broken_nice=yes
23556 else
23557 echo "$as_me: program exited with status $ac_status" >&5
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23561 ( exit $ac_status )
23562 ac_cv_broken_nice=no
23564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23570 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23571 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23572 if test "$ac_cv_broken_nice" = yes
23573 then
23575 cat >>confdefs.h <<\_ACEOF
23576 #define HAVE_BROKEN_NICE 1
23577 _ACEOF
23581 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23582 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23583 if test "$cross_compiling" = yes; then
23584 ac_cv_broken_poll=no
23585 else
23586 cat >conftest.$ac_ext <<_ACEOF
23587 /* confdefs.h. */
23588 _ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23593 #include <poll.h>
23595 int main (void)
23597 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23599 close (42);
23601 int poll_test = poll (&poll_struct, 1, 0);
23603 if (poll_test < 0)
23605 exit(0);
23607 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23609 exit(0);
23611 else
23613 exit(1);
23617 _ACEOF
23618 rm -f conftest$ac_exeext
23619 if { (ac_try="$ac_link"
23620 case "(($ac_try" in
23621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23622 *) ac_try_echo=$ac_try;;
23623 esac
23624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23625 (eval "$ac_link") 2>&5
23626 ac_status=$?
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23629 { (case "(($ac_try" in
23630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631 *) ac_try_echo=$ac_try;;
23632 esac
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634 (eval "$ac_try") 2>&5
23635 ac_status=$?
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; }; then
23638 ac_cv_broken_poll=yes
23639 else
23640 echo "$as_me: program exited with status $ac_status" >&5
23641 echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.$ac_ext >&5
23644 ( exit $ac_status )
23645 ac_cv_broken_poll=no
23647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23651 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23652 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23653 if test "$ac_cv_broken_poll" = yes
23654 then
23656 cat >>confdefs.h <<\_ACEOF
23657 #define HAVE_BROKEN_POLL 1
23658 _ACEOF
23662 # Before we can test tzset, we need to check if struct tm has a tm_zone
23663 # (which is not required by ISO C or UNIX spec) and/or if we support
23664 # tzname[]
23665 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23666 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23667 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 else
23670 cat >conftest.$ac_ext <<_ACEOF
23671 /* confdefs.h. */
23672 _ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 #include <sys/types.h>
23677 #include <$ac_cv_struct_tm>
23681 main ()
23683 static struct tm ac_aggr;
23684 if (ac_aggr.tm_zone)
23685 return 0;
23687 return 0;
23689 _ACEOF
23690 rm -f conftest.$ac_objext
23691 if { (ac_try="$ac_compile"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23695 esac
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_compile") 2>conftest.er1
23698 ac_status=$?
23699 grep -v '^ *+' conftest.er1 >conftest.err
23700 rm -f conftest.er1
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } && {
23704 test -z "$ac_c_werror_flag" ||
23705 test ! -s conftest.err
23706 } && test -s conftest.$ac_objext; then
23707 ac_cv_member_struct_tm_tm_zone=yes
23708 else
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23712 cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h. */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 #include <sys/types.h>
23719 #include <$ac_cv_struct_tm>
23723 main ()
23725 static struct tm ac_aggr;
23726 if (sizeof ac_aggr.tm_zone)
23727 return 0;
23729 return 0;
23731 _ACEOF
23732 rm -f conftest.$ac_objext
23733 if { (ac_try="$ac_compile"
23734 case "(($ac_try" in
23735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736 *) ac_try_echo=$ac_try;;
23737 esac
23738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739 (eval "$ac_compile") 2>conftest.er1
23740 ac_status=$?
23741 grep -v '^ *+' conftest.er1 >conftest.err
23742 rm -f conftest.er1
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } && {
23746 test -z "$ac_c_werror_flag" ||
23747 test ! -s conftest.err
23748 } && test -s conftest.$ac_objext; then
23749 ac_cv_member_struct_tm_tm_zone=yes
23750 else
23751 echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23754 ac_cv_member_struct_tm_tm_zone=no
23757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23762 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23763 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23764 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23766 cat >>confdefs.h <<_ACEOF
23767 #define HAVE_STRUCT_TM_TM_ZONE 1
23768 _ACEOF
23773 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23775 cat >>confdefs.h <<\_ACEOF
23776 #define HAVE_TM_ZONE 1
23777 _ACEOF
23779 else
23780 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23781 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23782 if test "${ac_cv_have_decl_tzname+set}" = set; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23784 else
23785 cat >conftest.$ac_ext <<_ACEOF
23786 /* confdefs.h. */
23787 _ACEOF
23788 cat confdefs.h >>conftest.$ac_ext
23789 cat >>conftest.$ac_ext <<_ACEOF
23790 /* end confdefs.h. */
23791 #include <time.h>
23794 main ()
23796 #ifndef tzname
23797 (void) tzname;
23798 #endif
23801 return 0;
23803 _ACEOF
23804 rm -f conftest.$ac_objext
23805 if { (ac_try="$ac_compile"
23806 case "(($ac_try" in
23807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23809 esac
23810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23811 (eval "$ac_compile") 2>conftest.er1
23812 ac_status=$?
23813 grep -v '^ *+' conftest.er1 >conftest.err
23814 rm -f conftest.er1
23815 cat conftest.err >&5
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); } && {
23818 test -z "$ac_c_werror_flag" ||
23819 test ! -s conftest.err
23820 } && test -s conftest.$ac_objext; then
23821 ac_cv_have_decl_tzname=yes
23822 else
23823 echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23826 ac_cv_have_decl_tzname=no
23829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23831 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23832 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23833 if test $ac_cv_have_decl_tzname = yes; then
23835 cat >>confdefs.h <<_ACEOF
23836 #define HAVE_DECL_TZNAME 1
23837 _ACEOF
23840 else
23841 cat >>confdefs.h <<_ACEOF
23842 #define HAVE_DECL_TZNAME 0
23843 _ACEOF
23849 { echo "$as_me:$LINENO: checking for tzname" >&5
23850 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23851 if test "${ac_cv_var_tzname+set}" = set; then
23852 echo $ECHO_N "(cached) $ECHO_C" >&6
23853 else
23854 cat >conftest.$ac_ext <<_ACEOF
23855 /* confdefs.h. */
23856 _ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h. */
23860 #include <time.h>
23861 #if !HAVE_DECL_TZNAME
23862 extern char *tzname[];
23863 #endif
23866 main ()
23868 return tzname[0][0];
23870 return 0;
23872 _ACEOF
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (ac_try="$ac_link"
23875 case "(($ac_try" in
23876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23877 *) ac_try_echo=$ac_try;;
23878 esac
23879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23880 (eval "$ac_link") 2>conftest.er1
23881 ac_status=$?
23882 grep -v '^ *+' conftest.er1 >conftest.err
23883 rm -f conftest.er1
23884 cat conftest.err >&5
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); } && {
23887 test -z "$ac_c_werror_flag" ||
23888 test ! -s conftest.err
23889 } && test -s conftest$ac_exeext &&
23890 $as_test_x conftest$ac_exeext; then
23891 ac_cv_var_tzname=yes
23892 else
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23896 ac_cv_var_tzname=no
23899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23900 conftest$ac_exeext conftest.$ac_ext
23902 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23903 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23904 if test $ac_cv_var_tzname = yes; then
23906 cat >>confdefs.h <<\_ACEOF
23907 #define HAVE_TZNAME 1
23908 _ACEOF
23914 # check tzset(3) exists and works like we expect it to
23915 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23916 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23917 if test "${ac_cv_working_tzset+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23919 else
23921 if test "$cross_compiling" = yes; then
23922 ac_cv_working_tzset=no
23923 else
23924 cat >conftest.$ac_ext <<_ACEOF
23925 /* confdefs.h. */
23926 _ACEOF
23927 cat confdefs.h >>conftest.$ac_ext
23928 cat >>conftest.$ac_ext <<_ACEOF
23929 /* end confdefs.h. */
23931 #include <stdlib.h>
23932 #include <time.h>
23933 #include <string.h>
23935 #if HAVE_TZNAME
23936 extern char *tzname[];
23937 #endif
23939 int main()
23941 /* Note that we need to ensure that not only does tzset(3)
23942 do 'something' with localtime, but it works as documented
23943 in the library reference and as expected by the test suite.
23944 This includes making sure that tzname is set properly if
23945 tm->tm_zone does not exist since it is the alternative way
23946 of getting timezone info.
23948 Red Hat 6.2 doesn't understand the southern hemisphere
23949 after New Year's Day.
23952 time_t groundhogday = 1044144000; /* GMT-based */
23953 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23955 putenv("TZ=UTC+0");
23956 tzset();
23957 if (localtime(&groundhogday)->tm_hour != 0)
23958 exit(1);
23959 #if HAVE_TZNAME
23960 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23961 if (strcmp(tzname[0], "UTC") ||
23962 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23963 exit(1);
23964 #endif
23966 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23967 tzset();
23968 if (localtime(&groundhogday)->tm_hour != 19)
23969 exit(1);
23970 #if HAVE_TZNAME
23971 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23972 exit(1);
23973 #endif
23975 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23976 tzset();
23977 if (localtime(&groundhogday)->tm_hour != 11)
23978 exit(1);
23979 #if HAVE_TZNAME
23980 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23981 exit(1);
23982 #endif
23984 #if HAVE_STRUCT_TM_TM_ZONE
23985 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23986 exit(1);
23987 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23988 exit(1);
23989 #endif
23991 exit(0);
23994 _ACEOF
23995 rm -f conftest$ac_exeext
23996 if { (ac_try="$ac_link"
23997 case "(($ac_try" in
23998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23999 *) ac_try_echo=$ac_try;;
24000 esac
24001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24002 (eval "$ac_link") 2>&5
24003 ac_status=$?
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24006 { (case "(($ac_try" in
24007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24008 *) ac_try_echo=$ac_try;;
24009 esac
24010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24011 (eval "$ac_try") 2>&5
24012 ac_status=$?
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); }; }; then
24015 ac_cv_working_tzset=yes
24016 else
24017 echo "$as_me: program exited with status $ac_status" >&5
24018 echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24021 ( exit $ac_status )
24022 ac_cv_working_tzset=no
24024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24030 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24031 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24032 if test "$ac_cv_working_tzset" = yes
24033 then
24035 cat >>confdefs.h <<\_ACEOF
24036 #define HAVE_WORKING_TZSET 1
24037 _ACEOF
24041 # Look for subsecond timestamps in struct stat
24042 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24043 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24044 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24045 echo $ECHO_N "(cached) $ECHO_C" >&6
24046 else
24047 cat >conftest.$ac_ext <<_ACEOF
24048 /* confdefs.h. */
24049 _ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h. */
24053 #include <sys/stat.h>
24055 main ()
24058 struct stat st;
24059 st.st_mtim.tv_nsec = 1;
24062 return 0;
24064 _ACEOF
24065 rm -f conftest.$ac_objext
24066 if { (ac_try="$ac_compile"
24067 case "(($ac_try" in
24068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069 *) ac_try_echo=$ac_try;;
24070 esac
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072 (eval "$ac_compile") 2>conftest.er1
24073 ac_status=$?
24074 grep -v '^ *+' conftest.er1 >conftest.err
24075 rm -f conftest.er1
24076 cat conftest.err >&5
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); } && {
24079 test -z "$ac_c_werror_flag" ||
24080 test ! -s conftest.err
24081 } && test -s conftest.$ac_objext; then
24082 ac_cv_stat_tv_nsec=yes
24083 else
24084 echo "$as_me: failed program was:" >&5
24085 sed 's/^/| /' conftest.$ac_ext >&5
24087 ac_cv_stat_tv_nsec=no
24090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24093 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24094 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24095 if test "$ac_cv_stat_tv_nsec" = yes
24096 then
24098 cat >>confdefs.h <<\_ACEOF
24099 #define HAVE_STAT_TV_NSEC 1
24100 _ACEOF
24104 # Look for BSD style subsecond timestamps in struct stat
24105 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24106 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24107 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24108 echo $ECHO_N "(cached) $ECHO_C" >&6
24109 else
24110 cat >conftest.$ac_ext <<_ACEOF
24111 /* confdefs.h. */
24112 _ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24116 #include <sys/stat.h>
24118 main ()
24121 struct stat st;
24122 st.st_mtimespec.tv_nsec = 1;
24125 return 0;
24127 _ACEOF
24128 rm -f conftest.$ac_objext
24129 if { (ac_try="$ac_compile"
24130 case "(($ac_try" in
24131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132 *) ac_try_echo=$ac_try;;
24133 esac
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135 (eval "$ac_compile") 2>conftest.er1
24136 ac_status=$?
24137 grep -v '^ *+' conftest.er1 >conftest.err
24138 rm -f conftest.er1
24139 cat conftest.err >&5
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } && {
24142 test -z "$ac_c_werror_flag" ||
24143 test ! -s conftest.err
24144 } && test -s conftest.$ac_objext; then
24145 ac_cv_stat_tv_nsec2=yes
24146 else
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24150 ac_cv_stat_tv_nsec2=no
24153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24156 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24157 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24158 if test "$ac_cv_stat_tv_nsec2" = yes
24159 then
24161 cat >>confdefs.h <<\_ACEOF
24162 #define HAVE_STAT_TV_NSEC2 1
24163 _ACEOF
24167 # On HP/UX 11.0, mvwdelch is a block with a return statement
24168 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24169 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24170 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24171 echo $ECHO_N "(cached) $ECHO_C" >&6
24172 else
24173 cat >conftest.$ac_ext <<_ACEOF
24174 /* confdefs.h. */
24175 _ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24179 #include <curses.h>
24181 main ()
24184 int rtn;
24185 rtn = mvwdelch(0,0,0);
24188 return 0;
24190 _ACEOF
24191 rm -f conftest.$ac_objext
24192 if { (ac_try="$ac_compile"
24193 case "(($ac_try" in
24194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24195 *) ac_try_echo=$ac_try;;
24196 esac
24197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24198 (eval "$ac_compile") 2>conftest.er1
24199 ac_status=$?
24200 grep -v '^ *+' conftest.er1 >conftest.err
24201 rm -f conftest.er1
24202 cat conftest.err >&5
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } && {
24205 test -z "$ac_c_werror_flag" ||
24206 test ! -s conftest.err
24207 } && test -s conftest.$ac_objext; then
24208 ac_cv_mvwdelch_is_expression=yes
24209 else
24210 echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 ac_cv_mvwdelch_is_expression=no
24216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24219 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24220 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24222 if test "$ac_cv_mvwdelch_is_expression" = yes
24223 then
24225 cat >>confdefs.h <<\_ACEOF
24226 #define MVWDELCH_IS_EXPRESSION 1
24227 _ACEOF
24231 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24232 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24233 if test "${ac_cv_window_has_flags+set}" = set; then
24234 echo $ECHO_N "(cached) $ECHO_C" >&6
24235 else
24236 cat >conftest.$ac_ext <<_ACEOF
24237 /* confdefs.h. */
24238 _ACEOF
24239 cat confdefs.h >>conftest.$ac_ext
24240 cat >>conftest.$ac_ext <<_ACEOF
24241 /* end confdefs.h. */
24242 #include <curses.h>
24244 main ()
24247 WINDOW *w;
24248 w->_flags = 0;
24251 return 0;
24253 _ACEOF
24254 rm -f conftest.$ac_objext
24255 if { (ac_try="$ac_compile"
24256 case "(($ac_try" in
24257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258 *) ac_try_echo=$ac_try;;
24259 esac
24260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261 (eval "$ac_compile") 2>conftest.er1
24262 ac_status=$?
24263 grep -v '^ *+' conftest.er1 >conftest.err
24264 rm -f conftest.er1
24265 cat conftest.err >&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); } && {
24268 test -z "$ac_c_werror_flag" ||
24269 test ! -s conftest.err
24270 } && test -s conftest.$ac_objext; then
24271 ac_cv_window_has_flags=yes
24272 else
24273 echo "$as_me: failed program was:" >&5
24274 sed 's/^/| /' conftest.$ac_ext >&5
24276 ac_cv_window_has_flags=no
24279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24282 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24283 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24286 if test "$ac_cv_window_has_flags" = yes
24287 then
24289 cat >>confdefs.h <<\_ACEOF
24290 #define WINDOW_HAS_FLAGS 1
24291 _ACEOF
24295 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24296 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24297 cat >conftest.$ac_ext <<_ACEOF
24298 /* confdefs.h. */
24299 _ACEOF
24300 cat confdefs.h >>conftest.$ac_ext
24301 cat >>conftest.$ac_ext <<_ACEOF
24302 /* end confdefs.h. */
24303 #include <curses.h>
24305 main ()
24307 void *x=is_term_resized
24309 return 0;
24311 _ACEOF
24312 rm -f conftest.$ac_objext
24313 if { (ac_try="$ac_compile"
24314 case "(($ac_try" in
24315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24317 esac
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319 (eval "$ac_compile") 2>conftest.er1
24320 ac_status=$?
24321 grep -v '^ *+' conftest.er1 >conftest.err
24322 rm -f conftest.er1
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } && {
24326 test -z "$ac_c_werror_flag" ||
24327 test ! -s conftest.err
24328 } && test -s conftest.$ac_objext; then
24330 cat >>confdefs.h <<\_ACEOF
24331 #define HAVE_CURSES_IS_TERM_RESIZED 1
24332 _ACEOF
24334 { echo "$as_me:$LINENO: result: yes" >&5
24335 echo "${ECHO_T}yes" >&6; }
24336 else
24337 echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24340 { echo "$as_me:$LINENO: result: no" >&5
24341 echo "${ECHO_T}no" >&6; }
24345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24347 { echo "$as_me:$LINENO: checking for resize_term" >&5
24348 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24349 cat >conftest.$ac_ext <<_ACEOF
24350 /* confdefs.h. */
24351 _ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h. */
24355 #include <curses.h>
24357 main ()
24359 void *x=resize_term
24361 return 0;
24363 _ACEOF
24364 rm -f conftest.$ac_objext
24365 if { (ac_try="$ac_compile"
24366 case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24369 esac
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_compile") 2>conftest.er1
24372 ac_status=$?
24373 grep -v '^ *+' conftest.er1 >conftest.err
24374 rm -f conftest.er1
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } && {
24378 test -z "$ac_c_werror_flag" ||
24379 test ! -s conftest.err
24380 } && test -s conftest.$ac_objext; then
24382 cat >>confdefs.h <<\_ACEOF
24383 #define HAVE_CURSES_RESIZE_TERM 1
24384 _ACEOF
24386 { echo "$as_me:$LINENO: result: yes" >&5
24387 echo "${ECHO_T}yes" >&6; }
24388 else
24389 echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24392 { echo "$as_me:$LINENO: result: no" >&5
24393 echo "${ECHO_T}no" >&6; }
24397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24399 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24400 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24401 cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h. */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h. */
24407 #include <curses.h>
24409 main ()
24411 void *x=resizeterm
24413 return 0;
24415 _ACEOF
24416 rm -f conftest.$ac_objext
24417 if { (ac_try="$ac_compile"
24418 case "(($ac_try" in
24419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24420 *) ac_try_echo=$ac_try;;
24421 esac
24422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423 (eval "$ac_compile") 2>conftest.er1
24424 ac_status=$?
24425 grep -v '^ *+' conftest.er1 >conftest.err
24426 rm -f conftest.er1
24427 cat conftest.err >&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } && {
24430 test -z "$ac_c_werror_flag" ||
24431 test ! -s conftest.err
24432 } && test -s conftest.$ac_objext; then
24434 cat >>confdefs.h <<\_ACEOF
24435 #define HAVE_CURSES_RESIZETERM 1
24436 _ACEOF
24438 { echo "$as_me:$LINENO: result: yes" >&5
24439 echo "${ECHO_T}yes" >&6; }
24440 else
24441 echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24444 { echo "$as_me:$LINENO: result: no" >&5
24445 echo "${ECHO_T}no" >&6; }
24449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24451 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24452 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24454 if test -r /dev/ptmx
24455 then
24456 { echo "$as_me:$LINENO: result: yes" >&5
24457 echo "${ECHO_T}yes" >&6; }
24459 cat >>confdefs.h <<\_ACEOF
24460 #define HAVE_DEV_PTMX 1
24461 _ACEOF
24463 else
24464 { echo "$as_me:$LINENO: result: no" >&5
24465 echo "${ECHO_T}no" >&6; }
24468 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24469 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24471 if test -r /dev/ptc
24472 then
24473 { echo "$as_me:$LINENO: result: yes" >&5
24474 echo "${ECHO_T}yes" >&6; }
24476 cat >>confdefs.h <<\_ACEOF
24477 #define HAVE_DEV_PTC 1
24478 _ACEOF
24480 else
24481 { echo "$as_me:$LINENO: result: no" >&5
24482 echo "${ECHO_T}no" >&6; }
24485 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24486 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24487 if test "$cross_compiling" = yes; then
24488 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24489 See \`config.log' for more details." >&5
24490 echo "$as_me: error: cannot run test program while cross compiling
24491 See \`config.log' for more details." >&2;}
24492 { (exit 1); exit 1; }; }
24493 else
24494 cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h. */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 #include <stdio.h>
24501 #include <stddef.h>
24502 #include <string.h>
24504 #ifdef HAVE_SYS_TYPES_H
24505 #include <sys/types.h>
24506 #endif
24508 #ifdef HAVE_SSIZE_T
24509 typedef ssize_t Py_ssize_t;
24510 #elif SIZEOF_VOID_P == SIZEOF_LONG
24511 typedef long Py_ssize_t;
24512 #else
24513 typedef int Py_ssize_t;
24514 #endif
24516 int main()
24518 char buffer[256];
24520 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24521 return 1;
24523 if (strcmp(buffer, "123"))
24524 return 1;
24526 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24527 return 1;
24529 if (strcmp(buffer, "-123"))
24530 return 1;
24532 return 0;
24534 _ACEOF
24535 rm -f conftest$ac_exeext
24536 if { (ac_try="$ac_link"
24537 case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24540 esac
24541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542 (eval "$ac_link") 2>&5
24543 ac_status=$?
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24546 { (case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24549 esac
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551 (eval "$ac_try") 2>&5
24552 ac_status=$?
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); }; }; then
24555 { echo "$as_me:$LINENO: result: yes" >&5
24556 echo "${ECHO_T}yes" >&6; }
24558 cat >>confdefs.h <<\_ACEOF
24559 #define PY_FORMAT_SIZE_T "z"
24560 _ACEOF
24562 else
24563 echo "$as_me: program exited with status $ac_status" >&5
24564 echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24567 ( exit $ac_status )
24568 { echo "$as_me:$LINENO: result: no" >&5
24569 echo "${ECHO_T}no" >&6; }
24571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24576 { echo "$as_me:$LINENO: checking for socklen_t" >&5
24577 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
24578 if test "${ac_cv_type_socklen_t+set}" = set; then
24579 echo $ECHO_N "(cached) $ECHO_C" >&6
24580 else
24581 cat >conftest.$ac_ext <<_ACEOF
24582 /* confdefs.h. */
24583 _ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h. */
24588 #ifdef HAVE_SYS_TYPES_H
24589 #include <sys/types.h>
24590 #endif
24591 #ifdef HAVE_SYS_SOCKET_H
24592 #include <sys/socket.h>
24593 #endif
24596 typedef socklen_t ac__type_new_;
24598 main ()
24600 if ((ac__type_new_ *) 0)
24601 return 0;
24602 if (sizeof (ac__type_new_))
24603 return 0;
24605 return 0;
24607 _ACEOF
24608 rm -f conftest.$ac_objext
24609 if { (ac_try="$ac_compile"
24610 case "(($ac_try" in
24611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612 *) ac_try_echo=$ac_try;;
24613 esac
24614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24615 (eval "$ac_compile") 2>conftest.er1
24616 ac_status=$?
24617 grep -v '^ *+' conftest.er1 >conftest.err
24618 rm -f conftest.er1
24619 cat conftest.err >&5
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); } && {
24622 test -z "$ac_c_werror_flag" ||
24623 test ! -s conftest.err
24624 } && test -s conftest.$ac_objext; then
24625 ac_cv_type_socklen_t=yes
24626 else
24627 echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24630 ac_cv_type_socklen_t=no
24633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24636 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24637 if test $ac_cv_type_socklen_t = yes; then
24639 else
24641 cat >>confdefs.h <<\_ACEOF
24642 #define socklen_t int
24643 _ACEOF
24650 for h in `(cd $srcdir;echo Python/thread_*.h)`
24652 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24653 done
24656 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24657 { echo "$as_me:$LINENO: checking for build directories" >&5
24658 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24659 for dir in $SRCDIRS; do
24660 if test ! -d $dir; then
24661 mkdir $dir
24663 done
24664 { echo "$as_me:$LINENO: result: done" >&5
24665 echo "${ECHO_T}done" >&6; }
24667 # generate output files
24668 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24670 cat >confcache <<\_ACEOF
24671 # This file is a shell script that caches the results of configure
24672 # tests run on this system so they can be shared between configure
24673 # scripts and configure runs, see configure's option --config-cache.
24674 # It is not useful on other systems. If it contains results you don't
24675 # want to keep, you may remove or edit it.
24677 # config.status only pays attention to the cache file if you give it
24678 # the --recheck option to rerun configure.
24680 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24681 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24682 # following values.
24684 _ACEOF
24686 # The following way of writing the cache mishandles newlines in values,
24687 # but we know of no workaround that is simple, portable, and efficient.
24688 # So, we kill variables containing newlines.
24689 # Ultrix sh set writes to stderr and can't be redirected directly,
24690 # and sets the high bit in the cache file unless we assign to the vars.
24692 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24693 eval ac_val=\$$ac_var
24694 case $ac_val in #(
24695 *${as_nl}*)
24696 case $ac_var in #(
24697 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24698 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24699 esac
24700 case $ac_var in #(
24701 _ | IFS | as_nl) ;; #(
24702 *) $as_unset $ac_var ;;
24703 esac ;;
24704 esac
24705 done
24707 (set) 2>&1 |
24708 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24709 *${as_nl}ac_space=\ *)
24710 # `set' does not quote correctly, so add quotes (double-quote
24711 # substitution turns \\\\ into \\, and sed turns \\ into \).
24712 sed -n \
24713 "s/'/'\\\\''/g;
24714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24715 ;; #(
24717 # `set' quotes correctly as required by POSIX, so do not add quotes.
24718 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24720 esac |
24721 sort
24723 sed '
24724 /^ac_cv_env_/b end
24725 t clear
24726 :clear
24727 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24728 t end
24729 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24730 :end' >>confcache
24731 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24732 if test -w "$cache_file"; then
24733 test "x$cache_file" != "x/dev/null" &&
24734 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24735 echo "$as_me: updating cache $cache_file" >&6;}
24736 cat confcache >$cache_file
24737 else
24738 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24739 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24742 rm -f confcache
24744 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24745 # Let make expand exec_prefix.
24746 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24748 DEFS=-DHAVE_CONFIG_H
24750 ac_libobjs=
24751 ac_ltlibobjs=
24752 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24753 # 1. Remove the extension, and $U if already installed.
24754 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24755 ac_i=`echo "$ac_i" | sed "$ac_script"`
24756 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24757 # will be set to the directory where LIBOBJS objects are built.
24758 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24759 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24760 done
24761 LIBOBJS=$ac_libobjs
24763 LTLIBOBJS=$ac_ltlibobjs
24767 : ${CONFIG_STATUS=./config.status}
24768 ac_clean_files_save=$ac_clean_files
24769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24770 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24771 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24772 cat >$CONFIG_STATUS <<_ACEOF
24773 #! $SHELL
24774 # Generated by $as_me.
24775 # Run this file to recreate the current configuration.
24776 # Compiler output produced by configure, useful for debugging
24777 # configure, is in config.log if it exists.
24779 debug=false
24780 ac_cs_recheck=false
24781 ac_cs_silent=false
24782 SHELL=\${CONFIG_SHELL-$SHELL}
24783 _ACEOF
24785 cat >>$CONFIG_STATUS <<\_ACEOF
24786 ## --------------------- ##
24787 ## M4sh Initialization. ##
24788 ## --------------------- ##
24790 # Be more Bourne compatible
24791 DUALCASE=1; export DUALCASE # for MKS sh
24792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24793 emulate sh
24794 NULLCMD=:
24795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24796 # is contrary to our usage. Disable this feature.
24797 alias -g '${1+"$@"}'='"$@"'
24798 setopt NO_GLOB_SUBST
24799 else
24800 case `(set -o) 2>/dev/null` in
24801 *posix*) set -o posix ;;
24802 esac
24809 # PATH needs CR
24810 # Avoid depending upon Character Ranges.
24811 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24812 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24813 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24814 as_cr_digits='0123456789'
24815 as_cr_alnum=$as_cr_Letters$as_cr_digits
24817 # The user is always right.
24818 if test "${PATH_SEPARATOR+set}" != set; then
24819 echo "#! /bin/sh" >conf$$.sh
24820 echo "exit 0" >>conf$$.sh
24821 chmod +x conf$$.sh
24822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24823 PATH_SEPARATOR=';'
24824 else
24825 PATH_SEPARATOR=:
24827 rm -f conf$$.sh
24830 # Support unset when possible.
24831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24832 as_unset=unset
24833 else
24834 as_unset=false
24838 # IFS
24839 # We need space, tab and new line, in precisely that order. Quoting is
24840 # there to prevent editors from complaining about space-tab.
24841 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24842 # splitting by setting IFS to empty value.)
24843 as_nl='
24845 IFS=" "" $as_nl"
24847 # Find who we are. Look in the path if we contain no directory separator.
24848 case $0 in
24849 *[\\/]* ) as_myself=$0 ;;
24850 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24851 for as_dir in $PATH
24853 IFS=$as_save_IFS
24854 test -z "$as_dir" && as_dir=.
24855 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24856 done
24857 IFS=$as_save_IFS
24860 esac
24861 # We did not find ourselves, most probably we were run as `sh COMMAND'
24862 # in which case we are not to be found in the path.
24863 if test "x$as_myself" = x; then
24864 as_myself=$0
24866 if test ! -f "$as_myself"; then
24867 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24868 { (exit 1); exit 1; }
24871 # Work around bugs in pre-3.0 UWIN ksh.
24872 for as_var in ENV MAIL MAILPATH
24873 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24874 done
24875 PS1='$ '
24876 PS2='> '
24877 PS4='+ '
24879 # NLS nuisances.
24880 for as_var in \
24881 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24882 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24883 LC_TELEPHONE LC_TIME
24885 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24886 eval $as_var=C; export $as_var
24887 else
24888 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24890 done
24892 # Required to use basename.
24893 if expr a : '\(a\)' >/dev/null 2>&1 &&
24894 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24895 as_expr=expr
24896 else
24897 as_expr=false
24900 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24901 as_basename=basename
24902 else
24903 as_basename=false
24907 # Name of the executable.
24908 as_me=`$as_basename -- "$0" ||
24909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24910 X"$0" : 'X\(//\)$' \| \
24911 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24912 echo X/"$0" |
24913 sed '/^.*\/\([^/][^/]*\)\/*$/{
24914 s//\1/
24917 /^X\/\(\/\/\)$/{
24918 s//\1/
24921 /^X\/\(\/\).*/{
24922 s//\1/
24925 s/.*/./; q'`
24927 # CDPATH.
24928 $as_unset CDPATH
24932 as_lineno_1=$LINENO
24933 as_lineno_2=$LINENO
24934 test "x$as_lineno_1" != "x$as_lineno_2" &&
24935 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24937 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24938 # uniformly replaced by the line number. The first 'sed' inserts a
24939 # line-number line after each line using $LINENO; the second 'sed'
24940 # does the real work. The second script uses 'N' to pair each
24941 # line-number line with the line containing $LINENO, and appends
24942 # trailing '-' during substitution so that $LINENO is not a special
24943 # case at line end.
24944 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24945 # scripts with optimization help from Paolo Bonzini. Blame Lee
24946 # E. McMahon (1931-1989) for sed's syntax. :-)
24947 sed -n '
24949 /[$]LINENO/=
24950 ' <$as_myself |
24951 sed '
24952 s/[$]LINENO.*/&-/
24953 t lineno
24955 :lineno
24957 :loop
24958 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24959 t loop
24960 s/-\n.*//
24961 ' >$as_me.lineno &&
24962 chmod +x "$as_me.lineno" ||
24963 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24964 { (exit 1); exit 1; }; }
24966 # Don't try to exec as it changes $[0], causing all sort of problems
24967 # (the dirname of $[0] is not the place where we might find the
24968 # original and so on. Autoconf is especially sensitive to this).
24969 . "./$as_me.lineno"
24970 # Exit status is that of the last command.
24971 exit
24975 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24976 as_dirname=dirname
24977 else
24978 as_dirname=false
24981 ECHO_C= ECHO_N= ECHO_T=
24982 case `echo -n x` in
24983 -n*)
24984 case `echo 'x\c'` in
24985 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24986 *) ECHO_C='\c';;
24987 esac;;
24989 ECHO_N='-n';;
24990 esac
24992 if expr a : '\(a\)' >/dev/null 2>&1 &&
24993 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24994 as_expr=expr
24995 else
24996 as_expr=false
24999 rm -f conf$$ conf$$.exe conf$$.file
25000 if test -d conf$$.dir; then
25001 rm -f conf$$.dir/conf$$.file
25002 else
25003 rm -f conf$$.dir
25004 mkdir conf$$.dir
25006 echo >conf$$.file
25007 if ln -s conf$$.file conf$$ 2>/dev/null; then
25008 as_ln_s='ln -s'
25009 # ... but there are two gotchas:
25010 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25011 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25012 # In both cases, we have to default to `cp -p'.
25013 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25014 as_ln_s='cp -p'
25015 elif ln conf$$.file conf$$ 2>/dev/null; then
25016 as_ln_s=ln
25017 else
25018 as_ln_s='cp -p'
25020 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25021 rmdir conf$$.dir 2>/dev/null
25023 if mkdir -p . 2>/dev/null; then
25024 as_mkdir_p=:
25025 else
25026 test -d ./-p && rmdir ./-p
25027 as_mkdir_p=false
25030 if test -x / >/dev/null 2>&1; then
25031 as_test_x='test -x'
25032 else
25033 if ls -dL / >/dev/null 2>&1; then
25034 as_ls_L_option=L
25035 else
25036 as_ls_L_option=
25038 as_test_x='
25039 eval sh -c '\''
25040 if test -d "$1"; then
25041 test -d "$1/.";
25042 else
25043 case $1 in
25044 -*)set "./$1";;
25045 esac;
25046 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25047 ???[sx]*):;;*)false;;esac;fi
25048 '\'' sh
25051 as_executable_p=$as_test_x
25053 # Sed expression to map a string onto a valid CPP name.
25054 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25056 # Sed expression to map a string onto a valid variable name.
25057 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25060 exec 6>&1
25062 # Save the log message, to keep $[0] and so on meaningful, and to
25063 # report actual input values of CONFIG_FILES etc. instead of their
25064 # values after options handling.
25065 ac_log="
25066 This file was extended by python $as_me 2.6, which was
25067 generated by GNU Autoconf 2.61. Invocation command line was
25069 CONFIG_FILES = $CONFIG_FILES
25070 CONFIG_HEADERS = $CONFIG_HEADERS
25071 CONFIG_LINKS = $CONFIG_LINKS
25072 CONFIG_COMMANDS = $CONFIG_COMMANDS
25073 $ $0 $@
25075 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25078 _ACEOF
25080 cat >>$CONFIG_STATUS <<_ACEOF
25081 # Files that config.status was made for.
25082 config_files="$ac_config_files"
25083 config_headers="$ac_config_headers"
25085 _ACEOF
25087 cat >>$CONFIG_STATUS <<\_ACEOF
25088 ac_cs_usage="\
25089 \`$as_me' instantiates files from templates according to the
25090 current configuration.
25092 Usage: $0 [OPTIONS] [FILE]...
25094 -h, --help print this help, then exit
25095 -V, --version print version number and configuration settings, then exit
25096 -q, --quiet do not print progress messages
25097 -d, --debug don't remove temporary files
25098 --recheck update $as_me by reconfiguring in the same conditions
25099 --file=FILE[:TEMPLATE]
25100 instantiate the configuration file FILE
25101 --header=FILE[:TEMPLATE]
25102 instantiate the configuration header FILE
25104 Configuration files:
25105 $config_files
25107 Configuration headers:
25108 $config_headers
25110 Report bugs to <bug-autoconf@gnu.org>."
25112 _ACEOF
25113 cat >>$CONFIG_STATUS <<_ACEOF
25114 ac_cs_version="\\
25115 python config.status 2.6
25116 configured by $0, generated by GNU Autoconf 2.61,
25117 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25119 Copyright (C) 2006 Free Software Foundation, Inc.
25120 This config.status script is free software; the Free Software Foundation
25121 gives unlimited permission to copy, distribute and modify it."
25123 ac_pwd='$ac_pwd'
25124 srcdir='$srcdir'
25125 INSTALL='$INSTALL'
25126 _ACEOF
25128 cat >>$CONFIG_STATUS <<\_ACEOF
25129 # If no file are specified by the user, then we need to provide default
25130 # value. By we need to know if files were specified by the user.
25131 ac_need_defaults=:
25132 while test $# != 0
25134 case $1 in
25135 --*=*)
25136 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25137 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25138 ac_shift=:
25141 ac_option=$1
25142 ac_optarg=$2
25143 ac_shift=shift
25145 esac
25147 case $ac_option in
25148 # Handling of the options.
25149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25150 ac_cs_recheck=: ;;
25151 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25152 echo "$ac_cs_version"; exit ;;
25153 --debug | --debu | --deb | --de | --d | -d )
25154 debug=: ;;
25155 --file | --fil | --fi | --f )
25156 $ac_shift
25157 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25158 ac_need_defaults=false;;
25159 --header | --heade | --head | --hea )
25160 $ac_shift
25161 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25162 ac_need_defaults=false;;
25163 --he | --h)
25164 # Conflict between --help and --header
25165 { echo "$as_me: error: ambiguous option: $1
25166 Try \`$0 --help' for more information." >&2
25167 { (exit 1); exit 1; }; };;
25168 --help | --hel | -h )
25169 echo "$ac_cs_usage"; exit ;;
25170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25171 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25172 ac_cs_silent=: ;;
25174 # This is an error.
25175 -*) { echo "$as_me: error: unrecognized option: $1
25176 Try \`$0 --help' for more information." >&2
25177 { (exit 1); exit 1; }; } ;;
25179 *) ac_config_targets="$ac_config_targets $1"
25180 ac_need_defaults=false ;;
25182 esac
25183 shift
25184 done
25186 ac_configure_extra_args=
25188 if $ac_cs_silent; then
25189 exec 6>/dev/null
25190 ac_configure_extra_args="$ac_configure_extra_args --silent"
25193 _ACEOF
25194 cat >>$CONFIG_STATUS <<_ACEOF
25195 if \$ac_cs_recheck; then
25196 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25197 CONFIG_SHELL=$SHELL
25198 export CONFIG_SHELL
25199 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25202 _ACEOF
25203 cat >>$CONFIG_STATUS <<\_ACEOF
25204 exec 5>>config.log
25206 echo
25207 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25208 ## Running $as_me. ##
25209 _ASBOX
25210 echo "$ac_log"
25211 } >&5
25213 _ACEOF
25214 cat >>$CONFIG_STATUS <<_ACEOF
25215 _ACEOF
25217 cat >>$CONFIG_STATUS <<\_ACEOF
25219 # Handling of arguments.
25220 for ac_config_target in $ac_config_targets
25222 case $ac_config_target in
25223 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25224 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25225 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25226 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25227 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25228 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25229 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25230 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25232 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25233 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25234 { (exit 1); exit 1; }; };;
25235 esac
25236 done
25239 # If the user did not use the arguments to specify the items to instantiate,
25240 # then the envvar interface is used. Set only those that are not.
25241 # We use the long form for the default assignment because of an extremely
25242 # bizarre bug on SunOS 4.1.3.
25243 if $ac_need_defaults; then
25244 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25245 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25248 # Have a temporary directory for convenience. Make it in the build tree
25249 # simply because there is no reason against having it here, and in addition,
25250 # creating and moving files from /tmp can sometimes cause problems.
25251 # Hook for its removal unless debugging.
25252 # Note that there is a small window in which the directory will not be cleaned:
25253 # after its creation but before its name has been assigned to `$tmp'.
25254 $debug ||
25256 tmp=
25257 trap 'exit_status=$?
25258 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25260 trap '{ (exit 1); exit 1; }' 1 2 13 15
25262 # Create a (secure) tmp directory for tmp files.
25265 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25266 test -n "$tmp" && test -d "$tmp"
25267 } ||
25269 tmp=./conf$$-$RANDOM
25270 (umask 077 && mkdir "$tmp")
25271 } ||
25273 echo "$me: cannot create a temporary directory in ." >&2
25274 { (exit 1); exit 1; }
25278 # Set up the sed scripts for CONFIG_FILES section.
25281 # No need to generate the scripts if there are no CONFIG_FILES.
25282 # This happens for instance when ./config.status config.h
25283 if test -n "$CONFIG_FILES"; then
25285 _ACEOF
25289 ac_delim='%!_!# '
25290 for ac_last_try in false false false false false :; do
25291 cat >conf$$subs.sed <<_ACEOF
25292 SHELL!$SHELL$ac_delim
25293 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25294 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25295 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25296 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25297 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25298 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25299 exec_prefix!$exec_prefix$ac_delim
25300 prefix!$prefix$ac_delim
25301 program_transform_name!$program_transform_name$ac_delim
25302 bindir!$bindir$ac_delim
25303 sbindir!$sbindir$ac_delim
25304 libexecdir!$libexecdir$ac_delim
25305 datarootdir!$datarootdir$ac_delim
25306 datadir!$datadir$ac_delim
25307 sysconfdir!$sysconfdir$ac_delim
25308 sharedstatedir!$sharedstatedir$ac_delim
25309 localstatedir!$localstatedir$ac_delim
25310 includedir!$includedir$ac_delim
25311 oldincludedir!$oldincludedir$ac_delim
25312 docdir!$docdir$ac_delim
25313 infodir!$infodir$ac_delim
25314 htmldir!$htmldir$ac_delim
25315 dvidir!$dvidir$ac_delim
25316 pdfdir!$pdfdir$ac_delim
25317 psdir!$psdir$ac_delim
25318 libdir!$libdir$ac_delim
25319 localedir!$localedir$ac_delim
25320 mandir!$mandir$ac_delim
25321 DEFS!$DEFS$ac_delim
25322 ECHO_C!$ECHO_C$ac_delim
25323 ECHO_N!$ECHO_N$ac_delim
25324 ECHO_T!$ECHO_T$ac_delim
25325 LIBS!$LIBS$ac_delim
25326 build_alias!$build_alias$ac_delim
25327 host_alias!$host_alias$ac_delim
25328 target_alias!$target_alias$ac_delim
25329 VERSION!$VERSION$ac_delim
25330 SOVERSION!$SOVERSION$ac_delim
25331 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25332 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25333 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25334 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25335 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25336 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25337 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25338 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25339 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25340 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25341 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25342 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25343 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25344 MACHDEP!$MACHDEP$ac_delim
25345 SGI_ABI!$SGI_ABI$ac_delim
25346 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25347 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25348 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25349 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25350 CC!$CC$ac_delim
25351 CFLAGS!$CFLAGS$ac_delim
25352 LDFLAGS!$LDFLAGS$ac_delim
25353 CPPFLAGS!$CPPFLAGS$ac_delim
25354 ac_ct_CC!$ac_ct_CC$ac_delim
25355 EXEEXT!$EXEEXT$ac_delim
25356 OBJEXT!$OBJEXT$ac_delim
25357 CXX!$CXX$ac_delim
25358 MAINCC!$MAINCC$ac_delim
25359 CPP!$CPP$ac_delim
25360 GREP!$GREP$ac_delim
25361 EGREP!$EGREP$ac_delim
25362 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25363 LIBRARY!$LIBRARY$ac_delim
25364 LDLIBRARY!$LDLIBRARY$ac_delim
25365 DLLLIBRARY!$DLLLIBRARY$ac_delim
25366 BLDLIBRARY!$BLDLIBRARY$ac_delim
25367 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25368 INSTSONAME!$INSTSONAME$ac_delim
25369 RUNSHARED!$RUNSHARED$ac_delim
25370 LINKCC!$LINKCC$ac_delim
25371 RANLIB!$RANLIB$ac_delim
25372 AR!$AR$ac_delim
25373 SVNVERSION!$SVNVERSION$ac_delim
25374 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25375 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25376 INSTALL_DATA!$INSTALL_DATA$ac_delim
25377 LN!$LN$ac_delim
25378 OPT!$OPT$ac_delim
25379 BASECFLAGS!$BASECFLAGS$ac_delim
25380 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25381 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25382 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25383 SO!$SO$ac_delim
25384 LDSHARED!$LDSHARED$ac_delim
25385 BLDSHARED!$BLDSHARED$ac_delim
25386 CCSHARED!$CCSHARED$ac_delim
25387 LINKFORSHARED!$LINKFORSHARED$ac_delim
25388 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25389 _ACEOF
25391 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25392 break
25393 elif $ac_last_try; then
25394 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25395 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25396 { (exit 1); exit 1; }; }
25397 else
25398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25400 done
25402 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25403 if test -n "$ac_eof"; then
25404 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25405 ac_eof=`expr $ac_eof + 1`
25408 cat >>$CONFIG_STATUS <<_ACEOF
25409 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25411 _ACEOF
25412 sed '
25413 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25414 s/^/s,@/; s/!/@,|#_!!_#|/
25417 s/'"$ac_delim"'$/,g/; t
25418 s/$/\\/; p
25419 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25420 ' >>$CONFIG_STATUS <conf$$subs.sed
25421 rm -f conf$$subs.sed
25422 cat >>$CONFIG_STATUS <<_ACEOF
25423 CEOF$ac_eof
25424 _ACEOF
25427 ac_delim='%!_!# '
25428 for ac_last_try in false false false false false :; do
25429 cat >conf$$subs.sed <<_ACEOF
25430 SHLIBS!$SHLIBS$ac_delim
25431 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25432 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25433 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25434 LDLAST!$LDLAST$ac_delim
25435 THREADOBJ!$THREADOBJ$ac_delim
25436 DLINCLDIR!$DLINCLDIR$ac_delim
25437 DYNLOADFILE!$DYNLOADFILE$ac_delim
25438 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25439 TRUE!$TRUE$ac_delim
25440 LIBOBJS!$LIBOBJS$ac_delim
25441 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25442 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25443 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25444 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25445 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25446 LIBM!$LIBM$ac_delim
25447 LIBC!$LIBC$ac_delim
25448 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25449 THREADHEADERS!$THREADHEADERS$ac_delim
25450 SRCDIRS!$SRCDIRS$ac_delim
25451 LTLIBOBJS!$LTLIBOBJS$ac_delim
25452 _ACEOF
25454 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25455 break
25456 elif $ac_last_try; then
25457 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25458 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25459 { (exit 1); exit 1; }; }
25460 else
25461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25463 done
25465 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25466 if test -n "$ac_eof"; then
25467 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25468 ac_eof=`expr $ac_eof + 1`
25471 cat >>$CONFIG_STATUS <<_ACEOF
25472 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25474 _ACEOF
25475 sed '
25476 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25477 s/^/s,@/; s/!/@,|#_!!_#|/
25480 s/'"$ac_delim"'$/,g/; t
25481 s/$/\\/; p
25482 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25483 ' >>$CONFIG_STATUS <conf$$subs.sed
25484 rm -f conf$$subs.sed
25485 cat >>$CONFIG_STATUS <<_ACEOF
25486 :end
25487 s/|#_!!_#|//g
25488 CEOF$ac_eof
25489 _ACEOF
25492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25494 # trailing colons and then remove the whole line if VPATH becomes empty
25495 # (actually we leave an empty line to preserve line numbers).
25496 if test "x$srcdir" = x.; then
25497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25498 s/:*\$(srcdir):*/:/
25499 s/:*\${srcdir}:*/:/
25500 s/:*@srcdir@:*/:/
25501 s/^\([^=]*=[ ]*\):*/\1/
25502 s/:*$//
25503 s/^[^=]*=[ ]*$//
25507 cat >>$CONFIG_STATUS <<\_ACEOF
25508 fi # test -n "$CONFIG_FILES"
25511 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25513 case $ac_tag in
25514 :[FHLC]) ac_mode=$ac_tag; continue;;
25515 esac
25516 case $ac_mode$ac_tag in
25517 :[FHL]*:*);;
25518 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25519 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25520 { (exit 1); exit 1; }; };;
25521 :[FH]-) ac_tag=-:-;;
25522 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25523 esac
25524 ac_save_IFS=$IFS
25525 IFS=:
25526 set x $ac_tag
25527 IFS=$ac_save_IFS
25528 shift
25529 ac_file=$1
25530 shift
25532 case $ac_mode in
25533 :L) ac_source=$1;;
25534 :[FH])
25535 ac_file_inputs=
25536 for ac_f
25538 case $ac_f in
25539 -) ac_f="$tmp/stdin";;
25540 *) # Look for the file first in the build tree, then in the source tree
25541 # (if the path is not absolute). The absolute path cannot be DOS-style,
25542 # because $ac_f cannot contain `:'.
25543 test -f "$ac_f" ||
25544 case $ac_f in
25545 [\\/$]*) false;;
25546 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25547 esac ||
25548 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25549 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25550 { (exit 1); exit 1; }; };;
25551 esac
25552 ac_file_inputs="$ac_file_inputs $ac_f"
25553 done
25555 # Let's still pretend it is `configure' which instantiates (i.e., don't
25556 # use $as_me), people would be surprised to read:
25557 # /* config.h. Generated by config.status. */
25558 configure_input="Generated from "`IFS=:
25559 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25560 if test x"$ac_file" != x-; then
25561 configure_input="$ac_file. $configure_input"
25562 { echo "$as_me:$LINENO: creating $ac_file" >&5
25563 echo "$as_me: creating $ac_file" >&6;}
25566 case $ac_tag in
25567 *:-:* | *:-) cat >"$tmp/stdin";;
25568 esac
25570 esac
25572 ac_dir=`$as_dirname -- "$ac_file" ||
25573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25574 X"$ac_file" : 'X\(//\)[^/]' \| \
25575 X"$ac_file" : 'X\(//\)$' \| \
25576 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25577 echo X"$ac_file" |
25578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25579 s//\1/
25582 /^X\(\/\/\)[^/].*/{
25583 s//\1/
25586 /^X\(\/\/\)$/{
25587 s//\1/
25590 /^X\(\/\).*/{
25591 s//\1/
25594 s/.*/./; q'`
25595 { as_dir="$ac_dir"
25596 case $as_dir in #(
25597 -*) as_dir=./$as_dir;;
25598 esac
25599 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25600 as_dirs=
25601 while :; do
25602 case $as_dir in #(
25603 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25604 *) as_qdir=$as_dir;;
25605 esac
25606 as_dirs="'$as_qdir' $as_dirs"
25607 as_dir=`$as_dirname -- "$as_dir" ||
25608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25609 X"$as_dir" : 'X\(//\)[^/]' \| \
25610 X"$as_dir" : 'X\(//\)$' \| \
25611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25612 echo X"$as_dir" |
25613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25614 s//\1/
25617 /^X\(\/\/\)[^/].*/{
25618 s//\1/
25621 /^X\(\/\/\)$/{
25622 s//\1/
25625 /^X\(\/\).*/{
25626 s//\1/
25629 s/.*/./; q'`
25630 test -d "$as_dir" && break
25631 done
25632 test -z "$as_dirs" || eval "mkdir $as_dirs"
25633 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25634 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25635 { (exit 1); exit 1; }; }; }
25636 ac_builddir=.
25638 case "$ac_dir" in
25639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25641 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25642 # A ".." for each directory in $ac_dir_suffix.
25643 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25644 case $ac_top_builddir_sub in
25645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25647 esac ;;
25648 esac
25649 ac_abs_top_builddir=$ac_pwd
25650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25651 # for backward compatibility:
25652 ac_top_builddir=$ac_top_build_prefix
25654 case $srcdir in
25655 .) # We are building in place.
25656 ac_srcdir=.
25657 ac_top_srcdir=$ac_top_builddir_sub
25658 ac_abs_top_srcdir=$ac_pwd ;;
25659 [\\/]* | ?:[\\/]* ) # Absolute name.
25660 ac_srcdir=$srcdir$ac_dir_suffix;
25661 ac_top_srcdir=$srcdir
25662 ac_abs_top_srcdir=$srcdir ;;
25663 *) # Relative name.
25664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25665 ac_top_srcdir=$ac_top_build_prefix$srcdir
25666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25667 esac
25668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25671 case $ac_mode in
25674 # CONFIG_FILE
25677 case $INSTALL in
25678 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25679 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25680 esac
25681 _ACEOF
25683 cat >>$CONFIG_STATUS <<\_ACEOF
25684 # If the template does not know about datarootdir, expand it.
25685 # FIXME: This hack should be removed a few years after 2.60.
25686 ac_datarootdir_hack=; ac_datarootdir_seen=
25688 case `sed -n '/datarootdir/ {
25692 /@datadir@/p
25693 /@docdir@/p
25694 /@infodir@/p
25695 /@localedir@/p
25696 /@mandir@/p
25697 ' $ac_file_inputs` in
25698 *datarootdir*) ac_datarootdir_seen=yes;;
25699 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25700 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25701 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25702 _ACEOF
25703 cat >>$CONFIG_STATUS <<_ACEOF
25704 ac_datarootdir_hack='
25705 s&@datadir@&$datadir&g
25706 s&@docdir@&$docdir&g
25707 s&@infodir@&$infodir&g
25708 s&@localedir@&$localedir&g
25709 s&@mandir@&$mandir&g
25710 s&\\\${datarootdir}&$datarootdir&g' ;;
25711 esac
25712 _ACEOF
25714 # Neutralize VPATH when `$srcdir' = `.'.
25715 # Shell code in configure.ac might set extrasub.
25716 # FIXME: do we really want to maintain this feature?
25717 cat >>$CONFIG_STATUS <<_ACEOF
25718 sed "$ac_vpsub
25719 $extrasub
25720 _ACEOF
25721 cat >>$CONFIG_STATUS <<\_ACEOF
25723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25724 s&@configure_input@&$configure_input&;t t
25725 s&@top_builddir@&$ac_top_builddir_sub&;t t
25726 s&@srcdir@&$ac_srcdir&;t t
25727 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25728 s&@top_srcdir@&$ac_top_srcdir&;t t
25729 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25730 s&@builddir@&$ac_builddir&;t t
25731 s&@abs_builddir@&$ac_abs_builddir&;t t
25732 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25733 s&@INSTALL@&$ac_INSTALL&;t t
25734 $ac_datarootdir_hack
25735 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25737 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25738 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25739 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25740 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25741 which seems to be undefined. Please make sure it is defined." >&5
25742 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25743 which seems to be undefined. Please make sure it is defined." >&2;}
25745 rm -f "$tmp/stdin"
25746 case $ac_file in
25747 -) cat "$tmp/out"; rm -f "$tmp/out";;
25748 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25749 esac
25753 # CONFIG_HEADER
25755 _ACEOF
25757 # Transform confdefs.h into a sed script `conftest.defines', that
25758 # substitutes the proper values into config.h.in to produce config.h.
25759 rm -f conftest.defines conftest.tail
25760 # First, append a space to every undef/define line, to ease matching.
25761 echo 's/$/ /' >conftest.defines
25762 # Then, protect against being on the right side of a sed subst, or in
25763 # an unquoted here document, in config.status. If some macros were
25764 # called several times there might be several #defines for the same
25765 # symbol, which is useless. But do not sort them, since the last
25766 # AC_DEFINE must be honored.
25767 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25768 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25769 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25770 # PARAMS is the parameter list in the macro definition--in most cases, it's
25771 # just an empty string.
25772 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25773 ac_dB='\\)[ (].*,\\1define\\2'
25774 ac_dC=' '
25775 ac_dD=' ,'
25777 uniq confdefs.h |
25778 sed -n '
25779 t rset
25780 :rset
25781 s/^[ ]*#[ ]*define[ ][ ]*//
25782 t ok
25785 s/[\\&,]/\\&/g
25786 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25787 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25788 ' >>conftest.defines
25790 # Remove the space that was appended to ease matching.
25791 # Then replace #undef with comments. This is necessary, for
25792 # example, in the case of _POSIX_SOURCE, which is predefined and required
25793 # on some systems where configure will not decide to define it.
25794 # (The regexp can be short, since the line contains either #define or #undef.)
25795 echo 's/ $//
25796 s,^[ #]*u.*,/* & */,' >>conftest.defines
25798 # Break up conftest.defines:
25799 ac_max_sed_lines=50
25801 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25802 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25803 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25804 # et cetera.
25805 ac_in='$ac_file_inputs'
25806 ac_out='"$tmp/out1"'
25807 ac_nxt='"$tmp/out2"'
25809 while :
25811 # Write a here document:
25812 cat >>$CONFIG_STATUS <<_ACEOF
25813 # First, check the format of the line:
25814 cat >"\$tmp/defines.sed" <<\\CEOF
25815 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25816 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25818 :def
25819 _ACEOF
25820 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25821 echo 'CEOF
25822 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25823 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25824 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25825 grep . conftest.tail >/dev/null || break
25826 rm -f conftest.defines
25827 mv conftest.tail conftest.defines
25828 done
25829 rm -f conftest.defines conftest.tail
25831 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25832 cat >>$CONFIG_STATUS <<\_ACEOF
25833 if test x"$ac_file" != x-; then
25834 echo "/* $configure_input */" >"$tmp/config.h"
25835 cat "$ac_result" >>"$tmp/config.h"
25836 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25837 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25838 echo "$as_me: $ac_file is unchanged" >&6;}
25839 else
25840 rm -f $ac_file
25841 mv "$tmp/config.h" $ac_file
25843 else
25844 echo "/* $configure_input */"
25845 cat "$ac_result"
25847 rm -f "$tmp/out12"
25851 esac
25853 done # for ac_tag
25856 { (exit 0); exit 0; }
25857 _ACEOF
25858 chmod +x $CONFIG_STATUS
25859 ac_clean_files=$ac_clean_files_save
25862 # configure is writing to config.log, and then calls config.status.
25863 # config.status does its own redirection, appending to config.log.
25864 # Unfortunately, on DOS this fails, as config.log is still kept open
25865 # by configure, so config.status won't be able to write to it; its
25866 # output is simply discarded. So we exec the FD to /dev/null,
25867 # effectively closing config.log, so it can be properly (re)opened and
25868 # appended to by config.status. When coming back to configure, we
25869 # need to make the FD available again.
25870 if test "$no_create" != yes; then
25871 ac_cs_success=:
25872 ac_config_status_args=
25873 test "$silent" = yes &&
25874 ac_config_status_args="$ac_config_status_args --quiet"
25875 exec 5>/dev/null
25876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25877 exec 5>>config.log
25878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25879 # would make configure fail if this is the last instruction.
25880 $ac_cs_success || { (exit 1); exit 1; }
25884 echo "creating Modules/Setup"
25885 if test ! -f Modules/Setup
25886 then
25887 cp $srcdir/Modules/Setup.dist Modules/Setup
25890 echo "creating Modules/Setup.local"
25891 if test ! -f Modules/Setup.local
25892 then
25893 echo "# Edit this file for local setup changes" >Modules/Setup.local
25896 echo "creating Makefile"
25897 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
25898 -s Modules Modules/Setup.config \
25899 Modules/Setup.local Modules/Setup
25901 case $ac_sys_system in
25902 BeOS)
25903 { echo "$as_me:$LINENO: WARNING:
25905 Support for BeOS is deprecated as of Python 2.6.
25906 See PEP 11 for the gory details.
25907 " >&5
25908 echo "$as_me: WARNING:
25910 Support for BeOS is deprecated as of Python 2.6.
25911 See PEP 11 for the gory details.
25912 " >&2;}
25914 *) ;;
25915 esac
25917 mv config.c Modules