Deprecated torgb for removal in 3.0.
[python.git] / configure
blob6c19b2c458c1e3d80046894f145dda0156037467
1 #! /bin/sh
2 # From configure.in Revision: 62499 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.6'
579 PACKAGE_STRING='python 2.6'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 PYTHONFRAMEWORK
661 PYTHONFRAMEWORKIDENTIFIER
662 PYTHONFRAMEWORKDIR
663 PYTHONFRAMEWORKPREFIX
664 PYTHONFRAMEWORKINSTALLDIR
665 FRAMEWORKINSTALLFIRST
666 FRAMEWORKINSTALLLAST
667 FRAMEWORKALTINSTALLFIRST
668 FRAMEWORKALTINSTALLLAST
669 FRAMEWORKUNIXTOOLSPREFIX
670 MACHDEP
671 SGI_ABI
672 EXTRAPLATDIR
673 EXTRAMACHDEPPATH
674 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
675 EXPORT_MACOSX_DEPLOYMENT_TARGET
677 CFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CC
681 EXEEXT
682 OBJEXT
684 MAINCC
686 GREP
687 EGREP
688 BUILDEXEEXT
689 LIBRARY
690 LDLIBRARY
691 DLLLIBRARY
692 BLDLIBRARY
693 LDLIBRARYDIR
694 INSTSONAME
695 RUNSHARED
696 LINKCC
697 RANLIB
699 SVNVERSION
700 INSTALL_PROGRAM
701 INSTALL_SCRIPT
702 INSTALL_DATA
705 BASECFLAGS
706 OTHER_LIBTOOL_OPT
707 LIBTOOL_CRUFT
709 LDSHARED
710 BLDSHARED
711 CCSHARED
712 LINKFORSHARED
713 CFLAGSFORSHARED
714 SHLIBS
715 USE_SIGNAL_MODULE
716 SIGNAL_OBJS
717 USE_THREAD_MODULE
718 LDLAST
719 THREADOBJ
720 DLINCLDIR
721 DYNLOADFILE
722 MACHDEP_OBJS
723 TRUE
724 LIBOBJS
725 HAVE_GETHOSTBYNAME_R_6_ARG
726 HAVE_GETHOSTBYNAME_R_5_ARG
727 HAVE_GETHOSTBYNAME_R_3_ARG
728 HAVE_GETHOSTBYNAME_R
729 HAVE_GETHOSTBYNAME
730 LIBM
731 LIBC
732 UNICODE_OBJS
733 THREADHEADERS
734 SRCDIRS
735 LTLIBOBJS'
736 ac_subst_files=''
737 ac_precious_vars='build_alias
738 host_alias
739 target_alias
741 CFLAGS
742 LDFLAGS
743 LIBS
744 CPPFLAGS
745 CPP'
748 # Initialize some variables set by options.
749 ac_init_help=
750 ac_init_version=false
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
753 cache_file=/dev/null
754 exec_prefix=NONE
755 no_create=
756 no_recursion=
757 prefix=NONE
758 program_prefix=NONE
759 program_suffix=NONE
760 program_transform_name=s,x,x,
761 silent=
762 site=
763 srcdir=
764 verbose=
765 x_includes=NONE
766 x_libraries=NONE
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir='${datarootdir}/info'
786 htmldir='${docdir}'
787 dvidir='${docdir}'
788 pdfdir='${docdir}'
789 psdir='${docdir}'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
794 ac_prev=
795 ac_dashdash=
796 for ac_option
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
801 ac_prev=
802 continue
805 case $ac_option in
806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 *) ac_optarg=yes ;;
808 esac
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
814 ac_dashdash=yes ;;
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 ac_prev=bindir ;;
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 bindir=$ac_optarg ;;
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
833 --config-cache | -C)
834 cache_file=config.cache ;;
836 -datadir | --datadir | --datadi | --datad)
837 ac_prev=datadir ;;
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
848 -disable-* | --disable-*)
849 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 { (exit 1); exit 1; }; }
854 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
855 eval enable_$ac_feature=no ;;
857 -docdir | --docdir | --docdi | --doc | --do)
858 ac_prev=docdir ;;
859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860 docdir=$ac_optarg ;;
862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863 ac_prev=dvidir ;;
864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865 dvidir=$ac_optarg ;;
867 -enable-* | --enable-*)
868 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
871 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
872 { (exit 1); exit 1; }; }
873 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
874 eval enable_$ac_feature=\$ac_optarg ;;
876 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
877 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
878 | --exec | --exe | --ex)
879 ac_prev=exec_prefix ;;
880 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
881 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
882 | --exec=* | --exe=* | --ex=*)
883 exec_prefix=$ac_optarg ;;
885 -gas | --gas | --ga | --g)
886 # Obsolete; use --with-gas.
887 with_gas=yes ;;
889 -help | --help | --hel | --he | -h)
890 ac_init_help=long ;;
891 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
892 ac_init_help=recursive ;;
893 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
894 ac_init_help=short ;;
896 -host | --host | --hos | --ho)
897 ac_prev=host_alias ;;
898 -host=* | --host=* | --hos=* | --ho=*)
899 host_alias=$ac_optarg ;;
901 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
902 ac_prev=htmldir ;;
903 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
904 | --ht=*)
905 htmldir=$ac_optarg ;;
907 -includedir | --includedir | --includedi | --included | --include \
908 | --includ | --inclu | --incl | --inc)
909 ac_prev=includedir ;;
910 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
911 | --includ=* | --inclu=* | --incl=* | --inc=*)
912 includedir=$ac_optarg ;;
914 -infodir | --infodir | --infodi | --infod | --info | --inf)
915 ac_prev=infodir ;;
916 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
917 infodir=$ac_optarg ;;
919 -libdir | --libdir | --libdi | --libd)
920 ac_prev=libdir ;;
921 -libdir=* | --libdir=* | --libdi=* | --libd=*)
922 libdir=$ac_optarg ;;
924 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
925 | --libexe | --libex | --libe)
926 ac_prev=libexecdir ;;
927 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
928 | --libexe=* | --libex=* | --libe=*)
929 libexecdir=$ac_optarg ;;
931 -localedir | --localedir | --localedi | --localed | --locale)
932 ac_prev=localedir ;;
933 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
934 localedir=$ac_optarg ;;
936 -localstatedir | --localstatedir | --localstatedi | --localstated \
937 | --localstate | --localstat | --localsta | --localst | --locals)
938 ac_prev=localstatedir ;;
939 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
940 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
941 localstatedir=$ac_optarg ;;
943 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
944 ac_prev=mandir ;;
945 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
946 mandir=$ac_optarg ;;
948 -nfp | --nfp | --nf)
949 # Obsolete; use --without-fp.
950 with_fp=no ;;
952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953 | --no-cr | --no-c | -n)
954 no_create=yes ;;
956 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
957 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
958 no_recursion=yes ;;
960 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
961 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
962 | --oldin | --oldi | --old | --ol | --o)
963 ac_prev=oldincludedir ;;
964 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
965 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
966 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
967 oldincludedir=$ac_optarg ;;
969 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
970 ac_prev=prefix ;;
971 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
972 prefix=$ac_optarg ;;
974 -program-prefix | --program-prefix | --program-prefi | --program-pref \
975 | --program-pre | --program-pr | --program-p)
976 ac_prev=program_prefix ;;
977 -program-prefix=* | --program-prefix=* | --program-prefi=* \
978 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979 program_prefix=$ac_optarg ;;
981 -program-suffix | --program-suffix | --program-suffi | --program-suff \
982 | --program-suf | --program-su | --program-s)
983 ac_prev=program_suffix ;;
984 -program-suffix=* | --program-suffix=* | --program-suffi=* \
985 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
986 program_suffix=$ac_optarg ;;
988 -program-transform-name | --program-transform-name \
989 | --program-transform-nam | --program-transform-na \
990 | --program-transform-n | --program-transform- \
991 | --program-transform | --program-transfor \
992 | --program-transfo | --program-transf \
993 | --program-trans | --program-tran \
994 | --progr-tra | --program-tr | --program-t)
995 ac_prev=program_transform_name ;;
996 -program-transform-name=* | --program-transform-name=* \
997 | --program-transform-nam=* | --program-transform-na=* \
998 | --program-transform-n=* | --program-transform-=* \
999 | --program-transform=* | --program-transfor=* \
1000 | --program-transfo=* | --program-transf=* \
1001 | --program-trans=* | --program-tran=* \
1002 | --progr-tra=* | --program-tr=* | --program-t=*)
1003 program_transform_name=$ac_optarg ;;
1005 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1006 ac_prev=pdfdir ;;
1007 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1008 pdfdir=$ac_optarg ;;
1010 -psdir | --psdir | --psdi | --psd | --ps)
1011 ac_prev=psdir ;;
1012 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1013 psdir=$ac_optarg ;;
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1017 silent=yes ;;
1019 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1020 ac_prev=sbindir ;;
1021 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1022 | --sbi=* | --sb=*)
1023 sbindir=$ac_optarg ;;
1025 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027 | --sharedst | --shareds | --shared | --share | --shar \
1028 | --sha | --sh)
1029 ac_prev=sharedstatedir ;;
1030 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1033 | --sha=* | --sh=*)
1034 sharedstatedir=$ac_optarg ;;
1036 -site | --site | --sit)
1037 ac_prev=site ;;
1038 -site=* | --site=* | --sit=*)
1039 site=$ac_optarg ;;
1041 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1042 ac_prev=srcdir ;;
1043 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044 srcdir=$ac_optarg ;;
1046 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047 | --syscon | --sysco | --sysc | --sys | --sy)
1048 ac_prev=sysconfdir ;;
1049 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051 sysconfdir=$ac_optarg ;;
1053 -target | --target | --targe | --targ | --tar | --ta | --t)
1054 ac_prev=target_alias ;;
1055 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056 target_alias=$ac_optarg ;;
1058 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1059 verbose=yes ;;
1061 -version | --version | --versio | --versi | --vers | -V)
1062 ac_init_version=: ;;
1064 -with-* | --with-*)
1065 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid package name: $ac_package" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1071 eval with_$ac_package=\$ac_optarg ;;
1073 -without-* | --without-*)
1074 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid package name: $ac_package" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1080 eval with_$ac_package=no ;;
1082 --x)
1083 # Obsolete; use --with-x.
1084 with_x=yes ;;
1086 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1087 | --x-incl | --x-inc | --x-in | --x-i)
1088 ac_prev=x_includes ;;
1089 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1090 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1091 x_includes=$ac_optarg ;;
1093 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1094 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1095 ac_prev=x_libraries ;;
1096 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1097 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1098 x_libraries=$ac_optarg ;;
1100 -*) { echo "$as_me: error: unrecognized option: $ac_option
1101 Try \`$0 --help' for more information." >&2
1102 { (exit 1); exit 1; }; }
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1110 { (exit 1); exit 1; }; }
1111 eval $ac_envvar=\$ac_optarg
1112 export $ac_envvar ;;
1115 # FIXME: should be removed in autoconf 3.0.
1116 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1122 esac
1123 done
1125 if test -n "$ac_prev"; then
1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1127 { echo "$as_me: error: missing argument to $ac_option" >&2
1128 { (exit 1); exit 1; }; }
1131 # Be sure to have absolute directory names.
1132 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
1137 eval ac_val=\$$ac_var
1138 case $ac_val in
1139 [\\/$]* | ?:[\\/]* ) continue;;
1140 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1141 esac
1142 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1143 { (exit 1); exit 1; }; }
1144 done
1146 # There might be people who depend on the old broken behavior: `$host'
1147 # used to hold the argument of --host etc.
1148 # FIXME: To remove some day.
1149 build=$build_alias
1150 host=$host_alias
1151 target=$target_alias
1153 # FIXME: To remove some day.
1154 if test "x$host_alias" != x; then
1155 if test "x$build_alias" = x; then
1156 cross_compiling=maybe
1157 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1158 If a cross compiler is detected then cross compile mode will be used." >&2
1159 elif test "x$build_alias" != "x$host_alias"; then
1160 cross_compiling=yes
1164 ac_tool_prefix=
1165 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1167 test "$silent" = yes && exec 6>/dev/null
1170 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1171 ac_ls_di=`ls -di .` &&
1172 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1173 { echo "$as_me: error: Working directory cannot be determined" >&2
1174 { (exit 1); exit 1; }; }
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 { echo "$as_me: error: pwd does not report name of working directory" >&2
1177 { (exit 1); exit 1; }; }
1180 # Find the source files, if location was not specified.
1181 if test -z "$srcdir"; then
1182 ac_srcdir_defaulted=yes
1183 # Try the directory containing this script, then the parent directory.
1184 ac_confdir=`$as_dirname -- "$0" ||
1185 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1186 X"$0" : 'X\(//\)[^/]' \| \
1187 X"$0" : 'X\(//\)$' \| \
1188 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1189 echo X"$0" |
1190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191 s//\1/
1194 /^X\(\/\/\)[^/].*/{
1195 s//\1/
1198 /^X\(\/\/\)$/{
1199 s//\1/
1202 /^X\(\/\).*/{
1203 s//\1/
1206 s/.*/./; q'`
1207 srcdir=$ac_confdir
1208 if test ! -r "$srcdir/$ac_unique_file"; then
1209 srcdir=..
1211 else
1212 ac_srcdir_defaulted=no
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1215 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1216 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1217 { (exit 1); exit 1; }; }
1219 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1220 ac_abs_confdir=`(
1221 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1222 { (exit 1); exit 1; }; }
1223 pwd)`
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1226 srcdir=.
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1231 case $srcdir in
1232 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 esac
1234 for ac_var in $ac_precious_vars; do
1235 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236 eval ac_env_${ac_var}_value=\$${ac_var}
1237 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239 done
1242 # Report the --help message.
1244 if test "$ac_init_help" = "long"; then
1245 # Omit some internal or obsolete options to make the list less imposing.
1246 # This message is too long to be a string in the A/UX 3.1 sh.
1247 cat <<_ACEOF
1248 \`configure' configures python 2.6 to adapt to many kinds of systems.
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE. See below for descriptions of some of the useful variables.
1255 Defaults for the options are specified in brackets.
1257 Configuration:
1258 -h, --help display this help and exit
1259 --help=short display options specific to this package
1260 --help=recursive display the short help of all the included packages
1261 -V, --version display version information and exit
1262 -q, --quiet, --silent do not print \`checking...' messages
1263 --cache-file=FILE cache test results in FILE [disabled]
1264 -C, --config-cache alias for \`--cache-file=config.cache'
1265 -n, --no-create do not create output files
1266 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 Installation directories:
1269 --prefix=PREFIX install architecture-independent files in PREFIX
1270 [$ac_default_prefix]
1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1272 [PREFIX]
1274 By default, \`make install' will install all the files in
1275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277 for instance \`--prefix=\$HOME'.
1279 For better control, use the options below.
1281 Fine tuning of the installation directories:
1282 --bindir=DIR user executables [EPREFIX/bin]
1283 --sbindir=DIR system admin executables [EPREFIX/sbin]
1284 --libexecdir=DIR program executables [EPREFIX/libexec]
1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1288 --libdir=DIR object code libraries [EPREFIX/lib]
1289 --includedir=DIR C header files [PREFIX/include]
1290 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1293 --infodir=DIR info documentation [DATAROOTDIR/info]
1294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1295 --mandir=DIR man documentation [DATAROOTDIR/man]
1296 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1297 --htmldir=DIR html documentation [DOCDIR]
1298 --dvidir=DIR dvi documentation [DOCDIR]
1299 --pdfdir=DIR pdf documentation [DOCDIR]
1300 --psdir=DIR ps documentation [DOCDIR]
1301 _ACEOF
1303 cat <<\_ACEOF
1304 _ACEOF
1307 if test -n "$ac_init_help"; then
1308 case $ac_init_help in
1309 short | recursive ) echo "Configuration of python 2.6:";;
1310 esac
1311 cat <<\_ACEOF
1313 Optional Features:
1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1316 --enable-universalsdk[=SDKDIR]
1317 Build against Mac OS X 10.4u SDK (ppc/i386)
1318 --enable-framework[=INSTALLDIR]
1319 Build (MacOSX|Darwin) framework
1320 --enable-shared disable/enable building shared python library
1321 --enable-profiling enable C-level code profiling
1322 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1323 --enable-ipv6 Enable ipv6 (with ipv4) support
1324 --disable-ipv6 Disable ipv6 support
1325 --enable-unicode[=ucs[24]]
1326 Enable Unicode strings (default is yes)
1328 Optional Packages:
1329 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1330 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1331 --with-framework-name=FRAMEWORK
1332 specify an alternate name of the framework built
1333 with --enable-framework
1334 --without-gcc never use gcc
1335 --with-cxx-main=<compiler>
1336 compile main() and link python executable with C++
1337 compiler
1338 --with-suffix=.exe set executable suffix
1339 --with-pydebug build with Py_DEBUG defined
1340 --with-libs='lib1 ...' link against additional libs
1341 --with-system-ffi build _ctypes module using an installed ffi library
1342 --with-signal-module disable/enable signal module
1343 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1344 --with(out)-threads[=DIRECTORY]
1345 disable/enable thread support
1346 --with(out)-thread[=DIRECTORY]
1347 deprecated; use --with(out)-threads
1348 --with-pth use GNU pth threading libraries
1349 --with(out)-doc-strings disable/enable documentation strings
1350 --with(out)-tsc enable/disable timestamp counter profile
1351 --with(out)-pymalloc disable/enable specialized mallocs
1352 --with-wctype-functions use wctype.h functions
1353 --with-fpectl enable SIGFPE catching
1354 --with-libm=STRING math library
1355 --with-libc=STRING C library
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1365 CPP C preprocessor
1367 Use these variables to override the choices made by `configure' or to help
1368 it to find libraries and programs with nonstandard names/locations.
1370 Report bugs to <http://www.python.org/python-bugs>.
1371 _ACEOF
1372 ac_status=$?
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378 test -d "$ac_dir" || continue
1379 ac_builddir=.
1381 case "$ac_dir" in
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 esac ;;
1391 esac
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1397 case $srcdir in
1398 .) # We are building in place.
1399 ac_srcdir=.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1406 *) # Relative name.
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410 esac
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1416 echo &&
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1419 echo &&
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1421 else
1422 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423 fi || ac_status=$?
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1425 done
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1430 cat <<\_ACEOF
1431 python configure 2.6
1432 generated by GNU Autoconf 2.61
1434 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1435 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1436 This configure script is free software; the Free Software Foundation
1437 gives unlimited permission to copy, distribute and modify it.
1438 _ACEOF
1439 exit
1441 cat >config.log <<_ACEOF
1442 This file contains any messages produced by compilers while
1443 running configure, to aid debugging if configure makes a mistake.
1445 It was created by python $as_me 2.6, which was
1446 generated by GNU Autoconf 2.61. Invocation command line was
1448 $ $0 $@
1450 _ACEOF
1451 exec 5>>config.log
1453 cat <<_ASUNAME
1454 ## --------- ##
1455 ## Platform. ##
1456 ## --------- ##
1458 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1459 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1460 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1461 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1462 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1464 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1465 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1467 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1468 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1469 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1470 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1471 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1472 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1473 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1475 _ASUNAME
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 echo "PATH: $as_dir"
1483 done
1484 IFS=$as_save_IFS
1486 } >&5
1488 cat >&5 <<_ACEOF
1491 ## ----------- ##
1492 ## Core tests. ##
1493 ## ----------- ##
1495 _ACEOF
1498 # Keep a trace of the command line.
1499 # Strip out --no-create and --no-recursion so they do not pile up.
1500 # Strip out --silent because we don't want to record it for future runs.
1501 # Also quote any args containing shell meta-characters.
1502 # Make two passes to allow for proper duplicate-argument suppression.
1503 ac_configure_args=
1504 ac_configure_args0=
1505 ac_configure_args1=
1506 ac_must_keep_next=false
1507 for ac_pass in 1 2
1509 for ac_arg
1511 case $ac_arg in
1512 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1514 | -silent | --silent | --silen | --sile | --sil)
1515 continue ;;
1516 *\'*)
1517 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1518 esac
1519 case $ac_pass in
1520 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1522 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1523 if test $ac_must_keep_next = true; then
1524 ac_must_keep_next=false # Got value, back to normal.
1525 else
1526 case $ac_arg in
1527 *=* | --config-cache | -C | -disable-* | --disable-* \
1528 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1529 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1530 | -with-* | --with-* | -without-* | --without-* | --x)
1531 case "$ac_configure_args0 " in
1532 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1533 esac
1535 -* ) ac_must_keep_next=true ;;
1536 esac
1538 ac_configure_args="$ac_configure_args '$ac_arg'"
1540 esac
1541 done
1542 done
1543 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1544 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1546 # When interrupted or exit'd, cleanup temporary files, and complete
1547 # config.log. We remove comments because anyway the quotes in there
1548 # would cause problems or look ugly.
1549 # WARNING: Use '\'' to represent an apostrophe within the trap.
1550 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1551 trap 'exit_status=$?
1552 # Save into config.log some information that might help in debugging.
1554 echo
1556 cat <<\_ASBOX
1557 ## ---------------- ##
1558 ## Cache variables. ##
1559 ## ---------------- ##
1560 _ASBOX
1561 echo
1562 # The following way of writing the cache mishandles newlines in values,
1564 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1565 eval ac_val=\$$ac_var
1566 case $ac_val in #(
1567 *${as_nl}*)
1568 case $ac_var in #(
1569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1570 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1571 esac
1572 case $ac_var in #(
1573 _ | IFS | as_nl) ;; #(
1574 *) $as_unset $ac_var ;;
1575 esac ;;
1576 esac
1577 done
1578 (set) 2>&1 |
1579 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1580 *${as_nl}ac_space=\ *)
1581 sed -n \
1582 "s/'\''/'\''\\\\'\'''\''/g;
1583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1584 ;; #(
1586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 esac |
1589 sort
1591 echo
1593 cat <<\_ASBOX
1594 ## ----------------- ##
1595 ## Output variables. ##
1596 ## ----------------- ##
1597 _ASBOX
1598 echo
1599 for ac_var in $ac_subst_vars
1601 eval ac_val=\$$ac_var
1602 case $ac_val in
1603 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1604 esac
1605 echo "$ac_var='\''$ac_val'\''"
1606 done | sort
1607 echo
1609 if test -n "$ac_subst_files"; then
1610 cat <<\_ASBOX
1611 ## ------------------- ##
1612 ## File substitutions. ##
1613 ## ------------------- ##
1614 _ASBOX
1615 echo
1616 for ac_var in $ac_subst_files
1618 eval ac_val=\$$ac_var
1619 case $ac_val in
1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621 esac
1622 echo "$ac_var='\''$ac_val'\''"
1623 done | sort
1624 echo
1627 if test -s confdefs.h; then
1628 cat <<\_ASBOX
1629 ## ----------- ##
1630 ## confdefs.h. ##
1631 ## ----------- ##
1632 _ASBOX
1633 echo
1634 cat confdefs.h
1635 echo
1637 test "$ac_signal" != 0 &&
1638 echo "$as_me: caught signal $ac_signal"
1639 echo "$as_me: exit $exit_status"
1640 } >&5
1641 rm -f core *.core core.conftest.* &&
1642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1643 exit $exit_status
1645 for ac_signal in 1 2 13 15; do
1646 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1647 done
1648 ac_signal=0
1650 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1651 rm -f -r conftest* confdefs.h
1653 # Predefined preprocessor variables.
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_NAME "$PACKAGE_NAME"
1657 _ACEOF
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1662 _ACEOF
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_STRING "$PACKAGE_STRING"
1672 _ACEOF
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1677 _ACEOF
1680 # Let the site file select an alternate cache file if it wants to.
1681 # Prefer explicitly selected file to automatically selected ones.
1682 if test -n "$CONFIG_SITE"; then
1683 set x "$CONFIG_SITE"
1684 elif test "x$prefix" != xNONE; then
1685 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1686 else
1687 set x "$ac_default_prefix/share/config.site" \
1688 "$ac_default_prefix/etc/config.site"
1690 shift
1691 for ac_site_file
1693 if test -r "$ac_site_file"; then
1694 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1695 echo "$as_me: loading site script $ac_site_file" >&6;}
1696 sed 's/^/| /' "$ac_site_file" >&5
1697 . "$ac_site_file"
1699 done
1701 if test -r "$cache_file"; then
1702 # Some versions of bash will fail to source /dev/null (special
1703 # files actually), so we avoid doing that.
1704 if test -f "$cache_file"; then
1705 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1706 echo "$as_me: loading cache $cache_file" >&6;}
1707 case $cache_file in
1708 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1709 *) . "./$cache_file";;
1710 esac
1712 else
1713 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1714 echo "$as_me: creating cache $cache_file" >&6;}
1715 >$cache_file
1718 # Check that the precious variables saved in the cache have kept the same
1719 # value.
1720 ac_cache_corrupted=false
1721 for ac_var in $ac_precious_vars; do
1722 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1723 eval ac_new_set=\$ac_env_${ac_var}_set
1724 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1725 eval ac_new_val=\$ac_env_${ac_var}_value
1726 case $ac_old_set,$ac_new_set in
1727 set,)
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,set)
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1733 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1735 ,);;
1737 if test "x$ac_old_val" != "x$ac_new_val"; then
1738 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1739 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1740 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1741 echo "$as_me: former value: $ac_old_val" >&2;}
1742 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1743 echo "$as_me: current value: $ac_new_val" >&2;}
1744 ac_cache_corrupted=:
1745 fi;;
1746 esac
1747 # Pass precious variables to config.status.
1748 if test "$ac_new_set" = set; then
1749 case $ac_new_val in
1750 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 *) ac_arg=$ac_var=$ac_new_val ;;
1752 esac
1753 case " $ac_configure_args " in
1754 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1755 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1756 esac
1758 done
1759 if $ac_cache_corrupted; then
1760 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1761 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1762 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1763 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1764 { (exit 1); exit 1; }; }
1791 ac_ext=c
1792 ac_cpp='$CPP $CPPFLAGS'
1793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1799 ac_config_headers="$ac_config_headers pyconfig.h"
1807 # We don't use PACKAGE_ variables, and they cause conflicts
1808 # with other autoconf-based packages that include Python.h
1809 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1810 rm confdefs.h
1811 mv confdefs.h.new confdefs.h
1814 VERSION=2.6
1817 SOVERSION=1.0
1819 # The later defininition of _XOPEN_SOURCE disables certain features
1820 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1822 cat >>confdefs.h <<\_ACEOF
1823 #define _GNU_SOURCE 1
1824 _ACEOF
1827 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1828 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1829 # them.
1831 cat >>confdefs.h <<\_ACEOF
1832 #define _NETBSD_SOURCE 1
1833 _ACEOF
1836 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1837 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1838 # them.
1840 cat >>confdefs.h <<\_ACEOF
1841 #define __BSD_VISIBLE 1
1842 _ACEOF
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1848 cat >>confdefs.h <<\_ACEOF
1849 #define _BSD_TYPES 1
1850 _ACEOF
1853 define_xopen_source=yes
1855 # Arguments passed to configure.
1857 CONFIG_ARGS="$ac_configure_args"
1859 # Check whether --enable-universalsdk was given.
1860 if test "${enable_universalsdk+set}" = set; then
1861 enableval=$enable_universalsdk;
1862 case $enableval in
1863 yes)
1864 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1866 esac
1867 case $enableval in
1869 UNIVERSALSDK=
1870 enable_universalsdk=
1873 UNIVERSALSDK=$enableval
1875 esac
1877 else
1879 UNIVERSALSDK=
1880 enable_universalsdk=
1887 # Check whether --with-framework-name was given.
1888 if test "${with_framework_name+set}" = set; then
1889 withval=$with_framework_name;
1890 PYTHONFRAMEWORK=${withval}
1891 PYTHONFRAMEWORKDIR=${withval}.framework
1892 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1894 else
1896 PYTHONFRAMEWORK=Python
1897 PYTHONFRAMEWORKDIR=Python.framework
1898 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1902 # Check whether --enable-framework was given.
1903 if test "${enable_framework+set}" = set; then
1904 enableval=$enable_framework;
1905 case $enableval in
1906 yes)
1907 enableval=/Library/Frameworks
1908 esac
1909 case $enableval in
1911 PYTHONFRAMEWORK=
1912 PYTHONFRAMEWORKDIR=no-framework
1913 PYTHONFRAMEWORKPREFIX=
1914 PYTHONFRAMEWORKINSTALLDIR=
1915 FRAMEWORKINSTALLFIRST=
1916 FRAMEWORKINSTALLLAST=
1917 FRAMEWORKALTINSTALLFIRST=
1918 FRAMEWORKALTINSTALLLAST=
1919 if test "x${prefix}" = "xNONE"; then
1920 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1921 else
1922 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1924 enable_framework=
1927 PYTHONFRAMEWORKPREFIX=$enableval
1928 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1929 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1930 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1931 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1932 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1933 if test "x${prefix}" = "xNONE" ; then
1934 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1935 else
1936 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1938 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1940 # Add files for Mac specific code to the list of output
1941 # files:
1942 ac_config_files="$ac_config_files Mac/Makefile"
1944 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1946 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1948 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1950 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1952 esac
1954 else
1956 PYTHONFRAMEWORK=
1957 PYTHONFRAMEWORKDIR=no-framework
1958 PYTHONFRAMEWORKPREFIX=
1959 PYTHONFRAMEWORKINSTALLDIR=
1960 FRAMEWORKINSTALLFIRST=
1961 FRAMEWORKINSTALLLAST=
1962 FRAMEWORKALTINSTALLFIRST=
1963 FRAMEWORKALTINSTALLLAST=
1964 if test "x${prefix}" = "xNONE" ; then
1965 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1966 else
1967 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1969 enable_framework=
1984 ##AC_ARG_WITH(dyld,
1985 ## AC_HELP_STRING(--with-dyld,
1986 ## Use (OpenStep|Rhapsody) dynamic linker))
1988 # Set name for machine-dependent library files
1990 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1991 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1992 if test -z "$MACHDEP"
1993 then
1994 ac_sys_system=`uname -s`
1995 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1996 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1997 ac_sys_release=`uname -v`
1998 else
1999 ac_sys_release=`uname -r`
2001 ac_md_system=`echo $ac_sys_system |
2002 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2003 ac_md_release=`echo $ac_sys_release |
2004 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2005 MACHDEP="$ac_md_system$ac_md_release"
2007 case $MACHDEP in
2008 cygwin*) MACHDEP="cygwin";;
2009 darwin*) MACHDEP="darwin";;
2010 atheos*) MACHDEP="atheos";;
2011 irix646) MACHDEP="irix6";;
2012 '') MACHDEP="unknown";;
2013 esac
2016 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2017 # disable features if it is defined, without any means to access these
2018 # features as extensions. For these systems, we skip the definition of
2019 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2020 # some feature, make sure there is no alternative way to access this
2021 # feature. Also, when using wildcards, make sure you have verified the
2022 # need for not defining _XOPEN_SOURCE on all systems matching the
2023 # wildcard, and that the wildcard does not include future systems
2024 # (which may remove their limitations).
2025 case $ac_sys_system/$ac_sys_release in
2026 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2027 # even though select is a POSIX function. Reported by J. Ribbens.
2028 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2029 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2030 define_xopen_source=no
2031 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2032 # also defined. This can be overridden by defining _BSD_SOURCE
2033 # As this has a different meaning on Linux, only define it on OpenBSD
2035 cat >>confdefs.h <<\_ACEOF
2036 #define _BSD_SOURCE 1
2037 _ACEOF
2040 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2041 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2042 # Marc Recht
2043 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2044 define_xopen_source=no;;
2045 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2046 # of union __?sigval. Reported by Stuart Bishop.
2047 SunOS/5.6)
2048 define_xopen_source=no;;
2049 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2050 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2051 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2052 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2053 define_xopen_source=no;;
2054 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2055 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2056 SCO_SV/3.2)
2057 define_xopen_source=no;;
2058 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2059 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2060 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2061 # This should hopefully be fixed in FreeBSD 4.9
2062 FreeBSD/4.8* | Darwin/6* )
2063 define_xopen_source=no;;
2064 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2065 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2066 # or has another value. By not (re)defining it, the defaults come in place.
2067 AIX/4)
2068 define_xopen_source=no;;
2069 AIX/5)
2070 if test `uname -r` -eq 1; then
2071 define_xopen_source=no
2074 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2075 # disables platform specific features beyond repair.
2076 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2077 # has no effect, don't bother defining them
2078 Darwin/[789].*)
2079 define_xopen_source=no
2082 esac
2084 if test $define_xopen_source = yes
2085 then
2086 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2087 # defined precisely as g++ defines it
2088 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2089 # compiler
2090 case $ac_sys_system/$ac_sys_release in
2091 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2093 cat >>confdefs.h <<\_ACEOF
2094 #define _XOPEN_SOURCE 500
2095 _ACEOF
2100 cat >>confdefs.h <<\_ACEOF
2101 #define _XOPEN_SOURCE 600
2102 _ACEOF
2105 esac
2107 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2108 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2109 # several APIs are not declared. Since this is also needed in some
2110 # cases for HP-UX, we define it globally.
2111 # except for Solaris 10, where it must not be defined,
2112 # as it implies XPG4.2
2113 case $ac_sys_system/$ac_sys_release in
2114 SunOS/5.10)
2118 cat >>confdefs.h <<\_ACEOF
2119 #define _XOPEN_SOURCE_EXTENDED 1
2120 _ACEOF
2123 esac
2126 cat >>confdefs.h <<\_ACEOF
2127 #define _POSIX_C_SOURCE 200112L
2128 _ACEOF
2134 # SGI compilers allow the specification of the both the ABI and the
2135 # ISA on the command line. Depending on the values of these switches,
2136 # different and often incompatable code will be generated.
2138 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2139 # thus supply support for various ABI/ISA combinations. The MACHDEP
2140 # variable is also adjusted.
2143 if test ! -z "$SGI_ABI"
2144 then
2145 CC="cc $SGI_ABI"
2146 LDFLAGS="$SGI_ABI $LDFLAGS"
2147 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2149 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2150 echo "${ECHO_T}$MACHDEP" >&6; }
2152 # And add extra plat-mac for darwin
2155 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2156 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2157 if test -z "$EXTRAPLATDIR"
2158 then
2159 case $MACHDEP in
2160 darwin)
2161 EXTRAPLATDIR="\$(PLATMACDIRS)"
2162 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2165 EXTRAPLATDIR=""
2166 EXTRAMACHDEPPATH=""
2168 esac
2170 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2171 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2173 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2174 # it may influence the way we can build extensions, so distutils
2175 # needs to check it
2178 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2179 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2181 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2182 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2183 ac_sys_machine=`uname -m`
2184 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2185 echo "${ECHO_T}$ac_sys_machine" >&6; }
2187 # checks for alternative programs
2189 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2190 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2191 # just to get things to compile and link. Users are free to override OPT
2192 # when running configure or make. The build should not break if they do.
2193 # BASECFLAGS should generally not be messed with, however.
2195 # XXX shouldn't some/most/all of this code be merged with the stuff later
2196 # on that fiddles with OPT and BASECFLAGS?
2197 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2198 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2200 # Check whether --with-gcc was given.
2201 if test "${with_gcc+set}" = set; then
2202 withval=$with_gcc;
2203 case $withval in
2204 no) CC=cc
2205 without_gcc=yes;;
2206 yes) CC=gcc
2207 without_gcc=no;;
2208 *) CC=$withval
2209 without_gcc=$withval;;
2210 esac
2211 else
2213 case $ac_sys_system in
2214 AIX*) CC=cc_r
2215 without_gcc=;;
2216 BeOS*)
2217 case $BE_HOST_CPU in
2218 ppc)
2219 CC=mwcc
2220 without_gcc=yes
2221 BASECFLAGS="$BASECFLAGS -export pragma"
2222 OPT="$OPT -O"
2223 LDFLAGS="$LDFLAGS -nodup"
2225 x86)
2226 CC=gcc
2227 without_gcc=no
2228 OPT="$OPT -O"
2231 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2232 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2233 { (exit 1); exit 1; }; }
2235 esac
2236 AR="\$(srcdir)/Modules/ar_beos"
2237 RANLIB=:
2239 Monterey*)
2240 RANLIB=:
2241 without_gcc=;;
2242 *) without_gcc=no;;
2243 esac
2246 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2247 echo "${ECHO_T}$without_gcc" >&6; }
2249 # If the user switches compilers, we can't believe the cache
2250 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2251 then
2252 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2253 (it is also a good idea to do 'make clean' before compiling)" >&5
2254 echo "$as_me: error: cached CC is different -- throw away $cache_file
2255 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2256 { (exit 1); exit 1; }; }
2259 ac_ext=c
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264 if test -n "$ac_tool_prefix"; then
2265 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2266 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2269 if test "${ac_cv_prog_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$CC"; then
2273 ac_cv_prog_CC="$CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2282 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2286 done
2287 done
2288 IFS=$as_save_IFS
2292 CC=$ac_cv_prog_CC
2293 if test -n "$CC"; then
2294 { echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6; }
2296 else
2297 { echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6; }
2303 if test -z "$ac_cv_prog_CC"; then
2304 ac_ct_CC=$CC
2305 # Extract the first word of "gcc", so it can be a program name with args.
2306 set dummy gcc; ac_word=$2
2307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 if test -n "$ac_ct_CC"; then
2313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_ac_ct_CC="gcc"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2326 done
2327 done
2328 IFS=$as_save_IFS
2332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2333 if test -n "$ac_ct_CC"; then
2334 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2335 echo "${ECHO_T}$ac_ct_CC" >&6; }
2336 else
2337 { echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6; }
2341 if test "x$ac_ct_CC" = x; then
2342 CC=""
2343 else
2344 case $cross_compiling:$ac_tool_warned in
2345 yes:)
2346 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2347 whose name does not start with the host triplet. If you think this
2348 configuration is useful to you, please write to autoconf@gnu.org." >&5
2349 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2350 whose name does not start with the host triplet. If you think this
2351 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2352 ac_tool_warned=yes ;;
2353 esac
2354 CC=$ac_ct_CC
2356 else
2357 CC="$ac_cv_prog_CC"
2360 if test -z "$CC"; then
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
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 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391 { echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6; }
2393 else
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2401 if test -z "$CC"; then
2402 # Extract the first word of "cc", so it can be a program name with args.
2403 set dummy cc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 else
2412 ac_prog_rejected=no
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2421 ac_prog_rejected=yes
2422 continue
2424 ac_cv_prog_CC="cc"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2428 done
2429 done
2430 IFS=$as_save_IFS
2432 if test $ac_prog_rejected = yes; then
2433 # We found a bogon in the path, so make sure we never use it.
2434 set dummy $ac_cv_prog_CC
2435 shift
2436 if test $# != 0; then
2437 # We chose a different compiler from the bogus one.
2438 # However, it has the same basename, so the bogon will be chosen
2439 # first if we set CC to just the basename; use the full file name.
2440 shift
2441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
2457 if test -z "$CC"; then
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog in cl.exe
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 break 2
2482 done
2483 done
2484 IFS=$as_save_IFS
2488 CC=$ac_cv_prog_CC
2489 if test -n "$CC"; then
2490 { echo "$as_me:$LINENO: result: $CC" >&5
2491 echo "${ECHO_T}$CC" >&6; }
2492 else
2493 { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2498 test -n "$CC" && break
2499 done
2501 if test -z "$CC"; then
2502 ac_ct_CC=$CC
2503 for ac_prog in cl.exe
2505 # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy $ac_prog; ac_word=$2
2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 if test -n "$ac_ct_CC"; then
2513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_ac_ct_CC="$ac_prog"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2526 done
2527 done
2528 IFS=$as_save_IFS
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2535 echo "${ECHO_T}$ac_ct_CC" >&6; }
2536 else
2537 { echo "$as_me:$LINENO: result: no" >&5
2538 echo "${ECHO_T}no" >&6; }
2542 test -n "$ac_ct_CC" && break
2543 done
2545 if test "x$ac_ct_CC" = x; then
2546 CC=""
2547 else
2548 case $cross_compiling:$ac_tool_warned in
2549 yes:)
2550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2551 whose name does not start with the host triplet. If you think this
2552 configuration is useful to you, please write to autoconf@gnu.org." >&5
2553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2554 whose name does not start with the host triplet. If you think this
2555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2556 ac_tool_warned=yes ;;
2557 esac
2558 CC=$ac_ct_CC
2565 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: no acceptable C compiler found in \$PATH
2568 See \`config.log' for more details." >&2;}
2569 { (exit 1); exit 1; }; }
2571 # Provide some information about the compiler.
2572 echo "$as_me:$LINENO: checking for C compiler version" >&5
2573 ac_compiler=`set X $ac_compile; echo $2`
2574 { (ac_try="$ac_compiler --version >&5"
2575 case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compiler --version >&5") 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }
2584 { (ac_try="$ac_compiler -v >&5"
2585 case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588 esac
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_compiler -v >&5") 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }
2594 { (ac_try="$ac_compiler -V >&5"
2595 case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_compiler -V >&5") 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }
2605 cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h. */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2613 main ()
2617 return 0;
2619 _ACEOF
2620 ac_clean_files_save=$ac_clean_files
2621 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2622 # Try to create an executable without -o first, disregard a.out.
2623 # It will help us diagnose broken compilers, and finding out an intuition
2624 # of exeext.
2625 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2626 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2627 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2629 # List of possible output files, starting from the most likely.
2630 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2631 # only as a last resort. b.out is created by i960 compilers.
2632 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2634 # The IRIX 6 linker writes into existing files which may not be
2635 # executable, retaining their permissions. Remove them first so a
2636 # subsequent execution test works.
2637 ac_rmfiles=
2638 for ac_file in $ac_files
2640 case $ac_file in
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2642 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2643 esac
2644 done
2645 rm -f $ac_rmfiles
2647 if { (ac_try="$ac_link_default"
2648 case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2651 esac
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_link_default") 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; then
2657 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2658 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2659 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2660 # so that the user can short-circuit this test for compilers unknown to
2661 # Autoconf.
2662 for ac_file in $ac_files ''
2664 test -f "$ac_file" || continue
2665 case $ac_file in
2666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2668 [ab].out )
2669 # We found the default executable, but exeext='' is most
2670 # certainly right.
2671 break;;
2672 *.* )
2673 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2674 then :; else
2675 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2677 # We set ac_cv_exeext here because the later test for it is not
2678 # safe: cross compilers may not add the suffix if given an `-o'
2679 # argument, so we may need to know it at that point already.
2680 # Even if this section looks crufty: it has the advantage of
2681 # actually working.
2682 break;;
2684 break;;
2685 esac
2686 done
2687 test "$ac_cv_exeext" = no && ac_cv_exeext=
2689 else
2690 ac_file=''
2693 { echo "$as_me:$LINENO: result: $ac_file" >&5
2694 echo "${ECHO_T}$ac_file" >&6; }
2695 if test -z "$ac_file"; then
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2700 See \`config.log' for more details." >&5
2701 echo "$as_me: error: C compiler cannot create executables
2702 See \`config.log' for more details." >&2;}
2703 { (exit 77); exit 77; }; }
2706 ac_exeext=$ac_cv_exeext
2708 # Check that the compiler produces executables we can run. If not, either
2709 # the compiler is broken, or we cross compile.
2710 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2711 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2712 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2713 # If not cross compiling, check that we can run a simple program.
2714 if test "$cross_compiling" != yes; then
2715 if { ac_try='./$ac_file'
2716 { (case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_try") 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 cross_compiling=no
2726 else
2727 if test "$cross_compiling" = maybe; then
2728 cross_compiling=yes
2729 else
2730 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2731 If you meant to cross compile, use \`--host'.
2732 See \`config.log' for more details." >&5
2733 echo "$as_me: error: cannot run C compiled programs.
2734 If you meant to cross compile, use \`--host'.
2735 See \`config.log' for more details." >&2;}
2736 { (exit 1); exit 1; }; }
2740 { echo "$as_me:$LINENO: result: yes" >&5
2741 echo "${ECHO_T}yes" >&6; }
2743 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2744 ac_clean_files=$ac_clean_files_save
2745 # Check that the compiler produces executables we can run. If not, either
2746 # the compiler is broken, or we cross compile.
2747 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2748 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2749 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2750 echo "${ECHO_T}$cross_compiling" >&6; }
2752 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2753 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2754 if { (ac_try="$ac_link"
2755 case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_link") 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; then
2764 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2765 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2766 # work properly (i.e., refer to `conftest.exe'), while it won't with
2767 # `rm'.
2768 for ac_file in conftest.exe conftest conftest.*; do
2769 test -f "$ac_file" || continue
2770 case $ac_file in
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2772 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773 break;;
2774 * ) break;;
2775 esac
2776 done
2777 else
2778 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2779 See \`config.log' for more details." >&5
2780 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2781 See \`config.log' for more details." >&2;}
2782 { (exit 1); exit 1; }; }
2785 rm -f conftest$ac_cv_exeext
2786 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2787 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2789 rm -f conftest.$ac_ext
2790 EXEEXT=$ac_cv_exeext
2791 ac_exeext=$EXEEXT
2792 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2793 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2794 if test "${ac_cv_objext+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h. */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2805 main ()
2809 return 0;
2811 _ACEOF
2812 rm -f conftest.o conftest.obj
2813 if { (ac_try="$ac_compile"
2814 case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_compile") 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; then
2823 for ac_file in conftest.o conftest.obj conftest.*; do
2824 test -f "$ac_file" || continue;
2825 case $ac_file in
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2827 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2828 break;;
2829 esac
2830 done
2831 else
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2835 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2836 See \`config.log' for more details." >&5
2837 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2838 See \`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2842 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2844 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2845 echo "${ECHO_T}$ac_cv_objext" >&6; }
2846 OBJEXT=$ac_cv_objext
2847 ac_objext=$OBJEXT
2848 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2849 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2850 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 cat >conftest.$ac_ext <<_ACEOF
2854 /* confdefs.h. */
2855 _ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2861 main ()
2863 #ifndef __GNUC__
2864 choke me
2865 #endif
2868 return 0;
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (ac_try="$ac_compile"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compile") 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && {
2885 test -z "$ac_c_werror_flag" ||
2886 test ! -s conftest.err
2887 } && test -s conftest.$ac_objext; then
2888 ac_compiler_gnu=yes
2889 else
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 ac_compiler_gnu=no
2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2900 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2901 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2902 GCC=`test $ac_compiler_gnu = yes && echo yes`
2903 ac_test_CFLAGS=${CFLAGS+set}
2904 ac_save_CFLAGS=$CFLAGS
2905 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2906 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2907 if test "${ac_cv_prog_cc_g+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 ac_save_c_werror_flag=$ac_c_werror_flag
2911 ac_c_werror_flag=yes
2912 ac_cv_prog_cc_g=no
2913 CFLAGS="-g"
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2922 main ()
2926 return 0;
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && {
2943 test -z "$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 } && test -s conftest.$ac_objext; then
2946 ac_cv_prog_cc_g=yes
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 CFLAGS=""
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2960 main ()
2964 return 0;
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } && {
2981 test -z "$ac_c_werror_flag" ||
2982 test ! -s conftest.err
2983 } && test -s conftest.$ac_objext; then
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 ac_c_werror_flag=$ac_save_c_werror_flag
2990 CFLAGS="-g"
2991 cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2999 main ()
3003 return 0;
3005 _ACEOF
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3008 case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.$ac_objext; then
3023 ac_cv_prog_cc_g=yes
3024 else
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_c_werror_flag=$ac_save_c_werror_flag
3040 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3041 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3042 if test "$ac_test_CFLAGS" = set; then
3043 CFLAGS=$ac_save_CFLAGS
3044 elif test $ac_cv_prog_cc_g = yes; then
3045 if test "$GCC" = yes; then
3046 CFLAGS="-g -O2"
3047 else
3048 CFLAGS="-g"
3050 else
3051 if test "$GCC" = yes; then
3052 CFLAGS="-O2"
3053 else
3054 CFLAGS=
3057 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3058 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_cc_c89+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062 ac_cv_prog_cc_c89=no
3063 ac_save_CC=$CC
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 #include <stdarg.h>
3071 #include <stdio.h>
3072 #include <sys/types.h>
3073 #include <sys/stat.h>
3074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3075 struct buf { int x; };
3076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3077 static char *e (p, i)
3078 char **p;
3079 int i;
3081 return p[i];
3083 static char *f (char * (*g) (char **, int), char **p, ...)
3085 char *s;
3086 va_list v;
3087 va_start (v,p);
3088 s = g (p, va_arg (v,int));
3089 va_end (v);
3090 return s;
3093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3094 function prototypes and stuff, but not '\xHH' hex character constants.
3095 These don't provoke an error unfortunately, instead are silently treated
3096 as 'x'. The following induces an error, until -std is added to get
3097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3098 array size at least. It's necessary to write '\x00'==0 to get something
3099 that's true only with -std. */
3100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3103 inside strings and character constants. */
3104 #define FOO(x) 'x'
3105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3107 int test (int i, double x);
3108 struct s1 {int (*f) (int a);};
3109 struct s2 {int (*f) (double a);};
3110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3111 int argc;
3112 char **argv;
3114 main ()
3116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3118 return 0;
3120 _ACEOF
3121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3124 CC="$ac_save_CC $ac_arg"
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 ac_cv_prog_cc_c89=$ac_arg
3143 else
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3150 rm -f core conftest.err conftest.$ac_objext
3151 test "x$ac_cv_prog_cc_c89" != "xno" && break
3152 done
3153 rm -f conftest.$ac_ext
3154 CC=$ac_save_CC
3157 # AC_CACHE_VAL
3158 case "x$ac_cv_prog_cc_c89" in
3160 { echo "$as_me:$LINENO: result: none needed" >&5
3161 echo "${ECHO_T}none needed" >&6; } ;;
3162 xno)
3163 { echo "$as_me:$LINENO: result: unsupported" >&5
3164 echo "${ECHO_T}unsupported" >&6; } ;;
3166 CC="$CC $ac_cv_prog_cc_c89"
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3169 esac
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3182 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3184 # Check whether --with-cxx_main was given.
3185 if test "${with_cxx_main+set}" = set; then
3186 withval=$with_cxx_main;
3188 case $withval in
3189 no) with_cxx_main=no
3190 MAINCC='$(CC)';;
3191 yes) with_cxx_main=yes
3192 MAINCC='$(CXX)';;
3193 *) with_cxx_main=yes
3194 MAINCC=$withval
3195 if test -z "$CXX"
3196 then
3197 CXX=$withval
3198 fi;;
3199 esac
3200 else
3202 with_cxx_main=no
3203 MAINCC='$(CC)'
3207 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3208 echo "${ECHO_T}$with_cxx_main" >&6; }
3210 preset_cxx="$CXX"
3211 if test -z "$CXX"
3212 then
3213 case "$CC" in
3214 gcc) # Extract the first word of "g++", so it can be a program name with args.
3215 set dummy g++; ac_word=$2
3216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3218 if test "${ac_cv_path_CXX+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 case $CXX in
3222 [\\/]* | ?:[\\/]*)
3223 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in notfound
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3237 done
3238 done
3239 IFS=$as_save_IFS
3241 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3243 esac
3245 CXX=$ac_cv_path_CXX
3246 if test -n "$CXX"; then
3247 { echo "$as_me:$LINENO: result: $CXX" >&5
3248 echo "${ECHO_T}$CXX" >&6; }
3249 else
3250 { echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6; }
3255 cc) # Extract the first word of "c++", so it can be a program name with args.
3256 set dummy c++; ac_word=$2
3257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3259 if test "${ac_cv_path_CXX+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 case $CXX in
3263 [\\/]* | ?:[\\/]*)
3264 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in notfound
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3278 done
3279 done
3280 IFS=$as_save_IFS
3282 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3284 esac
3286 CXX=$ac_cv_path_CXX
3287 if test -n "$CXX"; then
3288 { echo "$as_me:$LINENO: result: $CXX" >&5
3289 echo "${ECHO_T}$CXX" >&6; }
3290 else
3291 { echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6; }
3296 esac
3297 if test "$CXX" = "notfound"
3298 then
3299 CXX=""
3302 if test -z "$CXX"
3303 then
3304 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_CXX+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 if test -n "$CXX"; then
3314 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_CXX="$ac_prog"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3327 done
3328 done
3329 IFS=$as_save_IFS
3333 CXX=$ac_cv_prog_CXX
3334 if test -n "$CXX"; then
3335 { echo "$as_me:$LINENO: result: $CXX" >&5
3336 echo "${ECHO_T}$CXX" >&6; }
3337 else
3338 { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3343 test -n "$CXX" && break
3344 done
3345 test -n "$CXX" || CXX="notfound"
3347 if test "$CXX" = "notfound"
3348 then
3349 CXX=""
3352 if test "$preset_cxx" != "$CXX"
3353 then
3354 { echo "$as_me:$LINENO: WARNING:
3356 By default, distutils will build C++ extension modules with \"$CXX\".
3357 If this is not intended, then set CXX on the configure command line.
3358 " >&5
3359 echo "$as_me: WARNING:
3361 By default, distutils will build C++ extension modules with \"$CXX\".
3362 If this is not intended, then set CXX on the configure command line.
3363 " >&2;}
3367 # checks for UNIX variants that set C preprocessor variables
3369 ac_ext=c
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3375 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3376 # On Suns, sometimes $CPP names a directory.
3377 if test -n "$CPP" && test -d "$CPP"; then
3378 CPP=
3380 if test -z "$CPP"; then
3381 if test "${ac_cv_prog_CPP+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 # Double quotes because CPP needs to be expanded
3385 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3387 ac_preproc_ok=false
3388 for ac_c_preproc_warn_flag in '' yes
3390 # Use a header file that comes with gcc, so configuring glibc
3391 # with a fresh cross-compiler works.
3392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3393 # <limits.h> exists even on freestanding compilers.
3394 # On the NeXT, cc -E runs the code through the compiler's parser,
3395 # not just through cpp. "Syntax error" is here to catch this case.
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #ifdef __STDC__
3403 # include <limits.h>
3404 #else
3405 # include <assert.h>
3406 #endif
3407 Syntax error
3408 _ACEOF
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null && {
3422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3423 test ! -s conftest.err
3424 }; then
3426 else
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 # Broken: fails on valid input.
3431 continue
3434 rm -f conftest.err conftest.$ac_ext
3436 # OK, works on sane cases. Now check whether nonexistent headers
3437 # can be detected and how.
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444 #include <ac_nonexistent.h>
3445 _ACEOF
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev/null && {
3459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 }; then
3462 # Broken: success on invalid input.
3463 continue
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 # Passes both tests.
3469 ac_preproc_ok=:
3470 break
3473 rm -f conftest.err conftest.$ac_ext
3475 done
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3479 break
3482 done
3483 ac_cv_prog_CPP=$CPP
3486 CPP=$ac_cv_prog_CPP
3487 else
3488 ac_cv_prog_CPP=$CPP
3490 { echo "$as_me:$LINENO: result: $CPP" >&5
3491 echo "${ECHO_T}$CPP" >&6; }
3492 ac_preproc_ok=false
3493 for ac_c_preproc_warn_flag in '' yes
3495 # Use a header file that comes with gcc, so configuring glibc
3496 # with a fresh cross-compiler works.
3497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 # <limits.h> exists even on freestanding compilers.
3499 # On the NeXT, cc -E runs the code through the compiler's parser,
3500 # not just through cpp. "Syntax error" is here to catch this case.
3501 cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h. */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3507 #ifdef __STDC__
3508 # include <limits.h>
3509 #else
3510 # include <assert.h>
3511 #endif
3512 Syntax error
3513 _ACEOF
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev/null && {
3527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3529 }; then
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 # Broken: fails on valid input.
3536 continue
3539 rm -f conftest.err conftest.$ac_ext
3541 # OK, works on sane cases. Now check whether nonexistent headers
3542 # can be detected and how.
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include <ac_nonexistent.h>
3550 _ACEOF
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null && {
3564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 }; then
3567 # Broken: success on invalid input.
3568 continue
3569 else
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 # Passes both tests.
3574 ac_preproc_ok=:
3575 break
3578 rm -f conftest.err conftest.$ac_ext
3580 done
3581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3582 rm -f conftest.err conftest.$ac_ext
3583 if $ac_preproc_ok; then
3585 else
3586 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3587 See \`config.log' for more details." >&5
3588 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3589 See \`config.log' for more details." >&2;}
3590 { (exit 1); exit 1; }; }
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3601 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3602 if test "${ac_cv_path_GREP+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605 # Extract the first word of "grep ggrep" to use in msg output
3606 if test -z "$GREP"; then
3607 set dummy grep ggrep; ac_prog_name=$2
3608 if test "${ac_cv_path_GREP+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 ac_path_GREP_found=false
3612 # Loop through the user's path and test for each of PROGNAME-LIST
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_prog in grep ggrep; do
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3621 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3622 # Check for GNU ac_path_GREP and select it if it is found.
3623 # Check for GNU $ac_path_GREP
3624 case `"$ac_path_GREP" --version 2>&1` in
3625 *GNU*)
3626 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3628 ac_count=0
3629 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3630 while :
3632 cat "conftest.in" "conftest.in" >"conftest.tmp"
3633 mv "conftest.tmp" "conftest.in"
3634 cp "conftest.in" "conftest.nl"
3635 echo 'GREP' >> "conftest.nl"
3636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3638 ac_count=`expr $ac_count + 1`
3639 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3640 # Best one so far, save it but keep looking for a better one
3641 ac_cv_path_GREP="$ac_path_GREP"
3642 ac_path_GREP_max=$ac_count
3644 # 10*(2^10) chars as input seems more than enough
3645 test $ac_count -gt 10 && break
3646 done
3647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3648 esac
3651 $ac_path_GREP_found && break 3
3652 done
3653 done
3655 done
3656 IFS=$as_save_IFS
3661 GREP="$ac_cv_path_GREP"
3662 if test -z "$GREP"; then
3663 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3664 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3665 { (exit 1); exit 1; }; }
3668 else
3669 ac_cv_path_GREP=$GREP
3674 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3675 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3676 GREP="$ac_cv_path_GREP"
3679 { echo "$as_me:$LINENO: checking for egrep" >&5
3680 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3681 if test "${ac_cv_path_EGREP+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3685 then ac_cv_path_EGREP="$GREP -E"
3686 else
3687 # Extract the first word of "egrep" to use in msg output
3688 if test -z "$EGREP"; then
3689 set dummy egrep; ac_prog_name=$2
3690 if test "${ac_cv_path_EGREP+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 ac_path_EGREP_found=false
3694 # Loop through the user's path and test for each of PROGNAME-LIST
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_prog in egrep; do
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3703 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3704 # Check for GNU ac_path_EGREP and select it if it is found.
3705 # Check for GNU $ac_path_EGREP
3706 case `"$ac_path_EGREP" --version 2>&1` in
3707 *GNU*)
3708 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3710 ac_count=0
3711 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3712 while :
3714 cat "conftest.in" "conftest.in" >"conftest.tmp"
3715 mv "conftest.tmp" "conftest.in"
3716 cp "conftest.in" "conftest.nl"
3717 echo 'EGREP' >> "conftest.nl"
3718 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3720 ac_count=`expr $ac_count + 1`
3721 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3722 # Best one so far, save it but keep looking for a better one
3723 ac_cv_path_EGREP="$ac_path_EGREP"
3724 ac_path_EGREP_max=$ac_count
3726 # 10*(2^10) chars as input seems more than enough
3727 test $ac_count -gt 10 && break
3728 done
3729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3730 esac
3733 $ac_path_EGREP_found && break 3
3734 done
3735 done
3737 done
3738 IFS=$as_save_IFS
3743 EGREP="$ac_cv_path_EGREP"
3744 if test -z "$EGREP"; then
3745 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3746 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3747 { (exit 1); exit 1; }; }
3750 else
3751 ac_cv_path_EGREP=$EGREP
3757 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3758 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3759 EGREP="$ac_cv_path_EGREP"
3763 { echo "$as_me:$LINENO: checking for AIX" >&5
3764 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 #ifdef _AIX
3773 #endif
3775 _ACEOF
3776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3777 $EGREP "yes" >/dev/null 2>&1; then
3778 { echo "$as_me:$LINENO: result: yes" >&5
3779 echo "${ECHO_T}yes" >&6; }
3780 cat >>confdefs.h <<\_ACEOF
3781 #define _ALL_SOURCE 1
3782 _ACEOF
3784 else
3785 { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3788 rm -f conftest*
3792 # Check for unsupported systems
3793 case $ac_sys_system/$ac_sys_release in
3794 atheos*|Linux*/1*)
3795 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3796 echo See README for details.
3797 exit 1;;
3798 esac
3801 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3802 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3804 # Check whether --with-suffix was given.
3805 if test "${with_suffix+set}" = set; then
3806 withval=$with_suffix;
3807 case $withval in
3808 no) EXEEXT=;;
3809 yes) EXEEXT=.exe;;
3810 *) EXEEXT=$withval;;
3811 esac
3814 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3815 echo "${ECHO_T}$EXEEXT" >&6; }
3817 # Test whether we're running on a non-case-sensitive system, in which
3818 # case we give a warning if no ext is given
3820 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3821 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3822 if test ! -d CaseSensitiveTestDir; then
3823 mkdir CaseSensitiveTestDir
3826 if test -d casesensitivetestdir
3827 then
3828 { echo "$as_me:$LINENO: result: yes" >&5
3829 echo "${ECHO_T}yes" >&6; }
3830 BUILDEXEEXT=.exe
3831 else
3832 { echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6; }
3834 BUILDEXEEXT=$EXEEXT
3836 rmdir CaseSensitiveTestDir
3838 case $MACHDEP in
3839 bsdos*)
3840 case $CC in
3841 gcc) CC="$CC -D_HAVE_BSDI";;
3842 esac;;
3843 esac
3845 case $ac_sys_system in
3846 hp*|HP*)
3847 case $CC in
3848 cc|*/cc) CC="$CC -Ae";;
3849 esac;;
3850 Monterey*)
3851 case $CC in
3852 cc) CC="$CC -Wl,-Bexport";;
3853 esac;;
3854 SunOS*)
3855 # Some functions have a prototype only with that define, e.g. confstr
3857 cat >>confdefs.h <<\_ACEOF
3858 #define __EXTENSIONS__ 1
3859 _ACEOF
3862 esac
3866 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3867 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3868 if test -z "$LIBRARY"
3869 then
3870 LIBRARY='libpython$(VERSION).a'
3872 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3873 echo "${ECHO_T}$LIBRARY" >&6; }
3875 # LDLIBRARY is the name of the library to link against (as opposed to the
3876 # name of the library into which to insert object files). BLDLIBRARY is also
3877 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3878 # is blank as the main program is not linked directly against LDLIBRARY.
3879 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3880 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3881 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3882 # DLLLIBRARY is the shared (i.e., DLL) library.
3884 # RUNSHARED is used to run shared python without installed libraries
3886 # INSTSONAME is the name of the shared library that will be use to install
3887 # on the system - some systems like version suffix, others don't
3894 LDLIBRARY="$LIBRARY"
3895 BLDLIBRARY='$(LDLIBRARY)'
3896 INSTSONAME='$(LDLIBRARY)'
3897 DLLLIBRARY=''
3898 LDLIBRARYDIR=''
3899 RUNSHARED=''
3901 # LINKCC is the command that links the python executable -- default is $(CC).
3902 # If CXX is set, and if it is needed to link a main function that was
3903 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3904 # python might then depend on the C++ runtime
3905 # This is altered for AIX in order to build the export list before
3906 # linking.
3908 { echo "$as_me:$LINENO: checking LINKCC" >&5
3909 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3910 if test -z "$LINKCC"
3911 then
3912 LINKCC='$(PURIFY) $(MAINCC)'
3913 case $ac_sys_system in
3914 AIX*)
3915 exp_extra="\"\""
3916 if test $ac_sys_release -ge 5 -o \
3917 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3918 exp_extra="."
3920 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3921 Monterey64*)
3922 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3923 esac
3925 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3926 echo "${ECHO_T}$LINKCC" >&6; }
3928 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3929 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3930 # Check whether --enable-shared was given.
3931 if test "${enable_shared+set}" = set; then
3932 enableval=$enable_shared;
3936 if test -z "$enable_shared"
3937 then
3938 case $ac_sys_system in
3939 CYGWIN* | atheos*)
3940 enable_shared="yes";;
3942 enable_shared="no";;
3943 esac
3945 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3946 echo "${ECHO_T}$enable_shared" >&6; }
3948 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3949 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3950 # Check whether --enable-profiling was given.
3951 if test "${enable_profiling+set}" = set; then
3952 enableval=$enable_profiling; ac_save_cc="$CC"
3953 CC="$CC -pg"
3954 if test "$cross_compiling" = yes; then
3955 ac_enable_profiling="no"
3956 else
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 int main() { return 0; }
3964 _ACEOF
3965 rm -f conftest$ac_exeext
3966 if { (ac_try="$ac_link"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_link") 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3976 { (case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979 esac
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_try") 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_enable_profiling="yes"
3986 else
3987 echo "$as_me: program exited with status $ac_status" >&5
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3991 ( exit $ac_status )
3992 ac_enable_profiling="no"
3994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3998 CC="$ac_save_cc"
4001 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4002 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4004 case "$ac_enable_profiling" in
4005 "yes")
4006 BASECFLAGS="-pg $BASECFLAGS"
4007 LDFLAGS="-pg $LDFLAGS"
4009 esac
4011 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4012 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4014 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4015 # library that we build, but we do not want to link against it (we
4016 # will find it with a -framework option). For this reason there is an
4017 # extra variable BLDLIBRARY against which Python and the extension
4018 # modules are linked, BLDLIBRARY. This is normally the same as
4019 # LDLIBRARY, but empty for MacOSX framework builds.
4020 if test "$enable_framework"
4021 then
4022 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4023 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4024 BLDLIBRARY=''
4025 else
4026 BLDLIBRARY='$(LDLIBRARY)'
4029 # Other platforms follow
4030 if test $enable_shared = "yes"; then
4032 cat >>confdefs.h <<\_ACEOF
4033 #define Py_ENABLE_SHARED 1
4034 _ACEOF
4036 case $ac_sys_system in
4037 BeOS*)
4038 LDLIBRARY='libpython$(VERSION).so'
4040 CYGWIN*)
4041 LDLIBRARY='libpython$(VERSION).dll.a'
4042 DLLLIBRARY='libpython$(VERSION).dll'
4044 SunOS*)
4045 LDLIBRARY='libpython$(VERSION).so'
4046 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4047 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4048 INSTSONAME="$LDLIBRARY".$SOVERSION
4050 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4051 LDLIBRARY='libpython$(VERSION).so'
4052 BLDLIBRARY='-L. -lpython$(VERSION)'
4053 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4054 case $ac_sys_system in
4055 FreeBSD*)
4056 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4058 esac
4059 INSTSONAME="$LDLIBRARY".$SOVERSION
4061 hp*|HP*)
4062 case `uname -m` in
4063 ia64)
4064 LDLIBRARY='libpython$(VERSION).so'
4067 LDLIBRARY='libpython$(VERSION).sl'
4069 esac
4070 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4071 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4073 OSF*)
4074 LDLIBRARY='libpython$(VERSION).so'
4075 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4076 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4078 atheos*)
4079 LDLIBRARY='libpython$(VERSION).so'
4080 BLDLIBRARY='-L. -lpython$(VERSION)'
4081 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4083 esac
4084 else # shared is disabled
4085 case $ac_sys_system in
4086 CYGWIN*)
4087 BLDLIBRARY='$(LIBRARY)'
4088 LDLIBRARY='libpython$(VERSION).dll.a'
4090 esac
4093 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4094 echo "${ECHO_T}$LDLIBRARY" >&6; }
4096 if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4098 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4101 if test "${ac_cv_prog_RANLIB+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104 if test -n "$RANLIB"; then
4105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4118 done
4119 done
4120 IFS=$as_save_IFS
4124 RANLIB=$ac_cv_prog_RANLIB
4125 if test -n "$RANLIB"; then
4126 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4127 echo "${ECHO_T}$RANLIB" >&6; }
4128 else
4129 { echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6; }
4135 if test -z "$ac_cv_prog_RANLIB"; then
4136 ac_ct_RANLIB=$RANLIB
4137 # Extract the first word of "ranlib", so it can be a program name with args.
4138 set dummy ranlib; ac_word=$2
4139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 if test -n "$ac_ct_RANLIB"; then
4145 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_ac_ct_RANLIB="ranlib"
4155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4158 done
4159 done
4160 IFS=$as_save_IFS
4164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4165 if test -n "$ac_ct_RANLIB"; then
4166 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4167 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4168 else
4169 { echo "$as_me:$LINENO: result: no" >&5
4170 echo "${ECHO_T}no" >&6; }
4173 if test "x$ac_ct_RANLIB" = x; then
4174 RANLIB=":"
4175 else
4176 case $cross_compiling:$ac_tool_warned in
4177 yes:)
4178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4179 whose name does not start with the host triplet. If you think this
4180 configuration is useful to you, please write to autoconf@gnu.org." >&5
4181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4182 whose name does not start with the host triplet. If you think this
4183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4184 ac_tool_warned=yes ;;
4185 esac
4186 RANLIB=$ac_ct_RANLIB
4188 else
4189 RANLIB="$ac_cv_prog_RANLIB"
4193 for ac_prog in ar aal
4195 # Extract the first word of "$ac_prog", so it can be a program name with args.
4196 set dummy $ac_prog; ac_word=$2
4197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4199 if test "${ac_cv_prog_AR+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202 if test -n "$AR"; then
4203 ac_cv_prog_AR="$AR" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_prog_AR="$ac_prog"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4216 done
4217 done
4218 IFS=$as_save_IFS
4222 AR=$ac_cv_prog_AR
4223 if test -n "$AR"; then
4224 { echo "$as_me:$LINENO: result: $AR" >&5
4225 echo "${ECHO_T}$AR" >&6; }
4226 else
4227 { echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6; }
4232 test -n "$AR" && break
4233 done
4234 test -n "$AR" || AR="ar"
4238 # Extract the first word of "svnversion", so it can be a program name with args.
4239 set dummy svnversion; ac_word=$2
4240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if test -n "$SVNVERSION"; then
4246 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_SVNVERSION="found"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4263 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4266 SVNVERSION=$ac_cv_prog_SVNVERSION
4267 if test -n "$SVNVERSION"; then
4268 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4269 echo "${ECHO_T}$SVNVERSION" >&6; }
4270 else
4271 { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4276 if test $SVNVERSION = found
4277 then
4278 SVNVERSION="svnversion \$(srcdir)"
4279 else
4280 SVNVERSION="echo exported"
4283 case $MACHDEP in
4284 bsdos*|hp*|HP*)
4285 # install -d does not work on BSDI or HP-UX
4286 if test -z "$INSTALL"
4287 then
4288 INSTALL="${srcdir}/install-sh -c"
4290 esac
4291 ac_aux_dir=
4292 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4293 if test -f "$ac_dir/install-sh"; then
4294 ac_aux_dir=$ac_dir
4295 ac_install_sh="$ac_aux_dir/install-sh -c"
4296 break
4297 elif test -f "$ac_dir/install.sh"; then
4298 ac_aux_dir=$ac_dir
4299 ac_install_sh="$ac_aux_dir/install.sh -c"
4300 break
4301 elif test -f "$ac_dir/shtool"; then
4302 ac_aux_dir=$ac_dir
4303 ac_install_sh="$ac_aux_dir/shtool install -c"
4304 break
4306 done
4307 if test -z "$ac_aux_dir"; then
4308 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4309 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4310 { (exit 1); exit 1; }; }
4313 # These three variables are undocumented and unsupported,
4314 # and are intended to be withdrawn in a future Autoconf release.
4315 # They can cause serious problems if a builder's source tree is in a directory
4316 # whose full name contains unusual characters.
4317 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4318 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4319 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4322 # Find a good install program. We prefer a C program (faster),
4323 # so one script is as good as another. But avoid the broken or
4324 # incompatible versions:
4325 # SysV /etc/install, /usr/sbin/install
4326 # SunOS /usr/etc/install
4327 # IRIX /sbin/install
4328 # AIX /bin/install
4329 # AmigaOS /C/install, which installs bootblocks on floppy discs
4330 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4331 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4332 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4333 # OS/2's system install, which has a completely different semantic
4334 # ./install, which can be erroneously created by make from ./install.sh.
4335 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4336 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4337 if test -z "$INSTALL"; then
4338 if test "${ac_cv_path_install+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 # Account for people who put trailing slashes in PATH elements.
4347 case $as_dir/ in
4348 ./ | .// | /cC/* | \
4349 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4350 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4351 /usr/ucb/* ) ;;
4353 # OSF1 and SCO ODT 3.0 have their own names for install.
4354 # Don't use installbsd from OSF since it installs stuff as root
4355 # by default.
4356 for ac_prog in ginstall scoinst install; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4359 if test $ac_prog = install &&
4360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4361 # AIX install. It has an incompatible calling convention.
4363 elif test $ac_prog = install &&
4364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4365 # program-specific install script used by HP pwplus--don't use.
4367 else
4368 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4369 break 3
4372 done
4373 done
4375 esac
4376 done
4377 IFS=$as_save_IFS
4381 if test "${ac_cv_path_install+set}" = set; then
4382 INSTALL=$ac_cv_path_install
4383 else
4384 # As a last resort, use the slow shell script. Don't cache a
4385 # value for INSTALL within a source directory, because that will
4386 # break other packages using the cache if that directory is
4387 # removed, or if the value is a relative name.
4388 INSTALL=$ac_install_sh
4391 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4392 echo "${ECHO_T}$INSTALL" >&6; }
4394 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4395 # It thinks the first close brace ends the variable substitution.
4396 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4398 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4400 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4403 # Not every filesystem supports hard links
4405 if test -z "$LN" ; then
4406 case $ac_sys_system in
4407 BeOS*) LN="ln -s";;
4408 CYGWIN*) LN="ln -s";;
4409 atheos*) LN="ln -s";;
4410 *) LN=ln;;
4411 esac
4414 # Check for --with-pydebug
4415 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4416 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4418 # Check whether --with-pydebug was given.
4419 if test "${with_pydebug+set}" = set; then
4420 withval=$with_pydebug;
4421 if test "$withval" != no
4422 then
4424 cat >>confdefs.h <<\_ACEOF
4425 #define Py_DEBUG 1
4426 _ACEOF
4428 { echo "$as_me:$LINENO: result: yes" >&5
4429 echo "${ECHO_T}yes" >&6; };
4430 Py_DEBUG='true'
4431 else { echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4434 else
4435 { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4440 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4441 # merged with this chunk of code?
4443 # Optimizer/debugger flags
4444 # ------------------------
4445 # (The following bit of code is complicated enough - please keep things
4446 # indented properly. Just pretend you're editing Python code. ;-)
4448 # There are two parallel sets of case statements below, one that checks to
4449 # see if OPT was set and one that does BASECFLAGS setting based upon
4450 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4451 # user set OPT.
4453 # tweak OPT based on compiler and platform, only if the user didn't set
4454 # it on the command line
4456 if test -z "$OPT"
4457 then
4458 case $GCC in
4459 yes)
4460 if test "$CC" != 'g++' ; then
4461 STRICT_PROTO="-Wstrict-prototypes"
4463 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4464 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4465 WRAP="-fwrapv"
4467 case $ac_cv_prog_cc_g in
4468 yes)
4469 if test "$Py_DEBUG" = 'true' ; then
4470 # Optimization messes up debuggers, so turn it off for
4471 # debug builds.
4472 OPT="-g -Wall $STRICT_PROTO"
4473 else
4474 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4478 OPT="-O3 -Wall $STRICT_PROTO"
4480 esac
4481 case $ac_sys_system in
4482 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4484 esac
4488 OPT="-O"
4490 esac
4492 # The current (beta) Monterey compiler dies with optimizations
4493 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4494 case $ac_sys_system in
4495 Monterey*)
4496 OPT=""
4498 esac
4503 # tweak BASECFLAGS based on compiler and platform
4504 case $GCC in
4505 yes)
4506 # Python violates C99 rules, by casting between incompatible
4507 # pointer types. GCC may generate bad code as a result of that,
4508 # so use -fno-strict-aliasing if supported.
4509 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4510 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4511 ac_save_cc="$CC"
4512 CC="$CC -fno-strict-aliasing"
4513 if test "$cross_compiling" = yes; then
4514 ac_cv_no_strict_aliasing_ok=no
4515 else
4516 cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h. */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 int main() { return 0; }
4523 _ACEOF
4524 rm -f conftest$ac_exeext
4525 if { (ac_try="$ac_link"
4526 case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_link") 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4535 { (case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_try") 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 ac_cv_no_strict_aliasing_ok=yes
4545 else
4546 echo "$as_me: program exited with status $ac_status" >&5
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 ( exit $ac_status )
4551 ac_cv_no_strict_aliasing_ok=no
4553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4557 CC="$ac_save_cc"
4558 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4559 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4560 if test $ac_cv_no_strict_aliasing_ok = yes
4561 then
4562 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4565 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4566 # support. Without this, treatment of subnormals doesn't follow
4567 # the standard.
4568 case $ac_sys_machine in
4569 alpha*)
4570 BASECFLAGS="$BASECFLAGS -mieee"
4572 esac
4574 case $ac_sys_system in
4575 SCO_SV*)
4576 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4578 # is there any other compiler on Darwin besides gcc?
4579 Darwin*)
4580 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4581 # used to be here, but non-Apple gcc doesn't accept them.
4582 if test "${enable_universalsdk}"; then
4583 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4587 OSF*)
4588 BASECFLAGS="$BASECFLAGS -mieee"
4590 esac
4594 case $ac_sys_system in
4595 OpenUNIX*|UnixWare*)
4596 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4598 OSF*)
4599 BASECFLAGS="$BASECFLAGS -ieee -std"
4601 SCO_SV*)
4602 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4604 esac
4606 esac
4608 if test "$Py_DEBUG" = 'true'; then
4610 else
4611 OPT="-DNDEBUG $OPT"
4614 if test "$ac_arch_flags"
4615 then
4616 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4619 # disable check for icc since it seems to pass, but generates a warning
4620 if test "$CC" = icc
4621 then
4622 ac_cv_opt_olimit_ok=no
4625 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4626 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4627 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 ac_save_cc="$CC"
4631 CC="$CC -OPT:Olimit=0"
4632 if test "$cross_compiling" = yes; then
4633 ac_cv_opt_olimit_ok=no
4634 else
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 int main() { return 0; }
4642 _ACEOF
4643 rm -f conftest$ac_exeext
4644 if { (ac_try="$ac_link"
4645 case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648 esac
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_link") 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4654 { (case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657 esac
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_try") 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ac_cv_opt_olimit_ok=yes
4664 else
4665 echo "$as_me: program exited with status $ac_status" >&5
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 ( exit $ac_status )
4670 ac_cv_opt_olimit_ok=no
4672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4676 CC="$ac_save_cc"
4679 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4680 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4681 if test $ac_cv_opt_olimit_ok = yes; then
4682 case $ac_sys_system in
4683 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4684 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4685 # environment?
4686 Darwin*)
4689 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4691 esac
4692 else
4693 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4694 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4695 if test "${ac_cv_olimit_ok+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 ac_save_cc="$CC"
4699 CC="$CC -Olimit 1500"
4700 if test "$cross_compiling" = yes; then
4701 ac_cv_olimit_ok=no
4702 else
4703 cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h. */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 int main() { return 0; }
4710 _ACEOF
4711 rm -f conftest$ac_exeext
4712 if { (ac_try="$ac_link"
4713 case "(($ac_try" in
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4716 esac
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718 (eval "$ac_link") 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4722 { (case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_try") 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 ac_cv_olimit_ok=yes
4732 else
4733 echo "$as_me: program exited with status $ac_status" >&5
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4737 ( exit $ac_status )
4738 ac_cv_olimit_ok=no
4740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4744 CC="$ac_save_cc"
4747 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4748 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4749 if test $ac_cv_olimit_ok = yes; then
4750 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4754 # Check whether GCC supports PyArg_ParseTuple format
4755 if test "$GCC" = "yes"
4756 then
4757 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4758 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4759 save_CFLAGS=$CFLAGS
4760 CFLAGS="$CFLAGS -Werror"
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4768 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4771 main ()
4775 return 0;
4777 _ACEOF
4778 rm -f conftest.$ac_objext
4779 if { (ac_try="$ac_compile"
4780 case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783 esac
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785 (eval "$ac_compile") 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } && {
4792 test -z "$ac_c_werror_flag" ||
4793 test ! -s conftest.err
4794 } && test -s conftest.$ac_objext; then
4796 cat >>confdefs.h <<\_ACEOF
4797 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4798 _ACEOF
4800 { echo "$as_me:$LINENO: result: yes" >&5
4801 echo "${ECHO_T}yes" >&6; }
4802 else
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 CFLAGS=$save_CFLAGS
4815 # On some compilers, pthreads are available without further options
4816 # (e.g. MacOS X). On some of these systems, the compiler will not
4817 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4818 # So we have to see first whether pthreads are available without
4819 # options before we can check whether -Kpthread improves anything.
4820 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4821 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4822 if test "${ac_cv_pthread_is_default+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 if test "$cross_compiling" = yes; then
4826 ac_cv_pthread_is_default=no
4827 else
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4835 #include <pthread.h>
4837 void* routine(void* p){return NULL;}
4839 int main(){
4840 pthread_t p;
4841 if(pthread_create(&p,NULL,routine,NULL)!=0)
4842 return 1;
4843 (void)pthread_detach(p);
4844 return 0;
4847 _ACEOF
4848 rm -f conftest$ac_exeext
4849 if { (ac_try="$ac_link"
4850 case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_link") 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4859 { (case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_try") 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4869 ac_cv_pthread_is_default=yes
4870 ac_cv_kthread=no
4871 ac_cv_pthread=no
4873 else
4874 echo "$as_me: program exited with status $ac_status" >&5
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 ( exit $ac_status )
4879 ac_cv_pthread_is_default=no
4881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4888 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4889 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4892 if test $ac_cv_pthread_is_default = yes
4893 then
4894 ac_cv_kpthread=no
4895 else
4896 # -Kpthread, if available, provides the right #defines
4897 # and linker options to make pthread_create available
4898 # Some compilers won't report that they do not support -Kpthread,
4899 # so we need to run a program to see whether it really made the
4900 # function available.
4901 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4902 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4903 if test "${ac_cv_kpthread+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 ac_save_cc="$CC"
4907 CC="$CC -Kpthread"
4908 if test "$cross_compiling" = yes; then
4909 ac_cv_kpthread=no
4910 else
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4918 #include <pthread.h>
4920 void* routine(void* p){return NULL;}
4922 int main(){
4923 pthread_t p;
4924 if(pthread_create(&p,NULL,routine,NULL)!=0)
4925 return 1;
4926 (void)pthread_detach(p);
4927 return 0;
4930 _ACEOF
4931 rm -f conftest$ac_exeext
4932 if { (ac_try="$ac_link"
4933 case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_link") 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4942 { (case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945 esac
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_try") 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4951 ac_cv_kpthread=yes
4952 else
4953 echo "$as_me: program exited with status $ac_status" >&5
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 ( exit $ac_status )
4958 ac_cv_kpthread=no
4960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4964 CC="$ac_save_cc"
4967 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4968 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4971 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4972 then
4973 # -Kthread, if available, provides the right #defines
4974 # and linker options to make pthread_create available
4975 # Some compilers won't report that they do not support -Kthread,
4976 # so we need to run a program to see whether it really made the
4977 # function available.
4978 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4979 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4980 if test "${ac_cv_kthread+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 ac_save_cc="$CC"
4984 CC="$CC -Kthread"
4985 if test "$cross_compiling" = yes; then
4986 ac_cv_kthread=no
4987 else
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4995 #include <pthread.h>
4997 void* routine(void* p){return NULL;}
4999 int main(){
5000 pthread_t p;
5001 if(pthread_create(&p,NULL,routine,NULL)!=0)
5002 return 1;
5003 (void)pthread_detach(p);
5004 return 0;
5007 _ACEOF
5008 rm -f conftest$ac_exeext
5009 if { (ac_try="$ac_link"
5010 case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013 esac
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_link") 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5019 { (case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022 esac
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_try") 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 ac_cv_kthread=yes
5029 else
5030 echo "$as_me: program exited with status $ac_status" >&5
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ( exit $ac_status )
5035 ac_cv_kthread=no
5037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5041 CC="$ac_save_cc"
5044 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5045 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5048 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5049 then
5050 # -pthread, if available, provides the right #defines
5051 # and linker options to make pthread_create available
5052 # Some compilers won't report that they do not support -pthread,
5053 # so we need to run a program to see whether it really made the
5054 # function available.
5055 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5056 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5057 if test "${ac_cv_thread+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060 ac_save_cc="$CC"
5061 CC="$CC -pthread"
5062 if test "$cross_compiling" = yes; then
5063 ac_cv_pthread=no
5064 else
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5072 #include <pthread.h>
5074 void* routine(void* p){return NULL;}
5076 int main(){
5077 pthread_t p;
5078 if(pthread_create(&p,NULL,routine,NULL)!=0)
5079 return 1;
5080 (void)pthread_detach(p);
5081 return 0;
5084 _ACEOF
5085 rm -f conftest$ac_exeext
5086 if { (ac_try="$ac_link"
5087 case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5090 esac
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_link") 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5096 { (case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099 esac
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_try") 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 ac_cv_pthread=yes
5106 else
5107 echo "$as_me: program exited with status $ac_status" >&5
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 ( exit $ac_status )
5112 ac_cv_pthread=no
5114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5118 CC="$ac_save_cc"
5121 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5122 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5125 # If we have set a CC compiler flag for thread support then
5126 # check if it works for CXX, too.
5127 ac_cv_cxx_thread=no
5128 if test ! -z "$CXX"
5129 then
5130 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5131 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5132 ac_save_cxx="$CXX"
5134 if test "$ac_cv_kpthread" = "yes"
5135 then
5136 CXX="$CXX -Kpthread"
5137 ac_cv_cxx_thread=yes
5138 elif test "$ac_cv_kthread" = "yes"
5139 then
5140 CXX="$CXX -Kthread"
5141 ac_cv_cxx_thread=yes
5142 elif test "$ac_cv_pthread" = "yes"
5143 then
5144 CXX="$CXX -pthread"
5145 ac_cv_cxx_thread=yes
5148 if test $ac_cv_cxx_thread = yes
5149 then
5150 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5151 $CXX -c conftest.$ac_ext 2>&5
5152 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5153 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5154 then
5155 ac_cv_cxx_thread=yes
5156 else
5157 ac_cv_cxx_thread=no
5159 rm -fr conftest*
5161 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5162 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5164 CXX="$ac_save_cxx"
5167 # checks for header files
5168 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5169 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5170 if test "${ac_cv_header_stdc+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h. */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 #include <stdlib.h>
5180 #include <stdarg.h>
5181 #include <string.h>
5182 #include <float.h>
5185 main ()
5189 return 0;
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5194 case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
5209 ac_cv_header_stdc=yes
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_cv_header_stdc=no
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219 if test $ac_cv_header_stdc = yes; then
5220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5221 cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h. */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 #include <string.h>
5229 _ACEOF
5230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5231 $EGREP "memchr" >/dev/null 2>&1; then
5233 else
5234 ac_cv_header_stdc=no
5236 rm -f conftest*
5240 if test $ac_cv_header_stdc = yes; then
5241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 #include <stdlib.h>
5250 _ACEOF
5251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5252 $EGREP "free" >/dev/null 2>&1; then
5254 else
5255 ac_cv_header_stdc=no
5257 rm -f conftest*
5261 if test $ac_cv_header_stdc = yes; then
5262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5263 if test "$cross_compiling" = yes; then
5265 else
5266 cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h. */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 #include <ctype.h>
5273 #include <stdlib.h>
5274 #if ((' ' & 0x0FF) == 0x020)
5275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5277 #else
5278 # define ISLOWER(c) \
5279 (('a' <= (c) && (c) <= 'i') \
5280 || ('j' <= (c) && (c) <= 'r') \
5281 || ('s' <= (c) && (c) <= 'z'))
5282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5283 #endif
5285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5287 main ()
5289 int i;
5290 for (i = 0; i < 256; i++)
5291 if (XOR (islower (i), ISLOWER (i))
5292 || toupper (i) != TOUPPER (i))
5293 return 2;
5294 return 0;
5296 _ACEOF
5297 rm -f conftest$ac_exeext
5298 if { (ac_try="$ac_link"
5299 case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302 esac
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_link") 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5318 else
5319 echo "$as_me: program exited with status $ac_status" >&5
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 ( exit $ac_status )
5324 ac_cv_header_stdc=no
5326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5332 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5333 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5334 if test $ac_cv_header_stdc = yes; then
5336 cat >>confdefs.h <<\_ACEOF
5337 #define STDC_HEADERS 1
5338 _ACEOF
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5353 inttypes.h stdint.h unistd.h
5355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 $ac_includes_default
5369 #include <$ac_header>
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5388 eval "$as_ac_Header=yes"
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 eval "$as_ac_Header=no"
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 ac_res=`eval echo '${'$as_ac_Header'}'`
5399 { echo "$as_me:$LINENO: result: $ac_res" >&5
5400 echo "${ECHO_T}$ac_res" >&6; }
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402 cat >>confdefs.h <<_ACEOF
5403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5404 _ACEOF
5408 done
5464 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5465 fcntl.h grp.h \
5466 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5467 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5468 unistd.h utime.h \
5469 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5470 sys/lock.h sys/mkdev.h sys/modem.h \
5471 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5472 sys/time.h \
5473 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5474 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5475 bluetooth/bluetooth.h linux/tipc.h
5477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 ac_res=`eval echo '${'$as_ac_Header'}'`
5485 { echo "$as_me:$LINENO: result: $ac_res" >&5
5486 echo "${ECHO_T}$ac_res" >&6; }
5487 else
5488 # Is the header compilable?
5489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 $ac_includes_default
5498 #include <$ac_header>
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5517 ac_header_compiler=yes
5518 else
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 ac_header_compiler=no
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5527 echo "${ECHO_T}$ac_header_compiler" >&6; }
5529 # Is the header present?
5530 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5532 cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h. */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5538 #include <$ac_header>
5539 _ACEOF
5540 if { (ac_try="$ac_cpp conftest.$ac_ext"
5541 case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544 esac
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } >/dev/null && {
5553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5554 test ! -s conftest.err
5555 }; then
5556 ac_header_preproc=yes
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5561 ac_header_preproc=no
5564 rm -f conftest.err conftest.$ac_ext
5565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5566 echo "${ECHO_T}$ac_header_preproc" >&6; }
5568 # So? What about this header?
5569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5570 yes:no: )
5571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5575 ac_header_preproc=yes
5577 no:yes:* )
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5590 ( cat <<\_ASBOX
5591 ## ------------------------------------------------ ##
5592 ## Report this to http://www.python.org/python-bugs ##
5593 ## ------------------------------------------------ ##
5594 _ASBOX
5595 ) | sed "s/^/$as_me: WARNING: /" >&2
5597 esac
5598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 eval "$as_ac_Header=\$ac_header_preproc"
5605 ac_res=`eval echo '${'$as_ac_Header'}'`
5606 { echo "$as_me:$LINENO: result: $ac_res" >&5
5607 echo "${ECHO_T}$ac_res" >&6; }
5610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5611 cat >>confdefs.h <<_ACEOF
5612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5613 _ACEOF
5617 done
5624 ac_header_dirent=no
5625 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5626 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5627 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5628 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5639 #include <$ac_hdr>
5642 main ()
5644 if ((DIR *) 0)
5645 return 0;
5647 return 0;
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5652 case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 eval "$as_ac_Header=yes"
5668 else
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5672 eval "$as_ac_Header=no"
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 ac_res=`eval echo '${'$as_ac_Header'}'`
5678 { echo "$as_me:$LINENO: result: $ac_res" >&5
5679 echo "${ECHO_T}$ac_res" >&6; }
5680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5681 cat >>confdefs.h <<_ACEOF
5682 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5683 _ACEOF
5685 ac_header_dirent=$ac_hdr; break
5688 done
5689 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5690 if test $ac_header_dirent = dirent.h; then
5691 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5692 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5693 if test "${ac_cv_search_opendir+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 ac_func_search_save_LIBS=$LIBS
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5704 /* Override any GCC internal prototype to avoid an error.
5705 Use char because int might match the return type of a GCC
5706 builtin and then its argument prototype would still apply. */
5707 #ifdef __cplusplus
5708 extern "C"
5709 #endif
5710 char opendir ();
5712 main ()
5714 return opendir ();
5716 return 0;
5718 _ACEOF
5719 for ac_lib in '' dir; do
5720 if test -z "$ac_lib"; then
5721 ac_res="none required"
5722 else
5723 ac_res=-l$ac_lib
5724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (ac_try="$ac_link"
5728 case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_link") 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_c_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest$ac_exeext &&
5743 $as_test_x conftest$ac_exeext; then
5744 ac_cv_search_opendir=$ac_res
5745 else
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5753 conftest$ac_exeext
5754 if test "${ac_cv_search_opendir+set}" = set; then
5755 break
5757 done
5758 if test "${ac_cv_search_opendir+set}" = set; then
5760 else
5761 ac_cv_search_opendir=no
5763 rm conftest.$ac_ext
5764 LIBS=$ac_func_search_save_LIBS
5766 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5767 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5768 ac_res=$ac_cv_search_opendir
5769 if test "$ac_res" != no; then
5770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5774 else
5775 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5777 if test "${ac_cv_search_opendir+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 ac_func_search_save_LIBS=$LIBS
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5788 /* Override any GCC internal prototype to avoid an error.
5789 Use char because int might match the return type of a GCC
5790 builtin and then its argument prototype would still apply. */
5791 #ifdef __cplusplus
5792 extern "C"
5793 #endif
5794 char opendir ();
5796 main ()
5798 return opendir ();
5800 return 0;
5802 _ACEOF
5803 for ac_lib in '' x; do
5804 if test -z "$ac_lib"; then
5805 ac_res="none required"
5806 else
5807 ac_res=-l$ac_lib
5808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5810 rm -f conftest.$ac_objext conftest$ac_exeext
5811 if { (ac_try="$ac_link"
5812 case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_link") 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } && {
5824 test -z "$ac_c_werror_flag" ||
5825 test ! -s conftest.err
5826 } && test -s conftest$ac_exeext &&
5827 $as_test_x conftest$ac_exeext; then
5828 ac_cv_search_opendir=$ac_res
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5837 conftest$ac_exeext
5838 if test "${ac_cv_search_opendir+set}" = set; then
5839 break
5841 done
5842 if test "${ac_cv_search_opendir+set}" = set; then
5844 else
5845 ac_cv_search_opendir=no
5847 rm conftest.$ac_ext
5848 LIBS=$ac_func_search_save_LIBS
5850 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5851 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5852 ac_res=$ac_cv_search_opendir
5853 if test "$ac_res" != no; then
5854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5860 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5861 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5862 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865 cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h. */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 #include <sys/types.h>
5873 main ()
5875 return makedev(0, 0);
5877 return 0;
5879 _ACEOF
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (ac_try="$ac_link"
5882 case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_link") 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest$ac_exeext &&
5897 $as_test_x conftest$ac_exeext; then
5898 ac_cv_header_sys_types_h_makedev=yes
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5903 ac_cv_header_sys_types_h_makedev=no
5906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5907 conftest$ac_exeext conftest.$ac_ext
5910 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5911 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5913 if test $ac_cv_header_sys_types_h_makedev = no; then
5914 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5915 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5916 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5917 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5921 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5922 else
5923 # Is the header compilable?
5924 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5925 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 $ac_includes_default
5933 #include <sys/mkdev.h>
5934 _ACEOF
5935 rm -f conftest.$ac_objext
5936 if { (ac_try="$ac_compile"
5937 case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940 esac
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_compile") 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest.$ac_objext; then
5952 ac_header_compiler=yes
5953 else
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_header_compiler=no
5960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5962 echo "${ECHO_T}$ac_header_compiler" >&6; }
5964 # Is the header present?
5965 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5966 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <sys/mkdev.h>
5974 _ACEOF
5975 if { (ac_try="$ac_cpp conftest.$ac_ext"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null && {
5988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 }; then
5991 ac_header_preproc=yes
5992 else
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 ac_header_preproc=no
5999 rm -f conftest.err conftest.$ac_ext
6000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6001 echo "${ECHO_T}$ac_header_preproc" >&6; }
6003 # So? What about this header?
6004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6005 yes:no: )
6006 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6007 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6009 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6010 ac_header_preproc=yes
6012 no:yes:* )
6013 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6014 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6015 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6016 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6018 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6019 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6020 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6022 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6024 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6025 ( cat <<\_ASBOX
6026 ## ------------------------------------------------ ##
6027 ## Report this to http://www.python.org/python-bugs ##
6028 ## ------------------------------------------------ ##
6029 _ASBOX
6030 ) | sed "s/^/$as_me: WARNING: /" >&2
6032 esac
6033 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6034 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6035 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6040 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6041 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6044 if test $ac_cv_header_sys_mkdev_h = yes; then
6046 cat >>confdefs.h <<\_ACEOF
6047 #define MAJOR_IN_MKDEV 1
6048 _ACEOF
6054 if test $ac_cv_header_sys_mkdev_h = no; then
6055 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6056 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6057 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6058 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6062 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6063 else
6064 # Is the header compilable?
6065 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6066 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 $ac_includes_default
6074 #include <sys/sysmacros.h>
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (ac_try="$ac_compile"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 ac_header_compiler=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 ac_header_compiler=no
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6103 echo "${ECHO_T}$ac_header_compiler" >&6; }
6105 # Is the header present?
6106 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6107 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6108 cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h. */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 #include <sys/sysmacros.h>
6115 _ACEOF
6116 if { (ac_try="$ac_cpp conftest.$ac_ext"
6117 case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120 esac
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } >/dev/null && {
6129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6131 }; then
6132 ac_header_preproc=yes
6133 else
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 ac_header_preproc=no
6140 rm -f conftest.err conftest.$ac_ext
6141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6142 echo "${ECHO_T}$ac_header_preproc" >&6; }
6144 # So? What about this header?
6145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6146 yes:no: )
6147 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6148 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6150 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6151 ac_header_preproc=yes
6153 no:yes:* )
6154 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6155 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6156 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6157 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6158 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6159 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6161 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6163 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6164 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6165 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6166 ( cat <<\_ASBOX
6167 ## ------------------------------------------------ ##
6168 ## Report this to http://www.python.org/python-bugs ##
6169 ## ------------------------------------------------ ##
6170 _ASBOX
6171 ) | sed "s/^/$as_me: WARNING: /" >&2
6173 esac
6174 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6175 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6176 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6181 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6182 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6185 if test $ac_cv_header_sys_sysmacros_h = yes; then
6187 cat >>confdefs.h <<\_ACEOF
6188 #define MAJOR_IN_SYSMACROS 1
6189 _ACEOF
6198 # On Solaris, term.h requires curses.h
6200 for ac_header in term.h
6202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208 cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h. */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6215 #ifdef HAVE_CURSES_H
6216 #include <curses.h>
6217 #endif
6220 #include <$ac_header>
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (ac_try="$ac_compile"
6224 case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227 esac
6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_compile") 2>conftest.er1
6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } && {
6236 test -z "$ac_c_werror_flag" ||
6237 test ! -s conftest.err
6238 } && test -s conftest.$ac_objext; then
6239 eval "$as_ac_Header=yes"
6240 else
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6244 eval "$as_ac_Header=no"
6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 ac_res=`eval echo '${'$as_ac_Header'}'`
6250 { echo "$as_me:$LINENO: result: $ac_res" >&5
6251 echo "${ECHO_T}$ac_res" >&6; }
6252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6253 cat >>confdefs.h <<_ACEOF
6254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6255 _ACEOF
6259 done
6262 # On Linux, netlink.h requires asm/types.h
6264 for ac_header in linux/netlink.h
6266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272 cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h. */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6279 #ifdef HAVE_ASM_TYPES_H
6280 #include <asm/types.h>
6281 #endif
6282 #ifdef HAVE_SYS_SOCKET_H
6283 #include <sys/socket.h>
6284 #endif
6287 #include <$ac_header>
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (ac_try="$ac_compile"
6291 case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_compile") 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest.$ac_objext; then
6306 eval "$as_ac_Header=yes"
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 eval "$as_ac_Header=no"
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 ac_res=`eval echo '${'$as_ac_Header'}'`
6317 { echo "$as_me:$LINENO: result: $ac_res" >&5
6318 echo "${ECHO_T}$ac_res" >&6; }
6319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6320 cat >>confdefs.h <<_ACEOF
6321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6322 _ACEOF
6326 done
6329 # checks for typedefs
6330 was_it_defined=no
6331 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6332 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 #include <time.h>
6341 _ACEOF
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343 $EGREP "clock_t" >/dev/null 2>&1; then
6344 was_it_defined=yes
6345 else
6348 cat >>confdefs.h <<\_ACEOF
6349 #define clock_t long
6350 _ACEOF
6354 rm -f conftest*
6356 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6357 echo "${ECHO_T}$was_it_defined" >&6; }
6359 # Check whether using makedev requires defining _OSF_SOURCE
6360 { echo "$as_me:$LINENO: checking for makedev" >&5
6361 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <sys/types.h>
6370 main ()
6372 makedev(0, 0)
6374 return 0;
6376 _ACEOF
6377 rm -f conftest.$ac_objext conftest$ac_exeext
6378 if { (ac_try="$ac_link"
6379 case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_link") 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest$ac_exeext &&
6394 $as_test_x conftest$ac_exeext; then
6395 ac_cv_has_makedev=yes
6396 else
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ac_cv_has_makedev=no
6403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6404 conftest$ac_exeext conftest.$ac_ext
6405 if test "$ac_cv_has_makedev" = "no"; then
6406 # we didn't link, try if _OSF_SOURCE will allow us to link
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6414 #define _OSF_SOURCE 1
6415 #include <sys/types.h>
6418 main ()
6420 makedev(0, 0)
6422 return 0;
6424 _ACEOF
6425 rm -f conftest.$ac_objext conftest$ac_exeext
6426 if { (ac_try="$ac_link"
6427 case "(($ac_try" in
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6430 esac
6431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_link") 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 } && test -s conftest$ac_exeext &&
6442 $as_test_x conftest$ac_exeext; then
6443 ac_cv_has_makedev=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_cv_has_makedev=no
6451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6452 conftest$ac_exeext conftest.$ac_ext
6453 if test "$ac_cv_has_makedev" = "yes"; then
6455 cat >>confdefs.h <<\_ACEOF
6456 #define _OSF_SOURCE 1
6457 _ACEOF
6461 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6462 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6463 if test "$ac_cv_has_makedev" = "yes"; then
6465 cat >>confdefs.h <<\_ACEOF
6466 #define HAVE_MAKEDEV 1
6467 _ACEOF
6471 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6472 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6473 # defined, but the compiler does not support pragma redefine_extname,
6474 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6475 # structures (such as rlimit64) without declaring them. As a
6476 # work-around, disable LFS on such configurations
6478 use_lfs=yes
6479 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6480 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6488 #define _LARGEFILE_SOURCE 1
6489 #define _FILE_OFFSET_BITS 64
6490 #include <sys/resource.h>
6493 main ()
6495 struct rlimit foo;
6497 return 0;
6499 _ACEOF
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6502 case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest.$ac_objext; then
6517 sol_lfs_bug=no
6518 else
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 sol_lfs_bug=yes
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6527 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6528 if test "$sol_lfs_bug" = "yes"; then
6529 use_lfs=no
6532 if test "$use_lfs" = "yes"; then
6533 # Two defines needed to enable largefile support on various platforms
6534 # These may affect some typedefs
6536 cat >>confdefs.h <<\_ACEOF
6537 #define _LARGEFILE_SOURCE 1
6538 _ACEOF
6541 cat >>confdefs.h <<\_ACEOF
6542 #define _FILE_OFFSET_BITS 64
6543 _ACEOF
6547 # Add some code to confdefs.h so that the test for off_t works on SCO
6548 cat >> confdefs.h <<\EOF
6549 #if defined(SCO_DS)
6550 #undef _OFF_T
6551 #endif
6554 # Type availability checks
6555 { echo "$as_me:$LINENO: checking for mode_t" >&5
6556 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6557 if test "${ac_cv_type_mode_t+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 $ac_includes_default
6567 typedef mode_t ac__type_new_;
6569 main ()
6571 if ((ac__type_new_ *) 0)
6572 return 0;
6573 if (sizeof (ac__type_new_))
6574 return 0;
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (ac_try="$ac_compile"
6581 case "(($ac_try" in
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6584 esac
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } && {
6593 test -z "$ac_c_werror_flag" ||
6594 test ! -s conftest.err
6595 } && test -s conftest.$ac_objext; then
6596 ac_cv_type_mode_t=yes
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 ac_cv_type_mode_t=no
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6607 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6608 if test $ac_cv_type_mode_t = yes; then
6610 else
6612 cat >>confdefs.h <<_ACEOF
6613 #define mode_t int
6614 _ACEOF
6618 { echo "$as_me:$LINENO: checking for off_t" >&5
6619 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6620 if test "${ac_cv_type_off_t+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623 cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h. */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 $ac_includes_default
6630 typedef off_t ac__type_new_;
6632 main ()
6634 if ((ac__type_new_ *) 0)
6635 return 0;
6636 if (sizeof (ac__type_new_))
6637 return 0;
6639 return 0;
6641 _ACEOF
6642 rm -f conftest.$ac_objext
6643 if { (ac_try="$ac_compile"
6644 case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6647 esac
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_compile") 2>conftest.er1
6650 ac_status=$?
6651 grep -v '^ *+' conftest.er1 >conftest.err
6652 rm -f conftest.er1
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && {
6656 test -z "$ac_c_werror_flag" ||
6657 test ! -s conftest.err
6658 } && test -s conftest.$ac_objext; then
6659 ac_cv_type_off_t=yes
6660 else
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 ac_cv_type_off_t=no
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6670 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6671 if test $ac_cv_type_off_t = yes; then
6673 else
6675 cat >>confdefs.h <<_ACEOF
6676 #define off_t long int
6677 _ACEOF
6681 { echo "$as_me:$LINENO: checking for pid_t" >&5
6682 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6683 if test "${ac_cv_type_pid_t+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 $ac_includes_default
6693 typedef pid_t ac__type_new_;
6695 main ()
6697 if ((ac__type_new_ *) 0)
6698 return 0;
6699 if (sizeof (ac__type_new_))
6700 return 0;
6702 return 0;
6704 _ACEOF
6705 rm -f conftest.$ac_objext
6706 if { (ac_try="$ac_compile"
6707 case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710 esac
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_compile") 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest.$ac_objext; then
6722 ac_cv_type_pid_t=yes
6723 else
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6727 ac_cv_type_pid_t=no
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6733 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6734 if test $ac_cv_type_pid_t = yes; then
6736 else
6738 cat >>confdefs.h <<_ACEOF
6739 #define pid_t int
6740 _ACEOF
6744 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6745 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6746 if test "${ac_cv_type_signal+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 #include <sys/types.h>
6756 #include <signal.h>
6759 main ()
6761 return *(signal (0, 0)) (0) == 1;
6763 return 0;
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6768 case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_compile") 2>conftest.er1
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && {
6780 test -z "$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6782 } && test -s conftest.$ac_objext; then
6783 ac_cv_type_signal=int
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6788 ac_cv_type_signal=void
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6794 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6796 cat >>confdefs.h <<_ACEOF
6797 #define RETSIGTYPE $ac_cv_type_signal
6798 _ACEOF
6801 { echo "$as_me:$LINENO: checking for size_t" >&5
6802 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6803 if test "${ac_cv_type_size_t+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 $ac_includes_default
6813 typedef size_t ac__type_new_;
6815 main ()
6817 if ((ac__type_new_ *) 0)
6818 return 0;
6819 if (sizeof (ac__type_new_))
6820 return 0;
6822 return 0;
6824 _ACEOF
6825 rm -f conftest.$ac_objext
6826 if { (ac_try="$ac_compile"
6827 case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830 esac
6831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6832 (eval "$ac_compile") 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest.$ac_objext; then
6842 ac_cv_type_size_t=yes
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 ac_cv_type_size_t=no
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6853 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6854 if test $ac_cv_type_size_t = yes; then
6856 else
6858 cat >>confdefs.h <<_ACEOF
6859 #define size_t unsigned int
6860 _ACEOF
6864 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6865 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6866 if test "${ac_cv_type_uid_t+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 #include <sys/types.h>
6877 _ACEOF
6878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6879 $EGREP "uid_t" >/dev/null 2>&1; then
6880 ac_cv_type_uid_t=yes
6881 else
6882 ac_cv_type_uid_t=no
6884 rm -f conftest*
6887 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6888 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6889 if test $ac_cv_type_uid_t = no; then
6891 cat >>confdefs.h <<\_ACEOF
6892 #define uid_t int
6893 _ACEOF
6896 cat >>confdefs.h <<\_ACEOF
6897 #define gid_t int
6898 _ACEOF
6902 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6903 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6904 if test "${ac_cv_type_ssize_t+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 $ac_includes_default
6914 typedef ssize_t ac__type_new_;
6916 main ()
6918 if ((ac__type_new_ *) 0)
6919 return 0;
6920 if (sizeof (ac__type_new_))
6921 return 0;
6923 return 0;
6925 _ACEOF
6926 rm -f conftest.$ac_objext
6927 if { (ac_try="$ac_compile"
6928 case "(($ac_try" in
6929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930 *) ac_try_echo=$ac_try;;
6931 esac
6932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6933 (eval "$ac_compile") 2>conftest.er1
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && {
6940 test -z "$ac_c_werror_flag" ||
6941 test ! -s conftest.err
6942 } && test -s conftest.$ac_objext; then
6943 ac_cv_type_ssize_t=yes
6944 else
6945 echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6948 ac_cv_type_ssize_t=no
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6953 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6954 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6955 if test $ac_cv_type_ssize_t = yes; then
6957 cat >>confdefs.h <<\_ACEOF
6958 #define HAVE_SSIZE_T 1
6959 _ACEOF
6964 # Sizes of various common basic types
6965 # ANSI C requires sizeof(char) == 1, so no need to check it
6966 { echo "$as_me:$LINENO: checking for int" >&5
6967 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6968 if test "${ac_cv_type_int+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 $ac_includes_default
6978 typedef int ac__type_new_;
6980 main ()
6982 if ((ac__type_new_ *) 0)
6983 return 0;
6984 if (sizeof (ac__type_new_))
6985 return 0;
6987 return 0;
6989 _ACEOF
6990 rm -f conftest.$ac_objext
6991 if { (ac_try="$ac_compile"
6992 case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_compile") 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && {
7004 test -z "$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 } && test -s conftest.$ac_objext; then
7007 ac_cv_type_int=yes
7008 else
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 ac_cv_type_int=no
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7018 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7020 # The cast to long int works around a bug in the HP C Compiler
7021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7023 # This bug is HP SR number 8606223364.
7024 { echo "$as_me:$LINENO: checking size of int" >&5
7025 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7026 if test "${ac_cv_sizeof_int+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 if test "$cross_compiling" = yes; then
7030 # Depending upon the size, compute the lo and hi bounds.
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 $ac_includes_default
7038 typedef int ac__type_sizeof_;
7040 main ()
7042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7043 test_array [0] = 0
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7051 case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.$ac_objext; then
7066 ac_lo=0 ac_mid=0
7067 while :; do
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 typedef int ac__type_sizeof_;
7077 main ()
7079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7080 test_array [0] = 0
7083 return 0;
7085 _ACEOF
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7088 case "(($ac_try" in
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_compile") 2>conftest.er1
7094 ac_status=$?
7095 grep -v '^ *+' conftest.er1 >conftest.err
7096 rm -f conftest.er1
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest.$ac_objext; then
7103 ac_hi=$ac_mid; break
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_lo=`expr $ac_mid + 1`
7109 if test $ac_lo -le $ac_mid; then
7110 ac_lo= ac_hi=
7111 break
7113 ac_mid=`expr 2 '*' $ac_mid + 1`
7116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117 done
7118 else
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h. */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 $ac_includes_default
7129 typedef int ac__type_sizeof_;
7131 main ()
7133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7134 test_array [0] = 0
7137 return 0;
7139 _ACEOF
7140 rm -f conftest.$ac_objext
7141 if { (ac_try="$ac_compile"
7142 case "(($ac_try" in
7143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144 *) ac_try_echo=$ac_try;;
7145 esac
7146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7147 (eval "$ac_compile") 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } && {
7154 test -z "$ac_c_werror_flag" ||
7155 test ! -s conftest.err
7156 } && test -s conftest.$ac_objext; then
7157 ac_hi=-1 ac_mid=-1
7158 while :; do
7159 cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h. */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 $ac_includes_default
7166 typedef int ac__type_sizeof_;
7168 main ()
7170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7171 test_array [0] = 0
7174 return 0;
7176 _ACEOF
7177 rm -f conftest.$ac_objext
7178 if { (ac_try="$ac_compile"
7179 case "(($ac_try" in
7180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7182 esac
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_compile") 2>conftest.er1
7185 ac_status=$?
7186 grep -v '^ *+' conftest.er1 >conftest.err
7187 rm -f conftest.er1
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } && {
7191 test -z "$ac_c_werror_flag" ||
7192 test ! -s conftest.err
7193 } && test -s conftest.$ac_objext; then
7194 ac_lo=$ac_mid; break
7195 else
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 ac_hi=`expr '(' $ac_mid ')' - 1`
7200 if test $ac_mid -le $ac_hi; then
7201 ac_lo= ac_hi=
7202 break
7204 ac_mid=`expr 2 '*' $ac_mid`
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 done
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_lo= ac_hi=
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 # Binary search between lo and hi bounds.
7221 while test "x$ac_lo" != "x$ac_hi"; do
7222 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h. */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 $ac_includes_default
7230 typedef int ac__type_sizeof_;
7232 main ()
7234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7235 test_array [0] = 0
7238 return 0;
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (ac_try="$ac_compile"
7243 case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246 esac
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_compile") 2>conftest.er1
7249 ac_status=$?
7250 grep -v '^ *+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && {
7255 test -z "$ac_c_werror_flag" ||
7256 test ! -s conftest.err
7257 } && test -s conftest.$ac_objext; then
7258 ac_hi=$ac_mid
7259 else
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7263 ac_lo=`expr '(' $ac_mid ')' + 1`
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 done
7268 case $ac_lo in
7269 ?*) ac_cv_sizeof_int=$ac_lo;;
7270 '') if test "$ac_cv_type_int" = yes; then
7271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7272 See \`config.log' for more details." >&5
7273 echo "$as_me: error: cannot compute sizeof (int)
7274 See \`config.log' for more details." >&2;}
7275 { (exit 77); exit 77; }; }
7276 else
7277 ac_cv_sizeof_int=0
7278 fi ;;
7279 esac
7280 else
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7288 typedef int ac__type_sizeof_;
7289 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7290 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7291 #include <stdio.h>
7292 #include <stdlib.h>
7294 main ()
7297 FILE *f = fopen ("conftest.val", "w");
7298 if (! f)
7299 return 1;
7300 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7302 long int i = longval ();
7303 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7304 return 1;
7305 fprintf (f, "%ld\n", i);
7307 else
7309 unsigned long int i = ulongval ();
7310 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7311 return 1;
7312 fprintf (f, "%lu\n", i);
7314 return ferror (f) || fclose (f) != 0;
7317 return 0;
7319 _ACEOF
7320 rm -f conftest$ac_exeext
7321 if { (ac_try="$ac_link"
7322 case "(($ac_try" in
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_link") 2>&5
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7331 { (case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334 esac
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_try") 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_cv_sizeof_int=`cat conftest.val`
7341 else
7342 echo "$as_me: program exited with status $ac_status" >&5
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 ( exit $ac_status )
7347 if test "$ac_cv_type_int" = yes; then
7348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7349 See \`config.log' for more details." >&5
7350 echo "$as_me: error: cannot compute sizeof (int)
7351 See \`config.log' for more details." >&2;}
7352 { (exit 77); exit 77; }; }
7353 else
7354 ac_cv_sizeof_int=0
7357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7359 rm -f conftest.val
7361 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7362 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7366 cat >>confdefs.h <<_ACEOF
7367 #define SIZEOF_INT $ac_cv_sizeof_int
7368 _ACEOF
7371 { echo "$as_me:$LINENO: checking for long" >&5
7372 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7373 if test "${ac_cv_type_long+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h. */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 $ac_includes_default
7383 typedef long ac__type_new_;
7385 main ()
7387 if ((ac__type_new_ *) 0)
7388 return 0;
7389 if (sizeof (ac__type_new_))
7390 return 0;
7392 return 0;
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7397 case "(($ac_try" in
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7400 esac
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7412 ac_cv_type_long=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_cv_type_long=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7423 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7425 # The cast to long int works around a bug in the HP C Compiler
7426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7428 # This bug is HP SR number 8606223364.
7429 { echo "$as_me:$LINENO: checking size of long" >&5
7430 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7431 if test "${ac_cv_sizeof_long+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434 if test "$cross_compiling" = yes; then
7435 # Depending upon the size, compute the lo and hi bounds.
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 $ac_includes_default
7443 typedef long ac__type_sizeof_;
7445 main ()
7447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7448 test_array [0] = 0
7451 return 0;
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (ac_try="$ac_compile"
7456 case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459 esac
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7471 ac_lo=0 ac_mid=0
7472 while :; do
7473 cat >conftest.$ac_ext <<_ACEOF
7474 /* confdefs.h. */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7479 $ac_includes_default
7480 typedef long ac__type_sizeof_;
7482 main ()
7484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7485 test_array [0] = 0
7488 return 0;
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7493 case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
7499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
7508 ac_hi=$ac_mid; break
7509 else
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_lo=`expr $ac_mid + 1`
7514 if test $ac_lo -le $ac_mid; then
7515 ac_lo= ac_hi=
7516 break
7518 ac_mid=`expr 2 '*' $ac_mid + 1`
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 done
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h. */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7534 typedef long ac__type_sizeof_;
7536 main ()
7538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7539 test_array [0] = 0
7542 return 0;
7544 _ACEOF
7545 rm -f conftest.$ac_objext
7546 if { (ac_try="$ac_compile"
7547 case "(($ac_try" in
7548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7549 *) ac_try_echo=$ac_try;;
7550 esac
7551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7552 (eval "$ac_compile") 2>conftest.er1
7553 ac_status=$?
7554 grep -v '^ *+' conftest.er1 >conftest.err
7555 rm -f conftest.er1
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } && {
7559 test -z "$ac_c_werror_flag" ||
7560 test ! -s conftest.err
7561 } && test -s conftest.$ac_objext; then
7562 ac_hi=-1 ac_mid=-1
7563 while :; do
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 typedef long ac__type_sizeof_;
7573 main ()
7575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7576 test_array [0] = 0
7579 return 0;
7581 _ACEOF
7582 rm -f conftest.$ac_objext
7583 if { (ac_try="$ac_compile"
7584 case "(($ac_try" in
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7587 esac
7588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7589 (eval "$ac_compile") 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest.$ac_objext; then
7599 ac_lo=$ac_mid; break
7600 else
7601 echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7604 ac_hi=`expr '(' $ac_mid ')' - 1`
7605 if test $ac_mid -le $ac_hi; then
7606 ac_lo= ac_hi=
7607 break
7609 ac_mid=`expr 2 '*' $ac_mid`
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 done
7614 else
7615 echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7618 ac_lo= ac_hi=
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 # Binary search between lo and hi bounds.
7626 while test "x$ac_lo" != "x$ac_hi"; do
7627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h. */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 $ac_includes_default
7635 typedef long ac__type_sizeof_;
7637 main ()
7639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7640 test_array [0] = 0
7643 return 0;
7645 _ACEOF
7646 rm -f conftest.$ac_objext
7647 if { (ac_try="$ac_compile"
7648 case "(($ac_try" in
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7651 esac
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_compile") 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest.$ac_objext; then
7663 ac_hi=$ac_mid
7664 else
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 ac_lo=`expr '(' $ac_mid ')' + 1`
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 done
7673 case $ac_lo in
7674 ?*) ac_cv_sizeof_long=$ac_lo;;
7675 '') if test "$ac_cv_type_long" = yes; then
7676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7677 See \`config.log' for more details." >&5
7678 echo "$as_me: error: cannot compute sizeof (long)
7679 See \`config.log' for more details." >&2;}
7680 { (exit 77); exit 77; }; }
7681 else
7682 ac_cv_sizeof_long=0
7683 fi ;;
7684 esac
7685 else
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 $ac_includes_default
7693 typedef long ac__type_sizeof_;
7694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7696 #include <stdio.h>
7697 #include <stdlib.h>
7699 main ()
7702 FILE *f = fopen ("conftest.val", "w");
7703 if (! f)
7704 return 1;
7705 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7707 long int i = longval ();
7708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7709 return 1;
7710 fprintf (f, "%ld\n", i);
7712 else
7714 unsigned long int i = ulongval ();
7715 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7716 return 1;
7717 fprintf (f, "%lu\n", i);
7719 return ferror (f) || fclose (f) != 0;
7722 return 0;
7724 _ACEOF
7725 rm -f conftest$ac_exeext
7726 if { (ac_try="$ac_link"
7727 case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7730 esac
7731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732 (eval "$ac_link") 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7736 { (case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7739 esac
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_try") 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_cv_sizeof_long=`cat conftest.val`
7746 else
7747 echo "$as_me: program exited with status $ac_status" >&5
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ( exit $ac_status )
7752 if test "$ac_cv_type_long" = yes; then
7753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7754 See \`config.log' for more details." >&5
7755 echo "$as_me: error: cannot compute sizeof (long)
7756 See \`config.log' for more details." >&2;}
7757 { (exit 77); exit 77; }; }
7758 else
7759 ac_cv_sizeof_long=0
7762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7764 rm -f conftest.val
7766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7767 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7771 cat >>confdefs.h <<_ACEOF
7772 #define SIZEOF_LONG $ac_cv_sizeof_long
7773 _ACEOF
7776 { echo "$as_me:$LINENO: checking for void *" >&5
7777 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7778 if test "${ac_cv_type_void_p+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781 cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h. */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787 $ac_includes_default
7788 typedef void * ac__type_new_;
7790 main ()
7792 if ((ac__type_new_ *) 0)
7793 return 0;
7794 if (sizeof (ac__type_new_))
7795 return 0;
7797 return 0;
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7802 case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805 esac
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_compile") 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.$ac_objext; then
7817 ac_cv_type_void_p=yes
7818 else
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7822 ac_cv_type_void_p=no
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7828 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7830 # The cast to long int works around a bug in the HP C Compiler
7831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7833 # This bug is HP SR number 8606223364.
7834 { echo "$as_me:$LINENO: checking size of void *" >&5
7835 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7836 if test "${ac_cv_sizeof_void_p+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 if test "$cross_compiling" = yes; then
7840 # Depending upon the size, compute the lo and hi bounds.
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 $ac_includes_default
7848 typedef void * ac__type_sizeof_;
7850 main ()
7852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7853 test_array [0] = 0
7856 return 0;
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.$ac_objext; then
7876 ac_lo=0 ac_mid=0
7877 while :; do
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h. */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 $ac_includes_default
7885 typedef void * ac__type_sizeof_;
7887 main ()
7889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7890 test_array [0] = 0
7893 return 0;
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7898 case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901 esac
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 ac_hi=$ac_mid; break
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 ac_lo=`expr $ac_mid + 1`
7919 if test $ac_lo -le $ac_mid; then
7920 ac_lo= ac_hi=
7921 break
7923 ac_mid=`expr 2 '*' $ac_mid + 1`
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 done
7928 else
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 $ac_includes_default
7939 typedef void * ac__type_sizeof_;
7941 main ()
7943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7944 test_array [0] = 0
7947 return 0;
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (ac_try="$ac_compile"
7952 case "(($ac_try" in
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_compile") 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest.$ac_objext; then
7967 ac_hi=-1 ac_mid=-1
7968 while :; do
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7976 typedef void * ac__type_sizeof_;
7978 main ()
7980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7981 test_array [0] = 0
7984 return 0;
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7989 case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8004 ac_lo=$ac_mid; break
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_hi=`expr '(' $ac_mid ')' - 1`
8010 if test $ac_mid -le $ac_hi; then
8011 ac_lo= ac_hi=
8012 break
8014 ac_mid=`expr 2 '*' $ac_mid`
8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018 done
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_lo= ac_hi=
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 # Binary search between lo and hi bounds.
8031 while test "x$ac_lo" != "x$ac_hi"; do
8032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8040 typedef void * ac__type_sizeof_;
8042 main ()
8044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8045 test_array [0] = 0
8048 return 0;
8050 _ACEOF
8051 rm -f conftest.$ac_objext
8052 if { (ac_try="$ac_compile"
8053 case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_compile") 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } && {
8065 test -z "$ac_c_werror_flag" ||
8066 test ! -s conftest.err
8067 } && test -s conftest.$ac_objext; then
8068 ac_hi=$ac_mid
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 ac_lo=`expr '(' $ac_mid ')' + 1`
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8077 done
8078 case $ac_lo in
8079 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8080 '') if test "$ac_cv_type_void_p" = yes; then
8081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8082 See \`config.log' for more details." >&5
8083 echo "$as_me: error: cannot compute sizeof (void *)
8084 See \`config.log' for more details." >&2;}
8085 { (exit 77); exit 77; }; }
8086 else
8087 ac_cv_sizeof_void_p=0
8088 fi ;;
8089 esac
8090 else
8091 cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h. */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8097 $ac_includes_default
8098 typedef void * ac__type_sizeof_;
8099 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8100 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8101 #include <stdio.h>
8102 #include <stdlib.h>
8104 main ()
8107 FILE *f = fopen ("conftest.val", "w");
8108 if (! f)
8109 return 1;
8110 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8112 long int i = longval ();
8113 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8114 return 1;
8115 fprintf (f, "%ld\n", i);
8117 else
8119 unsigned long int i = ulongval ();
8120 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8121 return 1;
8122 fprintf (f, "%lu\n", i);
8124 return ferror (f) || fclose (f) != 0;
8127 return 0;
8129 _ACEOF
8130 rm -f conftest$ac_exeext
8131 if { (ac_try="$ac_link"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_link") 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8141 { (case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8144 esac
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_try") 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_sizeof_void_p=`cat conftest.val`
8151 else
8152 echo "$as_me: program exited with status $ac_status" >&5
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ( exit $ac_status )
8157 if test "$ac_cv_type_void_p" = yes; then
8158 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8159 See \`config.log' for more details." >&5
8160 echo "$as_me: error: cannot compute sizeof (void *)
8161 See \`config.log' for more details." >&2;}
8162 { (exit 77); exit 77; }; }
8163 else
8164 ac_cv_sizeof_void_p=0
8167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8169 rm -f conftest.val
8171 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8172 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8176 cat >>confdefs.h <<_ACEOF
8177 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8178 _ACEOF
8181 { echo "$as_me:$LINENO: checking for short" >&5
8182 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8183 if test "${ac_cv_type_short+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 $ac_includes_default
8193 typedef short ac__type_new_;
8195 main ()
8197 if ((ac__type_new_ *) 0)
8198 return 0;
8199 if (sizeof (ac__type_new_))
8200 return 0;
8202 return 0;
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.$ac_objext; then
8222 ac_cv_type_short=yes
8223 else
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8227 ac_cv_type_short=no
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8233 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8235 # The cast to long int works around a bug in the HP C Compiler
8236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8238 # This bug is HP SR number 8606223364.
8239 { echo "$as_me:$LINENO: checking size of short" >&5
8240 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8241 if test "${ac_cv_sizeof_short+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244 if test "$cross_compiling" = yes; then
8245 # Depending upon the size, compute the lo and hi bounds.
8246 cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h. */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 $ac_includes_default
8253 typedef short ac__type_sizeof_;
8255 main ()
8257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8258 test_array [0] = 0
8261 return 0;
8263 _ACEOF
8264 rm -f conftest.$ac_objext
8265 if { (ac_try="$ac_compile"
8266 case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8281 ac_lo=0 ac_mid=0
8282 while :; do
8283 cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h. */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 typedef short ac__type_sizeof_;
8292 main ()
8294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8295 test_array [0] = 0
8298 return 0;
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8303 case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.$ac_objext; then
8318 ac_hi=$ac_mid; break
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 ac_lo=`expr $ac_mid + 1`
8324 if test $ac_lo -le $ac_mid; then
8325 ac_lo= ac_hi=
8326 break
8328 ac_mid=`expr 2 '*' $ac_mid + 1`
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 done
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8337 cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h. */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 $ac_includes_default
8344 typedef short ac__type_sizeof_;
8346 main ()
8348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8349 test_array [0] = 0
8352 return 0;
8354 _ACEOF
8355 rm -f conftest.$ac_objext
8356 if { (ac_try="$ac_compile"
8357 case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8360 esac
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_compile") 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
8371 } && test -s conftest.$ac_objext; then
8372 ac_hi=-1 ac_mid=-1
8373 while :; do
8374 cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h. */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 typedef short ac__type_sizeof_;
8383 main ()
8385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8386 test_array [0] = 0
8389 return 0;
8391 _ACEOF
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8394 case "(($ac_try" in
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_compile") 2>conftest.er1
8400 ac_status=$?
8401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && {
8406 test -z "$ac_c_werror_flag" ||
8407 test ! -s conftest.err
8408 } && test -s conftest.$ac_objext; then
8409 ac_lo=$ac_mid; break
8410 else
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 ac_hi=`expr '(' $ac_mid ')' - 1`
8415 if test $ac_mid -le $ac_hi; then
8416 ac_lo= ac_hi=
8417 break
8419 ac_mid=`expr 2 '*' $ac_mid`
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 done
8424 else
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_lo= ac_hi=
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 # Binary search between lo and hi bounds.
8436 while test "x$ac_lo" != "x$ac_hi"; do
8437 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h. */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 typedef short ac__type_sizeof_;
8447 main ()
8449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8450 test_array [0] = 0
8453 return 0;
8455 _ACEOF
8456 rm -f conftest.$ac_objext
8457 if { (ac_try="$ac_compile"
8458 case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_compile") 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
8472 } && test -s conftest.$ac_objext; then
8473 ac_hi=$ac_mid
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_lo=`expr '(' $ac_mid ')' + 1`
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 done
8483 case $ac_lo in
8484 ?*) ac_cv_sizeof_short=$ac_lo;;
8485 '') if test "$ac_cv_type_short" = yes; then
8486 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8487 See \`config.log' for more details." >&5
8488 echo "$as_me: error: cannot compute sizeof (short)
8489 See \`config.log' for more details." >&2;}
8490 { (exit 77); exit 77; }; }
8491 else
8492 ac_cv_sizeof_short=0
8493 fi ;;
8494 esac
8495 else
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 $ac_includes_default
8503 typedef short ac__type_sizeof_;
8504 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8505 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8506 #include <stdio.h>
8507 #include <stdlib.h>
8509 main ()
8512 FILE *f = fopen ("conftest.val", "w");
8513 if (! f)
8514 return 1;
8515 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8517 long int i = longval ();
8518 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8519 return 1;
8520 fprintf (f, "%ld\n", i);
8522 else
8524 unsigned long int i = ulongval ();
8525 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8526 return 1;
8527 fprintf (f, "%lu\n", i);
8529 return ferror (f) || fclose (f) != 0;
8532 return 0;
8534 _ACEOF
8535 rm -f conftest$ac_exeext
8536 if { (ac_try="$ac_link"
8537 case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_link") 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8546 { (case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8549 esac
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551 (eval "$ac_try") 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_cv_sizeof_short=`cat conftest.val`
8556 else
8557 echo "$as_me: program exited with status $ac_status" >&5
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ( exit $ac_status )
8562 if test "$ac_cv_type_short" = yes; then
8563 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8564 See \`config.log' for more details." >&5
8565 echo "$as_me: error: cannot compute sizeof (short)
8566 See \`config.log' for more details." >&2;}
8567 { (exit 77); exit 77; }; }
8568 else
8569 ac_cv_sizeof_short=0
8572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8574 rm -f conftest.val
8576 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8577 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8581 cat >>confdefs.h <<_ACEOF
8582 #define SIZEOF_SHORT $ac_cv_sizeof_short
8583 _ACEOF
8586 { echo "$as_me:$LINENO: checking for float" >&5
8587 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8588 if test "${ac_cv_type_float+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8598 typedef float ac__type_new_;
8600 main ()
8602 if ((ac__type_new_ *) 0)
8603 return 0;
8604 if (sizeof (ac__type_new_))
8605 return 0;
8607 return 0;
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_compile") 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_c_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest.$ac_objext; then
8627 ac_cv_type_float=yes
8628 else
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cv_type_float=no
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8638 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8640 # The cast to long int works around a bug in the HP C Compiler
8641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8643 # This bug is HP SR number 8606223364.
8644 { echo "$as_me:$LINENO: checking size of float" >&5
8645 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8646 if test "${ac_cv_sizeof_float+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 if test "$cross_compiling" = yes; then
8650 # Depending upon the size, compute the lo and hi bounds.
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 typedef float ac__type_sizeof_;
8660 main ()
8662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8663 test_array [0] = 0
8666 return 0;
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (ac_try="$ac_compile"
8671 case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674 esac
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8686 ac_lo=0 ac_mid=0
8687 while :; do
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 $ac_includes_default
8695 typedef float ac__type_sizeof_;
8697 main ()
8699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8700 test_array [0] = 0
8703 return 0;
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8708 case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.$ac_objext; then
8723 ac_hi=$ac_mid; break
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_lo=`expr $ac_mid + 1`
8729 if test $ac_lo -le $ac_mid; then
8730 ac_lo= ac_hi=
8731 break
8733 ac_mid=`expr 2 '*' $ac_mid + 1`
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 done
8738 else
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h. */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 $ac_includes_default
8749 typedef float ac__type_sizeof_;
8751 main ()
8753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8754 test_array [0] = 0
8757 return 0;
8759 _ACEOF
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8762 case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765 esac
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_compile") 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && {
8774 test -z "$ac_c_werror_flag" ||
8775 test ! -s conftest.err
8776 } && test -s conftest.$ac_objext; then
8777 ac_hi=-1 ac_mid=-1
8778 while :; do
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h. */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8786 typedef float ac__type_sizeof_;
8788 main ()
8790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8791 test_array [0] = 0
8794 return 0;
8796 _ACEOF
8797 rm -f conftest.$ac_objext
8798 if { (ac_try="$ac_compile"
8799 case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802 esac
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_compile") 2>conftest.er1
8805 ac_status=$?
8806 grep -v '^ *+' conftest.er1 >conftest.err
8807 rm -f conftest.er1
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } && {
8811 test -z "$ac_c_werror_flag" ||
8812 test ! -s conftest.err
8813 } && test -s conftest.$ac_objext; then
8814 ac_lo=$ac_mid; break
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_hi=`expr '(' $ac_mid ')' - 1`
8820 if test $ac_mid -le $ac_hi; then
8821 ac_lo= ac_hi=
8822 break
8824 ac_mid=`expr 2 '*' $ac_mid`
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 done
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 ac_lo= ac_hi=
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 # Binary search between lo and hi bounds.
8841 while test "x$ac_lo" != "x$ac_hi"; do
8842 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
8850 typedef float ac__type_sizeof_;
8852 main ()
8854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8855 test_array [0] = 0
8858 return 0;
8860 _ACEOF
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8863 case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866 esac
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest.$ac_objext; then
8878 ac_hi=$ac_mid
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_lo=`expr '(' $ac_mid ')' + 1`
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 done
8888 case $ac_lo in
8889 ?*) ac_cv_sizeof_float=$ac_lo;;
8890 '') if test "$ac_cv_type_float" = yes; then
8891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8892 See \`config.log' for more details." >&5
8893 echo "$as_me: error: cannot compute sizeof (float)
8894 See \`config.log' for more details." >&2;}
8895 { (exit 77); exit 77; }; }
8896 else
8897 ac_cv_sizeof_float=0
8898 fi ;;
8899 esac
8900 else
8901 cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h. */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8907 $ac_includes_default
8908 typedef float ac__type_sizeof_;
8909 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8910 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8911 #include <stdio.h>
8912 #include <stdlib.h>
8914 main ()
8917 FILE *f = fopen ("conftest.val", "w");
8918 if (! f)
8919 return 1;
8920 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8922 long int i = longval ();
8923 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8924 return 1;
8925 fprintf (f, "%ld\n", i);
8927 else
8929 unsigned long int i = ulongval ();
8930 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8931 return 1;
8932 fprintf (f, "%lu\n", i);
8934 return ferror (f) || fclose (f) != 0;
8937 return 0;
8939 _ACEOF
8940 rm -f conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8942 case "(($ac_try" in
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8945 esac
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_link") 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_sizeof_float=`cat conftest.val`
8961 else
8962 echo "$as_me: program exited with status $ac_status" >&5
8963 echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8966 ( exit $ac_status )
8967 if test "$ac_cv_type_float" = yes; then
8968 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8969 See \`config.log' for more details." >&5
8970 echo "$as_me: error: cannot compute sizeof (float)
8971 See \`config.log' for more details." >&2;}
8972 { (exit 77); exit 77; }; }
8973 else
8974 ac_cv_sizeof_float=0
8977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8979 rm -f conftest.val
8981 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8982 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8986 cat >>confdefs.h <<_ACEOF
8987 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8988 _ACEOF
8991 { echo "$as_me:$LINENO: checking for double" >&5
8992 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8993 if test "${ac_cv_type_double+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h. */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 $ac_includes_default
9003 typedef double ac__type_new_;
9005 main ()
9007 if ((ac__type_new_ *) 0)
9008 return 0;
9009 if (sizeof (ac__type_new_))
9010 return 0;
9012 return 0;
9014 _ACEOF
9015 rm -f conftest.$ac_objext
9016 if { (ac_try="$ac_compile"
9017 case "(($ac_try" in
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9020 esac
9021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022 (eval "$ac_compile") 2>conftest.er1
9023 ac_status=$?
9024 grep -v '^ *+' conftest.er1 >conftest.err
9025 rm -f conftest.er1
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } && {
9029 test -z "$ac_c_werror_flag" ||
9030 test ! -s conftest.err
9031 } && test -s conftest.$ac_objext; then
9032 ac_cv_type_double=yes
9033 else
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9037 ac_cv_type_double=no
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9043 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9045 # The cast to long int works around a bug in the HP C Compiler
9046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9048 # This bug is HP SR number 8606223364.
9049 { echo "$as_me:$LINENO: checking size of double" >&5
9050 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9051 if test "${ac_cv_sizeof_double+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054 if test "$cross_compiling" = yes; then
9055 # Depending upon the size, compute the lo and hi bounds.
9056 cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h. */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9062 $ac_includes_default
9063 typedef double ac__type_sizeof_;
9065 main ()
9067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9068 test_array [0] = 0
9071 return 0;
9073 _ACEOF
9074 rm -f conftest.$ac_objext
9075 if { (ac_try="$ac_compile"
9076 case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9079 esac
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
9091 ac_lo=0 ac_mid=0
9092 while :; do
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 typedef double ac__type_sizeof_;
9102 main ()
9104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9105 test_array [0] = 0
9108 return 0;
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (ac_try="$ac_compile"
9113 case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116 esac
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_compile") 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest.$ac_objext; then
9128 ac_hi=$ac_mid; break
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_lo=`expr $ac_mid + 1`
9134 if test $ac_lo -le $ac_mid; then
9135 ac_lo= ac_hi=
9136 break
9138 ac_mid=`expr 2 '*' $ac_mid + 1`
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 done
9143 else
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 $ac_includes_default
9154 typedef double ac__type_sizeof_;
9156 main ()
9158 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9159 test_array [0] = 0
9162 return 0;
9164 _ACEOF
9165 rm -f conftest.$ac_objext
9166 if { (ac_try="$ac_compile"
9167 case "(($ac_try" in
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9170 esac
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_compile") 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest.$ac_objext; then
9182 ac_hi=-1 ac_mid=-1
9183 while :; do
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h. */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9190 $ac_includes_default
9191 typedef double ac__type_sizeof_;
9193 main ()
9195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9196 test_array [0] = 0
9199 return 0;
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (ac_try="$ac_compile"
9204 case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207 esac
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_compile") 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest.$ac_objext; then
9219 ac_lo=$ac_mid; break
9220 else
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 ac_hi=`expr '(' $ac_mid ')' - 1`
9225 if test $ac_mid -le $ac_hi; then
9226 ac_lo= ac_hi=
9227 break
9229 ac_mid=`expr 2 '*' $ac_mid`
9232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9233 done
9234 else
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_lo= ac_hi=
9241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 # Binary search between lo and hi bounds.
9246 while test "x$ac_lo" != "x$ac_hi"; do
9247 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9248 cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h. */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 $ac_includes_default
9255 typedef double ac__type_sizeof_;
9257 main ()
9259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9260 test_array [0] = 0
9263 return 0;
9265 _ACEOF
9266 rm -f conftest.$ac_objext
9267 if { (ac_try="$ac_compile"
9268 case "(($ac_try" in
9269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9270 *) ac_try_echo=$ac_try;;
9271 esac
9272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_compile") 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } && {
9280 test -z "$ac_c_werror_flag" ||
9281 test ! -s conftest.err
9282 } && test -s conftest.$ac_objext; then
9283 ac_hi=$ac_mid
9284 else
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 ac_lo=`expr '(' $ac_mid ')' + 1`
9291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9292 done
9293 case $ac_lo in
9294 ?*) ac_cv_sizeof_double=$ac_lo;;
9295 '') if test "$ac_cv_type_double" = yes; then
9296 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9297 See \`config.log' for more details." >&5
9298 echo "$as_me: error: cannot compute sizeof (double)
9299 See \`config.log' for more details." >&2;}
9300 { (exit 77); exit 77; }; }
9301 else
9302 ac_cv_sizeof_double=0
9303 fi ;;
9304 esac
9305 else
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 $ac_includes_default
9313 typedef double ac__type_sizeof_;
9314 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9315 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9316 #include <stdio.h>
9317 #include <stdlib.h>
9319 main ()
9322 FILE *f = fopen ("conftest.val", "w");
9323 if (! f)
9324 return 1;
9325 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9327 long int i = longval ();
9328 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9329 return 1;
9330 fprintf (f, "%ld\n", i);
9332 else
9334 unsigned long int i = ulongval ();
9335 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9336 return 1;
9337 fprintf (f, "%lu\n", i);
9339 return ferror (f) || fclose (f) != 0;
9342 return 0;
9344 _ACEOF
9345 rm -f conftest$ac_exeext
9346 if { (ac_try="$ac_link"
9347 case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_link") 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9356 { (case "(($ac_try" in
9357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358 *) ac_try_echo=$ac_try;;
9359 esac
9360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9361 (eval "$ac_try") 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_sizeof_double=`cat conftest.val`
9366 else
9367 echo "$as_me: program exited with status $ac_status" >&5
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ( exit $ac_status )
9372 if test "$ac_cv_type_double" = yes; then
9373 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9374 See \`config.log' for more details." >&5
9375 echo "$as_me: error: cannot compute sizeof (double)
9376 See \`config.log' for more details." >&2;}
9377 { (exit 77); exit 77; }; }
9378 else
9379 ac_cv_sizeof_double=0
9382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9384 rm -f conftest.val
9386 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9387 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9391 cat >>confdefs.h <<_ACEOF
9392 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9393 _ACEOF
9396 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9397 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9398 if test "${ac_cv_type_fpos_t+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 $ac_includes_default
9408 typedef fpos_t ac__type_new_;
9410 main ()
9412 if ((ac__type_new_ *) 0)
9413 return 0;
9414 if (sizeof (ac__type_new_))
9415 return 0;
9417 return 0;
9419 _ACEOF
9420 rm -f conftest.$ac_objext
9421 if { (ac_try="$ac_compile"
9422 case "(($ac_try" in
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9425 esac
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_compile") 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest.$ac_objext; then
9437 ac_cv_type_fpos_t=yes
9438 else
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9442 ac_cv_type_fpos_t=no
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9448 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9450 # The cast to long int works around a bug in the HP C Compiler
9451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9453 # This bug is HP SR number 8606223364.
9454 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9455 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9456 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459 if test "$cross_compiling" = yes; then
9460 # Depending upon the size, compute the lo and hi bounds.
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h. */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 $ac_includes_default
9468 typedef fpos_t ac__type_sizeof_;
9470 main ()
9472 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9473 test_array [0] = 0
9476 return 0;
9478 _ACEOF
9479 rm -f conftest.$ac_objext
9480 if { (ac_try="$ac_compile"
9481 case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484 esac
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_compile") 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && {
9493 test -z "$ac_c_werror_flag" ||
9494 test ! -s conftest.err
9495 } && test -s conftest.$ac_objext; then
9496 ac_lo=0 ac_mid=0
9497 while :; do
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 $ac_includes_default
9505 typedef fpos_t ac__type_sizeof_;
9507 main ()
9509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9510 test_array [0] = 0
9513 return 0;
9515 _ACEOF
9516 rm -f conftest.$ac_objext
9517 if { (ac_try="$ac_compile"
9518 case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9521 esac
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_compile") 2>conftest.er1
9524 ac_status=$?
9525 grep -v '^ *+' conftest.er1 >conftest.err
9526 rm -f conftest.er1
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } && {
9530 test -z "$ac_c_werror_flag" ||
9531 test ! -s conftest.err
9532 } && test -s conftest.$ac_objext; then
9533 ac_hi=$ac_mid; break
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_lo=`expr $ac_mid + 1`
9539 if test $ac_lo -le $ac_mid; then
9540 ac_lo= ac_hi=
9541 break
9543 ac_mid=`expr 2 '*' $ac_mid + 1`
9546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9547 done
9548 else
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 cat >conftest.$ac_ext <<_ACEOF
9553 /* confdefs.h. */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9558 $ac_includes_default
9559 typedef fpos_t ac__type_sizeof_;
9561 main ()
9563 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9564 test_array [0] = 0
9567 return 0;
9569 _ACEOF
9570 rm -f conftest.$ac_objext
9571 if { (ac_try="$ac_compile"
9572 case "(($ac_try" in
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9575 esac
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_compile") 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest.$ac_objext; then
9587 ac_hi=-1 ac_mid=-1
9588 while :; do
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 $ac_includes_default
9596 typedef fpos_t ac__type_sizeof_;
9598 main ()
9600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9601 test_array [0] = 0
9604 return 0;
9606 _ACEOF
9607 rm -f conftest.$ac_objext
9608 if { (ac_try="$ac_compile"
9609 case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9612 esac
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_compile") 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } && {
9621 test -z "$ac_c_werror_flag" ||
9622 test ! -s conftest.err
9623 } && test -s conftest.$ac_objext; then
9624 ac_lo=$ac_mid; break
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_hi=`expr '(' $ac_mid ')' - 1`
9630 if test $ac_mid -le $ac_hi; then
9631 ac_lo= ac_hi=
9632 break
9634 ac_mid=`expr 2 '*' $ac_mid`
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 done
9639 else
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9643 ac_lo= ac_hi=
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650 # Binary search between lo and hi bounds.
9651 while test "x$ac_lo" != "x$ac_hi"; do
9652 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9653 cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h. */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 $ac_includes_default
9660 typedef fpos_t ac__type_sizeof_;
9662 main ()
9664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9665 test_array [0] = 0
9668 return 0;
9670 _ACEOF
9671 rm -f conftest.$ac_objext
9672 if { (ac_try="$ac_compile"
9673 case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_compile") 2>conftest.er1
9679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } && {
9685 test -z "$ac_c_werror_flag" ||
9686 test ! -s conftest.err
9687 } && test -s conftest.$ac_objext; then
9688 ac_hi=$ac_mid
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_lo=`expr '(' $ac_mid ')' + 1`
9696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9697 done
9698 case $ac_lo in
9699 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9700 '') if test "$ac_cv_type_fpos_t" = yes; then
9701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9702 See \`config.log' for more details." >&5
9703 echo "$as_me: error: cannot compute sizeof (fpos_t)
9704 See \`config.log' for more details." >&2;}
9705 { (exit 77); exit 77; }; }
9706 else
9707 ac_cv_sizeof_fpos_t=0
9708 fi ;;
9709 esac
9710 else
9711 cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h. */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 $ac_includes_default
9718 typedef fpos_t ac__type_sizeof_;
9719 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9720 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9721 #include <stdio.h>
9722 #include <stdlib.h>
9724 main ()
9727 FILE *f = fopen ("conftest.val", "w");
9728 if (! f)
9729 return 1;
9730 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9732 long int i = longval ();
9733 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9734 return 1;
9735 fprintf (f, "%ld\n", i);
9737 else
9739 unsigned long int i = ulongval ();
9740 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9741 return 1;
9742 fprintf (f, "%lu\n", i);
9744 return ferror (f) || fclose (f) != 0;
9747 return 0;
9749 _ACEOF
9750 rm -f conftest$ac_exeext
9751 if { (ac_try="$ac_link"
9752 case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_link") 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764 esac
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 ac_cv_sizeof_fpos_t=`cat conftest.val`
9771 else
9772 echo "$as_me: program exited with status $ac_status" >&5
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ( exit $ac_status )
9777 if test "$ac_cv_type_fpos_t" = yes; then
9778 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9779 See \`config.log' for more details." >&5
9780 echo "$as_me: error: cannot compute sizeof (fpos_t)
9781 See \`config.log' for more details." >&2;}
9782 { (exit 77); exit 77; }; }
9783 else
9784 ac_cv_sizeof_fpos_t=0
9787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9789 rm -f conftest.val
9791 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9792 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9796 cat >>confdefs.h <<_ACEOF
9797 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9798 _ACEOF
9801 { echo "$as_me:$LINENO: checking for size_t" >&5
9802 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9803 if test "${ac_cv_type_size_t+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 $ac_includes_default
9813 typedef size_t ac__type_new_;
9815 main ()
9817 if ((ac__type_new_ *) 0)
9818 return 0;
9819 if (sizeof (ac__type_new_))
9820 return 0;
9822 return 0;
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9827 case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 ac_cv_type_size_t=yes
9843 else
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_cv_type_size_t=no
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9853 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9855 # The cast to long int works around a bug in the HP C Compiler
9856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9858 # This bug is HP SR number 8606223364.
9859 { echo "$as_me:$LINENO: checking size of size_t" >&5
9860 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9861 if test "${ac_cv_sizeof_size_t+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864 if test "$cross_compiling" = yes; then
9865 # Depending upon the size, compute the lo and hi bounds.
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h. */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 $ac_includes_default
9873 typedef size_t ac__type_sizeof_;
9875 main ()
9877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9878 test_array [0] = 0
9881 return 0;
9883 _ACEOF
9884 rm -f conftest.$ac_objext
9885 if { (ac_try="$ac_compile"
9886 case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_compile") 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && {
9898 test -z "$ac_c_werror_flag" ||
9899 test ! -s conftest.err
9900 } && test -s conftest.$ac_objext; then
9901 ac_lo=0 ac_mid=0
9902 while :; do
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 $ac_includes_default
9910 typedef size_t ac__type_sizeof_;
9912 main ()
9914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9915 test_array [0] = 0
9918 return 0;
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9923 case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 ac_hi=$ac_mid; break
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_lo=`expr $ac_mid + 1`
9944 if test $ac_lo -le $ac_mid; then
9945 ac_lo= ac_hi=
9946 break
9948 ac_mid=`expr 2 '*' $ac_mid + 1`
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 done
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 $ac_includes_default
9964 typedef size_t ac__type_sizeof_;
9966 main ()
9968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9969 test_array [0] = 0
9972 return 0;
9974 _ACEOF
9975 rm -f conftest.$ac_objext
9976 if { (ac_try="$ac_compile"
9977 case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_compile") 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && {
9989 test -z "$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 } && test -s conftest.$ac_objext; then
9992 ac_hi=-1 ac_mid=-1
9993 while :; do
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10001 typedef size_t ac__type_sizeof_;
10003 main ()
10005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10006 test_array [0] = 0
10009 return 0;
10011 _ACEOF
10012 rm -f conftest.$ac_objext
10013 if { (ac_try="$ac_compile"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_compile") 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && {
10026 test -z "$ac_c_werror_flag" ||
10027 test ! -s conftest.err
10028 } && test -s conftest.$ac_objext; then
10029 ac_lo=$ac_mid; break
10030 else
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 ac_hi=`expr '(' $ac_mid ')' - 1`
10035 if test $ac_mid -le $ac_hi; then
10036 ac_lo= ac_hi=
10037 break
10039 ac_mid=`expr 2 '*' $ac_mid`
10042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043 done
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_lo= ac_hi=
10051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055 # Binary search between lo and hi bounds.
10056 while test "x$ac_lo" != "x$ac_hi"; do
10057 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h. */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 $ac_includes_default
10065 typedef size_t ac__type_sizeof_;
10067 main ()
10069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10070 test_array [0] = 0
10073 return 0;
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (ac_try="$ac_compile"
10078 case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_compile") 2>conftest.er1
10084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && {
10090 test -z "$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10092 } && test -s conftest.$ac_objext; then
10093 ac_hi=$ac_mid
10094 else
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_lo=`expr '(' $ac_mid ')' + 1`
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102 done
10103 case $ac_lo in
10104 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10105 '') if test "$ac_cv_type_size_t" = yes; then
10106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10107 See \`config.log' for more details." >&5
10108 echo "$as_me: error: cannot compute sizeof (size_t)
10109 See \`config.log' for more details." >&2;}
10110 { (exit 77); exit 77; }; }
10111 else
10112 ac_cv_sizeof_size_t=0
10113 fi ;;
10114 esac
10115 else
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 typedef size_t ac__type_sizeof_;
10124 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10125 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10126 #include <stdio.h>
10127 #include <stdlib.h>
10129 main ()
10132 FILE *f = fopen ("conftest.val", "w");
10133 if (! f)
10134 return 1;
10135 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10137 long int i = longval ();
10138 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10139 return 1;
10140 fprintf (f, "%ld\n", i);
10142 else
10144 unsigned long int i = ulongval ();
10145 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10146 return 1;
10147 fprintf (f, "%lu\n", i);
10149 return ferror (f) || fclose (f) != 0;
10152 return 0;
10154 _ACEOF
10155 rm -f conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10166 { (case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169 esac
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_try") 2>&5
10172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_sizeof_size_t=`cat conftest.val`
10176 else
10177 echo "$as_me: program exited with status $ac_status" >&5
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ( exit $ac_status )
10182 if test "$ac_cv_type_size_t" = yes; then
10183 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10184 See \`config.log' for more details." >&5
10185 echo "$as_me: error: cannot compute sizeof (size_t)
10186 See \`config.log' for more details." >&2;}
10187 { (exit 77); exit 77; }; }
10188 else
10189 ac_cv_sizeof_size_t=0
10192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10194 rm -f conftest.val
10196 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10197 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10201 cat >>confdefs.h <<_ACEOF
10202 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10203 _ACEOF
10206 { echo "$as_me:$LINENO: checking for pid_t" >&5
10207 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10208 if test "${ac_cv_type_pid_t+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 $ac_includes_default
10218 typedef pid_t ac__type_new_;
10220 main ()
10222 if ((ac__type_new_ *) 0)
10223 return 0;
10224 if (sizeof (ac__type_new_))
10225 return 0;
10227 return 0;
10229 _ACEOF
10230 rm -f conftest.$ac_objext
10231 if { (ac_try="$ac_compile"
10232 case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_compile") 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } && {
10244 test -z "$ac_c_werror_flag" ||
10245 test ! -s conftest.err
10246 } && test -s conftest.$ac_objext; then
10247 ac_cv_type_pid_t=yes
10248 else
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 ac_cv_type_pid_t=no
10255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10258 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10260 # The cast to long int works around a bug in the HP C Compiler
10261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10263 # This bug is HP SR number 8606223364.
10264 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10265 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10266 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269 if test "$cross_compiling" = yes; then
10270 # Depending upon the size, compute the lo and hi bounds.
10271 cat >conftest.$ac_ext <<_ACEOF
10272 /* confdefs.h. */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 $ac_includes_default
10278 typedef pid_t ac__type_sizeof_;
10280 main ()
10282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10283 test_array [0] = 0
10286 return 0;
10288 _ACEOF
10289 rm -f conftest.$ac_objext
10290 if { (ac_try="$ac_compile"
10291 case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_compile") 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && {
10303 test -z "$ac_c_werror_flag" ||
10304 test ! -s conftest.err
10305 } && test -s conftest.$ac_objext; then
10306 ac_lo=0 ac_mid=0
10307 while :; do
10308 cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h. */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10314 $ac_includes_default
10315 typedef pid_t ac__type_sizeof_;
10317 main ()
10319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10320 test_array [0] = 0
10323 return 0;
10325 _ACEOF
10326 rm -f conftest.$ac_objext
10327 if { (ac_try="$ac_compile"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_compile") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest.$ac_objext; then
10343 ac_hi=$ac_mid; break
10344 else
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 ac_lo=`expr $ac_mid + 1`
10349 if test $ac_lo -le $ac_mid; then
10350 ac_lo= ac_hi=
10351 break
10353 ac_mid=`expr 2 '*' $ac_mid + 1`
10356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357 done
10358 else
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 cat >conftest.$ac_ext <<_ACEOF
10363 /* confdefs.h. */
10364 _ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 $ac_includes_default
10369 typedef pid_t ac__type_sizeof_;
10371 main ()
10373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10374 test_array [0] = 0
10377 return 0;
10379 _ACEOF
10380 rm -f conftest.$ac_objext
10381 if { (ac_try="$ac_compile"
10382 case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10385 esac
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_compile") 2>conftest.er1
10388 ac_status=$?
10389 grep -v '^ *+' conftest.er1 >conftest.err
10390 rm -f conftest.er1
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } && {
10394 test -z "$ac_c_werror_flag" ||
10395 test ! -s conftest.err
10396 } && test -s conftest.$ac_objext; then
10397 ac_hi=-1 ac_mid=-1
10398 while :; do
10399 cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h. */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 $ac_includes_default
10406 typedef pid_t ac__type_sizeof_;
10408 main ()
10410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10411 test_array [0] = 0
10414 return 0;
10416 _ACEOF
10417 rm -f conftest.$ac_objext
10418 if { (ac_try="$ac_compile"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_compile") 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest.$ac_objext; then
10434 ac_lo=$ac_mid; break
10435 else
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_hi=`expr '(' $ac_mid ')' - 1`
10440 if test $ac_mid -le $ac_hi; then
10441 ac_lo= ac_hi=
10442 break
10444 ac_mid=`expr 2 '*' $ac_mid`
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448 done
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10453 ac_lo= ac_hi=
10456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460 # Binary search between lo and hi bounds.
10461 while test "x$ac_lo" != "x$ac_hi"; do
10462 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10463 cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h. */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 $ac_includes_default
10470 typedef pid_t ac__type_sizeof_;
10472 main ()
10474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10475 test_array [0] = 0
10478 return 0;
10480 _ACEOF
10481 rm -f conftest.$ac_objext
10482 if { (ac_try="$ac_compile"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486 esac
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_compile") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest.$ac_objext; then
10498 ac_hi=$ac_mid
10499 else
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 ac_lo=`expr '(' $ac_mid ')' + 1`
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 done
10508 case $ac_lo in
10509 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10510 '') if test "$ac_cv_type_pid_t" = yes; then
10511 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10512 See \`config.log' for more details." >&5
10513 echo "$as_me: error: cannot compute sizeof (pid_t)
10514 See \`config.log' for more details." >&2;}
10515 { (exit 77); exit 77; }; }
10516 else
10517 ac_cv_sizeof_pid_t=0
10518 fi ;;
10519 esac
10520 else
10521 cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h. */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10527 $ac_includes_default
10528 typedef pid_t ac__type_sizeof_;
10529 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10530 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10531 #include <stdio.h>
10532 #include <stdlib.h>
10534 main ()
10537 FILE *f = fopen ("conftest.val", "w");
10538 if (! f)
10539 return 1;
10540 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10542 long int i = longval ();
10543 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10544 return 1;
10545 fprintf (f, "%ld\n", i);
10547 else
10549 unsigned long int i = ulongval ();
10550 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10551 return 1;
10552 fprintf (f, "%lu\n", i);
10554 return ferror (f) || fclose (f) != 0;
10557 return 0;
10559 _ACEOF
10560 rm -f conftest$ac_exeext
10561 if { (ac_try="$ac_link"
10562 case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10565 esac
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_link") 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10571 { (case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10574 esac
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_try") 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580 ac_cv_sizeof_pid_t=`cat conftest.val`
10581 else
10582 echo "$as_me: program exited with status $ac_status" >&5
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ( exit $ac_status )
10587 if test "$ac_cv_type_pid_t" = yes; then
10588 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10589 See \`config.log' for more details." >&5
10590 echo "$as_me: error: cannot compute sizeof (pid_t)
10591 See \`config.log' for more details." >&2;}
10592 { (exit 77); exit 77; }; }
10593 else
10594 ac_cv_sizeof_pid_t=0
10597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10599 rm -f conftest.val
10601 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10602 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10606 cat >>confdefs.h <<_ACEOF
10607 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10608 _ACEOF
10612 { echo "$as_me:$LINENO: checking for long long support" >&5
10613 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10614 have_long_long=no
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10623 main ()
10625 long long x; x = (long long)0;
10627 return 0;
10629 _ACEOF
10630 rm -f conftest.$ac_objext
10631 if { (ac_try="$ac_compile"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_compile") 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest.$ac_objext; then
10649 cat >>confdefs.h <<\_ACEOF
10650 #define HAVE_LONG_LONG 1
10651 _ACEOF
10653 have_long_long=yes
10655 else
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10664 echo "${ECHO_T}$have_long_long" >&6; }
10665 if test "$have_long_long" = yes ; then
10666 { echo "$as_me:$LINENO: checking for long long" >&5
10667 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10668 if test "${ac_cv_type_long_long+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671 cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h. */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 $ac_includes_default
10678 typedef long long ac__type_new_;
10680 main ()
10682 if ((ac__type_new_ *) 0)
10683 return 0;
10684 if (sizeof (ac__type_new_))
10685 return 0;
10687 return 0;
10689 _ACEOF
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest.$ac_objext; then
10707 ac_cv_type_long_long=yes
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_cv_type_long_long=no
10715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10718 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10720 # The cast to long int works around a bug in the HP C Compiler
10721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10723 # This bug is HP SR number 8606223364.
10724 { echo "$as_me:$LINENO: checking size of long long" >&5
10725 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10726 if test "${ac_cv_sizeof_long_long+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729 if test "$cross_compiling" = yes; then
10730 # Depending upon the size, compute the lo and hi bounds.
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h. */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 $ac_includes_default
10738 typedef long long ac__type_sizeof_;
10740 main ()
10742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10743 test_array [0] = 0
10746 return 0;
10748 _ACEOF
10749 rm -f conftest.$ac_objext
10750 if { (ac_try="$ac_compile"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754 esac
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_compile") 2>conftest.er1
10757 ac_status=$?
10758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest.$ac_objext; then
10766 ac_lo=0 ac_mid=0
10767 while :; do
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h. */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 $ac_includes_default
10775 typedef long long ac__type_sizeof_;
10777 main ()
10779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10780 test_array [0] = 0
10783 return 0;
10785 _ACEOF
10786 rm -f conftest.$ac_objext
10787 if { (ac_try="$ac_compile"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_compile") 2>conftest.er1
10794 ac_status=$?
10795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest.$ac_objext; then
10803 ac_hi=$ac_mid; break
10804 else
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_lo=`expr $ac_mid + 1`
10809 if test $ac_lo -le $ac_mid; then
10810 ac_lo= ac_hi=
10811 break
10813 ac_mid=`expr 2 '*' $ac_mid + 1`
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 done
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h. */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10828 $ac_includes_default
10829 typedef long long ac__type_sizeof_;
10831 main ()
10833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10834 test_array [0] = 0
10837 return 0;
10839 _ACEOF
10840 rm -f conftest.$ac_objext
10841 if { (ac_try="$ac_compile"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_c_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest.$ac_objext; then
10857 ac_hi=-1 ac_mid=-1
10858 while :; do
10859 cat >conftest.$ac_ext <<_ACEOF
10860 /* confdefs.h. */
10861 _ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h. */
10865 $ac_includes_default
10866 typedef long long ac__type_sizeof_;
10868 main ()
10870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10871 test_array [0] = 0
10874 return 0;
10876 _ACEOF
10877 rm -f conftest.$ac_objext
10878 if { (ac_try="$ac_compile"
10879 case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_compile") 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } && {
10891 test -z "$ac_c_werror_flag" ||
10892 test ! -s conftest.err
10893 } && test -s conftest.$ac_objext; then
10894 ac_lo=$ac_mid; break
10895 else
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_hi=`expr '(' $ac_mid ')' - 1`
10900 if test $ac_mid -le $ac_hi; then
10901 ac_lo= ac_hi=
10902 break
10904 ac_mid=`expr 2 '*' $ac_mid`
10907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10908 done
10909 else
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 ac_lo= ac_hi=
10916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10920 # Binary search between lo and hi bounds.
10921 while test "x$ac_lo" != "x$ac_hi"; do
10922 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10923 cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h. */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 $ac_includes_default
10930 typedef long long ac__type_sizeof_;
10932 main ()
10934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10935 test_array [0] = 0
10938 return 0;
10940 _ACEOF
10941 rm -f conftest.$ac_objext
10942 if { (ac_try="$ac_compile"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_compile") 2>conftest.er1
10949 ac_status=$?
10950 grep -v '^ *+' conftest.er1 >conftest.err
10951 rm -f conftest.er1
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && {
10955 test -z "$ac_c_werror_flag" ||
10956 test ! -s conftest.err
10957 } && test -s conftest.$ac_objext; then
10958 ac_hi=$ac_mid
10959 else
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 ac_lo=`expr '(' $ac_mid ')' + 1`
10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967 done
10968 case $ac_lo in
10969 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10970 '') if test "$ac_cv_type_long_long" = yes; then
10971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10972 See \`config.log' for more details." >&5
10973 echo "$as_me: error: cannot compute sizeof (long long)
10974 See \`config.log' for more details." >&2;}
10975 { (exit 77); exit 77; }; }
10976 else
10977 ac_cv_sizeof_long_long=0
10978 fi ;;
10979 esac
10980 else
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h. */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 $ac_includes_default
10988 typedef long long ac__type_sizeof_;
10989 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10990 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10991 #include <stdio.h>
10992 #include <stdlib.h>
10994 main ()
10997 FILE *f = fopen ("conftest.val", "w");
10998 if (! f)
10999 return 1;
11000 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11002 long int i = longval ();
11003 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11004 return 1;
11005 fprintf (f, "%ld\n", i);
11007 else
11009 unsigned long int i = ulongval ();
11010 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11011 return 1;
11012 fprintf (f, "%lu\n", i);
11014 return ferror (f) || fclose (f) != 0;
11017 return 0;
11019 _ACEOF
11020 rm -f conftest$ac_exeext
11021 if { (ac_try="$ac_link"
11022 case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_link") 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11031 { (case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_try") 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 ac_cv_sizeof_long_long=`cat conftest.val`
11041 else
11042 echo "$as_me: program exited with status $ac_status" >&5
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 ( exit $ac_status )
11047 if test "$ac_cv_type_long_long" = yes; then
11048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11049 See \`config.log' for more details." >&5
11050 echo "$as_me: error: cannot compute sizeof (long long)
11051 See \`config.log' for more details." >&2;}
11052 { (exit 77); exit 77; }; }
11053 else
11054 ac_cv_sizeof_long_long=0
11057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11059 rm -f conftest.val
11061 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11062 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11066 cat >>confdefs.h <<_ACEOF
11067 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11068 _ACEOF
11073 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11074 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11075 have_c99_bool=no
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h. */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11084 main ()
11086 _Bool x; x = (_Bool)0;
11088 return 0;
11090 _ACEOF
11091 rm -f conftest.$ac_objext
11092 if { (ac_try="$ac_compile"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest.$ac_objext; then
11110 cat >>confdefs.h <<\_ACEOF
11111 #define HAVE_C99_BOOL 1
11112 _ACEOF
11114 have_c99_bool=yes
11116 else
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11125 echo "${ECHO_T}$have_c99_bool" >&6; }
11126 if test "$have_c99_bool" = yes ; then
11127 { echo "$as_me:$LINENO: checking for _Bool" >&5
11128 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11129 if test "${ac_cv_type__Bool+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h. */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 $ac_includes_default
11139 typedef _Bool ac__type_new_;
11141 main ()
11143 if ((ac__type_new_ *) 0)
11144 return 0;
11145 if (sizeof (ac__type_new_))
11146 return 0;
11148 return 0;
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (ac_try="$ac_compile"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_compile") 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } && {
11165 test -z "$ac_c_werror_flag" ||
11166 test ! -s conftest.err
11167 } && test -s conftest.$ac_objext; then
11168 ac_cv_type__Bool=yes
11169 else
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_cv_type__Bool=no
11176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11179 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11181 # The cast to long int works around a bug in the HP C Compiler
11182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11184 # This bug is HP SR number 8606223364.
11185 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11186 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11187 if test "${ac_cv_sizeof__Bool+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190 if test "$cross_compiling" = yes; then
11191 # Depending upon the size, compute the lo and hi bounds.
11192 cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h. */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 $ac_includes_default
11199 typedef _Bool ac__type_sizeof_;
11201 main ()
11203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11204 test_array [0] = 0
11207 return 0;
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (ac_try="$ac_compile"
11212 case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11215 esac
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_compile") 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && {
11224 test -z "$ac_c_werror_flag" ||
11225 test ! -s conftest.err
11226 } && test -s conftest.$ac_objext; then
11227 ac_lo=0 ac_mid=0
11228 while :; do
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h. */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 $ac_includes_default
11236 typedef _Bool ac__type_sizeof_;
11238 main ()
11240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11241 test_array [0] = 0
11244 return 0;
11246 _ACEOF
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252 esac
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_compile") 2>conftest.er1
11255 ac_status=$?
11256 grep -v '^ *+' conftest.er1 >conftest.err
11257 rm -f conftest.er1
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && {
11261 test -z "$ac_c_werror_flag" ||
11262 test ! -s conftest.err
11263 } && test -s conftest.$ac_objext; then
11264 ac_hi=$ac_mid; break
11265 else
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 ac_lo=`expr $ac_mid + 1`
11270 if test $ac_lo -le $ac_mid; then
11271 ac_lo= ac_hi=
11272 break
11274 ac_mid=`expr 2 '*' $ac_mid + 1`
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 done
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 cat >conftest.$ac_ext <<_ACEOF
11284 /* confdefs.h. */
11285 _ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 $ac_includes_default
11290 typedef _Bool ac__type_sizeof_;
11292 main ()
11294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11295 test_array [0] = 0
11298 return 0;
11300 _ACEOF
11301 rm -f conftest.$ac_objext
11302 if { (ac_try="$ac_compile"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_compile") 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } && {
11315 test -z "$ac_c_werror_flag" ||
11316 test ! -s conftest.err
11317 } && test -s conftest.$ac_objext; then
11318 ac_hi=-1 ac_mid=-1
11319 while :; do
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 $ac_includes_default
11327 typedef _Bool ac__type_sizeof_;
11329 main ()
11331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11332 test_array [0] = 0
11335 return 0;
11337 _ACEOF
11338 rm -f conftest.$ac_objext
11339 if { (ac_try="$ac_compile"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_compile") 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest.$ac_objext; then
11355 ac_lo=$ac_mid; break
11356 else
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_hi=`expr '(' $ac_mid ')' - 1`
11361 if test $ac_mid -le $ac_hi; then
11362 ac_lo= ac_hi=
11363 break
11365 ac_mid=`expr 2 '*' $ac_mid`
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 done
11370 else
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_lo= ac_hi=
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11381 # Binary search between lo and hi bounds.
11382 while test "x$ac_lo" != "x$ac_hi"; do
11383 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11391 typedef _Bool ac__type_sizeof_;
11393 main ()
11395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11396 test_array [0] = 0
11399 return 0;
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (ac_try="$ac_compile"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11407 esac
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11419 ac_hi=$ac_mid
11420 else
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 ac_lo=`expr '(' $ac_mid ')' + 1`
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 done
11429 case $ac_lo in
11430 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11431 '') if test "$ac_cv_type__Bool" = yes; then
11432 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11433 See \`config.log' for more details." >&5
11434 echo "$as_me: error: cannot compute sizeof (_Bool)
11435 See \`config.log' for more details." >&2;}
11436 { (exit 77); exit 77; }; }
11437 else
11438 ac_cv_sizeof__Bool=0
11439 fi ;;
11440 esac
11441 else
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h. */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 $ac_includes_default
11449 typedef _Bool ac__type_sizeof_;
11450 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11451 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11452 #include <stdio.h>
11453 #include <stdlib.h>
11455 main ()
11458 FILE *f = fopen ("conftest.val", "w");
11459 if (! f)
11460 return 1;
11461 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11463 long int i = longval ();
11464 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11465 return 1;
11466 fprintf (f, "%ld\n", i);
11468 else
11470 unsigned long int i = ulongval ();
11471 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11472 return 1;
11473 fprintf (f, "%lu\n", i);
11475 return ferror (f) || fclose (f) != 0;
11478 return 0;
11480 _ACEOF
11481 rm -f conftest$ac_exeext
11482 if { (ac_try="$ac_link"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_link") 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_sizeof__Bool=`cat conftest.val`
11502 else
11503 echo "$as_me: program exited with status $ac_status" >&5
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 ( exit $ac_status )
11508 if test "$ac_cv_type__Bool" = yes; then
11509 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11510 See \`config.log' for more details." >&5
11511 echo "$as_me: error: cannot compute sizeof (_Bool)
11512 See \`config.log' for more details." >&2;}
11513 { (exit 77); exit 77; }; }
11514 else
11515 ac_cv_sizeof__Bool=0
11518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11520 rm -f conftest.val
11522 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11523 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11527 cat >>confdefs.h <<_ACEOF
11528 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11529 _ACEOF
11534 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11535 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11536 if test "${ac_cv_type_uintptr_t+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 #ifdef HAVE_STDINT_H
11546 #include <stdint.h>
11547 #endif
11549 typedef uintptr_t ac__type_new_;
11551 main ()
11553 if ((ac__type_new_ *) 0)
11554 return 0;
11555 if (sizeof (ac__type_new_))
11556 return 0;
11558 return 0;
11560 _ACEOF
11561 rm -f conftest.$ac_objext
11562 if { (ac_try="$ac_compile"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_compile") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest.$ac_objext; then
11578 ac_cv_type_uintptr_t=yes
11579 else
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 ac_cv_type_uintptr_t=no
11586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11589 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11590 if test $ac_cv_type_uintptr_t = yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define HAVE_UINTPTR_T 1
11594 _ACEOF
11596 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11597 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11598 if test "${ac_cv_type_uintptr_t+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601 cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h. */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 $ac_includes_default
11608 typedef uintptr_t ac__type_new_;
11610 main ()
11612 if ((ac__type_new_ *) 0)
11613 return 0;
11614 if (sizeof (ac__type_new_))
11615 return 0;
11617 return 0;
11619 _ACEOF
11620 rm -f conftest.$ac_objext
11621 if { (ac_try="$ac_compile"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_compile") 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } && {
11634 test -z "$ac_c_werror_flag" ||
11635 test ! -s conftest.err
11636 } && test -s conftest.$ac_objext; then
11637 ac_cv_type_uintptr_t=yes
11638 else
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ac_cv_type_uintptr_t=no
11645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11648 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11650 # The cast to long int works around a bug in the HP C Compiler
11651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11653 # This bug is HP SR number 8606223364.
11654 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11655 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11656 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659 if test "$cross_compiling" = yes; then
11660 # Depending upon the size, compute the lo and hi bounds.
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h. */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 $ac_includes_default
11668 typedef uintptr_t ac__type_sizeof_;
11670 main ()
11672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11673 test_array [0] = 0
11676 return 0;
11678 _ACEOF
11679 rm -f conftest.$ac_objext
11680 if { (ac_try="$ac_compile"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_compile") 2>conftest.er1
11687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } && {
11693 test -z "$ac_c_werror_flag" ||
11694 test ! -s conftest.err
11695 } && test -s conftest.$ac_objext; then
11696 ac_lo=0 ac_mid=0
11697 while :; do
11698 cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h. */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 $ac_includes_default
11705 typedef uintptr_t ac__type_sizeof_;
11707 main ()
11709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11710 test_array [0] = 0
11713 return 0;
11715 _ACEOF
11716 rm -f conftest.$ac_objext
11717 if { (ac_try="$ac_compile"
11718 case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721 esac
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_compile") 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 } && test -s conftest.$ac_objext; then
11733 ac_hi=$ac_mid; break
11734 else
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 ac_lo=`expr $ac_mid + 1`
11739 if test $ac_lo -le $ac_mid; then
11740 ac_lo= ac_hi=
11741 break
11743 ac_mid=`expr 2 '*' $ac_mid + 1`
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 done
11748 else
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 $ac_includes_default
11759 typedef uintptr_t ac__type_sizeof_;
11761 main ()
11763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11764 test_array [0] = 0
11767 return 0;
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11787 ac_hi=-1 ac_mid=-1
11788 while :; do
11789 cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h. */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11795 $ac_includes_default
11796 typedef uintptr_t ac__type_sizeof_;
11798 main ()
11800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11801 test_array [0] = 0
11804 return 0;
11806 _ACEOF
11807 rm -f conftest.$ac_objext
11808 if { (ac_try="$ac_compile"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_compile") 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } && {
11821 test -z "$ac_c_werror_flag" ||
11822 test ! -s conftest.err
11823 } && test -s conftest.$ac_objext; then
11824 ac_lo=$ac_mid; break
11825 else
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 ac_hi=`expr '(' $ac_mid ')' - 1`
11830 if test $ac_mid -le $ac_hi; then
11831 ac_lo= ac_hi=
11832 break
11834 ac_mid=`expr 2 '*' $ac_mid`
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838 done
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_lo= ac_hi=
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850 # Binary search between lo and hi bounds.
11851 while test "x$ac_lo" != "x$ac_hi"; do
11852 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11853 cat >conftest.$ac_ext <<_ACEOF
11854 /* confdefs.h. */
11855 _ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 $ac_includes_default
11860 typedef uintptr_t ac__type_sizeof_;
11862 main ()
11864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11865 test_array [0] = 0
11868 return 0;
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 if { (ac_try="$ac_compile"
11873 case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_compile") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest.$ac_objext; then
11888 ac_hi=$ac_mid
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_lo=`expr '(' $ac_mid ')' + 1`
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 done
11898 case $ac_lo in
11899 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11900 '') if test "$ac_cv_type_uintptr_t" = yes; then
11901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11902 See \`config.log' for more details." >&5
11903 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11904 See \`config.log' for more details." >&2;}
11905 { (exit 77); exit 77; }; }
11906 else
11907 ac_cv_sizeof_uintptr_t=0
11908 fi ;;
11909 esac
11910 else
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 $ac_includes_default
11918 typedef uintptr_t ac__type_sizeof_;
11919 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11920 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11921 #include <stdio.h>
11922 #include <stdlib.h>
11924 main ()
11927 FILE *f = fopen ("conftest.val", "w");
11928 if (! f)
11929 return 1;
11930 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11932 long int i = longval ();
11933 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11934 return 1;
11935 fprintf (f, "%ld\n", i);
11937 else
11939 unsigned long int i = ulongval ();
11940 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11941 return 1;
11942 fprintf (f, "%lu\n", i);
11944 return ferror (f) || fclose (f) != 0;
11947 return 0;
11949 _ACEOF
11950 rm -f conftest$ac_exeext
11951 if { (ac_try="$ac_link"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_link") 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11961 { (case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11964 esac
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_try") 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11971 else
11972 echo "$as_me: program exited with status $ac_status" >&5
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 ( exit $ac_status )
11977 if test "$ac_cv_type_uintptr_t" = yes; then
11978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11979 See \`config.log' for more details." >&5
11980 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11981 See \`config.log' for more details." >&2;}
11982 { (exit 77); exit 77; }; }
11983 else
11984 ac_cv_sizeof_uintptr_t=0
11987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11989 rm -f conftest.val
11991 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11992 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11996 cat >>confdefs.h <<_ACEOF
11997 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11998 _ACEOF
12005 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12006 { echo "$as_me:$LINENO: checking size of off_t" >&5
12007 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12008 if test "${ac_cv_sizeof_off_t+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011 if test "$cross_compiling" = yes; then
12012 ac_cv_sizeof_off_t=4
12013 else
12014 cat >conftest.$ac_ext <<_ACEOF
12015 /* confdefs.h. */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12020 #include <stdio.h>
12021 #include <sys/types.h>
12022 main()
12024 FILE *f=fopen("conftestval", "w");
12025 if (!f) exit(1);
12026 fprintf(f, "%d\n", sizeof(off_t));
12027 exit(0);
12029 _ACEOF
12030 rm -f conftest$ac_exeext
12031 if { (ac_try="$ac_link"
12032 case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12035 esac
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_link") 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12041 { (case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12044 esac
12045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_try") 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_sizeof_off_t=`cat conftestval`
12051 else
12052 echo "$as_me: program exited with status $ac_status" >&5
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 ( exit $ac_status )
12057 ac_cv_sizeof_off_t=0
12059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12066 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12067 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12069 cat >>confdefs.h <<_ACEOF
12070 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12071 _ACEOF
12074 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12075 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12076 if test "$have_long_long" = yes -a \
12077 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12078 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12080 cat >>confdefs.h <<\_ACEOF
12081 #define HAVE_LARGEFILE_SUPPORT 1
12082 _ACEOF
12084 { echo "$as_me:$LINENO: result: yes" >&5
12085 echo "${ECHO_T}yes" >&6; }
12086 else
12087 { echo "$as_me:$LINENO: result: no" >&5
12088 echo "${ECHO_T}no" >&6; }
12091 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12092 { echo "$as_me:$LINENO: checking size of time_t" >&5
12093 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12094 if test "${ac_cv_sizeof_time_t+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097 if test "$cross_compiling" = yes; then
12098 ac_cv_sizeof_time_t=4
12099 else
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <stdio.h>
12107 #include <time.h>
12108 main()
12110 FILE *f=fopen("conftestval", "w");
12111 if (!f) exit(1);
12112 fprintf(f, "%d\n", sizeof(time_t));
12113 exit(0);
12115 _ACEOF
12116 rm -f conftest$ac_exeext
12117 if { (ac_try="$ac_link"
12118 case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12121 esac
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_link") 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 ac_cv_sizeof_time_t=`cat conftestval`
12137 else
12138 echo "$as_me: program exited with status $ac_status" >&5
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ( exit $ac_status )
12143 ac_cv_sizeof_time_t=0
12145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12152 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12153 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12155 cat >>confdefs.h <<_ACEOF
12156 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12157 _ACEOF
12161 # if have pthread_t then define SIZEOF_PTHREAD_T
12162 ac_save_cc="$CC"
12163 if test "$ac_cv_kpthread" = "yes"
12164 then CC="$CC -Kpthread"
12165 elif test "$ac_cv_kthread" = "yes"
12166 then CC="$CC -Kthread"
12167 elif test "$ac_cv_pthread" = "yes"
12168 then CC="$CC -pthread"
12170 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12171 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12172 have_pthread_t=no
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h. */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 #include <pthread.h>
12181 main ()
12183 pthread_t x; x = *(pthread_t*)0;
12185 return 0;
12187 _ACEOF
12188 rm -f conftest.$ac_objext
12189 if { (ac_try="$ac_compile"
12190 case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193 esac
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_compile") 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } && {
12202 test -z "$ac_c_werror_flag" ||
12203 test ! -s conftest.err
12204 } && test -s conftest.$ac_objext; then
12205 have_pthread_t=yes
12206 else
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12215 echo "${ECHO_T}$have_pthread_t" >&6; }
12216 if test "$have_pthread_t" = yes ; then
12217 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12218 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12219 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12220 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223 if test "$cross_compiling" = yes; then
12224 ac_cv_sizeof_pthread_t=4
12225 else
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 #include <stdio.h>
12233 #include <pthread.h>
12234 main()
12236 FILE *f=fopen("conftestval", "w");
12237 if (!f) exit(1);
12238 fprintf(f, "%d\n", sizeof(pthread_t));
12239 exit(0);
12241 _ACEOF
12242 rm -f conftest$ac_exeext
12243 if { (ac_try="$ac_link"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_link") 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12253 { (case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_try") 2>&5
12259 ac_status=$?
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; }; then
12262 ac_cv_sizeof_pthread_t=`cat conftestval`
12263 else
12264 echo "$as_me: program exited with status $ac_status" >&5
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ( exit $ac_status )
12269 ac_cv_sizeof_pthread_t=0
12271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12278 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12279 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12281 cat >>confdefs.h <<_ACEOF
12282 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12283 _ACEOF
12286 CC="$ac_save_cc"
12288 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12289 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12290 # Check whether --enable-toolbox-glue was given.
12291 if test "${enable_toolbox_glue+set}" = set; then
12292 enableval=$enable_toolbox_glue;
12296 if test -z "$enable_toolbox_glue"
12297 then
12298 case $ac_sys_system/$ac_sys_release in
12299 Darwin/*)
12300 enable_toolbox_glue="yes";;
12302 enable_toolbox_glue="no";;
12303 esac
12305 case "$enable_toolbox_glue" in
12306 yes)
12307 extra_machdep_objs="Python/mactoolboxglue.o"
12308 extra_undefs="-u _PyMac_Error"
12310 cat >>confdefs.h <<\_ACEOF
12311 #define USE_TOOLBOX_OBJECT_GLUE 1
12312 _ACEOF
12316 extra_machdep_objs=""
12317 extra_undefs=""
12319 esac
12320 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12321 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12324 case $ac_sys_system/$ac_sys_release in
12325 Darwin/[01567]\..*)
12326 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12328 Darwin/*)
12329 OTHER_LIBTOOL_OPT=""
12331 esac
12334 case $ac_sys_system/$ac_sys_release in
12335 Darwin/[01567]\..*)
12336 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12337 if test "${enable_universalsdk}"; then
12339 else
12340 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
12342 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12343 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12344 Darwin/*)
12345 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12346 if test ${gcc_version} '<' 4.0
12347 then
12348 LIBTOOL_CRUFT="-lcc_dynamic"
12349 else
12350 LIBTOOL_CRUFT=""
12352 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
12353 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12354 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12355 esac
12357 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12358 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12359 if test "$enable_framework"
12360 then
12361 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12362 # -F. is needed to allow linking to the framework while
12363 # in the build location.
12365 cat >>confdefs.h <<\_ACEOF
12366 #define WITH_NEXT_FRAMEWORK 1
12367 _ACEOF
12369 { echo "$as_me:$LINENO: result: yes" >&5
12370 echo "${ECHO_T}yes" >&6; }
12371 else
12372 { echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6; }
12376 { echo "$as_me:$LINENO: checking for dyld" >&5
12377 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12378 case $ac_sys_system/$ac_sys_release in
12379 Darwin/*)
12381 cat >>confdefs.h <<\_ACEOF
12382 #define WITH_DYLD 1
12383 _ACEOF
12385 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12386 echo "${ECHO_T}always on for Darwin" >&6; }
12389 { echo "$as_me:$LINENO: result: no" >&5
12390 echo "${ECHO_T}no" >&6; }
12392 esac
12394 # Set info about shared libraries.
12400 # SO is the extension of shared libraries `(including the dot!)
12401 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12402 { echo "$as_me:$LINENO: checking SO" >&5
12403 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12404 if test -z "$SO"
12405 then
12406 case $ac_sys_system in
12407 hp*|HP*)
12408 case `uname -m` in
12409 ia64) SO=.so;;
12410 *) SO=.sl;;
12411 esac
12413 CYGWIN*) SO=.dll;;
12414 *) SO=.so;;
12415 esac
12416 else
12417 # this might also be a termcap variable, see #610332
12418 echo
12419 echo '====================================================================='
12420 echo '+ +'
12421 echo '+ WARNING: You have set SO in your environment. +'
12422 echo '+ Do you really mean to change the extension for shared libraries? +'
12423 echo '+ Continuing in 10 seconds to let you to ponder. +'
12424 echo '+ +'
12425 echo '====================================================================='
12426 sleep 10
12428 { echo "$as_me:$LINENO: result: $SO" >&5
12429 echo "${ECHO_T}$SO" >&6; }
12431 cat >>confdefs.h <<_ACEOF
12432 #define SHLIB_EXT "$SO"
12433 _ACEOF
12435 # LDSHARED is the ld *command* used to create shared library
12436 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12437 # (Shared libraries in this instance are shared modules to be loaded into
12438 # Python, as opposed to building Python itself as a shared library.)
12439 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12440 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12441 if test -z "$LDSHARED"
12442 then
12443 case $ac_sys_system/$ac_sys_release in
12444 AIX*)
12445 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12446 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12448 BeOS*)
12449 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12450 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12452 IRIX/5*) LDSHARED="ld -shared";;
12453 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
12454 SunOS/5*)
12455 if test "$GCC" = "yes"
12456 then LDSHARED='$(CC) -shared'
12457 else LDSHARED='$(CC) -G';
12458 fi ;;
12459 hp*|HP*)
12460 if test "$GCC" = "yes"
12461 then LDSHARED='$(CC) -shared'
12462 else LDSHARED='ld -b';
12463 fi ;;
12464 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
12465 Darwin/1.3*)
12466 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12467 if test "$enable_framework" ; then
12468 # Link against the framework. All externals should be defined.
12469 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12470 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12471 else
12472 # No framework. Ignore undefined symbols, assuming they come from Python
12473 LDSHARED="$LDSHARED -undefined suppress"
12474 fi ;;
12475 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12476 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12477 if test "$enable_framework" ; then
12478 # Link against the framework. All externals should be defined.
12479 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12480 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12481 else
12482 # No framework, use the Python app as bundle-loader
12483 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12484 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12485 fi ;;
12486 Darwin/*)
12487 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12488 # This allows an extension to be used in any Python
12489 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12490 if test ${cur_target} '>' 10.2; then
12491 cur_target=10.3
12493 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12495 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12496 # environment with a value that is the same as what we'll use
12497 # in the Makefile to ensure that we'll get the same compiler
12498 # environment during configure and build time.
12499 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12500 export MACOSX_DEPLOYMENT_TARGET
12502 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
12503 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12504 then
12505 if test "${enable_universalsdk}"; then
12506 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12508 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12509 BLDSHARED="$LDSHARED"
12510 else
12511 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12512 if test "$enable_framework" ; then
12513 # Link against the framework. All externals should be defined.
12514 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12515 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12516 else
12517 # No framework, use the Python app as bundle-loader
12518 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12519 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12523 Linux*|GNU*) LDSHARED='$(CC) -shared';;
12524 BSD/OS*/4*) LDSHARED="gcc -shared";;
12525 FreeBSD*)
12526 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12527 then
12528 LDSHARED="$CC -shared ${LDFLAGS}"
12529 else
12530 LDSHARED="ld -Bshareable ${LDFLAGS}"
12531 fi;;
12532 OpenBSD*)
12533 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12534 then
12535 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12536 else
12537 case `uname -r` in
12538 [01].* | 2.[0-7] | 2.[0-7].*)
12539 LDSHARED="ld -Bshareable ${LDFLAGS}"
12542 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12544 esac
12545 fi;;
12546 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
12547 OpenUNIX*|UnixWare*)
12548 if test "$GCC" = "yes"
12549 then LDSHARED='$(CC) -shared'
12550 else LDSHARED='$(CC) -G'
12551 fi;;
12552 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
12553 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12554 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
12555 atheos*) LDSHARED="gcc -shared";;
12556 *) LDSHARED="ld";;
12557 esac
12559 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12560 echo "${ECHO_T}$LDSHARED" >&6; }
12561 BLDSHARED=${BLDSHARED-$LDSHARED}
12562 # CCSHARED are the C *flags* used to create objects to go into a shared
12563 # library (module) -- this is only needed for a few systems
12564 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12565 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12566 if test -z "$CCSHARED"
12567 then
12568 case $ac_sys_system/$ac_sys_release in
12569 SunOS*) if test "$GCC" = yes;
12570 then CCSHARED="-fPIC";
12571 elif test `uname -p` = sparc;
12572 then CCSHARED="-xcode=pic32";
12573 else CCSHARED="-Kpic";
12574 fi;;
12575 hp*|HP*) if test "$GCC" = yes;
12576 then CCSHARED="-fPIC";
12577 else CCSHARED="+z";
12578 fi;;
12579 Linux*|GNU*) CCSHARED="-fPIC";;
12580 BSD/OS*/4*) CCSHARED="-fpic";;
12581 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
12582 OpenUNIX*|UnixWare*)
12583 if test "$GCC" = "yes"
12584 then CCSHARED="-fPIC"
12585 else CCSHARED="-KPIC"
12586 fi;;
12587 SCO_SV*)
12588 if test "$GCC" = "yes"
12589 then CCSHARED="-fPIC"
12590 else CCSHARED="-Kpic -belf"
12591 fi;;
12592 Monterey*) CCSHARED="-G";;
12593 IRIX*/6*) case $CC in
12594 *gcc*) CCSHARED="-shared";;
12595 *) CCSHARED="";;
12596 esac;;
12597 atheos*) CCSHARED="-fPIC";;
12598 esac
12600 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12601 echo "${ECHO_T}$CCSHARED" >&6; }
12602 # LINKFORSHARED are the flags passed to the $(CC) command that links
12603 # the python executable -- this is only needed for a few systems
12604 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12605 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12606 if test -z "$LINKFORSHARED"
12607 then
12608 case $ac_sys_system/$ac_sys_release in
12609 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
12610 hp*|HP*)
12611 LINKFORSHARED="-Wl,-E -Wl,+s";;
12612 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12613 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
12614 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
12615 # -u libsys_s pulls in all symbols in libsys
12616 Darwin/*)
12617 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12618 # which is
12619 # not used by the core itself but which needs to be in the core so
12620 # that dynamically loaded extension modules have access to it.
12621 # -prebind is no longer used, because it actually seems to give a
12622 # slowdown in stead of a speedup, maybe due to the large number of
12623 # dynamic loads Python does.
12625 LINKFORSHARED="$extra_undefs"
12626 if test "$enable_framework"
12627 then
12628 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12630 LINKFORSHARED="$LINKFORSHARED";;
12631 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
12632 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
12633 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
12634 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
12635 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12636 then
12637 LINKFORSHARED="-Wl,--export-dynamic"
12638 fi;;
12639 SunOS/5*) case $CC in
12640 *gcc*)
12641 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
12642 then
12643 LINKFORSHARED="-Xlinker --export-dynamic"
12644 fi;;
12645 esac;;
12646 CYGWIN*)
12647 if test $enable_shared = "no"
12648 then
12649 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
12650 fi;;
12651 esac
12653 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12654 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12657 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12658 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12659 if test ! "$LIBRARY" = "$LDLIBRARY"
12660 then
12661 case $ac_sys_system in
12662 CYGWIN*)
12663 # Cygwin needs CCSHARED when building extension DLLs
12664 # but not when building the interpreter DLL.
12665 CFLAGSFORSHARED='';;
12667 CFLAGSFORSHARED='$(CCSHARED)'
12668 esac
12670 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12671 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12673 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12674 # library (with --enable-shared).
12675 # For platforms on which shared libraries are not allowed to have unresolved
12676 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12677 # if it is not required, since it creates a dependency of the shared library
12678 # to LIBS. This, in turn, means that applications linking the shared libpython
12679 # don't need to link LIBS explicitly. The default should be only changed
12680 # on systems where this approach causes problems.
12682 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12683 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12684 case "$ac_sys_system" in
12686 SHLIBS='$(LIBS)';;
12687 esac
12688 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12689 echo "${ECHO_T}$SHLIBS" >&6; }
12692 # checks for libraries
12694 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12695 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12696 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699 ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-ldl $LIBS"
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char dlopen ();
12716 main ()
12718 return dlopen ();
12720 return 0;
12722 _ACEOF
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12728 esac
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_link") 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && {
12737 test -z "$ac_c_werror_flag" ||
12738 test ! -s conftest.err
12739 } && test -s conftest$ac_exeext &&
12740 $as_test_x conftest$ac_exeext; then
12741 ac_cv_lib_dl_dlopen=yes
12742 else
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 ac_cv_lib_dl_dlopen=no
12749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12754 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12755 if test $ac_cv_lib_dl_dlopen = yes; then
12756 cat >>confdefs.h <<_ACEOF
12757 #define HAVE_LIBDL 1
12758 _ACEOF
12760 LIBS="-ldl $LIBS"
12763 # Dynamic linking for SunOS/Solaris and SYSV
12765 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770 ac_check_lib_save_LIBS=$LIBS
12771 LIBS="-ldld $LIBS"
12772 cat >conftest.$ac_ext <<_ACEOF
12773 /* confdefs.h. */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12782 #ifdef __cplusplus
12783 extern "C"
12784 #endif
12785 char shl_load ();
12787 main ()
12789 return shl_load ();
12791 return 0;
12793 _ACEOF
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (ac_try="$ac_link"
12796 case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12799 esac
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_link") 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } && {
12808 test -z "$ac_c_werror_flag" ||
12809 test ! -s conftest.err
12810 } && test -s conftest$ac_exeext &&
12811 $as_test_x conftest$ac_exeext; then
12812 ac_cv_lib_dld_shl_load=yes
12813 else
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 ac_cv_lib_dld_shl_load=no
12820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12821 conftest$ac_exeext conftest.$ac_ext
12822 LIBS=$ac_check_lib_save_LIBS
12824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12825 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12826 if test $ac_cv_lib_dld_shl_load = yes; then
12827 cat >>confdefs.h <<_ACEOF
12828 #define HAVE_LIBDLD 1
12829 _ACEOF
12831 LIBS="-ldld $LIBS"
12834 # Dynamic linking for HP-UX
12836 # only check for sem_ini if thread support is requested
12837 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12838 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12839 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12840 if test "${ac_cv_search_sem_init+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843 ac_func_search_save_LIBS=$LIBS
12844 cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h. */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12854 #ifdef __cplusplus
12855 extern "C"
12856 #endif
12857 char sem_init ();
12859 main ()
12861 return sem_init ();
12863 return 0;
12865 _ACEOF
12866 for ac_lib in '' pthread rt posix4; do
12867 if test -z "$ac_lib"; then
12868 ac_res="none required"
12869 else
12870 ac_res=-l$ac_lib
12871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (ac_try="$ac_link"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878 esac
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_link") 2>conftest.er1
12881 ac_status=$?
12882 grep -v '^ *+' conftest.er1 >conftest.err
12883 rm -f conftest.er1
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest$ac_exeext &&
12890 $as_test_x conftest$ac_exeext; then
12891 ac_cv_search_sem_init=$ac_res
12892 else
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12900 conftest$ac_exeext
12901 if test "${ac_cv_search_sem_init+set}" = set; then
12902 break
12904 done
12905 if test "${ac_cv_search_sem_init+set}" = set; then
12907 else
12908 ac_cv_search_sem_init=no
12910 rm conftest.$ac_ext
12911 LIBS=$ac_func_search_save_LIBS
12913 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12914 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12915 ac_res=$ac_cv_search_sem_init
12916 if test "$ac_res" != no; then
12917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12920 # 'Real Time' functions on Solaris
12921 # posix4 on Solaris 2.6
12922 # pthread (first!) on Linux
12925 # check if we need libintl for locale functions
12926 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12927 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12928 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 else
12931 ac_check_lib_save_LIBS=$LIBS
12932 LIBS="-lintl $LIBS"
12933 cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h. */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12940 /* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12943 #ifdef __cplusplus
12944 extern "C"
12945 #endif
12946 char textdomain ();
12948 main ()
12950 return textdomain ();
12952 return 0;
12954 _ACEOF
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (ac_try="$ac_link"
12957 case "(($ac_try" in
12958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12959 *) ac_try_echo=$ac_try;;
12960 esac
12961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12962 (eval "$ac_link") 2>conftest.er1
12963 ac_status=$?
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } && {
12969 test -z "$ac_c_werror_flag" ||
12970 test ! -s conftest.err
12971 } && test -s conftest$ac_exeext &&
12972 $as_test_x conftest$ac_exeext; then
12973 ac_cv_lib_intl_textdomain=yes
12974 else
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 ac_cv_lib_intl_textdomain=no
12981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12982 conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12985 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12986 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12987 if test $ac_cv_lib_intl_textdomain = yes; then
12989 cat >>confdefs.h <<\_ACEOF
12990 #define WITH_LIBINTL 1
12991 _ACEOF
12996 # checks for system dependent C++ extensions support
12997 case "$ac_sys_system" in
12998 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12999 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include "/usr/lpp/xlC/include/load.h"
13008 main ()
13010 loadAndInit("", 0, "")
13012 return 0;
13014 _ACEOF
13015 rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (ac_try="$ac_link"
13017 case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13020 esac
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_link") 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } && {
13029 test -z "$ac_c_werror_flag" ||
13030 test ! -s conftest.err
13031 } && test -s conftest$ac_exeext &&
13032 $as_test_x conftest$ac_exeext; then
13034 cat >>confdefs.h <<\_ACEOF
13035 #define AIX_GENUINE_CPLUSPLUS 1
13036 _ACEOF
13038 { echo "$as_me:$LINENO: result: yes" >&5
13039 echo "${ECHO_T}yes" >&6; }
13040 else
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 { echo "$as_me:$LINENO: result: no" >&5
13045 echo "${ECHO_T}no" >&6; }
13048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13049 conftest$ac_exeext conftest.$ac_ext;;
13050 *) ;;
13051 esac
13053 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13054 # BeOS' sockets are stashed in libnet.
13055 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13056 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13057 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060 ac_check_lib_save_LIBS=$LIBS
13061 LIBS="-lnsl $LIBS"
13062 cat >conftest.$ac_ext <<_ACEOF
13063 /* confdefs.h. */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13069 /* Override any GCC internal prototype to avoid an error.
13070 Use char because int might match the return type of a GCC
13071 builtin and then its argument prototype would still apply. */
13072 #ifdef __cplusplus
13073 extern "C"
13074 #endif
13075 char t_open ();
13077 main ()
13079 return t_open ();
13081 return 0;
13083 _ACEOF
13084 rm -f conftest.$ac_objext conftest$ac_exeext
13085 if { (ac_try="$ac_link"
13086 case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_link") 2>conftest.er1
13092 ac_status=$?
13093 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && {
13098 test -z "$ac_c_werror_flag" ||
13099 test ! -s conftest.err
13100 } && test -s conftest$ac_exeext &&
13101 $as_test_x conftest$ac_exeext; then
13102 ac_cv_lib_nsl_t_open=yes
13103 else
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 ac_cv_lib_nsl_t_open=no
13110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13111 conftest$ac_exeext conftest.$ac_ext
13112 LIBS=$ac_check_lib_save_LIBS
13114 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13115 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13116 if test $ac_cv_lib_nsl_t_open = yes; then
13117 LIBS="-lnsl $LIBS"
13119 # SVR4
13120 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13121 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13122 if test "${ac_cv_lib_socket_socket+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13124 else
13125 ac_check_lib_save_LIBS=$LIBS
13126 LIBS="-lsocket $LIBS $LIBS"
13127 cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h. */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13134 /* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13137 #ifdef __cplusplus
13138 extern "C"
13139 #endif
13140 char socket ();
13142 main ()
13144 return socket ();
13146 return 0;
13148 _ACEOF
13149 rm -f conftest.$ac_objext conftest$ac_exeext
13150 if { (ac_try="$ac_link"
13151 case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13154 esac
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_link") 2>conftest.er1
13157 ac_status=$?
13158 grep -v '^ *+' conftest.er1 >conftest.err
13159 rm -f conftest.er1
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } && {
13163 test -z "$ac_c_werror_flag" ||
13164 test ! -s conftest.err
13165 } && test -s conftest$ac_exeext &&
13166 $as_test_x conftest$ac_exeext; then
13167 ac_cv_lib_socket_socket=yes
13168 else
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13172 ac_cv_lib_socket_socket=no
13175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13176 conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13179 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13180 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13181 if test $ac_cv_lib_socket_socket = yes; then
13182 LIBS="-lsocket $LIBS"
13184 # SVR4 sockets
13186 case "$ac_sys_system" in
13187 BeOS*)
13188 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13189 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13190 if test "${ac_cv_lib_net_socket+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193 ac_check_lib_save_LIBS=$LIBS
13194 LIBS="-lnet $LIBS $LIBS"
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char socket ();
13210 main ()
13212 return socket ();
13214 return 0;
13216 _ACEOF
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest$ac_exeext &&
13234 $as_test_x conftest$ac_exeext; then
13235 ac_cv_lib_net_socket=yes
13236 else
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13240 ac_cv_lib_net_socket=no
13243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13244 conftest$ac_exeext conftest.$ac_ext
13245 LIBS=$ac_check_lib_save_LIBS
13247 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13248 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13249 if test $ac_cv_lib_net_socket = yes; then
13250 LIBS="-lnet $LIBS"
13252 # BeOS
13254 esac
13256 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13257 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13259 # Check whether --with-libs was given.
13260 if test "${with_libs+set}" = set; then
13261 withval=$with_libs;
13262 { echo "$as_me:$LINENO: result: $withval" >&5
13263 echo "${ECHO_T}$withval" >&6; }
13264 LIBS="$withval $LIBS"
13266 else
13267 { echo "$as_me:$LINENO: result: no" >&5
13268 echo "${ECHO_T}no" >&6; }
13272 # Check for use of the system libffi library
13273 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13274 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13276 # Check whether --with-system_ffi was given.
13277 if test "${with_system_ffi+set}" = set; then
13278 withval=$with_system_ffi;
13282 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13283 echo "${ECHO_T}$with_system_ffi" >&6; }
13285 # Determine if signalmodule should be used.
13288 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13289 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13291 # Check whether --with-signal-module was given.
13292 if test "${with_signal_module+set}" = set; then
13293 withval=$with_signal_module;
13297 if test -z "$with_signal_module"
13298 then with_signal_module="yes"
13300 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13301 echo "${ECHO_T}$with_signal_module" >&6; }
13303 if test "${with_signal_module}" = "yes"; then
13304 USE_SIGNAL_MODULE=""
13305 SIGNAL_OBJS=""
13306 else
13307 USE_SIGNAL_MODULE="#"
13308 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13311 # This is used to generate Setup.config
13313 USE_THREAD_MODULE=""
13315 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13316 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13319 # Check whether --with-dec-threads was given.
13320 if test "${with_dec_threads+set}" = set; then
13321 withval=$with_dec_threads;
13322 { echo "$as_me:$LINENO: result: $withval" >&5
13323 echo "${ECHO_T}$withval" >&6; }
13324 LDLAST=-threads
13325 if test "${with_thread+set}" != set; then
13326 with_thread="$withval";
13328 else
13329 { echo "$as_me:$LINENO: result: no" >&5
13330 echo "${ECHO_T}no" >&6; }
13334 # Templates for things AC_DEFINEd more than once.
13335 # For a single AC_DEFINE, no template is needed.
13343 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13344 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13346 # Check whether --with-threads was given.
13347 if test "${with_threads+set}" = set; then
13348 withval=$with_threads;
13352 # --with-thread is deprecated, but check for it anyway
13354 # Check whether --with-thread was given.
13355 if test "${with_thread+set}" = set; then
13356 withval=$with_thread; with_threads=$with_thread
13360 if test -z "$with_threads"
13361 then with_threads="yes"
13363 { echo "$as_me:$LINENO: result: $with_threads" >&5
13364 echo "${ECHO_T}$with_threads" >&6; }
13367 if test "$with_threads" = "no"
13368 then
13369 USE_THREAD_MODULE="#"
13370 elif test "$ac_cv_pthread_is_default" = yes
13371 then
13372 cat >>confdefs.h <<\_ACEOF
13373 #define WITH_THREAD 1
13374 _ACEOF
13376 # Defining _REENTRANT on system with POSIX threads should not hurt.
13377 cat >>confdefs.h <<\_ACEOF
13378 #define _REENTRANT 1
13379 _ACEOF
13381 posix_threads=yes
13382 THREADOBJ="Python/thread.o"
13383 elif test "$ac_cv_kpthread" = "yes"
13384 then
13385 CC="$CC -Kpthread"
13386 if test "$ac_cv_cxx_thread" = "yes"; then
13387 CXX="$CXX -Kpthread"
13389 cat >>confdefs.h <<\_ACEOF
13390 #define WITH_THREAD 1
13391 _ACEOF
13393 posix_threads=yes
13394 THREADOBJ="Python/thread.o"
13395 elif test "$ac_cv_kthread" = "yes"
13396 then
13397 CC="$CC -Kthread"
13398 if test "$ac_cv_cxx_thread" = "yes"; then
13399 CXX="$CXX -Kthread"
13401 cat >>confdefs.h <<\_ACEOF
13402 #define WITH_THREAD 1
13403 _ACEOF
13405 posix_threads=yes
13406 THREADOBJ="Python/thread.o"
13407 elif test "$ac_cv_pthread" = "yes"
13408 then
13409 CC="$CC -pthread"
13410 if test "$ac_cv_cxx_thread" = "yes"; then
13411 CXX="$CXX -pthread"
13413 cat >>confdefs.h <<\_ACEOF
13414 #define WITH_THREAD 1
13415 _ACEOF
13417 posix_threads=yes
13418 THREADOBJ="Python/thread.o"
13419 else
13420 if test ! -z "$with_threads" -a -d "$with_threads"
13421 then LDFLAGS="$LDFLAGS -L$with_threads"
13423 if test ! -z "$withval" -a -d "$withval"
13424 then LDFLAGS="$LDFLAGS -L$withval"
13427 # According to the POSIX spec, a pthreads implementation must
13428 # define _POSIX_THREADS in unistd.h. Some apparently don't
13429 # (e.g. gnu pth with pthread emulation)
13430 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13431 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h. */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13439 #include <unistd.h>
13440 #ifdef _POSIX_THREADS
13442 #endif
13444 _ACEOF
13445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13446 $EGREP "yes" >/dev/null 2>&1; then
13447 unistd_defines_pthreads=yes
13448 else
13449 unistd_defines_pthreads=no
13451 rm -f conftest*
13453 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13454 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13456 cat >>confdefs.h <<\_ACEOF
13457 #define _REENTRANT 1
13458 _ACEOF
13460 if test "${ac_cv_header_cthreads_h+set}" = set; then
13461 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13462 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13463 if test "${ac_cv_header_cthreads_h+set}" = set; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13467 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13468 else
13469 # Is the header compilable?
13470 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13471 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13472 cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h. */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 $ac_includes_default
13479 #include <cthreads.h>
13480 _ACEOF
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
13489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
13498 ac_header_compiler=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_compiler=no
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13508 echo "${ECHO_T}$ac_header_compiler" >&6; }
13510 # Is the header present?
13511 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13512 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h. */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 #include <cthreads.h>
13520 _ACEOF
13521 if { (ac_try="$ac_cpp conftest.$ac_ext"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13528 ac_status=$?
13529 grep -v '^ *+' conftest.er1 >conftest.err
13530 rm -f conftest.er1
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } >/dev/null && {
13534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13535 test ! -s conftest.err
13536 }; then
13537 ac_header_preproc=yes
13538 else
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_header_preproc=no
13545 rm -f conftest.err conftest.$ac_ext
13546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6; }
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551 yes:no: )
13552 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc=yes
13558 no:yes:* )
13559 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13571 ( cat <<\_ASBOX
13572 ## ------------------------------------------------ ##
13573 ## Report this to http://www.python.org/python-bugs ##
13574 ## ------------------------------------------------ ##
13575 _ASBOX
13576 ) | sed "s/^/$as_me: WARNING: /" >&2
13578 esac
13579 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13580 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13581 if test "${ac_cv_header_cthreads_h+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584 ac_cv_header_cthreads_h=$ac_header_preproc
13586 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13587 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13590 if test $ac_cv_header_cthreads_h = yes; then
13591 cat >>confdefs.h <<\_ACEOF
13592 #define WITH_THREAD 1
13593 _ACEOF
13595 cat >>confdefs.h <<\_ACEOF
13596 #define C_THREADS 1
13597 _ACEOF
13600 cat >>confdefs.h <<\_ACEOF
13601 #define HURD_C_THREADS 1
13602 _ACEOF
13604 LIBS="$LIBS -lthreads"
13605 THREADOBJ="Python/thread.o"
13606 else
13608 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13609 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13610 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13611 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13615 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13616 else
13617 # Is the header compilable?
13618 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13619 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13620 cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h. */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 $ac_includes_default
13627 #include <mach/cthreads.h>
13628 _ACEOF
13629 rm -f conftest.$ac_objext
13630 if { (ac_try="$ac_compile"
13631 case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13634 esac
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_compile") 2>conftest.er1
13637 ac_status=$?
13638 grep -v '^ *+' conftest.er1 >conftest.err
13639 rm -f conftest.er1
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } && {
13643 test -z "$ac_c_werror_flag" ||
13644 test ! -s conftest.err
13645 } && test -s conftest.$ac_objext; then
13646 ac_header_compiler=yes
13647 else
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 ac_header_compiler=no
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13656 echo "${ECHO_T}$ac_header_compiler" >&6; }
13658 # Is the header present?
13659 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13660 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h. */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 #include <mach/cthreads.h>
13668 _ACEOF
13669 if { (ac_try="$ac_cpp conftest.$ac_ext"
13670 case "(($ac_try" in
13671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672 *) ac_try_echo=$ac_try;;
13673 esac
13674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13676 ac_status=$?
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } >/dev/null && {
13682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13683 test ! -s conftest.err
13684 }; then
13685 ac_header_preproc=yes
13686 else
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13690 ac_header_preproc=no
13693 rm -f conftest.err conftest.$ac_ext
13694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13695 echo "${ECHO_T}$ac_header_preproc" >&6; }
13697 # So? What about this header?
13698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13699 yes:no: )
13700 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13701 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13703 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13704 ac_header_preproc=yes
13706 no:yes:* )
13707 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13708 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13709 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13710 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13711 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13712 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13714 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13716 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13718 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13719 ( cat <<\_ASBOX
13720 ## ------------------------------------------------ ##
13721 ## Report this to http://www.python.org/python-bugs ##
13722 ## ------------------------------------------------ ##
13723 _ASBOX
13724 ) | sed "s/^/$as_me: WARNING: /" >&2
13726 esac
13727 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13728 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13729 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732 ac_cv_header_mach_cthreads_h=$ac_header_preproc
13734 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13735 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13738 if test $ac_cv_header_mach_cthreads_h = yes; then
13739 cat >>confdefs.h <<\_ACEOF
13740 #define WITH_THREAD 1
13741 _ACEOF
13743 cat >>confdefs.h <<\_ACEOF
13744 #define C_THREADS 1
13745 _ACEOF
13748 cat >>confdefs.h <<\_ACEOF
13749 #define MACH_C_THREADS 1
13750 _ACEOF
13752 THREADOBJ="Python/thread.o"
13753 else
13755 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13756 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13758 # Check whether --with-pth was given.
13759 if test "${with_pth+set}" = set; then
13760 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13761 echo "${ECHO_T}$withval" >&6; }
13762 cat >>confdefs.h <<\_ACEOF
13763 #define WITH_THREAD 1
13764 _ACEOF
13767 cat >>confdefs.h <<\_ACEOF
13768 #define HAVE_PTH 1
13769 _ACEOF
13771 LIBS="-lpth $LIBS"
13772 THREADOBJ="Python/thread.o"
13773 else
13774 { echo "$as_me:$LINENO: result: no" >&5
13775 echo "${ECHO_T}no" >&6; }
13777 # Just looking for pthread_create in libpthread is not enough:
13778 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13779 # So we really have to include pthread.h, and then link.
13780 _libs=$LIBS
13781 LIBS="$LIBS -lpthread"
13782 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13783 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h. */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 #include <pthread.h>
13792 void * start_routine (void *arg) { exit (0); }
13794 main ()
13797 pthread_create (NULL, NULL, start_routine, NULL)
13799 return 0;
13801 _ACEOF
13802 rm -f conftest.$ac_objext conftest$ac_exeext
13803 if { (ac_try="$ac_link"
13804 case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_link") 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } && {
13816 test -z "$ac_c_werror_flag" ||
13817 test ! -s conftest.err
13818 } && test -s conftest$ac_exeext &&
13819 $as_test_x conftest$ac_exeext; then
13821 { echo "$as_me:$LINENO: result: yes" >&5
13822 echo "${ECHO_T}yes" >&6; }
13823 cat >>confdefs.h <<\_ACEOF
13824 #define WITH_THREAD 1
13825 _ACEOF
13827 posix_threads=yes
13828 THREADOBJ="Python/thread.o"
13829 else
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13834 LIBS=$_libs
13835 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13836 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13837 if test "${ac_cv_func_pthread_detach+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840 cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h. */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13848 #define pthread_detach innocuous_pthread_detach
13850 /* System header to define __stub macros and hopefully few prototypes,
13851 which can conflict with char pthread_detach (); below.
13852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13853 <limits.h> exists even on freestanding compilers. */
13855 #ifdef __STDC__
13856 # include <limits.h>
13857 #else
13858 # include <assert.h>
13859 #endif
13861 #undef pthread_detach
13863 /* Override any GCC internal prototype to avoid an error.
13864 Use char because int might match the return type of a GCC
13865 builtin and then its argument prototype would still apply. */
13866 #ifdef __cplusplus
13867 extern "C"
13868 #endif
13869 char pthread_detach ();
13870 /* The GNU C library defines this for functions which it implements
13871 to always fail with ENOSYS. Some functions are actually named
13872 something starting with __ and the normal name is an alias. */
13873 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13874 choke me
13875 #endif
13878 main ()
13880 return pthread_detach ();
13882 return 0;
13884 _ACEOF
13885 rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (ac_try="$ac_link"
13887 case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_link") 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } && {
13899 test -z "$ac_c_werror_flag" ||
13900 test ! -s conftest.err
13901 } && test -s conftest$ac_exeext &&
13902 $as_test_x conftest$ac_exeext; then
13903 ac_cv_func_pthread_detach=yes
13904 else
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 ac_cv_func_pthread_detach=no
13911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13912 conftest$ac_exeext conftest.$ac_ext
13914 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13915 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13916 if test $ac_cv_func_pthread_detach = yes; then
13917 cat >>confdefs.h <<\_ACEOF
13918 #define WITH_THREAD 1
13919 _ACEOF
13921 posix_threads=yes
13922 THREADOBJ="Python/thread.o"
13923 else
13925 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13926 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13927 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13928 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13932 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13933 else
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13936 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h. */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <atheos/threads.h>
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_header_compiler=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_header_compiler=no
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13977 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h. */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <atheos/threads.h>
13985 _ACEOF
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev/null && {
13999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14001 }; then
14002 ac_header_preproc=yes
14003 else
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14007 ac_header_preproc=no
14010 rm -f conftest.err conftest.$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012 echo "${ECHO_T}$ac_header_preproc" >&6; }
14014 # So? What about this header?
14015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14016 yes:no: )
14017 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14020 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14021 ac_header_preproc=yes
14023 no:yes:* )
14024 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14033 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14036 ( cat <<\_ASBOX
14037 ## ------------------------------------------------ ##
14038 ## Report this to http://www.python.org/python-bugs ##
14039 ## ------------------------------------------------ ##
14040 _ASBOX
14041 ) | sed "s/^/$as_me: WARNING: /" >&2
14043 esac
14044 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14045 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14046 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049 ac_cv_header_atheos_threads_h=$ac_header_preproc
14051 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14052 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14055 if test $ac_cv_header_atheos_threads_h = yes; then
14056 cat >>confdefs.h <<\_ACEOF
14057 #define WITH_THREAD 1
14058 _ACEOF
14061 cat >>confdefs.h <<\_ACEOF
14062 #define ATHEOS_THREADS 1
14063 _ACEOF
14065 THREADOBJ="Python/thread.o"
14066 else
14068 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14069 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14070 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14071 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14075 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14076 else
14077 # Is the header compilable?
14078 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14079 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14080 cat >conftest.$ac_ext <<_ACEOF
14081 /* confdefs.h. */
14082 _ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14086 $ac_includes_default
14087 #include <kernel/OS.h>
14088 _ACEOF
14089 rm -f conftest.$ac_objext
14090 if { (ac_try="$ac_compile"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14094 esac
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_compile") 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && {
14103 test -z "$ac_c_werror_flag" ||
14104 test ! -s conftest.err
14105 } && test -s conftest.$ac_objext; then
14106 ac_header_compiler=yes
14107 else
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14111 ac_header_compiler=no
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14116 echo "${ECHO_T}$ac_header_compiler" >&6; }
14118 # Is the header present?
14119 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14120 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14121 cat >conftest.$ac_ext <<_ACEOF
14122 /* confdefs.h. */
14123 _ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 #include <kernel/OS.h>
14128 _ACEOF
14129 if { (ac_try="$ac_cpp conftest.$ac_ext"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133 esac
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } >/dev/null && {
14142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14144 }; then
14145 ac_header_preproc=yes
14146 else
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14150 ac_header_preproc=no
14153 rm -f conftest.err conftest.$ac_ext
14154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14155 echo "${ECHO_T}$ac_header_preproc" >&6; }
14157 # So? What about this header?
14158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14159 yes:no: )
14160 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14161 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14162 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14163 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14164 ac_header_preproc=yes
14166 no:yes:* )
14167 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14168 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14169 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14170 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14171 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14172 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14174 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14176 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14178 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14179 ( cat <<\_ASBOX
14180 ## ------------------------------------------------ ##
14181 ## Report this to http://www.python.org/python-bugs ##
14182 ## ------------------------------------------------ ##
14183 _ASBOX
14184 ) | sed "s/^/$as_me: WARNING: /" >&2
14186 esac
14187 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14188 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14189 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192 ac_cv_header_kernel_OS_h=$ac_header_preproc
14194 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14195 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14198 if test $ac_cv_header_kernel_OS_h = yes; then
14199 cat >>confdefs.h <<\_ACEOF
14200 #define WITH_THREAD 1
14201 _ACEOF
14204 cat >>confdefs.h <<\_ACEOF
14205 #define BEOS_THREADS 1
14206 _ACEOF
14208 THREADOBJ="Python/thread.o"
14209 else
14211 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14212 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14213 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216 ac_check_lib_save_LIBS=$LIBS
14217 LIBS="-lpthreads $LIBS"
14218 cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14228 #ifdef __cplusplus
14229 extern "C"
14230 #endif
14231 char pthread_create ();
14233 main ()
14235 return pthread_create ();
14237 return 0;
14239 _ACEOF
14240 rm -f conftest.$ac_objext conftest$ac_exeext
14241 if { (ac_try="$ac_link"
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_link") 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); } && {
14254 test -z "$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14256 } && test -s conftest$ac_exeext &&
14257 $as_test_x conftest$ac_exeext; then
14258 ac_cv_lib_pthreads_pthread_create=yes
14259 else
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_cv_lib_pthreads_pthread_create=no
14266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14267 conftest$ac_exeext conftest.$ac_ext
14268 LIBS=$ac_check_lib_save_LIBS
14270 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14271 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14272 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14273 cat >>confdefs.h <<\_ACEOF
14274 #define WITH_THREAD 1
14275 _ACEOF
14277 posix_threads=yes
14278 LIBS="$LIBS -lpthreads"
14279 THREADOBJ="Python/thread.o"
14280 else
14282 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14283 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14284 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287 ac_check_lib_save_LIBS=$LIBS
14288 LIBS="-lc_r $LIBS"
14289 cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h. */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14296 /* Override any GCC internal prototype to avoid an error.
14297 Use char because int might match the return type of a GCC
14298 builtin and then its argument prototype would still apply. */
14299 #ifdef __cplusplus
14300 extern "C"
14301 #endif
14302 char pthread_create ();
14304 main ()
14306 return pthread_create ();
14308 return 0;
14310 _ACEOF
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (ac_try="$ac_link"
14313 case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14316 esac
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_link") 2>conftest.er1
14319 ac_status=$?
14320 grep -v '^ *+' conftest.er1 >conftest.err
14321 rm -f conftest.er1
14322 cat conftest.err >&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } && {
14325 test -z "$ac_c_werror_flag" ||
14326 test ! -s conftest.err
14327 } && test -s conftest$ac_exeext &&
14328 $as_test_x conftest$ac_exeext; then
14329 ac_cv_lib_c_r_pthread_create=yes
14330 else
14331 echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14334 ac_cv_lib_c_r_pthread_create=no
14337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14338 conftest$ac_exeext conftest.$ac_ext
14339 LIBS=$ac_check_lib_save_LIBS
14341 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14342 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14343 if test $ac_cv_lib_c_r_pthread_create = yes; then
14344 cat >>confdefs.h <<\_ACEOF
14345 #define WITH_THREAD 1
14346 _ACEOF
14348 posix_threads=yes
14349 LIBS="$LIBS -lc_r"
14350 THREADOBJ="Python/thread.o"
14351 else
14353 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14354 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14355 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358 ac_check_lib_save_LIBS=$LIBS
14359 LIBS="-lpthread $LIBS"
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h. */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14367 /* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
14370 #ifdef __cplusplus
14371 extern "C"
14372 #endif
14373 char __pthread_create_system ();
14375 main ()
14377 return __pthread_create_system ();
14379 return 0;
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (ac_try="$ac_link"
14384 case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387 esac
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_link") 2>conftest.er1
14390 ac_status=$?
14391 grep -v '^ *+' conftest.er1 >conftest.err
14392 rm -f conftest.er1
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } && {
14396 test -z "$ac_c_werror_flag" ||
14397 test ! -s conftest.err
14398 } && test -s conftest$ac_exeext &&
14399 $as_test_x conftest$ac_exeext; then
14400 ac_cv_lib_pthread___pthread_create_system=yes
14401 else
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 ac_cv_lib_pthread___pthread_create_system=no
14408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14409 conftest$ac_exeext conftest.$ac_ext
14410 LIBS=$ac_check_lib_save_LIBS
14412 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14413 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14414 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14415 cat >>confdefs.h <<\_ACEOF
14416 #define WITH_THREAD 1
14417 _ACEOF
14419 posix_threads=yes
14420 LIBS="$LIBS -lpthread"
14421 THREADOBJ="Python/thread.o"
14422 else
14424 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14425 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14426 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429 ac_check_lib_save_LIBS=$LIBS
14430 LIBS="-lcma $LIBS"
14431 cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h. */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14438 /* Override any GCC internal prototype to avoid an error.
14439 Use char because int might match the return type of a GCC
14440 builtin and then its argument prototype would still apply. */
14441 #ifdef __cplusplus
14442 extern "C"
14443 #endif
14444 char pthread_create ();
14446 main ()
14448 return pthread_create ();
14450 return 0;
14452 _ACEOF
14453 rm -f conftest.$ac_objext conftest$ac_exeext
14454 if { (ac_try="$ac_link"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_link") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest$ac_exeext &&
14470 $as_test_x conftest$ac_exeext; then
14471 ac_cv_lib_cma_pthread_create=yes
14472 else
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14476 ac_cv_lib_cma_pthread_create=no
14479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14480 conftest$ac_exeext conftest.$ac_ext
14481 LIBS=$ac_check_lib_save_LIBS
14483 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14484 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14485 if test $ac_cv_lib_cma_pthread_create = yes; then
14486 cat >>confdefs.h <<\_ACEOF
14487 #define WITH_THREAD 1
14488 _ACEOF
14490 posix_threads=yes
14491 LIBS="$LIBS -lcma"
14492 THREADOBJ="Python/thread.o"
14493 else
14495 USE_THREAD_MODULE="#"
14515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14516 conftest$ac_exeext conftest.$ac_ext
14526 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14527 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14528 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531 ac_check_lib_save_LIBS=$LIBS
14532 LIBS="-lmpc $LIBS"
14533 cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h. */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14540 /* Override any GCC internal prototype to avoid an error.
14541 Use char because int might match the return type of a GCC
14542 builtin and then its argument prototype would still apply. */
14543 #ifdef __cplusplus
14544 extern "C"
14545 #endif
14546 char usconfig ();
14548 main ()
14550 return usconfig ();
14552 return 0;
14554 _ACEOF
14555 rm -f conftest.$ac_objext conftest$ac_exeext
14556 if { (ac_try="$ac_link"
14557 case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_link") 2>conftest.er1
14563 ac_status=$?
14564 grep -v '^ *+' conftest.er1 >conftest.err
14565 rm -f conftest.er1
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && {
14569 test -z "$ac_c_werror_flag" ||
14570 test ! -s conftest.err
14571 } && test -s conftest$ac_exeext &&
14572 $as_test_x conftest$ac_exeext; then
14573 ac_cv_lib_mpc_usconfig=yes
14574 else
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 ac_cv_lib_mpc_usconfig=no
14581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LIBS=$ac_check_lib_save_LIBS
14585 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14586 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14587 if test $ac_cv_lib_mpc_usconfig = yes; then
14588 cat >>confdefs.h <<\_ACEOF
14589 #define WITH_THREAD 1
14590 _ACEOF
14592 LIBS="$LIBS -lmpc"
14593 THREADOBJ="Python/thread.o"
14594 USE_THREAD_MODULE=""
14598 if test "$posix_threads" != "yes"; then
14599 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14600 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14601 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 else
14604 ac_check_lib_save_LIBS=$LIBS
14605 LIBS="-lthread $LIBS"
14606 cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h. */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14613 /* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14616 #ifdef __cplusplus
14617 extern "C"
14618 #endif
14619 char thr_create ();
14621 main ()
14623 return thr_create ();
14625 return 0;
14627 _ACEOF
14628 rm -f conftest.$ac_objext conftest$ac_exeext
14629 if { (ac_try="$ac_link"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633 esac
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_link") 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest$ac_exeext &&
14645 $as_test_x conftest$ac_exeext; then
14646 ac_cv_lib_thread_thr_create=yes
14647 else
14648 echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14651 ac_cv_lib_thread_thr_create=no
14654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14655 conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14658 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14659 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14660 if test $ac_cv_lib_thread_thr_create = yes; then
14661 cat >>confdefs.h <<\_ACEOF
14662 #define WITH_THREAD 1
14663 _ACEOF
14665 LIBS="$LIBS -lthread"
14666 THREADOBJ="Python/thread.o"
14667 USE_THREAD_MODULE=""
14672 if test "$USE_THREAD_MODULE" != "#"
14673 then
14674 # If the above checks didn't disable threads, (at least) OSF1
14675 # needs this '-threads' argument during linking.
14676 case $ac_sys_system in
14677 OSF1) LDLAST=-threads;;
14678 esac
14682 if test "$posix_threads" = "yes"; then
14683 if test "$unistd_defines_pthreads" = "no"; then
14685 cat >>confdefs.h <<\_ACEOF
14686 #define _POSIX_THREADS 1
14687 _ACEOF
14691 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14692 case $ac_sys_system/$ac_sys_release in
14693 SunOS/5.6)
14694 cat >>confdefs.h <<\_ACEOF
14695 #define HAVE_PTHREAD_DESTRUCTOR 1
14696 _ACEOF
14699 SunOS/5.8)
14700 cat >>confdefs.h <<\_ACEOF
14701 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14702 _ACEOF
14705 AIX/5)
14706 cat >>confdefs.h <<\_ACEOF
14707 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14708 _ACEOF
14711 esac
14713 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14714 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14715 if test "${ac_cv_pthread_system_supported+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718 if test "$cross_compiling" = yes; then
14719 ac_cv_pthread_system_supported=no
14720 else
14721 cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h. */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 #include <pthread.h>
14728 void *foo(void *parm) {
14729 return NULL;
14731 main() {
14732 pthread_attr_t attr;
14733 pthread_t id;
14734 if (pthread_attr_init(&attr)) exit(-1);
14735 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14736 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14737 exit(0);
14739 _ACEOF
14740 rm -f conftest$ac_exeext
14741 if { (ac_try="$ac_link"
14742 case "(($ac_try" in
14743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744 *) ac_try_echo=$ac_try;;
14745 esac
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747 (eval "$ac_link") 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14751 { (case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_try") 2>&5
14757 ac_status=$?
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }; then
14760 ac_cv_pthread_system_supported=yes
14761 else
14762 echo "$as_me: program exited with status $ac_status" >&5
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14766 ( exit $ac_status )
14767 ac_cv_pthread_system_supported=no
14769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14777 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14778 if test "$ac_cv_pthread_system_supported" = "yes"; then
14780 cat >>confdefs.h <<\_ACEOF
14781 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14782 _ACEOF
14786 for ac_func in pthread_sigmask
14788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h. */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14802 #define $ac_func innocuous_$ac_func
14804 /* System header to define __stub macros and hopefully few prototypes,
14805 which can conflict with char $ac_func (); below.
14806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14807 <limits.h> exists even on freestanding compilers. */
14809 #ifdef __STDC__
14810 # include <limits.h>
14811 #else
14812 # include <assert.h>
14813 #endif
14815 #undef $ac_func
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14820 #ifdef __cplusplus
14821 extern "C"
14822 #endif
14823 char $ac_func ();
14824 /* The GNU C library defines this for functions which it implements
14825 to always fail with ENOSYS. Some functions are actually named
14826 something starting with __ and the normal name is an alias. */
14827 #if defined __stub_$ac_func || defined __stub___$ac_func
14828 choke me
14829 #endif
14832 main ()
14834 return $ac_func ();
14836 return 0;
14838 _ACEOF
14839 rm -f conftest.$ac_objext conftest$ac_exeext
14840 if { (ac_try="$ac_link"
14841 case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14844 esac
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_link") 2>conftest.er1
14847 ac_status=$?
14848 grep -v '^ *+' conftest.er1 >conftest.err
14849 rm -f conftest.er1
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } && {
14853 test -z "$ac_c_werror_flag" ||
14854 test ! -s conftest.err
14855 } && test -s conftest$ac_exeext &&
14856 $as_test_x conftest$ac_exeext; then
14857 eval "$as_ac_var=yes"
14858 else
14859 echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14862 eval "$as_ac_var=no"
14865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14866 conftest$ac_exeext conftest.$ac_ext
14868 ac_res=`eval echo '${'$as_ac_var'}'`
14869 { echo "$as_me:$LINENO: result: $ac_res" >&5
14870 echo "${ECHO_T}$ac_res" >&6; }
14871 if test `eval echo '${'$as_ac_var'}'` = yes; then
14872 cat >>confdefs.h <<_ACEOF
14873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14874 _ACEOF
14875 case $ac_sys_system in
14876 CYGWIN*)
14878 cat >>confdefs.h <<\_ACEOF
14879 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14880 _ACEOF
14883 esac
14885 done
14890 # Check for enable-ipv6
14893 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14894 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14895 # Check whether --enable-ipv6 was given.
14896 if test "${enable_ipv6+set}" = set; then
14897 enableval=$enable_ipv6; case "$enableval" in
14899 { echo "$as_me:$LINENO: result: no" >&5
14900 echo "${ECHO_T}no" >&6; }
14901 ipv6=no
14903 *) { echo "$as_me:$LINENO: result: yes" >&5
14904 echo "${ECHO_T}yes" >&6; }
14905 cat >>confdefs.h <<\_ACEOF
14906 #define ENABLE_IPV6 1
14907 _ACEOF
14909 ipv6=yes
14911 esac
14912 else
14914 if test "$cross_compiling" = yes; then
14915 { echo "$as_me:$LINENO: result: no" >&5
14916 echo "${ECHO_T}no" >&6; }
14917 ipv6=no
14919 else
14920 cat >conftest.$ac_ext <<_ACEOF
14921 /* confdefs.h. */
14922 _ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h. */
14926 /* AF_INET6 available check */
14927 #include <sys/types.h>
14928 #include <sys/socket.h>
14929 main()
14931 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14932 exit(1);
14933 else
14934 exit(0);
14937 _ACEOF
14938 rm -f conftest$ac_exeext
14939 if { (ac_try="$ac_link"
14940 case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14943 esac
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_link") 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14949 { (case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14952 esac
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_try") 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 { echo "$as_me:$LINENO: result: yes" >&5
14959 echo "${ECHO_T}yes" >&6; }
14960 ipv6=yes
14961 else
14962 echo "$as_me: program exited with status $ac_status" >&5
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ( exit $ac_status )
14967 { echo "$as_me:$LINENO: result: no" >&5
14968 echo "${ECHO_T}no" >&6; }
14969 ipv6=no
14971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14976 if test "$ipv6" = "yes"; then
14977 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14978 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14979 cat >conftest.$ac_ext <<_ACEOF
14980 /* confdefs.h. */
14981 _ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 #include <sys/types.h>
14986 #include <netinet/in.h>
14988 main ()
14990 struct sockaddr_in6 x;
14991 x.sin6_scope_id;
14993 return 0;
14995 _ACEOF
14996 rm -f conftest.$ac_objext
14997 if { (ac_try="$ac_compile"
14998 case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_compile") 2>conftest.er1
15004 ac_status=$?
15005 grep -v '^ *+' conftest.er1 >conftest.err
15006 rm -f conftest.er1
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } && {
15010 test -z "$ac_c_werror_flag" ||
15011 test ! -s conftest.err
15012 } && test -s conftest.$ac_objext; then
15013 { echo "$as_me:$LINENO: result: yes" >&5
15014 echo "${ECHO_T}yes" >&6; }
15015 ipv6=yes
15016 else
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15020 { echo "$as_me:$LINENO: result: no" >&5
15021 echo "${ECHO_T}no" >&6; }
15022 ipv6=no
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 if test "$ipv6" = "yes"; then
15029 cat >>confdefs.h <<\_ACEOF
15030 #define ENABLE_IPV6 1
15031 _ACEOF
15038 ipv6type=unknown
15039 ipv6lib=none
15040 ipv6trylibc=no
15042 if test "$ipv6" = "yes"; then
15043 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15044 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15045 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15047 case $i in
15048 inria)
15049 cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h. */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15056 #include <netinet/in.h>
15057 #ifdef IPV6_INRIA_VERSION
15059 #endif
15060 _ACEOF
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062 $EGREP "yes" >/dev/null 2>&1; then
15063 ipv6type=$i
15065 rm -f conftest*
15068 kame)
15069 cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h. */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15076 #include <netinet/in.h>
15077 #ifdef __KAME__
15079 #endif
15080 _ACEOF
15081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15082 $EGREP "yes" >/dev/null 2>&1; then
15083 ipv6type=$i;
15084 ipv6lib=inet6
15085 ipv6libdir=/usr/local/v6/lib
15086 ipv6trylibc=yes
15088 rm -f conftest*
15091 linux-glibc)
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 #include <features.h>
15100 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15102 #endif
15103 _ACEOF
15104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15105 $EGREP "yes" >/dev/null 2>&1; then
15106 ipv6type=$i;
15107 ipv6trylibc=yes
15109 rm -f conftest*
15112 linux-inet6)
15113 if test -d /usr/inet6; then
15114 ipv6type=$i
15115 ipv6lib=inet6
15116 ipv6libdir=/usr/inet6/lib
15117 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15120 solaris)
15121 if test -f /etc/netconfig; then
15122 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15123 ipv6type=$i
15124 ipv6trylibc=yes
15128 toshiba)
15129 cat >conftest.$ac_ext <<_ACEOF
15130 /* confdefs.h. */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15136 #include <sys/param.h>
15137 #ifdef _TOSHIBA_INET6
15139 #endif
15140 _ACEOF
15141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15142 $EGREP "yes" >/dev/null 2>&1; then
15143 ipv6type=$i;
15144 ipv6lib=inet6;
15145 ipv6libdir=/usr/local/v6/lib
15147 rm -f conftest*
15150 v6d)
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h. */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15158 #include </usr/local/v6/include/sys/v6config.h>
15159 #ifdef __V6D__
15161 #endif
15162 _ACEOF
15163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15164 $EGREP "yes" >/dev/null 2>&1; then
15165 ipv6type=$i;
15166 ipv6lib=v6;
15167 ipv6libdir=/usr/local/v6/lib;
15168 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15170 rm -f conftest*
15173 zeta)
15174 cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h. */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15181 #include <sys/param.h>
15182 #ifdef _ZETA_MINAMI_INET6
15184 #endif
15185 _ACEOF
15186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15187 $EGREP "yes" >/dev/null 2>&1; then
15188 ipv6type=$i;
15189 ipv6lib=inet6;
15190 ipv6libdir=/usr/local/v6/lib
15192 rm -f conftest*
15195 esac
15196 if test "$ipv6type" != "unknown"; then
15197 break
15199 done
15200 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15201 echo "${ECHO_T}$ipv6type" >&6; }
15204 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15205 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15206 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15207 echo "using lib$ipv6lib"
15208 else
15209 if test $ipv6trylibc = "yes"; then
15210 echo "using libc"
15211 else
15212 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15213 echo "You need to fetch lib$ipv6lib.a from appropriate"
15214 echo 'ipv6 kit and compile beforehand.'
15215 exit 1
15220 # Check for --with-doc-strings
15221 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15222 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15224 # Check whether --with-doc-strings was given.
15225 if test "${with_doc_strings+set}" = set; then
15226 withval=$with_doc_strings;
15230 if test -z "$with_doc_strings"
15231 then with_doc_strings="yes"
15233 if test "$with_doc_strings" != "no"
15234 then
15236 cat >>confdefs.h <<\_ACEOF
15237 #define WITH_DOC_STRINGS 1
15238 _ACEOF
15241 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15242 echo "${ECHO_T}$with_doc_strings" >&6; }
15244 # Check for Python-specific malloc support
15245 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15246 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15248 # Check whether --with-tsc was given.
15249 if test "${with_tsc+set}" = set; then
15250 withval=$with_tsc;
15251 if test "$withval" != no
15252 then
15254 cat >>confdefs.h <<\_ACEOF
15255 #define WITH_TSC 1
15256 _ACEOF
15258 { echo "$as_me:$LINENO: result: yes" >&5
15259 echo "${ECHO_T}yes" >&6; }
15260 else { echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6; }
15263 else
15264 { echo "$as_me:$LINENO: result: no" >&5
15265 echo "${ECHO_T}no" >&6; }
15269 # Check for Python-specific malloc support
15270 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15271 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15273 # Check whether --with-pymalloc was given.
15274 if test "${with_pymalloc+set}" = set; then
15275 withval=$with_pymalloc;
15279 if test -z "$with_pymalloc"
15280 then with_pymalloc="yes"
15282 if test "$with_pymalloc" != "no"
15283 then
15285 cat >>confdefs.h <<\_ACEOF
15286 #define WITH_PYMALLOC 1
15287 _ACEOF
15290 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15291 echo "${ECHO_T}$with_pymalloc" >&6; }
15293 # Check for --with-wctype-functions
15294 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15295 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15297 # Check whether --with-wctype-functions was given.
15298 if test "${with_wctype_functions+set}" = set; then
15299 withval=$with_wctype_functions;
15300 if test "$withval" != no
15301 then
15303 cat >>confdefs.h <<\_ACEOF
15304 #define WANT_WCTYPE_FUNCTIONS 1
15305 _ACEOF
15307 { echo "$as_me:$LINENO: result: yes" >&5
15308 echo "${ECHO_T}yes" >&6; }
15309 else { echo "$as_me:$LINENO: result: no" >&5
15310 echo "${ECHO_T}no" >&6; }
15312 else
15313 { echo "$as_me:$LINENO: result: no" >&5
15314 echo "${ECHO_T}no" >&6; }
15318 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15320 DLINCLDIR=.
15322 # the dlopen() function means we might want to use dynload_shlib.o. some
15323 # platforms, such as AIX, have dlopen(), but don't want to use it.
15325 for ac_func in dlopen
15327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333 cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h. */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15341 #define $ac_func innocuous_$ac_func
15343 /* System header to define __stub macros and hopefully few prototypes,
15344 which can conflict with char $ac_func (); below.
15345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15346 <limits.h> exists even on freestanding compilers. */
15348 #ifdef __STDC__
15349 # include <limits.h>
15350 #else
15351 # include <assert.h>
15352 #endif
15354 #undef $ac_func
15356 /* Override any GCC internal prototype to avoid an error.
15357 Use char because int might match the return type of a GCC
15358 builtin and then its argument prototype would still apply. */
15359 #ifdef __cplusplus
15360 extern "C"
15361 #endif
15362 char $ac_func ();
15363 /* The GNU C library defines this for functions which it implements
15364 to always fail with ENOSYS. Some functions are actually named
15365 something starting with __ and the normal name is an alias. */
15366 #if defined __stub_$ac_func || defined __stub___$ac_func
15367 choke me
15368 #endif
15371 main ()
15373 return $ac_func ();
15375 return 0;
15377 _ACEOF
15378 rm -f conftest.$ac_objext conftest$ac_exeext
15379 if { (ac_try="$ac_link"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15383 esac
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_link") 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } && {
15392 test -z "$ac_c_werror_flag" ||
15393 test ! -s conftest.err
15394 } && test -s conftest$ac_exeext &&
15395 $as_test_x conftest$ac_exeext; then
15396 eval "$as_ac_var=yes"
15397 else
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15401 eval "$as_ac_var=no"
15404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15405 conftest$ac_exeext conftest.$ac_ext
15407 ac_res=`eval echo '${'$as_ac_var'}'`
15408 { echo "$as_me:$LINENO: result: $ac_res" >&5
15409 echo "${ECHO_T}$ac_res" >&6; }
15410 if test `eval echo '${'$as_ac_var'}'` = yes; then
15411 cat >>confdefs.h <<_ACEOF
15412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15413 _ACEOF
15416 done
15419 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15420 # loading of modules.
15422 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15423 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15424 if test -z "$DYNLOADFILE"
15425 then
15426 case $ac_sys_system/$ac_sys_release in
15427 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15428 if test "$ac_cv_func_dlopen" = yes
15429 then DYNLOADFILE="dynload_shlib.o"
15430 else DYNLOADFILE="dynload_aix.o"
15433 BeOS*) DYNLOADFILE="dynload_beos.o";;
15434 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15435 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15436 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15437 atheos*) DYNLOADFILE="dynload_atheos.o";;
15439 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15440 # out any dynamic loading
15441 if test "$ac_cv_func_dlopen" = yes
15442 then DYNLOADFILE="dynload_shlib.o"
15443 else DYNLOADFILE="dynload_stub.o"
15446 esac
15448 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15449 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15450 if test "$DYNLOADFILE" != "dynload_stub.o"
15451 then
15453 cat >>confdefs.h <<\_ACEOF
15454 #define HAVE_DYNAMIC_LOADING 1
15455 _ACEOF
15459 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15462 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15463 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15464 if test -z "$MACHDEP_OBJS"
15465 then
15466 MACHDEP_OBJS=$extra_machdep_objs
15467 else
15468 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15470 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15471 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15473 # checks for library functions
15555 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
15556 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15557 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15558 getpriority getpwent getspnam getspent getsid getwd \
15559 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15560 mremap nice pathconf pause plock poll pthread_init \
15561 putenv readlink realpath \
15562 select setegid seteuid setgid \
15563 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15564 sigaction siginterrupt sigrelse strftime \
15565 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15566 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574 cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h. */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15582 #define $ac_func innocuous_$ac_func
15584 /* System header to define __stub macros and hopefully few prototypes,
15585 which can conflict with char $ac_func (); below.
15586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15587 <limits.h> exists even on freestanding compilers. */
15589 #ifdef __STDC__
15590 # include <limits.h>
15591 #else
15592 # include <assert.h>
15593 #endif
15595 #undef $ac_func
15597 /* Override any GCC internal prototype to avoid an error.
15598 Use char because int might match the return type of a GCC
15599 builtin and then its argument prototype would still apply. */
15600 #ifdef __cplusplus
15601 extern "C"
15602 #endif
15603 char $ac_func ();
15604 /* The GNU C library defines this for functions which it implements
15605 to always fail with ENOSYS. Some functions are actually named
15606 something starting with __ and the normal name is an alias. */
15607 #if defined __stub_$ac_func || defined __stub___$ac_func
15608 choke me
15609 #endif
15612 main ()
15614 return $ac_func ();
15616 return 0;
15618 _ACEOF
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624 esac
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_link") 2>conftest.er1
15627 ac_status=$?
15628 grep -v '^ *+' conftest.er1 >conftest.err
15629 rm -f conftest.er1
15630 cat conftest.err >&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && {
15633 test -z "$ac_c_werror_flag" ||
15634 test ! -s conftest.err
15635 } && test -s conftest$ac_exeext &&
15636 $as_test_x conftest$ac_exeext; then
15637 eval "$as_ac_var=yes"
15638 else
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 eval "$as_ac_var=no"
15645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15646 conftest$ac_exeext conftest.$ac_ext
15648 ac_res=`eval echo '${'$as_ac_var'}'`
15649 { echo "$as_me:$LINENO: result: $ac_res" >&5
15650 echo "${ECHO_T}$ac_res" >&6; }
15651 if test `eval echo '${'$as_ac_var'}'` = yes; then
15652 cat >>confdefs.h <<_ACEOF
15653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15654 _ACEOF
15657 done
15660 # For some functions, having a definition is not sufficient, since
15661 # we want to take their address.
15662 { echo "$as_me:$LINENO: checking for chroot" >&5
15663 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
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. */
15670 #include <unistd.h>
15672 main ()
15674 void *x=chroot
15676 return 0;
15678 _ACEOF
15679 rm -f conftest.$ac_objext
15680 if { (ac_try="$ac_compile"
15681 case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_compile") 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } && {
15693 test -z "$ac_c_werror_flag" ||
15694 test ! -s conftest.err
15695 } && test -s conftest.$ac_objext; then
15697 cat >>confdefs.h <<\_ACEOF
15698 #define HAVE_CHROOT 1
15699 _ACEOF
15701 { echo "$as_me:$LINENO: result: yes" >&5
15702 echo "${ECHO_T}yes" >&6; }
15703 else
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 { echo "$as_me:$LINENO: result: no" >&5
15708 echo "${ECHO_T}no" >&6; }
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 { echo "$as_me:$LINENO: checking for link" >&5
15714 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h. */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 #include <unistd.h>
15723 main ()
15725 void *x=link
15727 return 0;
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (ac_try="$ac_compile"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_compile") 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest.$ac_objext; then
15748 cat >>confdefs.h <<\_ACEOF
15749 #define HAVE_LINK 1
15750 _ACEOF
15752 { echo "$as_me:$LINENO: result: yes" >&5
15753 echo "${ECHO_T}yes" >&6; }
15754 else
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 { echo "$as_me:$LINENO: result: no" >&5
15759 echo "${ECHO_T}no" >&6; }
15763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15764 { echo "$as_me:$LINENO: checking for symlink" >&5
15765 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h. */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 #include <unistd.h>
15774 main ()
15776 void *x=symlink
15778 return 0;
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (ac_try="$ac_compile"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_compile") 2>conftest.er1
15789 ac_status=$?
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } && {
15795 test -z "$ac_c_werror_flag" ||
15796 test ! -s conftest.err
15797 } && test -s conftest.$ac_objext; then
15799 cat >>confdefs.h <<\_ACEOF
15800 #define HAVE_SYMLINK 1
15801 _ACEOF
15803 { echo "$as_me:$LINENO: result: yes" >&5
15804 echo "${ECHO_T}yes" >&6; }
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 { echo "$as_me:$LINENO: result: no" >&5
15810 echo "${ECHO_T}no" >&6; }
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 { echo "$as_me:$LINENO: checking for fchdir" >&5
15816 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15817 cat >conftest.$ac_ext <<_ACEOF
15818 /* confdefs.h. */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 #include <unistd.h>
15825 main ()
15827 void *x=fchdir
15829 return 0;
15831 _ACEOF
15832 rm -f conftest.$ac_objext
15833 if { (ac_try="$ac_compile"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_compile") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } && {
15846 test -z "$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15848 } && test -s conftest.$ac_objext; then
15850 cat >>confdefs.h <<\_ACEOF
15851 #define HAVE_FCHDIR 1
15852 _ACEOF
15854 { echo "$as_me:$LINENO: result: yes" >&5
15855 echo "${ECHO_T}yes" >&6; }
15856 else
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 { echo "$as_me:$LINENO: result: no" >&5
15861 echo "${ECHO_T}no" >&6; }
15865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 { echo "$as_me:$LINENO: checking for fsync" >&5
15867 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15868 cat >conftest.$ac_ext <<_ACEOF
15869 /* confdefs.h. */
15870 _ACEOF
15871 cat confdefs.h >>conftest.$ac_ext
15872 cat >>conftest.$ac_ext <<_ACEOF
15873 /* end confdefs.h. */
15874 #include <unistd.h>
15876 main ()
15878 void *x=fsync
15880 return 0;
15882 _ACEOF
15883 rm -f conftest.$ac_objext
15884 if { (ac_try="$ac_compile"
15885 case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_compile") 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } && {
15897 test -z "$ac_c_werror_flag" ||
15898 test ! -s conftest.err
15899 } && test -s conftest.$ac_objext; then
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_FSYNC 1
15903 _ACEOF
15905 { echo "$as_me:$LINENO: result: yes" >&5
15906 echo "${ECHO_T}yes" >&6; }
15907 else
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15911 { echo "$as_me:$LINENO: result: no" >&5
15912 echo "${ECHO_T}no" >&6; }
15916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15918 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15919 cat >conftest.$ac_ext <<_ACEOF
15920 /* confdefs.h. */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 #include <unistd.h>
15927 main ()
15929 void *x=fdatasync
15931 return 0;
15933 _ACEOF
15934 rm -f conftest.$ac_objext
15935 if { (ac_try="$ac_compile"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15939 esac
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_compile") 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } && {
15948 test -z "$ac_c_werror_flag" ||
15949 test ! -s conftest.err
15950 } && test -s conftest.$ac_objext; then
15952 cat >>confdefs.h <<\_ACEOF
15953 #define HAVE_FDATASYNC 1
15954 _ACEOF
15956 { echo "$as_me:$LINENO: result: yes" >&5
15957 echo "${ECHO_T}yes" >&6; }
15958 else
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 { echo "$as_me:$LINENO: result: no" >&5
15963 echo "${ECHO_T}no" >&6; }
15967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968 { echo "$as_me:$LINENO: checking for epoll" >&5
15969 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h. */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <sys/epoll.h>
15978 main ()
15980 void *x=epoll_create
15982 return 0;
15984 _ACEOF
15985 rm -f conftest.$ac_objext
15986 if { (ac_try="$ac_compile"
15987 case "(($ac_try" in
15988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15990 esac
15991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15992 (eval "$ac_compile") 2>conftest.er1
15993 ac_status=$?
15994 grep -v '^ *+' conftest.er1 >conftest.err
15995 rm -f conftest.er1
15996 cat conftest.err >&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } && {
15999 test -z "$ac_c_werror_flag" ||
16000 test ! -s conftest.err
16001 } && test -s conftest.$ac_objext; then
16003 cat >>confdefs.h <<\_ACEOF
16004 #define HAVE_EPOLL 1
16005 _ACEOF
16007 { echo "$as_me:$LINENO: result: yes" >&5
16008 echo "${ECHO_T}yes" >&6; }
16009 else
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 { echo "$as_me:$LINENO: result: no" >&5
16014 echo "${ECHO_T}no" >&6; }
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 { echo "$as_me:$LINENO: checking for kqueue" >&5
16020 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16021 cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h. */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16028 #include <sys/types.h>
16029 #include <sys/event.h>
16032 main ()
16034 int x=kqueue()
16036 return 0;
16038 _ACEOF
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16044 esac
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_compile") 2>conftest.er1
16047 ac_status=$?
16048 grep -v '^ *+' conftest.er1 >conftest.err
16049 rm -f conftest.er1
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && {
16053 test -z "$ac_c_werror_flag" ||
16054 test ! -s conftest.err
16055 } && test -s conftest.$ac_objext; then
16057 cat >>confdefs.h <<\_ACEOF
16058 #define HAVE_KQUEUE 1
16059 _ACEOF
16061 { echo "$as_me:$LINENO: result: yes" >&5
16062 echo "${ECHO_T}yes" >&6; }
16063 else
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16067 { echo "$as_me:$LINENO: result: no" >&5
16068 echo "${ECHO_T}no" >&6; }
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073 # On some systems (eg. FreeBSD 5), we would find a definition of the
16074 # functions ctermid_r, setgroups in the library, but no prototype
16075 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16076 # address to avoid compiler warnings and potential miscompilations
16077 # because of the missing prototypes.
16079 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16080 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h. */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16088 #include "confdefs.h"
16089 #include <stdio.h>
16092 main ()
16094 void* p = ctermid_r
16096 return 0;
16098 _ACEOF
16099 rm -f conftest.$ac_objext
16100 if { (ac_try="$ac_compile"
16101 case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104 esac
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_compile") 2>conftest.er1
16107 ac_status=$?
16108 grep -v '^ *+' conftest.er1 >conftest.err
16109 rm -f conftest.er1
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } && {
16113 test -z "$ac_c_werror_flag" ||
16114 test ! -s conftest.err
16115 } && test -s conftest.$ac_objext; then
16117 cat >>confdefs.h <<\_ACEOF
16118 #define HAVE_CTERMID_R 1
16119 _ACEOF
16121 { echo "$as_me:$LINENO: result: yes" >&5
16122 echo "${ECHO_T}yes" >&6; }
16123 else
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 { echo "$as_me:$LINENO: result: no" >&5
16128 echo "${ECHO_T}no" >&6; }
16132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16134 { echo "$as_me:$LINENO: checking for flock" >&5
16135 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16136 cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h. */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16143 #include "confdefs.h"
16144 #include <sys/file.h>
16147 main ()
16149 void* p = flock
16151 return 0;
16153 _ACEOF
16154 rm -f conftest.$ac_objext
16155 if { (ac_try="$ac_compile"
16156 case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_compile") 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest.$ac_objext; then
16172 cat >>confdefs.h <<\_ACEOF
16173 #define HAVE_FLOCK 1
16174 _ACEOF
16176 { echo "$as_me:$LINENO: result: yes" >&5
16177 echo "${ECHO_T}yes" >&6; }
16178 else
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 { echo "$as_me:$LINENO: result: no" >&5
16183 echo "${ECHO_T}no" >&6; }
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16190 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16191 cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h. */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16198 #include "confdefs.h"
16199 #include <unistd.h>
16202 main ()
16204 void* p = getpagesize
16206 return 0;
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16214 esac
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_compile") 2>conftest.er1
16217 ac_status=$?
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest.$ac_objext; then
16227 cat >>confdefs.h <<\_ACEOF
16228 #define HAVE_GETPAGESIZE 1
16229 _ACEOF
16231 { echo "$as_me:$LINENO: result: yes" >&5
16232 echo "${ECHO_T}yes" >&6; }
16233 else
16234 echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16237 { echo "$as_me:$LINENO: result: no" >&5
16238 echo "${ECHO_T}no" >&6; }
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 for ac_prog in true
16246 # Extract the first word of "$ac_prog", so it can be a program name with args.
16247 set dummy $ac_prog; ac_word=$2
16248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16250 if test "${ac_cv_prog_TRUE+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253 if test -n "$TRUE"; then
16254 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16255 else
16256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16257 for as_dir in $PATH
16259 IFS=$as_save_IFS
16260 test -z "$as_dir" && as_dir=.
16261 for ac_exec_ext in '' $ac_executable_extensions; do
16262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16263 ac_cv_prog_TRUE="$ac_prog"
16264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16265 break 2
16267 done
16268 done
16269 IFS=$as_save_IFS
16273 TRUE=$ac_cv_prog_TRUE
16274 if test -n "$TRUE"; then
16275 { echo "$as_me:$LINENO: result: $TRUE" >&5
16276 echo "${ECHO_T}$TRUE" >&6; }
16277 else
16278 { echo "$as_me:$LINENO: result: no" >&5
16279 echo "${ECHO_T}no" >&6; }
16283 test -n "$TRUE" && break
16284 done
16285 test -n "$TRUE" || TRUE="/bin/true"
16288 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16289 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16290 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16291 echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293 ac_check_lib_save_LIBS=$LIBS
16294 LIBS="-lc $LIBS"
16295 cat >conftest.$ac_ext <<_ACEOF
16296 /* confdefs.h. */
16297 _ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16302 /* Override any GCC internal prototype to avoid an error.
16303 Use char because int might match the return type of a GCC
16304 builtin and then its argument prototype would still apply. */
16305 #ifdef __cplusplus
16306 extern "C"
16307 #endif
16308 char inet_aton ();
16310 main ()
16312 return inet_aton ();
16314 return 0;
16316 _ACEOF
16317 rm -f conftest.$ac_objext conftest$ac_exeext
16318 if { (ac_try="$ac_link"
16319 case "(($ac_try" in
16320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321 *) ac_try_echo=$ac_try;;
16322 esac
16323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16324 (eval "$ac_link") 2>conftest.er1
16325 ac_status=$?
16326 grep -v '^ *+' conftest.er1 >conftest.err
16327 rm -f conftest.er1
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } && {
16331 test -z "$ac_c_werror_flag" ||
16332 test ! -s conftest.err
16333 } && test -s conftest$ac_exeext &&
16334 $as_test_x conftest$ac_exeext; then
16335 ac_cv_lib_c_inet_aton=yes
16336 else
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_cv_lib_c_inet_aton=no
16343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16344 conftest$ac_exeext conftest.$ac_ext
16345 LIBS=$ac_check_lib_save_LIBS
16347 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16348 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16349 if test $ac_cv_lib_c_inet_aton = yes; then
16350 $ac_cv_prog_TRUE
16351 else
16353 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16354 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16355 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 else
16358 ac_check_lib_save_LIBS=$LIBS
16359 LIBS="-lresolv $LIBS"
16360 cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h. */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16367 /* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16370 #ifdef __cplusplus
16371 extern "C"
16372 #endif
16373 char inet_aton ();
16375 main ()
16377 return inet_aton ();
16379 return 0;
16381 _ACEOF
16382 rm -f conftest.$ac_objext conftest$ac_exeext
16383 if { (ac_try="$ac_link"
16384 case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_link") 2>conftest.er1
16390 ac_status=$?
16391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && {
16396 test -z "$ac_c_werror_flag" ||
16397 test ! -s conftest.err
16398 } && test -s conftest$ac_exeext &&
16399 $as_test_x conftest$ac_exeext; then
16400 ac_cv_lib_resolv_inet_aton=yes
16401 else
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16405 ac_cv_lib_resolv_inet_aton=no
16408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16409 conftest$ac_exeext conftest.$ac_ext
16410 LIBS=$ac_check_lib_save_LIBS
16412 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16413 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16414 if test $ac_cv_lib_resolv_inet_aton = yes; then
16415 cat >>confdefs.h <<_ACEOF
16416 #define HAVE_LIBRESOLV 1
16417 _ACEOF
16419 LIBS="-lresolv $LIBS"
16427 # On Tru64, chflags seems to be present, but calling it will
16428 # exit Python
16429 { echo "$as_me:$LINENO: checking for chflags" >&5
16430 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16431 if test "$cross_compiling" = yes; then
16432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16433 See \`config.log' for more details." >&5
16434 echo "$as_me: error: cannot run test program while cross compiling
16435 See \`config.log' for more details." >&2;}
16436 { (exit 1); exit 1; }; }
16437 else
16438 cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h. */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16445 #include <sys/stat.h>
16446 #include <unistd.h>
16447 int main(int argc, char*argv[])
16449 if(chflags(argv[0], 0) != 0)
16450 return 1;
16451 return 0;
16454 _ACEOF
16455 rm -f conftest$ac_exeext
16456 if { (ac_try="$ac_link"
16457 case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16460 esac
16461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462 (eval "$ac_link") 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16466 { (case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_try") 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16476 cat >>confdefs.h <<\_ACEOF
16477 #define HAVE_CHFLAGS 1
16478 _ACEOF
16480 { echo "$as_me:$LINENO: result: yes" >&5
16481 echo "${ECHO_T}yes" >&6; }
16482 else
16483 echo "$as_me: program exited with status $ac_status" >&5
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ( exit $ac_status )
16488 { echo "$as_me:$LINENO: result: no" >&5
16489 echo "${ECHO_T}no" >&6; }
16492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16497 { echo "$as_me:$LINENO: checking for lchflags" >&5
16498 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
16499 if test "$cross_compiling" = yes; then
16500 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16501 See \`config.log' for more details." >&5
16502 echo "$as_me: error: cannot run test program while cross compiling
16503 See \`config.log' for more details." >&2;}
16504 { (exit 1); exit 1; }; }
16505 else
16506 cat >conftest.$ac_ext <<_ACEOF
16507 /* confdefs.h. */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16513 #include <sys/stat.h>
16514 #include <unistd.h>
16515 int main(int argc, char*argv[])
16517 if(lchflags(argv[0], 0) != 0)
16518 return 1;
16519 return 0;
16522 _ACEOF
16523 rm -f conftest$ac_exeext
16524 if { (ac_try="$ac_link"
16525 case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16528 esac
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_link") 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16544 cat >>confdefs.h <<\_ACEOF
16545 #define HAVE_LCHFLAGS 1
16546 _ACEOF
16548 { echo "$as_me:$LINENO: result: yes" >&5
16549 echo "${ECHO_T}yes" >&6; }
16550 else
16551 echo "$as_me: program exited with status $ac_status" >&5
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16555 ( exit $ac_status )
16556 { echo "$as_me:$LINENO: result: no" >&5
16557 echo "${ECHO_T}no" >&6; }
16560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16565 case $ac_sys_system/$ac_sys_release in
16566 Darwin/*)
16567 _CUR_CFLAGS="${CFLAGS}"
16568 _CUR_LDFLAGS="${LDFLAGS}"
16569 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16570 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16572 esac
16574 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16575 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16576 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579 ac_check_lib_save_LIBS=$LIBS
16580 LIBS="-lz $LIBS"
16581 cat >conftest.$ac_ext <<_ACEOF
16582 /* confdefs.h. */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16588 /* Override any GCC internal prototype to avoid an error.
16589 Use char because int might match the return type of a GCC
16590 builtin and then its argument prototype would still apply. */
16591 #ifdef __cplusplus
16592 extern "C"
16593 #endif
16594 char inflateCopy ();
16596 main ()
16598 return inflateCopy ();
16600 return 0;
16602 _ACEOF
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (ac_try="$ac_link"
16605 case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16608 esac
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_link") 2>conftest.er1
16611 ac_status=$?
16612 grep -v '^ *+' conftest.er1 >conftest.err
16613 rm -f conftest.er1
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } && {
16617 test -z "$ac_c_werror_flag" ||
16618 test ! -s conftest.err
16619 } && test -s conftest$ac_exeext &&
16620 $as_test_x conftest$ac_exeext; then
16621 ac_cv_lib_z_inflateCopy=yes
16622 else
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16626 ac_cv_lib_z_inflateCopy=no
16629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16630 conftest$ac_exeext conftest.$ac_ext
16631 LIBS=$ac_check_lib_save_LIBS
16633 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16634 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16635 if test $ac_cv_lib_z_inflateCopy = yes; then
16637 cat >>confdefs.h <<\_ACEOF
16638 #define HAVE_ZLIB_COPY 1
16639 _ACEOF
16644 case $ac_sys_system/$ac_sys_release in
16645 Darwin/*)
16646 CFLAGS="${_CUR_CFLAGS}"
16647 LDFLAGS="${_CUR_LDFLAGS}"
16649 esac
16651 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16652 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16653 cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h. */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16660 #include "confdefs.h"
16661 #include <netdb.h>
16664 main ()
16666 void* p = hstrerror; hstrerror(0)
16668 return 0;
16670 _ACEOF
16671 rm -f conftest.$ac_objext conftest$ac_exeext
16672 if { (ac_try="$ac_link"
16673 case "(($ac_try" in
16674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675 *) ac_try_echo=$ac_try;;
16676 esac
16677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678 (eval "$ac_link") 2>conftest.er1
16679 ac_status=$?
16680 grep -v '^ *+' conftest.er1 >conftest.err
16681 rm -f conftest.er1
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } && {
16685 test -z "$ac_c_werror_flag" ||
16686 test ! -s conftest.err
16687 } && test -s conftest$ac_exeext &&
16688 $as_test_x conftest$ac_exeext; then
16690 cat >>confdefs.h <<\_ACEOF
16691 #define HAVE_HSTRERROR 1
16692 _ACEOF
16694 { echo "$as_me:$LINENO: result: yes" >&5
16695 echo "${ECHO_T}yes" >&6; }
16696 else
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 { echo "$as_me:$LINENO: result: no" >&5
16701 echo "${ECHO_T}no" >&6; }
16705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16706 conftest$ac_exeext conftest.$ac_ext
16708 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16709 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h. */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16717 #include "confdefs.h"
16718 #include <sys/types.h>
16719 #include <sys/socket.h>
16720 #include <netinet/in.h>
16721 #include <arpa/inet.h>
16724 main ()
16726 void* p = inet_aton;inet_aton(0,0)
16728 return 0;
16730 _ACEOF
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (ac_try="$ac_link"
16733 case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_link") 2>conftest.er1
16739 ac_status=$?
16740 grep -v '^ *+' conftest.er1 >conftest.err
16741 rm -f conftest.er1
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } && {
16745 test -z "$ac_c_werror_flag" ||
16746 test ! -s conftest.err
16747 } && test -s conftest$ac_exeext &&
16748 $as_test_x conftest$ac_exeext; then
16750 cat >>confdefs.h <<\_ACEOF
16751 #define HAVE_INET_ATON 1
16752 _ACEOF
16754 { echo "$as_me:$LINENO: result: yes" >&5
16755 echo "${ECHO_T}yes" >&6; }
16756 else
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 { echo "$as_me:$LINENO: result: no" >&5
16761 echo "${ECHO_T}no" >&6; }
16765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16766 conftest$ac_exeext conftest.$ac_ext
16768 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16769 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16777 #include "confdefs.h"
16778 #include <sys/types.h>
16779 #include <sys/socket.h>
16780 #include <netinet/in.h>
16781 #include <arpa/inet.h>
16784 main ()
16786 void* p = inet_pton
16788 return 0;
16790 _ACEOF
16791 rm -f conftest.$ac_objext
16792 if { (ac_try="$ac_compile"
16793 case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16796 esac
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_compile") 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest.$ac_objext; then
16809 cat >>confdefs.h <<\_ACEOF
16810 #define HAVE_INET_PTON 1
16811 _ACEOF
16813 { echo "$as_me:$LINENO: result: yes" >&5
16814 echo "${ECHO_T}yes" >&6; }
16815 else
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 { echo "$as_me:$LINENO: result: no" >&5
16820 echo "${ECHO_T}no" >&6; }
16824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16826 # On some systems, setgroups is in unistd.h, on others, in grp.h
16827 { echo "$as_me:$LINENO: checking for setgroups" >&5
16828 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16829 cat >conftest.$ac_ext <<_ACEOF
16830 /* confdefs.h. */
16831 _ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h. */
16836 #include "confdefs.h"
16837 #include <unistd.h>
16838 #ifdef HAVE_GRP_H
16839 #include <grp.h>
16840 #endif
16843 main ()
16845 void* p = setgroups
16847 return 0;
16849 _ACEOF
16850 rm -f conftest.$ac_objext
16851 if { (ac_try="$ac_compile"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_compile") 2>conftest.er1
16858 ac_status=$?
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest.$ac_objext; then
16868 cat >>confdefs.h <<\_ACEOF
16869 #define HAVE_SETGROUPS 1
16870 _ACEOF
16872 { echo "$as_me:$LINENO: result: yes" >&5
16873 echo "${ECHO_T}yes" >&6; }
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 { echo "$as_me:$LINENO: result: no" >&5
16879 echo "${ECHO_T}no" >&6; }
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 # check for openpty and forkpty
16888 for ac_func in openpty
16890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 else
16896 cat >conftest.$ac_ext <<_ACEOF
16897 /* confdefs.h. */
16898 _ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16904 #define $ac_func innocuous_$ac_func
16906 /* System header to define __stub macros and hopefully few prototypes,
16907 which can conflict with char $ac_func (); below.
16908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16909 <limits.h> exists even on freestanding compilers. */
16911 #ifdef __STDC__
16912 # include <limits.h>
16913 #else
16914 # include <assert.h>
16915 #endif
16917 #undef $ac_func
16919 /* Override any GCC internal prototype to avoid an error.
16920 Use char because int might match the return type of a GCC
16921 builtin and then its argument prototype would still apply. */
16922 #ifdef __cplusplus
16923 extern "C"
16924 #endif
16925 char $ac_func ();
16926 /* The GNU C library defines this for functions which it implements
16927 to always fail with ENOSYS. Some functions are actually named
16928 something starting with __ and the normal name is an alias. */
16929 #if defined __stub_$ac_func || defined __stub___$ac_func
16930 choke me
16931 #endif
16934 main ()
16936 return $ac_func ();
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 eval "$as_ac_var=yes"
16960 else
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 eval "$as_ac_var=no"
16967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16968 conftest$ac_exeext conftest.$ac_ext
16970 ac_res=`eval echo '${'$as_ac_var'}'`
16971 { echo "$as_me:$LINENO: result: $ac_res" >&5
16972 echo "${ECHO_T}$ac_res" >&6; }
16973 if test `eval echo '${'$as_ac_var'}'` = yes; then
16974 cat >>confdefs.h <<_ACEOF
16975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16976 _ACEOF
16978 else
16979 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16980 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16981 if test "${ac_cv_lib_util_openpty+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984 ac_check_lib_save_LIBS=$LIBS
16985 LIBS="-lutil $LIBS"
16986 cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h. */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16993 /* Override any GCC internal prototype to avoid an error.
16994 Use char because int might match the return type of a GCC
16995 builtin and then its argument prototype would still apply. */
16996 #ifdef __cplusplus
16997 extern "C"
16998 #endif
16999 char openpty ();
17001 main ()
17003 return openpty ();
17005 return 0;
17007 _ACEOF
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_link") 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } && {
17022 test -z "$ac_c_werror_flag" ||
17023 test ! -s conftest.err
17024 } && test -s conftest$ac_exeext &&
17025 $as_test_x conftest$ac_exeext; then
17026 ac_cv_lib_util_openpty=yes
17027 else
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17031 ac_cv_lib_util_openpty=no
17034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17035 conftest$ac_exeext conftest.$ac_ext
17036 LIBS=$ac_check_lib_save_LIBS
17038 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17039 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17040 if test $ac_cv_lib_util_openpty = yes; then
17041 cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_OPENPTY 1
17043 _ACEOF
17044 LIBS="$LIBS -lutil"
17045 else
17046 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17047 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17048 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051 ac_check_lib_save_LIBS=$LIBS
17052 LIBS="-lbsd $LIBS"
17053 cat >conftest.$ac_ext <<_ACEOF
17054 /* confdefs.h. */
17055 _ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h. */
17060 /* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17063 #ifdef __cplusplus
17064 extern "C"
17065 #endif
17066 char openpty ();
17068 main ()
17070 return openpty ();
17072 return 0;
17074 _ACEOF
17075 rm -f conftest.$ac_objext conftest$ac_exeext
17076 if { (ac_try="$ac_link"
17077 case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17080 esac
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_link") 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } && {
17089 test -z "$ac_c_werror_flag" ||
17090 test ! -s conftest.err
17091 } && test -s conftest$ac_exeext &&
17092 $as_test_x conftest$ac_exeext; then
17093 ac_cv_lib_bsd_openpty=yes
17094 else
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17098 ac_cv_lib_bsd_openpty=no
17101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17102 conftest$ac_exeext conftest.$ac_ext
17103 LIBS=$ac_check_lib_save_LIBS
17105 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17106 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17107 if test $ac_cv_lib_bsd_openpty = yes; then
17108 cat >>confdefs.h <<\_ACEOF
17109 #define HAVE_OPENPTY 1
17110 _ACEOF
17111 LIBS="$LIBS -lbsd"
17119 done
17122 for ac_func in forkpty
17124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
17136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17138 #define $ac_func innocuous_$ac_func
17140 /* System header to define __stub macros and hopefully few prototypes,
17141 which can conflict with char $ac_func (); below.
17142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17143 <limits.h> exists even on freestanding compilers. */
17145 #ifdef __STDC__
17146 # include <limits.h>
17147 #else
17148 # include <assert.h>
17149 #endif
17151 #undef $ac_func
17153 /* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
17156 #ifdef __cplusplus
17157 extern "C"
17158 #endif
17159 char $ac_func ();
17160 /* The GNU C library defines this for functions which it implements
17161 to always fail with ENOSYS. Some functions are actually named
17162 something starting with __ and the normal name is an alias. */
17163 #if defined __stub_$ac_func || defined __stub___$ac_func
17164 choke me
17165 #endif
17168 main ()
17170 return $ac_func ();
17172 return 0;
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext &&
17192 $as_test_x conftest$ac_exeext; then
17193 eval "$as_ac_var=yes"
17194 else
17195 echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 eval "$as_ac_var=no"
17201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17202 conftest$ac_exeext conftest.$ac_ext
17204 ac_res=`eval echo '${'$as_ac_var'}'`
17205 { echo "$as_me:$LINENO: result: $ac_res" >&5
17206 echo "${ECHO_T}$ac_res" >&6; }
17207 if test `eval echo '${'$as_ac_var'}'` = yes; then
17208 cat >>confdefs.h <<_ACEOF
17209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17210 _ACEOF
17212 else
17213 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17214 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17215 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 else
17218 ac_check_lib_save_LIBS=$LIBS
17219 LIBS="-lutil $LIBS"
17220 cat >conftest.$ac_ext <<_ACEOF
17221 /* confdefs.h. */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17227 /* Override any GCC internal prototype to avoid an error.
17228 Use char because int might match the return type of a GCC
17229 builtin and then its argument prototype would still apply. */
17230 #ifdef __cplusplus
17231 extern "C"
17232 #endif
17233 char forkpty ();
17235 main ()
17237 return forkpty ();
17239 return 0;
17241 _ACEOF
17242 rm -f conftest.$ac_objext conftest$ac_exeext
17243 if { (ac_try="$ac_link"
17244 case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_link") 2>conftest.er1
17250 ac_status=$?
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } && {
17256 test -z "$ac_c_werror_flag" ||
17257 test ! -s conftest.err
17258 } && test -s conftest$ac_exeext &&
17259 $as_test_x conftest$ac_exeext; then
17260 ac_cv_lib_util_forkpty=yes
17261 else
17262 echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17265 ac_cv_lib_util_forkpty=no
17268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17269 conftest$ac_exeext conftest.$ac_ext
17270 LIBS=$ac_check_lib_save_LIBS
17272 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17273 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17274 if test $ac_cv_lib_util_forkpty = yes; then
17275 cat >>confdefs.h <<\_ACEOF
17276 #define HAVE_FORKPTY 1
17277 _ACEOF
17278 LIBS="$LIBS -lutil"
17279 else
17280 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17281 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17282 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 else
17285 ac_check_lib_save_LIBS=$LIBS
17286 LIBS="-lbsd $LIBS"
17287 cat >conftest.$ac_ext <<_ACEOF
17288 /* confdefs.h. */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17294 /* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17297 #ifdef __cplusplus
17298 extern "C"
17299 #endif
17300 char forkpty ();
17302 main ()
17304 return forkpty ();
17306 return 0;
17308 _ACEOF
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (ac_try="$ac_link"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17314 esac
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_link") 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && {
17323 test -z "$ac_c_werror_flag" ||
17324 test ! -s conftest.err
17325 } && test -s conftest$ac_exeext &&
17326 $as_test_x conftest$ac_exeext; then
17327 ac_cv_lib_bsd_forkpty=yes
17328 else
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 ac_cv_lib_bsd_forkpty=no
17335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17336 conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17339 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17340 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17341 if test $ac_cv_lib_bsd_forkpty = yes; then
17342 cat >>confdefs.h <<\_ACEOF
17343 #define HAVE_FORKPTY 1
17344 _ACEOF
17345 LIBS="$LIBS -lbsd"
17353 done
17356 # Stuff for expat.
17358 for ac_func in memmove
17360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h. */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374 #define $ac_func innocuous_$ac_func
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char $ac_func (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17381 #ifdef __STDC__
17382 # include <limits.h>
17383 #else
17384 # include <assert.h>
17385 #endif
17387 #undef $ac_func
17389 /* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17392 #ifdef __cplusplus
17393 extern "C"
17394 #endif
17395 char $ac_func ();
17396 /* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399 #if defined __stub_$ac_func || defined __stub___$ac_func
17400 choke me
17401 #endif
17404 main ()
17406 return $ac_func ();
17408 return 0;
17410 _ACEOF
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17416 esac
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_link") 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } && {
17425 test -z "$ac_c_werror_flag" ||
17426 test ! -s conftest.err
17427 } && test -s conftest$ac_exeext &&
17428 $as_test_x conftest$ac_exeext; then
17429 eval "$as_ac_var=yes"
17430 else
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 eval "$as_ac_var=no"
17437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17438 conftest$ac_exeext conftest.$ac_ext
17440 ac_res=`eval echo '${'$as_ac_var'}'`
17441 { echo "$as_me:$LINENO: result: $ac_res" >&5
17442 echo "${ECHO_T}$ac_res" >&6; }
17443 if test `eval echo '${'$as_ac_var'}'` = yes; then
17444 cat >>confdefs.h <<_ACEOF
17445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17446 _ACEOF
17449 done
17452 # check for long file support functions
17459 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h. */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17475 #define $ac_func innocuous_$ac_func
17477 /* System header to define __stub macros and hopefully few prototypes,
17478 which can conflict with char $ac_func (); below.
17479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17480 <limits.h> exists even on freestanding compilers. */
17482 #ifdef __STDC__
17483 # include <limits.h>
17484 #else
17485 # include <assert.h>
17486 #endif
17488 #undef $ac_func
17490 /* Override any GCC internal prototype to avoid an error.
17491 Use char because int might match the return type of a GCC
17492 builtin and then its argument prototype would still apply. */
17493 #ifdef __cplusplus
17494 extern "C"
17495 #endif
17496 char $ac_func ();
17497 /* The GNU C library defines this for functions which it implements
17498 to always fail with ENOSYS. Some functions are actually named
17499 something starting with __ and the normal name is an alias. */
17500 #if defined __stub_$ac_func || defined __stub___$ac_func
17501 choke me
17502 #endif
17505 main ()
17507 return $ac_func ();
17509 return 0;
17511 _ACEOF
17512 rm -f conftest.$ac_objext conftest$ac_exeext
17513 if { (ac_try="$ac_link"
17514 case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17517 esac
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_link") 2>conftest.er1
17520 ac_status=$?
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } && {
17526 test -z "$ac_c_werror_flag" ||
17527 test ! -s conftest.err
17528 } && test -s conftest$ac_exeext &&
17529 $as_test_x conftest$ac_exeext; then
17530 eval "$as_ac_var=yes"
17531 else
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 eval "$as_ac_var=no"
17538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17539 conftest$ac_exeext conftest.$ac_ext
17541 ac_res=`eval echo '${'$as_ac_var'}'`
17542 { echo "$as_me:$LINENO: result: $ac_res" >&5
17543 echo "${ECHO_T}$ac_res" >&6; }
17544 if test `eval echo '${'$as_ac_var'}'` = yes; then
17545 cat >>confdefs.h <<_ACEOF
17546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17547 _ACEOF
17550 done
17556 for ac_func in dup2 getcwd strdup
17558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564 cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h. */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17572 #define $ac_func innocuous_$ac_func
17574 /* System header to define __stub macros and hopefully few prototypes,
17575 which can conflict with char $ac_func (); below.
17576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17577 <limits.h> exists even on freestanding compilers. */
17579 #ifdef __STDC__
17580 # include <limits.h>
17581 #else
17582 # include <assert.h>
17583 #endif
17585 #undef $ac_func
17587 /* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
17590 #ifdef __cplusplus
17591 extern "C"
17592 #endif
17593 char $ac_func ();
17594 /* The GNU C library defines this for functions which it implements
17595 to always fail with ENOSYS. Some functions are actually named
17596 something starting with __ and the normal name is an alias. */
17597 #if defined __stub_$ac_func || defined __stub___$ac_func
17598 choke me
17599 #endif
17602 main ()
17604 return $ac_func ();
17606 return 0;
17608 _ACEOF
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614 esac
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17617 ac_status=$?
17618 grep -v '^ *+' conftest.er1 >conftest.err
17619 rm -f conftest.er1
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17627 eval "$as_ac_var=yes"
17628 else
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17632 eval "$as_ac_var=no"
17635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636 conftest$ac_exeext conftest.$ac_ext
17638 ac_res=`eval echo '${'$as_ac_var'}'`
17639 { echo "$as_me:$LINENO: result: $ac_res" >&5
17640 echo "${ECHO_T}$ac_res" >&6; }
17641 if test `eval echo '${'$as_ac_var'}'` = yes; then
17642 cat >>confdefs.h <<_ACEOF
17643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17644 _ACEOF
17646 else
17647 case " $LIBOBJS " in
17648 *" $ac_func.$ac_objext "* ) ;;
17649 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17651 esac
17654 done
17658 for ac_func in getpgrp
17660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665 else
17666 cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h. */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17674 #define $ac_func innocuous_$ac_func
17676 /* System header to define __stub macros and hopefully few prototypes,
17677 which can conflict with char $ac_func (); below.
17678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17679 <limits.h> exists even on freestanding compilers. */
17681 #ifdef __STDC__
17682 # include <limits.h>
17683 #else
17684 # include <assert.h>
17685 #endif
17687 #undef $ac_func
17689 /* Override any GCC internal prototype to avoid an error.
17690 Use char because int might match the return type of a GCC
17691 builtin and then its argument prototype would still apply. */
17692 #ifdef __cplusplus
17693 extern "C"
17694 #endif
17695 char $ac_func ();
17696 /* The GNU C library defines this for functions which it implements
17697 to always fail with ENOSYS. Some functions are actually named
17698 something starting with __ and the normal name is an alias. */
17699 #if defined __stub_$ac_func || defined __stub___$ac_func
17700 choke me
17701 #endif
17704 main ()
17706 return $ac_func ();
17708 return 0;
17710 _ACEOF
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_link") 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } && {
17725 test -z "$ac_c_werror_flag" ||
17726 test ! -s conftest.err
17727 } && test -s conftest$ac_exeext &&
17728 $as_test_x conftest$ac_exeext; then
17729 eval "$as_ac_var=yes"
17730 else
17731 echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 eval "$as_ac_var=no"
17737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17738 conftest$ac_exeext conftest.$ac_ext
17740 ac_res=`eval echo '${'$as_ac_var'}'`
17741 { echo "$as_me:$LINENO: result: $ac_res" >&5
17742 echo "${ECHO_T}$ac_res" >&6; }
17743 if test `eval echo '${'$as_ac_var'}'` = yes; then
17744 cat >>confdefs.h <<_ACEOF
17745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17746 _ACEOF
17747 cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h. */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 #include <unistd.h>
17755 main ()
17757 getpgrp(0);
17759 return 0;
17761 _ACEOF
17762 rm -f conftest.$ac_objext
17763 if { (ac_try="$ac_compile"
17764 case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17767 esac
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_compile") 2>conftest.er1
17770 ac_status=$?
17771 grep -v '^ *+' conftest.er1 >conftest.err
17772 rm -f conftest.er1
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } && {
17776 test -z "$ac_c_werror_flag" ||
17777 test ! -s conftest.err
17778 } && test -s conftest.$ac_objext; then
17780 cat >>confdefs.h <<\_ACEOF
17781 #define GETPGRP_HAVE_ARG 1
17782 _ACEOF
17785 else
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795 done
17798 for ac_func in setpgrp
17800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 else
17806 cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17814 #define $ac_func innocuous_$ac_func
17816 /* System header to define __stub macros and hopefully few prototypes,
17817 which can conflict with char $ac_func (); below.
17818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17819 <limits.h> exists even on freestanding compilers. */
17821 #ifdef __STDC__
17822 # include <limits.h>
17823 #else
17824 # include <assert.h>
17825 #endif
17827 #undef $ac_func
17829 /* Override any GCC internal prototype to avoid an error.
17830 Use char because int might match the return type of a GCC
17831 builtin and then its argument prototype would still apply. */
17832 #ifdef __cplusplus
17833 extern "C"
17834 #endif
17835 char $ac_func ();
17836 /* The GNU C library defines this for functions which it implements
17837 to always fail with ENOSYS. Some functions are actually named
17838 something starting with __ and the normal name is an alias. */
17839 #if defined __stub_$ac_func || defined __stub___$ac_func
17840 choke me
17841 #endif
17844 main ()
17846 return $ac_func ();
17848 return 0;
17850 _ACEOF
17851 rm -f conftest.$ac_objext conftest$ac_exeext
17852 if { (ac_try="$ac_link"
17853 case "(($ac_try" in
17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855 *) ac_try_echo=$ac_try;;
17856 esac
17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17858 (eval "$ac_link") 2>conftest.er1
17859 ac_status=$?
17860 grep -v '^ *+' conftest.er1 >conftest.err
17861 rm -f conftest.er1
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } && {
17865 test -z "$ac_c_werror_flag" ||
17866 test ! -s conftest.err
17867 } && test -s conftest$ac_exeext &&
17868 $as_test_x conftest$ac_exeext; then
17869 eval "$as_ac_var=yes"
17870 else
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 eval "$as_ac_var=no"
17877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17878 conftest$ac_exeext conftest.$ac_ext
17880 ac_res=`eval echo '${'$as_ac_var'}'`
17881 { echo "$as_me:$LINENO: result: $ac_res" >&5
17882 echo "${ECHO_T}$ac_res" >&6; }
17883 if test `eval echo '${'$as_ac_var'}'` = yes; then
17884 cat >>confdefs.h <<_ACEOF
17885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17886 _ACEOF
17887 cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h. */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 #include <unistd.h>
17895 main ()
17897 setpgrp(0,0);
17899 return 0;
17901 _ACEOF
17902 rm -f conftest.$ac_objext
17903 if { (ac_try="$ac_compile"
17904 case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_compile") 2>conftest.er1
17910 ac_status=$?
17911 grep -v '^ *+' conftest.er1 >conftest.err
17912 rm -f conftest.er1
17913 cat conftest.err >&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } && {
17916 test -z "$ac_c_werror_flag" ||
17917 test ! -s conftest.err
17918 } && test -s conftest.$ac_objext; then
17920 cat >>confdefs.h <<\_ACEOF
17921 #define SETPGRP_HAVE_ARG 1
17922 _ACEOF
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935 done
17938 for ac_func in gettimeofday
17940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946 cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h. */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17954 #define $ac_func innocuous_$ac_func
17956 /* System header to define __stub macros and hopefully few prototypes,
17957 which can conflict with char $ac_func (); below.
17958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17959 <limits.h> exists even on freestanding compilers. */
17961 #ifdef __STDC__
17962 # include <limits.h>
17963 #else
17964 # include <assert.h>
17965 #endif
17967 #undef $ac_func
17969 /* Override any GCC internal prototype to avoid an error.
17970 Use char because int might match the return type of a GCC
17971 builtin and then its argument prototype would still apply. */
17972 #ifdef __cplusplus
17973 extern "C"
17974 #endif
17975 char $ac_func ();
17976 /* The GNU C library defines this for functions which it implements
17977 to always fail with ENOSYS. Some functions are actually named
17978 something starting with __ and the normal name is an alias. */
17979 #if defined __stub_$ac_func || defined __stub___$ac_func
17980 choke me
17981 #endif
17984 main ()
17986 return $ac_func ();
17988 return 0;
17990 _ACEOF
17991 rm -f conftest.$ac_objext conftest$ac_exeext
17992 if { (ac_try="$ac_link"
17993 case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996 esac
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_link") 2>conftest.er1
17999 ac_status=$?
18000 grep -v '^ *+' conftest.er1 >conftest.err
18001 rm -f conftest.er1
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } && {
18005 test -z "$ac_c_werror_flag" ||
18006 test ! -s conftest.err
18007 } && test -s conftest$ac_exeext &&
18008 $as_test_x conftest$ac_exeext; then
18009 eval "$as_ac_var=yes"
18010 else
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 eval "$as_ac_var=no"
18017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18018 conftest$ac_exeext conftest.$ac_ext
18020 ac_res=`eval echo '${'$as_ac_var'}'`
18021 { echo "$as_me:$LINENO: result: $ac_res" >&5
18022 echo "${ECHO_T}$ac_res" >&6; }
18023 if test `eval echo '${'$as_ac_var'}'` = yes; then
18024 cat >>confdefs.h <<_ACEOF
18025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18026 _ACEOF
18027 cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h. */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 #include <sys/time.h>
18035 main ()
18037 gettimeofday((struct timeval*)0,(struct timezone*)0);
18039 return 0;
18041 _ACEOF
18042 rm -f conftest.$ac_objext
18043 if { (ac_try="$ac_compile"
18044 case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18047 esac
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_compile") 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } && {
18056 test -z "$ac_c_werror_flag" ||
18057 test ! -s conftest.err
18058 } && test -s conftest.$ac_objext; then
18060 else
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18065 cat >>confdefs.h <<\_ACEOF
18066 #define GETTIMEOFDAY_NO_TZ 1
18067 _ACEOF
18072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 done
18078 { echo "$as_me:$LINENO: checking for major" >&5
18079 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18080 cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h. */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18087 #if defined(MAJOR_IN_MKDEV)
18088 #include <sys/mkdev.h>
18089 #elif defined(MAJOR_IN_SYSMACROS)
18090 #include <sys/sysmacros.h>
18091 #else
18092 #include <sys/types.h>
18093 #endif
18096 main ()
18099 makedev(major(0),minor(0));
18102 return 0;
18104 _ACEOF
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (ac_try="$ac_link"
18107 case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110 esac
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_link") 2>conftest.er1
18113 ac_status=$?
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } && {
18119 test -z "$ac_c_werror_flag" ||
18120 test ! -s conftest.err
18121 } && test -s conftest$ac_exeext &&
18122 $as_test_x conftest$ac_exeext; then
18125 cat >>confdefs.h <<\_ACEOF
18126 #define HAVE_DEVICE_MACROS 1
18127 _ACEOF
18129 { echo "$as_me:$LINENO: result: yes" >&5
18130 echo "${ECHO_T}yes" >&6; }
18132 else
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18137 { echo "$as_me:$LINENO: result: no" >&5
18138 echo "${ECHO_T}no" >&6; }
18142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18143 conftest$ac_exeext conftest.$ac_ext
18145 # On OSF/1 V5.1, getaddrinfo is available, but a define
18146 # for [no]getaddrinfo in netdb.h.
18147 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18148 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18149 cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h. */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18156 #include <sys/types.h>
18157 #include <sys/socket.h>
18158 #include <netdb.h>
18159 #include <stdio.h>
18162 main ()
18165 getaddrinfo(NULL, NULL, NULL, NULL);
18168 return 0;
18170 _ACEOF
18171 rm -f conftest.$ac_objext conftest$ac_exeext
18172 if { (ac_try="$ac_link"
18173 case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18176 esac
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_link") 2>conftest.er1
18179 ac_status=$?
18180 grep -v '^ *+' conftest.er1 >conftest.err
18181 rm -f conftest.er1
18182 cat conftest.err >&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } && {
18185 test -z "$ac_c_werror_flag" ||
18186 test ! -s conftest.err
18187 } && test -s conftest$ac_exeext &&
18188 $as_test_x conftest$ac_exeext; then
18190 { echo "$as_me:$LINENO: result: yes" >&5
18191 echo "${ECHO_T}yes" >&6; }
18192 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18193 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18194 if test "$cross_compiling" = yes; then
18195 { echo "$as_me:$LINENO: result: buggy" >&5
18196 echo "${ECHO_T}buggy" >&6; }
18197 buggygetaddrinfo=yes
18198 else
18199 cat >conftest.$ac_ext <<_ACEOF
18200 /* confdefs.h. */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18206 #include <sys/types.h>
18207 #include <netdb.h>
18208 #include <string.h>
18209 #include <sys/socket.h>
18210 #include <netinet/in.h>
18212 main()
18214 int passive, gaierr, inet4 = 0, inet6 = 0;
18215 struct addrinfo hints, *ai, *aitop;
18216 char straddr[INET6_ADDRSTRLEN], strport[16];
18218 for (passive = 0; passive <= 1; passive++) {
18219 memset(&hints, 0, sizeof(hints));
18220 hints.ai_family = AF_UNSPEC;
18221 hints.ai_flags = passive ? AI_PASSIVE : 0;
18222 hints.ai_socktype = SOCK_STREAM;
18223 hints.ai_protocol = IPPROTO_TCP;
18224 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18225 (void)gai_strerror(gaierr);
18226 goto bad;
18228 for (ai = aitop; ai; ai = ai->ai_next) {
18229 if (ai->ai_addr == NULL ||
18230 ai->ai_addrlen == 0 ||
18231 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18232 straddr, sizeof(straddr), strport, sizeof(strport),
18233 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18234 goto bad;
18236 switch (ai->ai_family) {
18237 case AF_INET:
18238 if (strcmp(strport, "54321") != 0) {
18239 goto bad;
18241 if (passive) {
18242 if (strcmp(straddr, "0.0.0.0") != 0) {
18243 goto bad;
18245 } else {
18246 if (strcmp(straddr, "127.0.0.1") != 0) {
18247 goto bad;
18250 inet4++;
18251 break;
18252 case AF_INET6:
18253 if (strcmp(strport, "54321") != 0) {
18254 goto bad;
18256 if (passive) {
18257 if (strcmp(straddr, "::") != 0) {
18258 goto bad;
18260 } else {
18261 if (strcmp(straddr, "::1") != 0) {
18262 goto bad;
18265 inet6++;
18266 break;
18267 case AF_UNSPEC:
18268 goto bad;
18269 break;
18270 default:
18271 /* another family support? */
18272 break;
18277 if (!(inet4 == 0 || inet4 == 2))
18278 goto bad;
18279 if (!(inet6 == 0 || inet6 == 2))
18280 goto bad;
18282 if (aitop)
18283 freeaddrinfo(aitop);
18284 exit(0);
18286 bad:
18287 if (aitop)
18288 freeaddrinfo(aitop);
18289 exit(1);
18292 _ACEOF
18293 rm -f conftest$ac_exeext
18294 if { (ac_try="$ac_link"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_link") 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18304 { (case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18307 esac
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_try") 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 { echo "$as_me:$LINENO: result: good" >&5
18314 echo "${ECHO_T}good" >&6; }
18315 buggygetaddrinfo=no
18316 else
18317 echo "$as_me: program exited with status $ac_status" >&5
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ( exit $ac_status )
18322 { echo "$as_me:$LINENO: result: buggy" >&5
18323 echo "${ECHO_T}buggy" >&6; }
18324 buggygetaddrinfo=yes
18326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18330 else
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18335 { echo "$as_me:$LINENO: result: no" >&5
18336 echo "${ECHO_T}no" >&6; }
18337 buggygetaddrinfo=yes
18341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18342 conftest$ac_exeext conftest.$ac_ext
18344 if test "$buggygetaddrinfo" = "yes"; then
18345 if test "$ipv6" = "yes"; then
18346 echo 'Fatal: You must get working getaddrinfo() function.'
18347 echo ' or you can specify "--disable-ipv6"'.
18348 exit 1
18350 else
18352 cat >>confdefs.h <<\_ACEOF
18353 #define HAVE_GETADDRINFO 1
18354 _ACEOF
18358 for ac_func in getnameinfo
18360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18364 echo $ECHO_N "(cached) $ECHO_C" >&6
18365 else
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18374 #define $ac_func innocuous_$ac_func
18376 /* System header to define __stub macros and hopefully few prototypes,
18377 which can conflict with char $ac_func (); below.
18378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18379 <limits.h> exists even on freestanding compilers. */
18381 #ifdef __STDC__
18382 # include <limits.h>
18383 #else
18384 # include <assert.h>
18385 #endif
18387 #undef $ac_func
18389 /* Override any GCC internal prototype to avoid an error.
18390 Use char because int might match the return type of a GCC
18391 builtin and then its argument prototype would still apply. */
18392 #ifdef __cplusplus
18393 extern "C"
18394 #endif
18395 char $ac_func ();
18396 /* The GNU C library defines this for functions which it implements
18397 to always fail with ENOSYS. Some functions are actually named
18398 something starting with __ and the normal name is an alias. */
18399 #if defined __stub_$ac_func || defined __stub___$ac_func
18400 choke me
18401 #endif
18404 main ()
18406 return $ac_func ();
18408 return 0;
18410 _ACEOF
18411 rm -f conftest.$ac_objext conftest$ac_exeext
18412 if { (ac_try="$ac_link"
18413 case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18416 esac
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_link") 2>conftest.er1
18419 ac_status=$?
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } && {
18425 test -z "$ac_c_werror_flag" ||
18426 test ! -s conftest.err
18427 } && test -s conftest$ac_exeext &&
18428 $as_test_x conftest$ac_exeext; then
18429 eval "$as_ac_var=yes"
18430 else
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 eval "$as_ac_var=no"
18437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18438 conftest$ac_exeext conftest.$ac_ext
18440 ac_res=`eval echo '${'$as_ac_var'}'`
18441 { echo "$as_me:$LINENO: result: $ac_res" >&5
18442 echo "${ECHO_T}$ac_res" >&6; }
18443 if test `eval echo '${'$as_ac_var'}'` = yes; then
18444 cat >>confdefs.h <<_ACEOF
18445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18446 _ACEOF
18449 done
18452 # checks for structures
18453 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18454 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18455 if test "${ac_cv_header_time+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18457 else
18458 cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h. */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 #include <sys/types.h>
18465 #include <sys/time.h>
18466 #include <time.h>
18469 main ()
18471 if ((struct tm *) 0)
18472 return 0;
18474 return 0;
18476 _ACEOF
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_compile") 2>conftest.er1
18485 ac_status=$?
18486 grep -v '^ *+' conftest.er1 >conftest.err
18487 rm -f conftest.er1
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } && {
18491 test -z "$ac_c_werror_flag" ||
18492 test ! -s conftest.err
18493 } && test -s conftest.$ac_objext; then
18494 ac_cv_header_time=yes
18495 else
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18499 ac_cv_header_time=no
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18505 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18506 if test $ac_cv_header_time = yes; then
18508 cat >>confdefs.h <<\_ACEOF
18509 #define TIME_WITH_SYS_TIME 1
18510 _ACEOF
18514 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18515 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18516 if test "${ac_cv_struct_tm+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 else
18519 cat >conftest.$ac_ext <<_ACEOF
18520 /* confdefs.h. */
18521 _ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18525 #include <sys/types.h>
18526 #include <time.h>
18529 main ()
18531 struct tm tm;
18532 int *p = &tm.tm_sec;
18533 return !p;
18535 return 0;
18537 _ACEOF
18538 rm -f conftest.$ac_objext
18539 if { (ac_try="$ac_compile"
18540 case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18543 esac
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_compile") 2>conftest.er1
18546 ac_status=$?
18547 grep -v '^ *+' conftest.er1 >conftest.err
18548 rm -f conftest.er1
18549 cat conftest.err >&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } && {
18552 test -z "$ac_c_werror_flag" ||
18553 test ! -s conftest.err
18554 } && test -s conftest.$ac_objext; then
18555 ac_cv_struct_tm=time.h
18556 else
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18560 ac_cv_struct_tm=sys/time.h
18563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18565 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18566 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18567 if test $ac_cv_struct_tm = sys/time.h; then
18569 cat >>confdefs.h <<\_ACEOF
18570 #define TM_IN_SYS_TIME 1
18571 _ACEOF
18575 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18576 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18577 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18578 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 else
18580 cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h. */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 #include <sys/types.h>
18587 #include <$ac_cv_struct_tm>
18591 main ()
18593 static struct tm ac_aggr;
18594 if (ac_aggr.tm_zone)
18595 return 0;
18597 return 0;
18599 _ACEOF
18600 rm -f conftest.$ac_objext
18601 if { (ac_try="$ac_compile"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18605 esac
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_compile") 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } && {
18614 test -z "$ac_c_werror_flag" ||
18615 test ! -s conftest.err
18616 } && test -s conftest.$ac_objext; then
18617 ac_cv_member_struct_tm_tm_zone=yes
18618 else
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 cat >conftest.$ac_ext <<_ACEOF
18623 /* confdefs.h. */
18624 _ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 #include <sys/types.h>
18629 #include <$ac_cv_struct_tm>
18633 main ()
18635 static struct tm ac_aggr;
18636 if (sizeof ac_aggr.tm_zone)
18637 return 0;
18639 return 0;
18641 _ACEOF
18642 rm -f conftest.$ac_objext
18643 if { (ac_try="$ac_compile"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647 esac
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_compile") 2>conftest.er1
18650 ac_status=$?
18651 grep -v '^ *+' conftest.er1 >conftest.err
18652 rm -f conftest.er1
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } && {
18656 test -z "$ac_c_werror_flag" ||
18657 test ! -s conftest.err
18658 } && test -s conftest.$ac_objext; then
18659 ac_cv_member_struct_tm_tm_zone=yes
18660 else
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18664 ac_cv_member_struct_tm_tm_zone=no
18667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18672 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18673 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18674 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18676 cat >>confdefs.h <<_ACEOF
18677 #define HAVE_STRUCT_TM_TM_ZONE 1
18678 _ACEOF
18683 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18685 cat >>confdefs.h <<\_ACEOF
18686 #define HAVE_TM_ZONE 1
18687 _ACEOF
18689 else
18690 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18691 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18692 if test "${ac_cv_have_decl_tzname+set}" = set; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 else
18695 cat >conftest.$ac_ext <<_ACEOF
18696 /* confdefs.h. */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18701 #include <time.h>
18704 main ()
18706 #ifndef tzname
18707 (void) tzname;
18708 #endif
18711 return 0;
18713 _ACEOF
18714 rm -f conftest.$ac_objext
18715 if { (ac_try="$ac_compile"
18716 case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_compile") 2>conftest.er1
18722 ac_status=$?
18723 grep -v '^ *+' conftest.er1 >conftest.err
18724 rm -f conftest.er1
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } && {
18728 test -z "$ac_c_werror_flag" ||
18729 test ! -s conftest.err
18730 } && test -s conftest.$ac_objext; then
18731 ac_cv_have_decl_tzname=yes
18732 else
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18736 ac_cv_have_decl_tzname=no
18739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18741 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18742 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18743 if test $ac_cv_have_decl_tzname = yes; then
18745 cat >>confdefs.h <<_ACEOF
18746 #define HAVE_DECL_TZNAME 1
18747 _ACEOF
18750 else
18751 cat >>confdefs.h <<_ACEOF
18752 #define HAVE_DECL_TZNAME 0
18753 _ACEOF
18759 { echo "$as_me:$LINENO: checking for tzname" >&5
18760 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18761 if test "${ac_cv_var_tzname+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764 cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h. */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770 #include <time.h>
18771 #if !HAVE_DECL_TZNAME
18772 extern char *tzname[];
18773 #endif
18776 main ()
18778 return tzname[0][0];
18780 return 0;
18782 _ACEOF
18783 rm -f conftest.$ac_objext conftest$ac_exeext
18784 if { (ac_try="$ac_link"
18785 case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788 esac
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_link") 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } && {
18797 test -z "$ac_c_werror_flag" ||
18798 test ! -s conftest.err
18799 } && test -s conftest$ac_exeext &&
18800 $as_test_x conftest$ac_exeext; then
18801 ac_cv_var_tzname=yes
18802 else
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_var_tzname=no
18809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18810 conftest$ac_exeext conftest.$ac_ext
18812 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18813 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18814 if test $ac_cv_var_tzname = yes; then
18816 cat >>confdefs.h <<\_ACEOF
18817 #define HAVE_TZNAME 1
18818 _ACEOF
18823 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18824 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18825 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828 cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h. */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18834 $ac_includes_default
18836 main ()
18838 static struct stat ac_aggr;
18839 if (ac_aggr.st_rdev)
18840 return 0;
18842 return 0;
18844 _ACEOF
18845 rm -f conftest.$ac_objext
18846 if { (ac_try="$ac_compile"
18847 case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_compile") 2>conftest.er1
18853 ac_status=$?
18854 grep -v '^ *+' conftest.er1 >conftest.err
18855 rm -f conftest.er1
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } && {
18859 test -z "$ac_c_werror_flag" ||
18860 test ! -s conftest.err
18861 } && test -s conftest.$ac_objext; then
18862 ac_cv_member_struct_stat_st_rdev=yes
18863 else
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h. */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18873 $ac_includes_default
18875 main ()
18877 static struct stat ac_aggr;
18878 if (sizeof ac_aggr.st_rdev)
18879 return 0;
18881 return 0;
18883 _ACEOF
18884 rm -f conftest.$ac_objext
18885 if { (ac_try="$ac_compile"
18886 case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_compile") 2>conftest.er1
18892 ac_status=$?
18893 grep -v '^ *+' conftest.er1 >conftest.err
18894 rm -f conftest.er1
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } && {
18898 test -z "$ac_c_werror_flag" ||
18899 test ! -s conftest.err
18900 } && test -s conftest.$ac_objext; then
18901 ac_cv_member_struct_stat_st_rdev=yes
18902 else
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18906 ac_cv_member_struct_stat_st_rdev=no
18909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18914 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18915 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18916 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define HAVE_STRUCT_STAT_ST_RDEV 1
18920 _ACEOF
18925 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18926 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18927 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 else
18930 cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h. */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 $ac_includes_default
18938 main ()
18940 static struct stat ac_aggr;
18941 if (ac_aggr.st_blksize)
18942 return 0;
18944 return 0;
18946 _ACEOF
18947 rm -f conftest.$ac_objext
18948 if { (ac_try="$ac_compile"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_compile") 2>conftest.er1
18955 ac_status=$?
18956 grep -v '^ *+' conftest.er1 >conftest.err
18957 rm -f conftest.er1
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } && {
18961 test -z "$ac_c_werror_flag" ||
18962 test ! -s conftest.err
18963 } && test -s conftest.$ac_objext; then
18964 ac_cv_member_struct_stat_st_blksize=yes
18965 else
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18969 cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h. */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 $ac_includes_default
18977 main ()
18979 static struct stat ac_aggr;
18980 if (sizeof ac_aggr.st_blksize)
18981 return 0;
18983 return 0;
18985 _ACEOF
18986 rm -f conftest.$ac_objext
18987 if { (ac_try="$ac_compile"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_compile") 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest.$ac_objext; then
19003 ac_cv_member_struct_stat_st_blksize=yes
19004 else
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19008 ac_cv_member_struct_stat_st_blksize=no
19011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19016 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19017 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19018 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19020 cat >>confdefs.h <<_ACEOF
19021 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19022 _ACEOF
19027 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19028 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19029 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19032 cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h. */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19038 $ac_includes_default
19040 main ()
19042 static struct stat ac_aggr;
19043 if (ac_aggr.st_flags)
19044 return 0;
19046 return 0;
19048 _ACEOF
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_compile") 2>conftest.er1
19057 ac_status=$?
19058 grep -v '^ *+' conftest.er1 >conftest.err
19059 rm -f conftest.er1
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest.$ac_objext; then
19066 ac_cv_member_struct_stat_st_flags=yes
19067 else
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h. */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 $ac_includes_default
19079 main ()
19081 static struct stat ac_aggr;
19082 if (sizeof ac_aggr.st_flags)
19083 return 0;
19085 return 0;
19087 _ACEOF
19088 rm -f conftest.$ac_objext
19089 if { (ac_try="$ac_compile"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_compile") 2>conftest.er1
19096 ac_status=$?
19097 grep -v '^ *+' conftest.er1 >conftest.err
19098 rm -f conftest.er1
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest.$ac_objext; then
19105 ac_cv_member_struct_stat_st_flags=yes
19106 else
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_cv_member_struct_stat_st_flags=no
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19118 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19119 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19120 if test $ac_cv_member_struct_stat_st_flags = yes; then
19122 cat >>confdefs.h <<_ACEOF
19123 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19124 _ACEOF
19129 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19130 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19131 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19133 else
19134 cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h. */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140 $ac_includes_default
19142 main ()
19144 static struct stat ac_aggr;
19145 if (ac_aggr.st_gen)
19146 return 0;
19148 return 0;
19150 _ACEOF
19151 rm -f conftest.$ac_objext
19152 if { (ac_try="$ac_compile"
19153 case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156 esac
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_compile") 2>conftest.er1
19159 ac_status=$?
19160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } && {
19165 test -z "$ac_c_werror_flag" ||
19166 test ! -s conftest.err
19167 } && test -s conftest.$ac_objext; then
19168 ac_cv_member_struct_stat_st_gen=yes
19169 else
19170 echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h. */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 $ac_includes_default
19181 main ()
19183 static struct stat ac_aggr;
19184 if (sizeof ac_aggr.st_gen)
19185 return 0;
19187 return 0;
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19198 ac_status=$?
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } && {
19204 test -z "$ac_c_werror_flag" ||
19205 test ! -s conftest.err
19206 } && test -s conftest.$ac_objext; then
19207 ac_cv_member_struct_stat_st_gen=yes
19208 else
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 ac_cv_member_struct_stat_st_gen=no
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19221 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19222 if test $ac_cv_member_struct_stat_st_gen = yes; then
19224 cat >>confdefs.h <<_ACEOF
19225 #define HAVE_STRUCT_STAT_ST_GEN 1
19226 _ACEOF
19231 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19232 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19233 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h. */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 $ac_includes_default
19244 main ()
19246 static struct stat ac_aggr;
19247 if (ac_aggr.st_birthtime)
19248 return 0;
19250 return 0;
19252 _ACEOF
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19258 esac
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_compile") 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } && {
19267 test -z "$ac_c_werror_flag" ||
19268 test ! -s conftest.err
19269 } && test -s conftest.$ac_objext; then
19270 ac_cv_member_struct_stat_st_birthtime=yes
19271 else
19272 echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19275 cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h. */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281 $ac_includes_default
19283 main ()
19285 static struct stat ac_aggr;
19286 if (sizeof ac_aggr.st_birthtime)
19287 return 0;
19289 return 0;
19291 _ACEOF
19292 rm -f conftest.$ac_objext
19293 if { (ac_try="$ac_compile"
19294 case "(($ac_try" in
19295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296 *) ac_try_echo=$ac_try;;
19297 esac
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299 (eval "$ac_compile") 2>conftest.er1
19300 ac_status=$?
19301 grep -v '^ *+' conftest.er1 >conftest.err
19302 rm -f conftest.er1
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } && {
19306 test -z "$ac_c_werror_flag" ||
19307 test ! -s conftest.err
19308 } && test -s conftest.$ac_objext; then
19309 ac_cv_member_struct_stat_st_birthtime=yes
19310 else
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_cv_member_struct_stat_st_birthtime=no
19317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19322 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19323 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19324 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19326 cat >>confdefs.h <<_ACEOF
19327 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19328 _ACEOF
19333 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19334 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19335 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 else
19338 cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h. */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 $ac_includes_default
19346 main ()
19348 static struct stat ac_aggr;
19349 if (ac_aggr.st_blocks)
19350 return 0;
19352 return 0;
19354 _ACEOF
19355 rm -f conftest.$ac_objext
19356 if { (ac_try="$ac_compile"
19357 case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_compile") 2>conftest.er1
19363 ac_status=$?
19364 grep -v '^ *+' conftest.er1 >conftest.err
19365 rm -f conftest.er1
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } && {
19369 test -z "$ac_c_werror_flag" ||
19370 test ! -s conftest.err
19371 } && test -s conftest.$ac_objext; then
19372 ac_cv_member_struct_stat_st_blocks=yes
19373 else
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 cat >conftest.$ac_ext <<_ACEOF
19378 /* confdefs.h. */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19383 $ac_includes_default
19385 main ()
19387 static struct stat ac_aggr;
19388 if (sizeof ac_aggr.st_blocks)
19389 return 0;
19391 return 0;
19393 _ACEOF
19394 rm -f conftest.$ac_objext
19395 if { (ac_try="$ac_compile"
19396 case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19399 esac
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_compile") 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } && {
19408 test -z "$ac_c_werror_flag" ||
19409 test ! -s conftest.err
19410 } && test -s conftest.$ac_objext; then
19411 ac_cv_member_struct_stat_st_blocks=yes
19412 else
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19416 ac_cv_member_struct_stat_st_blocks=no
19419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19424 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19425 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19426 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19428 cat >>confdefs.h <<_ACEOF
19429 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19430 _ACEOF
19433 cat >>confdefs.h <<\_ACEOF
19434 #define HAVE_ST_BLOCKS 1
19435 _ACEOF
19437 else
19438 case " $LIBOBJS " in
19439 *" fileblocks.$ac_objext "* ) ;;
19440 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19442 esac
19448 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19449 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19450 if test "${ac_cv_header_time_altzone+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 else
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h. */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19459 #include <time.h>
19461 main ()
19463 return altzone;
19465 return 0;
19467 _ACEOF
19468 rm -f conftest.$ac_objext
19469 if { (ac_try="$ac_compile"
19470 case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19473 esac
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_compile") 2>conftest.er1
19476 ac_status=$?
19477 grep -v '^ *+' conftest.er1 >conftest.err
19478 rm -f conftest.er1
19479 cat conftest.err >&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } && {
19482 test -z "$ac_c_werror_flag" ||
19483 test ! -s conftest.err
19484 } && test -s conftest.$ac_objext; then
19485 ac_cv_header_time_altzone=yes
19486 else
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 ac_cv_header_time_altzone=no
19493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19497 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19498 if test $ac_cv_header_time_altzone = yes; then
19500 cat >>confdefs.h <<\_ACEOF
19501 #define HAVE_ALTZONE 1
19502 _ACEOF
19506 was_it_defined=no
19507 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19508 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19509 cat >conftest.$ac_ext <<_ACEOF
19510 /* confdefs.h. */
19511 _ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19516 #include <sys/types.h>
19517 #include <sys/select.h>
19518 #include <sys/time.h>
19521 main ()
19525 return 0;
19527 _ACEOF
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19536 ac_status=$?
19537 grep -v '^ *+' conftest.er1 >conftest.err
19538 rm -f conftest.er1
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } && {
19542 test -z "$ac_c_werror_flag" ||
19543 test ! -s conftest.err
19544 } && test -s conftest.$ac_objext; then
19547 cat >>confdefs.h <<\_ACEOF
19548 #define SYS_SELECT_WITH_SYS_TIME 1
19549 _ACEOF
19551 was_it_defined=yes
19553 else
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19562 echo "${ECHO_T}$was_it_defined" >&6; }
19564 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19565 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19566 if test "${ac_cv_struct_addrinfo+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569 cat >conftest.$ac_ext <<_ACEOF
19570 /* confdefs.h. */
19571 _ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h. */
19576 # include <netdb.h>
19578 main ()
19580 struct addrinfo a
19582 return 0;
19584 _ACEOF
19585 rm -f conftest.$ac_objext
19586 if { (ac_try="$ac_compile"
19587 case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19590 esac
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_compile") 2>conftest.er1
19593 ac_status=$?
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } && {
19599 test -z "$ac_c_werror_flag" ||
19600 test ! -s conftest.err
19601 } && test -s conftest.$ac_objext; then
19602 ac_cv_struct_addrinfo=yes
19603 else
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19607 ac_cv_struct_addrinfo=no
19610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19614 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19615 if test $ac_cv_struct_addrinfo = yes; then
19617 cat >>confdefs.h <<\_ACEOF
19618 #define HAVE_ADDRINFO 1
19619 _ACEOF
19623 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19624 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19625 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h. */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19635 # include <sys/types.h>
19636 # include <sys/socket.h>
19638 main ()
19640 struct sockaddr_storage s
19642 return 0;
19644 _ACEOF
19645 rm -f conftest.$ac_objext
19646 if { (ac_try="$ac_compile"
19647 case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19650 esac
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_compile") 2>conftest.er1
19653 ac_status=$?
19654 grep -v '^ *+' conftest.er1 >conftest.err
19655 rm -f conftest.er1
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } && {
19659 test -z "$ac_c_werror_flag" ||
19660 test ! -s conftest.err
19661 } && test -s conftest.$ac_objext; then
19662 ac_cv_struct_sockaddr_storage=yes
19663 else
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19667 ac_cv_struct_sockaddr_storage=no
19670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19673 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19674 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19675 if test $ac_cv_struct_sockaddr_storage = yes; then
19677 cat >>confdefs.h <<\_ACEOF
19678 #define HAVE_SOCKADDR_STORAGE 1
19679 _ACEOF
19683 # checks for compiler characteristics
19686 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19687 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19688 if test "${ac_cv_c_char_unsigned+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 else
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 $ac_includes_default
19699 main ()
19701 static int test_array [1 - 2 * !(((char) -1) < 0)];
19702 test_array [0] = 0
19705 return 0;
19707 _ACEOF
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_compile") 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } && {
19722 test -z "$ac_c_werror_flag" ||
19723 test ! -s conftest.err
19724 } && test -s conftest.$ac_objext; then
19725 ac_cv_c_char_unsigned=no
19726 else
19727 echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19730 ac_cv_c_char_unsigned=yes
19733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19735 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19736 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19737 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19738 cat >>confdefs.h <<\_ACEOF
19739 #define __CHAR_UNSIGNED__ 1
19740 _ACEOF
19744 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19745 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19746 if test "${ac_cv_c_const+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h. */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19757 main ()
19759 /* FIXME: Include the comments suggested by Paul. */
19760 #ifndef __cplusplus
19761 /* Ultrix mips cc rejects this. */
19762 typedef int charset[2];
19763 const charset cs;
19764 /* SunOS 4.1.1 cc rejects this. */
19765 char const *const *pcpcc;
19766 char **ppc;
19767 /* NEC SVR4.0.2 mips cc rejects this. */
19768 struct point {int x, y;};
19769 static struct point const zero = {0,0};
19770 /* AIX XL C 1.02.0.0 rejects this.
19771 It does not let you subtract one const X* pointer from another in
19772 an arm of an if-expression whose if-part is not a constant
19773 expression */
19774 const char *g = "string";
19775 pcpcc = &g + (g ? g-g : 0);
19776 /* HPUX 7.0 cc rejects these. */
19777 ++pcpcc;
19778 ppc = (char**) pcpcc;
19779 pcpcc = (char const *const *) ppc;
19780 { /* SCO 3.2v4 cc rejects this. */
19781 char *t;
19782 char const *s = 0 ? (char *) 0 : (char const *) 0;
19784 *t++ = 0;
19785 if (s) return 0;
19787 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19788 int x[] = {25, 17};
19789 const int *foo = &x[0];
19790 ++foo;
19792 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19793 typedef const int *iptr;
19794 iptr p = 0;
19795 ++p;
19797 { /* AIX XL C 1.02.0.0 rejects this saying
19798 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19799 struct s { int j; const int *ap[3]; };
19800 struct s *b; b->j = 5;
19802 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19803 const int foo = 10;
19804 if (!foo) return 0;
19806 return !cs[0] && !zero.x;
19807 #endif
19810 return 0;
19812 _ACEOF
19813 rm -f conftest.$ac_objext
19814 if { (ac_try="$ac_compile"
19815 case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818 esac
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_compile") 2>conftest.er1
19821 ac_status=$?
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && {
19827 test -z "$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19829 } && test -s conftest.$ac_objext; then
19830 ac_cv_c_const=yes
19831 else
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_cv_c_const=no
19838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19841 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19842 if test $ac_cv_c_const = no; then
19844 cat >>confdefs.h <<\_ACEOF
19845 #define const
19846 _ACEOF
19851 works=no
19852 { echo "$as_me:$LINENO: checking for working volatile" >&5
19853 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h. */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19862 main ()
19864 volatile int x; x = 0;
19866 return 0;
19868 _ACEOF
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19877 ac_status=$?
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && {
19883 test -z "$ac_c_werror_flag" ||
19884 test ! -s conftest.err
19885 } && test -s conftest.$ac_objext; then
19886 works=yes
19887 else
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19892 cat >>confdefs.h <<\_ACEOF
19893 #define volatile
19894 _ACEOF
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19900 { echo "$as_me:$LINENO: result: $works" >&5
19901 echo "${ECHO_T}$works" >&6; }
19903 works=no
19904 { echo "$as_me:$LINENO: checking for working signed char" >&5
19905 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19906 cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h. */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19914 main ()
19916 signed char c;
19918 return 0;
19920 _ACEOF
19921 rm -f conftest.$ac_objext
19922 if { (ac_try="$ac_compile"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_compile") 2>conftest.er1
19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest.$ac_objext; then
19938 works=yes
19939 else
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19944 cat >>confdefs.h <<\_ACEOF
19945 #define signed
19946 _ACEOF
19951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952 { echo "$as_me:$LINENO: result: $works" >&5
19953 echo "${ECHO_T}$works" >&6; }
19955 have_prototypes=no
19956 { echo "$as_me:$LINENO: checking for prototypes" >&5
19957 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19958 cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h. */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 int foo(int x) { return 0; }
19966 main ()
19968 return foo(10);
19970 return 0;
19972 _ACEOF
19973 rm -f conftest.$ac_objext
19974 if { (ac_try="$ac_compile"
19975 case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19978 esac
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_compile") 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } && {
19987 test -z "$ac_c_werror_flag" ||
19988 test ! -s conftest.err
19989 } && test -s conftest.$ac_objext; then
19992 cat >>confdefs.h <<\_ACEOF
19993 #define HAVE_PROTOTYPES 1
19994 _ACEOF
19996 have_prototypes=yes
19998 else
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20006 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20007 echo "${ECHO_T}$have_prototypes" >&6; }
20009 works=no
20010 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20011 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h. */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20019 #include <stdarg.h>
20020 int foo(int x, ...) {
20021 va_list va;
20022 va_start(va, x);
20023 va_arg(va, int);
20024 va_arg(va, char *);
20025 va_arg(va, double);
20026 return 0;
20030 main ()
20032 return foo(10, "", 3.14);
20034 return 0;
20036 _ACEOF
20037 rm -f conftest.$ac_objext
20038 if { (ac_try="$ac_compile"
20039 case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20042 esac
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_compile") 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } && {
20051 test -z "$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 } && test -s conftest.$ac_objext; then
20056 cat >>confdefs.h <<\_ACEOF
20057 #define HAVE_STDARG_PROTOTYPES 1
20058 _ACEOF
20060 works=yes
20062 else
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 { echo "$as_me:$LINENO: result: $works" >&5
20071 echo "${ECHO_T}$works" >&6; }
20073 # check for socketpair
20074 { echo "$as_me:$LINENO: checking for socketpair" >&5
20075 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h. */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20083 #include <sys/types.h>
20084 #include <sys/socket.h>
20087 main ()
20089 void *x=socketpair
20091 return 0;
20093 _ACEOF
20094 rm -f conftest.$ac_objext
20095 if { (ac_try="$ac_compile"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_compile") 2>conftest.er1
20102 ac_status=$?
20103 grep -v '^ *+' conftest.er1 >conftest.err
20104 rm -f conftest.er1
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } && {
20108 test -z "$ac_c_werror_flag" ||
20109 test ! -s conftest.err
20110 } && test -s conftest.$ac_objext; then
20112 cat >>confdefs.h <<\_ACEOF
20113 #define HAVE_SOCKETPAIR 1
20114 _ACEOF
20116 { echo "$as_me:$LINENO: result: yes" >&5
20117 echo "${ECHO_T}yes" >&6; }
20118 else
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 { echo "$as_me:$LINENO: result: no" >&5
20123 echo "${ECHO_T}no" >&6; }
20127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 # check if sockaddr has sa_len member
20130 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20131 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20132 cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h. */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 #include <sys/types.h>
20139 #include <sys/socket.h>
20141 main ()
20143 struct sockaddr x;
20144 x.sa_len = 0;
20146 return 0;
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_compile") 2>conftest.er1
20157 ac_status=$?
20158 grep -v '^ *+' conftest.er1 >conftest.err
20159 rm -f conftest.er1
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } && {
20163 test -z "$ac_c_werror_flag" ||
20164 test ! -s conftest.err
20165 } && test -s conftest.$ac_objext; then
20166 { echo "$as_me:$LINENO: result: yes" >&5
20167 echo "${ECHO_T}yes" >&6; }
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_SOCKADDR_SA_LEN 1
20171 _ACEOF
20173 else
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20177 { echo "$as_me:$LINENO: result: no" >&5
20178 echo "${ECHO_T}no" >&6; }
20181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183 va_list_is_array=no
20184 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20185 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20186 cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h. */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20193 #ifdef HAVE_STDARG_PROTOTYPES
20194 #include <stdarg.h>
20195 #else
20196 #include <varargs.h>
20197 #endif
20200 main ()
20202 va_list list1, list2; list1 = list2;
20204 return 0;
20206 _ACEOF
20207 rm -f conftest.$ac_objext
20208 if { (ac_try="$ac_compile"
20209 case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20212 esac
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_compile") 2>conftest.er1
20215 ac_status=$?
20216 grep -v '^ *+' conftest.er1 >conftest.err
20217 rm -f conftest.er1
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } && {
20221 test -z "$ac_c_werror_flag" ||
20222 test ! -s conftest.err
20223 } && test -s conftest.$ac_objext; then
20225 else
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20231 cat >>confdefs.h <<\_ACEOF
20232 #define VA_LIST_IS_ARRAY 1
20233 _ACEOF
20235 va_list_is_array=yes
20239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20240 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20241 echo "${ECHO_T}$va_list_is_array" >&6; }
20243 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20247 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20248 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20249 if test "${ac_cv_func_gethostbyname_r+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. */
20258 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20260 #define gethostbyname_r innocuous_gethostbyname_r
20262 /* System header to define __stub macros and hopefully few prototypes,
20263 which can conflict with char gethostbyname_r (); below.
20264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20265 <limits.h> exists even on freestanding compilers. */
20267 #ifdef __STDC__
20268 # include <limits.h>
20269 #else
20270 # include <assert.h>
20271 #endif
20273 #undef gethostbyname_r
20275 /* Override any GCC internal prototype to avoid an error.
20276 Use char because int might match the return type of a GCC
20277 builtin and then its argument prototype would still apply. */
20278 #ifdef __cplusplus
20279 extern "C"
20280 #endif
20281 char gethostbyname_r ();
20282 /* The GNU C library defines this for functions which it implements
20283 to always fail with ENOSYS. Some functions are actually named
20284 something starting with __ and the normal name is an alias. */
20285 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20286 choke me
20287 #endif
20290 main ()
20292 return gethostbyname_r ();
20294 return 0;
20296 _ACEOF
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (ac_try="$ac_link"
20299 case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20302 esac
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_link") 2>conftest.er1
20305 ac_status=$?
20306 grep -v '^ *+' conftest.er1 >conftest.err
20307 rm -f conftest.er1
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } && {
20311 test -z "$ac_c_werror_flag" ||
20312 test ! -s conftest.err
20313 } && test -s conftest$ac_exeext &&
20314 $as_test_x conftest$ac_exeext; then
20315 ac_cv_func_gethostbyname_r=yes
20316 else
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_func_gethostbyname_r=no
20323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20324 conftest$ac_exeext conftest.$ac_ext
20326 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20327 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20328 if test $ac_cv_func_gethostbyname_r = yes; then
20330 cat >>confdefs.h <<\_ACEOF
20331 #define HAVE_GETHOSTBYNAME_R 1
20332 _ACEOF
20334 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20335 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20336 OLD_CFLAGS=$CFLAGS
20337 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20338 cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h. */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20345 # include <netdb.h>
20348 main ()
20351 char *name;
20352 struct hostent *he, *res;
20353 char buffer[2048];
20354 int buflen = 2048;
20355 int h_errnop;
20357 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20360 return 0;
20362 _ACEOF
20363 rm -f conftest.$ac_objext
20364 if { (ac_try="$ac_compile"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_compile") 2>conftest.er1
20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } && {
20377 test -z "$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 } && test -s conftest.$ac_objext; then
20381 cat >>confdefs.h <<\_ACEOF
20382 #define HAVE_GETHOSTBYNAME_R 1
20383 _ACEOF
20386 cat >>confdefs.h <<\_ACEOF
20387 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20388 _ACEOF
20390 { echo "$as_me:$LINENO: result: yes" >&5
20391 echo "${ECHO_T}yes" >&6; }
20393 else
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20398 { echo "$as_me:$LINENO: result: no" >&5
20399 echo "${ECHO_T}no" >&6; }
20400 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20401 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20402 cat >conftest.$ac_ext <<_ACEOF
20403 /* confdefs.h. */
20404 _ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h. */
20409 # include <netdb.h>
20412 main ()
20415 char *name;
20416 struct hostent *he;
20417 char buffer[2048];
20418 int buflen = 2048;
20419 int h_errnop;
20421 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20424 return 0;
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (ac_try="$ac_compile"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20432 esac
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_compile") 2>conftest.er1
20435 ac_status=$?
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest.$ac_objext; then
20445 cat >>confdefs.h <<\_ACEOF
20446 #define HAVE_GETHOSTBYNAME_R 1
20447 _ACEOF
20450 cat >>confdefs.h <<\_ACEOF
20451 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20452 _ACEOF
20454 { echo "$as_me:$LINENO: result: yes" >&5
20455 echo "${ECHO_T}yes" >&6; }
20457 else
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20462 { echo "$as_me:$LINENO: result: no" >&5
20463 echo "${ECHO_T}no" >&6; }
20464 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20465 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h. */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20473 # include <netdb.h>
20476 main ()
20479 char *name;
20480 struct hostent *he;
20481 struct hostent_data data;
20483 (void) gethostbyname_r(name, he, &data);
20486 return 0;
20488 _ACEOF
20489 rm -f conftest.$ac_objext
20490 if { (ac_try="$ac_compile"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest.$ac_objext; then
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_GETHOSTBYNAME_R 1
20509 _ACEOF
20512 cat >>confdefs.h <<\_ACEOF
20513 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20514 _ACEOF
20516 { echo "$as_me:$LINENO: result: yes" >&5
20517 echo "${ECHO_T}yes" >&6; }
20519 else
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20524 { echo "$as_me:$LINENO: result: no" >&5
20525 echo "${ECHO_T}no" >&6; }
20529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20538 CFLAGS=$OLD_CFLAGS
20540 else
20543 for ac_func in gethostbyname
20545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551 cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h. */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20559 #define $ac_func innocuous_$ac_func
20561 /* System header to define __stub macros and hopefully few prototypes,
20562 which can conflict with char $ac_func (); below.
20563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20564 <limits.h> exists even on freestanding compilers. */
20566 #ifdef __STDC__
20567 # include <limits.h>
20568 #else
20569 # include <assert.h>
20570 #endif
20572 #undef $ac_func
20574 /* Override any GCC internal prototype to avoid an error.
20575 Use char because int might match the return type of a GCC
20576 builtin and then its argument prototype would still apply. */
20577 #ifdef __cplusplus
20578 extern "C"
20579 #endif
20580 char $ac_func ();
20581 /* The GNU C library defines this for functions which it implements
20582 to always fail with ENOSYS. Some functions are actually named
20583 something starting with __ and the normal name is an alias. */
20584 #if defined __stub_$ac_func || defined __stub___$ac_func
20585 choke me
20586 #endif
20589 main ()
20591 return $ac_func ();
20593 return 0;
20595 _ACEOF
20596 rm -f conftest.$ac_objext conftest$ac_exeext
20597 if { (ac_try="$ac_link"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20601 esac
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_link") 2>conftest.er1
20604 ac_status=$?
20605 grep -v '^ *+' conftest.er1 >conftest.err
20606 rm -f conftest.er1
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } && {
20610 test -z "$ac_c_werror_flag" ||
20611 test ! -s conftest.err
20612 } && test -s conftest$ac_exeext &&
20613 $as_test_x conftest$ac_exeext; then
20614 eval "$as_ac_var=yes"
20615 else
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20619 eval "$as_ac_var=no"
20622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20623 conftest$ac_exeext conftest.$ac_ext
20625 ac_res=`eval echo '${'$as_ac_var'}'`
20626 { echo "$as_me:$LINENO: result: $ac_res" >&5
20627 echo "${ECHO_T}$ac_res" >&6; }
20628 if test `eval echo '${'$as_ac_var'}'` = yes; then
20629 cat >>confdefs.h <<_ACEOF
20630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20631 _ACEOF
20634 done
20645 # checks for system services
20646 # (none yet)
20648 # Linux requires this for correct f.p. operations
20649 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20650 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20651 if test "${ac_cv_func___fpu_control+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654 cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h. */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20660 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20662 #define __fpu_control innocuous___fpu_control
20664 /* System header to define __stub macros and hopefully few prototypes,
20665 which can conflict with char __fpu_control (); below.
20666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20667 <limits.h> exists even on freestanding compilers. */
20669 #ifdef __STDC__
20670 # include <limits.h>
20671 #else
20672 # include <assert.h>
20673 #endif
20675 #undef __fpu_control
20677 /* Override any GCC internal prototype to avoid an error.
20678 Use char because int might match the return type of a GCC
20679 builtin and then its argument prototype would still apply. */
20680 #ifdef __cplusplus
20681 extern "C"
20682 #endif
20683 char __fpu_control ();
20684 /* The GNU C library defines this for functions which it implements
20685 to always fail with ENOSYS. Some functions are actually named
20686 something starting with __ and the normal name is an alias. */
20687 #if defined __stub___fpu_control || defined __stub_____fpu_control
20688 choke me
20689 #endif
20692 main ()
20694 return __fpu_control ();
20696 return 0;
20698 _ACEOF
20699 rm -f conftest.$ac_objext conftest$ac_exeext
20700 if { (ac_try="$ac_link"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20704 esac
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_link") 2>conftest.er1
20707 ac_status=$?
20708 grep -v '^ *+' conftest.er1 >conftest.err
20709 rm -f conftest.er1
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } && {
20713 test -z "$ac_c_werror_flag" ||
20714 test ! -s conftest.err
20715 } && test -s conftest$ac_exeext &&
20716 $as_test_x conftest$ac_exeext; then
20717 ac_cv_func___fpu_control=yes
20718 else
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ac_cv_func___fpu_control=no
20725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20726 conftest$ac_exeext conftest.$ac_ext
20728 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20729 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20730 if test $ac_cv_func___fpu_control = yes; then
20732 else
20734 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20735 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20736 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 else
20739 ac_check_lib_save_LIBS=$LIBS
20740 LIBS="-lieee $LIBS"
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h. */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20748 /* Override any GCC internal prototype to avoid an error.
20749 Use char because int might match the return type of a GCC
20750 builtin and then its argument prototype would still apply. */
20751 #ifdef __cplusplus
20752 extern "C"
20753 #endif
20754 char __fpu_control ();
20756 main ()
20758 return __fpu_control ();
20760 return 0;
20762 _ACEOF
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (ac_try="$ac_link"
20765 case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20768 esac
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_link") 2>conftest.er1
20771 ac_status=$?
20772 grep -v '^ *+' conftest.er1 >conftest.err
20773 rm -f conftest.er1
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } && {
20777 test -z "$ac_c_werror_flag" ||
20778 test ! -s conftest.err
20779 } && test -s conftest$ac_exeext &&
20780 $as_test_x conftest$ac_exeext; then
20781 ac_cv_lib_ieee___fpu_control=yes
20782 else
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20786 ac_cv_lib_ieee___fpu_control=no
20789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20790 conftest$ac_exeext conftest.$ac_ext
20791 LIBS=$ac_check_lib_save_LIBS
20793 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20794 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20795 if test $ac_cv_lib_ieee___fpu_control = yes; then
20796 cat >>confdefs.h <<_ACEOF
20797 #define HAVE_LIBIEEE 1
20798 _ACEOF
20800 LIBS="-lieee $LIBS"
20808 # Check for --with-fpectl
20809 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20810 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20812 # Check whether --with-fpectl was given.
20813 if test "${with_fpectl+set}" = set; then
20814 withval=$with_fpectl;
20815 if test "$withval" != no
20816 then
20818 cat >>confdefs.h <<\_ACEOF
20819 #define WANT_SIGFPE_HANDLER 1
20820 _ACEOF
20822 { echo "$as_me:$LINENO: result: yes" >&5
20823 echo "${ECHO_T}yes" >&6; }
20824 else { echo "$as_me:$LINENO: result: no" >&5
20825 echo "${ECHO_T}no" >&6; }
20827 else
20828 { echo "$as_me:$LINENO: result: no" >&5
20829 echo "${ECHO_T}no" >&6; }
20833 # check for --with-libm=...
20835 case $ac_sys_system in
20836 Darwin) ;;
20837 BeOS) ;;
20838 *) LIBM=-lm
20839 esac
20840 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20841 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20843 # Check whether --with-libm was given.
20844 if test "${with_libm+set}" = set; then
20845 withval=$with_libm;
20846 if test "$withval" = no
20847 then LIBM=
20848 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20849 echo "${ECHO_T}force LIBM empty" >&6; }
20850 elif test "$withval" != yes
20851 then LIBM=$withval
20852 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20853 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20854 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20855 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20856 { (exit 1); exit 1; }; }
20858 else
20859 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20860 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20864 # check for --with-libc=...
20866 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20867 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20869 # Check whether --with-libc was given.
20870 if test "${with_libc+set}" = set; then
20871 withval=$with_libc;
20872 if test "$withval" = no
20873 then LIBC=
20874 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20875 echo "${ECHO_T}force LIBC empty" >&6; }
20876 elif test "$withval" != yes
20877 then LIBC=$withval
20878 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20879 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20880 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20881 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20882 { (exit 1); exit 1; }; }
20884 else
20885 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20886 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20890 # ************************************
20891 # * Check for mathematical functions *
20892 # ************************************
20894 LIBS_SAVE=$LIBS
20895 LIBS="$LIBS $LIBM"
20897 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
20898 # -0. on some architectures.
20899 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
20900 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
20901 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20905 if test "$cross_compiling" = yes; then
20906 ac_cv_tanh_preserves_zero_sign=no
20907 else
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h. */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20915 #include <math.h>
20916 #include <stdlib.h>
20917 int main() {
20918 /* return 0 if either negative zeros don't exist
20919 on this platform or if negative zeros exist
20920 and tanh(-0.) == -0. */
20921 if (atan2(0., -1.) == atan2(-0., -1.) ||
20922 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
20923 else exit(1);
20926 _ACEOF
20927 rm -f conftest$ac_exeext
20928 if { (ac_try="$ac_link"
20929 case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20932 esac
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_link") 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20938 { (case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20941 esac
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_try") 2>&5
20944 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947 ac_cv_tanh_preserves_zero_sign=yes
20948 else
20949 echo "$as_me: program exited with status $ac_status" >&5
20950 echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20953 ( exit $ac_status )
20954 ac_cv_tanh_preserves_zero_sign=no
20956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20962 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
20963 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
20964 if test "$ac_cv_tanh_preserves_zero_sign" = yes
20965 then
20967 cat >>confdefs.h <<\_ACEOF
20968 #define TANH_PRESERVES_ZERO_SIGN 1
20969 _ACEOF
20974 for ac_func in hypot
20976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982 cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h. */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20990 #define $ac_func innocuous_$ac_func
20992 /* System header to define __stub macros and hopefully few prototypes,
20993 which can conflict with char $ac_func (); below.
20994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20995 <limits.h> exists even on freestanding compilers. */
20997 #ifdef __STDC__
20998 # include <limits.h>
20999 #else
21000 # include <assert.h>
21001 #endif
21003 #undef $ac_func
21005 /* Override any GCC internal prototype to avoid an error.
21006 Use char because int might match the return type of a GCC
21007 builtin and then its argument prototype would still apply. */
21008 #ifdef __cplusplus
21009 extern "C"
21010 #endif
21011 char $ac_func ();
21012 /* The GNU C library defines this for functions which it implements
21013 to always fail with ENOSYS. Some functions are actually named
21014 something starting with __ and the normal name is an alias. */
21015 #if defined __stub_$ac_func || defined __stub___$ac_func
21016 choke me
21017 #endif
21020 main ()
21022 return $ac_func ();
21024 return 0;
21026 _ACEOF
21027 rm -f conftest.$ac_objext conftest$ac_exeext
21028 if { (ac_try="$ac_link"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_link") 2>conftest.er1
21035 ac_status=$?
21036 grep -v '^ *+' conftest.er1 >conftest.err
21037 rm -f conftest.er1
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } && {
21041 test -z "$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21043 } && test -s conftest$ac_exeext &&
21044 $as_test_x conftest$ac_exeext; then
21045 eval "$as_ac_var=yes"
21046 else
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 eval "$as_ac_var=no"
21053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21054 conftest$ac_exeext conftest.$ac_ext
21056 ac_res=`eval echo '${'$as_ac_var'}'`
21057 { echo "$as_me:$LINENO: result: $ac_res" >&5
21058 echo "${ECHO_T}$ac_res" >&6; }
21059 if test `eval echo '${'$as_ac_var'}'` = yes; then
21060 cat >>confdefs.h <<_ACEOF
21061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21062 _ACEOF
21064 else
21065 case " $LIBOBJS " in
21066 *" $ac_func.$ac_objext "* ) ;;
21067 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21069 esac
21072 done
21085 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21092 else
21093 cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h. */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21101 #define $ac_func innocuous_$ac_func
21103 /* System header to define __stub macros and hopefully few prototypes,
21104 which can conflict with char $ac_func (); below.
21105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21106 <limits.h> exists even on freestanding compilers. */
21108 #ifdef __STDC__
21109 # include <limits.h>
21110 #else
21111 # include <assert.h>
21112 #endif
21114 #undef $ac_func
21116 /* Override any GCC internal prototype to avoid an error.
21117 Use char because int might match the return type of a GCC
21118 builtin and then its argument prototype would still apply. */
21119 #ifdef __cplusplus
21120 extern "C"
21121 #endif
21122 char $ac_func ();
21123 /* The GNU C library defines this for functions which it implements
21124 to always fail with ENOSYS. Some functions are actually named
21125 something starting with __ and the normal name is an alias. */
21126 #if defined __stub_$ac_func || defined __stub___$ac_func
21127 choke me
21128 #endif
21131 main ()
21133 return $ac_func ();
21135 return 0;
21137 _ACEOF
21138 rm -f conftest.$ac_objext conftest$ac_exeext
21139 if { (ac_try="$ac_link"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_link") 2>conftest.er1
21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } && {
21152 test -z "$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21154 } && test -s conftest$ac_exeext &&
21155 $as_test_x conftest$ac_exeext; then
21156 eval "$as_ac_var=yes"
21157 else
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 eval "$as_ac_var=no"
21164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21165 conftest$ac_exeext conftest.$ac_ext
21167 ac_res=`eval echo '${'$as_ac_var'}'`
21168 { echo "$as_me:$LINENO: result: $ac_res" >&5
21169 echo "${ECHO_T}$ac_res" >&6; }
21170 if test `eval echo '${'$as_ac_var'}'` = yes; then
21171 cat >>confdefs.h <<_ACEOF
21172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21173 _ACEOF
21176 done
21179 LIBS=$LIBS_SAVE
21181 # check for wchar.h
21182 if test "${ac_cv_header_wchar_h+set}" = set; then
21183 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21184 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21185 if test "${ac_cv_header_wchar_h+set}" = set; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21189 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21190 else
21191 # Is the header compilable?
21192 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21193 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21194 cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h. */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 $ac_includes_default
21201 #include <wchar.h>
21202 _ACEOF
21203 rm -f conftest.$ac_objext
21204 if { (ac_try="$ac_compile"
21205 case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21208 esac
21209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_compile") 2>conftest.er1
21211 ac_status=$?
21212 grep -v '^ *+' conftest.er1 >conftest.err
21213 rm -f conftest.er1
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } && {
21217 test -z "$ac_c_werror_flag" ||
21218 test ! -s conftest.err
21219 } && test -s conftest.$ac_objext; then
21220 ac_header_compiler=yes
21221 else
21222 echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21225 ac_header_compiler=no
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21230 echo "${ECHO_T}$ac_header_compiler" >&6; }
21232 # Is the header present?
21233 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21234 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21235 cat >conftest.$ac_ext <<_ACEOF
21236 /* confdefs.h. */
21237 _ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21241 #include <wchar.h>
21242 _ACEOF
21243 if { (ac_try="$ac_cpp conftest.$ac_ext"
21244 case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21247 esac
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } >/dev/null && {
21256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 }; then
21259 ac_header_preproc=yes
21260 else
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ac_header_preproc=no
21267 rm -f conftest.err conftest.$ac_ext
21268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21269 echo "${ECHO_T}$ac_header_preproc" >&6; }
21271 # So? What about this header?
21272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21273 yes:no: )
21274 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21275 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21277 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21278 ac_header_preproc=yes
21280 no:yes:* )
21281 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21282 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21283 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21284 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21285 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21286 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21287 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21288 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21289 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21290 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21291 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21292 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21293 ( cat <<\_ASBOX
21294 ## ------------------------------------------------ ##
21295 ## Report this to http://www.python.org/python-bugs ##
21296 ## ------------------------------------------------ ##
21297 _ASBOX
21298 ) | sed "s/^/$as_me: WARNING: /" >&2
21300 esac
21301 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21302 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21303 if test "${ac_cv_header_wchar_h+set}" = set; then
21304 echo $ECHO_N "(cached) $ECHO_C" >&6
21305 else
21306 ac_cv_header_wchar_h=$ac_header_preproc
21308 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21309 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21312 if test $ac_cv_header_wchar_h = yes; then
21315 cat >>confdefs.h <<\_ACEOF
21316 #define HAVE_WCHAR_H 1
21317 _ACEOF
21319 wchar_h="yes"
21321 else
21322 wchar_h="no"
21328 # determine wchar_t size
21329 if test "$wchar_h" = yes
21330 then
21331 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21332 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21333 if test "${ac_cv_type_wchar_t+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h. */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 #include <wchar.h>
21344 typedef wchar_t ac__type_new_;
21346 main ()
21348 if ((ac__type_new_ *) 0)
21349 return 0;
21350 if (sizeof (ac__type_new_))
21351 return 0;
21353 return 0;
21355 _ACEOF
21356 rm -f conftest.$ac_objext
21357 if { (ac_try="$ac_compile"
21358 case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21361 esac
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_compile") 2>conftest.er1
21364 ac_status=$?
21365 grep -v '^ *+' conftest.er1 >conftest.err
21366 rm -f conftest.er1
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } && {
21370 test -z "$ac_c_werror_flag" ||
21371 test ! -s conftest.err
21372 } && test -s conftest.$ac_objext; then
21373 ac_cv_type_wchar_t=yes
21374 else
21375 echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21378 ac_cv_type_wchar_t=no
21381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21384 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21386 # The cast to long int works around a bug in the HP C Compiler
21387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21389 # This bug is HP SR number 8606223364.
21390 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21391 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21392 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 else
21395 if test "$cross_compiling" = yes; then
21396 # Depending upon the size, compute the lo and hi bounds.
21397 cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h. */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 #include <wchar.h>
21405 typedef wchar_t ac__type_sizeof_;
21407 main ()
21409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21410 test_array [0] = 0
21413 return 0;
21415 _ACEOF
21416 rm -f conftest.$ac_objext
21417 if { (ac_try="$ac_compile"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_compile") 2>conftest.er1
21424 ac_status=$?
21425 grep -v '^ *+' conftest.er1 >conftest.err
21426 rm -f conftest.er1
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && {
21430 test -z "$ac_c_werror_flag" ||
21431 test ! -s conftest.err
21432 } && test -s conftest.$ac_objext; then
21433 ac_lo=0 ac_mid=0
21434 while :; do
21435 cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h. */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 #include <wchar.h>
21443 typedef wchar_t ac__type_sizeof_;
21445 main ()
21447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21448 test_array [0] = 0
21451 return 0;
21453 _ACEOF
21454 rm -f conftest.$ac_objext
21455 if { (ac_try="$ac_compile"
21456 case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21459 esac
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461 (eval "$ac_compile") 2>conftest.er1
21462 ac_status=$?
21463 grep -v '^ *+' conftest.er1 >conftest.err
21464 rm -f conftest.er1
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } && {
21468 test -z "$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21470 } && test -s conftest.$ac_objext; then
21471 ac_hi=$ac_mid; break
21472 else
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_lo=`expr $ac_mid + 1`
21477 if test $ac_lo -le $ac_mid; then
21478 ac_lo= ac_hi=
21479 break
21481 ac_mid=`expr 2 '*' $ac_mid + 1`
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 done
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h. */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 #include <wchar.h>
21498 typedef wchar_t ac__type_sizeof_;
21500 main ()
21502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21503 test_array [0] = 0
21506 return 0;
21508 _ACEOF
21509 rm -f conftest.$ac_objext
21510 if { (ac_try="$ac_compile"
21511 case "(($ac_try" in
21512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21513 *) ac_try_echo=$ac_try;;
21514 esac
21515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21516 (eval "$ac_compile") 2>conftest.er1
21517 ac_status=$?
21518 grep -v '^ *+' conftest.er1 >conftest.err
21519 rm -f conftest.er1
21520 cat conftest.err >&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } && {
21523 test -z "$ac_c_werror_flag" ||
21524 test ! -s conftest.err
21525 } && test -s conftest.$ac_objext; then
21526 ac_hi=-1 ac_mid=-1
21527 while :; do
21528 cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h. */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21534 #include <wchar.h>
21536 typedef wchar_t ac__type_sizeof_;
21538 main ()
21540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21541 test_array [0] = 0
21544 return 0;
21546 _ACEOF
21547 rm -f conftest.$ac_objext
21548 if { (ac_try="$ac_compile"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_compile") 2>conftest.er1
21555 ac_status=$?
21556 grep -v '^ *+' conftest.er1 >conftest.err
21557 rm -f conftest.er1
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } && {
21561 test -z "$ac_c_werror_flag" ||
21562 test ! -s conftest.err
21563 } && test -s conftest.$ac_objext; then
21564 ac_lo=$ac_mid; break
21565 else
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ac_hi=`expr '(' $ac_mid ')' - 1`
21570 if test $ac_mid -le $ac_hi; then
21571 ac_lo= ac_hi=
21572 break
21574 ac_mid=`expr 2 '*' $ac_mid`
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21578 done
21579 else
21580 echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21583 ac_lo= ac_hi=
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 # Binary search between lo and hi bounds.
21591 while test "x$ac_lo" != "x$ac_hi"; do
21592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21593 cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h. */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 #include <wchar.h>
21601 typedef wchar_t ac__type_sizeof_;
21603 main ()
21605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21606 test_array [0] = 0
21609 return 0;
21611 _ACEOF
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21617 esac
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_compile") 2>conftest.er1
21620 ac_status=$?
21621 grep -v '^ *+' conftest.er1 >conftest.err
21622 rm -f conftest.er1
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } && {
21626 test -z "$ac_c_werror_flag" ||
21627 test ! -s conftest.err
21628 } && test -s conftest.$ac_objext; then
21629 ac_hi=$ac_mid
21630 else
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_lo=`expr '(' $ac_mid ')' + 1`
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 done
21639 case $ac_lo in
21640 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21641 '') if test "$ac_cv_type_wchar_t" = yes; then
21642 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21643 See \`config.log' for more details." >&5
21644 echo "$as_me: error: cannot compute sizeof (wchar_t)
21645 See \`config.log' for more details." >&2;}
21646 { (exit 77); exit 77; }; }
21647 else
21648 ac_cv_sizeof_wchar_t=0
21649 fi ;;
21650 esac
21651 else
21652 cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h. */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 #include <wchar.h>
21660 typedef wchar_t ac__type_sizeof_;
21661 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21662 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21663 #include <stdio.h>
21664 #include <stdlib.h>
21666 main ()
21669 FILE *f = fopen ("conftest.val", "w");
21670 if (! f)
21671 return 1;
21672 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21674 long int i = longval ();
21675 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21676 return 1;
21677 fprintf (f, "%ld\n", i);
21679 else
21681 unsigned long int i = ulongval ();
21682 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21683 return 1;
21684 fprintf (f, "%lu\n", i);
21686 return ferror (f) || fclose (f) != 0;
21689 return 0;
21691 _ACEOF
21692 rm -f conftest$ac_exeext
21693 if { (ac_try="$ac_link"
21694 case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21697 esac
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_link") 2>&5
21700 ac_status=$?
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21703 { (case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21706 esac
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_try") 2>&5
21709 ac_status=$?
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; }; then
21712 ac_cv_sizeof_wchar_t=`cat conftest.val`
21713 else
21714 echo "$as_me: program exited with status $ac_status" >&5
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 ( exit $ac_status )
21719 if test "$ac_cv_type_wchar_t" = yes; then
21720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21721 See \`config.log' for more details." >&5
21722 echo "$as_me: error: cannot compute sizeof (wchar_t)
21723 See \`config.log' for more details." >&2;}
21724 { (exit 77); exit 77; }; }
21725 else
21726 ac_cv_sizeof_wchar_t=0
21729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21731 rm -f conftest.val
21733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21734 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21738 cat >>confdefs.h <<_ACEOF
21739 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21740 _ACEOF
21745 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21746 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21747 have_ucs4_tcl=no
21748 cat >conftest.$ac_ext <<_ACEOF
21749 /* confdefs.h. */
21750 _ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h. */
21755 #include <tcl.h>
21756 #if TCL_UTF_MAX != 6
21757 # error "NOT UCS4_TCL"
21758 #endif
21760 main ()
21764 return 0;
21766 _ACEOF
21767 rm -f conftest.$ac_objext
21768 if { (ac_try="$ac_compile"
21769 case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21772 esac
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_compile") 2>conftest.er1
21775 ac_status=$?
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } && {
21781 test -z "$ac_c_werror_flag" ||
21782 test ! -s conftest.err
21783 } && test -s conftest.$ac_objext; then
21786 cat >>confdefs.h <<\_ACEOF
21787 #define HAVE_UCS4_TCL 1
21788 _ACEOF
21790 have_ucs4_tcl=yes
21792 else
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21800 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21801 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21803 # check whether wchar_t is signed or not
21804 if test "$wchar_h" = yes
21805 then
21806 # check whether wchar_t is signed or not
21807 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21808 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21809 if test "${ac_cv_wchar_t_signed+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21813 if test "$cross_compiling" = yes; then
21814 ac_cv_wchar_t_signed=yes
21815 else
21816 cat >conftest.$ac_ext <<_ACEOF
21817 /* confdefs.h. */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21823 #include <wchar.h>
21824 int main()
21826 /* Success: exit code 0 */
21827 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21830 _ACEOF
21831 rm -f conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21836 esac
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_link") 2>&5
21839 ac_status=$?
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842 { (case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_try") 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 ac_cv_wchar_t_signed=yes
21852 else
21853 echo "$as_me: program exited with status $ac_status" >&5
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 ( exit $ac_status )
21858 ac_cv_wchar_t_signed=no
21860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
21867 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21870 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
21871 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
21872 # Check whether --enable-unicode was given.
21873 if test "${enable_unicode+set}" = set; then
21874 enableval=$enable_unicode;
21875 else
21876 enable_unicode=yes
21880 if test $enable_unicode = yes
21881 then
21882 # Without any arguments, Py_UNICODE defaults to two-byte mode
21883 case "$have_ucs4_tcl" in
21884 yes) enable_unicode="ucs4"
21886 *) enable_unicode="ucs2"
21888 esac
21893 case "$enable_unicode" in
21894 ucs2) unicode_size="2"
21895 cat >>confdefs.h <<\_ACEOF
21896 #define Py_UNICODE_SIZE 2
21897 _ACEOF
21900 ucs4) unicode_size="4"
21901 cat >>confdefs.h <<\_ACEOF
21902 #define Py_UNICODE_SIZE 4
21903 _ACEOF
21906 esac
21912 if test "$enable_unicode" = "no"
21913 then
21914 UNICODE_OBJS=""
21915 { echo "$as_me:$LINENO: result: not used" >&5
21916 echo "${ECHO_T}not used" >&6; }
21917 else
21918 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
21920 cat >>confdefs.h <<\_ACEOF
21921 #define Py_USING_UNICODE 1
21922 _ACEOF
21925 # wchar_t is only usable if it maps to an unsigned type
21926 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21927 -a "$ac_cv_wchar_t_signed" = "no"
21928 then
21929 PY_UNICODE_TYPE="wchar_t"
21931 cat >>confdefs.h <<\_ACEOF
21932 #define HAVE_USABLE_WCHAR_T 1
21933 _ACEOF
21935 cat >>confdefs.h <<\_ACEOF
21936 #define PY_UNICODE_TYPE wchar_t
21937 _ACEOF
21939 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21940 then
21941 PY_UNICODE_TYPE="unsigned short"
21942 cat >>confdefs.h <<\_ACEOF
21943 #define PY_UNICODE_TYPE unsigned short
21944 _ACEOF
21946 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21947 then
21948 PY_UNICODE_TYPE="unsigned long"
21949 cat >>confdefs.h <<\_ACEOF
21950 #define PY_UNICODE_TYPE unsigned long
21951 _ACEOF
21953 else
21954 PY_UNICODE_TYPE="no type found"
21956 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21957 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21960 # check for endianness
21961 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21962 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21963 if test "${ac_cv_c_bigendian+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966 # See if sys/param.h defines the BYTE_ORDER macro.
21967 cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h. */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 #include <sys/types.h>
21974 #include <sys/param.h>
21977 main ()
21979 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21980 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21981 bogus endian macros
21982 #endif
21985 return 0;
21987 _ACEOF
21988 rm -f conftest.$ac_objext
21989 if { (ac_try="$ac_compile"
21990 case "(($ac_try" in
21991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21993 esac
21994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21995 (eval "$ac_compile") 2>conftest.er1
21996 ac_status=$?
21997 grep -v '^ *+' conftest.er1 >conftest.err
21998 rm -f conftest.er1
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } && {
22002 test -z "$ac_c_werror_flag" ||
22003 test ! -s conftest.err
22004 } && test -s conftest.$ac_objext; then
22005 # It does; now see whether it defined to BIG_ENDIAN or not.
22006 cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h. */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h. */
22012 #include <sys/types.h>
22013 #include <sys/param.h>
22016 main ()
22018 #if BYTE_ORDER != BIG_ENDIAN
22019 not big endian
22020 #endif
22023 return 0;
22025 _ACEOF
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22034 ac_status=$?
22035 grep -v '^ *+' conftest.er1 >conftest.err
22036 rm -f conftest.er1
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22043 ac_cv_c_bigendian=yes
22044 else
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_cv_c_bigendian=no
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 else
22053 echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22056 # It does not; compile a test program.
22057 if test "$cross_compiling" = yes; then
22058 # try to guess the endianness by grepping values into an object file
22059 ac_cv_c_bigendian=unknown
22060 cat >conftest.$ac_ext <<_ACEOF
22061 /* confdefs.h. */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22067 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22068 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22069 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22070 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22071 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22073 main ()
22075 _ascii (); _ebcdic ();
22077 return 0;
22079 _ACEOF
22080 rm -f conftest.$ac_objext
22081 if { (ac_try="$ac_compile"
22082 case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22085 esac
22086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22087 (eval "$ac_compile") 2>conftest.er1
22088 ac_status=$?
22089 grep -v '^ *+' conftest.er1 >conftest.err
22090 rm -f conftest.er1
22091 cat conftest.err >&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } && {
22094 test -z "$ac_c_werror_flag" ||
22095 test ! -s conftest.err
22096 } && test -s conftest.$ac_objext; then
22097 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22098 ac_cv_c_bigendian=yes
22100 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22101 if test "$ac_cv_c_bigendian" = unknown; then
22102 ac_cv_c_bigendian=no
22103 else
22104 # finding both strings is unlikely to happen, but who knows?
22105 ac_cv_c_bigendian=unknown
22108 else
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 else
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h. */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 $ac_includes_default
22125 main ()
22128 /* Are we little or big endian? From Harbison&Steele. */
22129 union
22131 long int l;
22132 char c[sizeof (long int)];
22133 } u;
22134 u.l = 1;
22135 return u.c[sizeof (long int) - 1] == 1;
22138 return 0;
22140 _ACEOF
22141 rm -f conftest$ac_exeext
22142 if { (ac_try="$ac_link"
22143 case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22146 esac
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_link") 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22152 { (case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_try") 2>&5
22158 ac_status=$?
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; }; then
22161 ac_cv_c_bigendian=no
22162 else
22163 echo "$as_me: program exited with status $ac_status" >&5
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 ( exit $ac_status )
22168 ac_cv_c_bigendian=yes
22170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22179 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22180 case $ac_cv_c_bigendian in
22181 yes)
22183 cat >>confdefs.h <<\_ACEOF
22184 #define WORDS_BIGENDIAN 1
22185 _ACEOF
22190 { { echo "$as_me:$LINENO: error: unknown endianness
22191 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22192 echo "$as_me: error: unknown endianness
22193 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22194 { (exit 1); exit 1; }; } ;;
22195 esac
22200 # Check whether right shifting a negative integer extends the sign bit
22201 # or fills with zeros (like the Cray J90, according to Tim Peters).
22202 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22203 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22204 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 else
22208 if test "$cross_compiling" = yes; then
22209 ac_cv_rshift_extends_sign=yes
22210 else
22211 cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h. */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22218 int main()
22220 exit(((-1)>>3 == -1) ? 0 : 1);
22223 _ACEOF
22224 rm -f conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22229 esac
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_link") 2>&5
22232 ac_status=$?
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22235 { (case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22238 esac
22239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22240 (eval "$ac_try") 2>&5
22241 ac_status=$?
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); }; }; then
22244 ac_cv_rshift_extends_sign=yes
22245 else
22246 echo "$as_me: program exited with status $ac_status" >&5
22247 echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 ( exit $ac_status )
22251 ac_cv_rshift_extends_sign=no
22253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22259 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22260 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22261 if test "$ac_cv_rshift_extends_sign" = no
22262 then
22264 cat >>confdefs.h <<\_ACEOF
22265 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22266 _ACEOF
22270 # check for getc_unlocked and related locking functions
22271 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22272 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22273 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22277 cat >conftest.$ac_ext <<_ACEOF
22278 /* confdefs.h. */
22279 _ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h. */
22283 #include <stdio.h>
22285 main ()
22288 FILE *f = fopen("/dev/null", "r");
22289 flockfile(f);
22290 getc_unlocked(f);
22291 funlockfile(f);
22294 return 0;
22296 _ACEOF
22297 rm -f conftest.$ac_objext conftest$ac_exeext
22298 if { (ac_try="$ac_link"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_link") 2>conftest.er1
22305 ac_status=$?
22306 grep -v '^ *+' conftest.er1 >conftest.err
22307 rm -f conftest.er1
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && {
22311 test -z "$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 } && test -s conftest$ac_exeext &&
22314 $as_test_x conftest$ac_exeext; then
22315 ac_cv_have_getc_unlocked=yes
22316 else
22317 echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 ac_cv_have_getc_unlocked=no
22323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22324 conftest$ac_exeext conftest.$ac_ext
22327 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22328 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22329 if test "$ac_cv_have_getc_unlocked" = yes
22330 then
22332 cat >>confdefs.h <<\_ACEOF
22333 #define HAVE_GETC_UNLOCKED 1
22334 _ACEOF
22338 # check where readline lives
22339 # save the value of LIBS so we don't actually link Python with readline
22340 LIBS_no_readline=$LIBS
22342 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22343 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22344 if test "${ac_cv_lib_readline_readline+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347 ac_check_lib_save_LIBS=$LIBS
22348 LIBS="-lreadline $LIBS"
22349 cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h. */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22356 /* Override any GCC internal prototype to avoid an error.
22357 Use char because int might match the return type of a GCC
22358 builtin and then its argument prototype would still apply. */
22359 #ifdef __cplusplus
22360 extern "C"
22361 #endif
22362 char readline ();
22364 main ()
22366 return readline ();
22368 return 0;
22370 _ACEOF
22371 rm -f conftest.$ac_objext conftest$ac_exeext
22372 if { (ac_try="$ac_link"
22373 case "(($ac_try" in
22374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375 *) ac_try_echo=$ac_try;;
22376 esac
22377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22378 (eval "$ac_link") 2>conftest.er1
22379 ac_status=$?
22380 grep -v '^ *+' conftest.er1 >conftest.err
22381 rm -f conftest.er1
22382 cat conftest.err >&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } && {
22385 test -z "$ac_c_werror_flag" ||
22386 test ! -s conftest.err
22387 } && test -s conftest$ac_exeext &&
22388 $as_test_x conftest$ac_exeext; then
22389 ac_cv_lib_readline_readline=yes
22390 else
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22394 ac_cv_lib_readline_readline=no
22397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22398 conftest$ac_exeext conftest.$ac_ext
22399 LIBS=$ac_check_lib_save_LIBS
22401 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22402 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22403 if test $ac_cv_lib_readline_readline = yes; then
22404 cat >>confdefs.h <<_ACEOF
22405 #define HAVE_LIBREADLINE 1
22406 _ACEOF
22408 LIBS="-lreadline $LIBS"
22412 if test "$ac_cv_have_readline_readline" = no
22413 then
22415 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22416 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22417 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22418 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 else
22420 ac_check_lib_save_LIBS=$LIBS
22421 LIBS="-ltermcap $LIBS"
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h. */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22429 /* Override any GCC internal prototype to avoid an error.
22430 Use char because int might match the return type of a GCC
22431 builtin and then its argument prototype would still apply. */
22432 #ifdef __cplusplus
22433 extern "C"
22434 #endif
22435 char readline ();
22437 main ()
22439 return readline ();
22441 return 0;
22443 _ACEOF
22444 rm -f conftest.$ac_objext conftest$ac_exeext
22445 if { (ac_try="$ac_link"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22449 esac
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_link") 2>conftest.er1
22452 ac_status=$?
22453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest$ac_exeext &&
22461 $as_test_x conftest$ac_exeext; then
22462 ac_cv_lib_termcap_readline=yes
22463 else
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22467 ac_cv_lib_termcap_readline=no
22470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22471 conftest$ac_exeext conftest.$ac_ext
22472 LIBS=$ac_check_lib_save_LIBS
22474 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22475 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22476 if test $ac_cv_lib_termcap_readline = yes; then
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_LIBTERMCAP 1
22479 _ACEOF
22481 LIBS="-ltermcap $LIBS"
22487 # check for readline 2.1
22488 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22489 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22490 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 else
22493 ac_check_lib_save_LIBS=$LIBS
22494 LIBS="-lreadline $LIBS"
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22502 /* Override any GCC internal prototype to avoid an error.
22503 Use char because int might match the return type of a GCC
22504 builtin and then its argument prototype would still apply. */
22505 #ifdef __cplusplus
22506 extern "C"
22507 #endif
22508 char rl_callback_handler_install ();
22510 main ()
22512 return rl_callback_handler_install ();
22514 return 0;
22516 _ACEOF
22517 rm -f conftest.$ac_objext conftest$ac_exeext
22518 if { (ac_try="$ac_link"
22519 case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22522 esac
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_link") 2>conftest.er1
22525 ac_status=$?
22526 grep -v '^ *+' conftest.er1 >conftest.err
22527 rm -f conftest.er1
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } && {
22531 test -z "$ac_c_werror_flag" ||
22532 test ! -s conftest.err
22533 } && test -s conftest$ac_exeext &&
22534 $as_test_x conftest$ac_exeext; then
22535 ac_cv_lib_readline_rl_callback_handler_install=yes
22536 else
22537 echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22540 ac_cv_lib_readline_rl_callback_handler_install=no
22543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22544 conftest$ac_exeext conftest.$ac_ext
22545 LIBS=$ac_check_lib_save_LIBS
22547 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22548 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22549 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22551 cat >>confdefs.h <<\_ACEOF
22552 #define HAVE_RL_CALLBACK 1
22553 _ACEOF
22558 # check for readline 2.2
22559 cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h. */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 #include <readline/readline.h>
22566 _ACEOF
22567 if { (ac_try="$ac_cpp conftest.$ac_ext"
22568 case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22571 esac
22572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22574 ac_status=$?
22575 grep -v '^ *+' conftest.er1 >conftest.err
22576 rm -f conftest.er1
22577 cat conftest.err >&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); } >/dev/null && {
22580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22581 test ! -s conftest.err
22582 }; then
22583 have_readline=yes
22584 else
22585 echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22588 have_readline=no
22591 rm -f conftest.err conftest.$ac_ext
22592 if test $have_readline = yes
22593 then
22594 cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h. */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22600 #include <readline/readline.h>
22602 _ACEOF
22603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22604 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22608 _ACEOF
22611 rm -f conftest*
22615 # check for readline 4.0
22616 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22617 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22618 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 else
22621 ac_check_lib_save_LIBS=$LIBS
22622 LIBS="-lreadline $LIBS"
22623 cat >conftest.$ac_ext <<_ACEOF
22624 /* confdefs.h. */
22625 _ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22630 /* Override any GCC internal prototype to avoid an error.
22631 Use char because int might match the return type of a GCC
22632 builtin and then its argument prototype would still apply. */
22633 #ifdef __cplusplus
22634 extern "C"
22635 #endif
22636 char rl_pre_input_hook ();
22638 main ()
22640 return rl_pre_input_hook ();
22642 return 0;
22644 _ACEOF
22645 rm -f conftest.$ac_objext conftest$ac_exeext
22646 if { (ac_try="$ac_link"
22647 case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22650 esac
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_link") 2>conftest.er1
22653 ac_status=$?
22654 grep -v '^ *+' conftest.er1 >conftest.err
22655 rm -f conftest.er1
22656 cat conftest.err >&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } && {
22659 test -z "$ac_c_werror_flag" ||
22660 test ! -s conftest.err
22661 } && test -s conftest$ac_exeext &&
22662 $as_test_x conftest$ac_exeext; then
22663 ac_cv_lib_readline_rl_pre_input_hook=yes
22664 else
22665 echo "$as_me: failed program was:" >&5
22666 sed 's/^/| /' conftest.$ac_ext >&5
22668 ac_cv_lib_readline_rl_pre_input_hook=no
22671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22672 conftest$ac_exeext conftest.$ac_ext
22673 LIBS=$ac_check_lib_save_LIBS
22675 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22676 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22677 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22679 cat >>confdefs.h <<\_ACEOF
22680 #define HAVE_RL_PRE_INPUT_HOOK 1
22681 _ACEOF
22686 # also in 4.0
22687 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22688 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22689 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22690 echo $ECHO_N "(cached) $ECHO_C" >&6
22691 else
22692 ac_check_lib_save_LIBS=$LIBS
22693 LIBS="-lreadline $LIBS"
22694 cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h. */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22701 /* Override any GCC internal prototype to avoid an error.
22702 Use char because int might match the return type of a GCC
22703 builtin and then its argument prototype would still apply. */
22704 #ifdef __cplusplus
22705 extern "C"
22706 #endif
22707 char rl_completion_display_matches_hook ();
22709 main ()
22711 return rl_completion_display_matches_hook ();
22713 return 0;
22715 _ACEOF
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (ac_try="$ac_link"
22718 case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_link") 2>conftest.er1
22724 ac_status=$?
22725 grep -v '^ *+' conftest.er1 >conftest.err
22726 rm -f conftest.er1
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } && {
22730 test -z "$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 } && test -s conftest$ac_exeext &&
22733 $as_test_x conftest$ac_exeext; then
22734 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
22735 else
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22739 ac_cv_lib_readline_rl_completion_display_matches_hook=no
22742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22743 conftest$ac_exeext conftest.$ac_ext
22744 LIBS=$ac_check_lib_save_LIBS
22746 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22747 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22748 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22750 cat >>confdefs.h <<\_ACEOF
22751 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22752 _ACEOF
22757 # check for readline 4.2
22758 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22759 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22760 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22761 echo $ECHO_N "(cached) $ECHO_C" >&6
22762 else
22763 ac_check_lib_save_LIBS=$LIBS
22764 LIBS="-lreadline $LIBS"
22765 cat >conftest.$ac_ext <<_ACEOF
22766 /* confdefs.h. */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22772 /* Override any GCC internal prototype to avoid an error.
22773 Use char because int might match the return type of a GCC
22774 builtin and then its argument prototype would still apply. */
22775 #ifdef __cplusplus
22776 extern "C"
22777 #endif
22778 char rl_completion_matches ();
22780 main ()
22782 return rl_completion_matches ();
22784 return 0;
22786 _ACEOF
22787 rm -f conftest.$ac_objext conftest$ac_exeext
22788 if { (ac_try="$ac_link"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22792 esac
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_link") 2>conftest.er1
22795 ac_status=$?
22796 grep -v '^ *+' conftest.er1 >conftest.err
22797 rm -f conftest.er1
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } && {
22801 test -z "$ac_c_werror_flag" ||
22802 test ! -s conftest.err
22803 } && test -s conftest$ac_exeext &&
22804 $as_test_x conftest$ac_exeext; then
22805 ac_cv_lib_readline_rl_completion_matches=yes
22806 else
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22810 ac_cv_lib_readline_rl_completion_matches=no
22813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22814 conftest$ac_exeext conftest.$ac_ext
22815 LIBS=$ac_check_lib_save_LIBS
22817 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22818 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22819 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22821 cat >>confdefs.h <<\_ACEOF
22822 #define HAVE_RL_COMPLETION_MATCHES 1
22823 _ACEOF
22828 # also in readline 4.2
22829 cat >conftest.$ac_ext <<_ACEOF
22830 /* confdefs.h. */
22831 _ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h. */
22835 #include <readline/readline.h>
22836 _ACEOF
22837 if { (ac_try="$ac_cpp conftest.$ac_ext"
22838 case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22841 esac
22842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22844 ac_status=$?
22845 grep -v '^ *+' conftest.er1 >conftest.err
22846 rm -f conftest.er1
22847 cat conftest.err >&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } >/dev/null && {
22850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22851 test ! -s conftest.err
22852 }; then
22853 have_readline=yes
22854 else
22855 echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 have_readline=no
22861 rm -f conftest.err conftest.$ac_ext
22862 if test $have_readline = yes
22863 then
22864 cat >conftest.$ac_ext <<_ACEOF
22865 /* confdefs.h. */
22866 _ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h. */
22870 #include <readline/readline.h>
22872 _ACEOF
22873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22874 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
22876 cat >>confdefs.h <<\_ACEOF
22877 #define HAVE_RL_CATCH_SIGNAL 1
22878 _ACEOF
22881 rm -f conftest*
22885 # End of readline checks: restore LIBS
22886 LIBS=$LIBS_no_readline
22888 { echo "$as_me:$LINENO: checking for broken nice()" >&5
22889 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
22890 if test "${ac_cv_broken_nice+set}" = set; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 else
22894 if test "$cross_compiling" = yes; then
22895 ac_cv_broken_nice=no
22896 else
22897 cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h. */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22904 int main()
22906 int val1 = nice(1);
22907 if (val1 != -1 && val1 == nice(2))
22908 exit(0);
22909 exit(1);
22912 _ACEOF
22913 rm -f conftest$ac_exeext
22914 if { (ac_try="$ac_link"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_link") 2>&5
22921 ac_status=$?
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22924 { (case "(($ac_try" in
22925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926 *) ac_try_echo=$ac_try;;
22927 esac
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929 (eval "$ac_try") 2>&5
22930 ac_status=$?
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; }; then
22933 ac_cv_broken_nice=yes
22934 else
22935 echo "$as_me: program exited with status $ac_status" >&5
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 ( exit $ac_status )
22940 ac_cv_broken_nice=no
22942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22948 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
22949 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22950 if test "$ac_cv_broken_nice" = yes
22951 then
22953 cat >>confdefs.h <<\_ACEOF
22954 #define HAVE_BROKEN_NICE 1
22955 _ACEOF
22959 { echo "$as_me:$LINENO: checking for broken poll()" >&5
22960 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
22961 if test "$cross_compiling" = yes; then
22962 ac_cv_broken_poll=no
22963 else
22964 cat >conftest.$ac_ext <<_ACEOF
22965 /* confdefs.h. */
22966 _ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22971 #include <poll.h>
22973 int main (void)
22975 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22977 close (42);
22979 int poll_test = poll (&poll_struct, 1, 0);
22981 if (poll_test < 0)
22983 exit(0);
22985 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22987 exit(0);
22989 else
22991 exit(1);
22995 _ACEOF
22996 rm -f conftest$ac_exeext
22997 if { (ac_try="$ac_link"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23001 esac
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_link") 2>&5
23004 ac_status=$?
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23007 { (case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_try") 2>&5
23013 ac_status=$?
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; }; then
23016 ac_cv_broken_poll=yes
23017 else
23018 echo "$as_me: program exited with status $ac_status" >&5
23019 echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23022 ( exit $ac_status )
23023 ac_cv_broken_poll=no
23025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23029 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23030 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23031 if test "$ac_cv_broken_poll" = yes
23032 then
23034 cat >>confdefs.h <<\_ACEOF
23035 #define HAVE_BROKEN_POLL 1
23036 _ACEOF
23040 # Before we can test tzset, we need to check if struct tm has a tm_zone
23041 # (which is not required by ISO C or UNIX spec) and/or if we support
23042 # tzname[]
23043 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23044 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23045 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 else
23048 cat >conftest.$ac_ext <<_ACEOF
23049 /* confdefs.h. */
23050 _ACEOF
23051 cat confdefs.h >>conftest.$ac_ext
23052 cat >>conftest.$ac_ext <<_ACEOF
23053 /* end confdefs.h. */
23054 #include <sys/types.h>
23055 #include <$ac_cv_struct_tm>
23059 main ()
23061 static struct tm ac_aggr;
23062 if (ac_aggr.tm_zone)
23063 return 0;
23065 return 0;
23067 _ACEOF
23068 rm -f conftest.$ac_objext
23069 if { (ac_try="$ac_compile"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23073 esac
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_compile") 2>conftest.er1
23076 ac_status=$?
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_c_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest.$ac_objext; then
23085 ac_cv_member_struct_tm_tm_zone=yes
23086 else
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h. */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 #include <sys/types.h>
23097 #include <$ac_cv_struct_tm>
23101 main ()
23103 static struct tm ac_aggr;
23104 if (sizeof ac_aggr.tm_zone)
23105 return 0;
23107 return 0;
23109 _ACEOF
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23115 esac
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_compile") 2>conftest.er1
23118 ac_status=$?
23119 grep -v '^ *+' conftest.er1 >conftest.err
23120 rm -f conftest.er1
23121 cat conftest.err >&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); } && {
23124 test -z "$ac_c_werror_flag" ||
23125 test ! -s conftest.err
23126 } && test -s conftest.$ac_objext; then
23127 ac_cv_member_struct_tm_tm_zone=yes
23128 else
23129 echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23132 ac_cv_member_struct_tm_tm_zone=no
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23140 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23141 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23142 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23144 cat >>confdefs.h <<_ACEOF
23145 #define HAVE_STRUCT_TM_TM_ZONE 1
23146 _ACEOF
23151 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23153 cat >>confdefs.h <<\_ACEOF
23154 #define HAVE_TM_ZONE 1
23155 _ACEOF
23157 else
23158 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23159 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23160 if test "${ac_cv_have_decl_tzname+set}" = set; then
23161 echo $ECHO_N "(cached) $ECHO_C" >&6
23162 else
23163 cat >conftest.$ac_ext <<_ACEOF
23164 /* confdefs.h. */
23165 _ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h. */
23169 #include <time.h>
23172 main ()
23174 #ifndef tzname
23175 (void) tzname;
23176 #endif
23179 return 0;
23181 _ACEOF
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23187 esac
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23190 ac_status=$?
23191 grep -v '^ *+' conftest.er1 >conftest.err
23192 rm -f conftest.er1
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23199 ac_cv_have_decl_tzname=yes
23200 else
23201 echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 ac_cv_have_decl_tzname=no
23207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23210 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23211 if test $ac_cv_have_decl_tzname = yes; then
23213 cat >>confdefs.h <<_ACEOF
23214 #define HAVE_DECL_TZNAME 1
23215 _ACEOF
23218 else
23219 cat >>confdefs.h <<_ACEOF
23220 #define HAVE_DECL_TZNAME 0
23221 _ACEOF
23227 { echo "$as_me:$LINENO: checking for tzname" >&5
23228 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23229 if test "${ac_cv_var_tzname+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23231 else
23232 cat >conftest.$ac_ext <<_ACEOF
23233 /* confdefs.h. */
23234 _ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 #include <time.h>
23239 #if !HAVE_DECL_TZNAME
23240 extern char *tzname[];
23241 #endif
23244 main ()
23246 return tzname[0][0];
23248 return 0;
23250 _ACEOF
23251 rm -f conftest.$ac_objext conftest$ac_exeext
23252 if { (ac_try="$ac_link"
23253 case "(($ac_try" in
23254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255 *) ac_try_echo=$ac_try;;
23256 esac
23257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23258 (eval "$ac_link") 2>conftest.er1
23259 ac_status=$?
23260 grep -v '^ *+' conftest.er1 >conftest.err
23261 rm -f conftest.er1
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } && {
23265 test -z "$ac_c_werror_flag" ||
23266 test ! -s conftest.err
23267 } && test -s conftest$ac_exeext &&
23268 $as_test_x conftest$ac_exeext; then
23269 ac_cv_var_tzname=yes
23270 else
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ac_cv_var_tzname=no
23277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23278 conftest$ac_exeext conftest.$ac_ext
23280 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23281 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23282 if test $ac_cv_var_tzname = yes; then
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_TZNAME 1
23286 _ACEOF
23292 # check tzset(3) exists and works like we expect it to
23293 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23294 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23295 if test "${ac_cv_working_tzset+set}" = set; then
23296 echo $ECHO_N "(cached) $ECHO_C" >&6
23297 else
23299 if test "$cross_compiling" = yes; then
23300 ac_cv_working_tzset=no
23301 else
23302 cat >conftest.$ac_ext <<_ACEOF
23303 /* confdefs.h. */
23304 _ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23309 #include <stdlib.h>
23310 #include <time.h>
23311 #include <string.h>
23313 #if HAVE_TZNAME
23314 extern char *tzname[];
23315 #endif
23317 int main()
23319 /* Note that we need to ensure that not only does tzset(3)
23320 do 'something' with localtime, but it works as documented
23321 in the library reference and as expected by the test suite.
23322 This includes making sure that tzname is set properly if
23323 tm->tm_zone does not exist since it is the alternative way
23324 of getting timezone info.
23326 Red Hat 6.2 doesn't understand the southern hemisphere
23327 after New Year's Day.
23330 time_t groundhogday = 1044144000; /* GMT-based */
23331 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23333 putenv("TZ=UTC+0");
23334 tzset();
23335 if (localtime(&groundhogday)->tm_hour != 0)
23336 exit(1);
23337 #if HAVE_TZNAME
23338 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23339 if (strcmp(tzname[0], "UTC") ||
23340 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23341 exit(1);
23342 #endif
23344 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23345 tzset();
23346 if (localtime(&groundhogday)->tm_hour != 19)
23347 exit(1);
23348 #if HAVE_TZNAME
23349 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23350 exit(1);
23351 #endif
23353 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23354 tzset();
23355 if (localtime(&groundhogday)->tm_hour != 11)
23356 exit(1);
23357 #if HAVE_TZNAME
23358 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23359 exit(1);
23360 #endif
23362 #if HAVE_STRUCT_TM_TM_ZONE
23363 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23364 exit(1);
23365 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23366 exit(1);
23367 #endif
23369 exit(0);
23372 _ACEOF
23373 rm -f conftest$ac_exeext
23374 if { (ac_try="$ac_link"
23375 case "(($ac_try" in
23376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377 *) ac_try_echo=$ac_try;;
23378 esac
23379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23380 (eval "$ac_link") 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23384 { (case "(($ac_try" in
23385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386 *) ac_try_echo=$ac_try;;
23387 esac
23388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23389 (eval "$ac_try") 2>&5
23390 ac_status=$?
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; }; then
23393 ac_cv_working_tzset=yes
23394 else
23395 echo "$as_me: program exited with status $ac_status" >&5
23396 echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 ( exit $ac_status )
23400 ac_cv_working_tzset=no
23402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23408 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23409 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23410 if test "$ac_cv_working_tzset" = yes
23411 then
23413 cat >>confdefs.h <<\_ACEOF
23414 #define HAVE_WORKING_TZSET 1
23415 _ACEOF
23419 # Look for subsecond timestamps in struct stat
23420 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23421 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23422 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23424 else
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23431 #include <sys/stat.h>
23433 main ()
23436 struct stat st;
23437 st.st_mtim.tv_nsec = 1;
23440 return 0;
23442 _ACEOF
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_compile") 2>conftest.er1
23451 ac_status=$?
23452 grep -v '^ *+' conftest.er1 >conftest.err
23453 rm -f conftest.er1
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest.$ac_objext; then
23460 ac_cv_stat_tv_nsec=yes
23461 else
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 ac_cv_stat_tv_nsec=no
23468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23471 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23472 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23473 if test "$ac_cv_stat_tv_nsec" = yes
23474 then
23476 cat >>confdefs.h <<\_ACEOF
23477 #define HAVE_STAT_TV_NSEC 1
23478 _ACEOF
23482 # Look for BSD style subsecond timestamps in struct stat
23483 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23484 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23485 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 else
23488 cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h. */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23494 #include <sys/stat.h>
23496 main ()
23499 struct stat st;
23500 st.st_mtimespec.tv_nsec = 1;
23503 return 0;
23505 _ACEOF
23506 rm -f conftest.$ac_objext
23507 if { (ac_try="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23511 esac
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23514 ac_status=$?
23515 grep -v '^ *+' conftest.er1 >conftest.err
23516 rm -f conftest.er1
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23523 ac_cv_stat_tv_nsec2=yes
23524 else
23525 echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ac_cv_stat_tv_nsec2=no
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23535 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23536 if test "$ac_cv_stat_tv_nsec2" = yes
23537 then
23539 cat >>confdefs.h <<\_ACEOF
23540 #define HAVE_STAT_TV_NSEC2 1
23541 _ACEOF
23545 # On HP/UX 11.0, mvwdelch is a block with a return statement
23546 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23547 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23548 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23549 echo $ECHO_N "(cached) $ECHO_C" >&6
23550 else
23551 cat >conftest.$ac_ext <<_ACEOF
23552 /* confdefs.h. */
23553 _ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 #include <curses.h>
23559 main ()
23562 int rtn;
23563 rtn = mvwdelch(0,0,0);
23566 return 0;
23568 _ACEOF
23569 rm -f conftest.$ac_objext
23570 if { (ac_try="$ac_compile"
23571 case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23574 esac
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_compile") 2>conftest.er1
23577 ac_status=$?
23578 grep -v '^ *+' conftest.er1 >conftest.err
23579 rm -f conftest.er1
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } && {
23583 test -z "$ac_c_werror_flag" ||
23584 test ! -s conftest.err
23585 } && test -s conftest.$ac_objext; then
23586 ac_cv_mvwdelch_is_expression=yes
23587 else
23588 echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23591 ac_cv_mvwdelch_is_expression=no
23594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23598 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23600 if test "$ac_cv_mvwdelch_is_expression" = yes
23601 then
23603 cat >>confdefs.h <<\_ACEOF
23604 #define MVWDELCH_IS_EXPRESSION 1
23605 _ACEOF
23609 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23610 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23611 if test "${ac_cv_window_has_flags+set}" = set; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 else
23614 cat >conftest.$ac_ext <<_ACEOF
23615 /* confdefs.h. */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23620 #include <curses.h>
23622 main ()
23625 WINDOW *w;
23626 w->_flags = 0;
23629 return 0;
23631 _ACEOF
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636 *) ac_try_echo=$ac_try;;
23637 esac
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23640 ac_status=$?
23641 grep -v '^ *+' conftest.er1 >conftest.err
23642 rm -f conftest.er1
23643 cat conftest.err >&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } && {
23646 test -z "$ac_c_werror_flag" ||
23647 test ! -s conftest.err
23648 } && test -s conftest.$ac_objext; then
23649 ac_cv_window_has_flags=yes
23650 else
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 ac_cv_window_has_flags=no
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23661 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23664 if test "$ac_cv_window_has_flags" = yes
23665 then
23667 cat >>confdefs.h <<\_ACEOF
23668 #define WINDOW_HAS_FLAGS 1
23669 _ACEOF
23673 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23674 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23675 cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h. */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 #include <curses.h>
23683 main ()
23685 void *x=is_term_resized
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
23708 cat >>confdefs.h <<\_ACEOF
23709 #define HAVE_CURSES_IS_TERM_RESIZED 1
23710 _ACEOF
23712 { echo "$as_me:$LINENO: result: yes" >&5
23713 echo "${ECHO_T}yes" >&6; }
23714 else
23715 echo "$as_me: failed program was:" >&5
23716 sed 's/^/| /' conftest.$ac_ext >&5
23718 { echo "$as_me:$LINENO: result: no" >&5
23719 echo "${ECHO_T}no" >&6; }
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 { echo "$as_me:$LINENO: checking for resize_term" >&5
23726 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23727 cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h. */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23733 #include <curses.h>
23735 main ()
23737 void *x=resize_term
23739 return 0;
23741 _ACEOF
23742 rm -f conftest.$ac_objext
23743 if { (ac_try="$ac_compile"
23744 case "(($ac_try" in
23745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23747 esac
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_compile") 2>conftest.er1
23750 ac_status=$?
23751 grep -v '^ *+' conftest.er1 >conftest.err
23752 rm -f conftest.er1
23753 cat conftest.err >&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && {
23756 test -z "$ac_c_werror_flag" ||
23757 test ! -s conftest.err
23758 } && test -s conftest.$ac_objext; then
23760 cat >>confdefs.h <<\_ACEOF
23761 #define HAVE_CURSES_RESIZE_TERM 1
23762 _ACEOF
23764 { echo "$as_me:$LINENO: result: yes" >&5
23765 echo "${ECHO_T}yes" >&6; }
23766 else
23767 echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23770 { echo "$as_me:$LINENO: result: no" >&5
23771 echo "${ECHO_T}no" >&6; }
23775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23777 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23778 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23779 cat >conftest.$ac_ext <<_ACEOF
23780 /* confdefs.h. */
23781 _ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23785 #include <curses.h>
23787 main ()
23789 void *x=resizeterm
23791 return 0;
23793 _ACEOF
23794 rm -f conftest.$ac_objext
23795 if { (ac_try="$ac_compile"
23796 case "(($ac_try" in
23797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798 *) ac_try_echo=$ac_try;;
23799 esac
23800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23801 (eval "$ac_compile") 2>conftest.er1
23802 ac_status=$?
23803 grep -v '^ *+' conftest.er1 >conftest.err
23804 rm -f conftest.er1
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && {
23808 test -z "$ac_c_werror_flag" ||
23809 test ! -s conftest.err
23810 } && test -s conftest.$ac_objext; then
23812 cat >>confdefs.h <<\_ACEOF
23813 #define HAVE_CURSES_RESIZETERM 1
23814 _ACEOF
23816 { echo "$as_me:$LINENO: result: yes" >&5
23817 echo "${ECHO_T}yes" >&6; }
23818 else
23819 echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822 { echo "$as_me:$LINENO: result: no" >&5
23823 echo "${ECHO_T}no" >&6; }
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23830 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23832 if test -r /dev/ptmx
23833 then
23834 { echo "$as_me:$LINENO: result: yes" >&5
23835 echo "${ECHO_T}yes" >&6; }
23837 cat >>confdefs.h <<\_ACEOF
23838 #define HAVE_DEV_PTMX 1
23839 _ACEOF
23841 else
23842 { echo "$as_me:$LINENO: result: no" >&5
23843 echo "${ECHO_T}no" >&6; }
23846 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23847 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23849 if test -r /dev/ptc
23850 then
23851 { echo "$as_me:$LINENO: result: yes" >&5
23852 echo "${ECHO_T}yes" >&6; }
23854 cat >>confdefs.h <<\_ACEOF
23855 #define HAVE_DEV_PTC 1
23856 _ACEOF
23858 else
23859 { echo "$as_me:$LINENO: result: no" >&5
23860 echo "${ECHO_T}no" >&6; }
23863 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
23864 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
23865 if test "$cross_compiling" = yes; then
23866 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23867 See \`config.log' for more details." >&5
23868 echo "$as_me: error: cannot run test program while cross compiling
23869 See \`config.log' for more details." >&2;}
23870 { (exit 1); exit 1; }; }
23871 else
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 #include <stdio.h>
23879 #include <stddef.h>
23880 #include <string.h>
23882 #ifdef HAVE_SYS_TYPES_H
23883 #include <sys/types.h>
23884 #endif
23886 #ifdef HAVE_SSIZE_T
23887 typedef ssize_t Py_ssize_t;
23888 #elif SIZEOF_VOID_P == SIZEOF_LONG
23889 typedef long Py_ssize_t;
23890 #else
23891 typedef int Py_ssize_t;
23892 #endif
23894 int main()
23896 char buffer[256];
23898 if(sprintf(buffer, "%zd", (size_t)123) < 0)
23899 return 1;
23901 if (strcmp(buffer, "123"))
23902 return 1;
23904 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
23905 return 1;
23907 if (strcmp(buffer, "-123"))
23908 return 1;
23910 return 0;
23912 _ACEOF
23913 rm -f conftest$ac_exeext
23914 if { (ac_try="$ac_link"
23915 case "(($ac_try" in
23916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23917 *) ac_try_echo=$ac_try;;
23918 esac
23919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23920 (eval "$ac_link") 2>&5
23921 ac_status=$?
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23924 { (case "(($ac_try" in
23925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926 *) ac_try_echo=$ac_try;;
23927 esac
23928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23929 (eval "$ac_try") 2>&5
23930 ac_status=$?
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; }; then
23933 { echo "$as_me:$LINENO: result: yes" >&5
23934 echo "${ECHO_T}yes" >&6; }
23936 cat >>confdefs.h <<\_ACEOF
23937 #define PY_FORMAT_SIZE_T "z"
23938 _ACEOF
23940 else
23941 echo "$as_me: program exited with status $ac_status" >&5
23942 echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23945 ( exit $ac_status )
23946 { echo "$as_me:$LINENO: result: no" >&5
23947 echo "${ECHO_T}no" >&6; }
23949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23954 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23955 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23956 if test "${ac_cv_type_socklen_t+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23958 else
23959 cat >conftest.$ac_ext <<_ACEOF
23960 /* confdefs.h. */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23966 #ifdef HAVE_SYS_TYPES_H
23967 #include <sys/types.h>
23968 #endif
23969 #ifdef HAVE_SYS_SOCKET_H
23970 #include <sys/socket.h>
23971 #endif
23974 typedef socklen_t ac__type_new_;
23976 main ()
23978 if ((ac__type_new_ *) 0)
23979 return 0;
23980 if (sizeof (ac__type_new_))
23981 return 0;
23983 return 0;
23985 _ACEOF
23986 rm -f conftest.$ac_objext
23987 if { (ac_try="$ac_compile"
23988 case "(($ac_try" in
23989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23990 *) ac_try_echo=$ac_try;;
23991 esac
23992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23994 ac_status=$?
23995 grep -v '^ *+' conftest.er1 >conftest.err
23996 rm -f conftest.er1
23997 cat conftest.err >&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_c_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.$ac_objext; then
24003 ac_cv_type_socklen_t=yes
24004 else
24005 echo "$as_me: failed program was:" >&5
24006 sed 's/^/| /' conftest.$ac_ext >&5
24008 ac_cv_type_socklen_t=no
24011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24013 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24014 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24015 if test $ac_cv_type_socklen_t = yes; then
24017 else
24019 cat >>confdefs.h <<\_ACEOF
24020 #define socklen_t int
24021 _ACEOF
24028 for h in `(cd $srcdir;echo Python/thread_*.h)`
24030 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24031 done
24034 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24035 { echo "$as_me:$LINENO: checking for build directories" >&5
24036 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24037 for dir in $SRCDIRS; do
24038 if test ! -d $dir; then
24039 mkdir $dir
24041 done
24042 { echo "$as_me:$LINENO: result: done" >&5
24043 echo "${ECHO_T}done" >&6; }
24045 # generate output files
24046 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24048 cat >confcache <<\_ACEOF
24049 # This file is a shell script that caches the results of configure
24050 # tests run on this system so they can be shared between configure
24051 # scripts and configure runs, see configure's option --config-cache.
24052 # It is not useful on other systems. If it contains results you don't
24053 # want to keep, you may remove or edit it.
24055 # config.status only pays attention to the cache file if you give it
24056 # the --recheck option to rerun configure.
24058 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24059 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24060 # following values.
24062 _ACEOF
24064 # The following way of writing the cache mishandles newlines in values,
24065 # but we know of no workaround that is simple, portable, and efficient.
24066 # So, we kill variables containing newlines.
24067 # Ultrix sh set writes to stderr and can't be redirected directly,
24068 # and sets the high bit in the cache file unless we assign to the vars.
24070 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24071 eval ac_val=\$$ac_var
24072 case $ac_val in #(
24073 *${as_nl}*)
24074 case $ac_var in #(
24075 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24076 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24077 esac
24078 case $ac_var in #(
24079 _ | IFS | as_nl) ;; #(
24080 *) $as_unset $ac_var ;;
24081 esac ;;
24082 esac
24083 done
24085 (set) 2>&1 |
24086 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24087 *${as_nl}ac_space=\ *)
24088 # `set' does not quote correctly, so add quotes (double-quote
24089 # substitution turns \\\\ into \\, and sed turns \\ into \).
24090 sed -n \
24091 "s/'/'\\\\''/g;
24092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24093 ;; #(
24095 # `set' quotes correctly as required by POSIX, so do not add quotes.
24096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24098 esac |
24099 sort
24101 sed '
24102 /^ac_cv_env_/b end
24103 t clear
24104 :clear
24105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24106 t end
24107 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24108 :end' >>confcache
24109 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24110 if test -w "$cache_file"; then
24111 test "x$cache_file" != "x/dev/null" &&
24112 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24113 echo "$as_me: updating cache $cache_file" >&6;}
24114 cat confcache >$cache_file
24115 else
24116 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24117 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24120 rm -f confcache
24122 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24123 # Let make expand exec_prefix.
24124 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24126 DEFS=-DHAVE_CONFIG_H
24128 ac_libobjs=
24129 ac_ltlibobjs=
24130 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24131 # 1. Remove the extension, and $U if already installed.
24132 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24133 ac_i=`echo "$ac_i" | sed "$ac_script"`
24134 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24135 # will be set to the directory where LIBOBJS objects are built.
24136 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24137 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24138 done
24139 LIBOBJS=$ac_libobjs
24141 LTLIBOBJS=$ac_ltlibobjs
24145 : ${CONFIG_STATUS=./config.status}
24146 ac_clean_files_save=$ac_clean_files
24147 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24148 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24149 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24150 cat >$CONFIG_STATUS <<_ACEOF
24151 #! $SHELL
24152 # Generated by $as_me.
24153 # Run this file to recreate the current configuration.
24154 # Compiler output produced by configure, useful for debugging
24155 # configure, is in config.log if it exists.
24157 debug=false
24158 ac_cs_recheck=false
24159 ac_cs_silent=false
24160 SHELL=\${CONFIG_SHELL-$SHELL}
24161 _ACEOF
24163 cat >>$CONFIG_STATUS <<\_ACEOF
24164 ## --------------------- ##
24165 ## M4sh Initialization. ##
24166 ## --------------------- ##
24168 # Be more Bourne compatible
24169 DUALCASE=1; export DUALCASE # for MKS sh
24170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24171 emulate sh
24172 NULLCMD=:
24173 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24174 # is contrary to our usage. Disable this feature.
24175 alias -g '${1+"$@"}'='"$@"'
24176 setopt NO_GLOB_SUBST
24177 else
24178 case `(set -o) 2>/dev/null` in
24179 *posix*) set -o posix ;;
24180 esac
24187 # PATH needs CR
24188 # Avoid depending upon Character Ranges.
24189 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24190 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24191 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24192 as_cr_digits='0123456789'
24193 as_cr_alnum=$as_cr_Letters$as_cr_digits
24195 # The user is always right.
24196 if test "${PATH_SEPARATOR+set}" != set; then
24197 echo "#! /bin/sh" >conf$$.sh
24198 echo "exit 0" >>conf$$.sh
24199 chmod +x conf$$.sh
24200 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24201 PATH_SEPARATOR=';'
24202 else
24203 PATH_SEPARATOR=:
24205 rm -f conf$$.sh
24208 # Support unset when possible.
24209 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24210 as_unset=unset
24211 else
24212 as_unset=false
24216 # IFS
24217 # We need space, tab and new line, in precisely that order. Quoting is
24218 # there to prevent editors from complaining about space-tab.
24219 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24220 # splitting by setting IFS to empty value.)
24221 as_nl='
24223 IFS=" "" $as_nl"
24225 # Find who we are. Look in the path if we contain no directory separator.
24226 case $0 in
24227 *[\\/]* ) as_myself=$0 ;;
24228 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24229 for as_dir in $PATH
24231 IFS=$as_save_IFS
24232 test -z "$as_dir" && as_dir=.
24233 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24234 done
24235 IFS=$as_save_IFS
24238 esac
24239 # We did not find ourselves, most probably we were run as `sh COMMAND'
24240 # in which case we are not to be found in the path.
24241 if test "x$as_myself" = x; then
24242 as_myself=$0
24244 if test ! -f "$as_myself"; then
24245 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24246 { (exit 1); exit 1; }
24249 # Work around bugs in pre-3.0 UWIN ksh.
24250 for as_var in ENV MAIL MAILPATH
24251 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24252 done
24253 PS1='$ '
24254 PS2='> '
24255 PS4='+ '
24257 # NLS nuisances.
24258 for as_var in \
24259 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24260 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24261 LC_TELEPHONE LC_TIME
24263 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24264 eval $as_var=C; export $as_var
24265 else
24266 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24268 done
24270 # Required to use basename.
24271 if expr a : '\(a\)' >/dev/null 2>&1 &&
24272 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24273 as_expr=expr
24274 else
24275 as_expr=false
24278 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24279 as_basename=basename
24280 else
24281 as_basename=false
24285 # Name of the executable.
24286 as_me=`$as_basename -- "$0" ||
24287 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24288 X"$0" : 'X\(//\)$' \| \
24289 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24290 echo X/"$0" |
24291 sed '/^.*\/\([^/][^/]*\)\/*$/{
24292 s//\1/
24295 /^X\/\(\/\/\)$/{
24296 s//\1/
24299 /^X\/\(\/\).*/{
24300 s//\1/
24303 s/.*/./; q'`
24305 # CDPATH.
24306 $as_unset CDPATH
24310 as_lineno_1=$LINENO
24311 as_lineno_2=$LINENO
24312 test "x$as_lineno_1" != "x$as_lineno_2" &&
24313 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24315 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24316 # uniformly replaced by the line number. The first 'sed' inserts a
24317 # line-number line after each line using $LINENO; the second 'sed'
24318 # does the real work. The second script uses 'N' to pair each
24319 # line-number line with the line containing $LINENO, and appends
24320 # trailing '-' during substitution so that $LINENO is not a special
24321 # case at line end.
24322 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24323 # scripts with optimization help from Paolo Bonzini. Blame Lee
24324 # E. McMahon (1931-1989) for sed's syntax. :-)
24325 sed -n '
24327 /[$]LINENO/=
24328 ' <$as_myself |
24329 sed '
24330 s/[$]LINENO.*/&-/
24331 t lineno
24333 :lineno
24335 :loop
24336 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24337 t loop
24338 s/-\n.*//
24339 ' >$as_me.lineno &&
24340 chmod +x "$as_me.lineno" ||
24341 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24342 { (exit 1); exit 1; }; }
24344 # Don't try to exec as it changes $[0], causing all sort of problems
24345 # (the dirname of $[0] is not the place where we might find the
24346 # original and so on. Autoconf is especially sensitive to this).
24347 . "./$as_me.lineno"
24348 # Exit status is that of the last command.
24349 exit
24353 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24354 as_dirname=dirname
24355 else
24356 as_dirname=false
24359 ECHO_C= ECHO_N= ECHO_T=
24360 case `echo -n x` in
24361 -n*)
24362 case `echo 'x\c'` in
24363 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24364 *) ECHO_C='\c';;
24365 esac;;
24367 ECHO_N='-n';;
24368 esac
24370 if expr a : '\(a\)' >/dev/null 2>&1 &&
24371 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24372 as_expr=expr
24373 else
24374 as_expr=false
24377 rm -f conf$$ conf$$.exe conf$$.file
24378 if test -d conf$$.dir; then
24379 rm -f conf$$.dir/conf$$.file
24380 else
24381 rm -f conf$$.dir
24382 mkdir conf$$.dir
24384 echo >conf$$.file
24385 if ln -s conf$$.file conf$$ 2>/dev/null; then
24386 as_ln_s='ln -s'
24387 # ... but there are two gotchas:
24388 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24389 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24390 # In both cases, we have to default to `cp -p'.
24391 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24392 as_ln_s='cp -p'
24393 elif ln conf$$.file conf$$ 2>/dev/null; then
24394 as_ln_s=ln
24395 else
24396 as_ln_s='cp -p'
24398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24399 rmdir conf$$.dir 2>/dev/null
24401 if mkdir -p . 2>/dev/null; then
24402 as_mkdir_p=:
24403 else
24404 test -d ./-p && rmdir ./-p
24405 as_mkdir_p=false
24408 if test -x / >/dev/null 2>&1; then
24409 as_test_x='test -x'
24410 else
24411 if ls -dL / >/dev/null 2>&1; then
24412 as_ls_L_option=L
24413 else
24414 as_ls_L_option=
24416 as_test_x='
24417 eval sh -c '\''
24418 if test -d "$1"; then
24419 test -d "$1/.";
24420 else
24421 case $1 in
24422 -*)set "./$1";;
24423 esac;
24424 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24425 ???[sx]*):;;*)false;;esac;fi
24426 '\'' sh
24429 as_executable_p=$as_test_x
24431 # Sed expression to map a string onto a valid CPP name.
24432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24434 # Sed expression to map a string onto a valid variable name.
24435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24438 exec 6>&1
24440 # Save the log message, to keep $[0] and so on meaningful, and to
24441 # report actual input values of CONFIG_FILES etc. instead of their
24442 # values after options handling.
24443 ac_log="
24444 This file was extended by python $as_me 2.6, which was
24445 generated by GNU Autoconf 2.61. Invocation command line was
24447 CONFIG_FILES = $CONFIG_FILES
24448 CONFIG_HEADERS = $CONFIG_HEADERS
24449 CONFIG_LINKS = $CONFIG_LINKS
24450 CONFIG_COMMANDS = $CONFIG_COMMANDS
24451 $ $0 $@
24453 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24456 _ACEOF
24458 cat >>$CONFIG_STATUS <<_ACEOF
24459 # Files that config.status was made for.
24460 config_files="$ac_config_files"
24461 config_headers="$ac_config_headers"
24463 _ACEOF
24465 cat >>$CONFIG_STATUS <<\_ACEOF
24466 ac_cs_usage="\
24467 \`$as_me' instantiates files from templates according to the
24468 current configuration.
24470 Usage: $0 [OPTIONS] [FILE]...
24472 -h, --help print this help, then exit
24473 -V, --version print version number and configuration settings, then exit
24474 -q, --quiet do not print progress messages
24475 -d, --debug don't remove temporary files
24476 --recheck update $as_me by reconfiguring in the same conditions
24477 --file=FILE[:TEMPLATE]
24478 instantiate the configuration file FILE
24479 --header=FILE[:TEMPLATE]
24480 instantiate the configuration header FILE
24482 Configuration files:
24483 $config_files
24485 Configuration headers:
24486 $config_headers
24488 Report bugs to <bug-autoconf@gnu.org>."
24490 _ACEOF
24491 cat >>$CONFIG_STATUS <<_ACEOF
24492 ac_cs_version="\\
24493 python config.status 2.6
24494 configured by $0, generated by GNU Autoconf 2.61,
24495 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24497 Copyright (C) 2006 Free Software Foundation, Inc.
24498 This config.status script is free software; the Free Software Foundation
24499 gives unlimited permission to copy, distribute and modify it."
24501 ac_pwd='$ac_pwd'
24502 srcdir='$srcdir'
24503 INSTALL='$INSTALL'
24504 _ACEOF
24506 cat >>$CONFIG_STATUS <<\_ACEOF
24507 # If no file are specified by the user, then we need to provide default
24508 # value. By we need to know if files were specified by the user.
24509 ac_need_defaults=:
24510 while test $# != 0
24512 case $1 in
24513 --*=*)
24514 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24515 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24516 ac_shift=:
24519 ac_option=$1
24520 ac_optarg=$2
24521 ac_shift=shift
24523 esac
24525 case $ac_option in
24526 # Handling of the options.
24527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24528 ac_cs_recheck=: ;;
24529 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24530 echo "$ac_cs_version"; exit ;;
24531 --debug | --debu | --deb | --de | --d | -d )
24532 debug=: ;;
24533 --file | --fil | --fi | --f )
24534 $ac_shift
24535 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24536 ac_need_defaults=false;;
24537 --header | --heade | --head | --hea )
24538 $ac_shift
24539 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24540 ac_need_defaults=false;;
24541 --he | --h)
24542 # Conflict between --help and --header
24543 { echo "$as_me: error: ambiguous option: $1
24544 Try \`$0 --help' for more information." >&2
24545 { (exit 1); exit 1; }; };;
24546 --help | --hel | -h )
24547 echo "$ac_cs_usage"; exit ;;
24548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24549 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24550 ac_cs_silent=: ;;
24552 # This is an error.
24553 -*) { echo "$as_me: error: unrecognized option: $1
24554 Try \`$0 --help' for more information." >&2
24555 { (exit 1); exit 1; }; } ;;
24557 *) ac_config_targets="$ac_config_targets $1"
24558 ac_need_defaults=false ;;
24560 esac
24561 shift
24562 done
24564 ac_configure_extra_args=
24566 if $ac_cs_silent; then
24567 exec 6>/dev/null
24568 ac_configure_extra_args="$ac_configure_extra_args --silent"
24571 _ACEOF
24572 cat >>$CONFIG_STATUS <<_ACEOF
24573 if \$ac_cs_recheck; then
24574 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24575 CONFIG_SHELL=$SHELL
24576 export CONFIG_SHELL
24577 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24580 _ACEOF
24581 cat >>$CONFIG_STATUS <<\_ACEOF
24582 exec 5>>config.log
24584 echo
24585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24586 ## Running $as_me. ##
24587 _ASBOX
24588 echo "$ac_log"
24589 } >&5
24591 _ACEOF
24592 cat >>$CONFIG_STATUS <<_ACEOF
24593 _ACEOF
24595 cat >>$CONFIG_STATUS <<\_ACEOF
24597 # Handling of arguments.
24598 for ac_config_target in $ac_config_targets
24600 case $ac_config_target in
24601 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
24602 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
24603 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24604 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24605 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
24606 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
24607 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
24608 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
24610 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24611 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24612 { (exit 1); exit 1; }; };;
24613 esac
24614 done
24617 # If the user did not use the arguments to specify the items to instantiate,
24618 # then the envvar interface is used. Set only those that are not.
24619 # We use the long form for the default assignment because of an extremely
24620 # bizarre bug on SunOS 4.1.3.
24621 if $ac_need_defaults; then
24622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24626 # Have a temporary directory for convenience. Make it in the build tree
24627 # simply because there is no reason against having it here, and in addition,
24628 # creating and moving files from /tmp can sometimes cause problems.
24629 # Hook for its removal unless debugging.
24630 # Note that there is a small window in which the directory will not be cleaned:
24631 # after its creation but before its name has been assigned to `$tmp'.
24632 $debug ||
24634 tmp=
24635 trap 'exit_status=$?
24636 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24638 trap '{ (exit 1); exit 1; }' 1 2 13 15
24640 # Create a (secure) tmp directory for tmp files.
24643 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24644 test -n "$tmp" && test -d "$tmp"
24645 } ||
24647 tmp=./conf$$-$RANDOM
24648 (umask 077 && mkdir "$tmp")
24649 } ||
24651 echo "$me: cannot create a temporary directory in ." >&2
24652 { (exit 1); exit 1; }
24656 # Set up the sed scripts for CONFIG_FILES section.
24659 # No need to generate the scripts if there are no CONFIG_FILES.
24660 # This happens for instance when ./config.status config.h
24661 if test -n "$CONFIG_FILES"; then
24663 _ACEOF
24667 ac_delim='%!_!# '
24668 for ac_last_try in false false false false false :; do
24669 cat >conf$$subs.sed <<_ACEOF
24670 SHELL!$SHELL$ac_delim
24671 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24672 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24673 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24674 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24675 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24676 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24677 exec_prefix!$exec_prefix$ac_delim
24678 prefix!$prefix$ac_delim
24679 program_transform_name!$program_transform_name$ac_delim
24680 bindir!$bindir$ac_delim
24681 sbindir!$sbindir$ac_delim
24682 libexecdir!$libexecdir$ac_delim
24683 datarootdir!$datarootdir$ac_delim
24684 datadir!$datadir$ac_delim
24685 sysconfdir!$sysconfdir$ac_delim
24686 sharedstatedir!$sharedstatedir$ac_delim
24687 localstatedir!$localstatedir$ac_delim
24688 includedir!$includedir$ac_delim
24689 oldincludedir!$oldincludedir$ac_delim
24690 docdir!$docdir$ac_delim
24691 infodir!$infodir$ac_delim
24692 htmldir!$htmldir$ac_delim
24693 dvidir!$dvidir$ac_delim
24694 pdfdir!$pdfdir$ac_delim
24695 psdir!$psdir$ac_delim
24696 libdir!$libdir$ac_delim
24697 localedir!$localedir$ac_delim
24698 mandir!$mandir$ac_delim
24699 DEFS!$DEFS$ac_delim
24700 ECHO_C!$ECHO_C$ac_delim
24701 ECHO_N!$ECHO_N$ac_delim
24702 ECHO_T!$ECHO_T$ac_delim
24703 LIBS!$LIBS$ac_delim
24704 build_alias!$build_alias$ac_delim
24705 host_alias!$host_alias$ac_delim
24706 target_alias!$target_alias$ac_delim
24707 VERSION!$VERSION$ac_delim
24708 SOVERSION!$SOVERSION$ac_delim
24709 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24710 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24711 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24712 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
24713 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24714 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24715 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24716 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24717 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24718 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24719 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24720 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24721 MACHDEP!$MACHDEP$ac_delim
24722 SGI_ABI!$SGI_ABI$ac_delim
24723 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24724 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24725 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24726 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24727 CC!$CC$ac_delim
24728 CFLAGS!$CFLAGS$ac_delim
24729 LDFLAGS!$LDFLAGS$ac_delim
24730 CPPFLAGS!$CPPFLAGS$ac_delim
24731 ac_ct_CC!$ac_ct_CC$ac_delim
24732 EXEEXT!$EXEEXT$ac_delim
24733 OBJEXT!$OBJEXT$ac_delim
24734 CXX!$CXX$ac_delim
24735 MAINCC!$MAINCC$ac_delim
24736 CPP!$CPP$ac_delim
24737 GREP!$GREP$ac_delim
24738 EGREP!$EGREP$ac_delim
24739 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24740 LIBRARY!$LIBRARY$ac_delim
24741 LDLIBRARY!$LDLIBRARY$ac_delim
24742 DLLLIBRARY!$DLLLIBRARY$ac_delim
24743 BLDLIBRARY!$BLDLIBRARY$ac_delim
24744 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24745 INSTSONAME!$INSTSONAME$ac_delim
24746 RUNSHARED!$RUNSHARED$ac_delim
24747 LINKCC!$LINKCC$ac_delim
24748 RANLIB!$RANLIB$ac_delim
24749 AR!$AR$ac_delim
24750 SVNVERSION!$SVNVERSION$ac_delim
24751 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24752 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24753 INSTALL_DATA!$INSTALL_DATA$ac_delim
24754 LN!$LN$ac_delim
24755 OPT!$OPT$ac_delim
24756 BASECFLAGS!$BASECFLAGS$ac_delim
24757 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24758 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24759 SO!$SO$ac_delim
24760 LDSHARED!$LDSHARED$ac_delim
24761 BLDSHARED!$BLDSHARED$ac_delim
24762 CCSHARED!$CCSHARED$ac_delim
24763 LINKFORSHARED!$LINKFORSHARED$ac_delim
24764 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24765 SHLIBS!$SHLIBS$ac_delim
24766 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24767 _ACEOF
24769 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24770 break
24771 elif $ac_last_try; then
24772 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24773 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24774 { (exit 1); exit 1; }; }
24775 else
24776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24778 done
24780 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24781 if test -n "$ac_eof"; then
24782 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24783 ac_eof=`expr $ac_eof + 1`
24786 cat >>$CONFIG_STATUS <<_ACEOF
24787 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24789 _ACEOF
24790 sed '
24791 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24792 s/^/s,@/; s/!/@,|#_!!_#|/
24795 s/'"$ac_delim"'$/,g/; t
24796 s/$/\\/; p
24797 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24798 ' >>$CONFIG_STATUS <conf$$subs.sed
24799 rm -f conf$$subs.sed
24800 cat >>$CONFIG_STATUS <<_ACEOF
24801 CEOF$ac_eof
24802 _ACEOF
24805 ac_delim='%!_!# '
24806 for ac_last_try in false false false false false :; do
24807 cat >conf$$subs.sed <<_ACEOF
24808 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24809 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24810 LDLAST!$LDLAST$ac_delim
24811 THREADOBJ!$THREADOBJ$ac_delim
24812 DLINCLDIR!$DLINCLDIR$ac_delim
24813 DYNLOADFILE!$DYNLOADFILE$ac_delim
24814 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24815 TRUE!$TRUE$ac_delim
24816 LIBOBJS!$LIBOBJS$ac_delim
24817 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24818 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24819 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24820 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24821 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24822 LIBM!$LIBM$ac_delim
24823 LIBC!$LIBC$ac_delim
24824 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24825 THREADHEADERS!$THREADHEADERS$ac_delim
24826 SRCDIRS!$SRCDIRS$ac_delim
24827 LTLIBOBJS!$LTLIBOBJS$ac_delim
24828 _ACEOF
24830 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
24831 break
24832 elif $ac_last_try; then
24833 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24834 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24835 { (exit 1); exit 1; }; }
24836 else
24837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24839 done
24841 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24842 if test -n "$ac_eof"; then
24843 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24844 ac_eof=`expr $ac_eof + 1`
24847 cat >>$CONFIG_STATUS <<_ACEOF
24848 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24850 _ACEOF
24851 sed '
24852 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24853 s/^/s,@/; s/!/@,|#_!!_#|/
24856 s/'"$ac_delim"'$/,g/; t
24857 s/$/\\/; p
24858 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24859 ' >>$CONFIG_STATUS <conf$$subs.sed
24860 rm -f conf$$subs.sed
24861 cat >>$CONFIG_STATUS <<_ACEOF
24862 :end
24863 s/|#_!!_#|//g
24864 CEOF$ac_eof
24865 _ACEOF
24868 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24869 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24870 # trailing colons and then remove the whole line if VPATH becomes empty
24871 # (actually we leave an empty line to preserve line numbers).
24872 if test "x$srcdir" = x.; then
24873 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24874 s/:*\$(srcdir):*/:/
24875 s/:*\${srcdir}:*/:/
24876 s/:*@srcdir@:*/:/
24877 s/^\([^=]*=[ ]*\):*/\1/
24878 s/:*$//
24879 s/^[^=]*=[ ]*$//
24883 cat >>$CONFIG_STATUS <<\_ACEOF
24884 fi # test -n "$CONFIG_FILES"
24887 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24889 case $ac_tag in
24890 :[FHLC]) ac_mode=$ac_tag; continue;;
24891 esac
24892 case $ac_mode$ac_tag in
24893 :[FHL]*:*);;
24894 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24895 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24896 { (exit 1); exit 1; }; };;
24897 :[FH]-) ac_tag=-:-;;
24898 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24899 esac
24900 ac_save_IFS=$IFS
24901 IFS=:
24902 set x $ac_tag
24903 IFS=$ac_save_IFS
24904 shift
24905 ac_file=$1
24906 shift
24908 case $ac_mode in
24909 :L) ac_source=$1;;
24910 :[FH])
24911 ac_file_inputs=
24912 for ac_f
24914 case $ac_f in
24915 -) ac_f="$tmp/stdin";;
24916 *) # Look for the file first in the build tree, then in the source tree
24917 # (if the path is not absolute). The absolute path cannot be DOS-style,
24918 # because $ac_f cannot contain `:'.
24919 test -f "$ac_f" ||
24920 case $ac_f in
24921 [\\/$]*) false;;
24922 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24923 esac ||
24924 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24925 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24926 { (exit 1); exit 1; }; };;
24927 esac
24928 ac_file_inputs="$ac_file_inputs $ac_f"
24929 done
24931 # Let's still pretend it is `configure' which instantiates (i.e., don't
24932 # use $as_me), people would be surprised to read:
24933 # /* config.h. Generated by config.status. */
24934 configure_input="Generated from "`IFS=:
24935 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24936 if test x"$ac_file" != x-; then
24937 configure_input="$ac_file. $configure_input"
24938 { echo "$as_me:$LINENO: creating $ac_file" >&5
24939 echo "$as_me: creating $ac_file" >&6;}
24942 case $ac_tag in
24943 *:-:* | *:-) cat >"$tmp/stdin";;
24944 esac
24946 esac
24948 ac_dir=`$as_dirname -- "$ac_file" ||
24949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24950 X"$ac_file" : 'X\(//\)[^/]' \| \
24951 X"$ac_file" : 'X\(//\)$' \| \
24952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24953 echo X"$ac_file" |
24954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24955 s//\1/
24958 /^X\(\/\/\)[^/].*/{
24959 s//\1/
24962 /^X\(\/\/\)$/{
24963 s//\1/
24966 /^X\(\/\).*/{
24967 s//\1/
24970 s/.*/./; q'`
24971 { as_dir="$ac_dir"
24972 case $as_dir in #(
24973 -*) as_dir=./$as_dir;;
24974 esac
24975 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24976 as_dirs=
24977 while :; do
24978 case $as_dir in #(
24979 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24980 *) as_qdir=$as_dir;;
24981 esac
24982 as_dirs="'$as_qdir' $as_dirs"
24983 as_dir=`$as_dirname -- "$as_dir" ||
24984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24985 X"$as_dir" : 'X\(//\)[^/]' \| \
24986 X"$as_dir" : 'X\(//\)$' \| \
24987 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24988 echo X"$as_dir" |
24989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24990 s//\1/
24993 /^X\(\/\/\)[^/].*/{
24994 s//\1/
24997 /^X\(\/\/\)$/{
24998 s//\1/
25001 /^X\(\/\).*/{
25002 s//\1/
25005 s/.*/./; q'`
25006 test -d "$as_dir" && break
25007 done
25008 test -z "$as_dirs" || eval "mkdir $as_dirs"
25009 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25010 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25011 { (exit 1); exit 1; }; }; }
25012 ac_builddir=.
25014 case "$ac_dir" in
25015 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25017 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25018 # A ".." for each directory in $ac_dir_suffix.
25019 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25020 case $ac_top_builddir_sub in
25021 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25022 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25023 esac ;;
25024 esac
25025 ac_abs_top_builddir=$ac_pwd
25026 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25027 # for backward compatibility:
25028 ac_top_builddir=$ac_top_build_prefix
25030 case $srcdir in
25031 .) # We are building in place.
25032 ac_srcdir=.
25033 ac_top_srcdir=$ac_top_builddir_sub
25034 ac_abs_top_srcdir=$ac_pwd ;;
25035 [\\/]* | ?:[\\/]* ) # Absolute name.
25036 ac_srcdir=$srcdir$ac_dir_suffix;
25037 ac_top_srcdir=$srcdir
25038 ac_abs_top_srcdir=$srcdir ;;
25039 *) # Relative name.
25040 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25041 ac_top_srcdir=$ac_top_build_prefix$srcdir
25042 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25043 esac
25044 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25047 case $ac_mode in
25050 # CONFIG_FILE
25053 case $INSTALL in
25054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25055 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25056 esac
25057 _ACEOF
25059 cat >>$CONFIG_STATUS <<\_ACEOF
25060 # If the template does not know about datarootdir, expand it.
25061 # FIXME: This hack should be removed a few years after 2.60.
25062 ac_datarootdir_hack=; ac_datarootdir_seen=
25064 case `sed -n '/datarootdir/ {
25068 /@datadir@/p
25069 /@docdir@/p
25070 /@infodir@/p
25071 /@localedir@/p
25072 /@mandir@/p
25073 ' $ac_file_inputs` in
25074 *datarootdir*) ac_datarootdir_seen=yes;;
25075 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25076 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25077 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25078 _ACEOF
25079 cat >>$CONFIG_STATUS <<_ACEOF
25080 ac_datarootdir_hack='
25081 s&@datadir@&$datadir&g
25082 s&@docdir@&$docdir&g
25083 s&@infodir@&$infodir&g
25084 s&@localedir@&$localedir&g
25085 s&@mandir@&$mandir&g
25086 s&\\\${datarootdir}&$datarootdir&g' ;;
25087 esac
25088 _ACEOF
25090 # Neutralize VPATH when `$srcdir' = `.'.
25091 # Shell code in configure.ac might set extrasub.
25092 # FIXME: do we really want to maintain this feature?
25093 cat >>$CONFIG_STATUS <<_ACEOF
25094 sed "$ac_vpsub
25095 $extrasub
25096 _ACEOF
25097 cat >>$CONFIG_STATUS <<\_ACEOF
25099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25100 s&@configure_input@&$configure_input&;t t
25101 s&@top_builddir@&$ac_top_builddir_sub&;t t
25102 s&@srcdir@&$ac_srcdir&;t t
25103 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25104 s&@top_srcdir@&$ac_top_srcdir&;t t
25105 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25106 s&@builddir@&$ac_builddir&;t t
25107 s&@abs_builddir@&$ac_abs_builddir&;t t
25108 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25109 s&@INSTALL@&$ac_INSTALL&;t t
25110 $ac_datarootdir_hack
25111 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25113 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25114 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25115 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25116 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25117 which seems to be undefined. Please make sure it is defined." >&5
25118 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25119 which seems to be undefined. Please make sure it is defined." >&2;}
25121 rm -f "$tmp/stdin"
25122 case $ac_file in
25123 -) cat "$tmp/out"; rm -f "$tmp/out";;
25124 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25125 esac
25129 # CONFIG_HEADER
25131 _ACEOF
25133 # Transform confdefs.h into a sed script `conftest.defines', that
25134 # substitutes the proper values into config.h.in to produce config.h.
25135 rm -f conftest.defines conftest.tail
25136 # First, append a space to every undef/define line, to ease matching.
25137 echo 's/$/ /' >conftest.defines
25138 # Then, protect against being on the right side of a sed subst, or in
25139 # an unquoted here document, in config.status. If some macros were
25140 # called several times there might be several #defines for the same
25141 # symbol, which is useless. But do not sort them, since the last
25142 # AC_DEFINE must be honored.
25143 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25144 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25145 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25146 # PARAMS is the parameter list in the macro definition--in most cases, it's
25147 # just an empty string.
25148 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25149 ac_dB='\\)[ (].*,\\1define\\2'
25150 ac_dC=' '
25151 ac_dD=' ,'
25153 uniq confdefs.h |
25154 sed -n '
25155 t rset
25156 :rset
25157 s/^[ ]*#[ ]*define[ ][ ]*//
25158 t ok
25161 s/[\\&,]/\\&/g
25162 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25163 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25164 ' >>conftest.defines
25166 # Remove the space that was appended to ease matching.
25167 # Then replace #undef with comments. This is necessary, for
25168 # example, in the case of _POSIX_SOURCE, which is predefined and required
25169 # on some systems where configure will not decide to define it.
25170 # (The regexp can be short, since the line contains either #define or #undef.)
25171 echo 's/ $//
25172 s,^[ #]*u.*,/* & */,' >>conftest.defines
25174 # Break up conftest.defines:
25175 ac_max_sed_lines=50
25177 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25178 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25179 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25180 # et cetera.
25181 ac_in='$ac_file_inputs'
25182 ac_out='"$tmp/out1"'
25183 ac_nxt='"$tmp/out2"'
25185 while :
25187 # Write a here document:
25188 cat >>$CONFIG_STATUS <<_ACEOF
25189 # First, check the format of the line:
25190 cat >"\$tmp/defines.sed" <<\\CEOF
25191 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25192 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25194 :def
25195 _ACEOF
25196 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25197 echo 'CEOF
25198 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25199 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25200 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25201 grep . conftest.tail >/dev/null || break
25202 rm -f conftest.defines
25203 mv conftest.tail conftest.defines
25204 done
25205 rm -f conftest.defines conftest.tail
25207 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25208 cat >>$CONFIG_STATUS <<\_ACEOF
25209 if test x"$ac_file" != x-; then
25210 echo "/* $configure_input */" >"$tmp/config.h"
25211 cat "$ac_result" >>"$tmp/config.h"
25212 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25213 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25214 echo "$as_me: $ac_file is unchanged" >&6;}
25215 else
25216 rm -f $ac_file
25217 mv "$tmp/config.h" $ac_file
25219 else
25220 echo "/* $configure_input */"
25221 cat "$ac_result"
25223 rm -f "$tmp/out12"
25227 esac
25229 done # for ac_tag
25232 { (exit 0); exit 0; }
25233 _ACEOF
25234 chmod +x $CONFIG_STATUS
25235 ac_clean_files=$ac_clean_files_save
25238 # configure is writing to config.log, and then calls config.status.
25239 # config.status does its own redirection, appending to config.log.
25240 # Unfortunately, on DOS this fails, as config.log is still kept open
25241 # by configure, so config.status won't be able to write to it; its
25242 # output is simply discarded. So we exec the FD to /dev/null,
25243 # effectively closing config.log, so it can be properly (re)opened and
25244 # appended to by config.status. When coming back to configure, we
25245 # need to make the FD available again.
25246 if test "$no_create" != yes; then
25247 ac_cs_success=:
25248 ac_config_status_args=
25249 test "$silent" = yes &&
25250 ac_config_status_args="$ac_config_status_args --quiet"
25251 exec 5>/dev/null
25252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25253 exec 5>>config.log
25254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25255 # would make configure fail if this is the last instruction.
25256 $ac_cs_success || { (exit 1); exit 1; }
25260 echo "creating Modules/Setup"
25261 if test ! -f Modules/Setup
25262 then
25263 cp $srcdir/Modules/Setup.dist Modules/Setup
25266 echo "creating Modules/Setup.local"
25267 if test ! -f Modules/Setup.local
25268 then
25269 echo "# Edit this file for local setup changes" >Modules/Setup.local
25272 echo "creating Makefile"
25273 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
25274 -s Modules Modules/Setup.config \
25275 Modules/Setup.local Modules/Setup
25277 case $ac_sys_system in
25278 BeOS)
25279 { echo "$as_me:$LINENO: WARNING:
25281 Support for BeOS is deprecated as of Python 2.6.
25282 See PEP 11 for the gory details.
25283 " >&5
25284 echo "$as_me: WARNING:
25286 Support for BeOS is deprecated as of Python 2.6.
25287 See PEP 11 for the gory details.
25288 " >&2;}
25290 *) ;;
25291 esac
25293 mv config.c Modules