Temporary checkin to get configure to report more
[python.git] / configure
blob28275ce8c935c9edfd505ea65b56c33a49e28398
1 #! /bin/sh
2 # From configure.in Revision: 62644 .
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 # temporary check to find out which exact processor
2188 # is in the Debian/alpha buildbot.
2189 case $ac_sys_system in
2190 Linux*)
2191 case $ac_sys_machine in alpha*)
2192 cat /proc/cpuinfo
2194 esac
2196 esac
2198 # checks for alternative programs
2200 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2201 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2202 # just to get things to compile and link. Users are free to override OPT
2203 # when running configure or make. The build should not break if they do.
2204 # BASECFLAGS should generally not be messed with, however.
2206 # XXX shouldn't some/most/all of this code be merged with the stuff later
2207 # on that fiddles with OPT and BASECFLAGS?
2208 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2209 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2211 # Check whether --with-gcc was given.
2212 if test "${with_gcc+set}" = set; then
2213 withval=$with_gcc;
2214 case $withval in
2215 no) CC=cc
2216 without_gcc=yes;;
2217 yes) CC=gcc
2218 without_gcc=no;;
2219 *) CC=$withval
2220 without_gcc=$withval;;
2221 esac
2222 else
2224 case $ac_sys_system in
2225 AIX*) CC=cc_r
2226 without_gcc=;;
2227 BeOS*)
2228 case $BE_HOST_CPU in
2229 ppc)
2230 CC=mwcc
2231 without_gcc=yes
2232 BASECFLAGS="$BASECFLAGS -export pragma"
2233 OPT="$OPT -O"
2234 LDFLAGS="$LDFLAGS -nodup"
2236 x86)
2237 CC=gcc
2238 without_gcc=no
2239 OPT="$OPT -O"
2242 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2243 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2244 { (exit 1); exit 1; }; }
2246 esac
2247 AR="\$(srcdir)/Modules/ar_beos"
2248 RANLIB=:
2250 Monterey*)
2251 RANLIB=:
2252 without_gcc=;;
2253 *) without_gcc=no;;
2254 esac
2257 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2258 echo "${ECHO_T}$without_gcc" >&6; }
2260 # If the user switches compilers, we can't believe the cache
2261 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2262 then
2263 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2264 (it is also a good idea to do 'make clean' before compiling)" >&5
2265 echo "$as_me: error: cached CC is different -- throw away $cache_file
2266 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2267 { (exit 1); exit 1; }; }
2270 ac_ext=c
2271 ac_cpp='$CPP $CPPFLAGS'
2272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275 if test -n "$ac_tool_prefix"; then
2276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 if test -n "$CC"; then
2284 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 break 2
2297 done
2298 done
2299 IFS=$as_save_IFS
2303 CC=$ac_cv_prog_CC
2304 if test -n "$CC"; then
2305 { echo "$as_me:$LINENO: result: $CC" >&5
2306 echo "${ECHO_T}$CC" >&6; }
2307 else
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2314 if test -z "$ac_cv_prog_CC"; then
2315 ac_ct_CC=$CC
2316 # Extract the first word of "gcc", so it can be a program name with args.
2317 set dummy gcc; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 if test -n "$ac_ct_CC"; then
2324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_ac_ct_CC="gcc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2337 done
2338 done
2339 IFS=$as_save_IFS
2343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344 if test -n "$ac_ct_CC"; then
2345 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2346 echo "${ECHO_T}$ac_ct_CC" >&6; }
2347 else
2348 { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2352 if test "x$ac_ct_CC" = x; then
2353 CC=""
2354 else
2355 case $cross_compiling:$ac_tool_warned in
2356 yes:)
2357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2358 whose name does not start with the host triplet. If you think this
2359 configuration is useful to you, please write to autoconf@gnu.org." >&5
2360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2361 whose name does not start with the host triplet. If you think this
2362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2363 ac_tool_warned=yes ;;
2364 esac
2365 CC=$ac_ct_CC
2367 else
2368 CC="$ac_cv_prog_CC"
2371 if test -z "$CC"; then
2372 if test -n "$ac_tool_prefix"; then
2373 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2374 set dummy ${ac_tool_prefix}cc; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_CC="${ac_tool_prefix}cc"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2394 done
2395 done
2396 IFS=$as_save_IFS
2400 CC=$ac_cv_prog_CC
2401 if test -n "$CC"; then
2402 { echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6; }
2404 else
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2412 if test -z "$CC"; then
2413 # Extract the first word of "cc", so it can be a program name with args.
2414 set dummy cc; ac_word=$2
2415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2422 else
2423 ac_prog_rejected=no
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2432 ac_prog_rejected=yes
2433 continue
2435 ac_cv_prog_CC="cc"
2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2439 done
2440 done
2441 IFS=$as_save_IFS
2443 if test $ac_prog_rejected = yes; then
2444 # We found a bogon in the path, so make sure we never use it.
2445 set dummy $ac_cv_prog_CC
2446 shift
2447 if test $# != 0; then
2448 # We chose a different compiler from the bogus one.
2449 # However, it has the same basename, so the bogon will be chosen
2450 # first if we set CC to just the basename; use the full file name.
2451 shift
2452 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2457 CC=$ac_cv_prog_CC
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2461 else
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2468 if test -z "$CC"; then
2469 if test -n "$ac_tool_prefix"; then
2470 for ac_prog in cl.exe
2472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2493 done
2494 done
2495 IFS=$as_save_IFS
2499 CC=$ac_cv_prog_CC
2500 if test -n "$CC"; then
2501 { echo "$as_me:$LINENO: result: $CC" >&5
2502 echo "${ECHO_T}$CC" >&6; }
2503 else
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2509 test -n "$CC" && break
2510 done
2512 if test -z "$CC"; then
2513 ac_ct_CC=$CC
2514 for ac_prog in cl.exe
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 if test -n "$ac_ct_CC"; then
2524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_ac_ct_CC="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2537 done
2538 done
2539 IFS=$as_save_IFS
2543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2544 if test -n "$ac_ct_CC"; then
2545 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2546 echo "${ECHO_T}$ac_ct_CC" >&6; }
2547 else
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$ac_ct_CC" && break
2554 done
2556 if test "x$ac_ct_CC" = x; then
2557 CC=""
2558 else
2559 case $cross_compiling:$ac_tool_warned in
2560 yes:)
2561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2562 whose name does not start with the host triplet. If you think this
2563 configuration is useful to you, please write to autoconf@gnu.org." >&5
2564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2565 whose name does not start with the host triplet. If you think this
2566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2567 ac_tool_warned=yes ;;
2568 esac
2569 CC=$ac_ct_CC
2576 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2577 See \`config.log' for more details." >&5
2578 echo "$as_me: error: no acceptable C compiler found in \$PATH
2579 See \`config.log' for more details." >&2;}
2580 { (exit 1); exit 1; }; }
2582 # Provide some information about the compiler.
2583 echo "$as_me:$LINENO: checking for C compiler version" >&5
2584 ac_compiler=`set X $ac_compile; echo $2`
2585 { (ac_try="$ac_compiler --version >&5"
2586 case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_compiler --version >&5") 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595 { (ac_try="$ac_compiler -v >&5"
2596 case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2599 esac
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_compiler -v >&5") 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2605 { (ac_try="$ac_compiler -V >&5"
2606 case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_compiler -V >&5") 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }
2616 cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2624 main ()
2628 return 0;
2630 _ACEOF
2631 ac_clean_files_save=$ac_clean_files
2632 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2633 # Try to create an executable without -o first, disregard a.out.
2634 # It will help us diagnose broken compilers, and finding out an intuition
2635 # of exeext.
2636 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2637 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2638 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2640 # List of possible output files, starting from the most likely.
2641 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2642 # only as a last resort. b.out is created by i960 compilers.
2643 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2645 # The IRIX 6 linker writes into existing files which may not be
2646 # executable, retaining their permissions. Remove them first so a
2647 # subsequent execution test works.
2648 ac_rmfiles=
2649 for ac_file in $ac_files
2651 case $ac_file in
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2653 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2654 esac
2655 done
2656 rm -f $ac_rmfiles
2658 if { (ac_try="$ac_link_default"
2659 case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_link_default") 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; then
2668 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2669 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2670 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2671 # so that the user can short-circuit this test for compilers unknown to
2672 # Autoconf.
2673 for ac_file in $ac_files ''
2675 test -f "$ac_file" || continue
2676 case $ac_file in
2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2679 [ab].out )
2680 # We found the default executable, but exeext='' is most
2681 # certainly right.
2682 break;;
2683 *.* )
2684 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2685 then :; else
2686 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2688 # We set ac_cv_exeext here because the later test for it is not
2689 # safe: cross compilers may not add the suffix if given an `-o'
2690 # argument, so we may need to know it at that point already.
2691 # Even if this section looks crufty: it has the advantage of
2692 # actually working.
2693 break;;
2695 break;;
2696 esac
2697 done
2698 test "$ac_cv_exeext" = no && ac_cv_exeext=
2700 else
2701 ac_file=''
2704 { echo "$as_me:$LINENO: result: $ac_file" >&5
2705 echo "${ECHO_T}$ac_file" >&6; }
2706 if test -z "$ac_file"; then
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2710 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: C compiler cannot create executables
2713 See \`config.log' for more details." >&2;}
2714 { (exit 77); exit 77; }; }
2717 ac_exeext=$ac_cv_exeext
2719 # Check that the compiler produces executables we can run. If not, either
2720 # the compiler is broken, or we cross compile.
2721 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2722 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2723 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2724 # If not cross compiling, check that we can run a simple program.
2725 if test "$cross_compiling" != yes; then
2726 if { ac_try='./$ac_file'
2727 { (case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_try") 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 cross_compiling=no
2737 else
2738 if test "$cross_compiling" = maybe; then
2739 cross_compiling=yes
2740 else
2741 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2742 If you meant to cross compile, use \`--host'.
2743 See \`config.log' for more details." >&5
2744 echo "$as_me: error: cannot run C compiled programs.
2745 If you meant to cross compile, use \`--host'.
2746 See \`config.log' for more details." >&2;}
2747 { (exit 1); exit 1; }; }
2751 { echo "$as_me:$LINENO: result: yes" >&5
2752 echo "${ECHO_T}yes" >&6; }
2754 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2755 ac_clean_files=$ac_clean_files_save
2756 # Check that the compiler produces executables we can run. If not, either
2757 # the compiler is broken, or we cross compile.
2758 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2759 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2760 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2761 echo "${ECHO_T}$cross_compiling" >&6; }
2763 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2764 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2765 if { (ac_try="$ac_link"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_link") 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; then
2775 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2776 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2777 # work properly (i.e., refer to `conftest.exe'), while it won't with
2778 # `rm'.
2779 for ac_file in conftest.exe conftest conftest.*; do
2780 test -f "$ac_file" || continue
2781 case $ac_file in
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2783 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2784 break;;
2785 * ) break;;
2786 esac
2787 done
2788 else
2789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2792 See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2796 rm -f conftest$ac_cv_exeext
2797 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2798 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2800 rm -f conftest.$ac_ext
2801 EXEEXT=$ac_cv_exeext
2802 ac_exeext=$EXEEXT
2803 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2804 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2805 if test "${ac_cv_objext+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2816 main ()
2820 return 0;
2822 _ACEOF
2823 rm -f conftest.o conftest.obj
2824 if { (ac_try="$ac_compile"
2825 case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_compile") 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; then
2834 for ac_file in conftest.o conftest.obj conftest.*; do
2835 test -f "$ac_file" || continue;
2836 case $ac_file in
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2838 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2839 break;;
2840 esac
2841 done
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2846 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2847 See \`config.log' for more details." >&5
2848 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2849 See \`config.log' for more details." >&2;}
2850 { (exit 1); exit 1; }; }
2853 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2855 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2856 echo "${ECHO_T}$ac_cv_objext" >&6; }
2857 OBJEXT=$ac_cv_objext
2858 ac_objext=$OBJEXT
2859 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2860 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2861 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h. */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2872 main ()
2874 #ifndef __GNUC__
2875 choke me
2876 #endif
2879 return 0;
2881 _ACEOF
2882 rm -f conftest.$ac_objext
2883 if { (ac_try="$ac_compile"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>conftest.er1
2890 ac_status=$?
2891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } && {
2896 test -z "$ac_c_werror_flag" ||
2897 test ! -s conftest.err
2898 } && test -s conftest.$ac_objext; then
2899 ac_compiler_gnu=yes
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2904 ac_compiler_gnu=no
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2911 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2913 GCC=`test $ac_compiler_gnu = yes && echo yes`
2914 ac_test_CFLAGS=${CFLAGS+set}
2915 ac_save_CFLAGS=$CFLAGS
2916 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2917 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2918 if test "${ac_cv_prog_cc_g+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 ac_save_c_werror_flag=$ac_c_werror_flag
2922 ac_c_werror_flag=yes
2923 ac_cv_prog_cc_g=no
2924 CFLAGS="-g"
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2933 main ()
2937 return 0;
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } && {
2954 test -z "$ac_c_werror_flag" ||
2955 test ! -s conftest.err
2956 } && test -s conftest.$ac_objext; then
2957 ac_cv_prog_cc_g=yes
2958 else
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2962 CFLAGS=""
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2971 main ()
2975 return 0;
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (ac_try="$ac_compile"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>conftest.er1
2986 ac_status=$?
2987 grep -v '^ *+' conftest.er1 >conftest.err
2988 rm -f conftest.er1
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } && {
2992 test -z "$ac_c_werror_flag" ||
2993 test ! -s conftest.err
2994 } && test -s conftest.$ac_objext; then
2996 else
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 ac_c_werror_flag=$ac_save_c_werror_flag
3001 CFLAGS="-g"
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3010 main ()
3014 return 0;
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_c_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.$ac_objext; then
3034 ac_cv_prog_cc_g=yes
3035 else
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_c_werror_flag=$ac_save_c_werror_flag
3051 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3052 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3053 if test "$ac_test_CFLAGS" = set; then
3054 CFLAGS=$ac_save_CFLAGS
3055 elif test $ac_cv_prog_cc_g = yes; then
3056 if test "$GCC" = yes; then
3057 CFLAGS="-g -O2"
3058 else
3059 CFLAGS="-g"
3061 else
3062 if test "$GCC" = yes; then
3063 CFLAGS="-O2"
3064 else
3065 CFLAGS=
3068 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3069 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_cc_c89+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 ac_cv_prog_cc_c89=no
3074 ac_save_CC=$CC
3075 cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h. */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #include <stdarg.h>
3082 #include <stdio.h>
3083 #include <sys/types.h>
3084 #include <sys/stat.h>
3085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3086 struct buf { int x; };
3087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3088 static char *e (p, i)
3089 char **p;
3090 int i;
3092 return p[i];
3094 static char *f (char * (*g) (char **, int), char **p, ...)
3096 char *s;
3097 va_list v;
3098 va_start (v,p);
3099 s = g (p, va_arg (v,int));
3100 va_end (v);
3101 return s;
3104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3105 function prototypes and stuff, but not '\xHH' hex character constants.
3106 These don't provoke an error unfortunately, instead are silently treated
3107 as 'x'. The following induces an error, until -std is added to get
3108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3109 array size at least. It's necessary to write '\x00'==0 to get something
3110 that's true only with -std. */
3111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3114 inside strings and character constants. */
3115 #define FOO(x) 'x'
3116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3118 int test (int i, double x);
3119 struct s1 {int (*f) (int a);};
3120 struct s2 {int (*f) (double a);};
3121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3122 int argc;
3123 char **argv;
3125 main ()
3127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3129 return 0;
3131 _ACEOF
3132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3135 CC="$ac_save_CC $ac_arg"
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } && {
3150 test -z "$ac_c_werror_flag" ||
3151 test ! -s conftest.err
3152 } && test -s conftest.$ac_objext; then
3153 ac_cv_prog_cc_c89=$ac_arg
3154 else
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3161 rm -f core conftest.err conftest.$ac_objext
3162 test "x$ac_cv_prog_cc_c89" != "xno" && break
3163 done
3164 rm -f conftest.$ac_ext
3165 CC=$ac_save_CC
3168 # AC_CACHE_VAL
3169 case "x$ac_cv_prog_cc_c89" in
3171 { echo "$as_me:$LINENO: result: none needed" >&5
3172 echo "${ECHO_T}none needed" >&6; } ;;
3173 xno)
3174 { echo "$as_me:$LINENO: result: unsupported" >&5
3175 echo "${ECHO_T}unsupported" >&6; } ;;
3177 CC="$CC $ac_cv_prog_cc_c89"
3178 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3179 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3180 esac
3183 ac_ext=c
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3193 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3195 # Check whether --with-cxx_main was given.
3196 if test "${with_cxx_main+set}" = set; then
3197 withval=$with_cxx_main;
3199 case $withval in
3200 no) with_cxx_main=no
3201 MAINCC='$(CC)';;
3202 yes) with_cxx_main=yes
3203 MAINCC='$(CXX)';;
3204 *) with_cxx_main=yes
3205 MAINCC=$withval
3206 if test -z "$CXX"
3207 then
3208 CXX=$withval
3209 fi;;
3210 esac
3211 else
3213 with_cxx_main=no
3214 MAINCC='$(CC)'
3218 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3219 echo "${ECHO_T}$with_cxx_main" >&6; }
3221 preset_cxx="$CXX"
3222 if test -z "$CXX"
3223 then
3224 case "$CC" in
3225 gcc) # Extract the first word of "g++", so it can be a program name with args.
3226 set dummy g++; ac_word=$2
3227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3229 if test "${ac_cv_path_CXX+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 case $CXX in
3233 [\\/]* | ?:[\\/]*)
3234 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in notfound
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3248 done
3249 done
3250 IFS=$as_save_IFS
3252 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3254 esac
3256 CXX=$ac_cv_path_CXX
3257 if test -n "$CXX"; then
3258 { echo "$as_me:$LINENO: result: $CXX" >&5
3259 echo "${ECHO_T}$CXX" >&6; }
3260 else
3261 { echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6; }
3266 cc) # Extract the first word of "c++", so it can be a program name with args.
3267 set dummy c++; ac_word=$2
3268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3270 if test "${ac_cv_path_CXX+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273 case $CXX in
3274 [\\/]* | ?:[\\/]*)
3275 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in notfound
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3289 done
3290 done
3291 IFS=$as_save_IFS
3293 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3295 esac
3297 CXX=$ac_cv_path_CXX
3298 if test -n "$CXX"; then
3299 { echo "$as_me:$LINENO: result: $CXX" >&5
3300 echo "${ECHO_T}$CXX" >&6; }
3301 else
3302 { echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6; }
3307 esac
3308 if test "$CXX" = "notfound"
3309 then
3310 CXX=""
3313 if test -z "$CXX"
3314 then
3315 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3321 if test "${ac_cv_prog_CXX+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 if test -n "$CXX"; then
3325 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 ac_cv_prog_CXX="$ac_prog"
3335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3340 IFS=$as_save_IFS
3344 CXX=$ac_cv_prog_CXX
3345 if test -n "$CXX"; then
3346 { echo "$as_me:$LINENO: result: $CXX" >&5
3347 echo "${ECHO_T}$CXX" >&6; }
3348 else
3349 { echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6; }
3354 test -n "$CXX" && break
3355 done
3356 test -n "$CXX" || CXX="notfound"
3358 if test "$CXX" = "notfound"
3359 then
3360 CXX=""
3363 if test "$preset_cxx" != "$CXX"
3364 then
3365 { echo "$as_me:$LINENO: WARNING:
3367 By default, distutils will build C++ extension modules with \"$CXX\".
3368 If this is not intended, then set CXX on the configure command line.
3369 " >&5
3370 echo "$as_me: WARNING:
3372 By default, distutils will build C++ extension modules with \"$CXX\".
3373 If this is not intended, then set CXX on the configure command line.
3374 " >&2;}
3378 # checks for UNIX variants that set C preprocessor variables
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3386 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3387 # On Suns, sometimes $CPP names a directory.
3388 if test -n "$CPP" && test -d "$CPP"; then
3389 CPP=
3391 if test -z "$CPP"; then
3392 if test "${ac_cv_prog_CPP+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 # Double quotes because CPP needs to be expanded
3396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3398 ac_preproc_ok=false
3399 for ac_c_preproc_warn_flag in '' yes
3401 # Use a header file that comes with gcc, so configuring glibc
3402 # with a fresh cross-compiler works.
3403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3404 # <limits.h> exists even on freestanding compilers.
3405 # On the NeXT, cc -E runs the code through the compiler's parser,
3406 # not just through cpp. "Syntax error" is here to catch this case.
3407 cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h. */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #ifdef __STDC__
3414 # include <limits.h>
3415 #else
3416 # include <assert.h>
3417 #endif
3418 Syntax error
3419 _ACEOF
3420 if { (ac_try="$ac_cpp conftest.$ac_ext"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null && {
3433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3435 }; then
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 # Broken: fails on valid input.
3442 continue
3445 rm -f conftest.err conftest.$ac_ext
3447 # OK, works on sane cases. Now check whether nonexistent headers
3448 # can be detected and how.
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #include <ac_nonexistent.h>
3456 _ACEOF
3457 if { (ac_try="$ac_cpp conftest.$ac_ext"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } >/dev/null && {
3470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3472 }; then
3473 # Broken: success on invalid input.
3474 continue
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 # Passes both tests.
3480 ac_preproc_ok=:
3481 break
3484 rm -f conftest.err conftest.$ac_ext
3486 done
3487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3488 rm -f conftest.err conftest.$ac_ext
3489 if $ac_preproc_ok; then
3490 break
3493 done
3494 ac_cv_prog_CPP=$CPP
3497 CPP=$ac_cv_prog_CPP
3498 else
3499 ac_cv_prog_CPP=$CPP
3501 { echo "$as_me:$LINENO: result: $CPP" >&5
3502 echo "${ECHO_T}$CPP" >&6; }
3503 ac_preproc_ok=false
3504 for ac_c_preproc_warn_flag in '' yes
3506 # Use a header file that comes with gcc, so configuring glibc
3507 # with a fresh cross-compiler works.
3508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3509 # <limits.h> exists even on freestanding compilers.
3510 # On the NeXT, cc -E runs the code through the compiler's parser,
3511 # not just through cpp. "Syntax error" is here to catch this case.
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #ifdef __STDC__
3519 # include <limits.h>
3520 #else
3521 # include <assert.h>
3522 #endif
3523 Syntax error
3524 _ACEOF
3525 if { (ac_try="$ac_cpp conftest.$ac_ext"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } >/dev/null && {
3538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 }; then
3542 else
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3546 # Broken: fails on valid input.
3547 continue
3550 rm -f conftest.err conftest.$ac_ext
3552 # OK, works on sane cases. Now check whether nonexistent headers
3553 # can be detected and how.
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include <ac_nonexistent.h>
3561 _ACEOF
3562 if { (ac_try="$ac_cpp conftest.$ac_ext"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3569 ac_status=$?
3570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } >/dev/null && {
3575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3576 test ! -s conftest.err
3577 }; then
3578 # Broken: success on invalid input.
3579 continue
3580 else
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 # Passes both tests.
3585 ac_preproc_ok=:
3586 break
3589 rm -f conftest.err conftest.$ac_ext
3591 done
3592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593 rm -f conftest.err conftest.$ac_ext
3594 if $ac_preproc_ok; then
3596 else
3597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3598 See \`config.log' for more details." >&5
3599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3600 See \`config.log' for more details." >&2;}
3601 { (exit 1); exit 1; }; }
3604 ac_ext=c
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3612 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3613 if test "${ac_cv_path_GREP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 # Extract the first word of "grep ggrep" to use in msg output
3617 if test -z "$GREP"; then
3618 set dummy grep ggrep; ac_prog_name=$2
3619 if test "${ac_cv_path_GREP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622 ac_path_GREP_found=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in grep ggrep; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3633 # Check for GNU ac_path_GREP and select it if it is found.
3634 # Check for GNU $ac_path_GREP
3635 case `"$ac_path_GREP" --version 2>&1` in
3636 *GNU*)
3637 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3639 ac_count=0
3640 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3641 while :
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 echo 'GREP' >> "conftest.nl"
3647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649 ac_count=`expr $ac_count + 1`
3650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_GREP="$ac_path_GREP"
3653 ac_path_GREP_max=$ac_count
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3657 done
3658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659 esac
3662 $ac_path_GREP_found && break 3
3663 done
3664 done
3666 done
3667 IFS=$as_save_IFS
3672 GREP="$ac_cv_path_GREP"
3673 if test -z "$GREP"; then
3674 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3675 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3676 { (exit 1); exit 1; }; }
3679 else
3680 ac_cv_path_GREP=$GREP
3685 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3686 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3687 GREP="$ac_cv_path_GREP"
3690 { echo "$as_me:$LINENO: checking for egrep" >&5
3691 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_EGREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3696 then ac_cv_path_EGREP="$GREP -E"
3697 else
3698 # Extract the first word of "egrep" to use in msg output
3699 if test -z "$EGREP"; then
3700 set dummy egrep; ac_prog_name=$2
3701 if test "${ac_cv_path_EGREP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 ac_path_EGREP_found=false
3705 # Loop through the user's path and test for each of PROGNAME-LIST
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_prog in egrep; do
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3714 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3715 # Check for GNU ac_path_EGREP and select it if it is found.
3716 # Check for GNU $ac_path_EGREP
3717 case `"$ac_path_EGREP" --version 2>&1` in
3718 *GNU*)
3719 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3721 ac_count=0
3722 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3723 while :
3725 cat "conftest.in" "conftest.in" >"conftest.tmp"
3726 mv "conftest.tmp" "conftest.in"
3727 cp "conftest.in" "conftest.nl"
3728 echo 'EGREP' >> "conftest.nl"
3729 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3731 ac_count=`expr $ac_count + 1`
3732 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3733 # Best one so far, save it but keep looking for a better one
3734 ac_cv_path_EGREP="$ac_path_EGREP"
3735 ac_path_EGREP_max=$ac_count
3737 # 10*(2^10) chars as input seems more than enough
3738 test $ac_count -gt 10 && break
3739 done
3740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3741 esac
3744 $ac_path_EGREP_found && break 3
3745 done
3746 done
3748 done
3749 IFS=$as_save_IFS
3754 EGREP="$ac_cv_path_EGREP"
3755 if test -z "$EGREP"; then
3756 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3757 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3758 { (exit 1); exit 1; }; }
3761 else
3762 ac_cv_path_EGREP=$EGREP
3768 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3769 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3770 EGREP="$ac_cv_path_EGREP"
3774 { echo "$as_me:$LINENO: checking for AIX" >&5
3775 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 #ifdef _AIX
3784 #endif
3786 _ACEOF
3787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788 $EGREP "yes" >/dev/null 2>&1; then
3789 { echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6; }
3791 cat >>confdefs.h <<\_ACEOF
3792 #define _ALL_SOURCE 1
3793 _ACEOF
3795 else
3796 { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3799 rm -f conftest*
3803 # Check for unsupported systems
3804 case $ac_sys_system/$ac_sys_release in
3805 atheos*|Linux*/1*)
3806 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3807 echo See README for details.
3808 exit 1;;
3809 esac
3812 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3813 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3815 # Check whether --with-suffix was given.
3816 if test "${with_suffix+set}" = set; then
3817 withval=$with_suffix;
3818 case $withval in
3819 no) EXEEXT=;;
3820 yes) EXEEXT=.exe;;
3821 *) EXEEXT=$withval;;
3822 esac
3825 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3826 echo "${ECHO_T}$EXEEXT" >&6; }
3828 # Test whether we're running on a non-case-sensitive system, in which
3829 # case we give a warning if no ext is given
3831 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3832 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3833 if test ! -d CaseSensitiveTestDir; then
3834 mkdir CaseSensitiveTestDir
3837 if test -d casesensitivetestdir
3838 then
3839 { echo "$as_me:$LINENO: result: yes" >&5
3840 echo "${ECHO_T}yes" >&6; }
3841 BUILDEXEEXT=.exe
3842 else
3843 { echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6; }
3845 BUILDEXEEXT=$EXEEXT
3847 rmdir CaseSensitiveTestDir
3849 case $MACHDEP in
3850 bsdos*)
3851 case $CC in
3852 gcc) CC="$CC -D_HAVE_BSDI";;
3853 esac;;
3854 esac
3856 case $ac_sys_system in
3857 hp*|HP*)
3858 case $CC in
3859 cc|*/cc) CC="$CC -Ae";;
3860 esac;;
3861 Monterey*)
3862 case $CC in
3863 cc) CC="$CC -Wl,-Bexport";;
3864 esac;;
3865 SunOS*)
3866 # Some functions have a prototype only with that define, e.g. confstr
3868 cat >>confdefs.h <<\_ACEOF
3869 #define __EXTENSIONS__ 1
3870 _ACEOF
3873 esac
3877 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3878 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3879 if test -z "$LIBRARY"
3880 then
3881 LIBRARY='libpython$(VERSION).a'
3883 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3884 echo "${ECHO_T}$LIBRARY" >&6; }
3886 # LDLIBRARY is the name of the library to link against (as opposed to the
3887 # name of the library into which to insert object files). BLDLIBRARY is also
3888 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3889 # is blank as the main program is not linked directly against LDLIBRARY.
3890 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3891 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3892 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3893 # DLLLIBRARY is the shared (i.e., DLL) library.
3895 # RUNSHARED is used to run shared python without installed libraries
3897 # INSTSONAME is the name of the shared library that will be use to install
3898 # on the system - some systems like version suffix, others don't
3905 LDLIBRARY="$LIBRARY"
3906 BLDLIBRARY='$(LDLIBRARY)'
3907 INSTSONAME='$(LDLIBRARY)'
3908 DLLLIBRARY=''
3909 LDLIBRARYDIR=''
3910 RUNSHARED=''
3912 # LINKCC is the command that links the python executable -- default is $(CC).
3913 # If CXX is set, and if it is needed to link a main function that was
3914 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3915 # python might then depend on the C++ runtime
3916 # This is altered for AIX in order to build the export list before
3917 # linking.
3919 { echo "$as_me:$LINENO: checking LINKCC" >&5
3920 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3921 if test -z "$LINKCC"
3922 then
3923 LINKCC='$(PURIFY) $(MAINCC)'
3924 case $ac_sys_system in
3925 AIX*)
3926 exp_extra="\"\""
3927 if test $ac_sys_release -ge 5 -o \
3928 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3929 exp_extra="."
3931 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3932 Monterey64*)
3933 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3934 esac
3936 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3937 echo "${ECHO_T}$LINKCC" >&6; }
3939 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3940 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3941 # Check whether --enable-shared was given.
3942 if test "${enable_shared+set}" = set; then
3943 enableval=$enable_shared;
3947 if test -z "$enable_shared"
3948 then
3949 case $ac_sys_system in
3950 CYGWIN* | atheos*)
3951 enable_shared="yes";;
3953 enable_shared="no";;
3954 esac
3956 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3957 echo "${ECHO_T}$enable_shared" >&6; }
3959 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3960 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3961 # Check whether --enable-profiling was given.
3962 if test "${enable_profiling+set}" = set; then
3963 enableval=$enable_profiling; ac_save_cc="$CC"
3964 CC="$CC -pg"
3965 if test "$cross_compiling" = yes; then
3966 ac_enable_profiling="no"
3967 else
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h. */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974 int main() { return 0; }
3975 _ACEOF
3976 rm -f conftest$ac_exeext
3977 if { (ac_try="$ac_link"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_link") 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3987 { (case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_try") 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_enable_profiling="yes"
3997 else
3998 echo "$as_me: program exited with status $ac_status" >&5
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 ( exit $ac_status )
4003 ac_enable_profiling="no"
4005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4009 CC="$ac_save_cc"
4012 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4013 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4015 case "$ac_enable_profiling" in
4016 "yes")
4017 BASECFLAGS="-pg $BASECFLAGS"
4018 LDFLAGS="-pg $LDFLAGS"
4020 esac
4022 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4023 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4025 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4026 # library that we build, but we do not want to link against it (we
4027 # will find it with a -framework option). For this reason there is an
4028 # extra variable BLDLIBRARY against which Python and the extension
4029 # modules are linked, BLDLIBRARY. This is normally the same as
4030 # LDLIBRARY, but empty for MacOSX framework builds.
4031 if test "$enable_framework"
4032 then
4033 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4034 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4035 BLDLIBRARY=''
4036 else
4037 BLDLIBRARY='$(LDLIBRARY)'
4040 # Other platforms follow
4041 if test $enable_shared = "yes"; then
4043 cat >>confdefs.h <<\_ACEOF
4044 #define Py_ENABLE_SHARED 1
4045 _ACEOF
4047 case $ac_sys_system in
4048 BeOS*)
4049 LDLIBRARY='libpython$(VERSION).so'
4051 CYGWIN*)
4052 LDLIBRARY='libpython$(VERSION).dll.a'
4053 DLLLIBRARY='libpython$(VERSION).dll'
4055 SunOS*)
4056 LDLIBRARY='libpython$(VERSION).so'
4057 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4058 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4059 INSTSONAME="$LDLIBRARY".$SOVERSION
4061 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4062 LDLIBRARY='libpython$(VERSION).so'
4063 BLDLIBRARY='-L. -lpython$(VERSION)'
4064 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4065 case $ac_sys_system in
4066 FreeBSD*)
4067 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4069 esac
4070 INSTSONAME="$LDLIBRARY".$SOVERSION
4072 hp*|HP*)
4073 case `uname -m` in
4074 ia64)
4075 LDLIBRARY='libpython$(VERSION).so'
4078 LDLIBRARY='libpython$(VERSION).sl'
4080 esac
4081 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4082 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4084 OSF*)
4085 LDLIBRARY='libpython$(VERSION).so'
4086 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4087 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4089 atheos*)
4090 LDLIBRARY='libpython$(VERSION).so'
4091 BLDLIBRARY='-L. -lpython$(VERSION)'
4092 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4094 esac
4095 else # shared is disabled
4096 case $ac_sys_system in
4097 CYGWIN*)
4098 BLDLIBRARY='$(LIBRARY)'
4099 LDLIBRARY='libpython$(VERSION).dll.a'
4101 esac
4104 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4105 echo "${ECHO_T}$LDLIBRARY" >&6; }
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4112 if test "${ac_cv_prog_RANLIB+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 if test -n "$RANLIB"; then
4116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4129 done
4130 done
4131 IFS=$as_save_IFS
4135 RANLIB=$ac_cv_prog_RANLIB
4136 if test -n "$RANLIB"; then
4137 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4138 echo "${ECHO_T}$RANLIB" >&6; }
4139 else
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4146 if test -z "$ac_cv_prog_RANLIB"; then
4147 ac_ct_RANLIB=$RANLIB
4148 # Extract the first word of "ranlib", so it can be a program name with args.
4149 set dummy ranlib; ac_word=$2
4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155 if test -n "$ac_ct_RANLIB"; then
4156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_ac_ct_RANLIB="ranlib"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4169 done
4170 done
4171 IFS=$as_save_IFS
4175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4176 if test -n "$ac_ct_RANLIB"; then
4177 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4178 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4179 else
4180 { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4184 if test "x$ac_ct_RANLIB" = x; then
4185 RANLIB=":"
4186 else
4187 case $cross_compiling:$ac_tool_warned in
4188 yes:)
4189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4190 whose name does not start with the host triplet. If you think this
4191 configuration is useful to you, please write to autoconf@gnu.org." >&5
4192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4193 whose name does not start with the host triplet. If you think this
4194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4195 ac_tool_warned=yes ;;
4196 esac
4197 RANLIB=$ac_ct_RANLIB
4199 else
4200 RANLIB="$ac_cv_prog_RANLIB"
4204 for ac_prog in ar aal
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy $ac_prog; ac_word=$2
4208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4210 if test "${ac_cv_prog_AR+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213 if test -n "$AR"; then
4214 ac_cv_prog_AR="$AR" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_AR="$ac_prog"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4233 AR=$ac_cv_prog_AR
4234 if test -n "$AR"; then
4235 { echo "$as_me:$LINENO: result: $AR" >&5
4236 echo "${ECHO_T}$AR" >&6; }
4237 else
4238 { echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6; }
4243 test -n "$AR" && break
4244 done
4245 test -n "$AR" || AR="ar"
4249 # Extract the first word of "svnversion", so it can be a program name with args.
4250 set dummy svnversion; ac_word=$2
4251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4253 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 if test -n "$SVNVERSION"; then
4257 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4258 else
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266 ac_cv_prog_SVNVERSION="found"
4267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4270 done
4271 done
4272 IFS=$as_save_IFS
4274 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4277 SVNVERSION=$ac_cv_prog_SVNVERSION
4278 if test -n "$SVNVERSION"; then
4279 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4280 echo "${ECHO_T}$SVNVERSION" >&6; }
4281 else
4282 { echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6; }
4287 if test $SVNVERSION = found
4288 then
4289 SVNVERSION="svnversion \$(srcdir)"
4290 else
4291 SVNVERSION="echo exported"
4294 case $MACHDEP in
4295 bsdos*|hp*|HP*)
4296 # install -d does not work on BSDI or HP-UX
4297 if test -z "$INSTALL"
4298 then
4299 INSTALL="${srcdir}/install-sh -c"
4301 esac
4302 ac_aux_dir=
4303 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4304 if test -f "$ac_dir/install-sh"; then
4305 ac_aux_dir=$ac_dir
4306 ac_install_sh="$ac_aux_dir/install-sh -c"
4307 break
4308 elif test -f "$ac_dir/install.sh"; then
4309 ac_aux_dir=$ac_dir
4310 ac_install_sh="$ac_aux_dir/install.sh -c"
4311 break
4312 elif test -f "$ac_dir/shtool"; then
4313 ac_aux_dir=$ac_dir
4314 ac_install_sh="$ac_aux_dir/shtool install -c"
4315 break
4317 done
4318 if test -z "$ac_aux_dir"; then
4319 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4320 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4321 { (exit 1); exit 1; }; }
4324 # These three variables are undocumented and unsupported,
4325 # and are intended to be withdrawn in a future Autoconf release.
4326 # They can cause serious problems if a builder's source tree is in a directory
4327 # whose full name contains unusual characters.
4328 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4329 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4330 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4333 # Find a good install program. We prefer a C program (faster),
4334 # so one script is as good as another. But avoid the broken or
4335 # incompatible versions:
4336 # SysV /etc/install, /usr/sbin/install
4337 # SunOS /usr/etc/install
4338 # IRIX /sbin/install
4339 # AIX /bin/install
4340 # AmigaOS /C/install, which installs bootblocks on floppy discs
4341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4344 # OS/2's system install, which has a completely different semantic
4345 # ./install, which can be erroneously created by make from ./install.sh.
4346 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4347 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4348 if test -z "$INSTALL"; then
4349 if test "${ac_cv_path_install+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 # Account for people who put trailing slashes in PATH elements.
4358 case $as_dir/ in
4359 ./ | .// | /cC/* | \
4360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4361 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4362 /usr/ucb/* ) ;;
4364 # OSF1 and SCO ODT 3.0 have their own names for install.
4365 # Don't use installbsd from OSF since it installs stuff as root
4366 # by default.
4367 for ac_prog in ginstall scoinst install; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4370 if test $ac_prog = install &&
4371 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4372 # AIX install. It has an incompatible calling convention.
4374 elif test $ac_prog = install &&
4375 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4376 # program-specific install script used by HP pwplus--don't use.
4378 else
4379 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4380 break 3
4383 done
4384 done
4386 esac
4387 done
4388 IFS=$as_save_IFS
4392 if test "${ac_cv_path_install+set}" = set; then
4393 INSTALL=$ac_cv_path_install
4394 else
4395 # As a last resort, use the slow shell script. Don't cache a
4396 # value for INSTALL within a source directory, because that will
4397 # break other packages using the cache if that directory is
4398 # removed, or if the value is a relative name.
4399 INSTALL=$ac_install_sh
4402 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4403 echo "${ECHO_T}$INSTALL" >&6; }
4405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4406 # It thinks the first close brace ends the variable substitution.
4407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4414 # Not every filesystem supports hard links
4416 if test -z "$LN" ; then
4417 case $ac_sys_system in
4418 BeOS*) LN="ln -s";;
4419 CYGWIN*) LN="ln -s";;
4420 atheos*) LN="ln -s";;
4421 *) LN=ln;;
4422 esac
4425 # Check for --with-pydebug
4426 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4427 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4429 # Check whether --with-pydebug was given.
4430 if test "${with_pydebug+set}" = set; then
4431 withval=$with_pydebug;
4432 if test "$withval" != no
4433 then
4435 cat >>confdefs.h <<\_ACEOF
4436 #define Py_DEBUG 1
4437 _ACEOF
4439 { echo "$as_me:$LINENO: result: yes" >&5
4440 echo "${ECHO_T}yes" >&6; };
4441 Py_DEBUG='true'
4442 else { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4445 else
4446 { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4451 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4452 # merged with this chunk of code?
4454 # Optimizer/debugger flags
4455 # ------------------------
4456 # (The following bit of code is complicated enough - please keep things
4457 # indented properly. Just pretend you're editing Python code. ;-)
4459 # There are two parallel sets of case statements below, one that checks to
4460 # see if OPT was set and one that does BASECFLAGS setting based upon
4461 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4462 # user set OPT.
4464 # tweak OPT based on compiler and platform, only if the user didn't set
4465 # it on the command line
4467 if test -z "$OPT"
4468 then
4469 case $GCC in
4470 yes)
4471 if test "$CC" != 'g++' ; then
4472 STRICT_PROTO="-Wstrict-prototypes"
4474 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4475 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4476 WRAP="-fwrapv"
4478 case $ac_cv_prog_cc_g in
4479 yes)
4480 if test "$Py_DEBUG" = 'true' ; then
4481 # Optimization messes up debuggers, so turn it off for
4482 # debug builds.
4483 OPT="-g -Wall $STRICT_PROTO"
4484 else
4485 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4489 OPT="-O3 -Wall $STRICT_PROTO"
4491 esac
4492 case $ac_sys_system in
4493 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4495 esac
4499 OPT="-O"
4501 esac
4503 # The current (beta) Monterey compiler dies with optimizations
4504 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4505 case $ac_sys_system in
4506 Monterey*)
4507 OPT=""
4509 esac
4514 # tweak BASECFLAGS based on compiler and platform
4515 case $GCC in
4516 yes)
4517 # Python violates C99 rules, by casting between incompatible
4518 # pointer types. GCC may generate bad code as a result of that,
4519 # so use -fno-strict-aliasing if supported.
4520 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4521 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4522 ac_save_cc="$CC"
4523 CC="$CC -fno-strict-aliasing"
4524 if test "$cross_compiling" = yes; then
4525 ac_cv_no_strict_aliasing_ok=no
4526 else
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 int main() { return 0; }
4534 _ACEOF
4535 rm -f conftest$ac_exeext
4536 if { (ac_try="$ac_link"
4537 case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_link") 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546 { (case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_try") 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 ac_cv_no_strict_aliasing_ok=yes
4556 else
4557 echo "$as_me: program exited with status $ac_status" >&5
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4561 ( exit $ac_status )
4562 ac_cv_no_strict_aliasing_ok=no
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4568 CC="$ac_save_cc"
4569 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4570 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4571 if test $ac_cv_no_strict_aliasing_ok = yes
4572 then
4573 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4576 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4577 # support. Without this, treatment of subnormals doesn't follow
4578 # the standard.
4579 case $ac_sys_machine in
4580 alpha*)
4581 BASECFLAGS="$BASECFLAGS -mieee"
4583 esac
4585 case $ac_sys_system in
4586 SCO_SV*)
4587 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4589 # is there any other compiler on Darwin besides gcc?
4590 Darwin*)
4591 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4592 # used to be here, but non-Apple gcc doesn't accept them.
4593 if test "${enable_universalsdk}"; then
4594 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4598 OSF*)
4599 BASECFLAGS="$BASECFLAGS -mieee"
4601 esac
4605 case $ac_sys_system in
4606 OpenUNIX*|UnixWare*)
4607 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4609 OSF*)
4610 BASECFLAGS="$BASECFLAGS -ieee -std"
4612 SCO_SV*)
4613 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4615 esac
4617 esac
4619 if test "$Py_DEBUG" = 'true'; then
4621 else
4622 OPT="-DNDEBUG $OPT"
4625 if test "$ac_arch_flags"
4626 then
4627 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4630 # disable check for icc since it seems to pass, but generates a warning
4631 if test "$CC" = icc
4632 then
4633 ac_cv_opt_olimit_ok=no
4636 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4637 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4638 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 ac_save_cc="$CC"
4642 CC="$CC -OPT:Olimit=0"
4643 if test "$cross_compiling" = yes; then
4644 ac_cv_opt_olimit_ok=no
4645 else
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h. */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 int main() { return 0; }
4653 _ACEOF
4654 rm -f conftest$ac_exeext
4655 if { (ac_try="$ac_link"
4656 case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_link") 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4665 { (case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_try") 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_cv_opt_olimit_ok=yes
4675 else
4676 echo "$as_me: program exited with status $ac_status" >&5
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ( exit $ac_status )
4681 ac_cv_opt_olimit_ok=no
4683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4687 CC="$ac_save_cc"
4690 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4691 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4692 if test $ac_cv_opt_olimit_ok = yes; then
4693 case $ac_sys_system in
4694 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4695 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4696 # environment?
4697 Darwin*)
4700 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4702 esac
4703 else
4704 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4705 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4706 if test "${ac_cv_olimit_ok+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 ac_save_cc="$CC"
4710 CC="$CC -Olimit 1500"
4711 if test "$cross_compiling" = yes; then
4712 ac_cv_olimit_ok=no
4713 else
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h. */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 int main() { return 0; }
4721 _ACEOF
4722 rm -f conftest$ac_exeext
4723 if { (ac_try="$ac_link"
4724 case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727 esac
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_link") 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4733 { (case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_try") 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_olimit_ok=yes
4743 else
4744 echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ( exit $ac_status )
4749 ac_cv_olimit_ok=no
4751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4755 CC="$ac_save_cc"
4758 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4759 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4760 if test $ac_cv_olimit_ok = yes; then
4761 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4765 # Check whether GCC supports PyArg_ParseTuple format
4766 if test "$GCC" = "yes"
4767 then
4768 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4769 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4770 save_CFLAGS=$CFLAGS
4771 CFLAGS="$CFLAGS -Werror"
4772 cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h. */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4779 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4782 main ()
4786 return 0;
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.$ac_objext; then
4807 cat >>confdefs.h <<\_ACEOF
4808 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4809 _ACEOF
4811 { echo "$as_me:$LINENO: result: yes" >&5
4812 echo "${ECHO_T}yes" >&6; }
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4817 { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 CFLAGS=$save_CFLAGS
4826 # On some compilers, pthreads are available without further options
4827 # (e.g. MacOS X). On some of these systems, the compiler will not
4828 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4829 # So we have to see first whether pthreads are available without
4830 # options before we can check whether -Kpthread improves anything.
4831 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4832 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4833 if test "${ac_cv_pthread_is_default+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 if test "$cross_compiling" = yes; then
4837 ac_cv_pthread_is_default=no
4838 else
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h. */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4846 #include <pthread.h>
4848 void* routine(void* p){return NULL;}
4850 int main(){
4851 pthread_t p;
4852 if(pthread_create(&p,NULL,routine,NULL)!=0)
4853 return 1;
4854 (void)pthread_detach(p);
4855 return 0;
4858 _ACEOF
4859 rm -f conftest$ac_exeext
4860 if { (ac_try="$ac_link"
4861 case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864 esac
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_link") 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4870 { (case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_try") 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4880 ac_cv_pthread_is_default=yes
4881 ac_cv_kthread=no
4882 ac_cv_pthread=no
4884 else
4885 echo "$as_me: program exited with status $ac_status" >&5
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 ( exit $ac_status )
4890 ac_cv_pthread_is_default=no
4892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4899 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4900 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4903 if test $ac_cv_pthread_is_default = yes
4904 then
4905 ac_cv_kpthread=no
4906 else
4907 # -Kpthread, if available, provides the right #defines
4908 # and linker options to make pthread_create available
4909 # Some compilers won't report that they do not support -Kpthread,
4910 # so we need to run a program to see whether it really made the
4911 # function available.
4912 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4913 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4914 if test "${ac_cv_kpthread+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 ac_save_cc="$CC"
4918 CC="$CC -Kpthread"
4919 if test "$cross_compiling" = yes; then
4920 ac_cv_kpthread=no
4921 else
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 #include <pthread.h>
4931 void* routine(void* p){return NULL;}
4933 int main(){
4934 pthread_t p;
4935 if(pthread_create(&p,NULL,routine,NULL)!=0)
4936 return 1;
4937 (void)pthread_detach(p);
4938 return 0;
4941 _ACEOF
4942 rm -f conftest$ac_exeext
4943 if { (ac_try="$ac_link"
4944 case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947 esac
4948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_link") 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4953 { (case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956 esac
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_try") 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_kpthread=yes
4963 else
4964 echo "$as_me: program exited with status $ac_status" >&5
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4968 ( exit $ac_status )
4969 ac_cv_kpthread=no
4971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4975 CC="$ac_save_cc"
4978 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4979 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4982 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4983 then
4984 # -Kthread, if available, provides the right #defines
4985 # and linker options to make pthread_create available
4986 # Some compilers won't report that they do not support -Kthread,
4987 # so we need to run a program to see whether it really made the
4988 # function available.
4989 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4990 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4991 if test "${ac_cv_kthread+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 ac_save_cc="$CC"
4995 CC="$CC -Kthread"
4996 if test "$cross_compiling" = yes; then
4997 ac_cv_kthread=no
4998 else
4999 cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h. */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5006 #include <pthread.h>
5008 void* routine(void* p){return NULL;}
5010 int main(){
5011 pthread_t p;
5012 if(pthread_create(&p,NULL,routine,NULL)!=0)
5013 return 1;
5014 (void)pthread_detach(p);
5015 return 0;
5018 _ACEOF
5019 rm -f conftest$ac_exeext
5020 if { (ac_try="$ac_link"
5021 case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_link") 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5030 { (case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_try") 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 ac_cv_kthread=yes
5040 else
5041 echo "$as_me: program exited with status $ac_status" >&5
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 ( exit $ac_status )
5046 ac_cv_kthread=no
5048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5052 CC="$ac_save_cc"
5055 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5056 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5059 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5060 then
5061 # -pthread, if available, provides the right #defines
5062 # and linker options to make pthread_create available
5063 # Some compilers won't report that they do not support -pthread,
5064 # so we need to run a program to see whether it really made the
5065 # function available.
5066 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5067 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5068 if test "${ac_cv_thread+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 ac_save_cc="$CC"
5072 CC="$CC -pthread"
5073 if test "$cross_compiling" = yes; then
5074 ac_cv_pthread=no
5075 else
5076 cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h. */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5083 #include <pthread.h>
5085 void* routine(void* p){return NULL;}
5087 int main(){
5088 pthread_t p;
5089 if(pthread_create(&p,NULL,routine,NULL)!=0)
5090 return 1;
5091 (void)pthread_detach(p);
5092 return 0;
5095 _ACEOF
5096 rm -f conftest$ac_exeext
5097 if { (ac_try="$ac_link"
5098 case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_link") 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5107 { (case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110 esac
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_try") 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_pthread=yes
5117 else
5118 echo "$as_me: program exited with status $ac_status" >&5
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 ( exit $ac_status )
5123 ac_cv_pthread=no
5125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5129 CC="$ac_save_cc"
5132 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5133 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5136 # If we have set a CC compiler flag for thread support then
5137 # check if it works for CXX, too.
5138 ac_cv_cxx_thread=no
5139 if test ! -z "$CXX"
5140 then
5141 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5142 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5143 ac_save_cxx="$CXX"
5145 if test "$ac_cv_kpthread" = "yes"
5146 then
5147 CXX="$CXX -Kpthread"
5148 ac_cv_cxx_thread=yes
5149 elif test "$ac_cv_kthread" = "yes"
5150 then
5151 CXX="$CXX -Kthread"
5152 ac_cv_cxx_thread=yes
5153 elif test "$ac_cv_pthread" = "yes"
5154 then
5155 CXX="$CXX -pthread"
5156 ac_cv_cxx_thread=yes
5159 if test $ac_cv_cxx_thread = yes
5160 then
5161 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5162 $CXX -c conftest.$ac_ext 2>&5
5163 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5164 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5165 then
5166 ac_cv_cxx_thread=yes
5167 else
5168 ac_cv_cxx_thread=no
5170 rm -fr conftest*
5172 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5173 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5175 CXX="$ac_save_cxx"
5178 # checks for header files
5179 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5181 if test "${ac_cv_header_stdc+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <stdlib.h>
5191 #include <stdarg.h>
5192 #include <string.h>
5193 #include <float.h>
5196 main ()
5200 return 0;
5202 _ACEOF
5203 rm -f conftest.$ac_objext
5204 if { (ac_try="$ac_compile"
5205 case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208 esac
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_compile") 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && {
5217 test -z "$ac_c_werror_flag" ||
5218 test ! -s conftest.err
5219 } && test -s conftest.$ac_objext; then
5220 ac_cv_header_stdc=yes
5221 else
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5225 ac_cv_header_stdc=no
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 if test $ac_cv_header_stdc = yes; then
5231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <string.h>
5240 _ACEOF
5241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5242 $EGREP "memchr" >/dev/null 2>&1; then
5244 else
5245 ac_cv_header_stdc=no
5247 rm -f conftest*
5251 if test $ac_cv_header_stdc = yes; then
5252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5253 cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h. */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 #include <stdlib.h>
5261 _ACEOF
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263 $EGREP "free" >/dev/null 2>&1; then
5265 else
5266 ac_cv_header_stdc=no
5268 rm -f conftest*
5272 if test $ac_cv_header_stdc = yes; then
5273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5274 if test "$cross_compiling" = yes; then
5276 else
5277 cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <ctype.h>
5284 #include <stdlib.h>
5285 #if ((' ' & 0x0FF) == 0x020)
5286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5288 #else
5289 # define ISLOWER(c) \
5290 (('a' <= (c) && (c) <= 'i') \
5291 || ('j' <= (c) && (c) <= 'r') \
5292 || ('s' <= (c) && (c) <= 'z'))
5293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5294 #endif
5296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5298 main ()
5300 int i;
5301 for (i = 0; i < 256; i++)
5302 if (XOR (islower (i), ISLOWER (i))
5303 || toupper (i) != TOUPPER (i))
5304 return 2;
5305 return 0;
5307 _ACEOF
5308 rm -f conftest$ac_exeext
5309 if { (ac_try="$ac_link"
5310 case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_link") 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5319 { (case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_try") 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
5329 else
5330 echo "$as_me: program exited with status $ac_status" >&5
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 ( exit $ac_status )
5335 ac_cv_header_stdc=no
5337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5343 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5344 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5345 if test $ac_cv_header_stdc = yes; then
5347 cat >>confdefs.h <<\_ACEOF
5348 #define STDC_HEADERS 1
5349 _ACEOF
5353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5364 inttypes.h stdint.h unistd.h
5366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 $ac_includes_default
5380 #include <$ac_header>
5381 _ACEOF
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5399 eval "$as_ac_Header=yes"
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 eval "$as_ac_Header=no"
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 ac_res=`eval echo '${'$as_ac_Header'}'`
5410 { echo "$as_me:$LINENO: result: $ac_res" >&5
5411 echo "${ECHO_T}$ac_res" >&6; }
5412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5413 cat >>confdefs.h <<_ACEOF
5414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5415 _ACEOF
5419 done
5475 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5476 fcntl.h grp.h \
5477 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5478 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5479 unistd.h utime.h \
5480 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5481 sys/lock.h sys/mkdev.h sys/modem.h \
5482 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5483 sys/time.h \
5484 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5485 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5486 bluetooth/bluetooth.h linux/tipc.h
5488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 ac_res=`eval echo '${'$as_ac_Header'}'`
5496 { echo "$as_me:$LINENO: result: $ac_res" >&5
5497 echo "${ECHO_T}$ac_res" >&6; }
5498 else
5499 # Is the header compilable?
5500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 $ac_includes_default
5509 #include <$ac_header>
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 ac_header_compiler=yes
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 ac_header_compiler=no
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5538 echo "${ECHO_T}$ac_header_compiler" >&6; }
5540 # Is the header present?
5541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5543 cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h. */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 #include <$ac_header>
5550 _ACEOF
5551 if { (ac_try="$ac_cpp conftest.$ac_ext"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } >/dev/null && {
5564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5565 test ! -s conftest.err
5566 }; then
5567 ac_header_preproc=yes
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 ac_header_preproc=no
5575 rm -f conftest.err conftest.$ac_ext
5576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5577 echo "${ECHO_T}$ac_header_preproc" >&6; }
5579 # So? What about this header?
5580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5581 yes:no: )
5582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5586 ac_header_preproc=yes
5588 no:yes:* )
5589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5601 ( cat <<\_ASBOX
5602 ## ------------------------------------------------ ##
5603 ## Report this to http://www.python.org/python-bugs ##
5604 ## ------------------------------------------------ ##
5605 _ASBOX
5606 ) | sed "s/^/$as_me: WARNING: /" >&2
5608 esac
5609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 eval "$as_ac_Header=\$ac_header_preproc"
5616 ac_res=`eval echo '${'$as_ac_Header'}'`
5617 { echo "$as_me:$LINENO: result: $ac_res" >&5
5618 echo "${ECHO_T}$ac_res" >&6; }
5621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5622 cat >>confdefs.h <<_ACEOF
5623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5624 _ACEOF
5628 done
5635 ac_header_dirent=no
5636 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5637 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5638 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5639 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <sys/types.h>
5650 #include <$ac_hdr>
5653 main ()
5655 if ((DIR *) 0)
5656 return 0;
5658 return 0;
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } && {
5675 test -z "$ac_c_werror_flag" ||
5676 test ! -s conftest.err
5677 } && test -s conftest.$ac_objext; then
5678 eval "$as_ac_Header=yes"
5679 else
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 eval "$as_ac_Header=no"
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 ac_res=`eval echo '${'$as_ac_Header'}'`
5689 { echo "$as_me:$LINENO: result: $ac_res" >&5
5690 echo "${ECHO_T}$ac_res" >&6; }
5691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5692 cat >>confdefs.h <<_ACEOF
5693 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5694 _ACEOF
5696 ac_header_dirent=$ac_hdr; break
5699 done
5700 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5701 if test $ac_header_dirent = dirent.h; then
5702 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5703 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5704 if test "${ac_cv_search_opendir+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 ac_func_search_save_LIBS=$LIBS
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5715 /* Override any GCC internal prototype to avoid an error.
5716 Use char because int might match the return type of a GCC
5717 builtin and then its argument prototype would still apply. */
5718 #ifdef __cplusplus
5719 extern "C"
5720 #endif
5721 char opendir ();
5723 main ()
5725 return opendir ();
5727 return 0;
5729 _ACEOF
5730 for ac_lib in '' dir; do
5731 if test -z "$ac_lib"; then
5732 ac_res="none required"
5733 else
5734 ac_res=-l$ac_lib
5735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (ac_try="$ac_link"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_link") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest$ac_exeext &&
5754 $as_test_x conftest$ac_exeext; then
5755 ac_cv_search_opendir=$ac_res
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5764 conftest$ac_exeext
5765 if test "${ac_cv_search_opendir+set}" = set; then
5766 break
5768 done
5769 if test "${ac_cv_search_opendir+set}" = set; then
5771 else
5772 ac_cv_search_opendir=no
5774 rm conftest.$ac_ext
5775 LIBS=$ac_func_search_save_LIBS
5777 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5778 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5779 ac_res=$ac_cv_search_opendir
5780 if test "$ac_res" != no; then
5781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5785 else
5786 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5787 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5788 if test "${ac_cv_search_opendir+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 ac_func_search_save_LIBS=$LIBS
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5799 /* Override any GCC internal prototype to avoid an error.
5800 Use char because int might match the return type of a GCC
5801 builtin and then its argument prototype would still apply. */
5802 #ifdef __cplusplus
5803 extern "C"
5804 #endif
5805 char opendir ();
5807 main ()
5809 return opendir ();
5811 return 0;
5813 _ACEOF
5814 for ac_lib in '' x; do
5815 if test -z "$ac_lib"; then
5816 ac_res="none required"
5817 else
5818 ac_res=-l$ac_lib
5819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5821 rm -f conftest.$ac_objext conftest$ac_exeext
5822 if { (ac_try="$ac_link"
5823 case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_link") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } && {
5835 test -z "$ac_c_werror_flag" ||
5836 test ! -s conftest.err
5837 } && test -s conftest$ac_exeext &&
5838 $as_test_x conftest$ac_exeext; then
5839 ac_cv_search_opendir=$ac_res
5840 else
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5848 conftest$ac_exeext
5849 if test "${ac_cv_search_opendir+set}" = set; then
5850 break
5852 done
5853 if test "${ac_cv_search_opendir+set}" = set; then
5855 else
5856 ac_cv_search_opendir=no
5858 rm conftest.$ac_ext
5859 LIBS=$ac_func_search_save_LIBS
5861 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5862 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5863 ac_res=$ac_cv_search_opendir
5864 if test "$ac_res" != no; then
5865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5871 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5872 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5873 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876 cat >conftest.$ac_ext <<_ACEOF
5877 /* confdefs.h. */
5878 _ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5882 #include <sys/types.h>
5884 main ()
5886 return makedev(0, 0);
5888 return 0;
5890 _ACEOF
5891 rm -f conftest.$ac_objext conftest$ac_exeext
5892 if { (ac_try="$ac_link"
5893 case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_link") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_c_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest$ac_exeext &&
5908 $as_test_x conftest$ac_exeext; then
5909 ac_cv_header_sys_types_h_makedev=yes
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 ac_cv_header_sys_types_h_makedev=no
5917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5918 conftest$ac_exeext conftest.$ac_ext
5921 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5922 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5924 if test $ac_cv_header_sys_types_h_makedev = no; then
5925 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5926 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5927 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5928 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5932 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5933 else
5934 # Is the header compilable?
5935 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5936 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5937 cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h. */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 $ac_includes_default
5944 #include <sys/mkdev.h>
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5948 case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5963 ac_header_compiler=yes
5964 else
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 ac_header_compiler=no
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5973 echo "${ECHO_T}$ac_header_compiler" >&6; }
5975 # Is the header present?
5976 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5977 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #include <sys/mkdev.h>
5985 _ACEOF
5986 if { (ac_try="$ac_cpp conftest.$ac_ext"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } >/dev/null && {
5999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 }; then
6002 ac_header_preproc=yes
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_header_preproc=no
6010 rm -f conftest.err conftest.$ac_ext
6011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6012 echo "${ECHO_T}$ac_header_preproc" >&6; }
6014 # So? What about this header?
6015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6016 yes:no: )
6017 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6018 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6019 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6020 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6021 ac_header_preproc=yes
6023 no:yes:* )
6024 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6025 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6027 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6029 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6031 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6033 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6035 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6036 ( cat <<\_ASBOX
6037 ## ------------------------------------------------ ##
6038 ## Report this to http://www.python.org/python-bugs ##
6039 ## ------------------------------------------------ ##
6040 _ASBOX
6041 ) | sed "s/^/$as_me: WARNING: /" >&2
6043 esac
6044 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6045 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6046 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6051 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6052 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6055 if test $ac_cv_header_sys_mkdev_h = yes; then
6057 cat >>confdefs.h <<\_ACEOF
6058 #define MAJOR_IN_MKDEV 1
6059 _ACEOF
6065 if test $ac_cv_header_sys_mkdev_h = no; then
6066 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6067 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6068 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6069 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6073 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6074 else
6075 # Is the header compilable?
6076 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6077 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 $ac_includes_default
6085 #include <sys/sysmacros.h>
6086 _ACEOF
6087 rm -f conftest.$ac_objext
6088 if { (ac_try="$ac_compile"
6089 case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_compile") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.$ac_objext; then
6104 ac_header_compiler=yes
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_header_compiler=no
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6114 echo "${ECHO_T}$ac_header_compiler" >&6; }
6116 # Is the header present?
6117 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6118 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <sys/sysmacros.h>
6126 _ACEOF
6127 if { (ac_try="$ac_cpp conftest.$ac_ext"
6128 case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131 esac
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } >/dev/null && {
6140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6141 test ! -s conftest.err
6142 }; then
6143 ac_header_preproc=yes
6144 else
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6148 ac_header_preproc=no
6151 rm -f conftest.err conftest.$ac_ext
6152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6153 echo "${ECHO_T}$ac_header_preproc" >&6; }
6155 # So? What about this header?
6156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6157 yes:no: )
6158 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6159 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6161 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6162 ac_header_preproc=yes
6164 no:yes:* )
6165 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6166 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6167 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6168 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6169 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6170 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6171 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6172 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6173 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6174 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6176 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6177 ( cat <<\_ASBOX
6178 ## ------------------------------------------------ ##
6179 ## Report this to http://www.python.org/python-bugs ##
6180 ## ------------------------------------------------ ##
6181 _ASBOX
6182 ) | sed "s/^/$as_me: WARNING: /" >&2
6184 esac
6185 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6186 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6187 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6192 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6193 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6196 if test $ac_cv_header_sys_sysmacros_h = yes; then
6198 cat >>confdefs.h <<\_ACEOF
6199 #define MAJOR_IN_SYSMACROS 1
6200 _ACEOF
6209 # On Solaris, term.h requires curses.h
6211 for ac_header in term.h
6213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6226 #ifdef HAVE_CURSES_H
6227 #include <curses.h>
6228 #endif
6231 #include <$ac_header>
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (ac_try="$ac_compile"
6235 case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_compile") 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } && {
6247 test -z "$ac_c_werror_flag" ||
6248 test ! -s conftest.err
6249 } && test -s conftest.$ac_objext; then
6250 eval "$as_ac_Header=yes"
6251 else
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 eval "$as_ac_Header=no"
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 ac_res=`eval echo '${'$as_ac_Header'}'`
6261 { echo "$as_me:$LINENO: result: $ac_res" >&5
6262 echo "${ECHO_T}$ac_res" >&6; }
6263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264 cat >>confdefs.h <<_ACEOF
6265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 _ACEOF
6270 done
6273 # On Linux, netlink.h requires asm/types.h
6275 for ac_header in linux/netlink.h
6277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6290 #ifdef HAVE_ASM_TYPES_H
6291 #include <asm/types.h>
6292 #endif
6293 #ifdef HAVE_SYS_SOCKET_H
6294 #include <sys/socket.h>
6295 #endif
6298 #include <$ac_header>
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (ac_try="$ac_compile"
6302 case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305 esac
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_compile") 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } && {
6314 test -z "$ac_c_werror_flag" ||
6315 test ! -s conftest.err
6316 } && test -s conftest.$ac_objext; then
6317 eval "$as_ac_Header=yes"
6318 else
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 eval "$as_ac_Header=no"
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 ac_res=`eval echo '${'$as_ac_Header'}'`
6328 { echo "$as_me:$LINENO: result: $ac_res" >&5
6329 echo "${ECHO_T}$ac_res" >&6; }
6330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6331 cat >>confdefs.h <<_ACEOF
6332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6333 _ACEOF
6337 done
6340 # checks for typedefs
6341 was_it_defined=no
6342 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6343 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 #include <time.h>
6352 _ACEOF
6353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6354 $EGREP "clock_t" >/dev/null 2>&1; then
6355 was_it_defined=yes
6356 else
6359 cat >>confdefs.h <<\_ACEOF
6360 #define clock_t long
6361 _ACEOF
6365 rm -f conftest*
6367 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6368 echo "${ECHO_T}$was_it_defined" >&6; }
6370 # Check whether using makedev requires defining _OSF_SOURCE
6371 { echo "$as_me:$LINENO: checking for makedev" >&5
6372 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 #include <sys/types.h>
6381 main ()
6383 makedev(0, 0)
6385 return 0;
6387 _ACEOF
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (ac_try="$ac_link"
6390 case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393 esac
6394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6395 (eval "$ac_link") 2>conftest.er1
6396 ac_status=$?
6397 grep -v '^ *+' conftest.er1 >conftest.err
6398 rm -f conftest.er1
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } && {
6402 test -z "$ac_c_werror_flag" ||
6403 test ! -s conftest.err
6404 } && test -s conftest$ac_exeext &&
6405 $as_test_x conftest$ac_exeext; then
6406 ac_cv_has_makedev=yes
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 ac_cv_has_makedev=no
6414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6415 conftest$ac_exeext conftest.$ac_ext
6416 if test "$ac_cv_has_makedev" = "no"; then
6417 # we didn't link, try if _OSF_SOURCE will allow us to link
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6425 #define _OSF_SOURCE 1
6426 #include <sys/types.h>
6429 main ()
6431 makedev(0, 0)
6433 return 0;
6435 _ACEOF
6436 rm -f conftest.$ac_objext conftest$ac_exeext
6437 if { (ac_try="$ac_link"
6438 case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_link") 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest$ac_exeext &&
6453 $as_test_x conftest$ac_exeext; then
6454 ac_cv_has_makedev=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 ac_cv_has_makedev=no
6462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6463 conftest$ac_exeext conftest.$ac_ext
6464 if test "$ac_cv_has_makedev" = "yes"; then
6466 cat >>confdefs.h <<\_ACEOF
6467 #define _OSF_SOURCE 1
6468 _ACEOF
6472 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6473 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6474 if test "$ac_cv_has_makedev" = "yes"; then
6476 cat >>confdefs.h <<\_ACEOF
6477 #define HAVE_MAKEDEV 1
6478 _ACEOF
6482 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6483 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6484 # defined, but the compiler does not support pragma redefine_extname,
6485 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6486 # structures (such as rlimit64) without declaring them. As a
6487 # work-around, disable LFS on such configurations
6489 use_lfs=yes
6490 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6491 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6499 #define _LARGEFILE_SOURCE 1
6500 #define _FILE_OFFSET_BITS 64
6501 #include <sys/resource.h>
6504 main ()
6506 struct rlimit foo;
6508 return 0;
6510 _ACEOF
6511 rm -f conftest.$ac_objext
6512 if { (ac_try="$ac_compile"
6513 case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516 esac
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_compile") 2>conftest.er1
6519 ac_status=$?
6520 grep -v '^ *+' conftest.er1 >conftest.err
6521 rm -f conftest.er1
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && {
6525 test -z "$ac_c_werror_flag" ||
6526 test ! -s conftest.err
6527 } && test -s conftest.$ac_objext; then
6528 sol_lfs_bug=no
6529 else
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 sol_lfs_bug=yes
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6538 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6539 if test "$sol_lfs_bug" = "yes"; then
6540 use_lfs=no
6543 if test "$use_lfs" = "yes"; then
6544 # Two defines needed to enable largefile support on various platforms
6545 # These may affect some typedefs
6547 cat >>confdefs.h <<\_ACEOF
6548 #define _LARGEFILE_SOURCE 1
6549 _ACEOF
6552 cat >>confdefs.h <<\_ACEOF
6553 #define _FILE_OFFSET_BITS 64
6554 _ACEOF
6558 # Add some code to confdefs.h so that the test for off_t works on SCO
6559 cat >> confdefs.h <<\EOF
6560 #if defined(SCO_DS)
6561 #undef _OFF_T
6562 #endif
6565 # Type availability checks
6566 { echo "$as_me:$LINENO: checking for mode_t" >&5
6567 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6568 if test "${ac_cv_type_mode_t+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 $ac_includes_default
6578 typedef mode_t ac__type_new_;
6580 main ()
6582 if ((ac__type_new_ *) 0)
6583 return 0;
6584 if (sizeof (ac__type_new_))
6585 return 0;
6587 return 0;
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (ac_try="$ac_compile"
6592 case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595 esac
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest.$ac_objext; then
6607 ac_cv_type_mode_t=yes
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_cv_type_mode_t=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6618 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6619 if test $ac_cv_type_mode_t = yes; then
6621 else
6623 cat >>confdefs.h <<_ACEOF
6624 #define mode_t int
6625 _ACEOF
6629 { echo "$as_me:$LINENO: checking for off_t" >&5
6630 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6631 if test "${ac_cv_type_off_t+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h. */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 $ac_includes_default
6641 typedef off_t ac__type_new_;
6643 main ()
6645 if ((ac__type_new_ *) 0)
6646 return 0;
6647 if (sizeof (ac__type_new_))
6648 return 0;
6650 return 0;
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_compile") 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_c_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest.$ac_objext; then
6670 ac_cv_type_off_t=yes
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 ac_cv_type_off_t=no
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6681 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6682 if test $ac_cv_type_off_t = yes; then
6684 else
6686 cat >>confdefs.h <<_ACEOF
6687 #define off_t long int
6688 _ACEOF
6692 { echo "$as_me:$LINENO: checking for pid_t" >&5
6693 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6694 if test "${ac_cv_type_pid_t+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 $ac_includes_default
6704 typedef pid_t ac__type_new_;
6706 main ()
6708 if ((ac__type_new_ *) 0)
6709 return 0;
6710 if (sizeof (ac__type_new_))
6711 return 0;
6713 return 0;
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (ac_try="$ac_compile"
6718 case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721 esac
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6733 ac_cv_type_pid_t=yes
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 ac_cv_type_pid_t=no
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6744 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6745 if test $ac_cv_type_pid_t = yes; then
6747 else
6749 cat >>confdefs.h <<_ACEOF
6750 #define pid_t int
6751 _ACEOF
6755 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6756 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6757 if test "${ac_cv_type_signal+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760 cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <sys/types.h>
6767 #include <signal.h>
6770 main ()
6772 return *(signal (0, 0)) (0) == 1;
6774 return 0;
6776 _ACEOF
6777 rm -f conftest.$ac_objext
6778 if { (ac_try="$ac_compile"
6779 case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782 esac
6783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6784 (eval "$ac_compile") 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && {
6791 test -z "$ac_c_werror_flag" ||
6792 test ! -s conftest.err
6793 } && test -s conftest.$ac_objext; then
6794 ac_cv_type_signal=int
6795 else
6796 echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 ac_cv_type_signal=void
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6805 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6807 cat >>confdefs.h <<_ACEOF
6808 #define RETSIGTYPE $ac_cv_type_signal
6809 _ACEOF
6812 { echo "$as_me:$LINENO: checking for size_t" >&5
6813 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6814 if test "${ac_cv_type_size_t+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817 cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h. */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6823 $ac_includes_default
6824 typedef size_t ac__type_new_;
6826 main ()
6828 if ((ac__type_new_ *) 0)
6829 return 0;
6830 if (sizeof (ac__type_new_))
6831 return 0;
6833 return 0;
6835 _ACEOF
6836 rm -f conftest.$ac_objext
6837 if { (ac_try="$ac_compile"
6838 case "(($ac_try" in
6839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840 *) ac_try_echo=$ac_try;;
6841 esac
6842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6843 (eval "$ac_compile") 2>conftest.er1
6844 ac_status=$?
6845 grep -v '^ *+' conftest.er1 >conftest.err
6846 rm -f conftest.er1
6847 cat conftest.err >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } && {
6850 test -z "$ac_c_werror_flag" ||
6851 test ! -s conftest.err
6852 } && test -s conftest.$ac_objext; then
6853 ac_cv_type_size_t=yes
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 ac_cv_type_size_t=no
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6864 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6865 if test $ac_cv_type_size_t = yes; then
6867 else
6869 cat >>confdefs.h <<_ACEOF
6870 #define size_t unsigned int
6871 _ACEOF
6875 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6876 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6877 if test "${ac_cv_type_uid_t+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 #include <sys/types.h>
6888 _ACEOF
6889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890 $EGREP "uid_t" >/dev/null 2>&1; then
6891 ac_cv_type_uid_t=yes
6892 else
6893 ac_cv_type_uid_t=no
6895 rm -f conftest*
6898 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6899 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6900 if test $ac_cv_type_uid_t = no; then
6902 cat >>confdefs.h <<\_ACEOF
6903 #define uid_t int
6904 _ACEOF
6907 cat >>confdefs.h <<\_ACEOF
6908 #define gid_t int
6909 _ACEOF
6913 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6914 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6915 if test "${ac_cv_type_ssize_t+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6925 typedef ssize_t ac__type_new_;
6927 main ()
6929 if ((ac__type_new_ *) 0)
6930 return 0;
6931 if (sizeof (ac__type_new_))
6932 return 0;
6934 return 0;
6936 _ACEOF
6937 rm -f conftest.$ac_objext
6938 if { (ac_try="$ac_compile"
6939 case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_compile") 2>conftest.er1
6945 ac_status=$?
6946 grep -v '^ *+' conftest.er1 >conftest.err
6947 rm -f conftest.er1
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } && {
6951 test -z "$ac_c_werror_flag" ||
6952 test ! -s conftest.err
6953 } && test -s conftest.$ac_objext; then
6954 ac_cv_type_ssize_t=yes
6955 else
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6959 ac_cv_type_ssize_t=no
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6965 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6966 if test $ac_cv_type_ssize_t = yes; then
6968 cat >>confdefs.h <<\_ACEOF
6969 #define HAVE_SSIZE_T 1
6970 _ACEOF
6975 # Sizes of various common basic types
6976 # ANSI C requires sizeof(char) == 1, so no need to check it
6977 { echo "$as_me:$LINENO: checking for int" >&5
6978 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6979 if test "${ac_cv_type_int+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 typedef int ac__type_new_;
6991 main ()
6993 if ((ac__type_new_ *) 0)
6994 return 0;
6995 if (sizeof (ac__type_new_))
6996 return 0;
6998 return 0;
7000 _ACEOF
7001 rm -f conftest.$ac_objext
7002 if { (ac_try="$ac_compile"
7003 case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006 esac
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_compile") 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest.$ac_objext; then
7018 ac_cv_type_int=yes
7019 else
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 ac_cv_type_int=no
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7029 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7031 # The cast to long int works around a bug in the HP C Compiler
7032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7034 # This bug is HP SR number 8606223364.
7035 { echo "$as_me:$LINENO: checking size of int" >&5
7036 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7037 if test "${ac_cv_sizeof_int+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 if test "$cross_compiling" = yes; then
7041 # Depending upon the size, compute the lo and hi bounds.
7042 cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h. */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 $ac_includes_default
7049 typedef int ac__type_sizeof_;
7051 main ()
7053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7054 test_array [0] = 0
7057 return 0;
7059 _ACEOF
7060 rm -f conftest.$ac_objext
7061 if { (ac_try="$ac_compile"
7062 case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065 esac
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.$ac_objext; then
7077 ac_lo=0 ac_mid=0
7078 while :; do
7079 cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h. */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 $ac_includes_default
7086 typedef int ac__type_sizeof_;
7088 main ()
7090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7091 test_array [0] = 0
7094 return 0;
7096 _ACEOF
7097 rm -f conftest.$ac_objext
7098 if { (ac_try="$ac_compile"
7099 case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 ac_hi=$ac_mid; break
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7119 ac_lo=`expr $ac_mid + 1`
7120 if test $ac_lo -le $ac_mid; then
7121 ac_lo= ac_hi=
7122 break
7124 ac_mid=`expr 2 '*' $ac_mid + 1`
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128 done
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h. */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 $ac_includes_default
7140 typedef int ac__type_sizeof_;
7142 main ()
7144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7145 test_array [0] = 0
7148 return 0;
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (ac_try="$ac_compile"
7153 case "(($ac_try" in
7154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155 *) ac_try_echo=$ac_try;;
7156 esac
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158 (eval "$ac_compile") 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && {
7165 test -z "$ac_c_werror_flag" ||
7166 test ! -s conftest.err
7167 } && test -s conftest.$ac_objext; then
7168 ac_hi=-1 ac_mid=-1
7169 while :; do
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 $ac_includes_default
7177 typedef int ac__type_sizeof_;
7179 main ()
7181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7182 test_array [0] = 0
7185 return 0;
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (ac_try="$ac_compile"
7190 case "(($ac_try" in
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7193 esac
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_compile") 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest.$ac_objext; then
7205 ac_lo=$ac_mid; break
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_hi=`expr '(' $ac_mid ')' - 1`
7211 if test $ac_mid -le $ac_hi; then
7212 ac_lo= ac_hi=
7213 break
7215 ac_mid=`expr 2 '*' $ac_mid`
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 done
7220 else
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7224 ac_lo= ac_hi=
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231 # Binary search between lo and hi bounds.
7232 while test "x$ac_lo" != "x$ac_hi"; do
7233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7241 typedef int ac__type_sizeof_;
7243 main ()
7245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7246 test_array [0] = 0
7249 return 0;
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7254 case "(($ac_try" in
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7257 esac
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_hi=$ac_mid
7270 else
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_lo=`expr '(' $ac_mid ')' + 1`
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 done
7279 case $ac_lo in
7280 ?*) ac_cv_sizeof_int=$ac_lo;;
7281 '') if test "$ac_cv_type_int" = yes; then
7282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7283 See \`config.log' for more details." >&5
7284 echo "$as_me: error: cannot compute sizeof (int)
7285 See \`config.log' for more details." >&2;}
7286 { (exit 77); exit 77; }; }
7287 else
7288 ac_cv_sizeof_int=0
7289 fi ;;
7290 esac
7291 else
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7299 typedef int ac__type_sizeof_;
7300 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7301 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7302 #include <stdio.h>
7303 #include <stdlib.h>
7305 main ()
7308 FILE *f = fopen ("conftest.val", "w");
7309 if (! f)
7310 return 1;
7311 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7313 long int i = longval ();
7314 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7315 return 1;
7316 fprintf (f, "%ld\n", i);
7318 else
7320 unsigned long int i = ulongval ();
7321 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7322 return 1;
7323 fprintf (f, "%lu\n", i);
7325 return ferror (f) || fclose (f) != 0;
7328 return 0;
7330 _ACEOF
7331 rm -f conftest$ac_exeext
7332 if { (ac_try="$ac_link"
7333 case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_link") 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7342 { (case "(($ac_try" in
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_try") 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_sizeof_int=`cat conftest.val`
7352 else
7353 echo "$as_me: program exited with status $ac_status" >&5
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 ( exit $ac_status )
7358 if test "$ac_cv_type_int" = yes; then
7359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7360 See \`config.log' for more details." >&5
7361 echo "$as_me: error: cannot compute sizeof (int)
7362 See \`config.log' for more details." >&2;}
7363 { (exit 77); exit 77; }; }
7364 else
7365 ac_cv_sizeof_int=0
7368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7370 rm -f conftest.val
7372 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7373 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7377 cat >>confdefs.h <<_ACEOF
7378 #define SIZEOF_INT $ac_cv_sizeof_int
7379 _ACEOF
7382 { echo "$as_me:$LINENO: checking for long" >&5
7383 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7384 if test "${ac_cv_type_long+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 $ac_includes_default
7394 typedef long ac__type_new_;
7396 main ()
7398 if ((ac__type_new_ *) 0)
7399 return 0;
7400 if (sizeof (ac__type_new_))
7401 return 0;
7403 return 0;
7405 _ACEOF
7406 rm -f conftest.$ac_objext
7407 if { (ac_try="$ac_compile"
7408 case "(($ac_try" in
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7411 esac
7412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7413 (eval "$ac_compile") 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && {
7420 test -z "$ac_c_werror_flag" ||
7421 test ! -s conftest.err
7422 } && test -s conftest.$ac_objext; then
7423 ac_cv_type_long=yes
7424 else
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7428 ac_cv_type_long=no
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7434 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7436 # The cast to long int works around a bug in the HP C Compiler
7437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7439 # This bug is HP SR number 8606223364.
7440 { echo "$as_me:$LINENO: checking size of long" >&5
7441 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7442 if test "${ac_cv_sizeof_long+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445 if test "$cross_compiling" = yes; then
7446 # Depending upon the size, compute the lo and hi bounds.
7447 cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h. */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7453 $ac_includes_default
7454 typedef long ac__type_sizeof_;
7456 main ()
7458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7459 test_array [0] = 0
7462 return 0;
7464 _ACEOF
7465 rm -f conftest.$ac_objext
7466 if { (ac_try="$ac_compile"
7467 case "(($ac_try" in
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7470 esac
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472 (eval "$ac_compile") 2>conftest.er1
7473 ac_status=$?
7474 grep -v '^ *+' conftest.er1 >conftest.err
7475 rm -f conftest.er1
7476 cat conftest.err >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } && {
7479 test -z "$ac_c_werror_flag" ||
7480 test ! -s conftest.err
7481 } && test -s conftest.$ac_objext; then
7482 ac_lo=0 ac_mid=0
7483 while :; do
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 $ac_includes_default
7491 typedef long ac__type_sizeof_;
7493 main ()
7495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7496 test_array [0] = 0
7499 return 0;
7501 _ACEOF
7502 rm -f conftest.$ac_objext
7503 if { (ac_try="$ac_compile"
7504 case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507 esac
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 ac_hi=$ac_mid; break
7520 else
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7524 ac_lo=`expr $ac_mid + 1`
7525 if test $ac_lo -le $ac_mid; then
7526 ac_lo= ac_hi=
7527 break
7529 ac_mid=`expr 2 '*' $ac_mid + 1`
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 done
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 cat >conftest.$ac_ext <<_ACEOF
7539 /* confdefs.h. */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544 $ac_includes_default
7545 typedef long ac__type_sizeof_;
7547 main ()
7549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7550 test_array [0] = 0
7553 return 0;
7555 _ACEOF
7556 rm -f conftest.$ac_objext
7557 if { (ac_try="$ac_compile"
7558 case "(($ac_try" in
7559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7561 esac
7562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563 (eval "$ac_compile") 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } && {
7570 test -z "$ac_c_werror_flag" ||
7571 test ! -s conftest.err
7572 } && test -s conftest.$ac_objext; then
7573 ac_hi=-1 ac_mid=-1
7574 while :; do
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7582 typedef long ac__type_sizeof_;
7584 main ()
7586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7587 test_array [0] = 0
7590 return 0;
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7595 case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7598 esac
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_compile") 2>conftest.er1
7601 ac_status=$?
7602 grep -v '^ *+' conftest.er1 >conftest.err
7603 rm -f conftest.er1
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } && {
7607 test -z "$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7609 } && test -s conftest.$ac_objext; then
7610 ac_lo=$ac_mid; break
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 ac_hi=`expr '(' $ac_mid ')' - 1`
7616 if test $ac_mid -le $ac_hi; then
7617 ac_lo= ac_hi=
7618 break
7620 ac_mid=`expr 2 '*' $ac_mid`
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 done
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_lo= ac_hi=
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 # Binary search between lo and hi bounds.
7637 while test "x$ac_lo" != "x$ac_hi"; do
7638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7639 cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h. */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7646 typedef long ac__type_sizeof_;
7648 main ()
7650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7651 test_array [0] = 0
7654 return 0;
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7659 case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_hi=$ac_mid
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_lo=`expr '(' $ac_mid ')' + 1`
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 done
7684 case $ac_lo in
7685 ?*) ac_cv_sizeof_long=$ac_lo;;
7686 '') if test "$ac_cv_type_long" = yes; then
7687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7688 See \`config.log' for more details." >&5
7689 echo "$as_me: error: cannot compute sizeof (long)
7690 See \`config.log' for more details." >&2;}
7691 { (exit 77); exit 77; }; }
7692 else
7693 ac_cv_sizeof_long=0
7694 fi ;;
7695 esac
7696 else
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 $ac_includes_default
7704 typedef long ac__type_sizeof_;
7705 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7706 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7707 #include <stdio.h>
7708 #include <stdlib.h>
7710 main ()
7713 FILE *f = fopen ("conftest.val", "w");
7714 if (! f)
7715 return 1;
7716 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7718 long int i = longval ();
7719 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7720 return 1;
7721 fprintf (f, "%ld\n", i);
7723 else
7725 unsigned long int i = ulongval ();
7726 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7727 return 1;
7728 fprintf (f, "%lu\n", i);
7730 return ferror (f) || fclose (f) != 0;
7733 return 0;
7735 _ACEOF
7736 rm -f conftest$ac_exeext
7737 if { (ac_try="$ac_link"
7738 case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_link") 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7747 { (case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750 esac
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_try") 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 ac_cv_sizeof_long=`cat conftest.val`
7757 else
7758 echo "$as_me: program exited with status $ac_status" >&5
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 ( exit $ac_status )
7763 if test "$ac_cv_type_long" = yes; then
7764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7765 See \`config.log' for more details." >&5
7766 echo "$as_me: error: cannot compute sizeof (long)
7767 See \`config.log' for more details." >&2;}
7768 { (exit 77); exit 77; }; }
7769 else
7770 ac_cv_sizeof_long=0
7773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7775 rm -f conftest.val
7777 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7778 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7782 cat >>confdefs.h <<_ACEOF
7783 #define SIZEOF_LONG $ac_cv_sizeof_long
7784 _ACEOF
7787 { echo "$as_me:$LINENO: checking for void *" >&5
7788 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7789 if test "${ac_cv_type_void_p+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h. */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7799 typedef void * ac__type_new_;
7801 main ()
7803 if ((ac__type_new_ *) 0)
7804 return 0;
7805 if (sizeof (ac__type_new_))
7806 return 0;
7808 return 0;
7810 _ACEOF
7811 rm -f conftest.$ac_objext
7812 if { (ac_try="$ac_compile"
7813 case "(($ac_try" in
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7816 esac
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_compile") 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } && {
7825 test -z "$ac_c_werror_flag" ||
7826 test ! -s conftest.err
7827 } && test -s conftest.$ac_objext; then
7828 ac_cv_type_void_p=yes
7829 else
7830 echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7833 ac_cv_type_void_p=no
7836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7839 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7841 # The cast to long int works around a bug in the HP C Compiler
7842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7844 # This bug is HP SR number 8606223364.
7845 { echo "$as_me:$LINENO: checking size of void *" >&5
7846 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7847 if test "${ac_cv_sizeof_void_p+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850 if test "$cross_compiling" = yes; then
7851 # Depending upon the size, compute the lo and hi bounds.
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 $ac_includes_default
7859 typedef void * ac__type_sizeof_;
7861 main ()
7863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7864 test_array [0] = 0
7867 return 0;
7869 _ACEOF
7870 rm -f conftest.$ac_objext
7871 if { (ac_try="$ac_compile"
7872 case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875 esac
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_compile") 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } && {
7884 test -z "$ac_c_werror_flag" ||
7885 test ! -s conftest.err
7886 } && test -s conftest.$ac_objext; then
7887 ac_lo=0 ac_mid=0
7888 while :; do
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 $ac_includes_default
7896 typedef void * ac__type_sizeof_;
7898 main ()
7900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7901 test_array [0] = 0
7904 return 0;
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7909 case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7924 ac_hi=$ac_mid; break
7925 else
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ac_lo=`expr $ac_mid + 1`
7930 if test $ac_lo -le $ac_mid; then
7931 ac_lo= ac_hi=
7932 break
7934 ac_mid=`expr 2 '*' $ac_mid + 1`
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 done
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 $ac_includes_default
7950 typedef void * ac__type_sizeof_;
7952 main ()
7954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7955 test_array [0] = 0
7958 return 0;
7960 _ACEOF
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7963 case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.$ac_objext; then
7978 ac_hi=-1 ac_mid=-1
7979 while :; do
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 $ac_includes_default
7987 typedef void * ac__type_sizeof_;
7989 main ()
7991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7992 test_array [0] = 0
7995 return 0;
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (ac_try="$ac_compile"
8000 case "(($ac_try" in
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8003 esac
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 (eval "$ac_compile") 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest.$ac_objext; then
8015 ac_lo=$ac_mid; break
8016 else
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 ac_hi=`expr '(' $ac_mid ')' - 1`
8021 if test $ac_mid -le $ac_hi; then
8022 ac_lo= ac_hi=
8023 break
8025 ac_mid=`expr 2 '*' $ac_mid`
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 done
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_lo= ac_hi=
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 # Binary search between lo and hi bounds.
8042 while test "x$ac_lo" != "x$ac_hi"; do
8043 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8044 cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h. */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 $ac_includes_default
8051 typedef void * ac__type_sizeof_;
8053 main ()
8055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8056 test_array [0] = 0
8059 return 0;
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 ac_hi=$ac_mid
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 ac_lo=`expr '(' $ac_mid ')' + 1`
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 done
8089 case $ac_lo in
8090 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8091 '') if test "$ac_cv_type_void_p" = yes; then
8092 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8093 See \`config.log' for more details." >&5
8094 echo "$as_me: error: cannot compute sizeof (void *)
8095 See \`config.log' for more details." >&2;}
8096 { (exit 77); exit 77; }; }
8097 else
8098 ac_cv_sizeof_void_p=0
8099 fi ;;
8100 esac
8101 else
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h. */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 $ac_includes_default
8109 typedef void * ac__type_sizeof_;
8110 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8111 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8112 #include <stdio.h>
8113 #include <stdlib.h>
8115 main ()
8118 FILE *f = fopen ("conftest.val", "w");
8119 if (! f)
8120 return 1;
8121 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8123 long int i = longval ();
8124 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8125 return 1;
8126 fprintf (f, "%ld\n", i);
8128 else
8130 unsigned long int i = ulongval ();
8131 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8132 return 1;
8133 fprintf (f, "%lu\n", i);
8135 return ferror (f) || fclose (f) != 0;
8138 return 0;
8140 _ACEOF
8141 rm -f conftest$ac_exeext
8142 if { (ac_try="$ac_link"
8143 case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8146 esac
8147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148 (eval "$ac_link") 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8152 { (case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8155 esac
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157 (eval "$ac_try") 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 ac_cv_sizeof_void_p=`cat conftest.val`
8162 else
8163 echo "$as_me: program exited with status $ac_status" >&5
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 ( exit $ac_status )
8168 if test "$ac_cv_type_void_p" = yes; then
8169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8170 See \`config.log' for more details." >&5
8171 echo "$as_me: error: cannot compute sizeof (void *)
8172 See \`config.log' for more details." >&2;}
8173 { (exit 77); exit 77; }; }
8174 else
8175 ac_cv_sizeof_void_p=0
8178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8180 rm -f conftest.val
8182 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8183 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8187 cat >>confdefs.h <<_ACEOF
8188 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8189 _ACEOF
8192 { echo "$as_me:$LINENO: checking for short" >&5
8193 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8194 if test "${ac_cv_type_short+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h. */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 $ac_includes_default
8204 typedef short ac__type_new_;
8206 main ()
8208 if ((ac__type_new_ *) 0)
8209 return 0;
8210 if (sizeof (ac__type_new_))
8211 return 0;
8213 return 0;
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (ac_try="$ac_compile"
8218 case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_compile") 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } && {
8230 test -z "$ac_c_werror_flag" ||
8231 test ! -s conftest.err
8232 } && test -s conftest.$ac_objext; then
8233 ac_cv_type_short=yes
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_cv_type_short=no
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8244 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8246 # The cast to long int works around a bug in the HP C Compiler
8247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8249 # This bug is HP SR number 8606223364.
8250 { echo "$as_me:$LINENO: checking size of short" >&5
8251 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8252 if test "${ac_cv_sizeof_short+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255 if test "$cross_compiling" = yes; then
8256 # Depending upon the size, compute the lo and hi bounds.
8257 cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h. */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 $ac_includes_default
8264 typedef short ac__type_sizeof_;
8266 main ()
8268 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8269 test_array [0] = 0
8272 return 0;
8274 _ACEOF
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8277 case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest.$ac_objext; then
8292 ac_lo=0 ac_mid=0
8293 while :; do
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 $ac_includes_default
8301 typedef short ac__type_sizeof_;
8303 main ()
8305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8306 test_array [0] = 0
8309 return 0;
8311 _ACEOF
8312 rm -f conftest.$ac_objext
8313 if { (ac_try="$ac_compile"
8314 case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_compile") 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest.$ac_objext; then
8329 ac_hi=$ac_mid; break
8330 else
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_lo=`expr $ac_mid + 1`
8335 if test $ac_lo -le $ac_mid; then
8336 ac_lo= ac_hi=
8337 break
8339 ac_mid=`expr 2 '*' $ac_mid + 1`
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 done
8344 else
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h. */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 $ac_includes_default
8355 typedef short ac__type_sizeof_;
8357 main ()
8359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8360 test_array [0] = 0
8363 return 0;
8365 _ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (ac_try="$ac_compile"
8368 case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_compile") 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } && {
8380 test -z "$ac_c_werror_flag" ||
8381 test ! -s conftest.err
8382 } && test -s conftest.$ac_objext; then
8383 ac_hi=-1 ac_mid=-1
8384 while :; do
8385 cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h. */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 $ac_includes_default
8392 typedef short ac__type_sizeof_;
8394 main ()
8396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8397 test_array [0] = 0
8400 return 0;
8402 _ACEOF
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8405 case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.$ac_objext; then
8420 ac_lo=$ac_mid; break
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 ac_hi=`expr '(' $ac_mid ')' - 1`
8426 if test $ac_mid -le $ac_hi; then
8427 ac_lo= ac_hi=
8428 break
8430 ac_mid=`expr 2 '*' $ac_mid`
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 done
8435 else
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 ac_lo= ac_hi=
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446 # Binary search between lo and hi bounds.
8447 while test "x$ac_lo" != "x$ac_hi"; do
8448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8456 typedef short ac__type_sizeof_;
8458 main ()
8460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8461 test_array [0] = 0
8464 return 0;
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8469 case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compile") 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest.$ac_objext; then
8484 ac_hi=$ac_mid
8485 else
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_lo=`expr '(' $ac_mid ')' + 1`
8492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 done
8494 case $ac_lo in
8495 ?*) ac_cv_sizeof_short=$ac_lo;;
8496 '') if test "$ac_cv_type_short" = yes; then
8497 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8498 See \`config.log' for more details." >&5
8499 echo "$as_me: error: cannot compute sizeof (short)
8500 See \`config.log' for more details." >&2;}
8501 { (exit 77); exit 77; }; }
8502 else
8503 ac_cv_sizeof_short=0
8504 fi ;;
8505 esac
8506 else
8507 cat >conftest.$ac_ext <<_ACEOF
8508 /* confdefs.h. */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513 $ac_includes_default
8514 typedef short ac__type_sizeof_;
8515 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8516 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8517 #include <stdio.h>
8518 #include <stdlib.h>
8520 main ()
8523 FILE *f = fopen ("conftest.val", "w");
8524 if (! f)
8525 return 1;
8526 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8528 long int i = longval ();
8529 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8530 return 1;
8531 fprintf (f, "%ld\n", i);
8533 else
8535 unsigned long int i = ulongval ();
8536 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8537 return 1;
8538 fprintf (f, "%lu\n", i);
8540 return ferror (f) || fclose (f) != 0;
8543 return 0;
8545 _ACEOF
8546 rm -f conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8548 case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_link") 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8557 { (case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560 esac
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_try") 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_sizeof_short=`cat conftest.val`
8567 else
8568 echo "$as_me: program exited with status $ac_status" >&5
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 ( exit $ac_status )
8573 if test "$ac_cv_type_short" = yes; then
8574 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8575 See \`config.log' for more details." >&5
8576 echo "$as_me: error: cannot compute sizeof (short)
8577 See \`config.log' for more details." >&2;}
8578 { (exit 77); exit 77; }; }
8579 else
8580 ac_cv_sizeof_short=0
8583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8585 rm -f conftest.val
8587 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8588 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8592 cat >>confdefs.h <<_ACEOF
8593 #define SIZEOF_SHORT $ac_cv_sizeof_short
8594 _ACEOF
8597 { echo "$as_me:$LINENO: checking for float" >&5
8598 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8599 if test "${ac_cv_type_float+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602 cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h. */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8608 $ac_includes_default
8609 typedef float ac__type_new_;
8611 main ()
8613 if ((ac__type_new_ *) 0)
8614 return 0;
8615 if (sizeof (ac__type_new_))
8616 return 0;
8618 return 0;
8620 _ACEOF
8621 rm -f conftest.$ac_objext
8622 if { (ac_try="$ac_compile"
8623 case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626 esac
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_compile") 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } && {
8635 test -z "$ac_c_werror_flag" ||
8636 test ! -s conftest.err
8637 } && test -s conftest.$ac_objext; then
8638 ac_cv_type_float=yes
8639 else
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_cv_type_float=no
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8649 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8651 # The cast to long int works around a bug in the HP C Compiler
8652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8654 # This bug is HP SR number 8606223364.
8655 { echo "$as_me:$LINENO: checking size of float" >&5
8656 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8657 if test "${ac_cv_sizeof_float+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660 if test "$cross_compiling" = yes; then
8661 # Depending upon the size, compute the lo and hi bounds.
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h. */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 $ac_includes_default
8669 typedef float ac__type_sizeof_;
8671 main ()
8673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8674 test_array [0] = 0
8677 return 0;
8679 _ACEOF
8680 rm -f conftest.$ac_objext
8681 if { (ac_try="$ac_compile"
8682 case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685 esac
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_compile") 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } && {
8694 test -z "$ac_c_werror_flag" ||
8695 test ! -s conftest.err
8696 } && test -s conftest.$ac_objext; then
8697 ac_lo=0 ac_mid=0
8698 while :; do
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h. */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 $ac_includes_default
8706 typedef float ac__type_sizeof_;
8708 main ()
8710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8711 test_array [0] = 0
8714 return 0;
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (ac_try="$ac_compile"
8719 case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8722 esac
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_compile") 2>conftest.er1
8725 ac_status=$?
8726 grep -v '^ *+' conftest.er1 >conftest.err
8727 rm -f conftest.er1
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && {
8731 test -z "$ac_c_werror_flag" ||
8732 test ! -s conftest.err
8733 } && test -s conftest.$ac_objext; then
8734 ac_hi=$ac_mid; break
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 ac_lo=`expr $ac_mid + 1`
8740 if test $ac_lo -le $ac_mid; then
8741 ac_lo= ac_hi=
8742 break
8744 ac_mid=`expr 2 '*' $ac_mid + 1`
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 done
8749 else
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 $ac_includes_default
8760 typedef float ac__type_sizeof_;
8762 main ()
8764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8765 test_array [0] = 0
8768 return 0;
8770 _ACEOF
8771 rm -f conftest.$ac_objext
8772 if { (ac_try="$ac_compile"
8773 case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776 esac
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_compile") 2>conftest.er1
8779 ac_status=$?
8780 grep -v '^ *+' conftest.er1 >conftest.err
8781 rm -f conftest.er1
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } && {
8785 test -z "$ac_c_werror_flag" ||
8786 test ! -s conftest.err
8787 } && test -s conftest.$ac_objext; then
8788 ac_hi=-1 ac_mid=-1
8789 while :; do
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 $ac_includes_default
8797 typedef float ac__type_sizeof_;
8799 main ()
8801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8802 test_array [0] = 0
8805 return 0;
8807 _ACEOF
8808 rm -f conftest.$ac_objext
8809 if { (ac_try="$ac_compile"
8810 case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813 esac
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_compile") 2>conftest.er1
8816 ac_status=$?
8817 grep -v '^ *+' conftest.er1 >conftest.err
8818 rm -f conftest.er1
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest.$ac_objext; then
8825 ac_lo=$ac_mid; break
8826 else
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 ac_hi=`expr '(' $ac_mid ')' - 1`
8831 if test $ac_mid -le $ac_hi; then
8832 ac_lo= ac_hi=
8833 break
8835 ac_mid=`expr 2 '*' $ac_mid`
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 done
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_lo= ac_hi=
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 # Binary search between lo and hi bounds.
8852 while test "x$ac_lo" != "x$ac_hi"; do
8853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h. */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8860 $ac_includes_default
8861 typedef float ac__type_sizeof_;
8863 main ()
8865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8866 test_array [0] = 0
8869 return 0;
8871 _ACEOF
8872 rm -f conftest.$ac_objext
8873 if { (ac_try="$ac_compile"
8874 case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8877 esac
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_compile") 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest.$ac_objext; then
8889 ac_hi=$ac_mid
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 ac_lo=`expr '(' $ac_mid ')' + 1`
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898 done
8899 case $ac_lo in
8900 ?*) ac_cv_sizeof_float=$ac_lo;;
8901 '') if test "$ac_cv_type_float" = yes; then
8902 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8903 See \`config.log' for more details." >&5
8904 echo "$as_me: error: cannot compute sizeof (float)
8905 See \`config.log' for more details." >&2;}
8906 { (exit 77); exit 77; }; }
8907 else
8908 ac_cv_sizeof_float=0
8909 fi ;;
8910 esac
8911 else
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 $ac_includes_default
8919 typedef float ac__type_sizeof_;
8920 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8921 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8922 #include <stdio.h>
8923 #include <stdlib.h>
8925 main ()
8928 FILE *f = fopen ("conftest.val", "w");
8929 if (! f)
8930 return 1;
8931 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8933 long int i = longval ();
8934 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8935 return 1;
8936 fprintf (f, "%ld\n", i);
8938 else
8940 unsigned long int i = ulongval ();
8941 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8942 return 1;
8943 fprintf (f, "%lu\n", i);
8945 return ferror (f) || fclose (f) != 0;
8948 return 0;
8950 _ACEOF
8951 rm -f conftest$ac_exeext
8952 if { (ac_try="$ac_link"
8953 case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8956 esac
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_link") 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8962 { (case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965 esac
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_try") 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971 ac_cv_sizeof_float=`cat conftest.val`
8972 else
8973 echo "$as_me: program exited with status $ac_status" >&5
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ( exit $ac_status )
8978 if test "$ac_cv_type_float" = yes; then
8979 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8980 See \`config.log' for more details." >&5
8981 echo "$as_me: error: cannot compute sizeof (float)
8982 See \`config.log' for more details." >&2;}
8983 { (exit 77); exit 77; }; }
8984 else
8985 ac_cv_sizeof_float=0
8988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8990 rm -f conftest.val
8992 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8993 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8997 cat >>confdefs.h <<_ACEOF
8998 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8999 _ACEOF
9002 { echo "$as_me:$LINENO: checking for double" >&5
9003 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9004 if test "${ac_cv_type_double+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9013 $ac_includes_default
9014 typedef double ac__type_new_;
9016 main ()
9018 if ((ac__type_new_ *) 0)
9019 return 0;
9020 if (sizeof (ac__type_new_))
9021 return 0;
9023 return 0;
9025 _ACEOF
9026 rm -f conftest.$ac_objext
9027 if { (ac_try="$ac_compile"
9028 case "(($ac_try" in
9029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030 *) ac_try_echo=$ac_try;;
9031 esac
9032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9033 (eval "$ac_compile") 2>conftest.er1
9034 ac_status=$?
9035 grep -v '^ *+' conftest.er1 >conftest.err
9036 rm -f conftest.er1
9037 cat conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && {
9040 test -z "$ac_c_werror_flag" ||
9041 test ! -s conftest.err
9042 } && test -s conftest.$ac_objext; then
9043 ac_cv_type_double=yes
9044 else
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 ac_cv_type_double=no
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9054 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9056 # The cast to long int works around a bug in the HP C Compiler
9057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9059 # This bug is HP SR number 8606223364.
9060 { echo "$as_me:$LINENO: checking size of double" >&5
9061 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9062 if test "${ac_cv_sizeof_double+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065 if test "$cross_compiling" = yes; then
9066 # Depending upon the size, compute the lo and hi bounds.
9067 cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h. */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9073 $ac_includes_default
9074 typedef double ac__type_sizeof_;
9076 main ()
9078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9079 test_array [0] = 0
9082 return 0;
9084 _ACEOF
9085 rm -f conftest.$ac_objext
9086 if { (ac_try="$ac_compile"
9087 case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090 esac
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_compile") 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } && {
9099 test -z "$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9101 } && test -s conftest.$ac_objext; then
9102 ac_lo=0 ac_mid=0
9103 while :; do
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h. */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 $ac_includes_default
9111 typedef double ac__type_sizeof_;
9113 main ()
9115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9116 test_array [0] = 0
9119 return 0;
9121 _ACEOF
9122 rm -f conftest.$ac_objext
9123 if { (ac_try="$ac_compile"
9124 case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127 esac
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_compile") 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && {
9136 test -z "$ac_c_werror_flag" ||
9137 test ! -s conftest.err
9138 } && test -s conftest.$ac_objext; then
9139 ac_hi=$ac_mid; break
9140 else
9141 echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.$ac_ext >&5
9144 ac_lo=`expr $ac_mid + 1`
9145 if test $ac_lo -le $ac_mid; then
9146 ac_lo= ac_hi=
9147 break
9149 ac_mid=`expr 2 '*' $ac_mid + 1`
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 done
9154 else
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h. */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 $ac_includes_default
9165 typedef double ac__type_sizeof_;
9167 main ()
9169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9170 test_array [0] = 0
9173 return 0;
9175 _ACEOF
9176 rm -f conftest.$ac_objext
9177 if { (ac_try="$ac_compile"
9178 case "(($ac_try" in
9179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180 *) ac_try_echo=$ac_try;;
9181 esac
9182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183 (eval "$ac_compile") 2>conftest.er1
9184 ac_status=$?
9185 grep -v '^ *+' conftest.er1 >conftest.err
9186 rm -f conftest.er1
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } && {
9190 test -z "$ac_c_werror_flag" ||
9191 test ! -s conftest.err
9192 } && test -s conftest.$ac_objext; then
9193 ac_hi=-1 ac_mid=-1
9194 while :; do
9195 cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h. */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 $ac_includes_default
9202 typedef double ac__type_sizeof_;
9204 main ()
9206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9207 test_array [0] = 0
9210 return 0;
9212 _ACEOF
9213 rm -f conftest.$ac_objext
9214 if { (ac_try="$ac_compile"
9215 case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9218 esac
9219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220 (eval "$ac_compile") 2>conftest.er1
9221 ac_status=$?
9222 grep -v '^ *+' conftest.er1 >conftest.err
9223 rm -f conftest.er1
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } && {
9227 test -z "$ac_c_werror_flag" ||
9228 test ! -s conftest.err
9229 } && test -s conftest.$ac_objext; then
9230 ac_lo=$ac_mid; break
9231 else
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9235 ac_hi=`expr '(' $ac_mid ')' - 1`
9236 if test $ac_mid -le $ac_hi; then
9237 ac_lo= ac_hi=
9238 break
9240 ac_mid=`expr 2 '*' $ac_mid`
9243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244 done
9245 else
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 ac_lo= ac_hi=
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 # Binary search between lo and hi bounds.
9257 while test "x$ac_lo" != "x$ac_hi"; do
9258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h. */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9265 $ac_includes_default
9266 typedef double ac__type_sizeof_;
9268 main ()
9270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9271 test_array [0] = 0
9274 return 0;
9276 _ACEOF
9277 rm -f conftest.$ac_objext
9278 if { (ac_try="$ac_compile"
9279 case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9282 esac
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_compile") 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } && {
9291 test -z "$ac_c_werror_flag" ||
9292 test ! -s conftest.err
9293 } && test -s conftest.$ac_objext; then
9294 ac_hi=$ac_mid
9295 else
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9299 ac_lo=`expr '(' $ac_mid ')' + 1`
9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9303 done
9304 case $ac_lo in
9305 ?*) ac_cv_sizeof_double=$ac_lo;;
9306 '') if test "$ac_cv_type_double" = yes; then
9307 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9308 See \`config.log' for more details." >&5
9309 echo "$as_me: error: cannot compute sizeof (double)
9310 See \`config.log' for more details." >&2;}
9311 { (exit 77); exit 77; }; }
9312 else
9313 ac_cv_sizeof_double=0
9314 fi ;;
9315 esac
9316 else
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h. */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9323 $ac_includes_default
9324 typedef double ac__type_sizeof_;
9325 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9326 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9327 #include <stdio.h>
9328 #include <stdlib.h>
9330 main ()
9333 FILE *f = fopen ("conftest.val", "w");
9334 if (! f)
9335 return 1;
9336 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9338 long int i = longval ();
9339 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9340 return 1;
9341 fprintf (f, "%ld\n", i);
9343 else
9345 unsigned long int i = ulongval ();
9346 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9347 return 1;
9348 fprintf (f, "%lu\n", i);
9350 return ferror (f) || fclose (f) != 0;
9353 return 0;
9355 _ACEOF
9356 rm -f conftest$ac_exeext
9357 if { (ac_try="$ac_link"
9358 case "(($ac_try" in
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9361 esac
9362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363 (eval "$ac_link") 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9367 { (case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370 esac
9371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_try") 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 ac_cv_sizeof_double=`cat conftest.val`
9377 else
9378 echo "$as_me: program exited with status $ac_status" >&5
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9382 ( exit $ac_status )
9383 if test "$ac_cv_type_double" = yes; then
9384 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9385 See \`config.log' for more details." >&5
9386 echo "$as_me: error: cannot compute sizeof (double)
9387 See \`config.log' for more details." >&2;}
9388 { (exit 77); exit 77; }; }
9389 else
9390 ac_cv_sizeof_double=0
9393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9395 rm -f conftest.val
9397 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9398 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9402 cat >>confdefs.h <<_ACEOF
9403 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9404 _ACEOF
9407 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9408 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9409 if test "${ac_cv_type_fpos_t+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412 cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h. */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 $ac_includes_default
9419 typedef fpos_t ac__type_new_;
9421 main ()
9423 if ((ac__type_new_ *) 0)
9424 return 0;
9425 if (sizeof (ac__type_new_))
9426 return 0;
9428 return 0;
9430 _ACEOF
9431 rm -f conftest.$ac_objext
9432 if { (ac_try="$ac_compile"
9433 case "(($ac_try" in
9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9436 esac
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_compile") 2>conftest.er1
9439 ac_status=$?
9440 grep -v '^ *+' conftest.er1 >conftest.err
9441 rm -f conftest.er1
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } && {
9445 test -z "$ac_c_werror_flag" ||
9446 test ! -s conftest.err
9447 } && test -s conftest.$ac_objext; then
9448 ac_cv_type_fpos_t=yes
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_cv_type_fpos_t=no
9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9459 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9461 # The cast to long int works around a bug in the HP C Compiler
9462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9464 # This bug is HP SR number 8606223364.
9465 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9466 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9467 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470 if test "$cross_compiling" = yes; then
9471 # Depending upon the size, compute the lo and hi bounds.
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h. */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478 $ac_includes_default
9479 typedef fpos_t ac__type_sizeof_;
9481 main ()
9483 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9484 test_array [0] = 0
9487 return 0;
9489 _ACEOF
9490 rm -f conftest.$ac_objext
9491 if { (ac_try="$ac_compile"
9492 case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495 esac
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_compile") 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } && {
9504 test -z "$ac_c_werror_flag" ||
9505 test ! -s conftest.err
9506 } && test -s conftest.$ac_objext; then
9507 ac_lo=0 ac_mid=0
9508 while :; do
9509 cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h. */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 $ac_includes_default
9516 typedef fpos_t ac__type_sizeof_;
9518 main ()
9520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9521 test_array [0] = 0
9524 return 0;
9526 _ACEOF
9527 rm -f conftest.$ac_objext
9528 if { (ac_try="$ac_compile"
9529 case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_compile") 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest.$ac_objext; then
9544 ac_hi=$ac_mid; break
9545 else
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_lo=`expr $ac_mid + 1`
9550 if test $ac_lo -le $ac_mid; then
9551 ac_lo= ac_hi=
9552 break
9554 ac_mid=`expr 2 '*' $ac_mid + 1`
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 done
9559 else
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h. */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 $ac_includes_default
9570 typedef fpos_t ac__type_sizeof_;
9572 main ()
9574 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9575 test_array [0] = 0
9578 return 0;
9580 _ACEOF
9581 rm -f conftest.$ac_objext
9582 if { (ac_try="$ac_compile"
9583 case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9586 esac
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_compile") 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } && {
9595 test -z "$ac_c_werror_flag" ||
9596 test ! -s conftest.err
9597 } && test -s conftest.$ac_objext; then
9598 ac_hi=-1 ac_mid=-1
9599 while :; do
9600 cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h. */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 $ac_includes_default
9607 typedef fpos_t ac__type_sizeof_;
9609 main ()
9611 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9612 test_array [0] = 0
9615 return 0;
9617 _ACEOF
9618 rm -f conftest.$ac_objext
9619 if { (ac_try="$ac_compile"
9620 case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_compile") 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest.$ac_objext; then
9635 ac_lo=$ac_mid; break
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_hi=`expr '(' $ac_mid ')' - 1`
9641 if test $ac_mid -le $ac_hi; then
9642 ac_lo= ac_hi=
9643 break
9645 ac_mid=`expr 2 '*' $ac_mid`
9648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649 done
9650 else
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9654 ac_lo= ac_hi=
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661 # Binary search between lo and hi bounds.
9662 while test "x$ac_lo" != "x$ac_hi"; do
9663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9664 cat >conftest.$ac_ext <<_ACEOF
9665 /* confdefs.h. */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9670 $ac_includes_default
9671 typedef fpos_t ac__type_sizeof_;
9673 main ()
9675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9676 test_array [0] = 0
9679 return 0;
9681 _ACEOF
9682 rm -f conftest.$ac_objext
9683 if { (ac_try="$ac_compile"
9684 case "(($ac_try" in
9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9687 esac
9688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689 (eval "$ac_compile") 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } && {
9696 test -z "$ac_c_werror_flag" ||
9697 test ! -s conftest.err
9698 } && test -s conftest.$ac_objext; then
9699 ac_hi=$ac_mid
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_lo=`expr '(' $ac_mid ')' + 1`
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 done
9709 case $ac_lo in
9710 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9711 '') if test "$ac_cv_type_fpos_t" = yes; then
9712 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9713 See \`config.log' for more details." >&5
9714 echo "$as_me: error: cannot compute sizeof (fpos_t)
9715 See \`config.log' for more details." >&2;}
9716 { (exit 77); exit 77; }; }
9717 else
9718 ac_cv_sizeof_fpos_t=0
9719 fi ;;
9720 esac
9721 else
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h. */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 $ac_includes_default
9729 typedef fpos_t ac__type_sizeof_;
9730 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9731 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9732 #include <stdio.h>
9733 #include <stdlib.h>
9735 main ()
9738 FILE *f = fopen ("conftest.val", "w");
9739 if (! f)
9740 return 1;
9741 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9743 long int i = longval ();
9744 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9745 return 1;
9746 fprintf (f, "%ld\n", i);
9748 else
9750 unsigned long int i = ulongval ();
9751 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9752 return 1;
9753 fprintf (f, "%lu\n", i);
9755 return ferror (f) || fclose (f) != 0;
9758 return 0;
9760 _ACEOF
9761 rm -f conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9763 case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9772 { (case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_try") 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_sizeof_fpos_t=`cat conftest.val`
9782 else
9783 echo "$as_me: program exited with status $ac_status" >&5
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 ( exit $ac_status )
9788 if test "$ac_cv_type_fpos_t" = yes; then
9789 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9790 See \`config.log' for more details." >&5
9791 echo "$as_me: error: cannot compute sizeof (fpos_t)
9792 See \`config.log' for more details." >&2;}
9793 { (exit 77); exit 77; }; }
9794 else
9795 ac_cv_sizeof_fpos_t=0
9798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9800 rm -f conftest.val
9802 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9803 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9807 cat >>confdefs.h <<_ACEOF
9808 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9809 _ACEOF
9812 { echo "$as_me:$LINENO: checking for size_t" >&5
9813 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9814 if test "${ac_cv_type_size_t+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9824 typedef size_t ac__type_new_;
9826 main ()
9828 if ((ac__type_new_ *) 0)
9829 return 0;
9830 if (sizeof (ac__type_new_))
9831 return 0;
9833 return 0;
9835 _ACEOF
9836 rm -f conftest.$ac_objext
9837 if { (ac_try="$ac_compile"
9838 case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841 esac
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_compile") 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest.$ac_objext; then
9853 ac_cv_type_size_t=yes
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_cv_type_size_t=no
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9863 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9864 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9866 # The cast to long int works around a bug in the HP C Compiler
9867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9869 # This bug is HP SR number 8606223364.
9870 { echo "$as_me:$LINENO: checking size of size_t" >&5
9871 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9872 if test "${ac_cv_sizeof_size_t+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 if test "$cross_compiling" = yes; then
9876 # Depending upon the size, compute the lo and hi bounds.
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 $ac_includes_default
9884 typedef size_t ac__type_sizeof_;
9886 main ()
9888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9889 test_array [0] = 0
9892 return 0;
9894 _ACEOF
9895 rm -f conftest.$ac_objext
9896 if { (ac_try="$ac_compile"
9897 case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_compile") 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest.$ac_objext; then
9912 ac_lo=0 ac_mid=0
9913 while :; do
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 $ac_includes_default
9921 typedef size_t ac__type_sizeof_;
9923 main ()
9925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9926 test_array [0] = 0
9929 return 0;
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (ac_try="$ac_compile"
9934 case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_compile") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest.$ac_objext; then
9949 ac_hi=$ac_mid; break
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_lo=`expr $ac_mid + 1`
9955 if test $ac_lo -le $ac_mid; then
9956 ac_lo= ac_hi=
9957 break
9959 ac_mid=`expr 2 '*' $ac_mid + 1`
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963 done
9964 else
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h. */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9974 $ac_includes_default
9975 typedef size_t ac__type_sizeof_;
9977 main ()
9979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9980 test_array [0] = 0
9983 return 0;
9985 _ACEOF
9986 rm -f conftest.$ac_objext
9987 if { (ac_try="$ac_compile"
9988 case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991 esac
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_compile") 2>conftest.er1
9994 ac_status=$?
9995 grep -v '^ *+' conftest.er1 >conftest.err
9996 rm -f conftest.er1
9997 cat conftest.err >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } && {
10000 test -z "$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 } && test -s conftest.$ac_objext; then
10003 ac_hi=-1 ac_mid=-1
10004 while :; do
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 $ac_includes_default
10012 typedef size_t ac__type_sizeof_;
10014 main ()
10016 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10017 test_array [0] = 0
10020 return 0;
10022 _ACEOF
10023 rm -f conftest.$ac_objext
10024 if { (ac_try="$ac_compile"
10025 case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_compile") 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } && {
10037 test -z "$ac_c_werror_flag" ||
10038 test ! -s conftest.err
10039 } && test -s conftest.$ac_objext; then
10040 ac_lo=$ac_mid; break
10041 else
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10045 ac_hi=`expr '(' $ac_mid ')' - 1`
10046 if test $ac_mid -le $ac_hi; then
10047 ac_lo= ac_hi=
10048 break
10050 ac_mid=`expr 2 '*' $ac_mid`
10053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054 done
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_lo= ac_hi=
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066 # Binary search between lo and hi bounds.
10067 while test "x$ac_lo" != "x$ac_hi"; do
10068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 $ac_includes_default
10076 typedef size_t ac__type_sizeof_;
10078 main ()
10080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10081 test_array [0] = 0
10084 return 0;
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (ac_try="$ac_compile"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_compile") 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest.$ac_objext; then
10104 ac_hi=$ac_mid
10105 else
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 ac_lo=`expr '(' $ac_mid ')' + 1`
10112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10113 done
10114 case $ac_lo in
10115 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10116 '') if test "$ac_cv_type_size_t" = yes; then
10117 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10118 See \`config.log' for more details." >&5
10119 echo "$as_me: error: cannot compute sizeof (size_t)
10120 See \`config.log' for more details." >&2;}
10121 { (exit 77); exit 77; }; }
10122 else
10123 ac_cv_sizeof_size_t=0
10124 fi ;;
10125 esac
10126 else
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 $ac_includes_default
10134 typedef size_t ac__type_sizeof_;
10135 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10136 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10137 #include <stdio.h>
10138 #include <stdlib.h>
10140 main ()
10143 FILE *f = fopen ("conftest.val", "w");
10144 if (! f)
10145 return 1;
10146 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10148 long int i = longval ();
10149 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10150 return 1;
10151 fprintf (f, "%ld\n", i);
10153 else
10155 unsigned long int i = ulongval ();
10156 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10157 return 1;
10158 fprintf (f, "%lu\n", i);
10160 return ferror (f) || fclose (f) != 0;
10163 return 0;
10165 _ACEOF
10166 rm -f conftest$ac_exeext
10167 if { (ac_try="$ac_link"
10168 case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171 esac
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_link") 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10177 { (case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10180 esac
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_try") 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_cv_sizeof_size_t=`cat conftest.val`
10187 else
10188 echo "$as_me: program exited with status $ac_status" >&5
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 ( exit $ac_status )
10193 if test "$ac_cv_type_size_t" = yes; then
10194 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10195 See \`config.log' for more details." >&5
10196 echo "$as_me: error: cannot compute sizeof (size_t)
10197 See \`config.log' for more details." >&2;}
10198 { (exit 77); exit 77; }; }
10199 else
10200 ac_cv_sizeof_size_t=0
10203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10205 rm -f conftest.val
10207 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10208 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10212 cat >>confdefs.h <<_ACEOF
10213 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10214 _ACEOF
10217 { echo "$as_me:$LINENO: checking for pid_t" >&5
10218 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10219 if test "${ac_cv_type_pid_t+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h. */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 $ac_includes_default
10229 typedef pid_t ac__type_new_;
10231 main ()
10233 if ((ac__type_new_ *) 0)
10234 return 0;
10235 if (sizeof (ac__type_new_))
10236 return 0;
10238 return 0;
10240 _ACEOF
10241 rm -f conftest.$ac_objext
10242 if { (ac_try="$ac_compile"
10243 case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_compile") 2>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest.$ac_objext; then
10258 ac_cv_type_pid_t=yes
10259 else
10260 echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10263 ac_cv_type_pid_t=no
10266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10269 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10271 # The cast to long int works around a bug in the HP C Compiler
10272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10274 # This bug is HP SR number 8606223364.
10275 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10276 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10277 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 if test "$cross_compiling" = yes; then
10281 # Depending upon the size, compute the lo and hi bounds.
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10289 typedef pid_t ac__type_sizeof_;
10291 main ()
10293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10294 test_array [0] = 0
10297 return 0;
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (ac_try="$ac_compile"
10302 case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_compile") 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest.$ac_objext; then
10317 ac_lo=0 ac_mid=0
10318 while :; do
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h. */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 $ac_includes_default
10326 typedef pid_t ac__type_sizeof_;
10328 main ()
10330 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10331 test_array [0] = 0
10334 return 0;
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 if { (ac_try="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_compile") 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest.$ac_objext; then
10354 ac_hi=$ac_mid; break
10355 else
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_lo=`expr $ac_mid + 1`
10360 if test $ac_lo -le $ac_mid; then
10361 ac_lo= ac_hi=
10362 break
10364 ac_mid=`expr 2 '*' $ac_mid + 1`
10367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368 done
10369 else
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 $ac_includes_default
10380 typedef pid_t ac__type_sizeof_;
10382 main ()
10384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10385 test_array [0] = 0
10388 return 0;
10390 _ACEOF
10391 rm -f conftest.$ac_objext
10392 if { (ac_try="$ac_compile"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_compile") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest.$ac_objext; then
10408 ac_hi=-1 ac_mid=-1
10409 while :; do
10410 cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h. */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 $ac_includes_default
10417 typedef pid_t ac__type_sizeof_;
10419 main ()
10421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10422 test_array [0] = 0
10425 return 0;
10427 _ACEOF
10428 rm -f conftest.$ac_objext
10429 if { (ac_try="$ac_compile"
10430 case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10433 esac
10434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_compile") 2>conftest.er1
10436 ac_status=$?
10437 grep -v '^ *+' conftest.er1 >conftest.err
10438 rm -f conftest.er1
10439 cat conftest.err >&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } && {
10442 test -z "$ac_c_werror_flag" ||
10443 test ! -s conftest.err
10444 } && test -s conftest.$ac_objext; then
10445 ac_lo=$ac_mid; break
10446 else
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_hi=`expr '(' $ac_mid ')' - 1`
10451 if test $ac_mid -le $ac_hi; then
10452 ac_lo= ac_hi=
10453 break
10455 ac_mid=`expr 2 '*' $ac_mid`
10458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 done
10460 else
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_lo= ac_hi=
10467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471 # Binary search between lo and hi bounds.
10472 while test "x$ac_lo" != "x$ac_hi"; do
10473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10474 cat >conftest.$ac_ext <<_ACEOF
10475 /* confdefs.h. */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10480 $ac_includes_default
10481 typedef pid_t ac__type_sizeof_;
10483 main ()
10485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10486 test_array [0] = 0
10489 return 0;
10491 _ACEOF
10492 rm -f conftest.$ac_objext
10493 if { (ac_try="$ac_compile"
10494 case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10497 esac
10498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10499 (eval "$ac_compile") 2>conftest.er1
10500 ac_status=$?
10501 grep -v '^ *+' conftest.er1 >conftest.err
10502 rm -f conftest.er1
10503 cat conftest.err >&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } && {
10506 test -z "$ac_c_werror_flag" ||
10507 test ! -s conftest.err
10508 } && test -s conftest.$ac_objext; then
10509 ac_hi=$ac_mid
10510 else
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 ac_lo=`expr '(' $ac_mid ')' + 1`
10517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 done
10519 case $ac_lo in
10520 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10521 '') if test "$ac_cv_type_pid_t" = yes; then
10522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10523 See \`config.log' for more details." >&5
10524 echo "$as_me: error: cannot compute sizeof (pid_t)
10525 See \`config.log' for more details." >&2;}
10526 { (exit 77); exit 77; }; }
10527 else
10528 ac_cv_sizeof_pid_t=0
10529 fi ;;
10530 esac
10531 else
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h. */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 $ac_includes_default
10539 typedef pid_t ac__type_sizeof_;
10540 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10541 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10542 #include <stdio.h>
10543 #include <stdlib.h>
10545 main ()
10548 FILE *f = fopen ("conftest.val", "w");
10549 if (! f)
10550 return 1;
10551 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10553 long int i = longval ();
10554 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10555 return 1;
10556 fprintf (f, "%ld\n", i);
10558 else
10560 unsigned long int i = ulongval ();
10561 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10562 return 1;
10563 fprintf (f, "%lu\n", i);
10565 return ferror (f) || fclose (f) != 0;
10568 return 0;
10570 _ACEOF
10571 rm -f conftest$ac_exeext
10572 if { (ac_try="$ac_link"
10573 case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10576 esac
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_link") 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10582 { (case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585 esac
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_try") 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 ac_cv_sizeof_pid_t=`cat conftest.val`
10592 else
10593 echo "$as_me: program exited with status $ac_status" >&5
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 ( exit $ac_status )
10598 if test "$ac_cv_type_pid_t" = yes; then
10599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10600 See \`config.log' for more details." >&5
10601 echo "$as_me: error: cannot compute sizeof (pid_t)
10602 See \`config.log' for more details." >&2;}
10603 { (exit 77); exit 77; }; }
10604 else
10605 ac_cv_sizeof_pid_t=0
10608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10610 rm -f conftest.val
10612 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10613 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10617 cat >>confdefs.h <<_ACEOF
10618 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10619 _ACEOF
10623 { echo "$as_me:$LINENO: checking for long long support" >&5
10624 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10625 have_long_long=no
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h. */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10634 main ()
10636 long long x; x = (long long)0;
10638 return 0;
10640 _ACEOF
10641 rm -f conftest.$ac_objext
10642 if { (ac_try="$ac_compile"
10643 case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_compile") 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && {
10655 test -z "$ac_c_werror_flag" ||
10656 test ! -s conftest.err
10657 } && test -s conftest.$ac_objext; then
10660 cat >>confdefs.h <<\_ACEOF
10661 #define HAVE_LONG_LONG 1
10662 _ACEOF
10664 have_long_long=yes
10666 else
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10675 echo "${ECHO_T}$have_long_long" >&6; }
10676 if test "$have_long_long" = yes ; then
10677 { echo "$as_me:$LINENO: checking for long long" >&5
10678 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10679 if test "${ac_cv_type_long_long+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 $ac_includes_default
10689 typedef long long ac__type_new_;
10691 main ()
10693 if ((ac__type_new_ *) 0)
10694 return 0;
10695 if (sizeof (ac__type_new_))
10696 return 0;
10698 return 0;
10700 _ACEOF
10701 rm -f conftest.$ac_objext
10702 if { (ac_try="$ac_compile"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_compile") 2>conftest.er1
10709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } && {
10715 test -z "$ac_c_werror_flag" ||
10716 test ! -s conftest.err
10717 } && test -s conftest.$ac_objext; then
10718 ac_cv_type_long_long=yes
10719 else
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10723 ac_cv_type_long_long=no
10726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10729 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10731 # The cast to long int works around a bug in the HP C Compiler
10732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10734 # This bug is HP SR number 8606223364.
10735 { echo "$as_me:$LINENO: checking size of long long" >&5
10736 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10737 if test "${ac_cv_sizeof_long_long+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740 if test "$cross_compiling" = yes; then
10741 # Depending upon the size, compute the lo and hi bounds.
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 $ac_includes_default
10749 typedef long long ac__type_sizeof_;
10751 main ()
10753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10754 test_array [0] = 0
10757 return 0;
10759 _ACEOF
10760 rm -f conftest.$ac_objext
10761 if { (ac_try="$ac_compile"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_compile") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest.$ac_objext; then
10777 ac_lo=0 ac_mid=0
10778 while :; do
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 $ac_includes_default
10786 typedef long long ac__type_sizeof_;
10788 main ()
10790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10791 test_array [0] = 0
10794 return 0;
10796 _ACEOF
10797 rm -f conftest.$ac_objext
10798 if { (ac_try="$ac_compile"
10799 case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_compile") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } && {
10811 test -z "$ac_c_werror_flag" ||
10812 test ! -s conftest.err
10813 } && test -s conftest.$ac_objext; then
10814 ac_hi=$ac_mid; break
10815 else
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10819 ac_lo=`expr $ac_mid + 1`
10820 if test $ac_lo -le $ac_mid; then
10821 ac_lo= ac_hi=
10822 break
10824 ac_mid=`expr 2 '*' $ac_mid + 1`
10827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 done
10829 else
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10833 cat >conftest.$ac_ext <<_ACEOF
10834 /* confdefs.h. */
10835 _ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839 $ac_includes_default
10840 typedef long long ac__type_sizeof_;
10842 main ()
10844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10845 test_array [0] = 0
10848 return 0;
10850 _ACEOF
10851 rm -f conftest.$ac_objext
10852 if { (ac_try="$ac_compile"
10853 case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_compile") 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest.$ac_objext; then
10868 ac_hi=-1 ac_mid=-1
10869 while :; do
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 $ac_includes_default
10877 typedef long long ac__type_sizeof_;
10879 main ()
10881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10882 test_array [0] = 0
10885 return 0;
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest.$ac_objext; then
10905 ac_lo=$ac_mid; break
10906 else
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_hi=`expr '(' $ac_mid ')' - 1`
10911 if test $ac_mid -le $ac_hi; then
10912 ac_lo= ac_hi=
10913 break
10915 ac_mid=`expr 2 '*' $ac_mid`
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 done
10920 else
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_lo= ac_hi=
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 # Binary search between lo and hi bounds.
10932 while test "x$ac_lo" != "x$ac_hi"; do
10933 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10934 cat >conftest.$ac_ext <<_ACEOF
10935 /* confdefs.h. */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10940 $ac_includes_default
10941 typedef long long ac__type_sizeof_;
10943 main ()
10945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10946 test_array [0] = 0
10949 return 0;
10951 _ACEOF
10952 rm -f conftest.$ac_objext
10953 if { (ac_try="$ac_compile"
10954 case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_compile") 2>conftest.er1
10960 ac_status=$?
10961 grep -v '^ *+' conftest.er1 >conftest.err
10962 rm -f conftest.er1
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } && {
10966 test -z "$ac_c_werror_flag" ||
10967 test ! -s conftest.err
10968 } && test -s conftest.$ac_objext; then
10969 ac_hi=$ac_mid
10970 else
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_lo=`expr '(' $ac_mid ')' + 1`
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 done
10979 case $ac_lo in
10980 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10981 '') if test "$ac_cv_type_long_long" = yes; then
10982 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10983 See \`config.log' for more details." >&5
10984 echo "$as_me: error: cannot compute sizeof (long long)
10985 See \`config.log' for more details." >&2;}
10986 { (exit 77); exit 77; }; }
10987 else
10988 ac_cv_sizeof_long_long=0
10989 fi ;;
10990 esac
10991 else
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 $ac_includes_default
10999 typedef long long ac__type_sizeof_;
11000 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11001 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11002 #include <stdio.h>
11003 #include <stdlib.h>
11005 main ()
11008 FILE *f = fopen ("conftest.val", "w");
11009 if (! f)
11010 return 1;
11011 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11013 long int i = longval ();
11014 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11015 return 1;
11016 fprintf (f, "%ld\n", i);
11018 else
11020 unsigned long int i = ulongval ();
11021 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11022 return 1;
11023 fprintf (f, "%lu\n", i);
11025 return ferror (f) || fclose (f) != 0;
11028 return 0;
11030 _ACEOF
11031 rm -f conftest$ac_exeext
11032 if { (ac_try="$ac_link"
11033 case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_link") 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11042 { (case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11045 esac
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 (eval "$ac_try") 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_cv_sizeof_long_long=`cat conftest.val`
11052 else
11053 echo "$as_me: program exited with status $ac_status" >&5
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11057 ( exit $ac_status )
11058 if test "$ac_cv_type_long_long" = yes; then
11059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11060 See \`config.log' for more details." >&5
11061 echo "$as_me: error: cannot compute sizeof (long long)
11062 See \`config.log' for more details." >&2;}
11063 { (exit 77); exit 77; }; }
11064 else
11065 ac_cv_sizeof_long_long=0
11068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11070 rm -f conftest.val
11072 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11073 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11077 cat >>confdefs.h <<_ACEOF
11078 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11079 _ACEOF
11084 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11085 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11086 have_c99_bool=no
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h. */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11095 main ()
11097 _Bool x; x = (_Bool)0;
11099 return 0;
11101 _ACEOF
11102 rm -f conftest.$ac_objext
11103 if { (ac_try="$ac_compile"
11104 case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_compile") 2>conftest.er1
11110 ac_status=$?
11111 grep -v '^ *+' conftest.er1 >conftest.err
11112 rm -f conftest.er1
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } && {
11116 test -z "$ac_c_werror_flag" ||
11117 test ! -s conftest.err
11118 } && test -s conftest.$ac_objext; then
11121 cat >>confdefs.h <<\_ACEOF
11122 #define HAVE_C99_BOOL 1
11123 _ACEOF
11125 have_c99_bool=yes
11127 else
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11136 echo "${ECHO_T}$have_c99_bool" >&6; }
11137 if test "$have_c99_bool" = yes ; then
11138 { echo "$as_me:$LINENO: checking for _Bool" >&5
11139 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11140 if test "${ac_cv_type__Bool+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 $ac_includes_default
11150 typedef _Bool ac__type_new_;
11152 main ()
11154 if ((ac__type_new_ *) 0)
11155 return 0;
11156 if (sizeof (ac__type_new_))
11157 return 0;
11159 return 0;
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (ac_try="$ac_compile"
11164 case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_compile") 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } && {
11176 test -z "$ac_c_werror_flag" ||
11177 test ! -s conftest.err
11178 } && test -s conftest.$ac_objext; then
11179 ac_cv_type__Bool=yes
11180 else
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_cv_type__Bool=no
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11189 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11190 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11192 # The cast to long int works around a bug in the HP C Compiler
11193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11195 # This bug is HP SR number 8606223364.
11196 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11197 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11198 if test "${ac_cv_sizeof__Bool+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201 if test "$cross_compiling" = yes; then
11202 # Depending upon the size, compute the lo and hi bounds.
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 $ac_includes_default
11210 typedef _Bool ac__type_sizeof_;
11212 main ()
11214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11215 test_array [0] = 0
11218 return 0;
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (ac_try="$ac_compile"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11226 esac
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_compile") 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && {
11235 test -z "$ac_c_werror_flag" ||
11236 test ! -s conftest.err
11237 } && test -s conftest.$ac_objext; then
11238 ac_lo=0 ac_mid=0
11239 while :; do
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 $ac_includes_default
11247 typedef _Bool ac__type_sizeof_;
11249 main ()
11251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11252 test_array [0] = 0
11255 return 0;
11257 _ACEOF
11258 rm -f conftest.$ac_objext
11259 if { (ac_try="$ac_compile"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_compile") 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && {
11272 test -z "$ac_c_werror_flag" ||
11273 test ! -s conftest.err
11274 } && test -s conftest.$ac_objext; then
11275 ac_hi=$ac_mid; break
11276 else
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_lo=`expr $ac_mid + 1`
11281 if test $ac_lo -le $ac_mid; then
11282 ac_lo= ac_hi=
11283 break
11285 ac_mid=`expr 2 '*' $ac_mid + 1`
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 done
11290 else
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h. */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 $ac_includes_default
11301 typedef _Bool ac__type_sizeof_;
11303 main ()
11305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11306 test_array [0] = 0
11309 return 0;
11311 _ACEOF
11312 rm -f conftest.$ac_objext
11313 if { (ac_try="$ac_compile"
11314 case "(($ac_try" in
11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11317 esac
11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_compile") 2>conftest.er1
11320 ac_status=$?
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && {
11326 test -z "$ac_c_werror_flag" ||
11327 test ! -s conftest.err
11328 } && test -s conftest.$ac_objext; then
11329 ac_hi=-1 ac_mid=-1
11330 while :; do
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h. */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11338 typedef _Bool ac__type_sizeof_;
11340 main ()
11342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11343 test_array [0] = 0
11346 return 0;
11348 _ACEOF
11349 rm -f conftest.$ac_objext
11350 if { (ac_try="$ac_compile"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_compile") 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } && {
11363 test -z "$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11365 } && test -s conftest.$ac_objext; then
11366 ac_lo=$ac_mid; break
11367 else
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 ac_hi=`expr '(' $ac_mid ')' - 1`
11372 if test $ac_mid -le $ac_hi; then
11373 ac_lo= ac_hi=
11374 break
11376 ac_mid=`expr 2 '*' $ac_mid`
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 done
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_lo= ac_hi=
11388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392 # Binary search between lo and hi bounds.
11393 while test "x$ac_lo" != "x$ac_hi"; do
11394 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h. */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 $ac_includes_default
11402 typedef _Bool ac__type_sizeof_;
11404 main ()
11406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11407 test_array [0] = 0
11410 return 0;
11412 _ACEOF
11413 rm -f conftest.$ac_objext
11414 if { (ac_try="$ac_compile"
11415 case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_compile") 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } && {
11427 test -z "$ac_c_werror_flag" ||
11428 test ! -s conftest.err
11429 } && test -s conftest.$ac_objext; then
11430 ac_hi=$ac_mid
11431 else
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11435 ac_lo=`expr '(' $ac_mid ')' + 1`
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 done
11440 case $ac_lo in
11441 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11442 '') if test "$ac_cv_type__Bool" = yes; then
11443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11444 See \`config.log' for more details." >&5
11445 echo "$as_me: error: cannot compute sizeof (_Bool)
11446 See \`config.log' for more details." >&2;}
11447 { (exit 77); exit 77; }; }
11448 else
11449 ac_cv_sizeof__Bool=0
11450 fi ;;
11451 esac
11452 else
11453 cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h. */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 $ac_includes_default
11460 typedef _Bool ac__type_sizeof_;
11461 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11462 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11463 #include <stdio.h>
11464 #include <stdlib.h>
11466 main ()
11469 FILE *f = fopen ("conftest.val", "w");
11470 if (! f)
11471 return 1;
11472 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11474 long int i = longval ();
11475 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11476 return 1;
11477 fprintf (f, "%ld\n", i);
11479 else
11481 unsigned long int i = ulongval ();
11482 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11483 return 1;
11484 fprintf (f, "%lu\n", i);
11486 return ferror (f) || fclose (f) != 0;
11489 return 0;
11491 _ACEOF
11492 rm -f conftest$ac_exeext
11493 if { (ac_try="$ac_link"
11494 case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497 esac
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_link") 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11503 { (case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11506 esac
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_try") 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_sizeof__Bool=`cat conftest.val`
11513 else
11514 echo "$as_me: program exited with status $ac_status" >&5
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11518 ( exit $ac_status )
11519 if test "$ac_cv_type__Bool" = yes; then
11520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11521 See \`config.log' for more details." >&5
11522 echo "$as_me: error: cannot compute sizeof (_Bool)
11523 See \`config.log' for more details." >&2;}
11524 { (exit 77); exit 77; }; }
11525 else
11526 ac_cv_sizeof__Bool=0
11529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11531 rm -f conftest.val
11533 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11534 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11538 cat >>confdefs.h <<_ACEOF
11539 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11540 _ACEOF
11545 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11546 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11547 if test "${ac_cv_type_uintptr_t+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h. */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 #ifdef HAVE_STDINT_H
11557 #include <stdint.h>
11558 #endif
11560 typedef uintptr_t ac__type_new_;
11562 main ()
11564 if ((ac__type_new_ *) 0)
11565 return 0;
11566 if (sizeof (ac__type_new_))
11567 return 0;
11569 return 0;
11571 _ACEOF
11572 rm -f conftest.$ac_objext
11573 if { (ac_try="$ac_compile"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_compile") 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } && {
11586 test -z "$ac_c_werror_flag" ||
11587 test ! -s conftest.err
11588 } && test -s conftest.$ac_objext; then
11589 ac_cv_type_uintptr_t=yes
11590 else
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 ac_cv_type_uintptr_t=no
11597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11600 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11601 if test $ac_cv_type_uintptr_t = yes; then
11603 cat >>confdefs.h <<_ACEOF
11604 #define HAVE_UINTPTR_T 1
11605 _ACEOF
11607 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11608 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11609 if test "${ac_cv_type_uintptr_t+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612 cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h. */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 $ac_includes_default
11619 typedef uintptr_t ac__type_new_;
11621 main ()
11623 if ((ac__type_new_ *) 0)
11624 return 0;
11625 if (sizeof (ac__type_new_))
11626 return 0;
11628 return 0;
11630 _ACEOF
11631 rm -f conftest.$ac_objext
11632 if { (ac_try="$ac_compile"
11633 case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
11648 ac_cv_type_uintptr_t=yes
11649 else
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ac_cv_type_uintptr_t=no
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11659 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11661 # The cast to long int works around a bug in the HP C Compiler
11662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11664 # This bug is HP SR number 8606223364.
11665 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11666 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11667 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670 if test "$cross_compiling" = yes; then
11671 # Depending upon the size, compute the lo and hi bounds.
11672 cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h. */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 $ac_includes_default
11679 typedef uintptr_t ac__type_sizeof_;
11681 main ()
11683 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11684 test_array [0] = 0
11687 return 0;
11689 _ACEOF
11690 rm -f conftest.$ac_objext
11691 if { (ac_try="$ac_compile"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_compile") 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest.$ac_objext; then
11707 ac_lo=0 ac_mid=0
11708 while :; do
11709 cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h. */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11715 $ac_includes_default
11716 typedef uintptr_t ac__type_sizeof_;
11718 main ()
11720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11721 test_array [0] = 0
11724 return 0;
11726 _ACEOF
11727 rm -f conftest.$ac_objext
11728 if { (ac_try="$ac_compile"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_compile") 2>conftest.er1
11735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest.$ac_objext; then
11744 ac_hi=$ac_mid; break
11745 else
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749 ac_lo=`expr $ac_mid + 1`
11750 if test $ac_lo -le $ac_mid; then
11751 ac_lo= ac_hi=
11752 break
11754 ac_mid=`expr 2 '*' $ac_mid + 1`
11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758 done
11759 else
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11763 cat >conftest.$ac_ext <<_ACEOF
11764 /* confdefs.h. */
11765 _ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 $ac_includes_default
11770 typedef uintptr_t ac__type_sizeof_;
11772 main ()
11774 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11775 test_array [0] = 0
11778 return 0;
11780 _ACEOF
11781 rm -f conftest.$ac_objext
11782 if { (ac_try="$ac_compile"
11783 case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786 esac
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_compile") 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } && {
11795 test -z "$ac_c_werror_flag" ||
11796 test ! -s conftest.err
11797 } && test -s conftest.$ac_objext; then
11798 ac_hi=-1 ac_mid=-1
11799 while :; do
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 $ac_includes_default
11807 typedef uintptr_t ac__type_sizeof_;
11809 main ()
11811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11812 test_array [0] = 0
11815 return 0;
11817 _ACEOF
11818 rm -f conftest.$ac_objext
11819 if { (ac_try="$ac_compile"
11820 case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11823 esac
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_compile") 2>conftest.er1
11826 ac_status=$?
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } && {
11832 test -z "$ac_c_werror_flag" ||
11833 test ! -s conftest.err
11834 } && test -s conftest.$ac_objext; then
11835 ac_lo=$ac_mid; break
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_hi=`expr '(' $ac_mid ')' - 1`
11841 if test $ac_mid -le $ac_hi; then
11842 ac_lo= ac_hi=
11843 break
11845 ac_mid=`expr 2 '*' $ac_mid`
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11849 done
11850 else
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 ac_lo= ac_hi=
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 # Binary search between lo and hi bounds.
11862 while test "x$ac_lo" != "x$ac_hi"; do
11863 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11864 cat >conftest.$ac_ext <<_ACEOF
11865 /* confdefs.h. */
11866 _ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 $ac_includes_default
11871 typedef uintptr_t ac__type_sizeof_;
11873 main ()
11875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11876 test_array [0] = 0
11879 return 0;
11881 _ACEOF
11882 rm -f conftest.$ac_objext
11883 if { (ac_try="$ac_compile"
11884 case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887 esac
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_compile") 2>conftest.er1
11890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } && {
11896 test -z "$ac_c_werror_flag" ||
11897 test ! -s conftest.err
11898 } && test -s conftest.$ac_objext; then
11899 ac_hi=$ac_mid
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_lo=`expr '(' $ac_mid ')' + 1`
11907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11908 done
11909 case $ac_lo in
11910 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11911 '') if test "$ac_cv_type_uintptr_t" = yes; then
11912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11913 See \`config.log' for more details." >&5
11914 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11915 See \`config.log' for more details." >&2;}
11916 { (exit 77); exit 77; }; }
11917 else
11918 ac_cv_sizeof_uintptr_t=0
11919 fi ;;
11920 esac
11921 else
11922 cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h. */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 $ac_includes_default
11929 typedef uintptr_t ac__type_sizeof_;
11930 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11931 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11932 #include <stdio.h>
11933 #include <stdlib.h>
11935 main ()
11938 FILE *f = fopen ("conftest.val", "w");
11939 if (! f)
11940 return 1;
11941 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11943 long int i = longval ();
11944 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11945 return 1;
11946 fprintf (f, "%ld\n", i);
11948 else
11950 unsigned long int i = ulongval ();
11951 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11952 return 1;
11953 fprintf (f, "%lu\n", i);
11955 return ferror (f) || fclose (f) != 0;
11958 return 0;
11960 _ACEOF
11961 rm -f conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_link") 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11982 else
11983 echo "$as_me: program exited with status $ac_status" >&5
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ( exit $ac_status )
11988 if test "$ac_cv_type_uintptr_t" = yes; then
11989 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11990 See \`config.log' for more details." >&5
11991 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11992 See \`config.log' for more details." >&2;}
11993 { (exit 77); exit 77; }; }
11994 else
11995 ac_cv_sizeof_uintptr_t=0
11998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12000 rm -f conftest.val
12002 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12003 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12007 cat >>confdefs.h <<_ACEOF
12008 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12009 _ACEOF
12016 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12017 { echo "$as_me:$LINENO: checking size of off_t" >&5
12018 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12019 if test "${ac_cv_sizeof_off_t+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022 if test "$cross_compiling" = yes; then
12023 ac_cv_sizeof_off_t=4
12024 else
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h. */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 #include <stdio.h>
12032 #include <sys/types.h>
12033 main()
12035 FILE *f=fopen("conftestval", "w");
12036 if (!f) exit(1);
12037 fprintf(f, "%d\n", sizeof(off_t));
12038 exit(0);
12040 _ACEOF
12041 rm -f conftest$ac_exeext
12042 if { (ac_try="$ac_link"
12043 case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046 esac
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_link") 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_sizeof_off_t=`cat conftestval`
12062 else
12063 echo "$as_me: program exited with status $ac_status" >&5
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ( exit $ac_status )
12068 ac_cv_sizeof_off_t=0
12070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12077 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12078 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12080 cat >>confdefs.h <<_ACEOF
12081 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12082 _ACEOF
12085 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12086 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12087 if test "$have_long_long" = yes -a \
12088 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12089 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12091 cat >>confdefs.h <<\_ACEOF
12092 #define HAVE_LARGEFILE_SUPPORT 1
12093 _ACEOF
12095 { echo "$as_me:$LINENO: result: yes" >&5
12096 echo "${ECHO_T}yes" >&6; }
12097 else
12098 { echo "$as_me:$LINENO: result: no" >&5
12099 echo "${ECHO_T}no" >&6; }
12102 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12103 { echo "$as_me:$LINENO: checking size of time_t" >&5
12104 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12105 if test "${ac_cv_sizeof_time_t+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 if test "$cross_compiling" = yes; then
12109 ac_cv_sizeof_time_t=4
12110 else
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h. */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 #include <stdio.h>
12118 #include <time.h>
12119 main()
12121 FILE *f=fopen("conftestval", "w");
12122 if (!f) exit(1);
12123 fprintf(f, "%d\n", sizeof(time_t));
12124 exit(0);
12126 _ACEOF
12127 rm -f conftest$ac_exeext
12128 if { (ac_try="$ac_link"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_link") 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12138 { (case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_try") 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_sizeof_time_t=`cat conftestval`
12148 else
12149 echo "$as_me: program exited with status $ac_status" >&5
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ( exit $ac_status )
12154 ac_cv_sizeof_time_t=0
12156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12163 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12164 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12166 cat >>confdefs.h <<_ACEOF
12167 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12168 _ACEOF
12172 # if have pthread_t then define SIZEOF_PTHREAD_T
12173 ac_save_cc="$CC"
12174 if test "$ac_cv_kpthread" = "yes"
12175 then CC="$CC -Kpthread"
12176 elif test "$ac_cv_kthread" = "yes"
12177 then CC="$CC -Kthread"
12178 elif test "$ac_cv_pthread" = "yes"
12179 then CC="$CC -pthread"
12181 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12182 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12183 have_pthread_t=no
12184 cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h. */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190 #include <pthread.h>
12192 main ()
12194 pthread_t x; x = *(pthread_t*)0;
12196 return 0;
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (ac_try="$ac_compile"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_compile") 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest.$ac_objext; then
12216 have_pthread_t=yes
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12226 echo "${ECHO_T}$have_pthread_t" >&6; }
12227 if test "$have_pthread_t" = yes ; then
12228 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12229 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12230 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12231 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234 if test "$cross_compiling" = yes; then
12235 ac_cv_sizeof_pthread_t=4
12236 else
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 #include <stdio.h>
12244 #include <pthread.h>
12245 main()
12247 FILE *f=fopen("conftestval", "w");
12248 if (!f) exit(1);
12249 fprintf(f, "%d\n", sizeof(pthread_t));
12250 exit(0);
12252 _ACEOF
12253 rm -f conftest$ac_exeext
12254 if { (ac_try="$ac_link"
12255 case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12258 esac
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_link") 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12264 { (case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12267 esac
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_try") 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_cv_sizeof_pthread_t=`cat conftestval`
12274 else
12275 echo "$as_me: program exited with status $ac_status" >&5
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12279 ( exit $ac_status )
12280 ac_cv_sizeof_pthread_t=0
12282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12289 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12290 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12292 cat >>confdefs.h <<_ACEOF
12293 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12294 _ACEOF
12297 CC="$ac_save_cc"
12299 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12300 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12301 # Check whether --enable-toolbox-glue was given.
12302 if test "${enable_toolbox_glue+set}" = set; then
12303 enableval=$enable_toolbox_glue;
12307 if test -z "$enable_toolbox_glue"
12308 then
12309 case $ac_sys_system/$ac_sys_release in
12310 Darwin/*)
12311 enable_toolbox_glue="yes";;
12313 enable_toolbox_glue="no";;
12314 esac
12316 case "$enable_toolbox_glue" in
12317 yes)
12318 extra_machdep_objs="Python/mactoolboxglue.o"
12319 extra_undefs="-u _PyMac_Error"
12321 cat >>confdefs.h <<\_ACEOF
12322 #define USE_TOOLBOX_OBJECT_GLUE 1
12323 _ACEOF
12327 extra_machdep_objs=""
12328 extra_undefs=""
12330 esac
12331 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12332 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12335 case $ac_sys_system/$ac_sys_release in
12336 Darwin/[01567]\..*)
12337 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12339 Darwin/*)
12340 OTHER_LIBTOOL_OPT=""
12342 esac
12345 case $ac_sys_system/$ac_sys_release in
12346 Darwin/[01567]\..*)
12347 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12348 if test "${enable_universalsdk}"; then
12350 else
12351 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -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 Darwin/*)
12356 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12357 if test ${gcc_version} '<' 4.0
12358 then
12359 LIBTOOL_CRUFT="-lcc_dynamic"
12360 else
12361 LIBTOOL_CRUFT=""
12363 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
12364 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12365 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12366 esac
12368 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12369 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12370 if test "$enable_framework"
12371 then
12372 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12373 # -F. is needed to allow linking to the framework while
12374 # in the build location.
12376 cat >>confdefs.h <<\_ACEOF
12377 #define WITH_NEXT_FRAMEWORK 1
12378 _ACEOF
12380 { echo "$as_me:$LINENO: result: yes" >&5
12381 echo "${ECHO_T}yes" >&6; }
12382 else
12383 { echo "$as_me:$LINENO: result: no" >&5
12384 echo "${ECHO_T}no" >&6; }
12387 { echo "$as_me:$LINENO: checking for dyld" >&5
12388 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12389 case $ac_sys_system/$ac_sys_release in
12390 Darwin/*)
12392 cat >>confdefs.h <<\_ACEOF
12393 #define WITH_DYLD 1
12394 _ACEOF
12396 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12397 echo "${ECHO_T}always on for Darwin" >&6; }
12400 { echo "$as_me:$LINENO: result: no" >&5
12401 echo "${ECHO_T}no" >&6; }
12403 esac
12405 # Set info about shared libraries.
12411 # SO is the extension of shared libraries `(including the dot!)
12412 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12413 { echo "$as_me:$LINENO: checking SO" >&5
12414 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12415 if test -z "$SO"
12416 then
12417 case $ac_sys_system in
12418 hp*|HP*)
12419 case `uname -m` in
12420 ia64) SO=.so;;
12421 *) SO=.sl;;
12422 esac
12424 CYGWIN*) SO=.dll;;
12425 *) SO=.so;;
12426 esac
12427 else
12428 # this might also be a termcap variable, see #610332
12429 echo
12430 echo '====================================================================='
12431 echo '+ +'
12432 echo '+ WARNING: You have set SO in your environment. +'
12433 echo '+ Do you really mean to change the extension for shared libraries? +'
12434 echo '+ Continuing in 10 seconds to let you to ponder. +'
12435 echo '+ +'
12436 echo '====================================================================='
12437 sleep 10
12439 { echo "$as_me:$LINENO: result: $SO" >&5
12440 echo "${ECHO_T}$SO" >&6; }
12442 cat >>confdefs.h <<_ACEOF
12443 #define SHLIB_EXT "$SO"
12444 _ACEOF
12446 # LDSHARED is the ld *command* used to create shared library
12447 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12448 # (Shared libraries in this instance are shared modules to be loaded into
12449 # Python, as opposed to building Python itself as a shared library.)
12450 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12451 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12452 if test -z "$LDSHARED"
12453 then
12454 case $ac_sys_system/$ac_sys_release in
12455 AIX*)
12456 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12457 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12459 BeOS*)
12460 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12461 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12463 IRIX/5*) LDSHARED="ld -shared";;
12464 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
12465 SunOS/5*)
12466 if test "$GCC" = "yes"
12467 then LDSHARED='$(CC) -shared'
12468 else LDSHARED='$(CC) -G';
12469 fi ;;
12470 hp*|HP*)
12471 if test "$GCC" = "yes"
12472 then LDSHARED='$(CC) -shared'
12473 else LDSHARED='ld -b';
12474 fi ;;
12475 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
12476 Darwin/1.3*)
12477 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12478 if test "$enable_framework" ; then
12479 # Link against the framework. All externals should be defined.
12480 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12481 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12482 else
12483 # No framework. Ignore undefined symbols, assuming they come from Python
12484 LDSHARED="$LDSHARED -undefined suppress"
12485 fi ;;
12486 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12487 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12488 if test "$enable_framework" ; then
12489 # Link against the framework. All externals should be defined.
12490 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12491 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12492 else
12493 # No framework, use the Python app as bundle-loader
12494 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12495 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12496 fi ;;
12497 Darwin/*)
12498 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12499 # This allows an extension to be used in any Python
12500 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12501 if test ${cur_target} '>' 10.2; then
12502 cur_target=10.3
12504 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12506 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12507 # environment with a value that is the same as what we'll use
12508 # in the Makefile to ensure that we'll get the same compiler
12509 # environment during configure and build time.
12510 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12511 export MACOSX_DEPLOYMENT_TARGET
12513 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
12514 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12515 then
12516 if test "${enable_universalsdk}"; then
12517 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12519 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12520 BLDSHARED="$LDSHARED"
12521 else
12522 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12523 if test "$enable_framework" ; then
12524 # Link against the framework. All externals should be defined.
12525 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12526 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12527 else
12528 # No framework, use the Python app as bundle-loader
12529 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12530 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12534 Linux*|GNU*) LDSHARED='$(CC) -shared';;
12535 BSD/OS*/4*) LDSHARED="gcc -shared";;
12536 FreeBSD*)
12537 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12538 then
12539 LDSHARED="$CC -shared ${LDFLAGS}"
12540 else
12541 LDSHARED="ld -Bshareable ${LDFLAGS}"
12542 fi;;
12543 OpenBSD*)
12544 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12545 then
12546 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12547 else
12548 case `uname -r` in
12549 [01].* | 2.[0-7] | 2.[0-7].*)
12550 LDSHARED="ld -Bshareable ${LDFLAGS}"
12553 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12555 esac
12556 fi;;
12557 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
12558 OpenUNIX*|UnixWare*)
12559 if test "$GCC" = "yes"
12560 then LDSHARED='$(CC) -shared'
12561 else LDSHARED='$(CC) -G'
12562 fi;;
12563 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
12564 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12565 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
12566 atheos*) LDSHARED="gcc -shared";;
12567 *) LDSHARED="ld";;
12568 esac
12570 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12571 echo "${ECHO_T}$LDSHARED" >&6; }
12572 BLDSHARED=${BLDSHARED-$LDSHARED}
12573 # CCSHARED are the C *flags* used to create objects to go into a shared
12574 # library (module) -- this is only needed for a few systems
12575 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12576 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12577 if test -z "$CCSHARED"
12578 then
12579 case $ac_sys_system/$ac_sys_release in
12580 SunOS*) if test "$GCC" = yes;
12581 then CCSHARED="-fPIC";
12582 elif test `uname -p` = sparc;
12583 then CCSHARED="-xcode=pic32";
12584 else CCSHARED="-Kpic";
12585 fi;;
12586 hp*|HP*) if test "$GCC" = yes;
12587 then CCSHARED="-fPIC";
12588 else CCSHARED="+z";
12589 fi;;
12590 Linux*|GNU*) CCSHARED="-fPIC";;
12591 BSD/OS*/4*) CCSHARED="-fpic";;
12592 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
12593 OpenUNIX*|UnixWare*)
12594 if test "$GCC" = "yes"
12595 then CCSHARED="-fPIC"
12596 else CCSHARED="-KPIC"
12597 fi;;
12598 SCO_SV*)
12599 if test "$GCC" = "yes"
12600 then CCSHARED="-fPIC"
12601 else CCSHARED="-Kpic -belf"
12602 fi;;
12603 Monterey*) CCSHARED="-G";;
12604 IRIX*/6*) case $CC in
12605 *gcc*) CCSHARED="-shared";;
12606 *) CCSHARED="";;
12607 esac;;
12608 atheos*) CCSHARED="-fPIC";;
12609 esac
12611 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12612 echo "${ECHO_T}$CCSHARED" >&6; }
12613 # LINKFORSHARED are the flags passed to the $(CC) command that links
12614 # the python executable -- this is only needed for a few systems
12615 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12616 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12617 if test -z "$LINKFORSHARED"
12618 then
12619 case $ac_sys_system/$ac_sys_release in
12620 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
12621 hp*|HP*)
12622 LINKFORSHARED="-Wl,-E -Wl,+s";;
12623 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12624 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
12625 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
12626 # -u libsys_s pulls in all symbols in libsys
12627 Darwin/*)
12628 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12629 # which is
12630 # not used by the core itself but which needs to be in the core so
12631 # that dynamically loaded extension modules have access to it.
12632 # -prebind is no longer used, because it actually seems to give a
12633 # slowdown in stead of a speedup, maybe due to the large number of
12634 # dynamic loads Python does.
12636 LINKFORSHARED="$extra_undefs"
12637 if test "$enable_framework"
12638 then
12639 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12641 LINKFORSHARED="$LINKFORSHARED";;
12642 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
12643 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
12644 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
12645 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
12646 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12647 then
12648 LINKFORSHARED="-Wl,--export-dynamic"
12649 fi;;
12650 SunOS/5*) case $CC in
12651 *gcc*)
12652 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
12653 then
12654 LINKFORSHARED="-Xlinker --export-dynamic"
12655 fi;;
12656 esac;;
12657 CYGWIN*)
12658 if test $enable_shared = "no"
12659 then
12660 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
12661 fi;;
12662 esac
12664 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12665 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12668 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12669 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12670 if test ! "$LIBRARY" = "$LDLIBRARY"
12671 then
12672 case $ac_sys_system in
12673 CYGWIN*)
12674 # Cygwin needs CCSHARED when building extension DLLs
12675 # but not when building the interpreter DLL.
12676 CFLAGSFORSHARED='';;
12678 CFLAGSFORSHARED='$(CCSHARED)'
12679 esac
12681 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12682 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12684 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12685 # library (with --enable-shared).
12686 # For platforms on which shared libraries are not allowed to have unresolved
12687 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12688 # if it is not required, since it creates a dependency of the shared library
12689 # to LIBS. This, in turn, means that applications linking the shared libpython
12690 # don't need to link LIBS explicitly. The default should be only changed
12691 # on systems where this approach causes problems.
12693 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12694 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12695 case "$ac_sys_system" in
12697 SHLIBS='$(LIBS)';;
12698 esac
12699 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12700 echo "${ECHO_T}$SHLIBS" >&6; }
12703 # checks for libraries
12705 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12706 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12707 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710 ac_check_lib_save_LIBS=$LIBS
12711 LIBS="-ldl $LIBS"
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h. */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12719 /* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12722 #ifdef __cplusplus
12723 extern "C"
12724 #endif
12725 char dlopen ();
12727 main ()
12729 return dlopen ();
12731 return 0;
12733 _ACEOF
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (ac_try="$ac_link"
12736 case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_link") 2>conftest.er1
12742 ac_status=$?
12743 grep -v '^ *+' conftest.er1 >conftest.err
12744 rm -f conftest.er1
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } && {
12748 test -z "$ac_c_werror_flag" ||
12749 test ! -s conftest.err
12750 } && test -s conftest$ac_exeext &&
12751 $as_test_x conftest$ac_exeext; then
12752 ac_cv_lib_dl_dlopen=yes
12753 else
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 ac_cv_lib_dl_dlopen=no
12760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12761 conftest$ac_exeext conftest.$ac_ext
12762 LIBS=$ac_check_lib_save_LIBS
12764 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12765 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12766 if test $ac_cv_lib_dl_dlopen = yes; then
12767 cat >>confdefs.h <<_ACEOF
12768 #define HAVE_LIBDL 1
12769 _ACEOF
12771 LIBS="-ldl $LIBS"
12774 # Dynamic linking for SunOS/Solaris and SYSV
12776 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12777 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12778 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781 ac_check_lib_save_LIBS=$LIBS
12782 LIBS="-ldld $LIBS"
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h. */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12793 #ifdef __cplusplus
12794 extern "C"
12795 #endif
12796 char shl_load ();
12798 main ()
12800 return shl_load ();
12802 return 0;
12804 _ACEOF
12805 rm -f conftest.$ac_objext conftest$ac_exeext
12806 if { (ac_try="$ac_link"
12807 case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12810 esac
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812 (eval "$ac_link") 2>conftest.er1
12813 ac_status=$?
12814 grep -v '^ *+' conftest.er1 >conftest.err
12815 rm -f conftest.er1
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } && {
12819 test -z "$ac_c_werror_flag" ||
12820 test ! -s conftest.err
12821 } && test -s conftest$ac_exeext &&
12822 $as_test_x conftest$ac_exeext; then
12823 ac_cv_lib_dld_shl_load=yes
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_cv_lib_dld_shl_load=no
12831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12832 conftest$ac_exeext conftest.$ac_ext
12833 LIBS=$ac_check_lib_save_LIBS
12835 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12836 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12837 if test $ac_cv_lib_dld_shl_load = yes; then
12838 cat >>confdefs.h <<_ACEOF
12839 #define HAVE_LIBDLD 1
12840 _ACEOF
12842 LIBS="-ldld $LIBS"
12845 # Dynamic linking for HP-UX
12847 # only check for sem_ini if thread support is requested
12848 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12849 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12850 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12851 if test "${ac_cv_search_sem_init+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 else
12854 ac_func_search_save_LIBS=$LIBS
12855 cat >conftest.$ac_ext <<_ACEOF
12856 /* confdefs.h. */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12862 /* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 char sem_init ();
12870 main ()
12872 return sem_init ();
12874 return 0;
12876 _ACEOF
12877 for ac_lib in '' pthread rt posix4; do
12878 if test -z "$ac_lib"; then
12879 ac_res="none required"
12880 else
12881 ac_res=-l$ac_lib
12882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12884 rm -f conftest.$ac_objext conftest$ac_exeext
12885 if { (ac_try="$ac_link"
12886 case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_link") 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } && {
12898 test -z "$ac_c_werror_flag" ||
12899 test ! -s conftest.err
12900 } && test -s conftest$ac_exeext &&
12901 $as_test_x conftest$ac_exeext; then
12902 ac_cv_search_sem_init=$ac_res
12903 else
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12911 conftest$ac_exeext
12912 if test "${ac_cv_search_sem_init+set}" = set; then
12913 break
12915 done
12916 if test "${ac_cv_search_sem_init+set}" = set; then
12918 else
12919 ac_cv_search_sem_init=no
12921 rm conftest.$ac_ext
12922 LIBS=$ac_func_search_save_LIBS
12924 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12925 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12926 ac_res=$ac_cv_search_sem_init
12927 if test "$ac_res" != no; then
12928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12931 # 'Real Time' functions on Solaris
12932 # posix4 on Solaris 2.6
12933 # pthread (first!) on Linux
12936 # check if we need libintl for locale functions
12937 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12938 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12939 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 ac_check_lib_save_LIBS=$LIBS
12943 LIBS="-lintl $LIBS"
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12954 #ifdef __cplusplus
12955 extern "C"
12956 #endif
12957 char textdomain ();
12959 main ()
12961 return textdomain ();
12963 return 0;
12965 _ACEOF
12966 rm -f conftest.$ac_objext conftest$ac_exeext
12967 if { (ac_try="$ac_link"
12968 case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_link") 2>conftest.er1
12974 ac_status=$?
12975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && {
12980 test -z "$ac_c_werror_flag" ||
12981 test ! -s conftest.err
12982 } && test -s conftest$ac_exeext &&
12983 $as_test_x conftest$ac_exeext; then
12984 ac_cv_lib_intl_textdomain=yes
12985 else
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 ac_cv_lib_intl_textdomain=no
12992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12993 conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12996 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12997 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12998 if test $ac_cv_lib_intl_textdomain = yes; then
13000 cat >>confdefs.h <<\_ACEOF
13001 #define WITH_LIBINTL 1
13002 _ACEOF
13007 # checks for system dependent C++ extensions support
13008 case "$ac_sys_system" in
13009 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13010 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h. */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017 #include "/usr/lpp/xlC/include/load.h"
13019 main ()
13021 loadAndInit("", 0, "")
13023 return 0;
13025 _ACEOF
13026 rm -f conftest.$ac_objext conftest$ac_exeext
13027 if { (ac_try="$ac_link"
13028 case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13031 esac
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_link") 2>conftest.er1
13034 ac_status=$?
13035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } && {
13040 test -z "$ac_c_werror_flag" ||
13041 test ! -s conftest.err
13042 } && test -s conftest$ac_exeext &&
13043 $as_test_x conftest$ac_exeext; then
13045 cat >>confdefs.h <<\_ACEOF
13046 #define AIX_GENUINE_CPLUSPLUS 1
13047 _ACEOF
13049 { echo "$as_me:$LINENO: result: yes" >&5
13050 echo "${ECHO_T}yes" >&6; }
13051 else
13052 echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13055 { echo "$as_me:$LINENO: result: no" >&5
13056 echo "${ECHO_T}no" >&6; }
13059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13060 conftest$ac_exeext conftest.$ac_ext;;
13061 *) ;;
13062 esac
13064 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13065 # BeOS' sockets are stashed in libnet.
13066 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13067 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13068 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071 ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-lnsl $LIBS"
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h. */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char t_open ();
13088 main ()
13090 return t_open ();
13092 return 0;
13094 _ACEOF
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (ac_try="$ac_link"
13097 case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_link") 2>conftest.er1
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } && {
13109 test -z "$ac_c_werror_flag" ||
13110 test ! -s conftest.err
13111 } && test -s conftest$ac_exeext &&
13112 $as_test_x conftest$ac_exeext; then
13113 ac_cv_lib_nsl_t_open=yes
13114 else
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 ac_cv_lib_nsl_t_open=no
13121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13122 conftest$ac_exeext conftest.$ac_ext
13123 LIBS=$ac_check_lib_save_LIBS
13125 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13126 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13127 if test $ac_cv_lib_nsl_t_open = yes; then
13128 LIBS="-lnsl $LIBS"
13130 # SVR4
13131 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13132 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13133 if test "${ac_cv_lib_socket_socket+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136 ac_check_lib_save_LIBS=$LIBS
13137 LIBS="-lsocket $LIBS $LIBS"
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h. */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13145 /* Override any GCC internal prototype to avoid an error.
13146 Use char because int might match the return type of a GCC
13147 builtin and then its argument prototype would still apply. */
13148 #ifdef __cplusplus
13149 extern "C"
13150 #endif
13151 char socket ();
13153 main ()
13155 return socket ();
13157 return 0;
13159 _ACEOF
13160 rm -f conftest.$ac_objext conftest$ac_exeext
13161 if { (ac_try="$ac_link"
13162 case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13165 esac
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_link") 2>conftest.er1
13168 ac_status=$?
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } && {
13174 test -z "$ac_c_werror_flag" ||
13175 test ! -s conftest.err
13176 } && test -s conftest$ac_exeext &&
13177 $as_test_x conftest$ac_exeext; then
13178 ac_cv_lib_socket_socket=yes
13179 else
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 ac_cv_lib_socket_socket=no
13186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13187 conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS
13190 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13191 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13192 if test $ac_cv_lib_socket_socket = yes; then
13193 LIBS="-lsocket $LIBS"
13195 # SVR4 sockets
13197 case "$ac_sys_system" in
13198 BeOS*)
13199 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13200 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13201 if test "${ac_cv_lib_net_socket+set}" = set; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 else
13204 ac_check_lib_save_LIBS=$LIBS
13205 LIBS="-lnet $LIBS $LIBS"
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h. */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13213 /* Override any GCC internal prototype to avoid an error.
13214 Use char because int might match the return type of a GCC
13215 builtin and then its argument prototype would still apply. */
13216 #ifdef __cplusplus
13217 extern "C"
13218 #endif
13219 char socket ();
13221 main ()
13223 return socket ();
13225 return 0;
13227 _ACEOF
13228 rm -f conftest.$ac_objext conftest$ac_exeext
13229 if { (ac_try="$ac_link"
13230 case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_link") 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest$ac_exeext &&
13245 $as_test_x conftest$ac_exeext; then
13246 ac_cv_lib_net_socket=yes
13247 else
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 ac_cv_lib_net_socket=no
13254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255 conftest$ac_exeext conftest.$ac_ext
13256 LIBS=$ac_check_lib_save_LIBS
13258 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13259 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13260 if test $ac_cv_lib_net_socket = yes; then
13261 LIBS="-lnet $LIBS"
13263 # BeOS
13265 esac
13267 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13268 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13270 # Check whether --with-libs was given.
13271 if test "${with_libs+set}" = set; then
13272 withval=$with_libs;
13273 { echo "$as_me:$LINENO: result: $withval" >&5
13274 echo "${ECHO_T}$withval" >&6; }
13275 LIBS="$withval $LIBS"
13277 else
13278 { echo "$as_me:$LINENO: result: no" >&5
13279 echo "${ECHO_T}no" >&6; }
13283 # Check for use of the system libffi library
13284 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13285 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13287 # Check whether --with-system_ffi was given.
13288 if test "${with_system_ffi+set}" = set; then
13289 withval=$with_system_ffi;
13293 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13294 echo "${ECHO_T}$with_system_ffi" >&6; }
13296 # Determine if signalmodule should be used.
13299 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13300 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13302 # Check whether --with-signal-module was given.
13303 if test "${with_signal_module+set}" = set; then
13304 withval=$with_signal_module;
13308 if test -z "$with_signal_module"
13309 then with_signal_module="yes"
13311 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13312 echo "${ECHO_T}$with_signal_module" >&6; }
13314 if test "${with_signal_module}" = "yes"; then
13315 USE_SIGNAL_MODULE=""
13316 SIGNAL_OBJS=""
13317 else
13318 USE_SIGNAL_MODULE="#"
13319 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13322 # This is used to generate Setup.config
13324 USE_THREAD_MODULE=""
13326 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13327 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13330 # Check whether --with-dec-threads was given.
13331 if test "${with_dec_threads+set}" = set; then
13332 withval=$with_dec_threads;
13333 { echo "$as_me:$LINENO: result: $withval" >&5
13334 echo "${ECHO_T}$withval" >&6; }
13335 LDLAST=-threads
13336 if test "${with_thread+set}" != set; then
13337 with_thread="$withval";
13339 else
13340 { echo "$as_me:$LINENO: result: no" >&5
13341 echo "${ECHO_T}no" >&6; }
13345 # Templates for things AC_DEFINEd more than once.
13346 # For a single AC_DEFINE, no template is needed.
13354 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13355 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13357 # Check whether --with-threads was given.
13358 if test "${with_threads+set}" = set; then
13359 withval=$with_threads;
13363 # --with-thread is deprecated, but check for it anyway
13365 # Check whether --with-thread was given.
13366 if test "${with_thread+set}" = set; then
13367 withval=$with_thread; with_threads=$with_thread
13371 if test -z "$with_threads"
13372 then with_threads="yes"
13374 { echo "$as_me:$LINENO: result: $with_threads" >&5
13375 echo "${ECHO_T}$with_threads" >&6; }
13378 if test "$with_threads" = "no"
13379 then
13380 USE_THREAD_MODULE="#"
13381 elif test "$ac_cv_pthread_is_default" = yes
13382 then
13383 cat >>confdefs.h <<\_ACEOF
13384 #define WITH_THREAD 1
13385 _ACEOF
13387 # Defining _REENTRANT on system with POSIX threads should not hurt.
13388 cat >>confdefs.h <<\_ACEOF
13389 #define _REENTRANT 1
13390 _ACEOF
13392 posix_threads=yes
13393 THREADOBJ="Python/thread.o"
13394 elif test "$ac_cv_kpthread" = "yes"
13395 then
13396 CC="$CC -Kpthread"
13397 if test "$ac_cv_cxx_thread" = "yes"; then
13398 CXX="$CXX -Kpthread"
13400 cat >>confdefs.h <<\_ACEOF
13401 #define WITH_THREAD 1
13402 _ACEOF
13404 posix_threads=yes
13405 THREADOBJ="Python/thread.o"
13406 elif test "$ac_cv_kthread" = "yes"
13407 then
13408 CC="$CC -Kthread"
13409 if test "$ac_cv_cxx_thread" = "yes"; then
13410 CXX="$CXX -Kthread"
13412 cat >>confdefs.h <<\_ACEOF
13413 #define WITH_THREAD 1
13414 _ACEOF
13416 posix_threads=yes
13417 THREADOBJ="Python/thread.o"
13418 elif test "$ac_cv_pthread" = "yes"
13419 then
13420 CC="$CC -pthread"
13421 if test "$ac_cv_cxx_thread" = "yes"; then
13422 CXX="$CXX -pthread"
13424 cat >>confdefs.h <<\_ACEOF
13425 #define WITH_THREAD 1
13426 _ACEOF
13428 posix_threads=yes
13429 THREADOBJ="Python/thread.o"
13430 else
13431 if test ! -z "$with_threads" -a -d "$with_threads"
13432 then LDFLAGS="$LDFLAGS -L$with_threads"
13434 if test ! -z "$withval" -a -d "$withval"
13435 then LDFLAGS="$LDFLAGS -L$withval"
13438 # According to the POSIX spec, a pthreads implementation must
13439 # define _POSIX_THREADS in unistd.h. Some apparently don't
13440 # (e.g. gnu pth with pthread emulation)
13441 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13442 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13443 cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h. */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13450 #include <unistd.h>
13451 #ifdef _POSIX_THREADS
13453 #endif
13455 _ACEOF
13456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13457 $EGREP "yes" >/dev/null 2>&1; then
13458 unistd_defines_pthreads=yes
13459 else
13460 unistd_defines_pthreads=no
13462 rm -f conftest*
13464 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13465 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13467 cat >>confdefs.h <<\_ACEOF
13468 #define _REENTRANT 1
13469 _ACEOF
13471 if test "${ac_cv_header_cthreads_h+set}" = set; then
13472 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13473 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13474 if test "${ac_cv_header_cthreads_h+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13478 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13479 else
13480 # Is the header compilable?
13481 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13482 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13483 cat >conftest.$ac_ext <<_ACEOF
13484 /* confdefs.h. */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13489 $ac_includes_default
13490 #include <cthreads.h>
13491 _ACEOF
13492 rm -f conftest.$ac_objext
13493 if { (ac_try="$ac_compile"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_compile") 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && {
13506 test -z "$ac_c_werror_flag" ||
13507 test ! -s conftest.err
13508 } && test -s conftest.$ac_objext; then
13509 ac_header_compiler=yes
13510 else
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_header_compiler=no
13517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13519 echo "${ECHO_T}$ac_header_compiler" >&6; }
13521 # Is the header present?
13522 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13523 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13524 cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h. */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13530 #include <cthreads.h>
13531 _ACEOF
13532 if { (ac_try="$ac_cpp conftest.$ac_ext"
13533 case "(($ac_try" in
13534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13535 *) ac_try_echo=$ac_try;;
13536 esac
13537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } >/dev/null && {
13545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13546 test ! -s conftest.err
13547 }; then
13548 ac_header_preproc=yes
13549 else
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ac_header_preproc=no
13556 rm -f conftest.err conftest.$ac_ext
13557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13558 echo "${ECHO_T}$ac_header_preproc" >&6; }
13560 # So? What about this header?
13561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13562 yes:no: )
13563 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13564 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13566 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13567 ac_header_preproc=yes
13569 no:yes:* )
13570 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13571 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13572 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13573 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13575 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13577 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13579 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13580 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13581 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13582 ( cat <<\_ASBOX
13583 ## ------------------------------------------------ ##
13584 ## Report this to http://www.python.org/python-bugs ##
13585 ## ------------------------------------------------ ##
13586 _ASBOX
13587 ) | sed "s/^/$as_me: WARNING: /" >&2
13589 esac
13590 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13591 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13592 if test "${ac_cv_header_cthreads_h+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595 ac_cv_header_cthreads_h=$ac_header_preproc
13597 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13598 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13601 if test $ac_cv_header_cthreads_h = yes; then
13602 cat >>confdefs.h <<\_ACEOF
13603 #define WITH_THREAD 1
13604 _ACEOF
13606 cat >>confdefs.h <<\_ACEOF
13607 #define C_THREADS 1
13608 _ACEOF
13611 cat >>confdefs.h <<\_ACEOF
13612 #define HURD_C_THREADS 1
13613 _ACEOF
13615 LIBS="$LIBS -lthreads"
13616 THREADOBJ="Python/thread.o"
13617 else
13619 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13620 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13621 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13622 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13626 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13627 else
13628 # Is the header compilable?
13629 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13630 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13631 cat >conftest.$ac_ext <<_ACEOF
13632 /* confdefs.h. */
13633 _ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13637 $ac_includes_default
13638 #include <mach/cthreads.h>
13639 _ACEOF
13640 rm -f conftest.$ac_objext
13641 if { (ac_try="$ac_compile"
13642 case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13645 esac
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_compile") 2>conftest.er1
13648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } && {
13654 test -z "$ac_c_werror_flag" ||
13655 test ! -s conftest.err
13656 } && test -s conftest.$ac_objext; then
13657 ac_header_compiler=yes
13658 else
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 ac_header_compiler=no
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13667 echo "${ECHO_T}$ac_header_compiler" >&6; }
13669 # Is the header present?
13670 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13671 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 #include <mach/cthreads.h>
13679 _ACEOF
13680 if { (ac_try="$ac_cpp conftest.$ac_ext"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } >/dev/null && {
13693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 }; then
13696 ac_header_preproc=yes
13697 else
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 ac_header_preproc=no
13704 rm -f conftest.err conftest.$ac_ext
13705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13706 echo "${ECHO_T}$ac_header_preproc" >&6; }
13708 # So? What about this header?
13709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13710 yes:no: )
13711 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13712 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13714 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13715 ac_header_preproc=yes
13717 no:yes:* )
13718 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13719 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13721 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13723 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13725 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13727 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13729 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13730 ( cat <<\_ASBOX
13731 ## ------------------------------------------------ ##
13732 ## Report this to http://www.python.org/python-bugs ##
13733 ## ------------------------------------------------ ##
13734 _ASBOX
13735 ) | sed "s/^/$as_me: WARNING: /" >&2
13737 esac
13738 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13739 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13740 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 else
13743 ac_cv_header_mach_cthreads_h=$ac_header_preproc
13745 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13746 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13749 if test $ac_cv_header_mach_cthreads_h = yes; then
13750 cat >>confdefs.h <<\_ACEOF
13751 #define WITH_THREAD 1
13752 _ACEOF
13754 cat >>confdefs.h <<\_ACEOF
13755 #define C_THREADS 1
13756 _ACEOF
13759 cat >>confdefs.h <<\_ACEOF
13760 #define MACH_C_THREADS 1
13761 _ACEOF
13763 THREADOBJ="Python/thread.o"
13764 else
13766 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13767 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13769 # Check whether --with-pth was given.
13770 if test "${with_pth+set}" = set; then
13771 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13772 echo "${ECHO_T}$withval" >&6; }
13773 cat >>confdefs.h <<\_ACEOF
13774 #define WITH_THREAD 1
13775 _ACEOF
13778 cat >>confdefs.h <<\_ACEOF
13779 #define HAVE_PTH 1
13780 _ACEOF
13782 LIBS="-lpth $LIBS"
13783 THREADOBJ="Python/thread.o"
13784 else
13785 { echo "$as_me:$LINENO: result: no" >&5
13786 echo "${ECHO_T}no" >&6; }
13788 # Just looking for pthread_create in libpthread is not enough:
13789 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13790 # So we really have to include pthread.h, and then link.
13791 _libs=$LIBS
13792 LIBS="$LIBS -lpthread"
13793 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13794 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13795 cat >conftest.$ac_ext <<_ACEOF
13796 /* confdefs.h. */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13801 #include <pthread.h>
13803 void * start_routine (void *arg) { exit (0); }
13805 main ()
13808 pthread_create (NULL, NULL, start_routine, NULL)
13810 return 0;
13812 _ACEOF
13813 rm -f conftest.$ac_objext conftest$ac_exeext
13814 if { (ac_try="$ac_link"
13815 case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_link") 2>conftest.er1
13821 ac_status=$?
13822 grep -v '^ *+' conftest.er1 >conftest.err
13823 rm -f conftest.er1
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } && {
13827 test -z "$ac_c_werror_flag" ||
13828 test ! -s conftest.err
13829 } && test -s conftest$ac_exeext &&
13830 $as_test_x conftest$ac_exeext; then
13832 { echo "$as_me:$LINENO: result: yes" >&5
13833 echo "${ECHO_T}yes" >&6; }
13834 cat >>confdefs.h <<\_ACEOF
13835 #define WITH_THREAD 1
13836 _ACEOF
13838 posix_threads=yes
13839 THREADOBJ="Python/thread.o"
13840 else
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13845 LIBS=$_libs
13846 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13847 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13848 if test "${ac_cv_func_pthread_detach+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851 cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h. */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13859 #define pthread_detach innocuous_pthread_detach
13861 /* System header to define __stub macros and hopefully few prototypes,
13862 which can conflict with char pthread_detach (); below.
13863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13864 <limits.h> exists even on freestanding compilers. */
13866 #ifdef __STDC__
13867 # include <limits.h>
13868 #else
13869 # include <assert.h>
13870 #endif
13872 #undef pthread_detach
13874 /* Override any GCC internal prototype to avoid an error.
13875 Use char because int might match the return type of a GCC
13876 builtin and then its argument prototype would still apply. */
13877 #ifdef __cplusplus
13878 extern "C"
13879 #endif
13880 char pthread_detach ();
13881 /* The GNU C library defines this for functions which it implements
13882 to always fail with ENOSYS. Some functions are actually named
13883 something starting with __ and the normal name is an alias. */
13884 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13885 choke me
13886 #endif
13889 main ()
13891 return pthread_detach ();
13893 return 0;
13895 _ACEOF
13896 rm -f conftest.$ac_objext conftest$ac_exeext
13897 if { (ac_try="$ac_link"
13898 case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13901 esac
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_link") 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest$ac_exeext &&
13913 $as_test_x conftest$ac_exeext; then
13914 ac_cv_func_pthread_detach=yes
13915 else
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13919 ac_cv_func_pthread_detach=no
13922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13923 conftest$ac_exeext conftest.$ac_ext
13925 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13926 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13927 if test $ac_cv_func_pthread_detach = yes; then
13928 cat >>confdefs.h <<\_ACEOF
13929 #define WITH_THREAD 1
13930 _ACEOF
13932 posix_threads=yes
13933 THREADOBJ="Python/thread.o"
13934 else
13936 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13937 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13938 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13939 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13943 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13944 else
13945 # Is the header compilable?
13946 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13947 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h. */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 #include <atheos/threads.h>
13956 _ACEOF
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_compile") 2>conftest.er1
13965 ac_status=$?
13966 grep -v '^ *+' conftest.er1 >conftest.err
13967 rm -f conftest.er1
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && {
13971 test -z "$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13973 } && test -s conftest.$ac_objext; then
13974 ac_header_compiler=yes
13975 else
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_header_compiler=no
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984 echo "${ECHO_T}$ac_header_compiler" >&6; }
13986 # Is the header present?
13987 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13988 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13989 cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h. */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 #include <atheos/threads.h>
13996 _ACEOF
13997 if { (ac_try="$ac_cpp conftest.$ac_ext"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14001 esac
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } >/dev/null && {
14010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14011 test ! -s conftest.err
14012 }; then
14013 ac_header_preproc=yes
14014 else
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14018 ac_header_preproc=no
14021 rm -f conftest.err conftest.$ac_ext
14022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14023 echo "${ECHO_T}$ac_header_preproc" >&6; }
14025 # So? What about this header?
14026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14027 yes:no: )
14028 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14029 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14031 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14032 ac_header_preproc=yes
14034 no:yes:* )
14035 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14036 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14038 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14040 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14042 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14044 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14046 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14047 ( cat <<\_ASBOX
14048 ## ------------------------------------------------ ##
14049 ## Report this to http://www.python.org/python-bugs ##
14050 ## ------------------------------------------------ ##
14051 _ASBOX
14052 ) | sed "s/^/$as_me: WARNING: /" >&2
14054 esac
14055 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14056 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14057 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 ac_cv_header_atheos_threads_h=$ac_header_preproc
14062 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14063 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14066 if test $ac_cv_header_atheos_threads_h = yes; then
14067 cat >>confdefs.h <<\_ACEOF
14068 #define WITH_THREAD 1
14069 _ACEOF
14072 cat >>confdefs.h <<\_ACEOF
14073 #define ATHEOS_THREADS 1
14074 _ACEOF
14076 THREADOBJ="Python/thread.o"
14077 else
14079 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14080 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14081 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14082 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14086 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14087 else
14088 # Is the header compilable?
14089 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14090 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h. */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 $ac_includes_default
14098 #include <kernel/OS.h>
14099 _ACEOF
14100 rm -f conftest.$ac_objext
14101 if { (ac_try="$ac_compile"
14102 case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_compile") 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } && {
14114 test -z "$ac_c_werror_flag" ||
14115 test ! -s conftest.err
14116 } && test -s conftest.$ac_objext; then
14117 ac_header_compiler=yes
14118 else
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_header_compiler=no
14125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14127 echo "${ECHO_T}$ac_header_compiler" >&6; }
14129 # Is the header present?
14130 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14131 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14132 cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h. */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 #include <kernel/OS.h>
14139 _ACEOF
14140 if { (ac_try="$ac_cpp conftest.$ac_ext"
14141 case "(($ac_try" in
14142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143 *) ac_try_echo=$ac_try;;
14144 esac
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14147 ac_status=$?
14148 grep -v '^ *+' conftest.er1 >conftest.err
14149 rm -f conftest.er1
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } >/dev/null && {
14153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14154 test ! -s conftest.err
14155 }; then
14156 ac_header_preproc=yes
14157 else
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 ac_header_preproc=no
14164 rm -f conftest.err conftest.$ac_ext
14165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14166 echo "${ECHO_T}$ac_header_preproc" >&6; }
14168 # So? What about this header?
14169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14170 yes:no: )
14171 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14172 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14174 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14175 ac_header_preproc=yes
14177 no:yes:* )
14178 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14179 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14180 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14181 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14183 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14185 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14187 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14189 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14190 ( cat <<\_ASBOX
14191 ## ------------------------------------------------ ##
14192 ## Report this to http://www.python.org/python-bugs ##
14193 ## ------------------------------------------------ ##
14194 _ASBOX
14195 ) | sed "s/^/$as_me: WARNING: /" >&2
14197 esac
14198 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14199 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14200 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203 ac_cv_header_kernel_OS_h=$ac_header_preproc
14205 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14206 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14209 if test $ac_cv_header_kernel_OS_h = yes; then
14210 cat >>confdefs.h <<\_ACEOF
14211 #define WITH_THREAD 1
14212 _ACEOF
14215 cat >>confdefs.h <<\_ACEOF
14216 #define BEOS_THREADS 1
14217 _ACEOF
14219 THREADOBJ="Python/thread.o"
14220 else
14222 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14223 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14224 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227 ac_check_lib_save_LIBS=$LIBS
14228 LIBS="-lpthreads $LIBS"
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h. */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14236 /* Override any GCC internal prototype to avoid an error.
14237 Use char because int might match the return type of a GCC
14238 builtin and then its argument prototype would still apply. */
14239 #ifdef __cplusplus
14240 extern "C"
14241 #endif
14242 char pthread_create ();
14244 main ()
14246 return pthread_create ();
14248 return 0;
14250 _ACEOF
14251 rm -f conftest.$ac_objext conftest$ac_exeext
14252 if { (ac_try="$ac_link"
14253 case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14256 esac
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_link") 2>conftest.er1
14259 ac_status=$?
14260 grep -v '^ *+' conftest.er1 >conftest.err
14261 rm -f conftest.er1
14262 cat conftest.err >&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } && {
14265 test -z "$ac_c_werror_flag" ||
14266 test ! -s conftest.err
14267 } && test -s conftest$ac_exeext &&
14268 $as_test_x conftest$ac_exeext; then
14269 ac_cv_lib_pthreads_pthread_create=yes
14270 else
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 ac_cv_lib_pthreads_pthread_create=no
14277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14278 conftest$ac_exeext conftest.$ac_ext
14279 LIBS=$ac_check_lib_save_LIBS
14281 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14282 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14283 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14284 cat >>confdefs.h <<\_ACEOF
14285 #define WITH_THREAD 1
14286 _ACEOF
14288 posix_threads=yes
14289 LIBS="$LIBS -lpthreads"
14290 THREADOBJ="Python/thread.o"
14291 else
14293 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14294 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14295 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298 ac_check_lib_save_LIBS=$LIBS
14299 LIBS="-lc_r $LIBS"
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14307 /* Override any GCC internal prototype to avoid an error.
14308 Use char because int might match the return type of a GCC
14309 builtin and then its argument prototype would still apply. */
14310 #ifdef __cplusplus
14311 extern "C"
14312 #endif
14313 char pthread_create ();
14315 main ()
14317 return pthread_create ();
14319 return 0;
14321 _ACEOF
14322 rm -f conftest.$ac_objext conftest$ac_exeext
14323 if { (ac_try="$ac_link"
14324 case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14327 esac
14328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329 (eval "$ac_link") 2>conftest.er1
14330 ac_status=$?
14331 grep -v '^ *+' conftest.er1 >conftest.err
14332 rm -f conftest.er1
14333 cat conftest.err >&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } && {
14336 test -z "$ac_c_werror_flag" ||
14337 test ! -s conftest.err
14338 } && test -s conftest$ac_exeext &&
14339 $as_test_x conftest$ac_exeext; then
14340 ac_cv_lib_c_r_pthread_create=yes
14341 else
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14345 ac_cv_lib_c_r_pthread_create=no
14348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14349 conftest$ac_exeext conftest.$ac_ext
14350 LIBS=$ac_check_lib_save_LIBS
14352 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14353 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14354 if test $ac_cv_lib_c_r_pthread_create = yes; then
14355 cat >>confdefs.h <<\_ACEOF
14356 #define WITH_THREAD 1
14357 _ACEOF
14359 posix_threads=yes
14360 LIBS="$LIBS -lc_r"
14361 THREADOBJ="Python/thread.o"
14362 else
14364 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14365 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14366 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369 ac_check_lib_save_LIBS=$LIBS
14370 LIBS="-lpthread $LIBS"
14371 cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h. */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14378 /* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply. */
14381 #ifdef __cplusplus
14382 extern "C"
14383 #endif
14384 char __pthread_create_system ();
14386 main ()
14388 return __pthread_create_system ();
14390 return 0;
14392 _ACEOF
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_link") 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && {
14407 test -z "$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest$ac_exeext &&
14410 $as_test_x conftest$ac_exeext; then
14411 ac_cv_lib_pthread___pthread_create_system=yes
14412 else
14413 echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14416 ac_cv_lib_pthread___pthread_create_system=no
14419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14420 conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14423 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14424 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14425 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14426 cat >>confdefs.h <<\_ACEOF
14427 #define WITH_THREAD 1
14428 _ACEOF
14430 posix_threads=yes
14431 LIBS="$LIBS -lpthread"
14432 THREADOBJ="Python/thread.o"
14433 else
14435 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14436 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14437 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 else
14440 ac_check_lib_save_LIBS=$LIBS
14441 LIBS="-lcma $LIBS"
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h. */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14449 /* Override any GCC internal prototype to avoid an error.
14450 Use char because int might match the return type of a GCC
14451 builtin and then its argument prototype would still apply. */
14452 #ifdef __cplusplus
14453 extern "C"
14454 #endif
14455 char pthread_create ();
14457 main ()
14459 return pthread_create ();
14461 return 0;
14463 _ACEOF
14464 rm -f conftest.$ac_objext conftest$ac_exeext
14465 if { (ac_try="$ac_link"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14469 esac
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_link") 2>conftest.er1
14472 ac_status=$?
14473 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && {
14478 test -z "$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14480 } && test -s conftest$ac_exeext &&
14481 $as_test_x conftest$ac_exeext; then
14482 ac_cv_lib_cma_pthread_create=yes
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_cv_lib_cma_pthread_create=no
14490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14491 conftest$ac_exeext conftest.$ac_ext
14492 LIBS=$ac_check_lib_save_LIBS
14494 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14495 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14496 if test $ac_cv_lib_cma_pthread_create = yes; then
14497 cat >>confdefs.h <<\_ACEOF
14498 #define WITH_THREAD 1
14499 _ACEOF
14501 posix_threads=yes
14502 LIBS="$LIBS -lcma"
14503 THREADOBJ="Python/thread.o"
14504 else
14506 USE_THREAD_MODULE="#"
14526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14527 conftest$ac_exeext conftest.$ac_ext
14537 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14538 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14539 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542 ac_check_lib_save_LIBS=$LIBS
14543 LIBS="-lmpc $LIBS"
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h. */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14551 /* Override any GCC internal prototype to avoid an error.
14552 Use char because int might match the return type of a GCC
14553 builtin and then its argument prototype would still apply. */
14554 #ifdef __cplusplus
14555 extern "C"
14556 #endif
14557 char usconfig ();
14559 main ()
14561 return usconfig ();
14563 return 0;
14565 _ACEOF
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (ac_try="$ac_link"
14568 case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14571 esac
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_link") 2>conftest.er1
14574 ac_status=$?
14575 grep -v '^ *+' conftest.er1 >conftest.err
14576 rm -f conftest.er1
14577 cat conftest.err >&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } && {
14580 test -z "$ac_c_werror_flag" ||
14581 test ! -s conftest.err
14582 } && test -s conftest$ac_exeext &&
14583 $as_test_x conftest$ac_exeext; then
14584 ac_cv_lib_mpc_usconfig=yes
14585 else
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14589 ac_cv_lib_mpc_usconfig=no
14592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14593 conftest$ac_exeext conftest.$ac_ext
14594 LIBS=$ac_check_lib_save_LIBS
14596 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14597 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14598 if test $ac_cv_lib_mpc_usconfig = yes; then
14599 cat >>confdefs.h <<\_ACEOF
14600 #define WITH_THREAD 1
14601 _ACEOF
14603 LIBS="$LIBS -lmpc"
14604 THREADOBJ="Python/thread.o"
14605 USE_THREAD_MODULE=""
14609 if test "$posix_threads" != "yes"; then
14610 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14611 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14612 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615 ac_check_lib_save_LIBS=$LIBS
14616 LIBS="-lthread $LIBS"
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h. */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14627 #ifdef __cplusplus
14628 extern "C"
14629 #endif
14630 char thr_create ();
14632 main ()
14634 return thr_create ();
14636 return 0;
14638 _ACEOF
14639 rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (ac_try="$ac_link"
14641 case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_link") 2>conftest.er1
14647 ac_status=$?
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } && {
14653 test -z "$ac_c_werror_flag" ||
14654 test ! -s conftest.err
14655 } && test -s conftest$ac_exeext &&
14656 $as_test_x conftest$ac_exeext; then
14657 ac_cv_lib_thread_thr_create=yes
14658 else
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_cv_lib_thread_thr_create=no
14665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14666 conftest$ac_exeext conftest.$ac_ext
14667 LIBS=$ac_check_lib_save_LIBS
14669 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14670 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14671 if test $ac_cv_lib_thread_thr_create = yes; then
14672 cat >>confdefs.h <<\_ACEOF
14673 #define WITH_THREAD 1
14674 _ACEOF
14676 LIBS="$LIBS -lthread"
14677 THREADOBJ="Python/thread.o"
14678 USE_THREAD_MODULE=""
14683 if test "$USE_THREAD_MODULE" != "#"
14684 then
14685 # If the above checks didn't disable threads, (at least) OSF1
14686 # needs this '-threads' argument during linking.
14687 case $ac_sys_system in
14688 OSF1) LDLAST=-threads;;
14689 esac
14693 if test "$posix_threads" = "yes"; then
14694 if test "$unistd_defines_pthreads" = "no"; then
14696 cat >>confdefs.h <<\_ACEOF
14697 #define _POSIX_THREADS 1
14698 _ACEOF
14702 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14703 case $ac_sys_system/$ac_sys_release in
14704 SunOS/5.6)
14705 cat >>confdefs.h <<\_ACEOF
14706 #define HAVE_PTHREAD_DESTRUCTOR 1
14707 _ACEOF
14710 SunOS/5.8)
14711 cat >>confdefs.h <<\_ACEOF
14712 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14713 _ACEOF
14716 AIX/5)
14717 cat >>confdefs.h <<\_ACEOF
14718 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14719 _ACEOF
14722 esac
14724 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14725 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14726 if test "${ac_cv_pthread_system_supported+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729 if test "$cross_compiling" = yes; then
14730 ac_cv_pthread_system_supported=no
14731 else
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h. */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 #include <pthread.h>
14739 void *foo(void *parm) {
14740 return NULL;
14742 main() {
14743 pthread_attr_t attr;
14744 pthread_t id;
14745 if (pthread_attr_init(&attr)) exit(-1);
14746 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14747 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14748 exit(0);
14750 _ACEOF
14751 rm -f conftest$ac_exeext
14752 if { (ac_try="$ac_link"
14753 case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_link") 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14762 { (case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14765 esac
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_try") 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 ac_cv_pthread_system_supported=yes
14772 else
14773 echo "$as_me: program exited with status $ac_status" >&5
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14777 ( exit $ac_status )
14778 ac_cv_pthread_system_supported=no
14780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14788 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14789 if test "$ac_cv_pthread_system_supported" = "yes"; then
14791 cat >>confdefs.h <<\_ACEOF
14792 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14793 _ACEOF
14797 for ac_func in pthread_sigmask
14799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805 cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h. */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14813 #define $ac_func innocuous_$ac_func
14815 /* System header to define __stub macros and hopefully few prototypes,
14816 which can conflict with char $ac_func (); below.
14817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14818 <limits.h> exists even on freestanding compilers. */
14820 #ifdef __STDC__
14821 # include <limits.h>
14822 #else
14823 # include <assert.h>
14824 #endif
14826 #undef $ac_func
14828 /* Override any GCC internal prototype to avoid an error.
14829 Use char because int might match the return type of a GCC
14830 builtin and then its argument prototype would still apply. */
14831 #ifdef __cplusplus
14832 extern "C"
14833 #endif
14834 char $ac_func ();
14835 /* The GNU C library defines this for functions which it implements
14836 to always fail with ENOSYS. Some functions are actually named
14837 something starting with __ and the normal name is an alias. */
14838 #if defined __stub_$ac_func || defined __stub___$ac_func
14839 choke me
14840 #endif
14843 main ()
14845 return $ac_func ();
14847 return 0;
14849 _ACEOF
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (ac_try="$ac_link"
14852 case "(($ac_try" in
14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14855 esac
14856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_link") 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } && {
14864 test -z "$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14866 } && test -s conftest$ac_exeext &&
14867 $as_test_x conftest$ac_exeext; then
14868 eval "$as_ac_var=yes"
14869 else
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14873 eval "$as_ac_var=no"
14876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14877 conftest$ac_exeext conftest.$ac_ext
14879 ac_res=`eval echo '${'$as_ac_var'}'`
14880 { echo "$as_me:$LINENO: result: $ac_res" >&5
14881 echo "${ECHO_T}$ac_res" >&6; }
14882 if test `eval echo '${'$as_ac_var'}'` = yes; then
14883 cat >>confdefs.h <<_ACEOF
14884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14885 _ACEOF
14886 case $ac_sys_system in
14887 CYGWIN*)
14889 cat >>confdefs.h <<\_ACEOF
14890 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14891 _ACEOF
14894 esac
14896 done
14901 # Check for enable-ipv6
14904 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14905 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14906 # Check whether --enable-ipv6 was given.
14907 if test "${enable_ipv6+set}" = set; then
14908 enableval=$enable_ipv6; case "$enableval" in
14910 { echo "$as_me:$LINENO: result: no" >&5
14911 echo "${ECHO_T}no" >&6; }
14912 ipv6=no
14914 *) { echo "$as_me:$LINENO: result: yes" >&5
14915 echo "${ECHO_T}yes" >&6; }
14916 cat >>confdefs.h <<\_ACEOF
14917 #define ENABLE_IPV6 1
14918 _ACEOF
14920 ipv6=yes
14922 esac
14923 else
14925 if test "$cross_compiling" = yes; then
14926 { echo "$as_me:$LINENO: result: no" >&5
14927 echo "${ECHO_T}no" >&6; }
14928 ipv6=no
14930 else
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h. */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 /* AF_INET6 available check */
14938 #include <sys/types.h>
14939 #include <sys/socket.h>
14940 main()
14942 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14943 exit(1);
14944 else
14945 exit(0);
14948 _ACEOF
14949 rm -f conftest$ac_exeext
14950 if { (ac_try="$ac_link"
14951 case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14954 esac
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_link") 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14960 { (case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14963 esac
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_try") 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14969 { echo "$as_me:$LINENO: result: yes" >&5
14970 echo "${ECHO_T}yes" >&6; }
14971 ipv6=yes
14972 else
14973 echo "$as_me: program exited with status $ac_status" >&5
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 ( exit $ac_status )
14978 { echo "$as_me:$LINENO: result: no" >&5
14979 echo "${ECHO_T}no" >&6; }
14980 ipv6=no
14982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14987 if test "$ipv6" = "yes"; then
14988 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14989 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h. */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 #include <sys/types.h>
14997 #include <netinet/in.h>
14999 main ()
15001 struct sockaddr_in6 x;
15002 x.sin6_scope_id;
15004 return 0;
15006 _ACEOF
15007 rm -f conftest.$ac_objext
15008 if { (ac_try="$ac_compile"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15012 esac
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_compile") 2>conftest.er1
15015 ac_status=$?
15016 grep -v '^ *+' conftest.er1 >conftest.err
15017 rm -f conftest.er1
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } && {
15021 test -z "$ac_c_werror_flag" ||
15022 test ! -s conftest.err
15023 } && test -s conftest.$ac_objext; then
15024 { echo "$as_me:$LINENO: result: yes" >&5
15025 echo "${ECHO_T}yes" >&6; }
15026 ipv6=yes
15027 else
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 { echo "$as_me:$LINENO: result: no" >&5
15032 echo "${ECHO_T}no" >&6; }
15033 ipv6=no
15036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 if test "$ipv6" = "yes"; then
15040 cat >>confdefs.h <<\_ACEOF
15041 #define ENABLE_IPV6 1
15042 _ACEOF
15049 ipv6type=unknown
15050 ipv6lib=none
15051 ipv6trylibc=no
15053 if test "$ipv6" = "yes"; then
15054 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15055 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15056 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15058 case $i in
15059 inria)
15060 cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h. */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15067 #include <netinet/in.h>
15068 #ifdef IPV6_INRIA_VERSION
15070 #endif
15071 _ACEOF
15072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15073 $EGREP "yes" >/dev/null 2>&1; then
15074 ipv6type=$i
15076 rm -f conftest*
15079 kame)
15080 cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h. */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15087 #include <netinet/in.h>
15088 #ifdef __KAME__
15090 #endif
15091 _ACEOF
15092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15093 $EGREP "yes" >/dev/null 2>&1; then
15094 ipv6type=$i;
15095 ipv6lib=inet6
15096 ipv6libdir=/usr/local/v6/lib
15097 ipv6trylibc=yes
15099 rm -f conftest*
15102 linux-glibc)
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h. */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15110 #include <features.h>
15111 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15113 #endif
15114 _ACEOF
15115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15116 $EGREP "yes" >/dev/null 2>&1; then
15117 ipv6type=$i;
15118 ipv6trylibc=yes
15120 rm -f conftest*
15123 linux-inet6)
15124 if test -d /usr/inet6; then
15125 ipv6type=$i
15126 ipv6lib=inet6
15127 ipv6libdir=/usr/inet6/lib
15128 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15131 solaris)
15132 if test -f /etc/netconfig; then
15133 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15134 ipv6type=$i
15135 ipv6trylibc=yes
15139 toshiba)
15140 cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h. */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15147 #include <sys/param.h>
15148 #ifdef _TOSHIBA_INET6
15150 #endif
15151 _ACEOF
15152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15153 $EGREP "yes" >/dev/null 2>&1; then
15154 ipv6type=$i;
15155 ipv6lib=inet6;
15156 ipv6libdir=/usr/local/v6/lib
15158 rm -f conftest*
15161 v6d)
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h. */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15169 #include </usr/local/v6/include/sys/v6config.h>
15170 #ifdef __V6D__
15172 #endif
15173 _ACEOF
15174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15175 $EGREP "yes" >/dev/null 2>&1; then
15176 ipv6type=$i;
15177 ipv6lib=v6;
15178 ipv6libdir=/usr/local/v6/lib;
15179 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15181 rm -f conftest*
15184 zeta)
15185 cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h. */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15192 #include <sys/param.h>
15193 #ifdef _ZETA_MINAMI_INET6
15195 #endif
15196 _ACEOF
15197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15198 $EGREP "yes" >/dev/null 2>&1; then
15199 ipv6type=$i;
15200 ipv6lib=inet6;
15201 ipv6libdir=/usr/local/v6/lib
15203 rm -f conftest*
15206 esac
15207 if test "$ipv6type" != "unknown"; then
15208 break
15210 done
15211 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15212 echo "${ECHO_T}$ipv6type" >&6; }
15215 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15216 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15217 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15218 echo "using lib$ipv6lib"
15219 else
15220 if test $ipv6trylibc = "yes"; then
15221 echo "using libc"
15222 else
15223 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15224 echo "You need to fetch lib$ipv6lib.a from appropriate"
15225 echo 'ipv6 kit and compile beforehand.'
15226 exit 1
15231 # Check for --with-doc-strings
15232 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15233 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15235 # Check whether --with-doc-strings was given.
15236 if test "${with_doc_strings+set}" = set; then
15237 withval=$with_doc_strings;
15241 if test -z "$with_doc_strings"
15242 then with_doc_strings="yes"
15244 if test "$with_doc_strings" != "no"
15245 then
15247 cat >>confdefs.h <<\_ACEOF
15248 #define WITH_DOC_STRINGS 1
15249 _ACEOF
15252 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15253 echo "${ECHO_T}$with_doc_strings" >&6; }
15255 # Check for Python-specific malloc support
15256 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15257 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15259 # Check whether --with-tsc was given.
15260 if test "${with_tsc+set}" = set; then
15261 withval=$with_tsc;
15262 if test "$withval" != no
15263 then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define WITH_TSC 1
15267 _ACEOF
15269 { echo "$as_me:$LINENO: result: yes" >&5
15270 echo "${ECHO_T}yes" >&6; }
15271 else { echo "$as_me:$LINENO: result: no" >&5
15272 echo "${ECHO_T}no" >&6; }
15274 else
15275 { echo "$as_me:$LINENO: result: no" >&5
15276 echo "${ECHO_T}no" >&6; }
15280 # Check for Python-specific malloc support
15281 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15282 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15284 # Check whether --with-pymalloc was given.
15285 if test "${with_pymalloc+set}" = set; then
15286 withval=$with_pymalloc;
15290 if test -z "$with_pymalloc"
15291 then with_pymalloc="yes"
15293 if test "$with_pymalloc" != "no"
15294 then
15296 cat >>confdefs.h <<\_ACEOF
15297 #define WITH_PYMALLOC 1
15298 _ACEOF
15301 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15302 echo "${ECHO_T}$with_pymalloc" >&6; }
15304 # Check for --with-wctype-functions
15305 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15306 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15308 # Check whether --with-wctype-functions was given.
15309 if test "${with_wctype_functions+set}" = set; then
15310 withval=$with_wctype_functions;
15311 if test "$withval" != no
15312 then
15314 cat >>confdefs.h <<\_ACEOF
15315 #define WANT_WCTYPE_FUNCTIONS 1
15316 _ACEOF
15318 { echo "$as_me:$LINENO: result: yes" >&5
15319 echo "${ECHO_T}yes" >&6; }
15320 else { echo "$as_me:$LINENO: result: no" >&5
15321 echo "${ECHO_T}no" >&6; }
15323 else
15324 { echo "$as_me:$LINENO: result: no" >&5
15325 echo "${ECHO_T}no" >&6; }
15329 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15331 DLINCLDIR=.
15333 # the dlopen() function means we might want to use dynload_shlib.o. some
15334 # platforms, such as AIX, have dlopen(), but don't want to use it.
15336 for ac_func in dlopen
15338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h. */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15352 #define $ac_func innocuous_$ac_func
15354 /* System header to define __stub macros and hopefully few prototypes,
15355 which can conflict with char $ac_func (); below.
15356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15357 <limits.h> exists even on freestanding compilers. */
15359 #ifdef __STDC__
15360 # include <limits.h>
15361 #else
15362 # include <assert.h>
15363 #endif
15365 #undef $ac_func
15367 /* Override any GCC internal prototype to avoid an error.
15368 Use char because int might match the return type of a GCC
15369 builtin and then its argument prototype would still apply. */
15370 #ifdef __cplusplus
15371 extern "C"
15372 #endif
15373 char $ac_func ();
15374 /* The GNU C library defines this for functions which it implements
15375 to always fail with ENOSYS. Some functions are actually named
15376 something starting with __ and the normal name is an alias. */
15377 #if defined __stub_$ac_func || defined __stub___$ac_func
15378 choke me
15379 #endif
15382 main ()
15384 return $ac_func ();
15386 return 0;
15388 _ACEOF
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394 esac
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_link") 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } && {
15403 test -z "$ac_c_werror_flag" ||
15404 test ! -s conftest.err
15405 } && test -s conftest$ac_exeext &&
15406 $as_test_x conftest$ac_exeext; then
15407 eval "$as_ac_var=yes"
15408 else
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15412 eval "$as_ac_var=no"
15415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15416 conftest$ac_exeext conftest.$ac_ext
15418 ac_res=`eval echo '${'$as_ac_var'}'`
15419 { echo "$as_me:$LINENO: result: $ac_res" >&5
15420 echo "${ECHO_T}$ac_res" >&6; }
15421 if test `eval echo '${'$as_ac_var'}'` = yes; then
15422 cat >>confdefs.h <<_ACEOF
15423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15424 _ACEOF
15427 done
15430 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15431 # loading of modules.
15433 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15434 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15435 if test -z "$DYNLOADFILE"
15436 then
15437 case $ac_sys_system/$ac_sys_release in
15438 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15439 if test "$ac_cv_func_dlopen" = yes
15440 then DYNLOADFILE="dynload_shlib.o"
15441 else DYNLOADFILE="dynload_aix.o"
15444 BeOS*) DYNLOADFILE="dynload_beos.o";;
15445 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15446 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15447 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15448 atheos*) DYNLOADFILE="dynload_atheos.o";;
15450 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15451 # out any dynamic loading
15452 if test "$ac_cv_func_dlopen" = yes
15453 then DYNLOADFILE="dynload_shlib.o"
15454 else DYNLOADFILE="dynload_stub.o"
15457 esac
15459 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15460 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15461 if test "$DYNLOADFILE" != "dynload_stub.o"
15462 then
15464 cat >>confdefs.h <<\_ACEOF
15465 #define HAVE_DYNAMIC_LOADING 1
15466 _ACEOF
15470 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15473 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15474 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15475 if test -z "$MACHDEP_OBJS"
15476 then
15477 MACHDEP_OBJS=$extra_machdep_objs
15478 else
15479 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15481 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15482 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15484 # checks for library functions
15566 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
15567 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15568 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15569 getpriority getpwent getspnam getspent getsid getwd \
15570 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15571 mremap nice pathconf pause plock poll pthread_init \
15572 putenv readlink realpath \
15573 select setegid seteuid setgid \
15574 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15575 sigaction siginterrupt sigrelse strftime \
15576 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15577 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585 cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h. */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15593 #define $ac_func innocuous_$ac_func
15595 /* System header to define __stub macros and hopefully few prototypes,
15596 which can conflict with char $ac_func (); below.
15597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15598 <limits.h> exists even on freestanding compilers. */
15600 #ifdef __STDC__
15601 # include <limits.h>
15602 #else
15603 # include <assert.h>
15604 #endif
15606 #undef $ac_func
15608 /* Override any GCC internal prototype to avoid an error.
15609 Use char because int might match the return type of a GCC
15610 builtin and then its argument prototype would still apply. */
15611 #ifdef __cplusplus
15612 extern "C"
15613 #endif
15614 char $ac_func ();
15615 /* The GNU C library defines this for functions which it implements
15616 to always fail with ENOSYS. Some functions are actually named
15617 something starting with __ and the normal name is an alias. */
15618 #if defined __stub_$ac_func || defined __stub___$ac_func
15619 choke me
15620 #endif
15623 main ()
15625 return $ac_func ();
15627 return 0;
15629 _ACEOF
15630 rm -f conftest.$ac_objext conftest$ac_exeext
15631 if { (ac_try="$ac_link"
15632 case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_link") 2>conftest.er1
15638 ac_status=$?
15639 grep -v '^ *+' conftest.er1 >conftest.err
15640 rm -f conftest.er1
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } && {
15644 test -z "$ac_c_werror_flag" ||
15645 test ! -s conftest.err
15646 } && test -s conftest$ac_exeext &&
15647 $as_test_x conftest$ac_exeext; then
15648 eval "$as_ac_var=yes"
15649 else
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15653 eval "$as_ac_var=no"
15656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15657 conftest$ac_exeext conftest.$ac_ext
15659 ac_res=`eval echo '${'$as_ac_var'}'`
15660 { echo "$as_me:$LINENO: result: $ac_res" >&5
15661 echo "${ECHO_T}$ac_res" >&6; }
15662 if test `eval echo '${'$as_ac_var'}'` = yes; then
15663 cat >>confdefs.h <<_ACEOF
15664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15665 _ACEOF
15668 done
15671 # For some functions, having a definition is not sufficient, since
15672 # we want to take their address.
15673 { echo "$as_me:$LINENO: checking for chroot" >&5
15674 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15675 cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h. */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 #include <unistd.h>
15683 main ()
15685 void *x=chroot
15687 return 0;
15689 _ACEOF
15690 rm -f conftest.$ac_objext
15691 if { (ac_try="$ac_compile"
15692 case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_compile") 2>conftest.er1
15698 ac_status=$?
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } && {
15704 test -z "$ac_c_werror_flag" ||
15705 test ! -s conftest.err
15706 } && test -s conftest.$ac_objext; then
15708 cat >>confdefs.h <<\_ACEOF
15709 #define HAVE_CHROOT 1
15710 _ACEOF
15712 { echo "$as_me:$LINENO: result: yes" >&5
15713 echo "${ECHO_T}yes" >&6; }
15714 else
15715 echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15718 { echo "$as_me:$LINENO: result: no" >&5
15719 echo "${ECHO_T}no" >&6; }
15723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724 { echo "$as_me:$LINENO: checking for link" >&5
15725 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15726 cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h. */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732 #include <unistd.h>
15734 main ()
15736 void *x=link
15738 return 0;
15740 _ACEOF
15741 rm -f conftest.$ac_objext
15742 if { (ac_try="$ac_compile"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_compile") 2>conftest.er1
15749 ac_status=$?
15750 grep -v '^ *+' conftest.er1 >conftest.err
15751 rm -f conftest.er1
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } && {
15755 test -z "$ac_c_werror_flag" ||
15756 test ! -s conftest.err
15757 } && test -s conftest.$ac_objext; then
15759 cat >>confdefs.h <<\_ACEOF
15760 #define HAVE_LINK 1
15761 _ACEOF
15763 { echo "$as_me:$LINENO: result: yes" >&5
15764 echo "${ECHO_T}yes" >&6; }
15765 else
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 { echo "$as_me:$LINENO: result: no" >&5
15770 echo "${ECHO_T}no" >&6; }
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 { echo "$as_me:$LINENO: checking for symlink" >&5
15776 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15777 cat >conftest.$ac_ext <<_ACEOF
15778 /* confdefs.h. */
15779 _ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h. */
15783 #include <unistd.h>
15785 main ()
15787 void *x=symlink
15789 return 0;
15791 _ACEOF
15792 rm -f conftest.$ac_objext
15793 if { (ac_try="$ac_compile"
15794 case "(($ac_try" in
15795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796 *) ac_try_echo=$ac_try;;
15797 esac
15798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15799 (eval "$ac_compile") 2>conftest.er1
15800 ac_status=$?
15801 grep -v '^ *+' conftest.er1 >conftest.err
15802 rm -f conftest.er1
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } && {
15806 test -z "$ac_c_werror_flag" ||
15807 test ! -s conftest.err
15808 } && test -s conftest.$ac_objext; then
15810 cat >>confdefs.h <<\_ACEOF
15811 #define HAVE_SYMLINK 1
15812 _ACEOF
15814 { echo "$as_me:$LINENO: result: yes" >&5
15815 echo "${ECHO_T}yes" >&6; }
15816 else
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 { echo "$as_me:$LINENO: result: no" >&5
15821 echo "${ECHO_T}no" >&6; }
15825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826 { echo "$as_me:$LINENO: checking for fchdir" >&5
15827 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15828 cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h. */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 #include <unistd.h>
15836 main ()
15838 void *x=fchdir
15840 return 0;
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (ac_try="$ac_compile"
15845 case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15848 esac
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_compile") 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } && {
15857 test -z "$ac_c_werror_flag" ||
15858 test ! -s conftest.err
15859 } && test -s conftest.$ac_objext; then
15861 cat >>confdefs.h <<\_ACEOF
15862 #define HAVE_FCHDIR 1
15863 _ACEOF
15865 { echo "$as_me:$LINENO: result: yes" >&5
15866 echo "${ECHO_T}yes" >&6; }
15867 else
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 { echo "$as_me:$LINENO: result: no" >&5
15872 echo "${ECHO_T}no" >&6; }
15876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877 { echo "$as_me:$LINENO: checking for fsync" >&5
15878 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h. */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 #include <unistd.h>
15887 main ()
15889 void *x=fsync
15891 return 0;
15893 _ACEOF
15894 rm -f conftest.$ac_objext
15895 if { (ac_try="$ac_compile"
15896 case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_compile") 2>conftest.er1
15902 ac_status=$?
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && {
15908 test -z "$ac_c_werror_flag" ||
15909 test ! -s conftest.err
15910 } && test -s conftest.$ac_objext; then
15912 cat >>confdefs.h <<\_ACEOF
15913 #define HAVE_FSYNC 1
15914 _ACEOF
15916 { echo "$as_me:$LINENO: result: yes" >&5
15917 echo "${ECHO_T}yes" >&6; }
15918 else
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 { echo "$as_me:$LINENO: result: no" >&5
15923 echo "${ECHO_T}no" >&6; }
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15929 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <unistd.h>
15938 main ()
15940 void *x=fdatasync
15942 return 0;
15944 _ACEOF
15945 rm -f conftest.$ac_objext
15946 if { (ac_try="$ac_compile"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15950 esac
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952 (eval "$ac_compile") 2>conftest.er1
15953 ac_status=$?
15954 grep -v '^ *+' conftest.er1 >conftest.err
15955 rm -f conftest.er1
15956 cat conftest.err >&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } && {
15959 test -z "$ac_c_werror_flag" ||
15960 test ! -s conftest.err
15961 } && test -s conftest.$ac_objext; then
15963 cat >>confdefs.h <<\_ACEOF
15964 #define HAVE_FDATASYNC 1
15965 _ACEOF
15967 { echo "$as_me:$LINENO: result: yes" >&5
15968 echo "${ECHO_T}yes" >&6; }
15969 else
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 { echo "$as_me:$LINENO: result: no" >&5
15974 echo "${ECHO_T}no" >&6; }
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 { echo "$as_me:$LINENO: checking for epoll" >&5
15980 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
15981 cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h. */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15987 #include <sys/epoll.h>
15989 main ()
15991 void *x=epoll_create
15993 return 0;
15995 _ACEOF
15996 rm -f conftest.$ac_objext
15997 if { (ac_try="$ac_compile"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_compile") 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest.$ac_objext; then
16014 cat >>confdefs.h <<\_ACEOF
16015 #define HAVE_EPOLL 1
16016 _ACEOF
16018 { echo "$as_me:$LINENO: result: yes" >&5
16019 echo "${ECHO_T}yes" >&6; }
16020 else
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 { echo "$as_me:$LINENO: result: no" >&5
16025 echo "${ECHO_T}no" >&6; }
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030 { echo "$as_me:$LINENO: checking for kqueue" >&5
16031 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16032 cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h. */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16039 #include <sys/types.h>
16040 #include <sys/event.h>
16043 main ()
16045 int x=kqueue()
16047 return 0;
16049 _ACEOF
16050 rm -f conftest.$ac_objext
16051 if { (ac_try="$ac_compile"
16052 case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_compile") 2>conftest.er1
16058 ac_status=$?
16059 grep -v '^ *+' conftest.er1 >conftest.err
16060 rm -f conftest.er1
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } && {
16064 test -z "$ac_c_werror_flag" ||
16065 test ! -s conftest.err
16066 } && test -s conftest.$ac_objext; then
16068 cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_KQUEUE 1
16070 _ACEOF
16072 { echo "$as_me:$LINENO: result: yes" >&5
16073 echo "${ECHO_T}yes" >&6; }
16074 else
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 { echo "$as_me:$LINENO: result: no" >&5
16079 echo "${ECHO_T}no" >&6; }
16083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16084 # On some systems (eg. FreeBSD 5), we would find a definition of the
16085 # functions ctermid_r, setgroups in the library, but no prototype
16086 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16087 # address to avoid compiler warnings and potential miscompilations
16088 # because of the missing prototypes.
16090 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16091 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16092 cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h. */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16099 #include "confdefs.h"
16100 #include <stdio.h>
16103 main ()
16105 void* p = ctermid_r
16107 return 0;
16109 _ACEOF
16110 rm -f conftest.$ac_objext
16111 if { (ac_try="$ac_compile"
16112 case "(($ac_try" in
16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114 *) ac_try_echo=$ac_try;;
16115 esac
16116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117 (eval "$ac_compile") 2>conftest.er1
16118 ac_status=$?
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } && {
16124 test -z "$ac_c_werror_flag" ||
16125 test ! -s conftest.err
16126 } && test -s conftest.$ac_objext; then
16128 cat >>confdefs.h <<\_ACEOF
16129 #define HAVE_CTERMID_R 1
16130 _ACEOF
16132 { echo "$as_me:$LINENO: result: yes" >&5
16133 echo "${ECHO_T}yes" >&6; }
16134 else
16135 echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 { echo "$as_me:$LINENO: result: no" >&5
16139 echo "${ECHO_T}no" >&6; }
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 { echo "$as_me:$LINENO: checking for flock" >&5
16146 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h. */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16154 #include "confdefs.h"
16155 #include <sys/file.h>
16158 main ()
16160 void* p = flock
16162 return 0;
16164 _ACEOF
16165 rm -f conftest.$ac_objext
16166 if { (ac_try="$ac_compile"
16167 case "(($ac_try" in
16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16170 esac
16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172 (eval "$ac_compile") 2>conftest.er1
16173 ac_status=$?
16174 grep -v '^ *+' conftest.er1 >conftest.err
16175 rm -f conftest.er1
16176 cat conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } && {
16179 test -z "$ac_c_werror_flag" ||
16180 test ! -s conftest.err
16181 } && test -s conftest.$ac_objext; then
16183 cat >>confdefs.h <<\_ACEOF
16184 #define HAVE_FLOCK 1
16185 _ACEOF
16187 { echo "$as_me:$LINENO: result: yes" >&5
16188 echo "${ECHO_T}yes" >&6; }
16189 else
16190 echo "$as_me: failed program was:" >&5
16191 sed 's/^/| /' conftest.$ac_ext >&5
16193 { echo "$as_me:$LINENO: result: no" >&5
16194 echo "${ECHO_T}no" >&6; }
16198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16200 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16201 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16202 cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h. */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16209 #include "confdefs.h"
16210 #include <unistd.h>
16213 main ()
16215 void* p = getpagesize
16217 return 0;
16219 _ACEOF
16220 rm -f conftest.$ac_objext
16221 if { (ac_try="$ac_compile"
16222 case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_compile") 2>conftest.er1
16228 ac_status=$?
16229 grep -v '^ *+' conftest.er1 >conftest.err
16230 rm -f conftest.er1
16231 cat conftest.err >&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } && {
16234 test -z "$ac_c_werror_flag" ||
16235 test ! -s conftest.err
16236 } && test -s conftest.$ac_objext; then
16238 cat >>confdefs.h <<\_ACEOF
16239 #define HAVE_GETPAGESIZE 1
16240 _ACEOF
16242 { echo "$as_me:$LINENO: result: yes" >&5
16243 echo "${ECHO_T}yes" >&6; }
16244 else
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16248 { echo "$as_me:$LINENO: result: no" >&5
16249 echo "${ECHO_T}no" >&6; }
16253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255 for ac_prog in true
16257 # Extract the first word of "$ac_prog", so it can be a program name with args.
16258 set dummy $ac_prog; ac_word=$2
16259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16261 if test "${ac_cv_prog_TRUE+set}" = set; then
16262 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 else
16264 if test -n "$TRUE"; then
16265 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16266 else
16267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16268 for as_dir in $PATH
16270 IFS=$as_save_IFS
16271 test -z "$as_dir" && as_dir=.
16272 for ac_exec_ext in '' $ac_executable_extensions; do
16273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16274 ac_cv_prog_TRUE="$ac_prog"
16275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16276 break 2
16278 done
16279 done
16280 IFS=$as_save_IFS
16284 TRUE=$ac_cv_prog_TRUE
16285 if test -n "$TRUE"; then
16286 { echo "$as_me:$LINENO: result: $TRUE" >&5
16287 echo "${ECHO_T}$TRUE" >&6; }
16288 else
16289 { echo "$as_me:$LINENO: result: no" >&5
16290 echo "${ECHO_T}no" >&6; }
16294 test -n "$TRUE" && break
16295 done
16296 test -n "$TRUE" || TRUE="/bin/true"
16299 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16300 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16301 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 else
16304 ac_check_lib_save_LIBS=$LIBS
16305 LIBS="-lc $LIBS"
16306 cat >conftest.$ac_ext <<_ACEOF
16307 /* confdefs.h. */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16313 /* Override any GCC internal prototype to avoid an error.
16314 Use char because int might match the return type of a GCC
16315 builtin and then its argument prototype would still apply. */
16316 #ifdef __cplusplus
16317 extern "C"
16318 #endif
16319 char inet_aton ();
16321 main ()
16323 return inet_aton ();
16325 return 0;
16327 _ACEOF
16328 rm -f conftest.$ac_objext conftest$ac_exeext
16329 if { (ac_try="$ac_link"
16330 case "(($ac_try" in
16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332 *) ac_try_echo=$ac_try;;
16333 esac
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335 (eval "$ac_link") 2>conftest.er1
16336 ac_status=$?
16337 grep -v '^ *+' conftest.er1 >conftest.err
16338 rm -f conftest.er1
16339 cat conftest.err >&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } && {
16342 test -z "$ac_c_werror_flag" ||
16343 test ! -s conftest.err
16344 } && test -s conftest$ac_exeext &&
16345 $as_test_x conftest$ac_exeext; then
16346 ac_cv_lib_c_inet_aton=yes
16347 else
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 ac_cv_lib_c_inet_aton=no
16354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16355 conftest$ac_exeext conftest.$ac_ext
16356 LIBS=$ac_check_lib_save_LIBS
16358 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16359 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16360 if test $ac_cv_lib_c_inet_aton = yes; then
16361 $ac_cv_prog_TRUE
16362 else
16364 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16365 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16366 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 else
16369 ac_check_lib_save_LIBS=$LIBS
16370 LIBS="-lresolv $LIBS"
16371 cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h. */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16378 /* Override any GCC internal prototype to avoid an error.
16379 Use char because int might match the return type of a GCC
16380 builtin and then its argument prototype would still apply. */
16381 #ifdef __cplusplus
16382 extern "C"
16383 #endif
16384 char inet_aton ();
16386 main ()
16388 return inet_aton ();
16390 return 0;
16392 _ACEOF
16393 rm -f conftest.$ac_objext conftest$ac_exeext
16394 if { (ac_try="$ac_link"
16395 case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16398 esac
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_link") 2>conftest.er1
16401 ac_status=$?
16402 grep -v '^ *+' conftest.er1 >conftest.err
16403 rm -f conftest.er1
16404 cat conftest.err >&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } && {
16407 test -z "$ac_c_werror_flag" ||
16408 test ! -s conftest.err
16409 } && test -s conftest$ac_exeext &&
16410 $as_test_x conftest$ac_exeext; then
16411 ac_cv_lib_resolv_inet_aton=yes
16412 else
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 ac_cv_lib_resolv_inet_aton=no
16419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16420 conftest$ac_exeext conftest.$ac_ext
16421 LIBS=$ac_check_lib_save_LIBS
16423 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16424 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16425 if test $ac_cv_lib_resolv_inet_aton = yes; then
16426 cat >>confdefs.h <<_ACEOF
16427 #define HAVE_LIBRESOLV 1
16428 _ACEOF
16430 LIBS="-lresolv $LIBS"
16438 # On Tru64, chflags seems to be present, but calling it will
16439 # exit Python
16440 { echo "$as_me:$LINENO: checking for chflags" >&5
16441 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16442 if test "$cross_compiling" = yes; then
16443 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16444 See \`config.log' for more details." >&5
16445 echo "$as_me: error: cannot run test program while cross compiling
16446 See \`config.log' for more details." >&2;}
16447 { (exit 1); exit 1; }; }
16448 else
16449 cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h. */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16456 #include <sys/stat.h>
16457 #include <unistd.h>
16458 int main(int argc, char*argv[])
16460 if(chflags(argv[0], 0) != 0)
16461 return 1;
16462 return 0;
16465 _ACEOF
16466 rm -f conftest$ac_exeext
16467 if { (ac_try="$ac_link"
16468 case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_link") 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16477 { (case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16480 esac
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482 (eval "$ac_try") 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16487 cat >>confdefs.h <<\_ACEOF
16488 #define HAVE_CHFLAGS 1
16489 _ACEOF
16491 { echo "$as_me:$LINENO: result: yes" >&5
16492 echo "${ECHO_T}yes" >&6; }
16493 else
16494 echo "$as_me: program exited with status $ac_status" >&5
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ( exit $ac_status )
16499 { echo "$as_me:$LINENO: result: no" >&5
16500 echo "${ECHO_T}no" >&6; }
16503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16508 { echo "$as_me:$LINENO: checking for lchflags" >&5
16509 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
16510 if test "$cross_compiling" = yes; then
16511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16512 See \`config.log' for more details." >&5
16513 echo "$as_me: error: cannot run test program while cross compiling
16514 See \`config.log' for more details." >&2;}
16515 { (exit 1); exit 1; }; }
16516 else
16517 cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h. */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16524 #include <sys/stat.h>
16525 #include <unistd.h>
16526 int main(int argc, char*argv[])
16528 if(lchflags(argv[0], 0) != 0)
16529 return 1;
16530 return 0;
16533 _ACEOF
16534 rm -f conftest$ac_exeext
16535 if { (ac_try="$ac_link"
16536 case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_link") 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16545 { (case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548 esac
16549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_try") 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16555 cat >>confdefs.h <<\_ACEOF
16556 #define HAVE_LCHFLAGS 1
16557 _ACEOF
16559 { echo "$as_me:$LINENO: result: yes" >&5
16560 echo "${ECHO_T}yes" >&6; }
16561 else
16562 echo "$as_me: program exited with status $ac_status" >&5
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ( exit $ac_status )
16567 { echo "$as_me:$LINENO: result: no" >&5
16568 echo "${ECHO_T}no" >&6; }
16571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16576 case $ac_sys_system/$ac_sys_release in
16577 Darwin/*)
16578 _CUR_CFLAGS="${CFLAGS}"
16579 _CUR_LDFLAGS="${LDFLAGS}"
16580 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16581 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16583 esac
16585 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16586 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16587 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 else
16590 ac_check_lib_save_LIBS=$LIBS
16591 LIBS="-lz $LIBS"
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16599 /* Override any GCC internal prototype to avoid an error.
16600 Use char because int might match the return type of a GCC
16601 builtin and then its argument prototype would still apply. */
16602 #ifdef __cplusplus
16603 extern "C"
16604 #endif
16605 char inflateCopy ();
16607 main ()
16609 return inflateCopy ();
16611 return 0;
16613 _ACEOF
16614 rm -f conftest.$ac_objext conftest$ac_exeext
16615 if { (ac_try="$ac_link"
16616 case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_link") 2>conftest.er1
16622 ac_status=$?
16623 grep -v '^ *+' conftest.er1 >conftest.err
16624 rm -f conftest.er1
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && {
16628 test -z "$ac_c_werror_flag" ||
16629 test ! -s conftest.err
16630 } && test -s conftest$ac_exeext &&
16631 $as_test_x conftest$ac_exeext; then
16632 ac_cv_lib_z_inflateCopy=yes
16633 else
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16637 ac_cv_lib_z_inflateCopy=no
16640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16641 conftest$ac_exeext conftest.$ac_ext
16642 LIBS=$ac_check_lib_save_LIBS
16644 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16645 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16646 if test $ac_cv_lib_z_inflateCopy = yes; then
16648 cat >>confdefs.h <<\_ACEOF
16649 #define HAVE_ZLIB_COPY 1
16650 _ACEOF
16655 case $ac_sys_system/$ac_sys_release in
16656 Darwin/*)
16657 CFLAGS="${_CUR_CFLAGS}"
16658 LDFLAGS="${_CUR_LDFLAGS}"
16660 esac
16662 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16663 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16664 cat >conftest.$ac_ext <<_ACEOF
16665 /* confdefs.h. */
16666 _ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16671 #include "confdefs.h"
16672 #include <netdb.h>
16675 main ()
16677 void* p = hstrerror; hstrerror(0)
16679 return 0;
16681 _ACEOF
16682 rm -f conftest.$ac_objext conftest$ac_exeext
16683 if { (ac_try="$ac_link"
16684 case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16687 esac
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_link") 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } && {
16696 test -z "$ac_c_werror_flag" ||
16697 test ! -s conftest.err
16698 } && test -s conftest$ac_exeext &&
16699 $as_test_x conftest$ac_exeext; then
16701 cat >>confdefs.h <<\_ACEOF
16702 #define HAVE_HSTRERROR 1
16703 _ACEOF
16705 { echo "$as_me:$LINENO: result: yes" >&5
16706 echo "${ECHO_T}yes" >&6; }
16707 else
16708 echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16711 { echo "$as_me:$LINENO: result: no" >&5
16712 echo "${ECHO_T}no" >&6; }
16716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16717 conftest$ac_exeext conftest.$ac_ext
16719 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16720 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16721 cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h. */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16728 #include "confdefs.h"
16729 #include <sys/types.h>
16730 #include <sys/socket.h>
16731 #include <netinet/in.h>
16732 #include <arpa/inet.h>
16735 main ()
16737 void* p = inet_aton;inet_aton(0,0)
16739 return 0;
16741 _ACEOF
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (ac_try="$ac_link"
16744 case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_link") 2>conftest.er1
16750 ac_status=$?
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } && {
16756 test -z "$ac_c_werror_flag" ||
16757 test ! -s conftest.err
16758 } && test -s conftest$ac_exeext &&
16759 $as_test_x conftest$ac_exeext; then
16761 cat >>confdefs.h <<\_ACEOF
16762 #define HAVE_INET_ATON 1
16763 _ACEOF
16765 { echo "$as_me:$LINENO: result: yes" >&5
16766 echo "${ECHO_T}yes" >&6; }
16767 else
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16771 { echo "$as_me:$LINENO: result: no" >&5
16772 echo "${ECHO_T}no" >&6; }
16776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16777 conftest$ac_exeext conftest.$ac_ext
16779 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16780 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16781 cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h. */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16788 #include "confdefs.h"
16789 #include <sys/types.h>
16790 #include <sys/socket.h>
16791 #include <netinet/in.h>
16792 #include <arpa/inet.h>
16795 main ()
16797 void* p = inet_pton
16799 return 0;
16801 _ACEOF
16802 rm -f conftest.$ac_objext
16803 if { (ac_try="$ac_compile"
16804 case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16807 esac
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_compile") 2>conftest.er1
16810 ac_status=$?
16811 grep -v '^ *+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } && {
16816 test -z "$ac_c_werror_flag" ||
16817 test ! -s conftest.err
16818 } && test -s conftest.$ac_objext; then
16820 cat >>confdefs.h <<\_ACEOF
16821 #define HAVE_INET_PTON 1
16822 _ACEOF
16824 { echo "$as_me:$LINENO: result: yes" >&5
16825 echo "${ECHO_T}yes" >&6; }
16826 else
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16830 { echo "$as_me:$LINENO: result: no" >&5
16831 echo "${ECHO_T}no" >&6; }
16835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16837 # On some systems, setgroups is in unistd.h, on others, in grp.h
16838 { echo "$as_me:$LINENO: checking for setgroups" >&5
16839 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16840 cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h. */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h. */
16847 #include "confdefs.h"
16848 #include <unistd.h>
16849 #ifdef HAVE_GRP_H
16850 #include <grp.h>
16851 #endif
16854 main ()
16856 void* p = setgroups
16858 return 0;
16860 _ACEOF
16861 rm -f conftest.$ac_objext
16862 if { (ac_try="$ac_compile"
16863 case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866 esac
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_compile") 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } && {
16875 test -z "$ac_c_werror_flag" ||
16876 test ! -s conftest.err
16877 } && test -s conftest.$ac_objext; then
16879 cat >>confdefs.h <<\_ACEOF
16880 #define HAVE_SETGROUPS 1
16881 _ACEOF
16883 { echo "$as_me:$LINENO: result: yes" >&5
16884 echo "${ECHO_T}yes" >&6; }
16885 else
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16889 { echo "$as_me:$LINENO: result: no" >&5
16890 echo "${ECHO_T}no" >&6; }
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 # check for openpty and forkpty
16899 for ac_func in openpty
16901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907 cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h. */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16915 #define $ac_func innocuous_$ac_func
16917 /* System header to define __stub macros and hopefully few prototypes,
16918 which can conflict with char $ac_func (); below.
16919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16920 <limits.h> exists even on freestanding compilers. */
16922 #ifdef __STDC__
16923 # include <limits.h>
16924 #else
16925 # include <assert.h>
16926 #endif
16928 #undef $ac_func
16930 /* Override any GCC internal prototype to avoid an error.
16931 Use char because int might match the return type of a GCC
16932 builtin and then its argument prototype would still apply. */
16933 #ifdef __cplusplus
16934 extern "C"
16935 #endif
16936 char $ac_func ();
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined __stub_$ac_func || defined __stub___$ac_func
16941 choke me
16942 #endif
16945 main ()
16947 return $ac_func ();
16949 return 0;
16951 _ACEOF
16952 rm -f conftest.$ac_objext conftest$ac_exeext
16953 if { (ac_try="$ac_link"
16954 case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_link") 2>conftest.er1
16960 ac_status=$?
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } && {
16966 test -z "$ac_c_werror_flag" ||
16967 test ! -s conftest.err
16968 } && test -s conftest$ac_exeext &&
16969 $as_test_x conftest$ac_exeext; then
16970 eval "$as_ac_var=yes"
16971 else
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 eval "$as_ac_var=no"
16978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16979 conftest$ac_exeext conftest.$ac_ext
16981 ac_res=`eval echo '${'$as_ac_var'}'`
16982 { echo "$as_me:$LINENO: result: $ac_res" >&5
16983 echo "${ECHO_T}$ac_res" >&6; }
16984 if test `eval echo '${'$as_ac_var'}'` = yes; then
16985 cat >>confdefs.h <<_ACEOF
16986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16987 _ACEOF
16989 else
16990 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16991 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16992 if test "${ac_cv_lib_util_openpty+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995 ac_check_lib_save_LIBS=$LIBS
16996 LIBS="-lutil $LIBS"
16997 cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h. */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17004 /* Override any GCC internal prototype to avoid an error.
17005 Use char because int might match the return type of a GCC
17006 builtin and then its argument prototype would still apply. */
17007 #ifdef __cplusplus
17008 extern "C"
17009 #endif
17010 char openpty ();
17012 main ()
17014 return openpty ();
17016 return 0;
17018 _ACEOF
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (ac_try="$ac_link"
17021 case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17024 esac
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_link") 2>conftest.er1
17027 ac_status=$?
17028 grep -v '^ *+' conftest.er1 >conftest.err
17029 rm -f conftest.er1
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } && {
17033 test -z "$ac_c_werror_flag" ||
17034 test ! -s conftest.err
17035 } && test -s conftest$ac_exeext &&
17036 $as_test_x conftest$ac_exeext; then
17037 ac_cv_lib_util_openpty=yes
17038 else
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17042 ac_cv_lib_util_openpty=no
17045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17046 conftest$ac_exeext conftest.$ac_ext
17047 LIBS=$ac_check_lib_save_LIBS
17049 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17050 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17051 if test $ac_cv_lib_util_openpty = yes; then
17052 cat >>confdefs.h <<\_ACEOF
17053 #define HAVE_OPENPTY 1
17054 _ACEOF
17055 LIBS="$LIBS -lutil"
17056 else
17057 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17058 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17059 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062 ac_check_lib_save_LIBS=$LIBS
17063 LIBS="-lbsd $LIBS"
17064 cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h. */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17071 /* Override any GCC internal prototype to avoid an error.
17072 Use char because int might match the return type of a GCC
17073 builtin and then its argument prototype would still apply. */
17074 #ifdef __cplusplus
17075 extern "C"
17076 #endif
17077 char openpty ();
17079 main ()
17081 return openpty ();
17083 return 0;
17085 _ACEOF
17086 rm -f conftest.$ac_objext conftest$ac_exeext
17087 if { (ac_try="$ac_link"
17088 case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_link") 2>conftest.er1
17094 ac_status=$?
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } && {
17100 test -z "$ac_c_werror_flag" ||
17101 test ! -s conftest.err
17102 } && test -s conftest$ac_exeext &&
17103 $as_test_x conftest$ac_exeext; then
17104 ac_cv_lib_bsd_openpty=yes
17105 else
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 ac_cv_lib_bsd_openpty=no
17112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17113 conftest$ac_exeext conftest.$ac_ext
17114 LIBS=$ac_check_lib_save_LIBS
17116 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17117 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17118 if test $ac_cv_lib_bsd_openpty = yes; then
17119 cat >>confdefs.h <<\_ACEOF
17120 #define HAVE_OPENPTY 1
17121 _ACEOF
17122 LIBS="$LIBS -lbsd"
17130 done
17133 for ac_func in forkpty
17135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141 cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h. */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17149 #define $ac_func innocuous_$ac_func
17151 /* System header to define __stub macros and hopefully few prototypes,
17152 which can conflict with char $ac_func (); below.
17153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17154 <limits.h> exists even on freestanding compilers. */
17156 #ifdef __STDC__
17157 # include <limits.h>
17158 #else
17159 # include <assert.h>
17160 #endif
17162 #undef $ac_func
17164 /* Override any GCC internal prototype to avoid an error.
17165 Use char because int might match the return type of a GCC
17166 builtin and then its argument prototype would still apply. */
17167 #ifdef __cplusplus
17168 extern "C"
17169 #endif
17170 char $ac_func ();
17171 /* The GNU C library defines this for functions which it implements
17172 to always fail with ENOSYS. Some functions are actually named
17173 something starting with __ and the normal name is an alias. */
17174 #if defined __stub_$ac_func || defined __stub___$ac_func
17175 choke me
17176 #endif
17179 main ()
17181 return $ac_func ();
17183 return 0;
17185 _ACEOF
17186 rm -f conftest.$ac_objext conftest$ac_exeext
17187 if { (ac_try="$ac_link"
17188 case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17191 esac
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_link") 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } && {
17200 test -z "$ac_c_werror_flag" ||
17201 test ! -s conftest.err
17202 } && test -s conftest$ac_exeext &&
17203 $as_test_x conftest$ac_exeext; then
17204 eval "$as_ac_var=yes"
17205 else
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17209 eval "$as_ac_var=no"
17212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17213 conftest$ac_exeext conftest.$ac_ext
17215 ac_res=`eval echo '${'$as_ac_var'}'`
17216 { echo "$as_me:$LINENO: result: $ac_res" >&5
17217 echo "${ECHO_T}$ac_res" >&6; }
17218 if test `eval echo '${'$as_ac_var'}'` = yes; then
17219 cat >>confdefs.h <<_ACEOF
17220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17221 _ACEOF
17223 else
17224 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17225 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17226 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 else
17229 ac_check_lib_save_LIBS=$LIBS
17230 LIBS="-lutil $LIBS"
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h. */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17238 /* Override any GCC internal prototype to avoid an error.
17239 Use char because int might match the return type of a GCC
17240 builtin and then its argument prototype would still apply. */
17241 #ifdef __cplusplus
17242 extern "C"
17243 #endif
17244 char forkpty ();
17246 main ()
17248 return forkpty ();
17250 return 0;
17252 _ACEOF
17253 rm -f conftest.$ac_objext conftest$ac_exeext
17254 if { (ac_try="$ac_link"
17255 case "(($ac_try" in
17256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17258 esac
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_link") 2>conftest.er1
17261 ac_status=$?
17262 grep -v '^ *+' conftest.er1 >conftest.err
17263 rm -f conftest.er1
17264 cat conftest.err >&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } && {
17267 test -z "$ac_c_werror_flag" ||
17268 test ! -s conftest.err
17269 } && test -s conftest$ac_exeext &&
17270 $as_test_x conftest$ac_exeext; then
17271 ac_cv_lib_util_forkpty=yes
17272 else
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 ac_cv_lib_util_forkpty=no
17279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17280 conftest$ac_exeext conftest.$ac_ext
17281 LIBS=$ac_check_lib_save_LIBS
17283 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17284 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17285 if test $ac_cv_lib_util_forkpty = yes; then
17286 cat >>confdefs.h <<\_ACEOF
17287 #define HAVE_FORKPTY 1
17288 _ACEOF
17289 LIBS="$LIBS -lutil"
17290 else
17291 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17292 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17293 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296 ac_check_lib_save_LIBS=$LIBS
17297 LIBS="-lbsd $LIBS"
17298 cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h. */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17305 /* Override any GCC internal prototype to avoid an error.
17306 Use char because int might match the return type of a GCC
17307 builtin and then its argument prototype would still apply. */
17308 #ifdef __cplusplus
17309 extern "C"
17310 #endif
17311 char forkpty ();
17313 main ()
17315 return forkpty ();
17317 return 0;
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17328 ac_status=$?
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } && {
17334 test -z "$ac_c_werror_flag" ||
17335 test ! -s conftest.err
17336 } && test -s conftest$ac_exeext &&
17337 $as_test_x conftest$ac_exeext; then
17338 ac_cv_lib_bsd_forkpty=yes
17339 else
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_cv_lib_bsd_forkpty=no
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17348 LIBS=$ac_check_lib_save_LIBS
17350 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17351 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17352 if test $ac_cv_lib_bsd_forkpty = yes; then
17353 cat >>confdefs.h <<\_ACEOF
17354 #define HAVE_FORKPTY 1
17355 _ACEOF
17356 LIBS="$LIBS -lbsd"
17364 done
17367 # Stuff for expat.
17369 for ac_func in memmove
17371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377 cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h. */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385 #define $ac_func innocuous_$ac_func
17387 /* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17392 #ifdef __STDC__
17393 # include <limits.h>
17394 #else
17395 # include <assert.h>
17396 #endif
17398 #undef $ac_func
17400 /* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17403 #ifdef __cplusplus
17404 extern "C"
17405 #endif
17406 char $ac_func ();
17407 /* The GNU C library defines this for functions which it implements
17408 to always fail with ENOSYS. Some functions are actually named
17409 something starting with __ and the normal name is an alias. */
17410 #if defined __stub_$ac_func || defined __stub___$ac_func
17411 choke me
17412 #endif
17415 main ()
17417 return $ac_func ();
17419 return 0;
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427 esac
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && {
17436 test -z "$ac_c_werror_flag" ||
17437 test ! -s conftest.err
17438 } && test -s conftest$ac_exeext &&
17439 $as_test_x conftest$ac_exeext; then
17440 eval "$as_ac_var=yes"
17441 else
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 eval "$as_ac_var=no"
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449 conftest$ac_exeext conftest.$ac_ext
17451 ac_res=`eval echo '${'$as_ac_var'}'`
17452 { echo "$as_me:$LINENO: result: $ac_res" >&5
17453 echo "${ECHO_T}$ac_res" >&6; }
17454 if test `eval echo '${'$as_ac_var'}'` = yes; then
17455 cat >>confdefs.h <<_ACEOF
17456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17457 _ACEOF
17460 done
17463 # check for long file support functions
17470 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478 cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h. */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17486 #define $ac_func innocuous_$ac_func
17488 /* System header to define __stub macros and hopefully few prototypes,
17489 which can conflict with char $ac_func (); below.
17490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17491 <limits.h> exists even on freestanding compilers. */
17493 #ifdef __STDC__
17494 # include <limits.h>
17495 #else
17496 # include <assert.h>
17497 #endif
17499 #undef $ac_func
17501 /* Override any GCC internal prototype to avoid an error.
17502 Use char because int might match the return type of a GCC
17503 builtin and then its argument prototype would still apply. */
17504 #ifdef __cplusplus
17505 extern "C"
17506 #endif
17507 char $ac_func ();
17508 /* The GNU C library defines this for functions which it implements
17509 to always fail with ENOSYS. Some functions are actually named
17510 something starting with __ and the normal name is an alias. */
17511 #if defined __stub_$ac_func || defined __stub___$ac_func
17512 choke me
17513 #endif
17516 main ()
17518 return $ac_func ();
17520 return 0;
17522 _ACEOF
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (ac_try="$ac_link"
17525 case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17528 esac
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_link") 2>conftest.er1
17531 ac_status=$?
17532 grep -v '^ *+' conftest.er1 >conftest.err
17533 rm -f conftest.er1
17534 cat conftest.err >&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } && {
17537 test -z "$ac_c_werror_flag" ||
17538 test ! -s conftest.err
17539 } && test -s conftest$ac_exeext &&
17540 $as_test_x conftest$ac_exeext; then
17541 eval "$as_ac_var=yes"
17542 else
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17546 eval "$as_ac_var=no"
17549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17550 conftest$ac_exeext conftest.$ac_ext
17552 ac_res=`eval echo '${'$as_ac_var'}'`
17553 { echo "$as_me:$LINENO: result: $ac_res" >&5
17554 echo "${ECHO_T}$ac_res" >&6; }
17555 if test `eval echo '${'$as_ac_var'}'` = yes; then
17556 cat >>confdefs.h <<_ACEOF
17557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17558 _ACEOF
17561 done
17567 for ac_func in dup2 getcwd strdup
17569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 else
17575 cat >conftest.$ac_ext <<_ACEOF
17576 /* confdefs.h. */
17577 _ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17583 #define $ac_func innocuous_$ac_func
17585 /* System header to define __stub macros and hopefully few prototypes,
17586 which can conflict with char $ac_func (); below.
17587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17588 <limits.h> exists even on freestanding compilers. */
17590 #ifdef __STDC__
17591 # include <limits.h>
17592 #else
17593 # include <assert.h>
17594 #endif
17596 #undef $ac_func
17598 /* Override any GCC internal prototype to avoid an error.
17599 Use char because int might match the return type of a GCC
17600 builtin and then its argument prototype would still apply. */
17601 #ifdef __cplusplus
17602 extern "C"
17603 #endif
17604 char $ac_func ();
17605 /* The GNU C library defines this for functions which it implements
17606 to always fail with ENOSYS. Some functions are actually named
17607 something starting with __ and the normal name is an alias. */
17608 #if defined __stub_$ac_func || defined __stub___$ac_func
17609 choke me
17610 #endif
17613 main ()
17615 return $ac_func ();
17617 return 0;
17619 _ACEOF
17620 rm -f conftest.$ac_objext conftest$ac_exeext
17621 if { (ac_try="$ac_link"
17622 case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17625 esac
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_link") 2>conftest.er1
17628 ac_status=$?
17629 grep -v '^ *+' conftest.er1 >conftest.err
17630 rm -f conftest.er1
17631 cat conftest.err >&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } && {
17634 test -z "$ac_c_werror_flag" ||
17635 test ! -s conftest.err
17636 } && test -s conftest$ac_exeext &&
17637 $as_test_x conftest$ac_exeext; then
17638 eval "$as_ac_var=yes"
17639 else
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 eval "$as_ac_var=no"
17646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17647 conftest$ac_exeext conftest.$ac_ext
17649 ac_res=`eval echo '${'$as_ac_var'}'`
17650 { echo "$as_me:$LINENO: result: $ac_res" >&5
17651 echo "${ECHO_T}$ac_res" >&6; }
17652 if test `eval echo '${'$as_ac_var'}'` = yes; then
17653 cat >>confdefs.h <<_ACEOF
17654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17655 _ACEOF
17657 else
17658 case " $LIBOBJS " in
17659 *" $ac_func.$ac_objext "* ) ;;
17660 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17662 esac
17665 done
17669 for ac_func in getpgrp
17671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17677 cat >conftest.$ac_ext <<_ACEOF
17678 /* confdefs.h. */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17685 #define $ac_func innocuous_$ac_func
17687 /* System header to define __stub macros and hopefully few prototypes,
17688 which can conflict with char $ac_func (); below.
17689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17690 <limits.h> exists even on freestanding compilers. */
17692 #ifdef __STDC__
17693 # include <limits.h>
17694 #else
17695 # include <assert.h>
17696 #endif
17698 #undef $ac_func
17700 /* Override any GCC internal prototype to avoid an error.
17701 Use char because int might match the return type of a GCC
17702 builtin and then its argument prototype would still apply. */
17703 #ifdef __cplusplus
17704 extern "C"
17705 #endif
17706 char $ac_func ();
17707 /* The GNU C library defines this for functions which it implements
17708 to always fail with ENOSYS. Some functions are actually named
17709 something starting with __ and the normal name is an alias. */
17710 #if defined __stub_$ac_func || defined __stub___$ac_func
17711 choke me
17712 #endif
17715 main ()
17717 return $ac_func ();
17719 return 0;
17721 _ACEOF
17722 rm -f conftest.$ac_objext conftest$ac_exeext
17723 if { (ac_try="$ac_link"
17724 case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17727 esac
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_link") 2>conftest.er1
17730 ac_status=$?
17731 grep -v '^ *+' conftest.er1 >conftest.err
17732 rm -f conftest.er1
17733 cat conftest.err >&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } && {
17736 test -z "$ac_c_werror_flag" ||
17737 test ! -s conftest.err
17738 } && test -s conftest$ac_exeext &&
17739 $as_test_x conftest$ac_exeext; then
17740 eval "$as_ac_var=yes"
17741 else
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 eval "$as_ac_var=no"
17748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17749 conftest$ac_exeext conftest.$ac_ext
17751 ac_res=`eval echo '${'$as_ac_var'}'`
17752 { echo "$as_me:$LINENO: result: $ac_res" >&5
17753 echo "${ECHO_T}$ac_res" >&6; }
17754 if test `eval echo '${'$as_ac_var'}'` = yes; then
17755 cat >>confdefs.h <<_ACEOF
17756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17757 _ACEOF
17758 cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h. */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 #include <unistd.h>
17766 main ()
17768 getpgrp(0);
17770 return 0;
17772 _ACEOF
17773 rm -f conftest.$ac_objext
17774 if { (ac_try="$ac_compile"
17775 case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_compile") 2>conftest.er1
17781 ac_status=$?
17782 grep -v '^ *+' conftest.er1 >conftest.err
17783 rm -f conftest.er1
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } && {
17787 test -z "$ac_c_werror_flag" ||
17788 test ! -s conftest.err
17789 } && test -s conftest.$ac_objext; then
17791 cat >>confdefs.h <<\_ACEOF
17792 #define GETPGRP_HAVE_ARG 1
17793 _ACEOF
17796 else
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 done
17809 for ac_func in setpgrp
17811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817 cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h. */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17825 #define $ac_func innocuous_$ac_func
17827 /* System header to define __stub macros and hopefully few prototypes,
17828 which can conflict with char $ac_func (); below.
17829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17830 <limits.h> exists even on freestanding compilers. */
17832 #ifdef __STDC__
17833 # include <limits.h>
17834 #else
17835 # include <assert.h>
17836 #endif
17838 #undef $ac_func
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17843 #ifdef __cplusplus
17844 extern "C"
17845 #endif
17846 char $ac_func ();
17847 /* The GNU C library defines this for functions which it implements
17848 to always fail with ENOSYS. Some functions are actually named
17849 something starting with __ and the normal name is an alias. */
17850 #if defined __stub_$ac_func || defined __stub___$ac_func
17851 choke me
17852 #endif
17855 main ()
17857 return $ac_func ();
17859 return 0;
17861 _ACEOF
17862 rm -f conftest.$ac_objext conftest$ac_exeext
17863 if { (ac_try="$ac_link"
17864 case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17867 esac
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_link") 2>conftest.er1
17870 ac_status=$?
17871 grep -v '^ *+' conftest.er1 >conftest.err
17872 rm -f conftest.er1
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } && {
17876 test -z "$ac_c_werror_flag" ||
17877 test ! -s conftest.err
17878 } && test -s conftest$ac_exeext &&
17879 $as_test_x conftest$ac_exeext; then
17880 eval "$as_ac_var=yes"
17881 else
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17885 eval "$as_ac_var=no"
17888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17889 conftest$ac_exeext conftest.$ac_ext
17891 ac_res=`eval echo '${'$as_ac_var'}'`
17892 { echo "$as_me:$LINENO: result: $ac_res" >&5
17893 echo "${ECHO_T}$ac_res" >&6; }
17894 if test `eval echo '${'$as_ac_var'}'` = yes; then
17895 cat >>confdefs.h <<_ACEOF
17896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17897 _ACEOF
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 #include <unistd.h>
17906 main ()
17908 setpgrp(0,0);
17910 return 0;
17912 _ACEOF
17913 rm -f conftest.$ac_objext
17914 if { (ac_try="$ac_compile"
17915 case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_compile") 2>conftest.er1
17921 ac_status=$?
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } && {
17927 test -z "$ac_c_werror_flag" ||
17928 test ! -s conftest.err
17929 } && test -s conftest.$ac_objext; then
17931 cat >>confdefs.h <<\_ACEOF
17932 #define SETPGRP_HAVE_ARG 1
17933 _ACEOF
17936 else
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17946 done
17949 for ac_func in gettimeofday
17951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17956 else
17957 cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h. */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17965 #define $ac_func innocuous_$ac_func
17967 /* System header to define __stub macros and hopefully few prototypes,
17968 which can conflict with char $ac_func (); below.
17969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17970 <limits.h> exists even on freestanding compilers. */
17972 #ifdef __STDC__
17973 # include <limits.h>
17974 #else
17975 # include <assert.h>
17976 #endif
17978 #undef $ac_func
17980 /* Override any GCC internal prototype to avoid an error.
17981 Use char because int might match the return type of a GCC
17982 builtin and then its argument prototype would still apply. */
17983 #ifdef __cplusplus
17984 extern "C"
17985 #endif
17986 char $ac_func ();
17987 /* The GNU C library defines this for functions which it implements
17988 to always fail with ENOSYS. Some functions are actually named
17989 something starting with __ and the normal name is an alias. */
17990 #if defined __stub_$ac_func || defined __stub___$ac_func
17991 choke me
17992 #endif
17995 main ()
17997 return $ac_func ();
17999 return 0;
18001 _ACEOF
18002 rm -f conftest.$ac_objext conftest$ac_exeext
18003 if { (ac_try="$ac_link"
18004 case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_link") 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } && {
18016 test -z "$ac_c_werror_flag" ||
18017 test ! -s conftest.err
18018 } && test -s conftest$ac_exeext &&
18019 $as_test_x conftest$ac_exeext; then
18020 eval "$as_ac_var=yes"
18021 else
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18025 eval "$as_ac_var=no"
18028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18029 conftest$ac_exeext conftest.$ac_ext
18031 ac_res=`eval echo '${'$as_ac_var'}'`
18032 { echo "$as_me:$LINENO: result: $ac_res" >&5
18033 echo "${ECHO_T}$ac_res" >&6; }
18034 if test `eval echo '${'$as_ac_var'}'` = yes; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18037 _ACEOF
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h. */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 #include <sys/time.h>
18046 main ()
18048 gettimeofday((struct timeval*)0,(struct timezone*)0);
18050 return 0;
18052 _ACEOF
18053 rm -f conftest.$ac_objext
18054 if { (ac_try="$ac_compile"
18055 case "(($ac_try" in
18056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057 *) ac_try_echo=$ac_try;;
18058 esac
18059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18060 (eval "$ac_compile") 2>conftest.er1
18061 ac_status=$?
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } && {
18067 test -z "$ac_c_werror_flag" ||
18068 test ! -s conftest.err
18069 } && test -s conftest.$ac_objext; then
18071 else
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18076 cat >>confdefs.h <<\_ACEOF
18077 #define GETTIMEOFDAY_NO_TZ 1
18078 _ACEOF
18083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18086 done
18089 { echo "$as_me:$LINENO: checking for major" >&5
18090 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18091 cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h. */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18098 #if defined(MAJOR_IN_MKDEV)
18099 #include <sys/mkdev.h>
18100 #elif defined(MAJOR_IN_SYSMACROS)
18101 #include <sys/sysmacros.h>
18102 #else
18103 #include <sys/types.h>
18104 #endif
18107 main ()
18110 makedev(major(0),minor(0));
18113 return 0;
18115 _ACEOF
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (ac_try="$ac_link"
18118 case "(($ac_try" in
18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120 *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123 (eval "$ac_link") 2>conftest.er1
18124 ac_status=$?
18125 grep -v '^ *+' conftest.er1 >conftest.err
18126 rm -f conftest.er1
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } && {
18130 test -z "$ac_c_werror_flag" ||
18131 test ! -s conftest.err
18132 } && test -s conftest$ac_exeext &&
18133 $as_test_x conftest$ac_exeext; then
18136 cat >>confdefs.h <<\_ACEOF
18137 #define HAVE_DEVICE_MACROS 1
18138 _ACEOF
18140 { echo "$as_me:$LINENO: result: yes" >&5
18141 echo "${ECHO_T}yes" >&6; }
18143 else
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18148 { echo "$as_me:$LINENO: result: no" >&5
18149 echo "${ECHO_T}no" >&6; }
18153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18154 conftest$ac_exeext conftest.$ac_ext
18156 # On OSF/1 V5.1, getaddrinfo is available, but a define
18157 # for [no]getaddrinfo in netdb.h.
18158 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18159 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18160 cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h. */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18167 #include <sys/types.h>
18168 #include <sys/socket.h>
18169 #include <netdb.h>
18170 #include <stdio.h>
18173 main ()
18176 getaddrinfo(NULL, NULL, NULL, NULL);
18179 return 0;
18181 _ACEOF
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_link") 2>conftest.er1
18190 ac_status=$?
18191 grep -v '^ *+' conftest.er1 >conftest.err
18192 rm -f conftest.er1
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } && {
18196 test -z "$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18198 } && test -s conftest$ac_exeext &&
18199 $as_test_x conftest$ac_exeext; then
18201 { echo "$as_me:$LINENO: result: yes" >&5
18202 echo "${ECHO_T}yes" >&6; }
18203 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18204 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18205 if test "$cross_compiling" = yes; then
18206 { echo "$as_me:$LINENO: result: buggy" >&5
18207 echo "${ECHO_T}buggy" >&6; }
18208 buggygetaddrinfo=yes
18209 else
18210 cat >conftest.$ac_ext <<_ACEOF
18211 /* confdefs.h. */
18212 _ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h. */
18217 #include <sys/types.h>
18218 #include <netdb.h>
18219 #include <string.h>
18220 #include <sys/socket.h>
18221 #include <netinet/in.h>
18223 main()
18225 int passive, gaierr, inet4 = 0, inet6 = 0;
18226 struct addrinfo hints, *ai, *aitop;
18227 char straddr[INET6_ADDRSTRLEN], strport[16];
18229 for (passive = 0; passive <= 1; passive++) {
18230 memset(&hints, 0, sizeof(hints));
18231 hints.ai_family = AF_UNSPEC;
18232 hints.ai_flags = passive ? AI_PASSIVE : 0;
18233 hints.ai_socktype = SOCK_STREAM;
18234 hints.ai_protocol = IPPROTO_TCP;
18235 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18236 (void)gai_strerror(gaierr);
18237 goto bad;
18239 for (ai = aitop; ai; ai = ai->ai_next) {
18240 if (ai->ai_addr == NULL ||
18241 ai->ai_addrlen == 0 ||
18242 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18243 straddr, sizeof(straddr), strport, sizeof(strport),
18244 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18245 goto bad;
18247 switch (ai->ai_family) {
18248 case AF_INET:
18249 if (strcmp(strport, "54321") != 0) {
18250 goto bad;
18252 if (passive) {
18253 if (strcmp(straddr, "0.0.0.0") != 0) {
18254 goto bad;
18256 } else {
18257 if (strcmp(straddr, "127.0.0.1") != 0) {
18258 goto bad;
18261 inet4++;
18262 break;
18263 case AF_INET6:
18264 if (strcmp(strport, "54321") != 0) {
18265 goto bad;
18267 if (passive) {
18268 if (strcmp(straddr, "::") != 0) {
18269 goto bad;
18271 } else {
18272 if (strcmp(straddr, "::1") != 0) {
18273 goto bad;
18276 inet6++;
18277 break;
18278 case AF_UNSPEC:
18279 goto bad;
18280 break;
18281 default:
18282 /* another family support? */
18283 break;
18288 if (!(inet4 == 0 || inet4 == 2))
18289 goto bad;
18290 if (!(inet6 == 0 || inet6 == 2))
18291 goto bad;
18293 if (aitop)
18294 freeaddrinfo(aitop);
18295 exit(0);
18297 bad:
18298 if (aitop)
18299 freeaddrinfo(aitop);
18300 exit(1);
18303 _ACEOF
18304 rm -f conftest$ac_exeext
18305 if { (ac_try="$ac_link"
18306 case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18309 esac
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_link") 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18315 { (case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18318 esac
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_try") 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; }; then
18324 { echo "$as_me:$LINENO: result: good" >&5
18325 echo "${ECHO_T}good" >&6; }
18326 buggygetaddrinfo=no
18327 else
18328 echo "$as_me: program exited with status $ac_status" >&5
18329 echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18332 ( exit $ac_status )
18333 { echo "$as_me:$LINENO: result: buggy" >&5
18334 echo "${ECHO_T}buggy" >&6; }
18335 buggygetaddrinfo=yes
18337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18346 { echo "$as_me:$LINENO: result: no" >&5
18347 echo "${ECHO_T}no" >&6; }
18348 buggygetaddrinfo=yes
18352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18353 conftest$ac_exeext conftest.$ac_ext
18355 if test "$buggygetaddrinfo" = "yes"; then
18356 if test "$ipv6" = "yes"; then
18357 echo 'Fatal: You must get working getaddrinfo() function.'
18358 echo ' or you can specify "--disable-ipv6"'.
18359 exit 1
18361 else
18363 cat >>confdefs.h <<\_ACEOF
18364 #define HAVE_GETADDRINFO 1
18365 _ACEOF
18369 for ac_func in getnameinfo
18371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 else
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18385 #define $ac_func innocuous_$ac_func
18387 /* System header to define __stub macros and hopefully few prototypes,
18388 which can conflict with char $ac_func (); below.
18389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18390 <limits.h> exists even on freestanding compilers. */
18392 #ifdef __STDC__
18393 # include <limits.h>
18394 #else
18395 # include <assert.h>
18396 #endif
18398 #undef $ac_func
18400 /* Override any GCC internal prototype to avoid an error.
18401 Use char because int might match the return type of a GCC
18402 builtin and then its argument prototype would still apply. */
18403 #ifdef __cplusplus
18404 extern "C"
18405 #endif
18406 char $ac_func ();
18407 /* The GNU C library defines this for functions which it implements
18408 to always fail with ENOSYS. Some functions are actually named
18409 something starting with __ and the normal name is an alias. */
18410 #if defined __stub_$ac_func || defined __stub___$ac_func
18411 choke me
18412 #endif
18415 main ()
18417 return $ac_func ();
18419 return 0;
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
18430 ac_status=$?
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } && {
18436 test -z "$ac_c_werror_flag" ||
18437 test ! -s conftest.err
18438 } && test -s conftest$ac_exeext &&
18439 $as_test_x conftest$ac_exeext; then
18440 eval "$as_ac_var=yes"
18441 else
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 eval "$as_ac_var=no"
18448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18449 conftest$ac_exeext conftest.$ac_ext
18451 ac_res=`eval echo '${'$as_ac_var'}'`
18452 { echo "$as_me:$LINENO: result: $ac_res" >&5
18453 echo "${ECHO_T}$ac_res" >&6; }
18454 if test `eval echo '${'$as_ac_var'}'` = yes; then
18455 cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18457 _ACEOF
18460 done
18463 # checks for structures
18464 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18465 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18466 if test "${ac_cv_header_time+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469 cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h. */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 #include <sys/types.h>
18476 #include <sys/time.h>
18477 #include <time.h>
18480 main ()
18482 if ((struct tm *) 0)
18483 return 0;
18485 return 0;
18487 _ACEOF
18488 rm -f conftest.$ac_objext
18489 if { (ac_try="$ac_compile"
18490 case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18493 esac
18494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495 (eval "$ac_compile") 2>conftest.er1
18496 ac_status=$?
18497 grep -v '^ *+' conftest.er1 >conftest.err
18498 rm -f conftest.er1
18499 cat conftest.err >&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } && {
18502 test -z "$ac_c_werror_flag" ||
18503 test ! -s conftest.err
18504 } && test -s conftest.$ac_objext; then
18505 ac_cv_header_time=yes
18506 else
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18510 ac_cv_header_time=no
18513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18516 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18517 if test $ac_cv_header_time = yes; then
18519 cat >>confdefs.h <<\_ACEOF
18520 #define TIME_WITH_SYS_TIME 1
18521 _ACEOF
18525 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18526 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18527 if test "${ac_cv_struct_tm+set}" = set; then
18528 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 else
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h. */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18536 #include <sys/types.h>
18537 #include <time.h>
18540 main ()
18542 struct tm tm;
18543 int *p = &tm.tm_sec;
18544 return !p;
18546 return 0;
18548 _ACEOF
18549 rm -f conftest.$ac_objext
18550 if { (ac_try="$ac_compile"
18551 case "(($ac_try" in
18552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18553 *) ac_try_echo=$ac_try;;
18554 esac
18555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556 (eval "$ac_compile") 2>conftest.er1
18557 ac_status=$?
18558 grep -v '^ *+' conftest.er1 >conftest.err
18559 rm -f conftest.er1
18560 cat conftest.err >&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } && {
18563 test -z "$ac_c_werror_flag" ||
18564 test ! -s conftest.err
18565 } && test -s conftest.$ac_objext; then
18566 ac_cv_struct_tm=time.h
18567 else
18568 echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18571 ac_cv_struct_tm=sys/time.h
18574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18576 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18577 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18578 if test $ac_cv_struct_tm = sys/time.h; then
18580 cat >>confdefs.h <<\_ACEOF
18581 #define TM_IN_SYS_TIME 1
18582 _ACEOF
18586 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18587 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18588 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591 cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h. */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18597 #include <sys/types.h>
18598 #include <$ac_cv_struct_tm>
18602 main ()
18604 static struct tm ac_aggr;
18605 if (ac_aggr.tm_zone)
18606 return 0;
18608 return 0;
18610 _ACEOF
18611 rm -f conftest.$ac_objext
18612 if { (ac_try="$ac_compile"
18613 case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18616 esac
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_compile") 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } && {
18625 test -z "$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18627 } && test -s conftest.$ac_objext; then
18628 ac_cv_member_struct_tm_tm_zone=yes
18629 else
18630 echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 cat >conftest.$ac_ext <<_ACEOF
18634 /* confdefs.h. */
18635 _ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 #include <sys/types.h>
18640 #include <$ac_cv_struct_tm>
18644 main ()
18646 static struct tm ac_aggr;
18647 if (sizeof ac_aggr.tm_zone)
18648 return 0;
18650 return 0;
18652 _ACEOF
18653 rm -f conftest.$ac_objext
18654 if { (ac_try="$ac_compile"
18655 case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658 esac
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_compile") 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } && {
18667 test -z "$ac_c_werror_flag" ||
18668 test ! -s conftest.err
18669 } && test -s conftest.$ac_objext; then
18670 ac_cv_member_struct_tm_tm_zone=yes
18671 else
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 ac_cv_member_struct_tm_tm_zone=no
18678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18684 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18685 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18687 cat >>confdefs.h <<_ACEOF
18688 #define HAVE_STRUCT_TM_TM_ZONE 1
18689 _ACEOF
18694 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18696 cat >>confdefs.h <<\_ACEOF
18697 #define HAVE_TM_ZONE 1
18698 _ACEOF
18700 else
18701 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18702 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18703 if test "${ac_cv_have_decl_tzname+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 else
18706 cat >conftest.$ac_ext <<_ACEOF
18707 /* confdefs.h. */
18708 _ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h. */
18712 #include <time.h>
18715 main ()
18717 #ifndef tzname
18718 (void) tzname;
18719 #endif
18722 return 0;
18724 _ACEOF
18725 rm -f conftest.$ac_objext
18726 if { (ac_try="$ac_compile"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730 esac
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_compile") 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } && {
18739 test -z "$ac_c_werror_flag" ||
18740 test ! -s conftest.err
18741 } && test -s conftest.$ac_objext; then
18742 ac_cv_have_decl_tzname=yes
18743 else
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18747 ac_cv_have_decl_tzname=no
18750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18752 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18753 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18754 if test $ac_cv_have_decl_tzname = yes; then
18756 cat >>confdefs.h <<_ACEOF
18757 #define HAVE_DECL_TZNAME 1
18758 _ACEOF
18761 else
18762 cat >>confdefs.h <<_ACEOF
18763 #define HAVE_DECL_TZNAME 0
18764 _ACEOF
18770 { echo "$as_me:$LINENO: checking for tzname" >&5
18771 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18772 if test "${ac_cv_var_tzname+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18774 else
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h. */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 #include <time.h>
18782 #if !HAVE_DECL_TZNAME
18783 extern char *tzname[];
18784 #endif
18787 main ()
18789 return tzname[0][0];
18791 return 0;
18793 _ACEOF
18794 rm -f conftest.$ac_objext conftest$ac_exeext
18795 if { (ac_try="$ac_link"
18796 case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18799 esac
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_link") 2>conftest.er1
18802 ac_status=$?
18803 grep -v '^ *+' conftest.er1 >conftest.err
18804 rm -f conftest.er1
18805 cat conftest.err >&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } && {
18808 test -z "$ac_c_werror_flag" ||
18809 test ! -s conftest.err
18810 } && test -s conftest$ac_exeext &&
18811 $as_test_x conftest$ac_exeext; then
18812 ac_cv_var_tzname=yes
18813 else
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 ac_cv_var_tzname=no
18820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18821 conftest$ac_exeext conftest.$ac_ext
18823 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18824 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18825 if test $ac_cv_var_tzname = yes; then
18827 cat >>confdefs.h <<\_ACEOF
18828 #define HAVE_TZNAME 1
18829 _ACEOF
18834 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18835 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18836 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839 cat >conftest.$ac_ext <<_ACEOF
18840 /* confdefs.h. */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18845 $ac_includes_default
18847 main ()
18849 static struct stat ac_aggr;
18850 if (ac_aggr.st_rdev)
18851 return 0;
18853 return 0;
18855 _ACEOF
18856 rm -f conftest.$ac_objext
18857 if { (ac_try="$ac_compile"
18858 case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18861 esac
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_compile") 2>conftest.er1
18864 ac_status=$?
18865 grep -v '^ *+' conftest.er1 >conftest.err
18866 rm -f conftest.er1
18867 cat conftest.err >&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } && {
18870 test -z "$ac_c_werror_flag" ||
18871 test ! -s conftest.err
18872 } && test -s conftest.$ac_objext; then
18873 ac_cv_member_struct_stat_st_rdev=yes
18874 else
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h. */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18884 $ac_includes_default
18886 main ()
18888 static struct stat ac_aggr;
18889 if (sizeof ac_aggr.st_rdev)
18890 return 0;
18892 return 0;
18894 _ACEOF
18895 rm -f conftest.$ac_objext
18896 if { (ac_try="$ac_compile"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900 esac
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_compile") 2>conftest.er1
18903 ac_status=$?
18904 grep -v '^ *+' conftest.er1 >conftest.err
18905 rm -f conftest.er1
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } && {
18909 test -z "$ac_c_werror_flag" ||
18910 test ! -s conftest.err
18911 } && test -s conftest.$ac_objext; then
18912 ac_cv_member_struct_stat_st_rdev=yes
18913 else
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18917 ac_cv_member_struct_stat_st_rdev=no
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18925 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18926 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18927 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18929 cat >>confdefs.h <<_ACEOF
18930 #define HAVE_STRUCT_STAT_ST_RDEV 1
18931 _ACEOF
18936 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18937 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18938 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 $ac_includes_default
18949 main ()
18951 static struct stat ac_aggr;
18952 if (ac_aggr.st_blksize)
18953 return 0;
18955 return 0;
18957 _ACEOF
18958 rm -f conftest.$ac_objext
18959 if { (ac_try="$ac_compile"
18960 case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18963 esac
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_compile") 2>conftest.er1
18966 ac_status=$?
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } && {
18972 test -z "$ac_c_werror_flag" ||
18973 test ! -s conftest.err
18974 } && test -s conftest.$ac_objext; then
18975 ac_cv_member_struct_stat_st_blksize=yes
18976 else
18977 echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18980 cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h. */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18986 $ac_includes_default
18988 main ()
18990 static struct stat ac_aggr;
18991 if (sizeof ac_aggr.st_blksize)
18992 return 0;
18994 return 0;
18996 _ACEOF
18997 rm -f conftest.$ac_objext
18998 if { (ac_try="$ac_compile"
18999 case "(($ac_try" in
19000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001 *) ac_try_echo=$ac_try;;
19002 esac
19003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19004 (eval "$ac_compile") 2>conftest.er1
19005 ac_status=$?
19006 grep -v '^ *+' conftest.er1 >conftest.err
19007 rm -f conftest.er1
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } && {
19011 test -z "$ac_c_werror_flag" ||
19012 test ! -s conftest.err
19013 } && test -s conftest.$ac_objext; then
19014 ac_cv_member_struct_stat_st_blksize=yes
19015 else
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 ac_cv_member_struct_stat_st_blksize=no
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19027 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19028 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19029 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19031 cat >>confdefs.h <<_ACEOF
19032 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19033 _ACEOF
19038 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19039 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19040 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h. */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19049 $ac_includes_default
19051 main ()
19053 static struct stat ac_aggr;
19054 if (ac_aggr.st_flags)
19055 return 0;
19057 return 0;
19059 _ACEOF
19060 rm -f conftest.$ac_objext
19061 if { (ac_try="$ac_compile"
19062 case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19065 esac
19066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19067 (eval "$ac_compile") 2>conftest.er1
19068 ac_status=$?
19069 grep -v '^ *+' conftest.er1 >conftest.err
19070 rm -f conftest.er1
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } && {
19074 test -z "$ac_c_werror_flag" ||
19075 test ! -s conftest.err
19076 } && test -s conftest.$ac_objext; then
19077 ac_cv_member_struct_stat_st_flags=yes
19078 else
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19082 cat >conftest.$ac_ext <<_ACEOF
19083 /* confdefs.h. */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19088 $ac_includes_default
19090 main ()
19092 static struct stat ac_aggr;
19093 if (sizeof ac_aggr.st_flags)
19094 return 0;
19096 return 0;
19098 _ACEOF
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19107 ac_status=$?
19108 grep -v '^ *+' conftest.er1 >conftest.err
19109 rm -f conftest.er1
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.$ac_objext; then
19116 ac_cv_member_struct_stat_st_flags=yes
19117 else
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_member_struct_stat_st_flags=no
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19130 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19131 if test $ac_cv_member_struct_stat_st_flags = yes; then
19133 cat >>confdefs.h <<_ACEOF
19134 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19135 _ACEOF
19140 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19141 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19142 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145 cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h. */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 $ac_includes_default
19153 main ()
19155 static struct stat ac_aggr;
19156 if (ac_aggr.st_gen)
19157 return 0;
19159 return 0;
19161 _ACEOF
19162 rm -f conftest.$ac_objext
19163 if { (ac_try="$ac_compile"
19164 case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_compile") 2>conftest.er1
19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } && {
19176 test -z "$ac_c_werror_flag" ||
19177 test ! -s conftest.err
19178 } && test -s conftest.$ac_objext; then
19179 ac_cv_member_struct_stat_st_gen=yes
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h. */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19190 $ac_includes_default
19192 main ()
19194 static struct stat ac_aggr;
19195 if (sizeof ac_aggr.st_gen)
19196 return 0;
19198 return 0;
19200 _ACEOF
19201 rm -f conftest.$ac_objext
19202 if { (ac_try="$ac_compile"
19203 case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19206 esac
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_compile") 2>conftest.er1
19209 ac_status=$?
19210 grep -v '^ *+' conftest.er1 >conftest.err
19211 rm -f conftest.er1
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } && {
19215 test -z "$ac_c_werror_flag" ||
19216 test ! -s conftest.err
19217 } && test -s conftest.$ac_objext; then
19218 ac_cv_member_struct_stat_st_gen=yes
19219 else
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19223 ac_cv_member_struct_stat_st_gen=no
19226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19232 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19233 if test $ac_cv_member_struct_stat_st_gen = yes; then
19235 cat >>confdefs.h <<_ACEOF
19236 #define HAVE_STRUCT_STAT_ST_GEN 1
19237 _ACEOF
19242 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19243 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19244 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247 cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h. */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 $ac_includes_default
19255 main ()
19257 static struct stat ac_aggr;
19258 if (ac_aggr.st_birthtime)
19259 return 0;
19261 return 0;
19263 _ACEOF
19264 rm -f conftest.$ac_objext
19265 if { (ac_try="$ac_compile"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_compile") 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } && {
19278 test -z "$ac_c_werror_flag" ||
19279 test ! -s conftest.err
19280 } && test -s conftest.$ac_objext; then
19281 ac_cv_member_struct_stat_st_birthtime=yes
19282 else
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h. */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 $ac_includes_default
19294 main ()
19296 static struct stat ac_aggr;
19297 if (sizeof ac_aggr.st_birthtime)
19298 return 0;
19300 return 0;
19302 _ACEOF
19303 rm -f conftest.$ac_objext
19304 if { (ac_try="$ac_compile"
19305 case "(($ac_try" in
19306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307 *) ac_try_echo=$ac_try;;
19308 esac
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310 (eval "$ac_compile") 2>conftest.er1
19311 ac_status=$?
19312 grep -v '^ *+' conftest.er1 >conftest.err
19313 rm -f conftest.er1
19314 cat conftest.err >&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } && {
19317 test -z "$ac_c_werror_flag" ||
19318 test ! -s conftest.err
19319 } && test -s conftest.$ac_objext; then
19320 ac_cv_member_struct_stat_st_birthtime=yes
19321 else
19322 echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19325 ac_cv_member_struct_stat_st_birthtime=no
19328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19333 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19334 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19335 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19337 cat >>confdefs.h <<_ACEOF
19338 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19339 _ACEOF
19344 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19345 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19346 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19348 else
19349 cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h. */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19355 $ac_includes_default
19357 main ()
19359 static struct stat ac_aggr;
19360 if (ac_aggr.st_blocks)
19361 return 0;
19363 return 0;
19365 _ACEOF
19366 rm -f conftest.$ac_objext
19367 if { (ac_try="$ac_compile"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_compile") 2>conftest.er1
19374 ac_status=$?
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } && {
19380 test -z "$ac_c_werror_flag" ||
19381 test ! -s conftest.err
19382 } && test -s conftest.$ac_objext; then
19383 ac_cv_member_struct_stat_st_blocks=yes
19384 else
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19388 cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h. */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19394 $ac_includes_default
19396 main ()
19398 static struct stat ac_aggr;
19399 if (sizeof ac_aggr.st_blocks)
19400 return 0;
19402 return 0;
19404 _ACEOF
19405 rm -f conftest.$ac_objext
19406 if { (ac_try="$ac_compile"
19407 case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19410 esac
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_compile") 2>conftest.er1
19413 ac_status=$?
19414 grep -v '^ *+' conftest.er1 >conftest.err
19415 rm -f conftest.er1
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } && {
19419 test -z "$ac_c_werror_flag" ||
19420 test ! -s conftest.err
19421 } && test -s conftest.$ac_objext; then
19422 ac_cv_member_struct_stat_st_blocks=yes
19423 else
19424 echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19427 ac_cv_member_struct_stat_st_blocks=no
19430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19435 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19436 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19437 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19439 cat >>confdefs.h <<_ACEOF
19440 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19441 _ACEOF
19444 cat >>confdefs.h <<\_ACEOF
19445 #define HAVE_ST_BLOCKS 1
19446 _ACEOF
19448 else
19449 case " $LIBOBJS " in
19450 *" fileblocks.$ac_objext "* ) ;;
19451 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19453 esac
19459 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19460 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19461 if test "${ac_cv_header_time_altzone+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h. */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 #include <time.h>
19472 main ()
19474 return altzone;
19476 return 0;
19478 _ACEOF
19479 rm -f conftest.$ac_objext
19480 if { (ac_try="$ac_compile"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_compile") 2>conftest.er1
19487 ac_status=$?
19488 grep -v '^ *+' conftest.er1 >conftest.err
19489 rm -f conftest.er1
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } && {
19493 test -z "$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 } && test -s conftest.$ac_objext; then
19496 ac_cv_header_time_altzone=yes
19497 else
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 ac_cv_header_time_altzone=no
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19507 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19508 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19509 if test $ac_cv_header_time_altzone = yes; then
19511 cat >>confdefs.h <<\_ACEOF
19512 #define HAVE_ALTZONE 1
19513 _ACEOF
19517 was_it_defined=no
19518 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19519 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19520 cat >conftest.$ac_ext <<_ACEOF
19521 /* confdefs.h. */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19527 #include <sys/types.h>
19528 #include <sys/select.h>
19529 #include <sys/time.h>
19532 main ()
19536 return 0;
19538 _ACEOF
19539 rm -f conftest.$ac_objext
19540 if { (ac_try="$ac_compile"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_compile") 2>conftest.er1
19547 ac_status=$?
19548 grep -v '^ *+' conftest.er1 >conftest.err
19549 rm -f conftest.er1
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest.$ac_objext; then
19558 cat >>confdefs.h <<\_ACEOF
19559 #define SYS_SELECT_WITH_SYS_TIME 1
19560 _ACEOF
19562 was_it_defined=yes
19564 else
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19573 echo "${ECHO_T}$was_it_defined" >&6; }
19575 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19576 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19577 if test "${ac_cv_struct_addrinfo+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580 cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h. */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19587 # include <netdb.h>
19589 main ()
19591 struct addrinfo a
19593 return 0;
19595 _ACEOF
19596 rm -f conftest.$ac_objext
19597 if { (ac_try="$ac_compile"
19598 case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_compile") 2>conftest.er1
19604 ac_status=$?
19605 grep -v '^ *+' conftest.er1 >conftest.err
19606 rm -f conftest.er1
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } && {
19610 test -z "$ac_c_werror_flag" ||
19611 test ! -s conftest.err
19612 } && test -s conftest.$ac_objext; then
19613 ac_cv_struct_addrinfo=yes
19614 else
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 ac_cv_struct_addrinfo=no
19621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19624 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19625 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19626 if test $ac_cv_struct_addrinfo = yes; then
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE_ADDRINFO 1
19630 _ACEOF
19634 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19635 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19636 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19638 else
19639 cat >conftest.$ac_ext <<_ACEOF
19640 /* confdefs.h. */
19641 _ACEOF
19642 cat confdefs.h >>conftest.$ac_ext
19643 cat >>conftest.$ac_ext <<_ACEOF
19644 /* end confdefs.h. */
19646 # include <sys/types.h>
19647 # include <sys/socket.h>
19649 main ()
19651 struct sockaddr_storage s
19653 return 0;
19655 _ACEOF
19656 rm -f conftest.$ac_objext
19657 if { (ac_try="$ac_compile"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_compile") 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && {
19670 test -z "$ac_c_werror_flag" ||
19671 test ! -s conftest.err
19672 } && test -s conftest.$ac_objext; then
19673 ac_cv_struct_sockaddr_storage=yes
19674 else
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_cv_struct_sockaddr_storage=no
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19684 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19685 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19686 if test $ac_cv_struct_sockaddr_storage = yes; then
19688 cat >>confdefs.h <<\_ACEOF
19689 #define HAVE_SOCKADDR_STORAGE 1
19690 _ACEOF
19694 # checks for compiler characteristics
19697 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19698 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19699 if test "${ac_cv_c_char_unsigned+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19702 cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h. */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 $ac_includes_default
19710 main ()
19712 static int test_array [1 - 2 * !(((char) -1) < 0)];
19713 test_array [0] = 0
19716 return 0;
19718 _ACEOF
19719 rm -f conftest.$ac_objext
19720 if { (ac_try="$ac_compile"
19721 case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19724 esac
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_compile") 2>conftest.er1
19727 ac_status=$?
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } && {
19733 test -z "$ac_c_werror_flag" ||
19734 test ! -s conftest.err
19735 } && test -s conftest.$ac_objext; then
19736 ac_cv_c_char_unsigned=no
19737 else
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_c_char_unsigned=yes
19744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19746 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19747 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19748 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19749 cat >>confdefs.h <<\_ACEOF
19750 #define __CHAR_UNSIGNED__ 1
19751 _ACEOF
19755 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19756 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19757 if test "${ac_cv_c_const+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760 cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h. */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19768 main ()
19770 /* FIXME: Include the comments suggested by Paul. */
19771 #ifndef __cplusplus
19772 /* Ultrix mips cc rejects this. */
19773 typedef int charset[2];
19774 const charset cs;
19775 /* SunOS 4.1.1 cc rejects this. */
19776 char const *const *pcpcc;
19777 char **ppc;
19778 /* NEC SVR4.0.2 mips cc rejects this. */
19779 struct point {int x, y;};
19780 static struct point const zero = {0,0};
19781 /* AIX XL C 1.02.0.0 rejects this.
19782 It does not let you subtract one const X* pointer from another in
19783 an arm of an if-expression whose if-part is not a constant
19784 expression */
19785 const char *g = "string";
19786 pcpcc = &g + (g ? g-g : 0);
19787 /* HPUX 7.0 cc rejects these. */
19788 ++pcpcc;
19789 ppc = (char**) pcpcc;
19790 pcpcc = (char const *const *) ppc;
19791 { /* SCO 3.2v4 cc rejects this. */
19792 char *t;
19793 char const *s = 0 ? (char *) 0 : (char const *) 0;
19795 *t++ = 0;
19796 if (s) return 0;
19798 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19799 int x[] = {25, 17};
19800 const int *foo = &x[0];
19801 ++foo;
19803 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19804 typedef const int *iptr;
19805 iptr p = 0;
19806 ++p;
19808 { /* AIX XL C 1.02.0.0 rejects this saying
19809 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19810 struct s { int j; const int *ap[3]; };
19811 struct s *b; b->j = 5;
19813 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19814 const int foo = 10;
19815 if (!foo) return 0;
19817 return !cs[0] && !zero.x;
19818 #endif
19821 return 0;
19823 _ACEOF
19824 rm -f conftest.$ac_objext
19825 if { (ac_try="$ac_compile"
19826 case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19829 esac
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_compile") 2>conftest.er1
19832 ac_status=$?
19833 grep -v '^ *+' conftest.er1 >conftest.err
19834 rm -f conftest.er1
19835 cat conftest.err >&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } && {
19838 test -z "$ac_c_werror_flag" ||
19839 test ! -s conftest.err
19840 } && test -s conftest.$ac_objext; then
19841 ac_cv_c_const=yes
19842 else
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 ac_cv_c_const=no
19849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19852 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19853 if test $ac_cv_c_const = no; then
19855 cat >>confdefs.h <<\_ACEOF
19856 #define const
19857 _ACEOF
19862 works=no
19863 { echo "$as_me:$LINENO: checking for working volatile" >&5
19864 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h. */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19873 main ()
19875 volatile int x; x = 0;
19877 return 0;
19879 _ACEOF
19880 rm -f conftest.$ac_objext
19881 if { (ac_try="$ac_compile"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19885 esac
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_compile") 2>conftest.er1
19888 ac_status=$?
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && {
19894 test -z "$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19896 } && test -s conftest.$ac_objext; then
19897 works=yes
19898 else
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19903 cat >>confdefs.h <<\_ACEOF
19904 #define volatile
19905 _ACEOF
19910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19911 { echo "$as_me:$LINENO: result: $works" >&5
19912 echo "${ECHO_T}$works" >&6; }
19914 works=no
19915 { echo "$as_me:$LINENO: checking for working signed char" >&5
19916 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19917 cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h. */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19925 main ()
19927 signed char c;
19929 return 0;
19931 _ACEOF
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_compile") 2>conftest.er1
19940 ac_status=$?
19941 grep -v '^ *+' conftest.er1 >conftest.err
19942 rm -f conftest.er1
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && {
19946 test -z "$ac_c_werror_flag" ||
19947 test ! -s conftest.err
19948 } && test -s conftest.$ac_objext; then
19949 works=yes
19950 else
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19955 cat >>confdefs.h <<\_ACEOF
19956 #define signed
19957 _ACEOF
19962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19963 { echo "$as_me:$LINENO: result: $works" >&5
19964 echo "${ECHO_T}$works" >&6; }
19966 have_prototypes=no
19967 { echo "$as_me:$LINENO: checking for prototypes" >&5
19968 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h. */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 int foo(int x) { return 0; }
19977 main ()
19979 return foo(10);
19981 return 0;
19983 _ACEOF
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19992 ac_status=$?
19993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20003 cat >>confdefs.h <<\_ACEOF
20004 #define HAVE_PROTOTYPES 1
20005 _ACEOF
20007 have_prototypes=yes
20009 else
20010 echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20017 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20018 echo "${ECHO_T}$have_prototypes" >&6; }
20020 works=no
20021 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20022 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h. */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20030 #include <stdarg.h>
20031 int foo(int x, ...) {
20032 va_list va;
20033 va_start(va, x);
20034 va_arg(va, int);
20035 va_arg(va, char *);
20036 va_arg(va, double);
20037 return 0;
20041 main ()
20043 return foo(10, "", 3.14);
20045 return 0;
20047 _ACEOF
20048 rm -f conftest.$ac_objext
20049 if { (ac_try="$ac_compile"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_compile") 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest.$ac_objext; then
20067 cat >>confdefs.h <<\_ACEOF
20068 #define HAVE_STDARG_PROTOTYPES 1
20069 _ACEOF
20071 works=yes
20073 else
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20081 { echo "$as_me:$LINENO: result: $works" >&5
20082 echo "${ECHO_T}$works" >&6; }
20084 # check for socketpair
20085 { echo "$as_me:$LINENO: checking for socketpair" >&5
20086 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20087 cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h. */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20094 #include <sys/types.h>
20095 #include <sys/socket.h>
20098 main ()
20100 void *x=socketpair
20102 return 0;
20104 _ACEOF
20105 rm -f conftest.$ac_objext
20106 if { (ac_try="$ac_compile"
20107 case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_compile") 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } && {
20119 test -z "$ac_c_werror_flag" ||
20120 test ! -s conftest.err
20121 } && test -s conftest.$ac_objext; then
20123 cat >>confdefs.h <<\_ACEOF
20124 #define HAVE_SOCKETPAIR 1
20125 _ACEOF
20127 { echo "$as_me:$LINENO: result: yes" >&5
20128 echo "${ECHO_T}yes" >&6; }
20129 else
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 { echo "$as_me:$LINENO: result: no" >&5
20134 echo "${ECHO_T}no" >&6; }
20138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20140 # check if sockaddr has sa_len member
20141 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20142 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20143 cat >conftest.$ac_ext <<_ACEOF
20144 /* confdefs.h. */
20145 _ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20149 #include <sys/types.h>
20150 #include <sys/socket.h>
20152 main ()
20154 struct sockaddr x;
20155 x.sa_len = 0;
20157 return 0;
20159 _ACEOF
20160 rm -f conftest.$ac_objext
20161 if { (ac_try="$ac_compile"
20162 case "(($ac_try" in
20163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20164 *) ac_try_echo=$ac_try;;
20165 esac
20166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20167 (eval "$ac_compile") 2>conftest.er1
20168 ac_status=$?
20169 grep -v '^ *+' conftest.er1 >conftest.err
20170 rm -f conftest.er1
20171 cat conftest.err >&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } && {
20174 test -z "$ac_c_werror_flag" ||
20175 test ! -s conftest.err
20176 } && test -s conftest.$ac_objext; then
20177 { echo "$as_me:$LINENO: result: yes" >&5
20178 echo "${ECHO_T}yes" >&6; }
20180 cat >>confdefs.h <<\_ACEOF
20181 #define HAVE_SOCKADDR_SA_LEN 1
20182 _ACEOF
20184 else
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 { echo "$as_me:$LINENO: result: no" >&5
20189 echo "${ECHO_T}no" >&6; }
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20194 va_list_is_array=no
20195 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20196 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20197 cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h. */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20204 #ifdef HAVE_STDARG_PROTOTYPES
20205 #include <stdarg.h>
20206 #else
20207 #include <varargs.h>
20208 #endif
20211 main ()
20213 va_list list1, list2; list1 = list2;
20215 return 0;
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (ac_try="$ac_compile"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_compile") 2>conftest.er1
20226 ac_status=$?
20227 grep -v '^ *+' conftest.er1 >conftest.err
20228 rm -f conftest.er1
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } && {
20232 test -z "$ac_c_werror_flag" ||
20233 test ! -s conftest.err
20234 } && test -s conftest.$ac_objext; then
20236 else
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20242 cat >>confdefs.h <<\_ACEOF
20243 #define VA_LIST_IS_ARRAY 1
20244 _ACEOF
20246 va_list_is_array=yes
20250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20252 echo "${ECHO_T}$va_list_is_array" >&6; }
20254 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20258 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20259 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20260 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h. */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20271 #define gethostbyname_r innocuous_gethostbyname_r
20273 /* System header to define __stub macros and hopefully few prototypes,
20274 which can conflict with char gethostbyname_r (); below.
20275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20276 <limits.h> exists even on freestanding compilers. */
20278 #ifdef __STDC__
20279 # include <limits.h>
20280 #else
20281 # include <assert.h>
20282 #endif
20284 #undef gethostbyname_r
20286 /* Override any GCC internal prototype to avoid an error.
20287 Use char because int might match the return type of a GCC
20288 builtin and then its argument prototype would still apply. */
20289 #ifdef __cplusplus
20290 extern "C"
20291 #endif
20292 char gethostbyname_r ();
20293 /* The GNU C library defines this for functions which it implements
20294 to always fail with ENOSYS. Some functions are actually named
20295 something starting with __ and the normal name is an alias. */
20296 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20297 choke me
20298 #endif
20301 main ()
20303 return gethostbyname_r ();
20305 return 0;
20307 _ACEOF
20308 rm -f conftest.$ac_objext conftest$ac_exeext
20309 if { (ac_try="$ac_link"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_link") 2>conftest.er1
20316 ac_status=$?
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest$ac_exeext &&
20325 $as_test_x conftest$ac_exeext; then
20326 ac_cv_func_gethostbyname_r=yes
20327 else
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20331 ac_cv_func_gethostbyname_r=no
20334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20335 conftest$ac_exeext conftest.$ac_ext
20337 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20338 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20339 if test $ac_cv_func_gethostbyname_r = yes; then
20341 cat >>confdefs.h <<\_ACEOF
20342 #define HAVE_GETHOSTBYNAME_R 1
20343 _ACEOF
20345 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20346 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20347 OLD_CFLAGS=$CFLAGS
20348 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h. */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20356 # include <netdb.h>
20359 main ()
20362 char *name;
20363 struct hostent *he, *res;
20364 char buffer[2048];
20365 int buflen = 2048;
20366 int h_errnop;
20368 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20371 return 0;
20373 _ACEOF
20374 rm -f conftest.$ac_objext
20375 if { (ac_try="$ac_compile"
20376 case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_compile") 2>conftest.er1
20382 ac_status=$?
20383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } && {
20388 test -z "$ac_c_werror_flag" ||
20389 test ! -s conftest.err
20390 } && test -s conftest.$ac_objext; then
20392 cat >>confdefs.h <<\_ACEOF
20393 #define HAVE_GETHOSTBYNAME_R 1
20394 _ACEOF
20397 cat >>confdefs.h <<\_ACEOF
20398 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20399 _ACEOF
20401 { echo "$as_me:$LINENO: result: yes" >&5
20402 echo "${ECHO_T}yes" >&6; }
20404 else
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20409 { echo "$as_me:$LINENO: result: no" >&5
20410 echo "${ECHO_T}no" >&6; }
20411 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20412 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20413 cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h. */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20420 # include <netdb.h>
20423 main ()
20426 char *name;
20427 struct hostent *he;
20428 char buffer[2048];
20429 int buflen = 2048;
20430 int h_errnop;
20432 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20435 return 0;
20437 _ACEOF
20438 rm -f conftest.$ac_objext
20439 if { (ac_try="$ac_compile"
20440 case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20443 esac
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_compile") 2>conftest.er1
20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } && {
20452 test -z "$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 } && test -s conftest.$ac_objext; then
20456 cat >>confdefs.h <<\_ACEOF
20457 #define HAVE_GETHOSTBYNAME_R 1
20458 _ACEOF
20461 cat >>confdefs.h <<\_ACEOF
20462 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20463 _ACEOF
20465 { echo "$as_me:$LINENO: result: yes" >&5
20466 echo "${ECHO_T}yes" >&6; }
20468 else
20469 echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20473 { echo "$as_me:$LINENO: result: no" >&5
20474 echo "${ECHO_T}no" >&6; }
20475 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20476 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h. */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20484 # include <netdb.h>
20487 main ()
20490 char *name;
20491 struct hostent *he;
20492 struct hostent_data data;
20494 (void) gethostbyname_r(name, he, &data);
20497 return 0;
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (ac_try="$ac_compile"
20502 case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_compile") 2>conftest.er1
20508 ac_status=$?
20509 grep -v '^ *+' conftest.er1 >conftest.err
20510 rm -f conftest.er1
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } && {
20514 test -z "$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 } && test -s conftest.$ac_objext; then
20518 cat >>confdefs.h <<\_ACEOF
20519 #define HAVE_GETHOSTBYNAME_R 1
20520 _ACEOF
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20525 _ACEOF
20527 { echo "$as_me:$LINENO: result: yes" >&5
20528 echo "${ECHO_T}yes" >&6; }
20530 else
20531 echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20535 { echo "$as_me:$LINENO: result: no" >&5
20536 echo "${ECHO_T}no" >&6; }
20540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549 CFLAGS=$OLD_CFLAGS
20551 else
20554 for ac_func in gethostbyname
20556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 else
20562 cat >conftest.$ac_ext <<_ACEOF
20563 /* confdefs.h. */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20570 #define $ac_func innocuous_$ac_func
20572 /* System header to define __stub macros and hopefully few prototypes,
20573 which can conflict with char $ac_func (); below.
20574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20575 <limits.h> exists even on freestanding compilers. */
20577 #ifdef __STDC__
20578 # include <limits.h>
20579 #else
20580 # include <assert.h>
20581 #endif
20583 #undef $ac_func
20585 /* Override any GCC internal prototype to avoid an error.
20586 Use char because int might match the return type of a GCC
20587 builtin and then its argument prototype would still apply. */
20588 #ifdef __cplusplus
20589 extern "C"
20590 #endif
20591 char $ac_func ();
20592 /* The GNU C library defines this for functions which it implements
20593 to always fail with ENOSYS. Some functions are actually named
20594 something starting with __ and the normal name is an alias. */
20595 #if defined __stub_$ac_func || defined __stub___$ac_func
20596 choke me
20597 #endif
20600 main ()
20602 return $ac_func ();
20604 return 0;
20606 _ACEOF
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (ac_try="$ac_link"
20609 case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20612 esac
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_link") 2>conftest.er1
20615 ac_status=$?
20616 grep -v '^ *+' conftest.er1 >conftest.err
20617 rm -f conftest.er1
20618 cat conftest.err >&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest$ac_exeext &&
20624 $as_test_x conftest$ac_exeext; then
20625 eval "$as_ac_var=yes"
20626 else
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 eval "$as_ac_var=no"
20633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20634 conftest$ac_exeext conftest.$ac_ext
20636 ac_res=`eval echo '${'$as_ac_var'}'`
20637 { echo "$as_me:$LINENO: result: $ac_res" >&5
20638 echo "${ECHO_T}$ac_res" >&6; }
20639 if test `eval echo '${'$as_ac_var'}'` = yes; then
20640 cat >>confdefs.h <<_ACEOF
20641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20642 _ACEOF
20645 done
20656 # checks for system services
20657 # (none yet)
20659 # Linux requires this for correct f.p. operations
20660 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20661 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20662 if test "${ac_cv_func___fpu_control+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 else
20665 cat >conftest.$ac_ext <<_ACEOF
20666 /* confdefs.h. */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20671 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20673 #define __fpu_control innocuous___fpu_control
20675 /* System header to define __stub macros and hopefully few prototypes,
20676 which can conflict with char __fpu_control (); below.
20677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20678 <limits.h> exists even on freestanding compilers. */
20680 #ifdef __STDC__
20681 # include <limits.h>
20682 #else
20683 # include <assert.h>
20684 #endif
20686 #undef __fpu_control
20688 /* Override any GCC internal prototype to avoid an error.
20689 Use char because int might match the return type of a GCC
20690 builtin and then its argument prototype would still apply. */
20691 #ifdef __cplusplus
20692 extern "C"
20693 #endif
20694 char __fpu_control ();
20695 /* The GNU C library defines this for functions which it implements
20696 to always fail with ENOSYS. Some functions are actually named
20697 something starting with __ and the normal name is an alias. */
20698 #if defined __stub___fpu_control || defined __stub_____fpu_control
20699 choke me
20700 #endif
20703 main ()
20705 return __fpu_control ();
20707 return 0;
20709 _ACEOF
20710 rm -f conftest.$ac_objext conftest$ac_exeext
20711 if { (ac_try="$ac_link"
20712 case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20715 esac
20716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717 (eval "$ac_link") 2>conftest.er1
20718 ac_status=$?
20719 grep -v '^ *+' conftest.er1 >conftest.err
20720 rm -f conftest.er1
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } && {
20724 test -z "$ac_c_werror_flag" ||
20725 test ! -s conftest.err
20726 } && test -s conftest$ac_exeext &&
20727 $as_test_x conftest$ac_exeext; then
20728 ac_cv_func___fpu_control=yes
20729 else
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20733 ac_cv_func___fpu_control=no
20736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20737 conftest$ac_exeext conftest.$ac_ext
20739 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20740 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20741 if test $ac_cv_func___fpu_control = yes; then
20743 else
20745 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20746 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20747 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750 ac_check_lib_save_LIBS=$LIBS
20751 LIBS="-lieee $LIBS"
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h. */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20759 /* Override any GCC internal prototype to avoid an error.
20760 Use char because int might match the return type of a GCC
20761 builtin and then its argument prototype would still apply. */
20762 #ifdef __cplusplus
20763 extern "C"
20764 #endif
20765 char __fpu_control ();
20767 main ()
20769 return __fpu_control ();
20771 return 0;
20773 _ACEOF
20774 rm -f conftest.$ac_objext conftest$ac_exeext
20775 if { (ac_try="$ac_link"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_link") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest$ac_exeext &&
20791 $as_test_x conftest$ac_exeext; then
20792 ac_cv_lib_ieee___fpu_control=yes
20793 else
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ac_cv_lib_ieee___fpu_control=no
20800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20804 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20805 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20806 if test $ac_cv_lib_ieee___fpu_control = yes; then
20807 cat >>confdefs.h <<_ACEOF
20808 #define HAVE_LIBIEEE 1
20809 _ACEOF
20811 LIBS="-lieee $LIBS"
20819 # Check for --with-fpectl
20820 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20821 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20823 # Check whether --with-fpectl was given.
20824 if test "${with_fpectl+set}" = set; then
20825 withval=$with_fpectl;
20826 if test "$withval" != no
20827 then
20829 cat >>confdefs.h <<\_ACEOF
20830 #define WANT_SIGFPE_HANDLER 1
20831 _ACEOF
20833 { echo "$as_me:$LINENO: result: yes" >&5
20834 echo "${ECHO_T}yes" >&6; }
20835 else { echo "$as_me:$LINENO: result: no" >&5
20836 echo "${ECHO_T}no" >&6; }
20838 else
20839 { echo "$as_me:$LINENO: result: no" >&5
20840 echo "${ECHO_T}no" >&6; }
20844 # check for --with-libm=...
20846 case $ac_sys_system in
20847 Darwin) ;;
20848 BeOS) ;;
20849 *) LIBM=-lm
20850 esac
20851 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20852 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20854 # Check whether --with-libm was given.
20855 if test "${with_libm+set}" = set; then
20856 withval=$with_libm;
20857 if test "$withval" = no
20858 then LIBM=
20859 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20860 echo "${ECHO_T}force LIBM empty" >&6; }
20861 elif test "$withval" != yes
20862 then LIBM=$withval
20863 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20864 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20865 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20866 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20867 { (exit 1); exit 1; }; }
20869 else
20870 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20871 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20875 # check for --with-libc=...
20877 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20878 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20880 # Check whether --with-libc was given.
20881 if test "${with_libc+set}" = set; then
20882 withval=$with_libc;
20883 if test "$withval" = no
20884 then LIBC=
20885 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20886 echo "${ECHO_T}force LIBC empty" >&6; }
20887 elif test "$withval" != yes
20888 then LIBC=$withval
20889 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20890 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20891 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20892 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20893 { (exit 1); exit 1; }; }
20895 else
20896 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20897 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20901 # ************************************
20902 # * Check for mathematical functions *
20903 # ************************************
20905 LIBS_SAVE=$LIBS
20906 LIBS="$LIBS $LIBM"
20908 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
20909 # -0. on some architectures.
20910 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
20911 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
20912 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
20913 echo $ECHO_N "(cached) $ECHO_C" >&6
20914 else
20916 if test "$cross_compiling" = yes; then
20917 ac_cv_tanh_preserves_zero_sign=no
20918 else
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20926 #include <math.h>
20927 #include <stdlib.h>
20928 int main() {
20929 /* return 0 if either negative zeros don't exist
20930 on this platform or if negative zeros exist
20931 and tanh(-0.) == -0. */
20932 if (atan2(0., -1.) == atan2(-0., -1.) ||
20933 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
20934 else exit(1);
20937 _ACEOF
20938 rm -f conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_link") 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20949 { (case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20952 esac
20953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20954 (eval "$ac_try") 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_cv_tanh_preserves_zero_sign=yes
20959 else
20960 echo "$as_me: program exited with status $ac_status" >&5
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20964 ( exit $ac_status )
20965 ac_cv_tanh_preserves_zero_sign=no
20967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20973 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
20974 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
20975 if test "$ac_cv_tanh_preserves_zero_sign" = yes
20976 then
20978 cat >>confdefs.h <<\_ACEOF
20979 #define TANH_PRESERVES_ZERO_SIGN 1
20980 _ACEOF
20985 for ac_func in hypot
20987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20991 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 else
20993 cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h. */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21001 #define $ac_func innocuous_$ac_func
21003 /* System header to define __stub macros and hopefully few prototypes,
21004 which can conflict with char $ac_func (); below.
21005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21006 <limits.h> exists even on freestanding compilers. */
21008 #ifdef __STDC__
21009 # include <limits.h>
21010 #else
21011 # include <assert.h>
21012 #endif
21014 #undef $ac_func
21016 /* Override any GCC internal prototype to avoid an error.
21017 Use char because int might match the return type of a GCC
21018 builtin and then its argument prototype would still apply. */
21019 #ifdef __cplusplus
21020 extern "C"
21021 #endif
21022 char $ac_func ();
21023 /* The GNU C library defines this for functions which it implements
21024 to always fail with ENOSYS. Some functions are actually named
21025 something starting with __ and the normal name is an alias. */
21026 #if defined __stub_$ac_func || defined __stub___$ac_func
21027 choke me
21028 #endif
21031 main ()
21033 return $ac_func ();
21035 return 0;
21037 _ACEOF
21038 rm -f conftest.$ac_objext conftest$ac_exeext
21039 if { (ac_try="$ac_link"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_link") 2>conftest.er1
21046 ac_status=$?
21047 grep -v '^ *+' conftest.er1 >conftest.err
21048 rm -f conftest.er1
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest$ac_exeext &&
21055 $as_test_x conftest$ac_exeext; then
21056 eval "$as_ac_var=yes"
21057 else
21058 echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21061 eval "$as_ac_var=no"
21064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21065 conftest$ac_exeext conftest.$ac_ext
21067 ac_res=`eval echo '${'$as_ac_var'}'`
21068 { echo "$as_me:$LINENO: result: $ac_res" >&5
21069 echo "${ECHO_T}$ac_res" >&6; }
21070 if test `eval echo '${'$as_ac_var'}'` = yes; then
21071 cat >>confdefs.h <<_ACEOF
21072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21073 _ACEOF
21075 else
21076 case " $LIBOBJS " in
21077 *" $ac_func.$ac_objext "* ) ;;
21078 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21080 esac
21083 done
21096 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
21103 else
21104 cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h. */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21112 #define $ac_func innocuous_$ac_func
21114 /* System header to define __stub macros and hopefully few prototypes,
21115 which can conflict with char $ac_func (); below.
21116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21117 <limits.h> exists even on freestanding compilers. */
21119 #ifdef __STDC__
21120 # include <limits.h>
21121 #else
21122 # include <assert.h>
21123 #endif
21125 #undef $ac_func
21127 /* Override any GCC internal prototype to avoid an error.
21128 Use char because int might match the return type of a GCC
21129 builtin and then its argument prototype would still apply. */
21130 #ifdef __cplusplus
21131 extern "C"
21132 #endif
21133 char $ac_func ();
21134 /* The GNU C library defines this for functions which it implements
21135 to always fail with ENOSYS. Some functions are actually named
21136 something starting with __ and the normal name is an alias. */
21137 #if defined __stub_$ac_func || defined __stub___$ac_func
21138 choke me
21139 #endif
21142 main ()
21144 return $ac_func ();
21146 return 0;
21148 _ACEOF
21149 rm -f conftest.$ac_objext conftest$ac_exeext
21150 if { (ac_try="$ac_link"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_link") 2>conftest.er1
21157 ac_status=$?
21158 grep -v '^ *+' conftest.er1 >conftest.err
21159 rm -f conftest.er1
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest$ac_exeext &&
21166 $as_test_x conftest$ac_exeext; then
21167 eval "$as_ac_var=yes"
21168 else
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 eval "$as_ac_var=no"
21175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21176 conftest$ac_exeext conftest.$ac_ext
21178 ac_res=`eval echo '${'$as_ac_var'}'`
21179 { echo "$as_me:$LINENO: result: $ac_res" >&5
21180 echo "${ECHO_T}$ac_res" >&6; }
21181 if test `eval echo '${'$as_ac_var'}'` = yes; then
21182 cat >>confdefs.h <<_ACEOF
21183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21184 _ACEOF
21187 done
21190 LIBS=$LIBS_SAVE
21192 # check for wchar.h
21193 if test "${ac_cv_header_wchar_h+set}" = set; then
21194 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21195 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21196 if test "${ac_cv_header_wchar_h+set}" = set; then
21197 echo $ECHO_N "(cached) $ECHO_C" >&6
21199 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21200 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21201 else
21202 # Is the header compilable?
21203 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21204 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21205 cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h. */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211 $ac_includes_default
21212 #include <wchar.h>
21213 _ACEOF
21214 rm -f conftest.$ac_objext
21215 if { (ac_try="$ac_compile"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21219 esac
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_compile") 2>conftest.er1
21222 ac_status=$?
21223 grep -v '^ *+' conftest.er1 >conftest.err
21224 rm -f conftest.er1
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } && {
21228 test -z "$ac_c_werror_flag" ||
21229 test ! -s conftest.err
21230 } && test -s conftest.$ac_objext; then
21231 ac_header_compiler=yes
21232 else
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 ac_header_compiler=no
21239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21241 echo "${ECHO_T}$ac_header_compiler" >&6; }
21243 # Is the header present?
21244 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21245 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21246 cat >conftest.$ac_ext <<_ACEOF
21247 /* confdefs.h. */
21248 _ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21252 #include <wchar.h>
21253 _ACEOF
21254 if { (ac_try="$ac_cpp conftest.$ac_ext"
21255 case "(($ac_try" in
21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257 *) ac_try_echo=$ac_try;;
21258 esac
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } >/dev/null && {
21267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 }; then
21270 ac_header_preproc=yes
21271 else
21272 echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21275 ac_header_preproc=no
21278 rm -f conftest.err conftest.$ac_ext
21279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21280 echo "${ECHO_T}$ac_header_preproc" >&6; }
21282 # So? What about this header?
21283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21284 yes:no: )
21285 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21286 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21287 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21288 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21289 ac_header_preproc=yes
21291 no:yes:* )
21292 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21293 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21294 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21295 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21296 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21297 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21298 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21299 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21301 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21302 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21303 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21304 ( cat <<\_ASBOX
21305 ## ------------------------------------------------ ##
21306 ## Report this to http://www.python.org/python-bugs ##
21307 ## ------------------------------------------------ ##
21308 _ASBOX
21309 ) | sed "s/^/$as_me: WARNING: /" >&2
21311 esac
21312 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21313 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21314 if test "${ac_cv_header_wchar_h+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 else
21317 ac_cv_header_wchar_h=$ac_header_preproc
21319 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21320 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21323 if test $ac_cv_header_wchar_h = yes; then
21326 cat >>confdefs.h <<\_ACEOF
21327 #define HAVE_WCHAR_H 1
21328 _ACEOF
21330 wchar_h="yes"
21332 else
21333 wchar_h="no"
21339 # determine wchar_t size
21340 if test "$wchar_h" = yes
21341 then
21342 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21343 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21344 if test "${ac_cv_type_wchar_t+set}" = set; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 else
21347 cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h. */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353 #include <wchar.h>
21355 typedef wchar_t ac__type_new_;
21357 main ()
21359 if ((ac__type_new_ *) 0)
21360 return 0;
21361 if (sizeof (ac__type_new_))
21362 return 0;
21364 return 0;
21366 _ACEOF
21367 rm -f conftest.$ac_objext
21368 if { (ac_try="$ac_compile"
21369 case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_compile") 2>conftest.er1
21375 ac_status=$?
21376 grep -v '^ *+' conftest.er1 >conftest.err
21377 rm -f conftest.er1
21378 cat conftest.err >&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } && {
21381 test -z "$ac_c_werror_flag" ||
21382 test ! -s conftest.err
21383 } && test -s conftest.$ac_objext; then
21384 ac_cv_type_wchar_t=yes
21385 else
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21389 ac_cv_type_wchar_t=no
21392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21395 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21397 # The cast to long int works around a bug in the HP C Compiler
21398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21400 # This bug is HP SR number 8606223364.
21401 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21402 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21403 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21404 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406 if test "$cross_compiling" = yes; then
21407 # Depending upon the size, compute the lo and hi bounds.
21408 cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h. */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 #include <wchar.h>
21416 typedef wchar_t ac__type_sizeof_;
21418 main ()
21420 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21421 test_array [0] = 0
21424 return 0;
21426 _ACEOF
21427 rm -f conftest.$ac_objext
21428 if { (ac_try="$ac_compile"
21429 case "(($ac_try" in
21430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21432 esac
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_compile") 2>conftest.er1
21435 ac_status=$?
21436 grep -v '^ *+' conftest.er1 >conftest.err
21437 rm -f conftest.er1
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && {
21441 test -z "$ac_c_werror_flag" ||
21442 test ! -s conftest.err
21443 } && test -s conftest.$ac_objext; then
21444 ac_lo=0 ac_mid=0
21445 while :; do
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h. */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 #include <wchar.h>
21454 typedef wchar_t ac__type_sizeof_;
21456 main ()
21458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21459 test_array [0] = 0
21462 return 0;
21464 _ACEOF
21465 rm -f conftest.$ac_objext
21466 if { (ac_try="$ac_compile"
21467 case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21470 esac
21471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21472 (eval "$ac_compile") 2>conftest.er1
21473 ac_status=$?
21474 grep -v '^ *+' conftest.er1 >conftest.err
21475 rm -f conftest.er1
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } && {
21479 test -z "$ac_c_werror_flag" ||
21480 test ! -s conftest.err
21481 } && test -s conftest.$ac_objext; then
21482 ac_hi=$ac_mid; break
21483 else
21484 echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21487 ac_lo=`expr $ac_mid + 1`
21488 if test $ac_lo -le $ac_mid; then
21489 ac_lo= ac_hi=
21490 break
21492 ac_mid=`expr 2 '*' $ac_mid + 1`
21495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21496 done
21497 else
21498 echo "$as_me: failed program was:" >&5
21499 sed 's/^/| /' conftest.$ac_ext >&5
21501 cat >conftest.$ac_ext <<_ACEOF
21502 /* confdefs.h. */
21503 _ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21507 #include <wchar.h>
21509 typedef wchar_t ac__type_sizeof_;
21511 main ()
21513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21514 test_array [0] = 0
21517 return 0;
21519 _ACEOF
21520 rm -f conftest.$ac_objext
21521 if { (ac_try="$ac_compile"
21522 case "(($ac_try" in
21523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524 *) ac_try_echo=$ac_try;;
21525 esac
21526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21527 (eval "$ac_compile") 2>conftest.er1
21528 ac_status=$?
21529 grep -v '^ *+' conftest.er1 >conftest.err
21530 rm -f conftest.er1
21531 cat conftest.err >&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } && {
21534 test -z "$ac_c_werror_flag" ||
21535 test ! -s conftest.err
21536 } && test -s conftest.$ac_objext; then
21537 ac_hi=-1 ac_mid=-1
21538 while :; do
21539 cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h. */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 #include <wchar.h>
21547 typedef wchar_t ac__type_sizeof_;
21549 main ()
21551 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21552 test_array [0] = 0
21555 return 0;
21557 _ACEOF
21558 rm -f conftest.$ac_objext
21559 if { (ac_try="$ac_compile"
21560 case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21563 esac
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_compile") 2>conftest.er1
21566 ac_status=$?
21567 grep -v '^ *+' conftest.er1 >conftest.err
21568 rm -f conftest.er1
21569 cat conftest.err >&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } && {
21572 test -z "$ac_c_werror_flag" ||
21573 test ! -s conftest.err
21574 } && test -s conftest.$ac_objext; then
21575 ac_lo=$ac_mid; break
21576 else
21577 echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21580 ac_hi=`expr '(' $ac_mid ')' - 1`
21581 if test $ac_mid -le $ac_hi; then
21582 ac_lo= ac_hi=
21583 break
21585 ac_mid=`expr 2 '*' $ac_mid`
21588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589 done
21590 else
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ac_lo= ac_hi=
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 # Binary search between lo and hi bounds.
21602 while test "x$ac_lo" != "x$ac_hi"; do
21603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21604 cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h. */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 #include <wchar.h>
21612 typedef wchar_t ac__type_sizeof_;
21614 main ()
21616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21617 test_array [0] = 0
21620 return 0;
21622 _ACEOF
21623 rm -f conftest.$ac_objext
21624 if { (ac_try="$ac_compile"
21625 case "(($ac_try" in
21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627 *) ac_try_echo=$ac_try;;
21628 esac
21629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630 (eval "$ac_compile") 2>conftest.er1
21631 ac_status=$?
21632 grep -v '^ *+' conftest.er1 >conftest.err
21633 rm -f conftest.er1
21634 cat conftest.err >&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } && {
21637 test -z "$ac_c_werror_flag" ||
21638 test ! -s conftest.err
21639 } && test -s conftest.$ac_objext; then
21640 ac_hi=$ac_mid
21641 else
21642 echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21645 ac_lo=`expr '(' $ac_mid ')' + 1`
21648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649 done
21650 case $ac_lo in
21651 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21652 '') if test "$ac_cv_type_wchar_t" = yes; then
21653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21654 See \`config.log' for more details." >&5
21655 echo "$as_me: error: cannot compute sizeof (wchar_t)
21656 See \`config.log' for more details." >&2;}
21657 { (exit 77); exit 77; }; }
21658 else
21659 ac_cv_sizeof_wchar_t=0
21660 fi ;;
21661 esac
21662 else
21663 cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h. */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21669 #include <wchar.h>
21671 typedef wchar_t ac__type_sizeof_;
21672 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21673 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21674 #include <stdio.h>
21675 #include <stdlib.h>
21677 main ()
21680 FILE *f = fopen ("conftest.val", "w");
21681 if (! f)
21682 return 1;
21683 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21685 long int i = longval ();
21686 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21687 return 1;
21688 fprintf (f, "%ld\n", i);
21690 else
21692 unsigned long int i = ulongval ();
21693 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21694 return 1;
21695 fprintf (f, "%lu\n", i);
21697 return ferror (f) || fclose (f) != 0;
21700 return 0;
21702 _ACEOF
21703 rm -f conftest$ac_exeext
21704 if { (ac_try="$ac_link"
21705 case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_link") 2>&5
21711 ac_status=$?
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21714 { (case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21717 esac
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_try") 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 ac_cv_sizeof_wchar_t=`cat conftest.val`
21724 else
21725 echo "$as_me: program exited with status $ac_status" >&5
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21729 ( exit $ac_status )
21730 if test "$ac_cv_type_wchar_t" = yes; then
21731 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21732 See \`config.log' for more details." >&5
21733 echo "$as_me: error: cannot compute sizeof (wchar_t)
21734 See \`config.log' for more details." >&2;}
21735 { (exit 77); exit 77; }; }
21736 else
21737 ac_cv_sizeof_wchar_t=0
21740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21742 rm -f conftest.val
21744 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21745 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21749 cat >>confdefs.h <<_ACEOF
21750 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21751 _ACEOF
21756 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21757 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21758 have_ucs4_tcl=no
21759 cat >conftest.$ac_ext <<_ACEOF
21760 /* confdefs.h. */
21761 _ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21766 #include <tcl.h>
21767 #if TCL_UTF_MAX != 6
21768 # error "NOT UCS4_TCL"
21769 #endif
21771 main ()
21775 return 0;
21777 _ACEOF
21778 rm -f conftest.$ac_objext
21779 if { (ac_try="$ac_compile"
21780 case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_compile") 2>conftest.er1
21786 ac_status=$?
21787 grep -v '^ *+' conftest.er1 >conftest.err
21788 rm -f conftest.er1
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest.$ac_objext; then
21797 cat >>confdefs.h <<\_ACEOF
21798 #define HAVE_UCS4_TCL 1
21799 _ACEOF
21801 have_ucs4_tcl=yes
21803 else
21804 echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21811 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21812 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21814 # check whether wchar_t is signed or not
21815 if test "$wchar_h" = yes
21816 then
21817 # check whether wchar_t is signed or not
21818 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21819 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21820 if test "${ac_cv_wchar_t_signed+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 else
21824 if test "$cross_compiling" = yes; then
21825 ac_cv_wchar_t_signed=yes
21826 else
21827 cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h. */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21834 #include <wchar.h>
21835 int main()
21837 /* Success: exit code 0 */
21838 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21841 _ACEOF
21842 rm -f conftest$ac_exeext
21843 if { (ac_try="$ac_link"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_link") 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21853 { (case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21856 esac
21857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858 (eval "$ac_try") 2>&5
21859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; }; then
21862 ac_cv_wchar_t_signed=yes
21863 else
21864 echo "$as_me: program exited with status $ac_status" >&5
21865 echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21868 ( exit $ac_status )
21869 ac_cv_wchar_t_signed=no
21871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21877 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
21878 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21881 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
21882 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
21883 # Check whether --enable-unicode was given.
21884 if test "${enable_unicode+set}" = set; then
21885 enableval=$enable_unicode;
21886 else
21887 enable_unicode=yes
21891 if test $enable_unicode = yes
21892 then
21893 # Without any arguments, Py_UNICODE defaults to two-byte mode
21894 case "$have_ucs4_tcl" in
21895 yes) enable_unicode="ucs4"
21897 *) enable_unicode="ucs2"
21899 esac
21904 case "$enable_unicode" in
21905 ucs2) unicode_size="2"
21906 cat >>confdefs.h <<\_ACEOF
21907 #define Py_UNICODE_SIZE 2
21908 _ACEOF
21911 ucs4) unicode_size="4"
21912 cat >>confdefs.h <<\_ACEOF
21913 #define Py_UNICODE_SIZE 4
21914 _ACEOF
21917 esac
21923 if test "$enable_unicode" = "no"
21924 then
21925 UNICODE_OBJS=""
21926 { echo "$as_me:$LINENO: result: not used" >&5
21927 echo "${ECHO_T}not used" >&6; }
21928 else
21929 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
21931 cat >>confdefs.h <<\_ACEOF
21932 #define Py_USING_UNICODE 1
21933 _ACEOF
21936 # wchar_t is only usable if it maps to an unsigned type
21937 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21938 -a "$ac_cv_wchar_t_signed" = "no"
21939 then
21940 PY_UNICODE_TYPE="wchar_t"
21942 cat >>confdefs.h <<\_ACEOF
21943 #define HAVE_USABLE_WCHAR_T 1
21944 _ACEOF
21946 cat >>confdefs.h <<\_ACEOF
21947 #define PY_UNICODE_TYPE wchar_t
21948 _ACEOF
21950 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21951 then
21952 PY_UNICODE_TYPE="unsigned short"
21953 cat >>confdefs.h <<\_ACEOF
21954 #define PY_UNICODE_TYPE unsigned short
21955 _ACEOF
21957 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21958 then
21959 PY_UNICODE_TYPE="unsigned long"
21960 cat >>confdefs.h <<\_ACEOF
21961 #define PY_UNICODE_TYPE unsigned long
21962 _ACEOF
21964 else
21965 PY_UNICODE_TYPE="no type found"
21967 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21968 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21971 # check for endianness
21972 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21973 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21974 if test "${ac_cv_c_bigendian+set}" = set; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21976 else
21977 # See if sys/param.h defines the BYTE_ORDER macro.
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h. */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 #include <sys/types.h>
21985 #include <sys/param.h>
21988 main ()
21990 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21991 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21992 bogus endian macros
21993 #endif
21996 return 0;
21998 _ACEOF
21999 rm -f conftest.$ac_objext
22000 if { (ac_try="$ac_compile"
22001 case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_compile") 2>conftest.er1
22007 ac_status=$?
22008 grep -v '^ *+' conftest.er1 >conftest.err
22009 rm -f conftest.er1
22010 cat conftest.err >&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && {
22013 test -z "$ac_c_werror_flag" ||
22014 test ! -s conftest.err
22015 } && test -s conftest.$ac_objext; then
22016 # It does; now see whether it defined to BIG_ENDIAN or not.
22017 cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h. */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 #include <sys/types.h>
22024 #include <sys/param.h>
22027 main ()
22029 #if BYTE_ORDER != BIG_ENDIAN
22030 not big endian
22031 #endif
22034 return 0;
22036 _ACEOF
22037 rm -f conftest.$ac_objext
22038 if { (ac_try="$ac_compile"
22039 case "(($ac_try" in
22040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22042 esac
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044 (eval "$ac_compile") 2>conftest.er1
22045 ac_status=$?
22046 grep -v '^ *+' conftest.er1 >conftest.err
22047 rm -f conftest.er1
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } && {
22051 test -z "$ac_c_werror_flag" ||
22052 test ! -s conftest.err
22053 } && test -s conftest.$ac_objext; then
22054 ac_cv_c_bigendian=yes
22055 else
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22059 ac_cv_c_bigendian=no
22062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063 else
22064 echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22067 # It does not; compile a test program.
22068 if test "$cross_compiling" = yes; then
22069 # try to guess the endianness by grepping values into an object file
22070 ac_cv_c_bigendian=unknown
22071 cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h. */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22078 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22079 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22080 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22081 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22082 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22084 main ()
22086 _ascii (); _ebcdic ();
22088 return 0;
22090 _ACEOF
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_compile") 2>conftest.er1
22099 ac_status=$?
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } && {
22105 test -z "$ac_c_werror_flag" ||
22106 test ! -s conftest.err
22107 } && test -s conftest.$ac_objext; then
22108 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22109 ac_cv_c_bigendian=yes
22111 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22112 if test "$ac_cv_c_bigendian" = unknown; then
22113 ac_cv_c_bigendian=no
22114 else
22115 # finding both strings is unlikely to happen, but who knows?
22116 ac_cv_c_bigendian=unknown
22119 else
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 else
22128 cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h. */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 $ac_includes_default
22136 main ()
22139 /* Are we little or big endian? From Harbison&Steele. */
22140 union
22142 long int l;
22143 char c[sizeof (long int)];
22144 } u;
22145 u.l = 1;
22146 return u.c[sizeof (long int) - 1] == 1;
22149 return 0;
22151 _ACEOF
22152 rm -f conftest$ac_exeext
22153 if { (ac_try="$ac_link"
22154 case "(($ac_try" in
22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156 *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159 (eval "$ac_link") 2>&5
22160 ac_status=$?
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22163 { (case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22166 esac
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168 (eval "$ac_try") 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22172 ac_cv_c_bigendian=no
22173 else
22174 echo "$as_me: program exited with status $ac_status" >&5
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22178 ( exit $ac_status )
22179 ac_cv_c_bigendian=yes
22181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22189 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22190 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22191 case $ac_cv_c_bigendian in
22192 yes)
22194 cat >>confdefs.h <<\_ACEOF
22195 #define WORDS_BIGENDIAN 1
22196 _ACEOF
22201 { { echo "$as_me:$LINENO: error: unknown endianness
22202 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22203 echo "$as_me: error: unknown endianness
22204 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22205 { (exit 1); exit 1; }; } ;;
22206 esac
22211 # Check whether right shifting a negative integer extends the sign bit
22212 # or fills with zeros (like the Cray J90, according to Tim Peters).
22213 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22214 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22215 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 else
22219 if test "$cross_compiling" = yes; then
22220 ac_cv_rshift_extends_sign=yes
22221 else
22222 cat >conftest.$ac_ext <<_ACEOF
22223 /* confdefs.h. */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h. */
22229 int main()
22231 exit(((-1)>>3 == -1) ? 0 : 1);
22234 _ACEOF
22235 rm -f conftest$ac_exeext
22236 if { (ac_try="$ac_link"
22237 case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22240 esac
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_link") 2>&5
22243 ac_status=$?
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22246 { (case "(($ac_try" in
22247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248 *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251 (eval "$ac_try") 2>&5
22252 ac_status=$?
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); }; }; then
22255 ac_cv_rshift_extends_sign=yes
22256 else
22257 echo "$as_me: program exited with status $ac_status" >&5
22258 echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22261 ( exit $ac_status )
22262 ac_cv_rshift_extends_sign=no
22264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22270 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22271 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22272 if test "$ac_cv_rshift_extends_sign" = no
22273 then
22275 cat >>confdefs.h <<\_ACEOF
22276 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22277 _ACEOF
22281 # check for getc_unlocked and related locking functions
22282 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22283 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22284 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22285 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22288 cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h. */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 #include <stdio.h>
22296 main ()
22299 FILE *f = fopen("/dev/null", "r");
22300 flockfile(f);
22301 getc_unlocked(f);
22302 funlockfile(f);
22305 return 0;
22307 _ACEOF
22308 rm -f conftest.$ac_objext conftest$ac_exeext
22309 if { (ac_try="$ac_link"
22310 case "(($ac_try" in
22311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312 *) ac_try_echo=$ac_try;;
22313 esac
22314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22315 (eval "$ac_link") 2>conftest.er1
22316 ac_status=$?
22317 grep -v '^ *+' conftest.er1 >conftest.err
22318 rm -f conftest.er1
22319 cat conftest.err >&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } && {
22322 test -z "$ac_c_werror_flag" ||
22323 test ! -s conftest.err
22324 } && test -s conftest$ac_exeext &&
22325 $as_test_x conftest$ac_exeext; then
22326 ac_cv_have_getc_unlocked=yes
22327 else
22328 echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22331 ac_cv_have_getc_unlocked=no
22334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22335 conftest$ac_exeext conftest.$ac_ext
22338 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22339 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22340 if test "$ac_cv_have_getc_unlocked" = yes
22341 then
22343 cat >>confdefs.h <<\_ACEOF
22344 #define HAVE_GETC_UNLOCKED 1
22345 _ACEOF
22349 # check where readline lives
22350 # save the value of LIBS so we don't actually link Python with readline
22351 LIBS_no_readline=$LIBS
22353 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22354 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22355 if test "${ac_cv_lib_readline_readline+set}" = set; then
22356 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 else
22358 ac_check_lib_save_LIBS=$LIBS
22359 LIBS="-lreadline $LIBS"
22360 cat >conftest.$ac_ext <<_ACEOF
22361 /* confdefs.h. */
22362 _ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h. */
22367 /* Override any GCC internal prototype to avoid an error.
22368 Use char because int might match the return type of a GCC
22369 builtin and then its argument prototype would still apply. */
22370 #ifdef __cplusplus
22371 extern "C"
22372 #endif
22373 char readline ();
22375 main ()
22377 return readline ();
22379 return 0;
22381 _ACEOF
22382 rm -f conftest.$ac_objext conftest$ac_exeext
22383 if { (ac_try="$ac_link"
22384 case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22387 esac
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_link") 2>conftest.er1
22390 ac_status=$?
22391 grep -v '^ *+' conftest.er1 >conftest.err
22392 rm -f conftest.er1
22393 cat conftest.err >&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } && {
22396 test -z "$ac_c_werror_flag" ||
22397 test ! -s conftest.err
22398 } && test -s conftest$ac_exeext &&
22399 $as_test_x conftest$ac_exeext; then
22400 ac_cv_lib_readline_readline=yes
22401 else
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22405 ac_cv_lib_readline_readline=no
22408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409 conftest$ac_exeext conftest.$ac_ext
22410 LIBS=$ac_check_lib_save_LIBS
22412 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22413 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22414 if test $ac_cv_lib_readline_readline = yes; then
22415 cat >>confdefs.h <<_ACEOF
22416 #define HAVE_LIBREADLINE 1
22417 _ACEOF
22419 LIBS="-lreadline $LIBS"
22423 if test "$ac_cv_have_readline_readline" = no
22424 then
22426 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22427 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22428 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 else
22431 ac_check_lib_save_LIBS=$LIBS
22432 LIBS="-ltermcap $LIBS"
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h. */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22440 /* Override any GCC internal prototype to avoid an error.
22441 Use char because int might match the return type of a GCC
22442 builtin and then its argument prototype would still apply. */
22443 #ifdef __cplusplus
22444 extern "C"
22445 #endif
22446 char readline ();
22448 main ()
22450 return readline ();
22452 return 0;
22454 _ACEOF
22455 rm -f conftest.$ac_objext conftest$ac_exeext
22456 if { (ac_try="$ac_link"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_link") 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } && {
22469 test -z "$ac_c_werror_flag" ||
22470 test ! -s conftest.err
22471 } && test -s conftest$ac_exeext &&
22472 $as_test_x conftest$ac_exeext; then
22473 ac_cv_lib_termcap_readline=yes
22474 else
22475 echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22478 ac_cv_lib_termcap_readline=no
22481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22482 conftest$ac_exeext conftest.$ac_ext
22483 LIBS=$ac_check_lib_save_LIBS
22485 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22486 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22487 if test $ac_cv_lib_termcap_readline = yes; then
22488 cat >>confdefs.h <<_ACEOF
22489 #define HAVE_LIBTERMCAP 1
22490 _ACEOF
22492 LIBS="-ltermcap $LIBS"
22498 # check for readline 2.1
22499 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22500 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22501 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 else
22504 ac_check_lib_save_LIBS=$LIBS
22505 LIBS="-lreadline $LIBS"
22506 cat >conftest.$ac_ext <<_ACEOF
22507 /* confdefs.h. */
22508 _ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h. */
22513 /* Override any GCC internal prototype to avoid an error.
22514 Use char because int might match the return type of a GCC
22515 builtin and then its argument prototype would still apply. */
22516 #ifdef __cplusplus
22517 extern "C"
22518 #endif
22519 char rl_callback_handler_install ();
22521 main ()
22523 return rl_callback_handler_install ();
22525 return 0;
22527 _ACEOF
22528 rm -f conftest.$ac_objext conftest$ac_exeext
22529 if { (ac_try="$ac_link"
22530 case "(($ac_try" in
22531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22533 esac
22534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_link") 2>conftest.er1
22536 ac_status=$?
22537 grep -v '^ *+' conftest.er1 >conftest.err
22538 rm -f conftest.er1
22539 cat conftest.err >&5
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); } && {
22542 test -z "$ac_c_werror_flag" ||
22543 test ! -s conftest.err
22544 } && test -s conftest$ac_exeext &&
22545 $as_test_x conftest$ac_exeext; then
22546 ac_cv_lib_readline_rl_callback_handler_install=yes
22547 else
22548 echo "$as_me: failed program was:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22551 ac_cv_lib_readline_rl_callback_handler_install=no
22554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22555 conftest$ac_exeext conftest.$ac_ext
22556 LIBS=$ac_check_lib_save_LIBS
22558 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22559 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22560 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22562 cat >>confdefs.h <<\_ACEOF
22563 #define HAVE_RL_CALLBACK 1
22564 _ACEOF
22569 # check for readline 2.2
22570 cat >conftest.$ac_ext <<_ACEOF
22571 /* confdefs.h. */
22572 _ACEOF
22573 cat confdefs.h >>conftest.$ac_ext
22574 cat >>conftest.$ac_ext <<_ACEOF
22575 /* end confdefs.h. */
22576 #include <readline/readline.h>
22577 _ACEOF
22578 if { (ac_try="$ac_cpp conftest.$ac_ext"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22585 ac_status=$?
22586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } >/dev/null && {
22591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22592 test ! -s conftest.err
22593 }; then
22594 have_readline=yes
22595 else
22596 echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22599 have_readline=no
22602 rm -f conftest.err conftest.$ac_ext
22603 if test $have_readline = yes
22604 then
22605 cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h. */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22611 #include <readline/readline.h>
22613 _ACEOF
22614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22615 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
22617 cat >>confdefs.h <<\_ACEOF
22618 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22619 _ACEOF
22622 rm -f conftest*
22626 # check for readline 4.0
22627 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22628 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22629 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22630 echo $ECHO_N "(cached) $ECHO_C" >&6
22631 else
22632 ac_check_lib_save_LIBS=$LIBS
22633 LIBS="-lreadline $LIBS"
22634 cat >conftest.$ac_ext <<_ACEOF
22635 /* confdefs.h. */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22641 /* Override any GCC internal prototype to avoid an error.
22642 Use char because int might match the return type of a GCC
22643 builtin and then its argument prototype would still apply. */
22644 #ifdef __cplusplus
22645 extern "C"
22646 #endif
22647 char rl_pre_input_hook ();
22649 main ()
22651 return rl_pre_input_hook ();
22653 return 0;
22655 _ACEOF
22656 rm -f conftest.$ac_objext conftest$ac_exeext
22657 if { (ac_try="$ac_link"
22658 case "(($ac_try" in
22659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660 *) ac_try_echo=$ac_try;;
22661 esac
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663 (eval "$ac_link") 2>conftest.er1
22664 ac_status=$?
22665 grep -v '^ *+' conftest.er1 >conftest.err
22666 rm -f conftest.er1
22667 cat conftest.err >&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } && {
22670 test -z "$ac_c_werror_flag" ||
22671 test ! -s conftest.err
22672 } && test -s conftest$ac_exeext &&
22673 $as_test_x conftest$ac_exeext; then
22674 ac_cv_lib_readline_rl_pre_input_hook=yes
22675 else
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22679 ac_cv_lib_readline_rl_pre_input_hook=no
22682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22683 conftest$ac_exeext conftest.$ac_ext
22684 LIBS=$ac_check_lib_save_LIBS
22686 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22687 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22688 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22690 cat >>confdefs.h <<\_ACEOF
22691 #define HAVE_RL_PRE_INPUT_HOOK 1
22692 _ACEOF
22697 # also in 4.0
22698 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22699 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22700 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703 ac_check_lib_save_LIBS=$LIBS
22704 LIBS="-lreadline $LIBS"
22705 cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h. */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22712 /* Override any GCC internal prototype to avoid an error.
22713 Use char because int might match the return type of a GCC
22714 builtin and then its argument prototype would still apply. */
22715 #ifdef __cplusplus
22716 extern "C"
22717 #endif
22718 char rl_completion_display_matches_hook ();
22720 main ()
22722 return rl_completion_display_matches_hook ();
22724 return 0;
22726 _ACEOF
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (ac_try="$ac_link"
22729 case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22732 esac
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_link") 2>conftest.er1
22735 ac_status=$?
22736 grep -v '^ *+' conftest.er1 >conftest.err
22737 rm -f conftest.er1
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } && {
22741 test -z "$ac_c_werror_flag" ||
22742 test ! -s conftest.err
22743 } && test -s conftest$ac_exeext &&
22744 $as_test_x conftest$ac_exeext; then
22745 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
22746 else
22747 echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22750 ac_cv_lib_readline_rl_completion_display_matches_hook=no
22753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22754 conftest$ac_exeext conftest.$ac_ext
22755 LIBS=$ac_check_lib_save_LIBS
22757 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22758 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22759 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22761 cat >>confdefs.h <<\_ACEOF
22762 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22763 _ACEOF
22768 # check for readline 4.2
22769 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22770 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22771 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 else
22774 ac_check_lib_save_LIBS=$LIBS
22775 LIBS="-lreadline $LIBS"
22776 cat >conftest.$ac_ext <<_ACEOF
22777 /* confdefs.h. */
22778 _ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h. */
22783 /* Override any GCC internal prototype to avoid an error.
22784 Use char because int might match the return type of a GCC
22785 builtin and then its argument prototype would still apply. */
22786 #ifdef __cplusplus
22787 extern "C"
22788 #endif
22789 char rl_completion_matches ();
22791 main ()
22793 return rl_completion_matches ();
22795 return 0;
22797 _ACEOF
22798 rm -f conftest.$ac_objext conftest$ac_exeext
22799 if { (ac_try="$ac_link"
22800 case "(($ac_try" in
22801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22802 *) ac_try_echo=$ac_try;;
22803 esac
22804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22805 (eval "$ac_link") 2>conftest.er1
22806 ac_status=$?
22807 grep -v '^ *+' conftest.er1 >conftest.err
22808 rm -f conftest.er1
22809 cat conftest.err >&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); } && {
22812 test -z "$ac_c_werror_flag" ||
22813 test ! -s conftest.err
22814 } && test -s conftest$ac_exeext &&
22815 $as_test_x conftest$ac_exeext; then
22816 ac_cv_lib_readline_rl_completion_matches=yes
22817 else
22818 echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22821 ac_cv_lib_readline_rl_completion_matches=no
22824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22825 conftest$ac_exeext conftest.$ac_ext
22826 LIBS=$ac_check_lib_save_LIBS
22828 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22829 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22830 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22832 cat >>confdefs.h <<\_ACEOF
22833 #define HAVE_RL_COMPLETION_MATCHES 1
22834 _ACEOF
22839 # also in readline 4.2
22840 cat >conftest.$ac_ext <<_ACEOF
22841 /* confdefs.h. */
22842 _ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h. */
22846 #include <readline/readline.h>
22847 _ACEOF
22848 if { (ac_try="$ac_cpp conftest.$ac_ext"
22849 case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22852 esac
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22855 ac_status=$?
22856 grep -v '^ *+' conftest.er1 >conftest.err
22857 rm -f conftest.er1
22858 cat conftest.err >&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); } >/dev/null && {
22861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22862 test ! -s conftest.err
22863 }; then
22864 have_readline=yes
22865 else
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 have_readline=no
22872 rm -f conftest.err conftest.$ac_ext
22873 if test $have_readline = yes
22874 then
22875 cat >conftest.$ac_ext <<_ACEOF
22876 /* confdefs.h. */
22877 _ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h. */
22881 #include <readline/readline.h>
22883 _ACEOF
22884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22885 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
22887 cat >>confdefs.h <<\_ACEOF
22888 #define HAVE_RL_CATCH_SIGNAL 1
22889 _ACEOF
22892 rm -f conftest*
22896 # End of readline checks: restore LIBS
22897 LIBS=$LIBS_no_readline
22899 { echo "$as_me:$LINENO: checking for broken nice()" >&5
22900 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
22901 if test "${ac_cv_broken_nice+set}" = set; then
22902 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 else
22905 if test "$cross_compiling" = yes; then
22906 ac_cv_broken_nice=no
22907 else
22908 cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h. */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22915 int main()
22917 int val1 = nice(1);
22918 if (val1 != -1 && val1 == nice(2))
22919 exit(0);
22920 exit(1);
22923 _ACEOF
22924 rm -f conftest$ac_exeext
22925 if { (ac_try="$ac_link"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22929 esac
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_link") 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22935 { (case "(($ac_try" in
22936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22938 esac
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_try") 2>&5
22941 ac_status=$?
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); }; }; then
22944 ac_cv_broken_nice=yes
22945 else
22946 echo "$as_me: program exited with status $ac_status" >&5
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22950 ( exit $ac_status )
22951 ac_cv_broken_nice=no
22953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22959 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
22960 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22961 if test "$ac_cv_broken_nice" = yes
22962 then
22964 cat >>confdefs.h <<\_ACEOF
22965 #define HAVE_BROKEN_NICE 1
22966 _ACEOF
22970 { echo "$as_me:$LINENO: checking for broken poll()" >&5
22971 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
22972 if test "$cross_compiling" = yes; then
22973 ac_cv_broken_poll=no
22974 else
22975 cat >conftest.$ac_ext <<_ACEOF
22976 /* confdefs.h. */
22977 _ACEOF
22978 cat confdefs.h >>conftest.$ac_ext
22979 cat >>conftest.$ac_ext <<_ACEOF
22980 /* end confdefs.h. */
22982 #include <poll.h>
22984 int main (void)
22986 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22988 close (42);
22990 int poll_test = poll (&poll_struct, 1, 0);
22992 if (poll_test < 0)
22994 exit(0);
22996 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22998 exit(0);
23000 else
23002 exit(1);
23006 _ACEOF
23007 rm -f conftest$ac_exeext
23008 if { (ac_try="$ac_link"
23009 case "(($ac_try" in
23010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011 *) ac_try_echo=$ac_try;;
23012 esac
23013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23014 (eval "$ac_link") 2>&5
23015 ac_status=$?
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23018 { (case "(($ac_try" in
23019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020 *) ac_try_echo=$ac_try;;
23021 esac
23022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23023 (eval "$ac_try") 2>&5
23024 ac_status=$?
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; }; then
23027 ac_cv_broken_poll=yes
23028 else
23029 echo "$as_me: program exited with status $ac_status" >&5
23030 echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23033 ( exit $ac_status )
23034 ac_cv_broken_poll=no
23036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23040 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23041 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23042 if test "$ac_cv_broken_poll" = yes
23043 then
23045 cat >>confdefs.h <<\_ACEOF
23046 #define HAVE_BROKEN_POLL 1
23047 _ACEOF
23051 # Before we can test tzset, we need to check if struct tm has a tm_zone
23052 # (which is not required by ISO C or UNIX spec) and/or if we support
23053 # tzname[]
23054 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23055 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23056 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23057 echo $ECHO_N "(cached) $ECHO_C" >&6
23058 else
23059 cat >conftest.$ac_ext <<_ACEOF
23060 /* confdefs.h. */
23061 _ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h. */
23065 #include <sys/types.h>
23066 #include <$ac_cv_struct_tm>
23070 main ()
23072 static struct tm ac_aggr;
23073 if (ac_aggr.tm_zone)
23074 return 0;
23076 return 0;
23078 _ACEOF
23079 rm -f conftest.$ac_objext
23080 if { (ac_try="$ac_compile"
23081 case "(($ac_try" in
23082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083 *) ac_try_echo=$ac_try;;
23084 esac
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086 (eval "$ac_compile") 2>conftest.er1
23087 ac_status=$?
23088 grep -v '^ *+' conftest.er1 >conftest.err
23089 rm -f conftest.er1
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } && {
23093 test -z "$ac_c_werror_flag" ||
23094 test ! -s conftest.err
23095 } && test -s conftest.$ac_objext; then
23096 ac_cv_member_struct_tm_tm_zone=yes
23097 else
23098 echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23101 cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h. */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 #include <sys/types.h>
23108 #include <$ac_cv_struct_tm>
23112 main ()
23114 static struct tm ac_aggr;
23115 if (sizeof ac_aggr.tm_zone)
23116 return 0;
23118 return 0;
23120 _ACEOF
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23126 esac
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_compile") 2>conftest.er1
23129 ac_status=$?
23130 grep -v '^ *+' conftest.er1 >conftest.err
23131 rm -f conftest.er1
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } && {
23135 test -z "$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23137 } && test -s conftest.$ac_objext; then
23138 ac_cv_member_struct_tm_tm_zone=yes
23139 else
23140 echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23143 ac_cv_member_struct_tm_tm_zone=no
23146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23151 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23152 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23153 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23155 cat >>confdefs.h <<_ACEOF
23156 #define HAVE_STRUCT_TM_TM_ZONE 1
23157 _ACEOF
23162 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23164 cat >>confdefs.h <<\_ACEOF
23165 #define HAVE_TM_ZONE 1
23166 _ACEOF
23168 else
23169 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23170 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23171 if test "${ac_cv_have_decl_tzname+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23173 else
23174 cat >conftest.$ac_ext <<_ACEOF
23175 /* confdefs.h. */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h. */
23180 #include <time.h>
23183 main ()
23185 #ifndef tzname
23186 (void) tzname;
23187 #endif
23190 return 0;
23192 _ACEOF
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23198 esac
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200 (eval "$ac_compile") 2>conftest.er1
23201 ac_status=$?
23202 grep -v '^ *+' conftest.er1 >conftest.err
23203 rm -f conftest.er1
23204 cat conftest.err >&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } && {
23207 test -z "$ac_c_werror_flag" ||
23208 test ! -s conftest.err
23209 } && test -s conftest.$ac_objext; then
23210 ac_cv_have_decl_tzname=yes
23211 else
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23215 ac_cv_have_decl_tzname=no
23218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23221 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23222 if test $ac_cv_have_decl_tzname = yes; then
23224 cat >>confdefs.h <<_ACEOF
23225 #define HAVE_DECL_TZNAME 1
23226 _ACEOF
23229 else
23230 cat >>confdefs.h <<_ACEOF
23231 #define HAVE_DECL_TZNAME 0
23232 _ACEOF
23238 { echo "$as_me:$LINENO: checking for tzname" >&5
23239 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23240 if test "${ac_cv_var_tzname+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23242 else
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h. */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 #include <time.h>
23250 #if !HAVE_DECL_TZNAME
23251 extern char *tzname[];
23252 #endif
23255 main ()
23257 return tzname[0][0];
23259 return 0;
23261 _ACEOF
23262 rm -f conftest.$ac_objext conftest$ac_exeext
23263 if { (ac_try="$ac_link"
23264 case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23267 esac
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_link") 2>conftest.er1
23270 ac_status=$?
23271 grep -v '^ *+' conftest.er1 >conftest.err
23272 rm -f conftest.er1
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } && {
23276 test -z "$ac_c_werror_flag" ||
23277 test ! -s conftest.err
23278 } && test -s conftest$ac_exeext &&
23279 $as_test_x conftest$ac_exeext; then
23280 ac_cv_var_tzname=yes
23281 else
23282 echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23285 ac_cv_var_tzname=no
23288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23289 conftest$ac_exeext conftest.$ac_ext
23291 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23292 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23293 if test $ac_cv_var_tzname = yes; then
23295 cat >>confdefs.h <<\_ACEOF
23296 #define HAVE_TZNAME 1
23297 _ACEOF
23303 # check tzset(3) exists and works like we expect it to
23304 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23305 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23306 if test "${ac_cv_working_tzset+set}" = set; then
23307 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 else
23310 if test "$cross_compiling" = yes; then
23311 ac_cv_working_tzset=no
23312 else
23313 cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h. */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23320 #include <stdlib.h>
23321 #include <time.h>
23322 #include <string.h>
23324 #if HAVE_TZNAME
23325 extern char *tzname[];
23326 #endif
23328 int main()
23330 /* Note that we need to ensure that not only does tzset(3)
23331 do 'something' with localtime, but it works as documented
23332 in the library reference and as expected by the test suite.
23333 This includes making sure that tzname is set properly if
23334 tm->tm_zone does not exist since it is the alternative way
23335 of getting timezone info.
23337 Red Hat 6.2 doesn't understand the southern hemisphere
23338 after New Year's Day.
23341 time_t groundhogday = 1044144000; /* GMT-based */
23342 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23344 putenv("TZ=UTC+0");
23345 tzset();
23346 if (localtime(&groundhogday)->tm_hour != 0)
23347 exit(1);
23348 #if HAVE_TZNAME
23349 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23350 if (strcmp(tzname[0], "UTC") ||
23351 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23352 exit(1);
23353 #endif
23355 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23356 tzset();
23357 if (localtime(&groundhogday)->tm_hour != 19)
23358 exit(1);
23359 #if HAVE_TZNAME
23360 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23361 exit(1);
23362 #endif
23364 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23365 tzset();
23366 if (localtime(&groundhogday)->tm_hour != 11)
23367 exit(1);
23368 #if HAVE_TZNAME
23369 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23370 exit(1);
23371 #endif
23373 #if HAVE_STRUCT_TM_TM_ZONE
23374 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23375 exit(1);
23376 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23377 exit(1);
23378 #endif
23380 exit(0);
23383 _ACEOF
23384 rm -f conftest$ac_exeext
23385 if { (ac_try="$ac_link"
23386 case "(($ac_try" in
23387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388 *) ac_try_echo=$ac_try;;
23389 esac
23390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23391 (eval "$ac_link") 2>&5
23392 ac_status=$?
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23395 { (case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23398 esac
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400 (eval "$ac_try") 2>&5
23401 ac_status=$?
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); }; }; then
23404 ac_cv_working_tzset=yes
23405 else
23406 echo "$as_me: program exited with status $ac_status" >&5
23407 echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23410 ( exit $ac_status )
23411 ac_cv_working_tzset=no
23413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23419 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23420 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23421 if test "$ac_cv_working_tzset" = yes
23422 then
23424 cat >>confdefs.h <<\_ACEOF
23425 #define HAVE_WORKING_TZSET 1
23426 _ACEOF
23430 # Look for subsecond timestamps in struct stat
23431 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23432 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23433 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23435 else
23436 cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h. */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 #include <sys/stat.h>
23444 main ()
23447 struct stat st;
23448 st.st_mtim.tv_nsec = 1;
23451 return 0;
23453 _ACEOF
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23459 esac
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461 (eval "$ac_compile") 2>conftest.er1
23462 ac_status=$?
23463 grep -v '^ *+' conftest.er1 >conftest.err
23464 rm -f conftest.er1
23465 cat conftest.err >&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); } && {
23468 test -z "$ac_c_werror_flag" ||
23469 test ! -s conftest.err
23470 } && test -s conftest.$ac_objext; then
23471 ac_cv_stat_tv_nsec=yes
23472 else
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_cv_stat_tv_nsec=no
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23482 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23483 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23484 if test "$ac_cv_stat_tv_nsec" = yes
23485 then
23487 cat >>confdefs.h <<\_ACEOF
23488 #define HAVE_STAT_TV_NSEC 1
23489 _ACEOF
23493 # Look for BSD style subsecond timestamps in struct stat
23494 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23495 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23496 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 else
23499 cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h. */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 #include <sys/stat.h>
23507 main ()
23510 struct stat st;
23511 st.st_mtimespec.tv_nsec = 1;
23514 return 0;
23516 _ACEOF
23517 rm -f conftest.$ac_objext
23518 if { (ac_try="$ac_compile"
23519 case "(($ac_try" in
23520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521 *) ac_try_echo=$ac_try;;
23522 esac
23523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23524 (eval "$ac_compile") 2>conftest.er1
23525 ac_status=$?
23526 grep -v '^ *+' conftest.er1 >conftest.err
23527 rm -f conftest.er1
23528 cat conftest.err >&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } && {
23531 test -z "$ac_c_werror_flag" ||
23532 test ! -s conftest.err
23533 } && test -s conftest.$ac_objext; then
23534 ac_cv_stat_tv_nsec2=yes
23535 else
23536 echo "$as_me: failed program was:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23539 ac_cv_stat_tv_nsec2=no
23542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23545 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23546 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23547 if test "$ac_cv_stat_tv_nsec2" = yes
23548 then
23550 cat >>confdefs.h <<\_ACEOF
23551 #define HAVE_STAT_TV_NSEC2 1
23552 _ACEOF
23556 # On HP/UX 11.0, mvwdelch is a block with a return statement
23557 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23558 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23559 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23560 echo $ECHO_N "(cached) $ECHO_C" >&6
23561 else
23562 cat >conftest.$ac_ext <<_ACEOF
23563 /* confdefs.h. */
23564 _ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23568 #include <curses.h>
23570 main ()
23573 int rtn;
23574 rtn = mvwdelch(0,0,0);
23577 return 0;
23579 _ACEOF
23580 rm -f conftest.$ac_objext
23581 if { (ac_try="$ac_compile"
23582 case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23585 esac
23586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23587 (eval "$ac_compile") 2>conftest.er1
23588 ac_status=$?
23589 grep -v '^ *+' conftest.er1 >conftest.err
23590 rm -f conftest.er1
23591 cat conftest.err >&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } && {
23594 test -z "$ac_c_werror_flag" ||
23595 test ! -s conftest.err
23596 } && test -s conftest.$ac_objext; then
23597 ac_cv_mvwdelch_is_expression=yes
23598 else
23599 echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23602 ac_cv_mvwdelch_is_expression=no
23605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23608 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23609 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23611 if test "$ac_cv_mvwdelch_is_expression" = yes
23612 then
23614 cat >>confdefs.h <<\_ACEOF
23615 #define MVWDELCH_IS_EXPRESSION 1
23616 _ACEOF
23620 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23621 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23622 if test "${ac_cv_window_has_flags+set}" = set; then
23623 echo $ECHO_N "(cached) $ECHO_C" >&6
23624 else
23625 cat >conftest.$ac_ext <<_ACEOF
23626 /* confdefs.h. */
23627 _ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23631 #include <curses.h>
23633 main ()
23636 WINDOW *w;
23637 w->_flags = 0;
23640 return 0;
23642 _ACEOF
23643 rm -f conftest.$ac_objext
23644 if { (ac_try="$ac_compile"
23645 case "(($ac_try" in
23646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23647 *) ac_try_echo=$ac_try;;
23648 esac
23649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23650 (eval "$ac_compile") 2>conftest.er1
23651 ac_status=$?
23652 grep -v '^ *+' conftest.er1 >conftest.err
23653 rm -f conftest.er1
23654 cat conftest.err >&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } && {
23657 test -z "$ac_c_werror_flag" ||
23658 test ! -s conftest.err
23659 } && test -s conftest.$ac_objext; then
23660 ac_cv_window_has_flags=yes
23661 else
23662 echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23665 ac_cv_window_has_flags=no
23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23671 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23672 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23675 if test "$ac_cv_window_has_flags" = yes
23676 then
23678 cat >>confdefs.h <<\_ACEOF
23679 #define WINDOW_HAS_FLAGS 1
23680 _ACEOF
23684 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23685 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23686 cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h. */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692 #include <curses.h>
23694 main ()
23696 void *x=is_term_resized
23698 return 0;
23700 _ACEOF
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705 *) ac_try_echo=$ac_try;;
23706 esac
23707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23708 (eval "$ac_compile") 2>conftest.er1
23709 ac_status=$?
23710 grep -v '^ *+' conftest.er1 >conftest.err
23711 rm -f conftest.er1
23712 cat conftest.err >&5
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } && {
23715 test -z "$ac_c_werror_flag" ||
23716 test ! -s conftest.err
23717 } && test -s conftest.$ac_objext; then
23719 cat >>confdefs.h <<\_ACEOF
23720 #define HAVE_CURSES_IS_TERM_RESIZED 1
23721 _ACEOF
23723 { echo "$as_me:$LINENO: result: yes" >&5
23724 echo "${ECHO_T}yes" >&6; }
23725 else
23726 echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23729 { echo "$as_me:$LINENO: result: no" >&5
23730 echo "${ECHO_T}no" >&6; }
23734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23736 { echo "$as_me:$LINENO: checking for resize_term" >&5
23737 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23738 cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h. */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h. */
23744 #include <curses.h>
23746 main ()
23748 void *x=resize_term
23750 return 0;
23752 _ACEOF
23753 rm -f conftest.$ac_objext
23754 if { (ac_try="$ac_compile"
23755 case "(($ac_try" in
23756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23757 *) ac_try_echo=$ac_try;;
23758 esac
23759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23760 (eval "$ac_compile") 2>conftest.er1
23761 ac_status=$?
23762 grep -v '^ *+' conftest.er1 >conftest.err
23763 rm -f conftest.er1
23764 cat conftest.err >&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } && {
23767 test -z "$ac_c_werror_flag" ||
23768 test ! -s conftest.err
23769 } && test -s conftest.$ac_objext; then
23771 cat >>confdefs.h <<\_ACEOF
23772 #define HAVE_CURSES_RESIZE_TERM 1
23773 _ACEOF
23775 { echo "$as_me:$LINENO: result: yes" >&5
23776 echo "${ECHO_T}yes" >&6; }
23777 else
23778 echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23781 { echo "$as_me:$LINENO: result: no" >&5
23782 echo "${ECHO_T}no" >&6; }
23786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23788 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23789 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23790 cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h. */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 #include <curses.h>
23798 main ()
23800 void *x=resizeterm
23802 return 0;
23804 _ACEOF
23805 rm -f conftest.$ac_objext
23806 if { (ac_try="$ac_compile"
23807 case "(($ac_try" in
23808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809 *) ac_try_echo=$ac_try;;
23810 esac
23811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812 (eval "$ac_compile") 2>conftest.er1
23813 ac_status=$?
23814 grep -v '^ *+' conftest.er1 >conftest.err
23815 rm -f conftest.er1
23816 cat conftest.err >&5
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); } && {
23819 test -z "$ac_c_werror_flag" ||
23820 test ! -s conftest.err
23821 } && test -s conftest.$ac_objext; then
23823 cat >>confdefs.h <<\_ACEOF
23824 #define HAVE_CURSES_RESIZETERM 1
23825 _ACEOF
23827 { echo "$as_me:$LINENO: result: yes" >&5
23828 echo "${ECHO_T}yes" >&6; }
23829 else
23830 echo "$as_me: failed program was:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23833 { echo "$as_me:$LINENO: result: no" >&5
23834 echo "${ECHO_T}no" >&6; }
23838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23840 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23841 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23843 if test -r /dev/ptmx
23844 then
23845 { echo "$as_me:$LINENO: result: yes" >&5
23846 echo "${ECHO_T}yes" >&6; }
23848 cat >>confdefs.h <<\_ACEOF
23849 #define HAVE_DEV_PTMX 1
23850 _ACEOF
23852 else
23853 { echo "$as_me:$LINENO: result: no" >&5
23854 echo "${ECHO_T}no" >&6; }
23857 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23858 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23860 if test -r /dev/ptc
23861 then
23862 { echo "$as_me:$LINENO: result: yes" >&5
23863 echo "${ECHO_T}yes" >&6; }
23865 cat >>confdefs.h <<\_ACEOF
23866 #define HAVE_DEV_PTC 1
23867 _ACEOF
23869 else
23870 { echo "$as_me:$LINENO: result: no" >&5
23871 echo "${ECHO_T}no" >&6; }
23874 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
23875 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
23876 if test "$cross_compiling" = yes; then
23877 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23878 See \`config.log' for more details." >&5
23879 echo "$as_me: error: cannot run test program while cross compiling
23880 See \`config.log' for more details." >&2;}
23881 { (exit 1); exit 1; }; }
23882 else
23883 cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h. */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23889 #include <stdio.h>
23890 #include <stddef.h>
23891 #include <string.h>
23893 #ifdef HAVE_SYS_TYPES_H
23894 #include <sys/types.h>
23895 #endif
23897 #ifdef HAVE_SSIZE_T
23898 typedef ssize_t Py_ssize_t;
23899 #elif SIZEOF_VOID_P == SIZEOF_LONG
23900 typedef long Py_ssize_t;
23901 #else
23902 typedef int Py_ssize_t;
23903 #endif
23905 int main()
23907 char buffer[256];
23909 if(sprintf(buffer, "%zd", (size_t)123) < 0)
23910 return 1;
23912 if (strcmp(buffer, "123"))
23913 return 1;
23915 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
23916 return 1;
23918 if (strcmp(buffer, "-123"))
23919 return 1;
23921 return 0;
23923 _ACEOF
23924 rm -f conftest$ac_exeext
23925 if { (ac_try="$ac_link"
23926 case "(($ac_try" in
23927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23929 esac
23930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23931 (eval "$ac_link") 2>&5
23932 ac_status=$?
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23935 { (case "(($ac_try" in
23936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937 *) ac_try_echo=$ac_try;;
23938 esac
23939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23940 (eval "$ac_try") 2>&5
23941 ac_status=$?
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); }; }; then
23944 { echo "$as_me:$LINENO: result: yes" >&5
23945 echo "${ECHO_T}yes" >&6; }
23947 cat >>confdefs.h <<\_ACEOF
23948 #define PY_FORMAT_SIZE_T "z"
23949 _ACEOF
23951 else
23952 echo "$as_me: program exited with status $ac_status" >&5
23953 echo "$as_me: failed program was:" >&5
23954 sed 's/^/| /' conftest.$ac_ext >&5
23956 ( exit $ac_status )
23957 { echo "$as_me:$LINENO: result: no" >&5
23958 echo "${ECHO_T}no" >&6; }
23960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23965 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23966 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23967 if test "${ac_cv_type_socklen_t+set}" = set; then
23968 echo $ECHO_N "(cached) $ECHO_C" >&6
23969 else
23970 cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h. */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23977 #ifdef HAVE_SYS_TYPES_H
23978 #include <sys/types.h>
23979 #endif
23980 #ifdef HAVE_SYS_SOCKET_H
23981 #include <sys/socket.h>
23982 #endif
23985 typedef socklen_t ac__type_new_;
23987 main ()
23989 if ((ac__type_new_ *) 0)
23990 return 0;
23991 if (sizeof (ac__type_new_))
23992 return 0;
23994 return 0;
23996 _ACEOF
23997 rm -f conftest.$ac_objext
23998 if { (ac_try="$ac_compile"
23999 case "(($ac_try" in
24000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24001 *) ac_try_echo=$ac_try;;
24002 esac
24003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24004 (eval "$ac_compile") 2>conftest.er1
24005 ac_status=$?
24006 grep -v '^ *+' conftest.er1 >conftest.err
24007 rm -f conftest.er1
24008 cat conftest.err >&5
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); } && {
24011 test -z "$ac_c_werror_flag" ||
24012 test ! -s conftest.err
24013 } && test -s conftest.$ac_objext; then
24014 ac_cv_type_socklen_t=yes
24015 else
24016 echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24019 ac_cv_type_socklen_t=no
24022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24024 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24025 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24026 if test $ac_cv_type_socklen_t = yes; then
24028 else
24030 cat >>confdefs.h <<\_ACEOF
24031 #define socklen_t int
24032 _ACEOF
24039 for h in `(cd $srcdir;echo Python/thread_*.h)`
24041 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24042 done
24045 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24046 { echo "$as_me:$LINENO: checking for build directories" >&5
24047 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24048 for dir in $SRCDIRS; do
24049 if test ! -d $dir; then
24050 mkdir $dir
24052 done
24053 { echo "$as_me:$LINENO: result: done" >&5
24054 echo "${ECHO_T}done" >&6; }
24056 # generate output files
24057 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24059 cat >confcache <<\_ACEOF
24060 # This file is a shell script that caches the results of configure
24061 # tests run on this system so they can be shared between configure
24062 # scripts and configure runs, see configure's option --config-cache.
24063 # It is not useful on other systems. If it contains results you don't
24064 # want to keep, you may remove or edit it.
24066 # config.status only pays attention to the cache file if you give it
24067 # the --recheck option to rerun configure.
24069 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24070 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24071 # following values.
24073 _ACEOF
24075 # The following way of writing the cache mishandles newlines in values,
24076 # but we know of no workaround that is simple, portable, and efficient.
24077 # So, we kill variables containing newlines.
24078 # Ultrix sh set writes to stderr and can't be redirected directly,
24079 # and sets the high bit in the cache file unless we assign to the vars.
24081 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24082 eval ac_val=\$$ac_var
24083 case $ac_val in #(
24084 *${as_nl}*)
24085 case $ac_var in #(
24086 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24087 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24088 esac
24089 case $ac_var in #(
24090 _ | IFS | as_nl) ;; #(
24091 *) $as_unset $ac_var ;;
24092 esac ;;
24093 esac
24094 done
24096 (set) 2>&1 |
24097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24098 *${as_nl}ac_space=\ *)
24099 # `set' does not quote correctly, so add quotes (double-quote
24100 # substitution turns \\\\ into \\, and sed turns \\ into \).
24101 sed -n \
24102 "s/'/'\\\\''/g;
24103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24104 ;; #(
24106 # `set' quotes correctly as required by POSIX, so do not add quotes.
24107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24109 esac |
24110 sort
24112 sed '
24113 /^ac_cv_env_/b end
24114 t clear
24115 :clear
24116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24117 t end
24118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24119 :end' >>confcache
24120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24121 if test -w "$cache_file"; then
24122 test "x$cache_file" != "x/dev/null" &&
24123 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24124 echo "$as_me: updating cache $cache_file" >&6;}
24125 cat confcache >$cache_file
24126 else
24127 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24128 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24131 rm -f confcache
24133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24134 # Let make expand exec_prefix.
24135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24137 DEFS=-DHAVE_CONFIG_H
24139 ac_libobjs=
24140 ac_ltlibobjs=
24141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24142 # 1. Remove the extension, and $U if already installed.
24143 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24144 ac_i=`echo "$ac_i" | sed "$ac_script"`
24145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24146 # will be set to the directory where LIBOBJS objects are built.
24147 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24148 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24149 done
24150 LIBOBJS=$ac_libobjs
24152 LTLIBOBJS=$ac_ltlibobjs
24156 : ${CONFIG_STATUS=./config.status}
24157 ac_clean_files_save=$ac_clean_files
24158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24161 cat >$CONFIG_STATUS <<_ACEOF
24162 #! $SHELL
24163 # Generated by $as_me.
24164 # Run this file to recreate the current configuration.
24165 # Compiler output produced by configure, useful for debugging
24166 # configure, is in config.log if it exists.
24168 debug=false
24169 ac_cs_recheck=false
24170 ac_cs_silent=false
24171 SHELL=\${CONFIG_SHELL-$SHELL}
24172 _ACEOF
24174 cat >>$CONFIG_STATUS <<\_ACEOF
24175 ## --------------------- ##
24176 ## M4sh Initialization. ##
24177 ## --------------------- ##
24179 # Be more Bourne compatible
24180 DUALCASE=1; export DUALCASE # for MKS sh
24181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24182 emulate sh
24183 NULLCMD=:
24184 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24185 # is contrary to our usage. Disable this feature.
24186 alias -g '${1+"$@"}'='"$@"'
24187 setopt NO_GLOB_SUBST
24188 else
24189 case `(set -o) 2>/dev/null` in
24190 *posix*) set -o posix ;;
24191 esac
24198 # PATH needs CR
24199 # Avoid depending upon Character Ranges.
24200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24203 as_cr_digits='0123456789'
24204 as_cr_alnum=$as_cr_Letters$as_cr_digits
24206 # The user is always right.
24207 if test "${PATH_SEPARATOR+set}" != set; then
24208 echo "#! /bin/sh" >conf$$.sh
24209 echo "exit 0" >>conf$$.sh
24210 chmod +x conf$$.sh
24211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24212 PATH_SEPARATOR=';'
24213 else
24214 PATH_SEPARATOR=:
24216 rm -f conf$$.sh
24219 # Support unset when possible.
24220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24221 as_unset=unset
24222 else
24223 as_unset=false
24227 # IFS
24228 # We need space, tab and new line, in precisely that order. Quoting is
24229 # there to prevent editors from complaining about space-tab.
24230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24231 # splitting by setting IFS to empty value.)
24232 as_nl='
24234 IFS=" "" $as_nl"
24236 # Find who we are. Look in the path if we contain no directory separator.
24237 case $0 in
24238 *[\\/]* ) as_myself=$0 ;;
24239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24240 for as_dir in $PATH
24242 IFS=$as_save_IFS
24243 test -z "$as_dir" && as_dir=.
24244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24245 done
24246 IFS=$as_save_IFS
24249 esac
24250 # We did not find ourselves, most probably we were run as `sh COMMAND'
24251 # in which case we are not to be found in the path.
24252 if test "x$as_myself" = x; then
24253 as_myself=$0
24255 if test ! -f "$as_myself"; then
24256 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24257 { (exit 1); exit 1; }
24260 # Work around bugs in pre-3.0 UWIN ksh.
24261 for as_var in ENV MAIL MAILPATH
24262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24263 done
24264 PS1='$ '
24265 PS2='> '
24266 PS4='+ '
24268 # NLS nuisances.
24269 for as_var in \
24270 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24271 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24272 LC_TELEPHONE LC_TIME
24274 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24275 eval $as_var=C; export $as_var
24276 else
24277 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24279 done
24281 # Required to use basename.
24282 if expr a : '\(a\)' >/dev/null 2>&1 &&
24283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24284 as_expr=expr
24285 else
24286 as_expr=false
24289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24290 as_basename=basename
24291 else
24292 as_basename=false
24296 # Name of the executable.
24297 as_me=`$as_basename -- "$0" ||
24298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24299 X"$0" : 'X\(//\)$' \| \
24300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24301 echo X/"$0" |
24302 sed '/^.*\/\([^/][^/]*\)\/*$/{
24303 s//\1/
24306 /^X\/\(\/\/\)$/{
24307 s//\1/
24310 /^X\/\(\/\).*/{
24311 s//\1/
24314 s/.*/./; q'`
24316 # CDPATH.
24317 $as_unset CDPATH
24321 as_lineno_1=$LINENO
24322 as_lineno_2=$LINENO
24323 test "x$as_lineno_1" != "x$as_lineno_2" &&
24324 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24326 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24327 # uniformly replaced by the line number. The first 'sed' inserts a
24328 # line-number line after each line using $LINENO; the second 'sed'
24329 # does the real work. The second script uses 'N' to pair each
24330 # line-number line with the line containing $LINENO, and appends
24331 # trailing '-' during substitution so that $LINENO is not a special
24332 # case at line end.
24333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24334 # scripts with optimization help from Paolo Bonzini. Blame Lee
24335 # E. McMahon (1931-1989) for sed's syntax. :-)
24336 sed -n '
24338 /[$]LINENO/=
24339 ' <$as_myself |
24340 sed '
24341 s/[$]LINENO.*/&-/
24342 t lineno
24344 :lineno
24346 :loop
24347 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24348 t loop
24349 s/-\n.*//
24350 ' >$as_me.lineno &&
24351 chmod +x "$as_me.lineno" ||
24352 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24353 { (exit 1); exit 1; }; }
24355 # Don't try to exec as it changes $[0], causing all sort of problems
24356 # (the dirname of $[0] is not the place where we might find the
24357 # original and so on. Autoconf is especially sensitive to this).
24358 . "./$as_me.lineno"
24359 # Exit status is that of the last command.
24360 exit
24364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24365 as_dirname=dirname
24366 else
24367 as_dirname=false
24370 ECHO_C= ECHO_N= ECHO_T=
24371 case `echo -n x` in
24372 -n*)
24373 case `echo 'x\c'` in
24374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24375 *) ECHO_C='\c';;
24376 esac;;
24378 ECHO_N='-n';;
24379 esac
24381 if expr a : '\(a\)' >/dev/null 2>&1 &&
24382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24383 as_expr=expr
24384 else
24385 as_expr=false
24388 rm -f conf$$ conf$$.exe conf$$.file
24389 if test -d conf$$.dir; then
24390 rm -f conf$$.dir/conf$$.file
24391 else
24392 rm -f conf$$.dir
24393 mkdir conf$$.dir
24395 echo >conf$$.file
24396 if ln -s conf$$.file conf$$ 2>/dev/null; then
24397 as_ln_s='ln -s'
24398 # ... but there are two gotchas:
24399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24401 # In both cases, we have to default to `cp -p'.
24402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24403 as_ln_s='cp -p'
24404 elif ln conf$$.file conf$$ 2>/dev/null; then
24405 as_ln_s=ln
24406 else
24407 as_ln_s='cp -p'
24409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24410 rmdir conf$$.dir 2>/dev/null
24412 if mkdir -p . 2>/dev/null; then
24413 as_mkdir_p=:
24414 else
24415 test -d ./-p && rmdir ./-p
24416 as_mkdir_p=false
24419 if test -x / >/dev/null 2>&1; then
24420 as_test_x='test -x'
24421 else
24422 if ls -dL / >/dev/null 2>&1; then
24423 as_ls_L_option=L
24424 else
24425 as_ls_L_option=
24427 as_test_x='
24428 eval sh -c '\''
24429 if test -d "$1"; then
24430 test -d "$1/.";
24431 else
24432 case $1 in
24433 -*)set "./$1";;
24434 esac;
24435 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24436 ???[sx]*):;;*)false;;esac;fi
24437 '\'' sh
24440 as_executable_p=$as_test_x
24442 # Sed expression to map a string onto a valid CPP name.
24443 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24445 # Sed expression to map a string onto a valid variable name.
24446 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24449 exec 6>&1
24451 # Save the log message, to keep $[0] and so on meaningful, and to
24452 # report actual input values of CONFIG_FILES etc. instead of their
24453 # values after options handling.
24454 ac_log="
24455 This file was extended by python $as_me 2.6, which was
24456 generated by GNU Autoconf 2.61. Invocation command line was
24458 CONFIG_FILES = $CONFIG_FILES
24459 CONFIG_HEADERS = $CONFIG_HEADERS
24460 CONFIG_LINKS = $CONFIG_LINKS
24461 CONFIG_COMMANDS = $CONFIG_COMMANDS
24462 $ $0 $@
24464 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24467 _ACEOF
24469 cat >>$CONFIG_STATUS <<_ACEOF
24470 # Files that config.status was made for.
24471 config_files="$ac_config_files"
24472 config_headers="$ac_config_headers"
24474 _ACEOF
24476 cat >>$CONFIG_STATUS <<\_ACEOF
24477 ac_cs_usage="\
24478 \`$as_me' instantiates files from templates according to the
24479 current configuration.
24481 Usage: $0 [OPTIONS] [FILE]...
24483 -h, --help print this help, then exit
24484 -V, --version print version number and configuration settings, then exit
24485 -q, --quiet do not print progress messages
24486 -d, --debug don't remove temporary files
24487 --recheck update $as_me by reconfiguring in the same conditions
24488 --file=FILE[:TEMPLATE]
24489 instantiate the configuration file FILE
24490 --header=FILE[:TEMPLATE]
24491 instantiate the configuration header FILE
24493 Configuration files:
24494 $config_files
24496 Configuration headers:
24497 $config_headers
24499 Report bugs to <bug-autoconf@gnu.org>."
24501 _ACEOF
24502 cat >>$CONFIG_STATUS <<_ACEOF
24503 ac_cs_version="\\
24504 python config.status 2.6
24505 configured by $0, generated by GNU Autoconf 2.61,
24506 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24508 Copyright (C) 2006 Free Software Foundation, Inc.
24509 This config.status script is free software; the Free Software Foundation
24510 gives unlimited permission to copy, distribute and modify it."
24512 ac_pwd='$ac_pwd'
24513 srcdir='$srcdir'
24514 INSTALL='$INSTALL'
24515 _ACEOF
24517 cat >>$CONFIG_STATUS <<\_ACEOF
24518 # If no file are specified by the user, then we need to provide default
24519 # value. By we need to know if files were specified by the user.
24520 ac_need_defaults=:
24521 while test $# != 0
24523 case $1 in
24524 --*=*)
24525 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24526 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24527 ac_shift=:
24530 ac_option=$1
24531 ac_optarg=$2
24532 ac_shift=shift
24534 esac
24536 case $ac_option in
24537 # Handling of the options.
24538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24539 ac_cs_recheck=: ;;
24540 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24541 echo "$ac_cs_version"; exit ;;
24542 --debug | --debu | --deb | --de | --d | -d )
24543 debug=: ;;
24544 --file | --fil | --fi | --f )
24545 $ac_shift
24546 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24547 ac_need_defaults=false;;
24548 --header | --heade | --head | --hea )
24549 $ac_shift
24550 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24551 ac_need_defaults=false;;
24552 --he | --h)
24553 # Conflict between --help and --header
24554 { echo "$as_me: error: ambiguous option: $1
24555 Try \`$0 --help' for more information." >&2
24556 { (exit 1); exit 1; }; };;
24557 --help | --hel | -h )
24558 echo "$ac_cs_usage"; exit ;;
24559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24560 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24561 ac_cs_silent=: ;;
24563 # This is an error.
24564 -*) { echo "$as_me: error: unrecognized option: $1
24565 Try \`$0 --help' for more information." >&2
24566 { (exit 1); exit 1; }; } ;;
24568 *) ac_config_targets="$ac_config_targets $1"
24569 ac_need_defaults=false ;;
24571 esac
24572 shift
24573 done
24575 ac_configure_extra_args=
24577 if $ac_cs_silent; then
24578 exec 6>/dev/null
24579 ac_configure_extra_args="$ac_configure_extra_args --silent"
24582 _ACEOF
24583 cat >>$CONFIG_STATUS <<_ACEOF
24584 if \$ac_cs_recheck; then
24585 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24586 CONFIG_SHELL=$SHELL
24587 export CONFIG_SHELL
24588 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24591 _ACEOF
24592 cat >>$CONFIG_STATUS <<\_ACEOF
24593 exec 5>>config.log
24595 echo
24596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24597 ## Running $as_me. ##
24598 _ASBOX
24599 echo "$ac_log"
24600 } >&5
24602 _ACEOF
24603 cat >>$CONFIG_STATUS <<_ACEOF
24604 _ACEOF
24606 cat >>$CONFIG_STATUS <<\_ACEOF
24608 # Handling of arguments.
24609 for ac_config_target in $ac_config_targets
24611 case $ac_config_target in
24612 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
24613 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
24614 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24615 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24616 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
24617 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
24618 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
24619 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
24621 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24622 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24623 { (exit 1); exit 1; }; };;
24624 esac
24625 done
24628 # If the user did not use the arguments to specify the items to instantiate,
24629 # then the envvar interface is used. Set only those that are not.
24630 # We use the long form for the default assignment because of an extremely
24631 # bizarre bug on SunOS 4.1.3.
24632 if $ac_need_defaults; then
24633 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24634 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24637 # Have a temporary directory for convenience. Make it in the build tree
24638 # simply because there is no reason against having it here, and in addition,
24639 # creating and moving files from /tmp can sometimes cause problems.
24640 # Hook for its removal unless debugging.
24641 # Note that there is a small window in which the directory will not be cleaned:
24642 # after its creation but before its name has been assigned to `$tmp'.
24643 $debug ||
24645 tmp=
24646 trap 'exit_status=$?
24647 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24649 trap '{ (exit 1); exit 1; }' 1 2 13 15
24651 # Create a (secure) tmp directory for tmp files.
24654 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24655 test -n "$tmp" && test -d "$tmp"
24656 } ||
24658 tmp=./conf$$-$RANDOM
24659 (umask 077 && mkdir "$tmp")
24660 } ||
24662 echo "$me: cannot create a temporary directory in ." >&2
24663 { (exit 1); exit 1; }
24667 # Set up the sed scripts for CONFIG_FILES section.
24670 # No need to generate the scripts if there are no CONFIG_FILES.
24671 # This happens for instance when ./config.status config.h
24672 if test -n "$CONFIG_FILES"; then
24674 _ACEOF
24678 ac_delim='%!_!# '
24679 for ac_last_try in false false false false false :; do
24680 cat >conf$$subs.sed <<_ACEOF
24681 SHELL!$SHELL$ac_delim
24682 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24683 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24684 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24685 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24686 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24687 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24688 exec_prefix!$exec_prefix$ac_delim
24689 prefix!$prefix$ac_delim
24690 program_transform_name!$program_transform_name$ac_delim
24691 bindir!$bindir$ac_delim
24692 sbindir!$sbindir$ac_delim
24693 libexecdir!$libexecdir$ac_delim
24694 datarootdir!$datarootdir$ac_delim
24695 datadir!$datadir$ac_delim
24696 sysconfdir!$sysconfdir$ac_delim
24697 sharedstatedir!$sharedstatedir$ac_delim
24698 localstatedir!$localstatedir$ac_delim
24699 includedir!$includedir$ac_delim
24700 oldincludedir!$oldincludedir$ac_delim
24701 docdir!$docdir$ac_delim
24702 infodir!$infodir$ac_delim
24703 htmldir!$htmldir$ac_delim
24704 dvidir!$dvidir$ac_delim
24705 pdfdir!$pdfdir$ac_delim
24706 psdir!$psdir$ac_delim
24707 libdir!$libdir$ac_delim
24708 localedir!$localedir$ac_delim
24709 mandir!$mandir$ac_delim
24710 DEFS!$DEFS$ac_delim
24711 ECHO_C!$ECHO_C$ac_delim
24712 ECHO_N!$ECHO_N$ac_delim
24713 ECHO_T!$ECHO_T$ac_delim
24714 LIBS!$LIBS$ac_delim
24715 build_alias!$build_alias$ac_delim
24716 host_alias!$host_alias$ac_delim
24717 target_alias!$target_alias$ac_delim
24718 VERSION!$VERSION$ac_delim
24719 SOVERSION!$SOVERSION$ac_delim
24720 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24721 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24722 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24723 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
24724 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24725 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24726 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24727 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24728 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24729 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24730 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24731 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24732 MACHDEP!$MACHDEP$ac_delim
24733 SGI_ABI!$SGI_ABI$ac_delim
24734 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24735 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24736 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24737 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24738 CC!$CC$ac_delim
24739 CFLAGS!$CFLAGS$ac_delim
24740 LDFLAGS!$LDFLAGS$ac_delim
24741 CPPFLAGS!$CPPFLAGS$ac_delim
24742 ac_ct_CC!$ac_ct_CC$ac_delim
24743 EXEEXT!$EXEEXT$ac_delim
24744 OBJEXT!$OBJEXT$ac_delim
24745 CXX!$CXX$ac_delim
24746 MAINCC!$MAINCC$ac_delim
24747 CPP!$CPP$ac_delim
24748 GREP!$GREP$ac_delim
24749 EGREP!$EGREP$ac_delim
24750 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24751 LIBRARY!$LIBRARY$ac_delim
24752 LDLIBRARY!$LDLIBRARY$ac_delim
24753 DLLLIBRARY!$DLLLIBRARY$ac_delim
24754 BLDLIBRARY!$BLDLIBRARY$ac_delim
24755 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24756 INSTSONAME!$INSTSONAME$ac_delim
24757 RUNSHARED!$RUNSHARED$ac_delim
24758 LINKCC!$LINKCC$ac_delim
24759 RANLIB!$RANLIB$ac_delim
24760 AR!$AR$ac_delim
24761 SVNVERSION!$SVNVERSION$ac_delim
24762 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24763 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24764 INSTALL_DATA!$INSTALL_DATA$ac_delim
24765 LN!$LN$ac_delim
24766 OPT!$OPT$ac_delim
24767 BASECFLAGS!$BASECFLAGS$ac_delim
24768 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24769 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24770 SO!$SO$ac_delim
24771 LDSHARED!$LDSHARED$ac_delim
24772 BLDSHARED!$BLDSHARED$ac_delim
24773 CCSHARED!$CCSHARED$ac_delim
24774 LINKFORSHARED!$LINKFORSHARED$ac_delim
24775 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24776 SHLIBS!$SHLIBS$ac_delim
24777 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24778 _ACEOF
24780 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24781 break
24782 elif $ac_last_try; then
24783 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24784 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24785 { (exit 1); exit 1; }; }
24786 else
24787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24789 done
24791 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24792 if test -n "$ac_eof"; then
24793 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24794 ac_eof=`expr $ac_eof + 1`
24797 cat >>$CONFIG_STATUS <<_ACEOF
24798 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24800 _ACEOF
24801 sed '
24802 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24803 s/^/s,@/; s/!/@,|#_!!_#|/
24806 s/'"$ac_delim"'$/,g/; t
24807 s/$/\\/; p
24808 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24809 ' >>$CONFIG_STATUS <conf$$subs.sed
24810 rm -f conf$$subs.sed
24811 cat >>$CONFIG_STATUS <<_ACEOF
24812 CEOF$ac_eof
24813 _ACEOF
24816 ac_delim='%!_!# '
24817 for ac_last_try in false false false false false :; do
24818 cat >conf$$subs.sed <<_ACEOF
24819 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24820 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24821 LDLAST!$LDLAST$ac_delim
24822 THREADOBJ!$THREADOBJ$ac_delim
24823 DLINCLDIR!$DLINCLDIR$ac_delim
24824 DYNLOADFILE!$DYNLOADFILE$ac_delim
24825 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24826 TRUE!$TRUE$ac_delim
24827 LIBOBJS!$LIBOBJS$ac_delim
24828 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24829 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24830 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24831 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24832 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24833 LIBM!$LIBM$ac_delim
24834 LIBC!$LIBC$ac_delim
24835 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24836 THREADHEADERS!$THREADHEADERS$ac_delim
24837 SRCDIRS!$SRCDIRS$ac_delim
24838 LTLIBOBJS!$LTLIBOBJS$ac_delim
24839 _ACEOF
24841 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
24842 break
24843 elif $ac_last_try; then
24844 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24845 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24846 { (exit 1); exit 1; }; }
24847 else
24848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24850 done
24852 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24853 if test -n "$ac_eof"; then
24854 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24855 ac_eof=`expr $ac_eof + 1`
24858 cat >>$CONFIG_STATUS <<_ACEOF
24859 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24861 _ACEOF
24862 sed '
24863 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24864 s/^/s,@/; s/!/@,|#_!!_#|/
24867 s/'"$ac_delim"'$/,g/; t
24868 s/$/\\/; p
24869 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24870 ' >>$CONFIG_STATUS <conf$$subs.sed
24871 rm -f conf$$subs.sed
24872 cat >>$CONFIG_STATUS <<_ACEOF
24873 :end
24874 s/|#_!!_#|//g
24875 CEOF$ac_eof
24876 _ACEOF
24879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24881 # trailing colons and then remove the whole line if VPATH becomes empty
24882 # (actually we leave an empty line to preserve line numbers).
24883 if test "x$srcdir" = x.; then
24884 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24885 s/:*\$(srcdir):*/:/
24886 s/:*\${srcdir}:*/:/
24887 s/:*@srcdir@:*/:/
24888 s/^\([^=]*=[ ]*\):*/\1/
24889 s/:*$//
24890 s/^[^=]*=[ ]*$//
24894 cat >>$CONFIG_STATUS <<\_ACEOF
24895 fi # test -n "$CONFIG_FILES"
24898 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24900 case $ac_tag in
24901 :[FHLC]) ac_mode=$ac_tag; continue;;
24902 esac
24903 case $ac_mode$ac_tag in
24904 :[FHL]*:*);;
24905 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24906 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24907 { (exit 1); exit 1; }; };;
24908 :[FH]-) ac_tag=-:-;;
24909 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24910 esac
24911 ac_save_IFS=$IFS
24912 IFS=:
24913 set x $ac_tag
24914 IFS=$ac_save_IFS
24915 shift
24916 ac_file=$1
24917 shift
24919 case $ac_mode in
24920 :L) ac_source=$1;;
24921 :[FH])
24922 ac_file_inputs=
24923 for ac_f
24925 case $ac_f in
24926 -) ac_f="$tmp/stdin";;
24927 *) # Look for the file first in the build tree, then in the source tree
24928 # (if the path is not absolute). The absolute path cannot be DOS-style,
24929 # because $ac_f cannot contain `:'.
24930 test -f "$ac_f" ||
24931 case $ac_f in
24932 [\\/$]*) false;;
24933 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24934 esac ||
24935 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24936 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24937 { (exit 1); exit 1; }; };;
24938 esac
24939 ac_file_inputs="$ac_file_inputs $ac_f"
24940 done
24942 # Let's still pretend it is `configure' which instantiates (i.e., don't
24943 # use $as_me), people would be surprised to read:
24944 # /* config.h. Generated by config.status. */
24945 configure_input="Generated from "`IFS=:
24946 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24947 if test x"$ac_file" != x-; then
24948 configure_input="$ac_file. $configure_input"
24949 { echo "$as_me:$LINENO: creating $ac_file" >&5
24950 echo "$as_me: creating $ac_file" >&6;}
24953 case $ac_tag in
24954 *:-:* | *:-) cat >"$tmp/stdin";;
24955 esac
24957 esac
24959 ac_dir=`$as_dirname -- "$ac_file" ||
24960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24961 X"$ac_file" : 'X\(//\)[^/]' \| \
24962 X"$ac_file" : 'X\(//\)$' \| \
24963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24964 echo X"$ac_file" |
24965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24966 s//\1/
24969 /^X\(\/\/\)[^/].*/{
24970 s//\1/
24973 /^X\(\/\/\)$/{
24974 s//\1/
24977 /^X\(\/\).*/{
24978 s//\1/
24981 s/.*/./; q'`
24982 { as_dir="$ac_dir"
24983 case $as_dir in #(
24984 -*) as_dir=./$as_dir;;
24985 esac
24986 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24987 as_dirs=
24988 while :; do
24989 case $as_dir in #(
24990 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24991 *) as_qdir=$as_dir;;
24992 esac
24993 as_dirs="'$as_qdir' $as_dirs"
24994 as_dir=`$as_dirname -- "$as_dir" ||
24995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24996 X"$as_dir" : 'X\(//\)[^/]' \| \
24997 X"$as_dir" : 'X\(//\)$' \| \
24998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24999 echo X"$as_dir" |
25000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25001 s//\1/
25004 /^X\(\/\/\)[^/].*/{
25005 s//\1/
25008 /^X\(\/\/\)$/{
25009 s//\1/
25012 /^X\(\/\).*/{
25013 s//\1/
25016 s/.*/./; q'`
25017 test -d "$as_dir" && break
25018 done
25019 test -z "$as_dirs" || eval "mkdir $as_dirs"
25020 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25021 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25022 { (exit 1); exit 1; }; }; }
25023 ac_builddir=.
25025 case "$ac_dir" in
25026 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25028 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25029 # A ".." for each directory in $ac_dir_suffix.
25030 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25031 case $ac_top_builddir_sub in
25032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25034 esac ;;
25035 esac
25036 ac_abs_top_builddir=$ac_pwd
25037 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25038 # for backward compatibility:
25039 ac_top_builddir=$ac_top_build_prefix
25041 case $srcdir in
25042 .) # We are building in place.
25043 ac_srcdir=.
25044 ac_top_srcdir=$ac_top_builddir_sub
25045 ac_abs_top_srcdir=$ac_pwd ;;
25046 [\\/]* | ?:[\\/]* ) # Absolute name.
25047 ac_srcdir=$srcdir$ac_dir_suffix;
25048 ac_top_srcdir=$srcdir
25049 ac_abs_top_srcdir=$srcdir ;;
25050 *) # Relative name.
25051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25052 ac_top_srcdir=$ac_top_build_prefix$srcdir
25053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25054 esac
25055 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25058 case $ac_mode in
25061 # CONFIG_FILE
25064 case $INSTALL in
25065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25066 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25067 esac
25068 _ACEOF
25070 cat >>$CONFIG_STATUS <<\_ACEOF
25071 # If the template does not know about datarootdir, expand it.
25072 # FIXME: This hack should be removed a few years after 2.60.
25073 ac_datarootdir_hack=; ac_datarootdir_seen=
25075 case `sed -n '/datarootdir/ {
25079 /@datadir@/p
25080 /@docdir@/p
25081 /@infodir@/p
25082 /@localedir@/p
25083 /@mandir@/p
25084 ' $ac_file_inputs` in
25085 *datarootdir*) ac_datarootdir_seen=yes;;
25086 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25087 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25088 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25089 _ACEOF
25090 cat >>$CONFIG_STATUS <<_ACEOF
25091 ac_datarootdir_hack='
25092 s&@datadir@&$datadir&g
25093 s&@docdir@&$docdir&g
25094 s&@infodir@&$infodir&g
25095 s&@localedir@&$localedir&g
25096 s&@mandir@&$mandir&g
25097 s&\\\${datarootdir}&$datarootdir&g' ;;
25098 esac
25099 _ACEOF
25101 # Neutralize VPATH when `$srcdir' = `.'.
25102 # Shell code in configure.ac might set extrasub.
25103 # FIXME: do we really want to maintain this feature?
25104 cat >>$CONFIG_STATUS <<_ACEOF
25105 sed "$ac_vpsub
25106 $extrasub
25107 _ACEOF
25108 cat >>$CONFIG_STATUS <<\_ACEOF
25110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25111 s&@configure_input@&$configure_input&;t t
25112 s&@top_builddir@&$ac_top_builddir_sub&;t t
25113 s&@srcdir@&$ac_srcdir&;t t
25114 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25115 s&@top_srcdir@&$ac_top_srcdir&;t t
25116 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25117 s&@builddir@&$ac_builddir&;t t
25118 s&@abs_builddir@&$ac_abs_builddir&;t t
25119 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25120 s&@INSTALL@&$ac_INSTALL&;t t
25121 $ac_datarootdir_hack
25122 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25125 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25127 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25128 which seems to be undefined. Please make sure it is defined." >&5
25129 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25130 which seems to be undefined. Please make sure it is defined." >&2;}
25132 rm -f "$tmp/stdin"
25133 case $ac_file in
25134 -) cat "$tmp/out"; rm -f "$tmp/out";;
25135 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25136 esac
25140 # CONFIG_HEADER
25142 _ACEOF
25144 # Transform confdefs.h into a sed script `conftest.defines', that
25145 # substitutes the proper values into config.h.in to produce config.h.
25146 rm -f conftest.defines conftest.tail
25147 # First, append a space to every undef/define line, to ease matching.
25148 echo 's/$/ /' >conftest.defines
25149 # Then, protect against being on the right side of a sed subst, or in
25150 # an unquoted here document, in config.status. If some macros were
25151 # called several times there might be several #defines for the same
25152 # symbol, which is useless. But do not sort them, since the last
25153 # AC_DEFINE must be honored.
25154 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25155 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25156 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25157 # PARAMS is the parameter list in the macro definition--in most cases, it's
25158 # just an empty string.
25159 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25160 ac_dB='\\)[ (].*,\\1define\\2'
25161 ac_dC=' '
25162 ac_dD=' ,'
25164 uniq confdefs.h |
25165 sed -n '
25166 t rset
25167 :rset
25168 s/^[ ]*#[ ]*define[ ][ ]*//
25169 t ok
25172 s/[\\&,]/\\&/g
25173 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25174 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25175 ' >>conftest.defines
25177 # Remove the space that was appended to ease matching.
25178 # Then replace #undef with comments. This is necessary, for
25179 # example, in the case of _POSIX_SOURCE, which is predefined and required
25180 # on some systems where configure will not decide to define it.
25181 # (The regexp can be short, since the line contains either #define or #undef.)
25182 echo 's/ $//
25183 s,^[ #]*u.*,/* & */,' >>conftest.defines
25185 # Break up conftest.defines:
25186 ac_max_sed_lines=50
25188 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25189 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25190 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25191 # et cetera.
25192 ac_in='$ac_file_inputs'
25193 ac_out='"$tmp/out1"'
25194 ac_nxt='"$tmp/out2"'
25196 while :
25198 # Write a here document:
25199 cat >>$CONFIG_STATUS <<_ACEOF
25200 # First, check the format of the line:
25201 cat >"\$tmp/defines.sed" <<\\CEOF
25202 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25203 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25205 :def
25206 _ACEOF
25207 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25208 echo 'CEOF
25209 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25210 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25211 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25212 grep . conftest.tail >/dev/null || break
25213 rm -f conftest.defines
25214 mv conftest.tail conftest.defines
25215 done
25216 rm -f conftest.defines conftest.tail
25218 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25219 cat >>$CONFIG_STATUS <<\_ACEOF
25220 if test x"$ac_file" != x-; then
25221 echo "/* $configure_input */" >"$tmp/config.h"
25222 cat "$ac_result" >>"$tmp/config.h"
25223 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25224 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25225 echo "$as_me: $ac_file is unchanged" >&6;}
25226 else
25227 rm -f $ac_file
25228 mv "$tmp/config.h" $ac_file
25230 else
25231 echo "/* $configure_input */"
25232 cat "$ac_result"
25234 rm -f "$tmp/out12"
25238 esac
25240 done # for ac_tag
25243 { (exit 0); exit 0; }
25244 _ACEOF
25245 chmod +x $CONFIG_STATUS
25246 ac_clean_files=$ac_clean_files_save
25249 # configure is writing to config.log, and then calls config.status.
25250 # config.status does its own redirection, appending to config.log.
25251 # Unfortunately, on DOS this fails, as config.log is still kept open
25252 # by configure, so config.status won't be able to write to it; its
25253 # output is simply discarded. So we exec the FD to /dev/null,
25254 # effectively closing config.log, so it can be properly (re)opened and
25255 # appended to by config.status. When coming back to configure, we
25256 # need to make the FD available again.
25257 if test "$no_create" != yes; then
25258 ac_cs_success=:
25259 ac_config_status_args=
25260 test "$silent" = yes &&
25261 ac_config_status_args="$ac_config_status_args --quiet"
25262 exec 5>/dev/null
25263 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25264 exec 5>>config.log
25265 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25266 # would make configure fail if this is the last instruction.
25267 $ac_cs_success || { (exit 1); exit 1; }
25271 echo "creating Modules/Setup"
25272 if test ! -f Modules/Setup
25273 then
25274 cp $srcdir/Modules/Setup.dist Modules/Setup
25277 echo "creating Modules/Setup.local"
25278 if test ! -f Modules/Setup.local
25279 then
25280 echo "# Edit this file for local setup changes" >Modules/Setup.local
25283 echo "creating Makefile"
25284 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
25285 -s Modules Modules/Setup.config \
25286 Modules/Setup.local Modules/Setup
25288 case $ac_sys_system in
25289 BeOS)
25290 { echo "$as_me:$LINENO: WARNING:
25292 Support for BeOS is deprecated as of Python 2.6.
25293 See PEP 11 for the gory details.
25294 " >&5
25295 echo "$as_me: WARNING:
25297 Support for BeOS is deprecated as of Python 2.6.
25298 See PEP 11 for the gory details.
25299 " >&2;}
25301 *) ;;
25302 esac
25304 mv config.c Modules