rewrite error handling to make sense
[python/dscho.git] / configure
blobff266aa3a0bc0cafd25cd5413cb0cc4a9b24728b
1 #! /bin/sh
2 # From configure.in Revision: 70459 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
6 # Report bugs to <http://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='3.1'
579 PACKAGE_STRING='python 3.1'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
683 MAINCC
685 GREP
686 EGREP
687 BUILDEXEEXT
688 LIBRARY
689 LDLIBRARY
690 DLLLIBRARY
691 BLDLIBRARY
692 LDLIBRARYDIR
693 INSTSONAME
694 RUNSHARED
695 LINKCC
696 RANLIB
698 SVNVERSION
699 INSTALL_PROGRAM
700 INSTALL_SCRIPT
701 INSTALL_DATA
704 BASECFLAGS
705 UNIVERSAL_ARCH_FLAGS
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 THREADHEADERS
733 SRCDIRS
734 LTLIBOBJS'
735 ac_subst_files=''
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP'
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
793 ac_prev=
794 ac_dashdash=
795 for ac_option
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
813 ac_dashdash=yes ;;
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
832 --config-cache | -C)
833 cache_file=config.cache ;;
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
847 -disable-* | --disable-*)
848 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
851 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852 { (exit 1); exit 1; }; }
853 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
854 eval enable_$ac_feature=no ;;
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
866 -enable-* | --enable-*)
867 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
870 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871 { (exit 1); exit 1; }; }
872 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
873 eval enable_$ac_feature=\$ac_optarg ;;
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
935 -localstatedir | --localstatedir | --localstatedi | --localstated \
936 | --localstate | --localstat | --localsta | --localst | --locals)
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940 localstatedir=$ac_optarg ;;
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1063 -with-* | --with-*)
1064 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_$ac_package=no ;;
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1099 -*) { echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109 { (exit 1); exit 1; }; }
1110 eval $ac_envvar=\$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 esac
1122 done
1124 if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126 { echo "$as_me: error: missing argument to $ac_option" >&2
1127 { (exit 1); exit 1; }; }
1130 # Be sure to have absolute directory names.
1131 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
1136 eval ac_val=\$$ac_var
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142 { (exit 1); exit 1; }; }
1143 done
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1148 build=$build_alias
1149 host=$host_alias
1150 target=$target_alias
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x; then
1154 if test "x$build_alias" = x; then
1155 cross_compiling=maybe
1156 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1158 elif test "x$build_alias" != "x$host_alias"; then
1159 cross_compiling=yes
1163 ac_tool_prefix=
1164 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166 test "$silent" = yes && exec 6>/dev/null
1169 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di=`ls -di .` &&
1171 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172 { echo "$as_me: error: Working directory cannot be determined" >&2
1173 { (exit 1); exit 1; }; }
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175 { echo "$as_me: error: pwd does not report name of working directory" >&2
1176 { (exit 1); exit 1; }; }
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$0" ||
1184 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$0" : 'X\(//\)[^/]' \| \
1186 X"$0" : 'X\(//\)$' \| \
1187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1188 echo X"$0" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1197 /^X\(\/\/\)$/{
1198 s//\1/
1201 /^X\(\/\).*/{
1202 s//\1/
1205 s/.*/./; q'`
1206 srcdir=$ac_confdir
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 srcdir=..
1210 else
1211 ac_srcdir_defaulted=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216 { (exit 1); exit 1; }; }
1218 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 ac_abs_confdir=`(
1220 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221 { (exit 1); exit 1; }; }
1222 pwd)`
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 srcdir=.
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1230 case $srcdir in
1231 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232 esac
1233 for ac_var in $ac_precious_vars; do
1234 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_${ac_var}_value=\$${ac_var}
1236 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238 done
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1246 cat <<_ACEOF
1247 \`configure' configures python 3.1 to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1256 Configuration:
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 [PREFIX]
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1300 _ACEOF
1302 cat <<\_ACEOF
1303 _ACEOF
1306 if test -n "$ac_init_help"; then
1307 case $ac_init_help in
1308 short | recursive ) echo "Configuration of python 3.1:";;
1309 esac
1310 cat <<\_ACEOF
1312 Optional Features:
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315 --enable-universalsdk[=SDKDIR]
1316 Build against Mac OS X 10.4u SDK (ppc/i386)
1317 --enable-framework[=INSTALLDIR]
1318 Build (MacOSX|Darwin) framework
1319 --enable-shared disable/enable building shared python library
1320 --enable-profiling enable C-level code profiling
1321 --enable-ipv6 Enable ipv6 (with ipv4) support
1322 --disable-ipv6 Disable ipv6 support
1323 --enable-big-digits[=BITS]
1324 use big digits for Python longs [BITS=30]
1326 Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --with-universal-archs=ARCH
1330 select architectures for universal build ("32-bit",
1331 "64-bit" or "all")
1332 --with-framework-name=FRAMEWORK
1333 specify an alternate name of the framework built
1334 with --enable-framework
1335 --without-gcc never use gcc
1336 --with-cxx-main=<compiler>
1337 compile main() and link python executable with C++
1338 compiler
1339 --with-suffix=.exe set executable suffix
1340 --with-pydebug build with Py_DEBUG defined
1341 --with-libs='lib1 ...' link against additional libs
1342 --with-system-ffi build _ctypes module using an installed ffi library
1343 --with-signal-module disable/enable signal module
1344 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1345 --with(out)-threads[=DIRECTORY]
1346 disable/enable thread support
1347 --with(out)-thread[=DIRECTORY]
1348 deprecated; use --with(out)-threads
1349 --with-pth use GNU pth threading libraries
1350 --with(out)-doc-strings disable/enable documentation strings
1351 --with(out)-tsc enable/disable timestamp counter profile
1352 --with(out)-pymalloc disable/enable specialized mallocs
1353 --with-wctype-functions use wctype.h functions
1354 --with-fpectl enable SIGFPE catching
1355 --with-libm=STRING math library
1356 --with-libc=STRING C library
1357 --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
1358 --with-computed-gotos Use computed gotos / threaded dispatch in evaluation
1359 loop (not available on all compilers)
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1371 Use these variables to override the choices made by `configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1374 Report bugs to <http://www.python.org/python-bugs>.
1375 _ACEOF
1376 ac_status=$?
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 python configure 3.1
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by python $as_me 3.1, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1452 $ $0 $@
1454 _ACEOF
1455 exec 5>>config.log
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1479 _ASUNAME
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1490 } >&5
1492 cat >&5 <<_ACEOF
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1499 _ACEOF
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1513 for ac_arg
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1558 echo
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1592 esac |
1593 sort
1595 echo
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1694 shift
1695 for ac_site_file
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1703 done
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1722 # Check that the precious variables saved in the cache have kept the same
1723 # value.
1724 ac_cache_corrupted=false
1725 for ac_var in $ac_precious_vars; do
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
1730 case $ac_old_set,$ac_new_set in
1731 set,)
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1733 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1735 ,set)
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1737 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1739 ,);;
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
1742 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1743 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1744 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1745 echo "$as_me: former value: $ac_old_val" >&2;}
1746 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1747 echo "$as_me: current value: $ac_new_val" >&2;}
1748 ac_cache_corrupted=:
1749 fi;;
1750 esac
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1753 case $ac_new_val in
1754 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1756 esac
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1760 esac
1762 done
1763 if $ac_cache_corrupted; then
1764 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1765 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1766 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1767 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1768 { (exit 1); exit 1; }; }
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 ac_config_headers="$ac_config_headers pyconfig.h"
1811 # We don't use PACKAGE_ variables, and they cause conflicts
1812 # with other autoconf-based packages that include Python.h
1813 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1814 rm confdefs.h
1815 mv confdefs.h.new confdefs.h
1818 VERSION=3.1
1821 SOVERSION=1.0
1823 # The later defininition of _XOPEN_SOURCE disables certain features
1824 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1826 cat >>confdefs.h <<\_ACEOF
1827 #define _GNU_SOURCE 1
1828 _ACEOF
1831 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1832 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1833 # them.
1835 cat >>confdefs.h <<\_ACEOF
1836 #define _NETBSD_SOURCE 1
1837 _ACEOF
1840 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1841 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1842 # them.
1844 cat >>confdefs.h <<\_ACEOF
1845 #define __BSD_VISIBLE 1
1846 _ACEOF
1849 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1850 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1852 cat >>confdefs.h <<\_ACEOF
1853 #define _BSD_TYPES 1
1854 _ACEOF
1857 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1858 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1859 # them.
1861 cat >>confdefs.h <<\_ACEOF
1862 #define _DARWIN_C_SOURCE 1
1863 _ACEOF
1867 define_xopen_source=yes
1869 # Arguments passed to configure.
1871 CONFIG_ARGS="$ac_configure_args"
1873 # Check whether --enable-universalsdk was given.
1874 if test "${enable_universalsdk+set}" = set; then
1875 enableval=$enable_universalsdk;
1876 case $enableval in
1877 yes)
1878 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1880 esac
1881 case $enableval in
1883 UNIVERSALSDK=
1884 enable_universalsdk=
1887 UNIVERSALSDK=$enableval
1889 esac
1891 else
1893 UNIVERSALSDK=
1894 enable_universalsdk=
1900 ARCH_RUN_32BIT=
1903 UNIVERSAL_ARCHS="32-bit"
1904 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1905 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1907 # Check whether --with-universal-archs was given.
1908 if test "${with_universal_archs+set}" = set; then
1909 withval=$with_universal_archs;
1910 { echo "$as_me:$LINENO: result: $withval" >&5
1911 echo "${ECHO_T}$withval" >&6; }
1912 UNIVERSAL_ARCHS="$withval"
1914 else
1916 { echo "$as_me:$LINENO: result: 32-bit" >&5
1917 echo "${ECHO_T}32-bit" >&6; }
1925 # Check whether --with-framework-name was given.
1926 if test "${with_framework_name+set}" = set; then
1927 withval=$with_framework_name;
1928 PYTHONFRAMEWORK=${withval}
1929 PYTHONFRAMEWORKDIR=${withval}.framework
1930 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1932 else
1934 PYTHONFRAMEWORK=Python
1935 PYTHONFRAMEWORKDIR=Python.framework
1936 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1940 # Check whether --enable-framework was given.
1941 if test "${enable_framework+set}" = set; then
1942 enableval=$enable_framework;
1943 case $enableval in
1944 yes)
1945 enableval=/Library/Frameworks
1946 esac
1947 case $enableval in
1949 PYTHONFRAMEWORK=
1950 PYTHONFRAMEWORKDIR=no-framework
1951 PYTHONFRAMEWORKPREFIX=
1952 PYTHONFRAMEWORKINSTALLDIR=
1953 FRAMEWORKINSTALLFIRST=
1954 FRAMEWORKINSTALLLAST=
1955 FRAMEWORKALTINSTALLFIRST=
1956 FRAMEWORKALTINSTALLLAST=
1957 if test "x${prefix}" = "xNONE"; then
1958 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1959 else
1960 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1962 enable_framework=
1965 PYTHONFRAMEWORKPREFIX=$enableval
1966 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1967 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1968 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1969 if test "$UNIVERSAL_ARCHS" = "all"
1970 then
1971 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1972 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1973 else
1974 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1975 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1978 if test "x${prefix}" = "xNONE" ; then
1979 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1980 else
1981 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1983 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1985 # Add files for Mac specific code to the list of output
1986 # files:
1987 ac_config_files="$ac_config_files Mac/Makefile"
1989 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1991 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1993 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1995 esac
1997 else
1999 PYTHONFRAMEWORK=
2000 PYTHONFRAMEWORKDIR=no-framework
2001 PYTHONFRAMEWORKPREFIX=
2002 PYTHONFRAMEWORKINSTALLDIR=
2003 FRAMEWORKINSTALLFIRST=
2004 FRAMEWORKINSTALLLAST=
2005 FRAMEWORKALTINSTALLFIRST=
2006 FRAMEWORKALTINSTALLLAST=
2007 if test "x${prefix}" = "xNONE" ; then
2008 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2009 else
2010 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2012 enable_framework=
2014 if test "$UNIVERSAL_ARCHS" = "all"
2015 then
2016 FRAMEWORKINSTALLLAST=update4wayuniversal
2017 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2033 ##AC_ARG_WITH(dyld,
2034 ## AC_HELP_STRING(--with-dyld,
2035 ## Use (OpenStep|Rhapsody) dynamic linker))
2037 # Set name for machine-dependent library files
2039 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2040 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2041 if test -z "$MACHDEP"
2042 then
2043 ac_sys_system=`uname -s`
2044 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2045 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2046 ac_sys_release=`uname -v`
2047 else
2048 ac_sys_release=`uname -r`
2050 ac_md_system=`echo $ac_sys_system |
2051 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2052 ac_md_release=`echo $ac_sys_release |
2053 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2054 MACHDEP="$ac_md_system$ac_md_release"
2056 case $MACHDEP in
2057 cygwin*) MACHDEP="cygwin";;
2058 darwin*) MACHDEP="darwin";;
2059 atheos*) MACHDEP="atheos";;
2060 irix646) MACHDEP="irix6";;
2061 '') MACHDEP="unknown";;
2062 esac
2065 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2066 # disable features if it is defined, without any means to access these
2067 # features as extensions. For these systems, we skip the definition of
2068 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2069 # some feature, make sure there is no alternative way to access this
2070 # feature. Also, when using wildcards, make sure you have verified the
2071 # need for not defining _XOPEN_SOURCE on all systems matching the
2072 # wildcard, and that the wildcard does not include future systems
2073 # (which may remove their limitations).
2074 case $ac_sys_system/$ac_sys_release in
2075 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2076 # even though select is a POSIX function. Reported by J. Ribbens.
2077 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2078 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2079 define_xopen_source=no
2080 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2081 # also defined. This can be overridden by defining _BSD_SOURCE
2082 # As this has a different meaning on Linux, only define it on OpenBSD
2084 cat >>confdefs.h <<\_ACEOF
2085 #define _BSD_SOURCE 1
2086 _ACEOF
2089 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2090 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2091 # Marc Recht
2092 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2093 define_xopen_source=no;;
2094 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2095 # of union __?sigval. Reported by Stuart Bishop.
2096 SunOS/5.6)
2097 define_xopen_source=no;;
2098 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2099 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2100 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2101 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2102 define_xopen_source=no;;
2103 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2104 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2105 SCO_SV/3.2)
2106 define_xopen_source=no;;
2107 # On FreeBSD 4, the math functions C89 does not cover are never defined
2108 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2109 FreeBSD/4.*)
2110 define_xopen_source=no;;
2111 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2112 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2113 # identifies itself as Darwin/7.*
2114 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2115 # disables platform specific features beyond repair.
2116 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2117 # has no effect, don't bother defining them
2118 Darwin/[6789].*)
2119 define_xopen_source=no;;
2120 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2121 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2122 # or has another value. By not (re)defining it, the defaults come in place.
2123 AIX/4)
2124 define_xopen_source=no;;
2125 AIX/5)
2126 if test `uname -r` -eq 1; then
2127 define_xopen_source=no
2130 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2131 # defining NI_NUMERICHOST.
2132 QNX/6.3.2)
2133 define_xopen_source=no
2136 esac
2138 if test $define_xopen_source = yes
2139 then
2140 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2141 # defined precisely as g++ defines it
2142 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2143 # compiler
2144 case $ac_sys_system/$ac_sys_release in
2145 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2147 cat >>confdefs.h <<\_ACEOF
2148 #define _XOPEN_SOURCE 500
2149 _ACEOF
2154 cat >>confdefs.h <<\_ACEOF
2155 #define _XOPEN_SOURCE 600
2156 _ACEOF
2159 esac
2161 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2162 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2163 # several APIs are not declared. Since this is also needed in some
2164 # cases for HP-UX, we define it globally.
2165 # except for Solaris 10, where it must not be defined,
2166 # as it implies XPG4.2
2167 case $ac_sys_system/$ac_sys_release in
2168 SunOS/5.10)
2172 cat >>confdefs.h <<\_ACEOF
2173 #define _XOPEN_SOURCE_EXTENDED 1
2174 _ACEOF
2177 esac
2180 cat >>confdefs.h <<\_ACEOF
2181 #define _POSIX_C_SOURCE 200112L
2182 _ACEOF
2188 # SGI compilers allow the specification of the both the ABI and the
2189 # ISA on the command line. Depending on the values of these switches,
2190 # different and often incompatable code will be generated.
2192 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2193 # thus supply support for various ABI/ISA combinations. The MACHDEP
2194 # variable is also adjusted.
2197 if test ! -z "$SGI_ABI"
2198 then
2199 CC="cc $SGI_ABI"
2200 LDFLAGS="$SGI_ABI $LDFLAGS"
2201 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2203 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2204 echo "${ECHO_T}$MACHDEP" >&6; }
2206 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2207 # it may influence the way we can build extensions, so distutils
2208 # needs to check it
2211 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2212 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2214 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2215 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2216 ac_sys_machine=`uname -m`
2217 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2218 echo "${ECHO_T}$ac_sys_machine" >&6; }
2220 # checks for alternative programs
2222 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2223 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2224 # just to get things to compile and link. Users are free to override OPT
2225 # when running configure or make. The build should not break if they do.
2226 # BASECFLAGS should generally not be messed with, however.
2228 # XXX shouldn't some/most/all of this code be merged with the stuff later
2229 # on that fiddles with OPT and BASECFLAGS?
2230 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2231 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2233 # Check whether --with-gcc was given.
2234 if test "${with_gcc+set}" = set; then
2235 withval=$with_gcc;
2236 case $withval in
2237 no) CC=${CC:-cc}
2238 without_gcc=yes;;
2239 yes) CC=gcc
2240 without_gcc=no;;
2241 *) CC=$withval
2242 without_gcc=$withval;;
2243 esac
2244 else
2246 case $ac_sys_system in
2247 AIX*) CC=cc_r
2248 without_gcc=;;
2249 Monterey*)
2250 RANLIB=:
2251 without_gcc=;;
2252 *) without_gcc=no;;
2253 esac
2256 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2257 echo "${ECHO_T}$without_gcc" >&6; }
2259 # If the user switches compilers, we can't believe the cache
2260 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2261 then
2262 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2263 (it is also a good idea to do 'make clean' before compiling)" >&5
2264 echo "$as_me: error: cached CC is different -- throw away $cache_file
2265 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2266 { (exit 1); exit 1; }; }
2269 ac_ext=c
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274 if test -n "$ac_tool_prefix"; then
2275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2276 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2296 done
2297 done
2298 IFS=$as_save_IFS
2302 CC=$ac_cv_prog_CC
2303 if test -n "$CC"; then
2304 { echo "$as_me:$LINENO: result: $CC" >&5
2305 echo "${ECHO_T}$CC" >&6; }
2306 else
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2313 if test -z "$ac_cv_prog_CC"; then
2314 ac_ct_CC=$CC
2315 # Extract the first word of "gcc", so it can be a program name with args.
2316 set dummy gcc; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_ac_ct_CC="gcc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2336 done
2337 done
2338 IFS=$as_save_IFS
2342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2343 if test -n "$ac_ct_CC"; then
2344 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2345 echo "${ECHO_T}$ac_ct_CC" >&6; }
2346 else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2351 if test "x$ac_ct_CC" = x; then
2352 CC=""
2353 else
2354 case $cross_compiling:$ac_tool_warned in
2355 yes:)
2356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2357 whose name does not start with the host triplet. If you think this
2358 configuration is useful to you, please write to autoconf@gnu.org." >&5
2359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2360 whose name does not start with the host triplet. If you think this
2361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2362 ac_tool_warned=yes ;;
2363 esac
2364 CC=$ac_ct_CC
2366 else
2367 CC="$ac_cv_prog_CC"
2370 if test -z "$CC"; then
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}cc; ac_word=$2
2374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_CC="${ac_tool_prefix}cc"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2393 done
2394 done
2395 IFS=$as_save_IFS
2399 CC=$ac_cv_prog_CC
2400 if test -n "$CC"; then
2401 { echo "$as_me:$LINENO: result: $CC" >&5
2402 echo "${ECHO_T}$CC" >&6; }
2403 else
2404 { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2411 if test -z "$CC"; then
2412 # Extract the first word of "cc", so it can be a program name with args.
2413 set dummy cc; ac_word=$2
2414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 else
2422 ac_prog_rejected=no
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2431 ac_prog_rejected=yes
2432 continue
2434 ac_cv_prog_CC="cc"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2438 done
2439 done
2440 IFS=$as_save_IFS
2442 if test $ac_prog_rejected = yes; then
2443 # We found a bogon in the path, so make sure we never use it.
2444 set dummy $ac_cv_prog_CC
2445 shift
2446 if test $# != 0; then
2447 # We chose a different compiler from the bogus one.
2448 # However, it has the same basename, so the bogon will be chosen
2449 # first if we set CC to just the basename; use the full file name.
2450 shift
2451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458 { echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6; }
2460 else
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2467 if test -z "$CC"; then
2468 if test -n "$ac_tool_prefix"; then
2469 for ac_prog in cl.exe
2471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475 if test "${ac_cv_prog_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2492 done
2493 done
2494 IFS=$as_save_IFS
2498 CC=$ac_cv_prog_CC
2499 if test -n "$CC"; then
2500 { echo "$as_me:$LINENO: result: $CC" >&5
2501 echo "${ECHO_T}$CC" >&6; }
2502 else
2503 { echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6; }
2508 test -n "$CC" && break
2509 done
2511 if test -z "$CC"; then
2512 ac_ct_CC=$CC
2513 for ac_prog in cl.exe
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522 if test -n "$ac_ct_CC"; then
2523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_CC="$ac_prog"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2536 done
2537 done
2538 IFS=$as_save_IFS
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2545 echo "${ECHO_T}$ac_ct_CC" >&6; }
2546 else
2547 { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2552 test -n "$ac_ct_CC" && break
2553 done
2555 if test "x$ac_ct_CC" = x; then
2556 CC=""
2557 else
2558 case $cross_compiling:$ac_tool_warned in
2559 yes:)
2560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2561 whose name does not start with the host triplet. If you think this
2562 configuration is useful to you, please write to autoconf@gnu.org." >&5
2563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2564 whose name does not start with the host triplet. If you think this
2565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2566 ac_tool_warned=yes ;;
2567 esac
2568 CC=$ac_ct_CC
2575 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: no acceptable C compiler found in \$PATH
2578 See \`config.log' for more details." >&2;}
2579 { (exit 1); exit 1; }; }
2581 # Provide some information about the compiler.
2582 echo "$as_me:$LINENO: checking for C compiler version" >&5
2583 ac_compiler=`set X $ac_compile; echo $2`
2584 { (ac_try="$ac_compiler --version >&5"
2585 case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588 esac
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_compiler --version >&5") 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }
2594 { (ac_try="$ac_compiler -v >&5"
2595 case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_compiler -v >&5") 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }
2604 { (ac_try="$ac_compiler -V >&5"
2605 case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608 esac
2609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610 (eval "$ac_compiler -V >&5") 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }
2615 cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h. */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2623 main ()
2627 return 0;
2629 _ACEOF
2630 ac_clean_files_save=$ac_clean_files
2631 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2632 # Try to create an executable without -o first, disregard a.out.
2633 # It will help us diagnose broken compilers, and finding out an intuition
2634 # of exeext.
2635 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2636 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2637 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2639 # List of possible output files, starting from the most likely.
2640 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2641 # only as a last resort. b.out is created by i960 compilers.
2642 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2644 # The IRIX 6 linker writes into existing files which may not be
2645 # executable, retaining their permissions. Remove them first so a
2646 # subsequent execution test works.
2647 ac_rmfiles=
2648 for ac_file in $ac_files
2650 case $ac_file in
2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2652 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2653 esac
2654 done
2655 rm -f $ac_rmfiles
2657 if { (ac_try="$ac_link_default"
2658 case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_link_default") 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; then
2667 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2668 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2669 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2670 # so that the user can short-circuit this test for compilers unknown to
2671 # Autoconf.
2672 for ac_file in $ac_files ''
2674 test -f "$ac_file" || continue
2675 case $ac_file in
2676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2678 [ab].out )
2679 # We found the default executable, but exeext='' is most
2680 # certainly right.
2681 break;;
2682 *.* )
2683 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2684 then :; else
2685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2687 # We set ac_cv_exeext here because the later test for it is not
2688 # safe: cross compilers may not add the suffix if given an `-o'
2689 # argument, so we may need to know it at that point already.
2690 # Even if this section looks crufty: it has the advantage of
2691 # actually working.
2692 break;;
2694 break;;
2695 esac
2696 done
2697 test "$ac_cv_exeext" = no && ac_cv_exeext=
2699 else
2700 ac_file=''
2703 { echo "$as_me:$LINENO: result: $ac_file" >&5
2704 echo "${ECHO_T}$ac_file" >&6; }
2705 if test -z "$ac_file"; then
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: C compiler cannot create executables
2712 See \`config.log' for more details." >&2;}
2713 { (exit 77); exit 77; }; }
2716 ac_exeext=$ac_cv_exeext
2718 # Check that the compiler produces executables we can run. If not, either
2719 # the compiler is broken, or we cross compile.
2720 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2721 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2722 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2723 # If not cross compiling, check that we can run a simple program.
2724 if test "$cross_compiling" != yes; then
2725 if { ac_try='./$ac_file'
2726 { (case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_try") 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 cross_compiling=no
2736 else
2737 if test "$cross_compiling" = maybe; then
2738 cross_compiling=yes
2739 else
2740 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2741 If you meant to cross compile, use \`--host'.
2742 See \`config.log' for more details." >&5
2743 echo "$as_me: error: cannot run C compiled programs.
2744 If you meant to cross compile, use \`--host'.
2745 See \`config.log' for more details." >&2;}
2746 { (exit 1); exit 1; }; }
2750 { echo "$as_me:$LINENO: result: yes" >&5
2751 echo "${ECHO_T}yes" >&6; }
2753 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2754 ac_clean_files=$ac_clean_files_save
2755 # Check that the compiler produces executables we can run. If not, either
2756 # the compiler is broken, or we cross compile.
2757 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2758 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2759 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2760 echo "${ECHO_T}$cross_compiling" >&6; }
2762 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2763 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2764 if { (ac_try="$ac_link"
2765 case "(($ac_try" in
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_link") 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; then
2774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2775 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2776 # work properly (i.e., refer to `conftest.exe'), while it won't with
2777 # `rm'.
2778 for ac_file in conftest.exe conftest conftest.*; do
2779 test -f "$ac_file" || continue
2780 case $ac_file in
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2783 break;;
2784 * ) break;;
2785 esac
2786 done
2787 else
2788 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2791 See \`config.log' for more details." >&2;}
2792 { (exit 1); exit 1; }; }
2795 rm -f conftest$ac_cv_exeext
2796 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2797 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2799 rm -f conftest.$ac_ext
2800 EXEEXT=$ac_cv_exeext
2801 ac_exeext=$EXEEXT
2802 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2803 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2804 if test "${ac_cv_objext+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2815 main ()
2819 return 0;
2821 _ACEOF
2822 rm -f conftest.o conftest.obj
2823 if { (ac_try="$ac_compile"
2824 case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827 esac
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_compile") 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; then
2833 for ac_file in conftest.o conftest.obj conftest.*; do
2834 test -f "$ac_file" || continue;
2835 case $ac_file in
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2837 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2838 break;;
2839 esac
2840 done
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2846 See \`config.log' for more details." >&5
2847 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2848 See \`config.log' for more details." >&2;}
2849 { (exit 1); exit 1; }; }
2852 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2854 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2855 echo "${ECHO_T}$ac_cv_objext" >&6; }
2856 OBJEXT=$ac_cv_objext
2857 ac_objext=$OBJEXT
2858 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2859 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2860 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2871 main ()
2873 #ifndef __GNUC__
2874 choke me
2875 #endif
2878 return 0;
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2883 case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2898 ac_compiler_gnu=yes
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 ac_compiler_gnu=no
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2910 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2911 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2912 GCC=`test $ac_compiler_gnu = yes && echo yes`
2913 ac_test_CFLAGS=${CFLAGS+set}
2914 ac_save_CFLAGS=$CFLAGS
2915 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2916 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2917 if test "${ac_cv_prog_cc_g+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920 ac_save_c_werror_flag=$ac_c_werror_flag
2921 ac_c_werror_flag=yes
2922 ac_cv_prog_cc_g=no
2923 CFLAGS="-g"
2924 cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h. */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2932 main ()
2936 return 0;
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2947 ac_status=$?
2948 grep -v '^ *+' conftest.er1 >conftest.err
2949 rm -f conftest.er1
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } && {
2953 test -z "$ac_c_werror_flag" ||
2954 test ! -s conftest.err
2955 } && test -s conftest.$ac_objext; then
2956 ac_cv_prog_cc_g=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 CFLAGS=""
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2970 main ()
2974 return 0;
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (ac_try="$ac_compile"
2979 case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>conftest.er1
2985 ac_status=$?
2986 grep -v '^ *+' conftest.er1 >conftest.err
2987 rm -f conftest.er1
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } && {
2991 test -z "$ac_c_werror_flag" ||
2992 test ! -s conftest.err
2993 } && test -s conftest.$ac_objext; then
2995 else
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 ac_c_werror_flag=$ac_save_c_werror_flag
3000 CFLAGS="-g"
3001 cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h. */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3009 main ()
3013 return 0;
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compile") 2>conftest.er1
3024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } && {
3030 test -z "$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3032 } && test -s conftest.$ac_objext; then
3033 ac_cv_prog_cc_g=yes
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_c_werror_flag=$ac_save_c_werror_flag
3050 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3051 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3052 if test "$ac_test_CFLAGS" = set; then
3053 CFLAGS=$ac_save_CFLAGS
3054 elif test $ac_cv_prog_cc_g = yes; then
3055 if test "$GCC" = yes; then
3056 CFLAGS="-g -O2"
3057 else
3058 CFLAGS="-g"
3060 else
3061 if test "$GCC" = yes; then
3062 CFLAGS="-O2"
3063 else
3064 CFLAGS=
3067 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3068 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_cc_c89+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072 ac_cv_prog_cc_c89=no
3073 ac_save_CC=$CC
3074 cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3080 #include <stdarg.h>
3081 #include <stdio.h>
3082 #include <sys/types.h>
3083 #include <sys/stat.h>
3084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3085 struct buf { int x; };
3086 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3087 static char *e (p, i)
3088 char **p;
3089 int i;
3091 return p[i];
3093 static char *f (char * (*g) (char **, int), char **p, ...)
3095 char *s;
3096 va_list v;
3097 va_start (v,p);
3098 s = g (p, va_arg (v,int));
3099 va_end (v);
3100 return s;
3103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3104 function prototypes and stuff, but not '\xHH' hex character constants.
3105 These don't provoke an error unfortunately, instead are silently treated
3106 as 'x'. The following induces an error, until -std is added to get
3107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3108 array size at least. It's necessary to write '\x00'==0 to get something
3109 that's true only with -std. */
3110 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3113 inside strings and character constants. */
3114 #define FOO(x) 'x'
3115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3117 int test (int i, double x);
3118 struct s1 {int (*f) (int a);};
3119 struct s2 {int (*f) (double a);};
3120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3121 int argc;
3122 char **argv;
3124 main ()
3126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3128 return 0;
3130 _ACEOF
3131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3134 CC="$ac_save_CC $ac_arg"
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 ac_cv_prog_cc_c89=$ac_arg
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3160 rm -f core conftest.err conftest.$ac_objext
3161 test "x$ac_cv_prog_cc_c89" != "xno" && break
3162 done
3163 rm -f conftest.$ac_ext
3164 CC=$ac_save_CC
3167 # AC_CACHE_VAL
3168 case "x$ac_cv_prog_cc_c89" in
3170 { echo "$as_me:$LINENO: result: none needed" >&5
3171 echo "${ECHO_T}none needed" >&6; } ;;
3172 xno)
3173 { echo "$as_me:$LINENO: result: unsupported" >&5
3174 echo "${ECHO_T}unsupported" >&6; } ;;
3176 CC="$CC $ac_cv_prog_cc_c89"
3177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3178 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3179 esac
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3192 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3194 # Check whether --with-cxx_main was given.
3195 if test "${with_cxx_main+set}" = set; then
3196 withval=$with_cxx_main;
3198 case $withval in
3199 no) with_cxx_main=no
3200 MAINCC='$(CC)';;
3201 yes) with_cxx_main=yes
3202 MAINCC='$(CXX)';;
3203 *) with_cxx_main=yes
3204 MAINCC=$withval
3205 if test -z "$CXX"
3206 then
3207 CXX=$withval
3208 fi;;
3209 esac
3210 else
3212 with_cxx_main=no
3213 MAINCC='$(CC)'
3217 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3218 echo "${ECHO_T}$with_cxx_main" >&6; }
3220 preset_cxx="$CXX"
3221 if test -z "$CXX"
3222 then
3223 case "$CC" in
3224 gcc) # Extract the first word of "g++", so it can be a program name with args.
3225 set dummy g++; ac_word=$2
3226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3228 if test "${ac_cv_path_CXX+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 case $CXX in
3232 [\\/]* | ?:[\\/]*)
3233 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in notfound
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3251 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3253 esac
3255 CXX=$ac_cv_path_CXX
3256 if test -n "$CXX"; then
3257 { echo "$as_me:$LINENO: result: $CXX" >&5
3258 echo "${ECHO_T}$CXX" >&6; }
3259 else
3260 { echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6; }
3265 cc) # Extract the first word of "c++", so it can be a program name with args.
3266 set dummy c++; ac_word=$2
3267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3269 if test "${ac_cv_path_CXX+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 case $CXX in
3273 [\\/]* | ?:[\\/]*)
3274 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in notfound
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3288 done
3289 done
3290 IFS=$as_save_IFS
3292 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3294 esac
3296 CXX=$ac_cv_path_CXX
3297 if test -n "$CXX"; then
3298 { echo "$as_me:$LINENO: result: $CXX" >&5
3299 echo "${ECHO_T}$CXX" >&6; }
3300 else
3301 { echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6; }
3306 esac
3307 if test "$CXX" = "notfound"
3308 then
3309 CXX=""
3312 if test -z "$CXX"
3313 then
3314 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3316 # Extract the first word of "$ac_prog", so it can be a program name with args.
3317 set dummy $ac_prog; ac_word=$2
3318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3320 if test "${ac_cv_prog_CXX+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 else
3323 if test -n "$CXX"; then
3324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3329 IFS=$as_save_IFS
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_prog_CXX="$ac_prog"
3334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3337 done
3338 done
3339 IFS=$as_save_IFS
3343 CXX=$ac_cv_prog_CXX
3344 if test -n "$CXX"; then
3345 { echo "$as_me:$LINENO: result: $CXX" >&5
3346 echo "${ECHO_T}$CXX" >&6; }
3347 else
3348 { echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6; }
3353 test -n "$CXX" && break
3354 done
3355 test -n "$CXX" || CXX="notfound"
3357 if test "$CXX" = "notfound"
3358 then
3359 CXX=""
3362 if test "$preset_cxx" != "$CXX"
3363 then
3364 { echo "$as_me:$LINENO: WARNING:
3366 By default, distutils will build C++ extension modules with \"$CXX\".
3367 If this is not intended, then set CXX on the configure command line.
3368 " >&5
3369 echo "$as_me: WARNING:
3371 By default, distutils will build C++ extension modules with \"$CXX\".
3372 If this is not intended, then set CXX on the configure command line.
3373 " >&2;}
3377 # checks for UNIX variants that set C preprocessor variables
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3385 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3386 # On Suns, sometimes $CPP names a directory.
3387 if test -n "$CPP" && test -d "$CPP"; then
3388 CPP=
3390 if test -z "$CPP"; then
3391 if test "${ac_cv_prog_CPP+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 # Double quotes because CPP needs to be expanded
3395 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3397 ac_preproc_ok=false
3398 for ac_c_preproc_warn_flag in '' yes
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #ifdef __STDC__
3413 # include <limits.h>
3414 #else
3415 # include <assert.h>
3416 #endif
3417 Syntax error
3418 _ACEOF
3419 if { (ac_try="$ac_cpp conftest.$ac_ext"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null && {
3432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3433 test ! -s conftest.err
3434 }; then
3436 else
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 # Broken: fails on valid input.
3441 continue
3444 rm -f conftest.err conftest.$ac_ext
3446 # OK, works on sane cases. Now check whether nonexistent headers
3447 # can be detected and how.
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #include <ac_nonexistent.h>
3455 _ACEOF
3456 if { (ac_try="$ac_cpp conftest.$ac_ext"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } >/dev/null && {
3469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3470 test ! -s conftest.err
3471 }; then
3472 # Broken: success on invalid input.
3473 continue
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 # Passes both tests.
3479 ac_preproc_ok=:
3480 break
3483 rm -f conftest.err conftest.$ac_ext
3485 done
3486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3487 rm -f conftest.err conftest.$ac_ext
3488 if $ac_preproc_ok; then
3489 break
3492 done
3493 ac_cv_prog_CPP=$CPP
3496 CPP=$ac_cv_prog_CPP
3497 else
3498 ac_cv_prog_CPP=$CPP
3500 { echo "$as_me:$LINENO: result: $CPP" >&5
3501 echo "${ECHO_T}$CPP" >&6; }
3502 ac_preproc_ok=false
3503 for ac_c_preproc_warn_flag in '' yes
3505 # Use a header file that comes with gcc, so configuring glibc
3506 # with a fresh cross-compiler works.
3507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3508 # <limits.h> exists even on freestanding compilers.
3509 # On the NeXT, cc -E runs the code through the compiler's parser,
3510 # not just through cpp. "Syntax error" is here to catch this case.
3511 cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h. */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #ifdef __STDC__
3518 # include <limits.h>
3519 #else
3520 # include <assert.h>
3521 #endif
3522 Syntax error
3523 _ACEOF
3524 if { (ac_try="$ac_cpp conftest.$ac_ext"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } >/dev/null && {
3537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3538 test ! -s conftest.err
3539 }; then
3541 else
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 # Broken: fails on valid input.
3546 continue
3549 rm -f conftest.err conftest.$ac_ext
3551 # OK, works on sane cases. Now check whether nonexistent headers
3552 # can be detected and how.
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <ac_nonexistent.h>
3560 _ACEOF
3561 if { (ac_try="$ac_cpp conftest.$ac_ext"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } >/dev/null && {
3574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3575 test ! -s conftest.err
3576 }; then
3577 # Broken: success on invalid input.
3578 continue
3579 else
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3583 # Passes both tests.
3584 ac_preproc_ok=:
3585 break
3588 rm -f conftest.err conftest.$ac_ext
3590 done
3591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3592 rm -f conftest.err conftest.$ac_ext
3593 if $ac_preproc_ok; then
3595 else
3596 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3597 See \`config.log' for more details." >&5
3598 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3599 See \`config.log' for more details." >&2;}
3600 { (exit 1); exit 1; }; }
3603 ac_ext=c
3604 ac_cpp='$CPP $CPPFLAGS'
3605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3611 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3612 if test "${ac_cv_path_GREP+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615 # Extract the first word of "grep ggrep" to use in msg output
3616 if test -z "$GREP"; then
3617 set dummy grep ggrep; ac_prog_name=$2
3618 if test "${ac_cv_path_GREP+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 ac_path_GREP_found=false
3622 # Loop through the user's path and test for each of PROGNAME-LIST
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_prog in grep ggrep; do
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3631 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3632 # Check for GNU ac_path_GREP and select it if it is found.
3633 # Check for GNU $ac_path_GREP
3634 case `"$ac_path_GREP" --version 2>&1` in
3635 *GNU*)
3636 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3638 ac_count=0
3639 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3640 while :
3642 cat "conftest.in" "conftest.in" >"conftest.tmp"
3643 mv "conftest.tmp" "conftest.in"
3644 cp "conftest.in" "conftest.nl"
3645 echo 'GREP' >> "conftest.nl"
3646 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3648 ac_count=`expr $ac_count + 1`
3649 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3650 # Best one so far, save it but keep looking for a better one
3651 ac_cv_path_GREP="$ac_path_GREP"
3652 ac_path_GREP_max=$ac_count
3654 # 10*(2^10) chars as input seems more than enough
3655 test $ac_count -gt 10 && break
3656 done
3657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3658 esac
3661 $ac_path_GREP_found && break 3
3662 done
3663 done
3665 done
3666 IFS=$as_save_IFS
3671 GREP="$ac_cv_path_GREP"
3672 if test -z "$GREP"; then
3673 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3674 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3675 { (exit 1); exit 1; }; }
3678 else
3679 ac_cv_path_GREP=$GREP
3684 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3685 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3686 GREP="$ac_cv_path_GREP"
3689 { echo "$as_me:$LINENO: checking for egrep" >&5
3690 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3691 if test "${ac_cv_path_EGREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3695 then ac_cv_path_EGREP="$GREP -E"
3696 else
3697 # Extract the first word of "egrep" to use in msg output
3698 if test -z "$EGREP"; then
3699 set dummy egrep; ac_prog_name=$2
3700 if test "${ac_cv_path_EGREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 ac_path_EGREP_found=false
3704 # Loop through the user's path and test for each of PROGNAME-LIST
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_prog in egrep; do
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3713 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3714 # Check for GNU ac_path_EGREP and select it if it is found.
3715 # Check for GNU $ac_path_EGREP
3716 case `"$ac_path_EGREP" --version 2>&1` in
3717 *GNU*)
3718 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3720 ac_count=0
3721 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3722 while :
3724 cat "conftest.in" "conftest.in" >"conftest.tmp"
3725 mv "conftest.tmp" "conftest.in"
3726 cp "conftest.in" "conftest.nl"
3727 echo 'EGREP' >> "conftest.nl"
3728 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3730 ac_count=`expr $ac_count + 1`
3731 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3732 # Best one so far, save it but keep looking for a better one
3733 ac_cv_path_EGREP="$ac_path_EGREP"
3734 ac_path_EGREP_max=$ac_count
3736 # 10*(2^10) chars as input seems more than enough
3737 test $ac_count -gt 10 && break
3738 done
3739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740 esac
3743 $ac_path_EGREP_found && break 3
3744 done
3745 done
3747 done
3748 IFS=$as_save_IFS
3753 EGREP="$ac_cv_path_EGREP"
3754 if test -z "$EGREP"; then
3755 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3756 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3757 { (exit 1); exit 1; }; }
3760 else
3761 ac_cv_path_EGREP=$EGREP
3767 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3768 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3769 EGREP="$ac_cv_path_EGREP"
3773 { echo "$as_me:$LINENO: checking for AIX" >&5
3774 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 #ifdef _AIX
3783 #endif
3785 _ACEOF
3786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3787 $EGREP "yes" >/dev/null 2>&1; then
3788 { echo "$as_me:$LINENO: result: yes" >&5
3789 echo "${ECHO_T}yes" >&6; }
3790 cat >>confdefs.h <<\_ACEOF
3791 #define _ALL_SOURCE 1
3792 _ACEOF
3794 else
3795 { echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6; }
3798 rm -f conftest*
3802 # Check for unsupported systems
3803 case $ac_sys_system/$ac_sys_release in
3804 atheos*|Linux*/1*)
3805 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3806 echo See README for details.
3807 exit 1;;
3808 esac
3811 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3812 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3814 # Check whether --with-suffix was given.
3815 if test "${with_suffix+set}" = set; then
3816 withval=$with_suffix;
3817 case $withval in
3818 no) EXEEXT=;;
3819 yes) EXEEXT=.exe;;
3820 *) EXEEXT=$withval;;
3821 esac
3824 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3825 echo "${ECHO_T}$EXEEXT" >&6; }
3827 # Test whether we're running on a non-case-sensitive system, in which
3828 # case we give a warning if no ext is given
3830 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3831 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3832 if test ! -d CaseSensitiveTestDir; then
3833 mkdir CaseSensitiveTestDir
3836 if test -d casesensitivetestdir
3837 then
3838 { echo "$as_me:$LINENO: result: yes" >&5
3839 echo "${ECHO_T}yes" >&6; }
3840 BUILDEXEEXT=.exe
3841 else
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3844 BUILDEXEEXT=$EXEEXT
3846 rmdir CaseSensitiveTestDir
3848 case $MACHDEP in
3849 bsdos*)
3850 case $CC in
3851 gcc) CC="$CC -D_HAVE_BSDI";;
3852 esac;;
3853 esac
3855 case $ac_sys_system in
3856 hp*|HP*)
3857 case $CC in
3858 cc|*/cc) CC="$CC -Ae";;
3859 esac;;
3860 Monterey*)
3861 case $CC in
3862 cc) CC="$CC -Wl,-Bexport";;
3863 esac;;
3864 SunOS*)
3865 # Some functions have a prototype only with that define, e.g. confstr
3867 cat >>confdefs.h <<\_ACEOF
3868 #define __EXTENSIONS__ 1
3869 _ACEOF
3872 esac
3876 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3877 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3878 if test -z "$LIBRARY"
3879 then
3880 LIBRARY='libpython$(VERSION).a'
3882 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3883 echo "${ECHO_T}$LIBRARY" >&6; }
3885 # LDLIBRARY is the name of the library to link against (as opposed to the
3886 # name of the library into which to insert object files). BLDLIBRARY is also
3887 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3888 # is blank as the main program is not linked directly against LDLIBRARY.
3889 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3890 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3891 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3892 # DLLLIBRARY is the shared (i.e., DLL) library.
3894 # RUNSHARED is used to run shared python without installed libraries
3896 # INSTSONAME is the name of the shared library that will be use to install
3897 # on the system - some systems like version suffix, others don't
3904 LDLIBRARY="$LIBRARY"
3905 BLDLIBRARY='$(LDLIBRARY)'
3906 INSTSONAME='$(LDLIBRARY)'
3907 DLLLIBRARY=''
3908 LDLIBRARYDIR=''
3909 RUNSHARED=''
3911 # LINKCC is the command that links the python executable -- default is $(CC).
3912 # If CXX is set, and if it is needed to link a main function that was
3913 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3914 # python might then depend on the C++ runtime
3915 # This is altered for AIX in order to build the export list before
3916 # linking.
3918 { echo "$as_me:$LINENO: checking LINKCC" >&5
3919 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3920 if test -z "$LINKCC"
3921 then
3922 LINKCC='$(PURIFY) $(MAINCC)'
3923 case $ac_sys_system in
3924 AIX*)
3925 exp_extra="\"\""
3926 if test $ac_sys_release -ge 5 -o \
3927 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3928 exp_extra="."
3930 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3931 Monterey64*)
3932 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3933 QNX*)
3934 # qcc must be used because the other compilers do not
3935 # support -N.
3936 LINKCC=qcc;;
3937 esac
3939 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3940 echo "${ECHO_T}$LINKCC" >&6; }
3942 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3943 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3944 # Check whether --enable-shared was given.
3945 if test "${enable_shared+set}" = set; then
3946 enableval=$enable_shared;
3950 if test -z "$enable_shared"
3951 then
3952 case $ac_sys_system in
3953 CYGWIN* | atheos*)
3954 enable_shared="yes";;
3956 enable_shared="no";;
3957 esac
3959 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3960 echo "${ECHO_T}$enable_shared" >&6; }
3962 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3963 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3964 # Check whether --enable-profiling was given.
3965 if test "${enable_profiling+set}" = set; then
3966 enableval=$enable_profiling; ac_save_cc="$CC"
3967 CC="$CC -pg"
3968 if test "$cross_compiling" = yes; then
3969 ac_enable_profiling="no"
3970 else
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 int main() { return 0; }
3978 _ACEOF
3979 rm -f conftest$ac_exeext
3980 if { (ac_try="$ac_link"
3981 case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984 esac
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_link") 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3990 { (case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_try") 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_enable_profiling="yes"
4000 else
4001 echo "$as_me: program exited with status $ac_status" >&5
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4005 ( exit $ac_status )
4006 ac_enable_profiling="no"
4008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4012 CC="$ac_save_cc"
4015 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4016 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4018 case "$ac_enable_profiling" in
4019 "yes")
4020 BASECFLAGS="-pg $BASECFLAGS"
4021 LDFLAGS="-pg $LDFLAGS"
4023 esac
4025 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4026 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4028 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4029 # library that we build, but we do not want to link against it (we
4030 # will find it with a -framework option). For this reason there is an
4031 # extra variable BLDLIBRARY against which Python and the extension
4032 # modules are linked, BLDLIBRARY. This is normally the same as
4033 # LDLIBRARY, but empty for MacOSX framework builds.
4034 if test "$enable_framework"
4035 then
4036 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4037 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4038 BLDLIBRARY=''
4039 else
4040 BLDLIBRARY='$(LDLIBRARY)'
4043 # Other platforms follow
4044 if test $enable_shared = "yes"; then
4046 cat >>confdefs.h <<\_ACEOF
4047 #define Py_ENABLE_SHARED 1
4048 _ACEOF
4050 case $ac_sys_system in
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 Darwin*)
4095 LDLIBRARY='libpython$(VERSION).dylib'
4096 BLDLIBRARY='-L. -lpython$(VERSION)'
4097 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4100 esac
4101 else # shared is disabled
4102 case $ac_sys_system in
4103 CYGWIN*)
4104 BLDLIBRARY='$(LIBRARY)'
4105 LDLIBRARY='libpython$(VERSION).dll.a'
4107 esac
4110 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4111 echo "${ECHO_T}$LDLIBRARY" >&6; }
4113 if test -n "$ac_tool_prefix"; then
4114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4115 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4118 if test "${ac_cv_prog_RANLIB+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 if test -n "$RANLIB"; then
4122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4135 done
4136 done
4137 IFS=$as_save_IFS
4141 RANLIB=$ac_cv_prog_RANLIB
4142 if test -n "$RANLIB"; then
4143 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4144 echo "${ECHO_T}$RANLIB" >&6; }
4145 else
4146 { echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6; }
4152 if test -z "$ac_cv_prog_RANLIB"; then
4153 ac_ct_RANLIB=$RANLIB
4154 # Extract the first word of "ranlib", so it can be a program name with args.
4155 set dummy ranlib; ac_word=$2
4156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 if test -n "$ac_ct_RANLIB"; then
4162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_ac_ct_RANLIB="ranlib"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4175 done
4176 done
4177 IFS=$as_save_IFS
4181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4182 if test -n "$ac_ct_RANLIB"; then
4183 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4184 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4185 else
4186 { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4190 if test "x$ac_ct_RANLIB" = x; then
4191 RANLIB=":"
4192 else
4193 case $cross_compiling:$ac_tool_warned in
4194 yes:)
4195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4196 whose name does not start with the host triplet. If you think this
4197 configuration is useful to you, please write to autoconf@gnu.org." >&5
4198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4199 whose name does not start with the host triplet. If you think this
4200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4201 ac_tool_warned=yes ;;
4202 esac
4203 RANLIB=$ac_ct_RANLIB
4205 else
4206 RANLIB="$ac_cv_prog_RANLIB"
4210 for ac_prog in ar aal
4212 # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy $ac_prog; ac_word=$2
4214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4216 if test "${ac_cv_prog_AR+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 if test -n "$AR"; then
4220 ac_cv_prog_AR="$AR" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_AR="$ac_prog"
4230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4233 done
4234 done
4235 IFS=$as_save_IFS
4239 AR=$ac_cv_prog_AR
4240 if test -n "$AR"; then
4241 { echo "$as_me:$LINENO: result: $AR" >&5
4242 echo "${ECHO_T}$AR" >&6; }
4243 else
4244 { echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6; }
4249 test -n "$AR" && break
4250 done
4251 test -n "$AR" || AR="ar"
4255 # Extract the first word of "svnversion", so it can be a program name with args.
4256 set dummy svnversion; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 if test -n "$SVNVERSION"; then
4263 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_SVNVERSION="found"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4276 done
4277 done
4278 IFS=$as_save_IFS
4280 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4283 SVNVERSION=$ac_cv_prog_SVNVERSION
4284 if test -n "$SVNVERSION"; then
4285 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4286 echo "${ECHO_T}$SVNVERSION" >&6; }
4287 else
4288 { echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6; }
4293 if test $SVNVERSION = found
4294 then
4295 SVNVERSION="svnversion \$(srcdir)"
4296 else
4297 SVNVERSION="echo exported"
4300 case $MACHDEP in
4301 bsdos*|hp*|HP*)
4302 # install -d does not work on BSDI or HP-UX
4303 if test -z "$INSTALL"
4304 then
4305 INSTALL="${srcdir}/install-sh -c"
4307 esac
4308 ac_aux_dir=
4309 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4310 if test -f "$ac_dir/install-sh"; then
4311 ac_aux_dir=$ac_dir
4312 ac_install_sh="$ac_aux_dir/install-sh -c"
4313 break
4314 elif test -f "$ac_dir/install.sh"; then
4315 ac_aux_dir=$ac_dir
4316 ac_install_sh="$ac_aux_dir/install.sh -c"
4317 break
4318 elif test -f "$ac_dir/shtool"; then
4319 ac_aux_dir=$ac_dir
4320 ac_install_sh="$ac_aux_dir/shtool install -c"
4321 break
4323 done
4324 if test -z "$ac_aux_dir"; then
4325 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4326 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4327 { (exit 1); exit 1; }; }
4330 # These three variables are undocumented and unsupported,
4331 # and are intended to be withdrawn in a future Autoconf release.
4332 # They can cause serious problems if a builder's source tree is in a directory
4333 # whose full name contains unusual characters.
4334 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4335 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4336 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4339 # Find a good install program. We prefer a C program (faster),
4340 # so one script is as good as another. But avoid the broken or
4341 # incompatible versions:
4342 # SysV /etc/install, /usr/sbin/install
4343 # SunOS /usr/etc/install
4344 # IRIX /sbin/install
4345 # AIX /bin/install
4346 # AmigaOS /C/install, which installs bootblocks on floppy discs
4347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4350 # OS/2's system install, which has a completely different semantic
4351 # ./install, which can be erroneously created by make from ./install.sh.
4352 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4353 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4354 if test -z "$INSTALL"; then
4355 if test "${ac_cv_path_install+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 # Account for people who put trailing slashes in PATH elements.
4364 case $as_dir/ in
4365 ./ | .// | /cC/* | \
4366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4367 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4368 /usr/ucb/* ) ;;
4370 # OSF1 and SCO ODT 3.0 have their own names for install.
4371 # Don't use installbsd from OSF since it installs stuff as root
4372 # by default.
4373 for ac_prog in ginstall scoinst install; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4376 if test $ac_prog = install &&
4377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4378 # AIX install. It has an incompatible calling convention.
4380 elif test $ac_prog = install &&
4381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4382 # program-specific install script used by HP pwplus--don't use.
4384 else
4385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4386 break 3
4389 done
4390 done
4392 esac
4393 done
4394 IFS=$as_save_IFS
4398 if test "${ac_cv_path_install+set}" = set; then
4399 INSTALL=$ac_cv_path_install
4400 else
4401 # As a last resort, use the slow shell script. Don't cache a
4402 # value for INSTALL within a source directory, because that will
4403 # break other packages using the cache if that directory is
4404 # removed, or if the value is a relative name.
4405 INSTALL=$ac_install_sh
4408 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4409 echo "${ECHO_T}$INSTALL" >&6; }
4411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4412 # It thinks the first close brace ends the variable substitution.
4413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4420 # Not every filesystem supports hard links
4422 if test -z "$LN" ; then
4423 case $ac_sys_system in
4424 CYGWIN*) LN="ln -s";;
4425 atheos*) LN="ln -s";;
4426 *) LN=ln;;
4427 esac
4430 # Check for --with-pydebug
4431 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4432 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4434 # Check whether --with-pydebug was given.
4435 if test "${with_pydebug+set}" = set; then
4436 withval=$with_pydebug;
4437 if test "$withval" != no
4438 then
4440 cat >>confdefs.h <<\_ACEOF
4441 #define Py_DEBUG 1
4442 _ACEOF
4444 { echo "$as_me:$LINENO: result: yes" >&5
4445 echo "${ECHO_T}yes" >&6; };
4446 Py_DEBUG='true'
4447 else { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4450 else
4451 { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4456 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4457 # merged with this chunk of code?
4459 # Optimizer/debugger flags
4460 # ------------------------
4461 # (The following bit of code is complicated enough - please keep things
4462 # indented properly. Just pretend you're editing Python code. ;-)
4464 # There are two parallel sets of case statements below, one that checks to
4465 # see if OPT was set and one that does BASECFLAGS setting based upon
4466 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4467 # user set OPT.
4469 # tweak OPT based on compiler and platform, only if the user didn't set
4470 # it on the command line
4472 if test -z "$OPT"
4473 then
4474 case $GCC in
4475 yes)
4476 if test "$CC" != 'g++' ; then
4477 STRICT_PROTO="-Wstrict-prototypes"
4479 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4480 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4481 WRAP="-fwrapv"
4483 case $ac_cv_prog_cc_g in
4484 yes)
4485 if test "$Py_DEBUG" = 'true' ; then
4486 # Optimization messes up debuggers, so turn it off for
4487 # debug builds.
4488 OPT="-g -Wall $STRICT_PROTO"
4489 else
4490 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4494 OPT="-O3 -Wall $STRICT_PROTO"
4496 esac
4497 case $ac_sys_system in
4498 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4500 esac
4504 OPT="-O"
4506 esac
4508 # The current (beta) Monterey compiler dies with optimizations
4509 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4510 case $ac_sys_system in
4511 Monterey*)
4512 OPT=""
4514 esac
4520 # The -arch flags for universal builds on OSX
4521 UNIVERSAL_ARCH_FLAGS=
4524 # tweak BASECFLAGS based on compiler and platform
4525 case $GCC in
4526 yes)
4527 # Python violates C99 rules, by casting between incompatible
4528 # pointer types. GCC may generate bad code as a result of that,
4529 # so use -fno-strict-aliasing if supported.
4530 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4531 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4532 ac_save_cc="$CC"
4533 CC="$CC -fno-strict-aliasing"
4534 if test "$cross_compiling" = yes; then
4535 ac_cv_no_strict_aliasing_ok=no
4536 else
4537 cat >conftest.$ac_ext <<_ACEOF
4538 /* confdefs.h. */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4543 int main() { return 0; }
4544 _ACEOF
4545 rm -f conftest$ac_exeext
4546 if { (ac_try="$ac_link"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_link") 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4556 { (case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559 esac
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_try") 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_no_strict_aliasing_ok=yes
4566 else
4567 echo "$as_me: program exited with status $ac_status" >&5
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 ( exit $ac_status )
4572 ac_cv_no_strict_aliasing_ok=no
4574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4578 CC="$ac_save_cc"
4579 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4580 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4581 if test $ac_cv_no_strict_aliasing_ok = yes
4582 then
4583 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4586 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4587 # support. Without this, treatment of subnormals doesn't follow
4588 # the standard.
4589 case $ac_sys_machine in
4590 alpha*)
4591 BASECFLAGS="$BASECFLAGS -mieee"
4593 esac
4595 case $ac_sys_system in
4596 SCO_SV*)
4597 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4599 # is there any other compiler on Darwin besides gcc?
4600 Darwin*)
4601 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4602 # used to be here, but non-Apple gcc doesn't accept them.
4605 if test "${enable_universalsdk}"; then
4606 UNIVERSAL_ARCH_FLAGS=""
4607 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4608 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4609 ARCH_RUN_32BIT=""
4611 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4612 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4614 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4615 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4616 ARCH_RUN_32BIT="arch -i386 -ppc"
4618 else
4619 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4620 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4621 { (exit 1); exit 1; }; }
4626 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4627 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4628 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4629 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4633 # Calculate the right deployment target for this build.
4635 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4636 if test ${cur_target} '>' 10.2; then
4637 cur_target=10.3
4639 if test "${UNIVERSAL_ARCHS}" = "all"; then
4640 # Ensure that the default platform for a 4-way
4641 # universal build is OSX 10.5, that's the first
4642 # OS release where 4-way builds make sense.
4643 cur_target='10.5'
4645 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4647 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4648 # environment with a value that is the same as what we'll use
4649 # in the Makefile to ensure that we'll get the same compiler
4650 # environment during configure and build time.
4651 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4652 export MACOSX_DEPLOYMENT_TARGET
4653 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4656 OSF*)
4657 BASECFLAGS="$BASECFLAGS -mieee"
4659 esac
4663 case $ac_sys_system in
4664 OpenUNIX*|UnixWare*)
4665 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4667 OSF*)
4668 BASECFLAGS="$BASECFLAGS -ieee -std"
4670 SCO_SV*)
4671 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4673 esac
4675 esac
4677 if test "$Py_DEBUG" = 'true'; then
4679 else
4680 OPT="-DNDEBUG $OPT"
4683 if test "$ac_arch_flags"
4684 then
4685 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4688 # disable check for icc since it seems to pass, but generates a warning
4689 if test "$CC" = icc
4690 then
4691 ac_cv_opt_olimit_ok=no
4694 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4695 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4696 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 ac_save_cc="$CC"
4700 CC="$CC -OPT:Olimit=0"
4701 if test "$cross_compiling" = yes; then
4702 ac_cv_opt_olimit_ok=no
4703 else
4704 cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h. */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 int main() { return 0; }
4711 _ACEOF
4712 rm -f conftest$ac_exeext
4713 if { (ac_try="$ac_link"
4714 case "(($ac_try" in
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4717 esac
4718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719 (eval "$ac_link") 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4723 { (case "(($ac_try" in
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4726 esac
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728 (eval "$ac_try") 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_opt_olimit_ok=yes
4733 else
4734 echo "$as_me: program exited with status $ac_status" >&5
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4738 ( exit $ac_status )
4739 ac_cv_opt_olimit_ok=no
4741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4745 CC="$ac_save_cc"
4748 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4749 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4750 if test $ac_cv_opt_olimit_ok = yes; then
4751 case $ac_sys_system in
4752 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4753 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4754 # environment?
4755 Darwin*)
4758 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4760 esac
4761 else
4762 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4763 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4764 if test "${ac_cv_olimit_ok+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 ac_save_cc="$CC"
4768 CC="$CC -Olimit 1500"
4769 if test "$cross_compiling" = yes; then
4770 ac_cv_olimit_ok=no
4771 else
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. */
4778 int main() { return 0; }
4779 _ACEOF
4780 rm -f conftest$ac_exeext
4781 if { (ac_try="$ac_link"
4782 case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4785 esac
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_link") 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 ac_cv_olimit_ok=yes
4801 else
4802 echo "$as_me: program exited with status $ac_status" >&5
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 ( exit $ac_status )
4807 ac_cv_olimit_ok=no
4809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4813 CC="$ac_save_cc"
4816 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4817 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4818 if test $ac_cv_olimit_ok = yes; then
4819 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4823 # Check whether GCC supports PyArg_ParseTuple format
4824 if test "$GCC" = "yes"
4825 then
4826 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4827 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4828 save_CFLAGS=$CFLAGS
4829 CFLAGS="$CFLAGS -Werror"
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4837 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4840 main ()
4844 return 0;
4846 _ACEOF
4847 rm -f conftest.$ac_objext
4848 if { (ac_try="$ac_compile"
4849 case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852 esac
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4865 cat >>confdefs.h <<\_ACEOF
4866 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4867 _ACEOF
4869 { echo "$as_me:$LINENO: result: yes" >&5
4870 echo "${ECHO_T}yes" >&6; }
4871 else
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 CFLAGS=$save_CFLAGS
4884 # On some compilers, pthreads are available without further options
4885 # (e.g. MacOS X). On some of these systems, the compiler will not
4886 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4887 # So we have to see first whether pthreads are available without
4888 # options before we can check whether -Kpthread improves anything.
4889 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4890 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4891 if test "${ac_cv_pthread_is_default+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894 if test "$cross_compiling" = yes; then
4895 ac_cv_pthread_is_default=no
4896 else
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4904 #include <pthread.h>
4906 void* routine(void* p){return NULL;}
4908 int main(){
4909 pthread_t p;
4910 if(pthread_create(&p,NULL,routine,NULL)!=0)
4911 return 1;
4912 (void)pthread_detach(p);
4913 return 0;
4916 _ACEOF
4917 rm -f conftest$ac_exeext
4918 if { (ac_try="$ac_link"
4919 case "(($ac_try" in
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4922 esac
4923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4924 (eval "$ac_link") 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4928 { (case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931 esac
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_try") 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4938 ac_cv_pthread_is_default=yes
4939 ac_cv_kthread=no
4940 ac_cv_pthread=no
4942 else
4943 echo "$as_me: program exited with status $ac_status" >&5
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ( exit $ac_status )
4948 ac_cv_pthread_is_default=no
4950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4957 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4958 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4961 if test $ac_cv_pthread_is_default = yes
4962 then
4963 ac_cv_kpthread=no
4964 else
4965 # -Kpthread, if available, provides the right #defines
4966 # and linker options to make pthread_create available
4967 # Some compilers won't report that they do not support -Kpthread,
4968 # so we need to run a program to see whether it really made the
4969 # function available.
4970 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4971 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4972 if test "${ac_cv_kpthread+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 ac_save_cc="$CC"
4976 CC="$CC -Kpthread"
4977 if test "$cross_compiling" = yes; then
4978 ac_cv_kpthread=no
4979 else
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 #include <pthread.h>
4989 void* routine(void* p){return NULL;}
4991 int main(){
4992 pthread_t p;
4993 if(pthread_create(&p,NULL,routine,NULL)!=0)
4994 return 1;
4995 (void)pthread_detach(p);
4996 return 0;
4999 _ACEOF
5000 rm -f conftest$ac_exeext
5001 if { (ac_try="$ac_link"
5002 case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_link") 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5011 { (case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014 esac
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_try") 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_kpthread=yes
5021 else
5022 echo "$as_me: program exited with status $ac_status" >&5
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5026 ( exit $ac_status )
5027 ac_cv_kpthread=no
5029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5033 CC="$ac_save_cc"
5036 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5037 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5040 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5041 then
5042 # -Kthread, if available, provides the right #defines
5043 # and linker options to make pthread_create available
5044 # Some compilers won't report that they do not support -Kthread,
5045 # so we need to run a program to see whether it really made the
5046 # function available.
5047 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5048 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5049 if test "${ac_cv_kthread+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 ac_save_cc="$CC"
5053 CC="$CC -Kthread"
5054 if test "$cross_compiling" = yes; then
5055 ac_cv_kthread=no
5056 else
5057 cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h. */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5064 #include <pthread.h>
5066 void* routine(void* p){return NULL;}
5068 int main(){
5069 pthread_t p;
5070 if(pthread_create(&p,NULL,routine,NULL)!=0)
5071 return 1;
5072 (void)pthread_detach(p);
5073 return 0;
5076 _ACEOF
5077 rm -f conftest$ac_exeext
5078 if { (ac_try="$ac_link"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_link") 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5088 { (case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5091 esac
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_try") 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_cv_kthread=yes
5098 else
5099 echo "$as_me: program exited with status $ac_status" >&5
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 ( exit $ac_status )
5104 ac_cv_kthread=no
5106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5110 CC="$ac_save_cc"
5113 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5114 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5117 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5118 then
5119 # -pthread, if available, provides the right #defines
5120 # and linker options to make pthread_create available
5121 # Some compilers won't report that they do not support -pthread,
5122 # so we need to run a program to see whether it really made the
5123 # function available.
5124 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5125 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5126 if test "${ac_cv_thread+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 ac_save_cc="$CC"
5130 CC="$CC -pthread"
5131 if test "$cross_compiling" = yes; then
5132 ac_cv_pthread=no
5133 else
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5141 #include <pthread.h>
5143 void* routine(void* p){return NULL;}
5145 int main(){
5146 pthread_t p;
5147 if(pthread_create(&p,NULL,routine,NULL)!=0)
5148 return 1;
5149 (void)pthread_detach(p);
5150 return 0;
5153 _ACEOF
5154 rm -f conftest$ac_exeext
5155 if { (ac_try="$ac_link"
5156 case "(($ac_try" in
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_link") 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5165 { (case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_try") 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 ac_cv_pthread=yes
5175 else
5176 echo "$as_me: program exited with status $ac_status" >&5
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5180 ( exit $ac_status )
5181 ac_cv_pthread=no
5183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5187 CC="$ac_save_cc"
5190 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5191 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5194 # If we have set a CC compiler flag for thread support then
5195 # check if it works for CXX, too.
5196 ac_cv_cxx_thread=no
5197 if test ! -z "$CXX"
5198 then
5199 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5200 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5201 ac_save_cxx="$CXX"
5203 if test "$ac_cv_kpthread" = "yes"
5204 then
5205 CXX="$CXX -Kpthread"
5206 ac_cv_cxx_thread=yes
5207 elif test "$ac_cv_kthread" = "yes"
5208 then
5209 CXX="$CXX -Kthread"
5210 ac_cv_cxx_thread=yes
5211 elif test "$ac_cv_pthread" = "yes"
5212 then
5213 CXX="$CXX -pthread"
5214 ac_cv_cxx_thread=yes
5217 if test $ac_cv_cxx_thread = yes
5218 then
5219 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5220 $CXX -c conftest.$ac_ext 2>&5
5221 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5222 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5223 then
5224 ac_cv_cxx_thread=yes
5225 else
5226 ac_cv_cxx_thread=no
5228 rm -fr conftest*
5230 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5231 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5233 CXX="$ac_save_cxx"
5236 # checks for header files
5237 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5238 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5239 if test "${ac_cv_header_stdc+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 #include <stdlib.h>
5249 #include <stdarg.h>
5250 #include <string.h>
5251 #include <float.h>
5254 main ()
5258 return 0;
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (ac_try="$ac_compile"
5263 case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266 esac
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_compile") 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && {
5275 test -z "$ac_c_werror_flag" ||
5276 test ! -s conftest.err
5277 } && test -s conftest.$ac_objext; then
5278 ac_cv_header_stdc=yes
5279 else
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5283 ac_cv_header_stdc=no
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 if test $ac_cv_header_stdc = yes; then
5289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 #include <string.h>
5298 _ACEOF
5299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300 $EGREP "memchr" >/dev/null 2>&1; then
5302 else
5303 ac_cv_header_stdc=no
5305 rm -f conftest*
5309 if test $ac_cv_header_stdc = yes; then
5310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5311 cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h. */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 #include <stdlib.h>
5319 _ACEOF
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321 $EGREP "free" >/dev/null 2>&1; then
5323 else
5324 ac_cv_header_stdc=no
5326 rm -f conftest*
5330 if test $ac_cv_header_stdc = yes; then
5331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5332 if test "$cross_compiling" = yes; then
5334 else
5335 cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 #include <ctype.h>
5342 #include <stdlib.h>
5343 #if ((' ' & 0x0FF) == 0x020)
5344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5346 #else
5347 # define ISLOWER(c) \
5348 (('a' <= (c) && (c) <= 'i') \
5349 || ('j' <= (c) && (c) <= 'r') \
5350 || ('s' <= (c) && (c) <= 'z'))
5351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5352 #endif
5354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5356 main ()
5358 int i;
5359 for (i = 0; i < 256; i++)
5360 if (XOR (islower (i), ISLOWER (i))
5361 || toupper (i) != TOUPPER (i))
5362 return 2;
5363 return 0;
5365 _ACEOF
5366 rm -f conftest$ac_exeext
5367 if { (ac_try="$ac_link"
5368 case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5371 esac
5372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373 (eval "$ac_link") 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5377 { (case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_try") 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5387 else
5388 echo "$as_me: program exited with status $ac_status" >&5
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 ( exit $ac_status )
5393 ac_cv_header_stdc=no
5395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5401 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5402 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5403 if test $ac_cv_header_stdc = yes; then
5405 cat >>confdefs.h <<\_ACEOF
5406 #define STDC_HEADERS 1
5407 _ACEOF
5411 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5421 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5422 inttypes.h stdint.h unistd.h
5424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h. */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5438 #include <$ac_header>
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (ac_try="$ac_compile"
5442 case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_compile") 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_c_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest.$ac_objext; then
5457 eval "$as_ac_Header=yes"
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 eval "$as_ac_Header=no"
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 ac_res=`eval echo '${'$as_ac_Header'}'`
5468 { echo "$as_me:$LINENO: result: $ac_res" >&5
5469 echo "${ECHO_T}$ac_res" >&6; }
5470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5471 cat >>confdefs.h <<_ACEOF
5472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473 _ACEOF
5477 done
5534 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5535 fcntl.h grp.h \
5536 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5537 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5538 unistd.h utime.h \
5539 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5540 sys/lock.h sys/mkdev.h sys/modem.h \
5541 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5542 sys/termio.h sys/time.h \
5543 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5544 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5545 bluetooth/bluetooth.h linux/tipc.h
5547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_res=`eval echo '${'$as_ac_Header'}'`
5555 { echo "$as_me:$LINENO: result: $ac_res" >&5
5556 echo "${ECHO_T}$ac_res" >&6; }
5557 else
5558 # Is the header compilable?
5559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 #include <$ac_header>
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5572 case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5587 ac_header_compiler=yes
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5592 ac_header_compiler=no
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5597 echo "${ECHO_T}$ac_header_compiler" >&6; }
5599 # Is the header present?
5600 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 #include <$ac_header>
5609 _ACEOF
5610 if { (ac_try="$ac_cpp conftest.$ac_ext"
5611 case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614 esac
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } >/dev/null && {
5623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 }; then
5626 ac_header_preproc=yes
5627 else
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5631 ac_header_preproc=no
5634 rm -f conftest.err conftest.$ac_ext
5635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5636 echo "${ECHO_T}$ac_header_preproc" >&6; }
5638 # So? What about this header?
5639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5640 yes:no: )
5641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5645 ac_header_preproc=yes
5647 no:yes:* )
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5660 ( cat <<\_ASBOX
5661 ## ------------------------------------------------ ##
5662 ## Report this to http://www.python.org/python-bugs ##
5663 ## ------------------------------------------------ ##
5664 _ASBOX
5665 ) | sed "s/^/$as_me: WARNING: /" >&2
5667 esac
5668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 eval "$as_ac_Header=\$ac_header_preproc"
5675 ac_res=`eval echo '${'$as_ac_Header'}'`
5676 { echo "$as_me:$LINENO: result: $ac_res" >&5
5677 echo "${ECHO_T}$ac_res" >&6; }
5680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5681 cat >>confdefs.h <<_ACEOF
5682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5683 _ACEOF
5687 done
5694 ac_header_dirent=no
5695 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5696 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5697 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5698 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 #include <sys/types.h>
5709 #include <$ac_hdr>
5712 main ()
5714 if ((DIR *) 0)
5715 return 0;
5717 return 0;
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5722 case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.$ac_objext; then
5737 eval "$as_ac_Header=yes"
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 eval "$as_ac_Header=no"
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 ac_res=`eval echo '${'$as_ac_Header'}'`
5748 { echo "$as_me:$LINENO: result: $ac_res" >&5
5749 echo "${ECHO_T}$ac_res" >&6; }
5750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5751 cat >>confdefs.h <<_ACEOF
5752 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5753 _ACEOF
5755 ac_header_dirent=$ac_hdr; break
5758 done
5759 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5760 if test $ac_header_dirent = dirent.h; then
5761 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5762 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5763 if test "${ac_cv_search_opendir+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766 ac_func_search_save_LIBS=$LIBS
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h. */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5774 /* Override any GCC internal prototype to avoid an error.
5775 Use char because int might match the return type of a GCC
5776 builtin and then its argument prototype would still apply. */
5777 #ifdef __cplusplus
5778 extern "C"
5779 #endif
5780 char opendir ();
5782 main ()
5784 return opendir ();
5786 return 0;
5788 _ACEOF
5789 for ac_lib in '' dir; do
5790 if test -z "$ac_lib"; then
5791 ac_res="none required"
5792 else
5793 ac_res=-l$ac_lib
5794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5796 rm -f conftest.$ac_objext conftest$ac_exeext
5797 if { (ac_try="$ac_link"
5798 case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801 esac
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_link") 2>conftest.er1
5804 ac_status=$?
5805 grep -v '^ *+' conftest.er1 >conftest.err
5806 rm -f conftest.er1
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && {
5810 test -z "$ac_c_werror_flag" ||
5811 test ! -s conftest.err
5812 } && test -s conftest$ac_exeext &&
5813 $as_test_x conftest$ac_exeext; then
5814 ac_cv_search_opendir=$ac_res
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5823 conftest$ac_exeext
5824 if test "${ac_cv_search_opendir+set}" = set; then
5825 break
5827 done
5828 if test "${ac_cv_search_opendir+set}" = set; then
5830 else
5831 ac_cv_search_opendir=no
5833 rm conftest.$ac_ext
5834 LIBS=$ac_func_search_save_LIBS
5836 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5837 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5838 ac_res=$ac_cv_search_opendir
5839 if test "$ac_res" != no; then
5840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5844 else
5845 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5846 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5847 if test "${ac_cv_search_opendir+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850 ac_func_search_save_LIBS=$LIBS
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5858 /* Override any GCC internal prototype to avoid an error.
5859 Use char because int might match the return type of a GCC
5860 builtin and then its argument prototype would still apply. */
5861 #ifdef __cplusplus
5862 extern "C"
5863 #endif
5864 char opendir ();
5866 main ()
5868 return opendir ();
5870 return 0;
5872 _ACEOF
5873 for ac_lib in '' x; do
5874 if test -z "$ac_lib"; then
5875 ac_res="none required"
5876 else
5877 ac_res=-l$ac_lib
5878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (ac_try="$ac_link"
5882 case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_link") 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest$ac_exeext &&
5897 $as_test_x conftest$ac_exeext; then
5898 ac_cv_search_opendir=$ac_res
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5907 conftest$ac_exeext
5908 if test "${ac_cv_search_opendir+set}" = set; then
5909 break
5911 done
5912 if test "${ac_cv_search_opendir+set}" = set; then
5914 else
5915 ac_cv_search_opendir=no
5917 rm conftest.$ac_ext
5918 LIBS=$ac_func_search_save_LIBS
5920 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5921 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5922 ac_res=$ac_cv_search_opendir
5923 if test "$ac_res" != no; then
5924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5930 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5931 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5932 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <sys/types.h>
5943 main ()
5945 return makedev(0, 0);
5947 return 0;
5949 _ACEOF
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (ac_try="$ac_link"
5952 case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_link") 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest$ac_exeext &&
5967 $as_test_x conftest$ac_exeext; then
5968 ac_cv_header_sys_types_h_makedev=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_cv_header_sys_types_h_makedev=no
5976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5977 conftest$ac_exeext conftest.$ac_ext
5980 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5981 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5983 if test $ac_cv_header_sys_types_h_makedev = no; then
5984 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5985 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5986 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5987 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5991 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5992 else
5993 # Is the header compilable?
5994 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5995 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 $ac_includes_default
6003 #include <sys/mkdev.h>
6004 _ACEOF
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.$ac_objext; then
6022 ac_header_compiler=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_header_compiler=no
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6032 echo "${ECHO_T}$ac_header_compiler" >&6; }
6034 # Is the header present?
6035 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6036 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6037 cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h. */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #include <sys/mkdev.h>
6044 _ACEOF
6045 if { (ac_try="$ac_cpp conftest.$ac_ext"
6046 case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev/null && {
6058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 }; then
6061 ac_header_preproc=yes
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 ac_header_preproc=no
6069 rm -f conftest.err conftest.$ac_ext
6070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6071 echo "${ECHO_T}$ac_header_preproc" >&6; }
6073 # So? What about this header?
6074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6075 yes:no: )
6076 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6077 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6079 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6080 ac_header_preproc=yes
6082 no:yes:* )
6083 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6084 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6086 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6087 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6088 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6090 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6092 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6094 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6095 ( cat <<\_ASBOX
6096 ## ------------------------------------------------ ##
6097 ## Report this to http://www.python.org/python-bugs ##
6098 ## ------------------------------------------------ ##
6099 _ASBOX
6100 ) | sed "s/^/$as_me: WARNING: /" >&2
6102 esac
6103 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6104 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6105 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6110 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6111 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6114 if test $ac_cv_header_sys_mkdev_h = yes; then
6116 cat >>confdefs.h <<\_ACEOF
6117 #define MAJOR_IN_MKDEV 1
6118 _ACEOF
6124 if test $ac_cv_header_sys_mkdev_h = no; then
6125 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6126 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6127 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6128 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6132 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6133 else
6134 # Is the header compilable?
6135 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6136 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h. */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 $ac_includes_default
6144 #include <sys/sysmacros.h>
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6148 case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.$ac_objext; then
6163 ac_header_compiler=yes
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 ac_header_compiler=no
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6173 echo "${ECHO_T}$ac_header_compiler" >&6; }
6175 # Is the header present?
6176 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6177 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <sys/sysmacros.h>
6185 _ACEOF
6186 if { (ac_try="$ac_cpp conftest.$ac_ext"
6187 case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } >/dev/null && {
6199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 }; then
6202 ac_header_preproc=yes
6203 else
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 ac_header_preproc=no
6210 rm -f conftest.err conftest.$ac_ext
6211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6212 echo "${ECHO_T}$ac_header_preproc" >&6; }
6214 # So? What about this header?
6215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6216 yes:no: )
6217 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6218 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6220 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6221 ac_header_preproc=yes
6223 no:yes:* )
6224 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6225 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6227 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6229 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6231 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6232 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6233 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6235 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6236 ( cat <<\_ASBOX
6237 ## ------------------------------------------------ ##
6238 ## Report this to http://www.python.org/python-bugs ##
6239 ## ------------------------------------------------ ##
6240 _ASBOX
6241 ) | sed "s/^/$as_me: WARNING: /" >&2
6243 esac
6244 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6245 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6246 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6252 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6255 if test $ac_cv_header_sys_sysmacros_h = yes; then
6257 cat >>confdefs.h <<\_ACEOF
6258 #define MAJOR_IN_SYSMACROS 1
6259 _ACEOF
6268 # On Solaris, term.h requires curses.h
6270 for ac_header in term.h
6272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h. */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6285 #ifdef HAVE_CURSES_H
6286 #include <curses.h>
6287 #endif
6290 #include <$ac_header>
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (ac_try="$ac_compile"
6294 case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297 esac
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_compile") 2>conftest.er1
6300 ac_status=$?
6301 grep -v '^ *+' conftest.er1 >conftest.err
6302 rm -f conftest.er1
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } && {
6306 test -z "$ac_c_werror_flag" ||
6307 test ! -s conftest.err
6308 } && test -s conftest.$ac_objext; then
6309 eval "$as_ac_Header=yes"
6310 else
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 eval "$as_ac_Header=no"
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 ac_res=`eval echo '${'$as_ac_Header'}'`
6320 { echo "$as_me:$LINENO: result: $ac_res" >&5
6321 echo "${ECHO_T}$ac_res" >&6; }
6322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6323 cat >>confdefs.h <<_ACEOF
6324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6325 _ACEOF
6329 done
6332 # On Linux, netlink.h requires asm/types.h
6334 for ac_header in linux/netlink.h
6336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 else
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h. */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6349 #ifdef HAVE_ASM_TYPES_H
6350 #include <asm/types.h>
6351 #endif
6352 #ifdef HAVE_SYS_SOCKET_H
6353 #include <sys/socket.h>
6354 #endif
6357 #include <$ac_header>
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (ac_try="$ac_compile"
6361 case "(($ac_try" in
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6364 esac
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6367 ac_status=$?
6368 grep -v '^ *+' conftest.er1 >conftest.err
6369 rm -f conftest.er1
6370 cat conftest.err >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.$ac_objext; then
6376 eval "$as_ac_Header=yes"
6377 else
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 eval "$as_ac_Header=no"
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 ac_res=`eval echo '${'$as_ac_Header'}'`
6387 { echo "$as_me:$LINENO: result: $ac_res" >&5
6388 echo "${ECHO_T}$ac_res" >&6; }
6389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6390 cat >>confdefs.h <<_ACEOF
6391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6392 _ACEOF
6396 done
6399 # checks for typedefs
6400 was_it_defined=no
6401 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6402 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h. */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 #include <time.h>
6411 _ACEOF
6412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 $EGREP "clock_t" >/dev/null 2>&1; then
6414 was_it_defined=yes
6415 else
6418 cat >>confdefs.h <<\_ACEOF
6419 #define clock_t long
6420 _ACEOF
6424 rm -f conftest*
6426 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6427 echo "${ECHO_T}$was_it_defined" >&6; }
6429 # Check whether using makedev requires defining _OSF_SOURCE
6430 { echo "$as_me:$LINENO: checking for makedev" >&5
6431 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <sys/types.h>
6440 main ()
6442 makedev(0, 0)
6444 return 0;
6446 _ACEOF
6447 rm -f conftest.$ac_objext conftest$ac_exeext
6448 if { (ac_try="$ac_link"
6449 case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452 esac
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_link") 2>conftest.er1
6455 ac_status=$?
6456 grep -v '^ *+' conftest.er1 >conftest.err
6457 rm -f conftest.er1
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } && {
6461 test -z "$ac_c_werror_flag" ||
6462 test ! -s conftest.err
6463 } && test -s conftest$ac_exeext &&
6464 $as_test_x conftest$ac_exeext; then
6465 ac_cv_has_makedev=yes
6466 else
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6470 ac_cv_has_makedev=no
6473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6474 conftest$ac_exeext conftest.$ac_ext
6475 if test "$ac_cv_has_makedev" = "no"; then
6476 # we didn't link, try if _OSF_SOURCE will allow us to link
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6484 #define _OSF_SOURCE 1
6485 #include <sys/types.h>
6488 main ()
6490 makedev(0, 0)
6492 return 0;
6494 _ACEOF
6495 rm -f conftest.$ac_objext conftest$ac_exeext
6496 if { (ac_try="$ac_link"
6497 case "(($ac_try" in
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6500 esac
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_link") 2>conftest.er1
6503 ac_status=$?
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && {
6509 test -z "$ac_c_werror_flag" ||
6510 test ! -s conftest.err
6511 } && test -s conftest$ac_exeext &&
6512 $as_test_x conftest$ac_exeext; then
6513 ac_cv_has_makedev=yes
6514 else
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6518 ac_cv_has_makedev=no
6521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6522 conftest$ac_exeext conftest.$ac_ext
6523 if test "$ac_cv_has_makedev" = "yes"; then
6525 cat >>confdefs.h <<\_ACEOF
6526 #define _OSF_SOURCE 1
6527 _ACEOF
6531 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6532 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6533 if test "$ac_cv_has_makedev" = "yes"; then
6535 cat >>confdefs.h <<\_ACEOF
6536 #define HAVE_MAKEDEV 1
6537 _ACEOF
6541 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6542 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6543 # defined, but the compiler does not support pragma redefine_extname,
6544 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6545 # structures (such as rlimit64) without declaring them. As a
6546 # work-around, disable LFS on such configurations
6548 use_lfs=yes
6549 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6550 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6558 #define _LARGEFILE_SOURCE 1
6559 #define _FILE_OFFSET_BITS 64
6560 #include <sys/resource.h>
6563 main ()
6565 struct rlimit foo;
6567 return 0;
6569 _ACEOF
6570 rm -f conftest.$ac_objext
6571 if { (ac_try="$ac_compile"
6572 case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575 esac
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_compile") 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && {
6584 test -z "$ac_c_werror_flag" ||
6585 test ! -s conftest.err
6586 } && test -s conftest.$ac_objext; then
6587 sol_lfs_bug=no
6588 else
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 sol_lfs_bug=yes
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6597 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6598 if test "$sol_lfs_bug" = "yes"; then
6599 use_lfs=no
6602 if test "$use_lfs" = "yes"; then
6603 # Two defines needed to enable largefile support on various platforms
6604 # These may affect some typedefs
6606 cat >>confdefs.h <<\_ACEOF
6607 #define _LARGEFILE_SOURCE 1
6608 _ACEOF
6611 cat >>confdefs.h <<\_ACEOF
6612 #define _FILE_OFFSET_BITS 64
6613 _ACEOF
6617 # Add some code to confdefs.h so that the test for off_t works on SCO
6618 cat >> confdefs.h <<\EOF
6619 #if defined(SCO_DS)
6620 #undef _OFF_T
6621 #endif
6624 # Type availability checks
6625 { echo "$as_me:$LINENO: checking for mode_t" >&5
6626 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6627 if test "${ac_cv_type_mode_t+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 $ac_includes_default
6637 typedef mode_t ac__type_new_;
6639 main ()
6641 if ((ac__type_new_ *) 0)
6642 return 0;
6643 if (sizeof (ac__type_new_))
6644 return 0;
6646 return 0;
6648 _ACEOF
6649 rm -f conftest.$ac_objext
6650 if { (ac_try="$ac_compile"
6651 case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654 esac
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_compile") 2>conftest.er1
6657 ac_status=$?
6658 grep -v '^ *+' conftest.er1 >conftest.err
6659 rm -f conftest.er1
6660 cat conftest.err >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest.$ac_objext; then
6666 ac_cv_type_mode_t=yes
6667 else
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 ac_cv_type_mode_t=no
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6677 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6678 if test $ac_cv_type_mode_t = yes; then
6680 else
6682 cat >>confdefs.h <<_ACEOF
6683 #define mode_t int
6684 _ACEOF
6688 { echo "$as_me:$LINENO: checking for off_t" >&5
6689 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6690 if test "${ac_cv_type_off_t+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h. */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 $ac_includes_default
6700 typedef off_t ac__type_new_;
6702 main ()
6704 if ((ac__type_new_ *) 0)
6705 return 0;
6706 if (sizeof (ac__type_new_))
6707 return 0;
6709 return 0;
6711 _ACEOF
6712 rm -f conftest.$ac_objext
6713 if { (ac_try="$ac_compile"
6714 case "(($ac_try" in
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6717 esac
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719 (eval "$ac_compile") 2>conftest.er1
6720 ac_status=$?
6721 grep -v '^ *+' conftest.er1 >conftest.err
6722 rm -f conftest.er1
6723 cat conftest.err >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && {
6726 test -z "$ac_c_werror_flag" ||
6727 test ! -s conftest.err
6728 } && test -s conftest.$ac_objext; then
6729 ac_cv_type_off_t=yes
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6734 ac_cv_type_off_t=no
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6740 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6741 if test $ac_cv_type_off_t = yes; then
6743 else
6745 cat >>confdefs.h <<_ACEOF
6746 #define off_t long int
6747 _ACEOF
6751 { echo "$as_me:$LINENO: checking for pid_t" >&5
6752 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6753 if test "${ac_cv_type_pid_t+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6763 typedef pid_t ac__type_new_;
6765 main ()
6767 if ((ac__type_new_ *) 0)
6768 return 0;
6769 if (sizeof (ac__type_new_))
6770 return 0;
6772 return 0;
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (ac_try="$ac_compile"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_compile") 2>conftest.er1
6783 ac_status=$?
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && {
6789 test -z "$ac_c_werror_flag" ||
6790 test ! -s conftest.err
6791 } && test -s conftest.$ac_objext; then
6792 ac_cv_type_pid_t=yes
6793 else
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 ac_cv_type_pid_t=no
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6803 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6804 if test $ac_cv_type_pid_t = yes; then
6806 else
6808 cat >>confdefs.h <<_ACEOF
6809 #define pid_t int
6810 _ACEOF
6814 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6815 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6816 if test "${ac_cv_type_signal+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h. */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #include <sys/types.h>
6826 #include <signal.h>
6829 main ()
6831 return *(signal (0, 0)) (0) == 1;
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_signal=int
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 ac_cv_type_signal=void
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6864 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6866 cat >>confdefs.h <<_ACEOF
6867 #define RETSIGTYPE $ac_cv_type_signal
6868 _ACEOF
6871 { echo "$as_me:$LINENO: checking for size_t" >&5
6872 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6873 if test "${ac_cv_type_size_t+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h. */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 $ac_includes_default
6883 typedef size_t ac__type_new_;
6885 main ()
6887 if ((ac__type_new_ *) 0)
6888 return 0;
6889 if (sizeof (ac__type_new_))
6890 return 0;
6892 return 0;
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6897 case "(($ac_try" in
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6900 esac
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_compile") 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_c_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest.$ac_objext; then
6912 ac_cv_type_size_t=yes
6913 else
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_cv_type_size_t=no
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6923 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6924 if test $ac_cv_type_size_t = yes; then
6926 else
6928 cat >>confdefs.h <<_ACEOF
6929 #define size_t unsigned int
6930 _ACEOF
6934 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6935 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6936 if test "${ac_cv_type_uid_t+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 #include <sys/types.h>
6947 _ACEOF
6948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949 $EGREP "uid_t" >/dev/null 2>&1; then
6950 ac_cv_type_uid_t=yes
6951 else
6952 ac_cv_type_uid_t=no
6954 rm -f conftest*
6957 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6958 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6959 if test $ac_cv_type_uid_t = no; then
6961 cat >>confdefs.h <<\_ACEOF
6962 #define uid_t int
6963 _ACEOF
6966 cat >>confdefs.h <<\_ACEOF
6967 #define gid_t int
6968 _ACEOF
6973 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6974 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6975 if test "${ac_cv_c_uint32_t+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 ac_cv_c_uint32_t=no
6979 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
6980 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6989 main ()
6991 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
6992 test_array [0] = 0
6995 return 0;
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (ac_try="$ac_compile"
7000 case "(($ac_try" in
7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7003 esac
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005 (eval "$ac_compile") 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && {
7012 test -z "$ac_c_werror_flag" ||
7013 test ! -s conftest.err
7014 } && test -s conftest.$ac_objext; then
7015 case $ac_type in
7016 uint32_t) ac_cv_c_uint32_t=yes ;;
7017 *) ac_cv_c_uint32_t=$ac_type ;;
7018 esac
7020 else
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 test "$ac_cv_c_uint32_t" != no && break
7029 done
7031 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7032 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7033 case $ac_cv_c_uint32_t in #(
7034 no|yes) ;; #(
7037 cat >>confdefs.h <<\_ACEOF
7038 #define _UINT32_T 1
7039 _ACEOF
7042 cat >>confdefs.h <<_ACEOF
7043 #define uint32_t $ac_cv_c_uint32_t
7044 _ACEOF
7046 esac
7049 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7050 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7051 if test "${ac_cv_c_uint64_t+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 ac_cv_c_uint64_t=no
7055 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7056 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7065 main ()
7067 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7068 test_array [0] = 0
7071 return 0;
7073 _ACEOF
7074 rm -f conftest.$ac_objext
7075 if { (ac_try="$ac_compile"
7076 case "(($ac_try" in
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7079 esac
7080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081 (eval "$ac_compile") 2>conftest.er1
7082 ac_status=$?
7083 grep -v '^ *+' conftest.er1 >conftest.err
7084 rm -f conftest.er1
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } && {
7088 test -z "$ac_c_werror_flag" ||
7089 test ! -s conftest.err
7090 } && test -s conftest.$ac_objext; then
7091 case $ac_type in
7092 uint64_t) ac_cv_c_uint64_t=yes ;;
7093 *) ac_cv_c_uint64_t=$ac_type ;;
7094 esac
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 test "$ac_cv_c_uint64_t" != no && break
7105 done
7107 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7108 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7109 case $ac_cv_c_uint64_t in #(
7110 no|yes) ;; #(
7113 cat >>confdefs.h <<\_ACEOF
7114 #define _UINT64_T 1
7115 _ACEOF
7118 cat >>confdefs.h <<_ACEOF
7119 #define uint64_t $ac_cv_c_uint64_t
7120 _ACEOF
7122 esac
7125 { echo "$as_me:$LINENO: checking for int32_t" >&5
7126 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7127 if test "${ac_cv_c_int32_t+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 ac_cv_c_int32_t=no
7131 for ac_type in 'int32_t' 'int' 'long int' \
7132 'long long int' 'short int' 'signed char'; do
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
7141 main ()
7143 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7144 test_array [0] = 0
7147 return 0;
7149 _ACEOF
7150 rm -f conftest.$ac_objext
7151 if { (ac_try="$ac_compile"
7152 case "(($ac_try" in
7153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7155 esac
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157 (eval "$ac_compile") 2>conftest.er1
7158 ac_status=$?
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } && {
7164 test -z "$ac_c_werror_flag" ||
7165 test ! -s conftest.err
7166 } && test -s conftest.$ac_objext; then
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h. */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 $ac_includes_default
7175 main ()
7177 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7178 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7179 test_array [0] = 0
7182 return 0;
7184 _ACEOF
7185 rm -f conftest.$ac_objext
7186 if { (ac_try="$ac_compile"
7187 case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7190 esac
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_compile") 2>conftest.er1
7193 ac_status=$?
7194 grep -v '^ *+' conftest.er1 >conftest.err
7195 rm -f conftest.er1
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && {
7199 test -z "$ac_c_werror_flag" ||
7200 test ! -s conftest.err
7201 } && test -s conftest.$ac_objext; then
7203 else
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7207 case $ac_type in
7208 int32_t) ac_cv_c_int32_t=yes ;;
7209 *) ac_cv_c_int32_t=$ac_type ;;
7210 esac
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 else
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 test "$ac_cv_c_int32_t" != no && break
7224 done
7226 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7227 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7228 case $ac_cv_c_int32_t in #(
7229 no|yes) ;; #(
7232 cat >>confdefs.h <<_ACEOF
7233 #define int32_t $ac_cv_c_int32_t
7234 _ACEOF
7236 esac
7239 { echo "$as_me:$LINENO: checking for int64_t" >&5
7240 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7241 if test "${ac_cv_c_int64_t+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 ac_cv_c_int64_t=no
7245 for ac_type in 'int64_t' 'int' 'long int' \
7246 'long long int' 'short int' 'signed char'; do
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7255 main ()
7257 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7258 test_array [0] = 0
7261 return 0;
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7266 case "(($ac_try" in
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7269 esac
7270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271 (eval "$ac_compile") 2>conftest.er1
7272 ac_status=$?
7273 grep -v '^ *+' conftest.er1 >conftest.err
7274 rm -f conftest.er1
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && {
7278 test -z "$ac_c_werror_flag" ||
7279 test ! -s conftest.err
7280 } && test -s conftest.$ac_objext; then
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7289 main ()
7291 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7292 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7293 test_array [0] = 0
7296 return 0;
7298 _ACEOF
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7301 case "(($ac_try" in
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7304 esac
7305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7306 (eval "$ac_compile") 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && {
7313 test -z "$ac_c_werror_flag" ||
7314 test ! -s conftest.err
7315 } && test -s conftest.$ac_objext; then
7317 else
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 case $ac_type in
7322 int64_t) ac_cv_c_int64_t=yes ;;
7323 *) ac_cv_c_int64_t=$ac_type ;;
7324 esac
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 else
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 test "$ac_cv_c_int64_t" != no && break
7338 done
7340 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7341 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7342 case $ac_cv_c_int64_t in #(
7343 no|yes) ;; #(
7346 cat >>confdefs.h <<_ACEOF
7347 #define int64_t $ac_cv_c_int64_t
7348 _ACEOF
7350 esac
7352 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7353 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7354 if test "${ac_cv_type_ssize_t+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357 cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h. */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7364 typedef ssize_t ac__type_new_;
7366 main ()
7368 if ((ac__type_new_ *) 0)
7369 return 0;
7370 if (sizeof (ac__type_new_))
7371 return 0;
7373 return 0;
7375 _ACEOF
7376 rm -f conftest.$ac_objext
7377 if { (ac_try="$ac_compile"
7378 case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381 esac
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 ac_cv_type_ssize_t=yes
7394 else
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 ac_cv_type_ssize_t=no
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7403 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7404 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7405 if test $ac_cv_type_ssize_t = yes; then
7407 cat >>confdefs.h <<\_ACEOF
7408 #define HAVE_SSIZE_T 1
7409 _ACEOF
7414 # Sizes of various common basic types
7415 # ANSI C requires sizeof(char) == 1, so no need to check it
7416 { echo "$as_me:$LINENO: checking for int" >&5
7417 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7418 if test "${ac_cv_type_int+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h. */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 $ac_includes_default
7428 typedef int ac__type_new_;
7430 main ()
7432 if ((ac__type_new_ *) 0)
7433 return 0;
7434 if (sizeof (ac__type_new_))
7435 return 0;
7437 return 0;
7439 _ACEOF
7440 rm -f conftest.$ac_objext
7441 if { (ac_try="$ac_compile"
7442 case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445 esac
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_compile") 2>conftest.er1
7448 ac_status=$?
7449 grep -v '^ *+' conftest.er1 >conftest.err
7450 rm -f conftest.er1
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } && {
7454 test -z "$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7456 } && test -s conftest.$ac_objext; then
7457 ac_cv_type_int=yes
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 ac_cv_type_int=no
7465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7468 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7470 # The cast to long int works around a bug in the HP C Compiler
7471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7473 # This bug is HP SR number 8606223364.
7474 { echo "$as_me:$LINENO: checking size of int" >&5
7475 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7476 if test "${ac_cv_sizeof_int+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479 if test "$cross_compiling" = yes; then
7480 # Depending upon the size, compute the lo and hi bounds.
7481 cat >conftest.$ac_ext <<_ACEOF
7482 /* confdefs.h. */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 $ac_includes_default
7488 typedef int ac__type_sizeof_;
7490 main ()
7492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7493 test_array [0] = 0
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7501 case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504 esac
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } && {
7513 test -z "$ac_c_werror_flag" ||
7514 test ! -s conftest.err
7515 } && test -s conftest.$ac_objext; then
7516 ac_lo=0 ac_mid=0
7517 while :; do
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7525 typedef int ac__type_sizeof_;
7527 main ()
7529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7530 test_array [0] = 0
7533 return 0;
7535 _ACEOF
7536 rm -f conftest.$ac_objext
7537 if { (ac_try="$ac_compile"
7538 case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541 esac
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 ac_hi=$ac_mid; break
7554 else
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7558 ac_lo=`expr $ac_mid + 1`
7559 if test $ac_lo -le $ac_mid; then
7560 ac_lo= ac_hi=
7561 break
7563 ac_mid=`expr 2 '*' $ac_mid + 1`
7566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567 done
7568 else
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 cat >conftest.$ac_ext <<_ACEOF
7573 /* confdefs.h. */
7574 _ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7578 $ac_includes_default
7579 typedef int ac__type_sizeof_;
7581 main ()
7583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7584 test_array [0] = 0
7587 return 0;
7589 _ACEOF
7590 rm -f conftest.$ac_objext
7591 if { (ac_try="$ac_compile"
7592 case "(($ac_try" in
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7595 esac
7596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7597 (eval "$ac_compile") 2>conftest.er1
7598 ac_status=$?
7599 grep -v '^ *+' conftest.er1 >conftest.err
7600 rm -f conftest.er1
7601 cat conftest.err >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && {
7604 test -z "$ac_c_werror_flag" ||
7605 test ! -s conftest.err
7606 } && test -s conftest.$ac_objext; then
7607 ac_hi=-1 ac_mid=-1
7608 while :; do
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 $ac_includes_default
7616 typedef int ac__type_sizeof_;
7618 main ()
7620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7621 test_array [0] = 0
7624 return 0;
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (ac_try="$ac_compile"
7629 case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7632 esac
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634 (eval "$ac_compile") 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest.$ac_objext; then
7644 ac_lo=$ac_mid; break
7645 else
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 ac_hi=`expr '(' $ac_mid ')' - 1`
7650 if test $ac_mid -le $ac_hi; then
7651 ac_lo= ac_hi=
7652 break
7654 ac_mid=`expr 2 '*' $ac_mid`
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658 done
7659 else
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7663 ac_lo= ac_hi=
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 # Binary search between lo and hi bounds.
7671 while test "x$ac_lo" != "x$ac_hi"; do
7672 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 typedef int ac__type_sizeof_;
7682 main ()
7684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7685 test_array [0] = 0
7688 return 0;
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7693 case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
7708 ac_hi=$ac_mid
7709 else
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 ac_lo=`expr '(' $ac_mid ')' + 1`
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 done
7718 case $ac_lo in
7719 ?*) ac_cv_sizeof_int=$ac_lo;;
7720 '') if test "$ac_cv_type_int" = yes; then
7721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7722 See \`config.log' for more details." >&5
7723 echo "$as_me: error: cannot compute sizeof (int)
7724 See \`config.log' for more details." >&2;}
7725 { (exit 77); exit 77; }; }
7726 else
7727 ac_cv_sizeof_int=0
7728 fi ;;
7729 esac
7730 else
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 $ac_includes_default
7738 typedef int ac__type_sizeof_;
7739 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7740 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7741 #include <stdio.h>
7742 #include <stdlib.h>
7744 main ()
7747 FILE *f = fopen ("conftest.val", "w");
7748 if (! f)
7749 return 1;
7750 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7752 long int i = longval ();
7753 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7754 return 1;
7755 fprintf (f, "%ld\n", i);
7757 else
7759 unsigned long int i = ulongval ();
7760 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7761 return 1;
7762 fprintf (f, "%lu\n", i);
7764 return ferror (f) || fclose (f) != 0;
7767 return 0;
7769 _ACEOF
7770 rm -f conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7772 case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775 esac
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_link") 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7781 { (case "(($ac_try" in
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7784 esac
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_try") 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 ac_cv_sizeof_int=`cat conftest.val`
7791 else
7792 echo "$as_me: program exited with status $ac_status" >&5
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 ( exit $ac_status )
7797 if test "$ac_cv_type_int" = yes; then
7798 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7799 See \`config.log' for more details." >&5
7800 echo "$as_me: error: cannot compute sizeof (int)
7801 See \`config.log' for more details." >&2;}
7802 { (exit 77); exit 77; }; }
7803 else
7804 ac_cv_sizeof_int=0
7807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7809 rm -f conftest.val
7811 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7812 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7816 cat >>confdefs.h <<_ACEOF
7817 #define SIZEOF_INT $ac_cv_sizeof_int
7818 _ACEOF
7821 { echo "$as_me:$LINENO: checking for long" >&5
7822 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7823 if test "${ac_cv_type_long+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h. */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 $ac_includes_default
7833 typedef long ac__type_new_;
7835 main ()
7837 if ((ac__type_new_ *) 0)
7838 return 0;
7839 if (sizeof (ac__type_new_))
7840 return 0;
7842 return 0;
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7847 case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_cv_type_long=yes
7863 else
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 ac_cv_type_long=no
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7873 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7875 # The cast to long int works around a bug in the HP C Compiler
7876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7878 # This bug is HP SR number 8606223364.
7879 { echo "$as_me:$LINENO: checking size of long" >&5
7880 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7881 if test "${ac_cv_sizeof_long+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884 if test "$cross_compiling" = yes; then
7885 # Depending upon the size, compute the lo and hi bounds.
7886 cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h. */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 $ac_includes_default
7893 typedef long ac__type_sizeof_;
7895 main ()
7897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7898 test_array [0] = 0
7901 return 0;
7903 _ACEOF
7904 rm -f conftest.$ac_objext
7905 if { (ac_try="$ac_compile"
7906 case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7909 esac
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_compile") 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } && {
7918 test -z "$ac_c_werror_flag" ||
7919 test ! -s conftest.err
7920 } && test -s conftest.$ac_objext; then
7921 ac_lo=0 ac_mid=0
7922 while :; do
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 $ac_includes_default
7930 typedef long ac__type_sizeof_;
7932 main ()
7934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7935 test_array [0] = 0
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (ac_try="$ac_compile"
7943 case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_compile") 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest.$ac_objext; then
7958 ac_hi=$ac_mid; break
7959 else
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7963 ac_lo=`expr $ac_mid + 1`
7964 if test $ac_lo -le $ac_mid; then
7965 ac_lo= ac_hi=
7966 break
7968 ac_mid=`expr 2 '*' $ac_mid + 1`
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 done
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 $ac_includes_default
7984 typedef long ac__type_sizeof_;
7986 main ()
7988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7989 test_array [0] = 0
7992 return 0;
7994 _ACEOF
7995 rm -f conftest.$ac_objext
7996 if { (ac_try="$ac_compile"
7997 case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8000 esac
8001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_compile") 2>conftest.er1
8003 ac_status=$?
8004 grep -v '^ *+' conftest.er1 >conftest.err
8005 rm -f conftest.er1
8006 cat conftest.err >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } && {
8009 test -z "$ac_c_werror_flag" ||
8010 test ! -s conftest.err
8011 } && test -s conftest.$ac_objext; then
8012 ac_hi=-1 ac_mid=-1
8013 while :; do
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 $ac_includes_default
8021 typedef long ac__type_sizeof_;
8023 main ()
8025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8026 test_array [0] = 0
8029 return 0;
8031 _ACEOF
8032 rm -f conftest.$ac_objext
8033 if { (ac_try="$ac_compile"
8034 case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8037 esac
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8049 ac_lo=$ac_mid; break
8050 else
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054 ac_hi=`expr '(' $ac_mid ')' - 1`
8055 if test $ac_mid -le $ac_hi; then
8056 ac_lo= ac_hi=
8057 break
8059 ac_mid=`expr 2 '*' $ac_mid`
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 done
8064 else
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8068 ac_lo= ac_hi=
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 # Binary search between lo and hi bounds.
8076 while test "x$ac_lo" != "x$ac_hi"; do
8077 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8078 cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h. */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8084 $ac_includes_default
8085 typedef long ac__type_sizeof_;
8087 main ()
8089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8090 test_array [0] = 0
8093 return 0;
8095 _ACEOF
8096 rm -f conftest.$ac_objext
8097 if { (ac_try="$ac_compile"
8098 case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101 esac
8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_compile") 2>conftest.er1
8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } && {
8110 test -z "$ac_c_werror_flag" ||
8111 test ! -s conftest.err
8112 } && test -s conftest.$ac_objext; then
8113 ac_hi=$ac_mid
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 ac_lo=`expr '(' $ac_mid ')' + 1`
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 done
8123 case $ac_lo in
8124 ?*) ac_cv_sizeof_long=$ac_lo;;
8125 '') if test "$ac_cv_type_long" = yes; then
8126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8127 See \`config.log' for more details." >&5
8128 echo "$as_me: error: cannot compute sizeof (long)
8129 See \`config.log' for more details." >&2;}
8130 { (exit 77); exit 77; }; }
8131 else
8132 ac_cv_sizeof_long=0
8133 fi ;;
8134 esac
8135 else
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8143 typedef long ac__type_sizeof_;
8144 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8145 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8146 #include <stdio.h>
8147 #include <stdlib.h>
8149 main ()
8152 FILE *f = fopen ("conftest.val", "w");
8153 if (! f)
8154 return 1;
8155 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8157 long int i = longval ();
8158 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8159 return 1;
8160 fprintf (f, "%ld\n", i);
8162 else
8164 unsigned long int i = ulongval ();
8165 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8166 return 1;
8167 fprintf (f, "%lu\n", i);
8169 return ferror (f) || fclose (f) != 0;
8172 return 0;
8174 _ACEOF
8175 rm -f conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8177 case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_link") 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8186 { (case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8189 esac
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_try") 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_cv_sizeof_long=`cat conftest.val`
8196 else
8197 echo "$as_me: program exited with status $ac_status" >&5
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 ( exit $ac_status )
8202 if test "$ac_cv_type_long" = yes; then
8203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8204 See \`config.log' for more details." >&5
8205 echo "$as_me: error: cannot compute sizeof (long)
8206 See \`config.log' for more details." >&2;}
8207 { (exit 77); exit 77; }; }
8208 else
8209 ac_cv_sizeof_long=0
8212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8214 rm -f conftest.val
8216 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8217 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8221 cat >>confdefs.h <<_ACEOF
8222 #define SIZEOF_LONG $ac_cv_sizeof_long
8223 _ACEOF
8226 { echo "$as_me:$LINENO: checking for void *" >&5
8227 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8228 if test "${ac_cv_type_void_p+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8238 typedef void * ac__type_new_;
8240 main ()
8242 if ((ac__type_new_ *) 0)
8243 return 0;
8244 if (sizeof (ac__type_new_))
8245 return 0;
8247 return 0;
8249 _ACEOF
8250 rm -f conftest.$ac_objext
8251 if { (ac_try="$ac_compile"
8252 case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8255 esac
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest.$ac_objext; then
8267 ac_cv_type_void_p=yes
8268 else
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8272 ac_cv_type_void_p=no
8275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8278 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8280 # The cast to long int works around a bug in the HP C Compiler
8281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8283 # This bug is HP SR number 8606223364.
8284 { echo "$as_me:$LINENO: checking size of void *" >&5
8285 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8286 if test "${ac_cv_sizeof_void_p+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289 if test "$cross_compiling" = yes; then
8290 # Depending upon the size, compute the lo and hi bounds.
8291 cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8298 typedef void * ac__type_sizeof_;
8300 main ()
8302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8303 test_array [0] = 0
8306 return 0;
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } && {
8323 test -z "$ac_c_werror_flag" ||
8324 test ! -s conftest.err
8325 } && test -s conftest.$ac_objext; then
8326 ac_lo=0 ac_mid=0
8327 while :; do
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h. */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 $ac_includes_default
8335 typedef void * ac__type_sizeof_;
8337 main ()
8339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8340 test_array [0] = 0
8343 return 0;
8345 _ACEOF
8346 rm -f conftest.$ac_objext
8347 if { (ac_try="$ac_compile"
8348 case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_compile") 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest.$ac_objext; then
8363 ac_hi=$ac_mid; break
8364 else
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 ac_lo=`expr $ac_mid + 1`
8369 if test $ac_lo -le $ac_mid; then
8370 ac_lo= ac_hi=
8371 break
8373 ac_mid=`expr 2 '*' $ac_mid + 1`
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 done
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 typedef void * ac__type_sizeof_;
8391 main ()
8393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8394 test_array [0] = 0
8397 return 0;
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (ac_try="$ac_compile"
8402 case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && {
8414 test -z "$ac_c_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest.$ac_objext; then
8417 ac_hi=-1 ac_mid=-1
8418 while :; do
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h. */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8426 typedef void * ac__type_sizeof_;
8428 main ()
8430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8431 test_array [0] = 0
8434 return 0;
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8439 case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest.$ac_objext; then
8454 ac_lo=$ac_mid; break
8455 else
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 ac_hi=`expr '(' $ac_mid ')' - 1`
8460 if test $ac_mid -le $ac_hi; then
8461 ac_lo= ac_hi=
8462 break
8464 ac_mid=`expr 2 '*' $ac_mid`
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 done
8469 else
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_lo= ac_hi=
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 # Binary search between lo and hi bounds.
8481 while test "x$ac_lo" != "x$ac_hi"; do
8482 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8483 cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h. */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8489 $ac_includes_default
8490 typedef void * ac__type_sizeof_;
8492 main ()
8494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8495 test_array [0] = 0
8498 return 0;
8500 _ACEOF
8501 rm -f conftest.$ac_objext
8502 if { (ac_try="$ac_compile"
8503 case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_compile") 2>conftest.er1
8509 ac_status=$?
8510 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } && {
8515 test -z "$ac_c_werror_flag" ||
8516 test ! -s conftest.err
8517 } && test -s conftest.$ac_objext; then
8518 ac_hi=$ac_mid
8519 else
8520 echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8523 ac_lo=`expr '(' $ac_mid ')' + 1`
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 done
8528 case $ac_lo in
8529 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8530 '') if test "$ac_cv_type_void_p" = yes; then
8531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8532 See \`config.log' for more details." >&5
8533 echo "$as_me: error: cannot compute sizeof (void *)
8534 See \`config.log' for more details." >&2;}
8535 { (exit 77); exit 77; }; }
8536 else
8537 ac_cv_sizeof_void_p=0
8538 fi ;;
8539 esac
8540 else
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h. */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8548 typedef void * ac__type_sizeof_;
8549 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8550 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8551 #include <stdio.h>
8552 #include <stdlib.h>
8554 main ()
8557 FILE *f = fopen ("conftest.val", "w");
8558 if (! f)
8559 return 1;
8560 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8562 long int i = longval ();
8563 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8564 return 1;
8565 fprintf (f, "%ld\n", i);
8567 else
8569 unsigned long int i = ulongval ();
8570 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8571 return 1;
8572 fprintf (f, "%lu\n", i);
8574 return ferror (f) || fclose (f) != 0;
8577 return 0;
8579 _ACEOF
8580 rm -f conftest$ac_exeext
8581 if { (ac_try="$ac_link"
8582 case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585 esac
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_link") 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8591 { (case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_try") 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_cv_sizeof_void_p=`cat conftest.val`
8601 else
8602 echo "$as_me: program exited with status $ac_status" >&5
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 ( exit $ac_status )
8607 if test "$ac_cv_type_void_p" = yes; then
8608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8609 See \`config.log' for more details." >&5
8610 echo "$as_me: error: cannot compute sizeof (void *)
8611 See \`config.log' for more details." >&2;}
8612 { (exit 77); exit 77; }; }
8613 else
8614 ac_cv_sizeof_void_p=0
8617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8619 rm -f conftest.val
8621 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8622 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8626 cat >>confdefs.h <<_ACEOF
8627 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8628 _ACEOF
8631 { echo "$as_me:$LINENO: checking for short" >&5
8632 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8633 if test "${ac_cv_type_short+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 typedef short ac__type_new_;
8645 main ()
8647 if ((ac__type_new_ *) 0)
8648 return 0;
8649 if (sizeof (ac__type_new_))
8650 return 0;
8652 return 0;
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8657 case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 ac_cv_type_short=yes
8673 else
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 ac_cv_type_short=no
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8683 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8685 # The cast to long int works around a bug in the HP C Compiler
8686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8688 # This bug is HP SR number 8606223364.
8689 { echo "$as_me:$LINENO: checking size of short" >&5
8690 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8691 if test "${ac_cv_sizeof_short+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694 if test "$cross_compiling" = yes; then
8695 # Depending upon the size, compute the lo and hi bounds.
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 $ac_includes_default
8703 typedef short ac__type_sizeof_;
8705 main ()
8707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8708 test_array [0] = 0
8711 return 0;
8713 _ACEOF
8714 rm -f conftest.$ac_objext
8715 if { (ac_try="$ac_compile"
8716 case "(($ac_try" in
8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8719 esac
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8731 ac_lo=0 ac_mid=0
8732 while :; do
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 typedef short ac__type_sizeof_;
8742 main ()
8744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8745 test_array [0] = 0
8748 return 0;
8750 _ACEOF
8751 rm -f conftest.$ac_objext
8752 if { (ac_try="$ac_compile"
8753 case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8756 esac
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_compile") 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest.$ac_objext; then
8768 ac_hi=$ac_mid; break
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 ac_lo=`expr $ac_mid + 1`
8774 if test $ac_lo -le $ac_mid; then
8775 ac_lo= ac_hi=
8776 break
8778 ac_mid=`expr 2 '*' $ac_mid + 1`
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 done
8783 else
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 cat >conftest.$ac_ext <<_ACEOF
8788 /* confdefs.h. */
8789 _ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8793 $ac_includes_default
8794 typedef short ac__type_sizeof_;
8796 main ()
8798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8799 test_array [0] = 0
8802 return 0;
8804 _ACEOF
8805 rm -f conftest.$ac_objext
8806 if { (ac_try="$ac_compile"
8807 case "(($ac_try" in
8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8810 esac
8811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8812 (eval "$ac_compile") 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } && {
8819 test -z "$ac_c_werror_flag" ||
8820 test ! -s conftest.err
8821 } && test -s conftest.$ac_objext; then
8822 ac_hi=-1 ac_mid=-1
8823 while :; do
8824 cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h. */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8830 $ac_includes_default
8831 typedef short ac__type_sizeof_;
8833 main ()
8835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8836 test_array [0] = 0
8839 return 0;
8841 _ACEOF
8842 rm -f conftest.$ac_objext
8843 if { (ac_try="$ac_compile"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_compile") 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } && {
8856 test -z "$ac_c_werror_flag" ||
8857 test ! -s conftest.err
8858 } && test -s conftest.$ac_objext; then
8859 ac_lo=$ac_mid; break
8860 else
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8864 ac_hi=`expr '(' $ac_mid ')' - 1`
8865 if test $ac_mid -le $ac_hi; then
8866 ac_lo= ac_hi=
8867 break
8869 ac_mid=`expr 2 '*' $ac_mid`
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873 done
8874 else
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8878 ac_lo= ac_hi=
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 # Binary search between lo and hi bounds.
8886 while test "x$ac_lo" != "x$ac_hi"; do
8887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8888 cat >conftest.$ac_ext <<_ACEOF
8889 /* confdefs.h. */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 $ac_includes_default
8895 typedef short ac__type_sizeof_;
8897 main ()
8899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8900 test_array [0] = 0
8903 return 0;
8905 _ACEOF
8906 rm -f conftest.$ac_objext
8907 if { (ac_try="$ac_compile"
8908 case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8911 esac
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_compile") 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && {
8920 test -z "$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8922 } && test -s conftest.$ac_objext; then
8923 ac_hi=$ac_mid
8924 else
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_lo=`expr '(' $ac_mid ')' + 1`
8931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8932 done
8933 case $ac_lo in
8934 ?*) ac_cv_sizeof_short=$ac_lo;;
8935 '') if test "$ac_cv_type_short" = yes; then
8936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8937 See \`config.log' for more details." >&5
8938 echo "$as_me: error: cannot compute sizeof (short)
8939 See \`config.log' for more details." >&2;}
8940 { (exit 77); exit 77; }; }
8941 else
8942 ac_cv_sizeof_short=0
8943 fi ;;
8944 esac
8945 else
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 $ac_includes_default
8953 typedef short ac__type_sizeof_;
8954 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8955 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8956 #include <stdio.h>
8957 #include <stdlib.h>
8959 main ()
8962 FILE *f = fopen ("conftest.val", "w");
8963 if (! f)
8964 return 1;
8965 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8967 long int i = longval ();
8968 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8969 return 1;
8970 fprintf (f, "%ld\n", i);
8972 else
8974 unsigned long int i = ulongval ();
8975 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8976 return 1;
8977 fprintf (f, "%lu\n", i);
8979 return ferror (f) || fclose (f) != 0;
8982 return 0;
8984 _ACEOF
8985 rm -f conftest$ac_exeext
8986 if { (ac_try="$ac_link"
8987 case "(($ac_try" in
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8990 esac
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_link") 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8996 { (case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_try") 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_sizeof_short=`cat conftest.val`
9006 else
9007 echo "$as_me: program exited with status $ac_status" >&5
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ( exit $ac_status )
9012 if test "$ac_cv_type_short" = yes; then
9013 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9014 See \`config.log' for more details." >&5
9015 echo "$as_me: error: cannot compute sizeof (short)
9016 See \`config.log' for more details." >&2;}
9017 { (exit 77); exit 77; }; }
9018 else
9019 ac_cv_sizeof_short=0
9022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9024 rm -f conftest.val
9026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9027 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9031 cat >>confdefs.h <<_ACEOF
9032 #define SIZEOF_SHORT $ac_cv_sizeof_short
9033 _ACEOF
9036 { echo "$as_me:$LINENO: checking for float" >&5
9037 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9038 if test "${ac_cv_type_float+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 $ac_includes_default
9048 typedef float ac__type_new_;
9050 main ()
9052 if ((ac__type_new_ *) 0)
9053 return 0;
9054 if (sizeof (ac__type_new_))
9055 return 0;
9057 return 0;
9059 _ACEOF
9060 rm -f conftest.$ac_objext
9061 if { (ac_try="$ac_compile"
9062 case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9065 esac
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_compile") 2>conftest.er1
9068 ac_status=$?
9069 grep -v '^ *+' conftest.er1 >conftest.err
9070 rm -f conftest.er1
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } && {
9074 test -z "$ac_c_werror_flag" ||
9075 test ! -s conftest.err
9076 } && test -s conftest.$ac_objext; then
9077 ac_cv_type_float=yes
9078 else
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9082 ac_cv_type_float=no
9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9087 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9088 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9090 # The cast to long int works around a bug in the HP C Compiler
9091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9093 # This bug is HP SR number 8606223364.
9094 { echo "$as_me:$LINENO: checking size of float" >&5
9095 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9096 if test "${ac_cv_sizeof_float+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099 if test "$cross_compiling" = yes; then
9100 # Depending upon the size, compute the lo and hi bounds.
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h. */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 $ac_includes_default
9108 typedef float ac__type_sizeof_;
9110 main ()
9112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9113 test_array [0] = 0
9116 return 0;
9118 _ACEOF
9119 rm -f conftest.$ac_objext
9120 if { (ac_try="$ac_compile"
9121 case "(($ac_try" in
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9124 esac
9125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_compile") 2>conftest.er1
9127 ac_status=$?
9128 grep -v '^ *+' conftest.er1 >conftest.err
9129 rm -f conftest.er1
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } && {
9133 test -z "$ac_c_werror_flag" ||
9134 test ! -s conftest.err
9135 } && test -s conftest.$ac_objext; then
9136 ac_lo=0 ac_mid=0
9137 while :; do
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h. */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 $ac_includes_default
9145 typedef float ac__type_sizeof_;
9147 main ()
9149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9150 test_array [0] = 0
9153 return 0;
9155 _ACEOF
9156 rm -f conftest.$ac_objext
9157 if { (ac_try="$ac_compile"
9158 case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161 esac
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_compile") 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } && {
9170 test -z "$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9172 } && test -s conftest.$ac_objext; then
9173 ac_hi=$ac_mid; break
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 ac_lo=`expr $ac_mid + 1`
9179 if test $ac_lo -le $ac_mid; then
9180 ac_lo= ac_hi=
9181 break
9183 ac_mid=`expr 2 '*' $ac_mid + 1`
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 done
9188 else
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 $ac_includes_default
9199 typedef float ac__type_sizeof_;
9201 main ()
9203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9204 test_array [0] = 0
9207 return 0;
9209 _ACEOF
9210 rm -f conftest.$ac_objext
9211 if { (ac_try="$ac_compile"
9212 case "(($ac_try" in
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9215 esac
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_compile") 2>conftest.er1
9218 ac_status=$?
9219 grep -v '^ *+' conftest.er1 >conftest.err
9220 rm -f conftest.er1
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest.$ac_objext; then
9227 ac_hi=-1 ac_mid=-1
9228 while :; do
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 $ac_includes_default
9236 typedef float ac__type_sizeof_;
9238 main ()
9240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9241 test_array [0] = 0
9244 return 0;
9246 _ACEOF
9247 rm -f conftest.$ac_objext
9248 if { (ac_try="$ac_compile"
9249 case "(($ac_try" in
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9252 esac
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_compile") 2>conftest.er1
9255 ac_status=$?
9256 grep -v '^ *+' conftest.er1 >conftest.err
9257 rm -f conftest.er1
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } && {
9261 test -z "$ac_c_werror_flag" ||
9262 test ! -s conftest.err
9263 } && test -s conftest.$ac_objext; then
9264 ac_lo=$ac_mid; break
9265 else
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 ac_hi=`expr '(' $ac_mid ')' - 1`
9270 if test $ac_mid -le $ac_hi; then
9271 ac_lo= ac_hi=
9272 break
9274 ac_mid=`expr 2 '*' $ac_mid`
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9278 done
9279 else
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9283 ac_lo= ac_hi=
9286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 # Binary search between lo and hi bounds.
9291 while test "x$ac_lo" != "x$ac_hi"; do
9292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9293 cat >conftest.$ac_ext <<_ACEOF
9294 /* confdefs.h. */
9295 _ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9299 $ac_includes_default
9300 typedef float ac__type_sizeof_;
9302 main ()
9304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9305 test_array [0] = 0
9308 return 0;
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (ac_try="$ac_compile"
9313 case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_compile") 2>conftest.er1
9319 ac_status=$?
9320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } && {
9325 test -z "$ac_c_werror_flag" ||
9326 test ! -s conftest.err
9327 } && test -s conftest.$ac_objext; then
9328 ac_hi=$ac_mid
9329 else
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 ac_lo=`expr '(' $ac_mid ')' + 1`
9336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 done
9338 case $ac_lo in
9339 ?*) ac_cv_sizeof_float=$ac_lo;;
9340 '') if test "$ac_cv_type_float" = yes; then
9341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9342 See \`config.log' for more details." >&5
9343 echo "$as_me: error: cannot compute sizeof (float)
9344 See \`config.log' for more details." >&2;}
9345 { (exit 77); exit 77; }; }
9346 else
9347 ac_cv_sizeof_float=0
9348 fi ;;
9349 esac
9350 else
9351 cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h. */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 $ac_includes_default
9358 typedef float ac__type_sizeof_;
9359 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9360 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9361 #include <stdio.h>
9362 #include <stdlib.h>
9364 main ()
9367 FILE *f = fopen ("conftest.val", "w");
9368 if (! f)
9369 return 1;
9370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9372 long int i = longval ();
9373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9374 return 1;
9375 fprintf (f, "%ld\n", i);
9377 else
9379 unsigned long int i = ulongval ();
9380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9381 return 1;
9382 fprintf (f, "%lu\n", i);
9384 return ferror (f) || fclose (f) != 0;
9387 return 0;
9389 _ACEOF
9390 rm -f conftest$ac_exeext
9391 if { (ac_try="$ac_link"
9392 case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395 esac
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_link") 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9401 { (case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_try") 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_sizeof_float=`cat conftest.val`
9411 else
9412 echo "$as_me: program exited with status $ac_status" >&5
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ( exit $ac_status )
9417 if test "$ac_cv_type_float" = yes; then
9418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9419 See \`config.log' for more details." >&5
9420 echo "$as_me: error: cannot compute sizeof (float)
9421 See \`config.log' for more details." >&2;}
9422 { (exit 77); exit 77; }; }
9423 else
9424 ac_cv_sizeof_float=0
9427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9429 rm -f conftest.val
9431 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9432 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9436 cat >>confdefs.h <<_ACEOF
9437 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9438 _ACEOF
9441 { echo "$as_me:$LINENO: checking for double" >&5
9442 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9443 if test "${ac_cv_type_double+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 $ac_includes_default
9453 typedef double ac__type_new_;
9455 main ()
9457 if ((ac__type_new_ *) 0)
9458 return 0;
9459 if (sizeof (ac__type_new_))
9460 return 0;
9462 return 0;
9464 _ACEOF
9465 rm -f conftest.$ac_objext
9466 if { (ac_try="$ac_compile"
9467 case "(($ac_try" in
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9470 esac
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_compile") 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest.$ac_objext; then
9482 ac_cv_type_double=yes
9483 else
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 ac_cv_type_double=no
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9493 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9495 # The cast to long int works around a bug in the HP C Compiler
9496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9498 # This bug is HP SR number 8606223364.
9499 { echo "$as_me:$LINENO: checking size of double" >&5
9500 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9501 if test "${ac_cv_sizeof_double+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504 if test "$cross_compiling" = yes; then
9505 # Depending upon the size, compute the lo and hi bounds.
9506 cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h. */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 $ac_includes_default
9513 typedef double ac__type_sizeof_;
9515 main ()
9517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9518 test_array [0] = 0
9521 return 0;
9523 _ACEOF
9524 rm -f conftest.$ac_objext
9525 if { (ac_try="$ac_compile"
9526 case "(($ac_try" in
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9529 esac
9530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531 (eval "$ac_compile") 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && {
9538 test -z "$ac_c_werror_flag" ||
9539 test ! -s conftest.err
9540 } && test -s conftest.$ac_objext; then
9541 ac_lo=0 ac_mid=0
9542 while :; do
9543 cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h. */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 $ac_includes_default
9550 typedef double ac__type_sizeof_;
9552 main ()
9554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9555 test_array [0] = 0
9558 return 0;
9560 _ACEOF
9561 rm -f conftest.$ac_objext
9562 if { (ac_try="$ac_compile"
9563 case "(($ac_try" in
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9566 esac
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_compile") 2>conftest.er1
9569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && {
9575 test -z "$ac_c_werror_flag" ||
9576 test ! -s conftest.err
9577 } && test -s conftest.$ac_objext; then
9578 ac_hi=$ac_mid; break
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 ac_lo=`expr $ac_mid + 1`
9584 if test $ac_lo -le $ac_mid; then
9585 ac_lo= ac_hi=
9586 break
9588 ac_mid=`expr 2 '*' $ac_mid + 1`
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 done
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h. */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9603 $ac_includes_default
9604 typedef double ac__type_sizeof_;
9606 main ()
9608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9609 test_array [0] = 0
9612 return 0;
9614 _ACEOF
9615 rm -f conftest.$ac_objext
9616 if { (ac_try="$ac_compile"
9617 case "(($ac_try" in
9618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9620 esac
9621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622 (eval "$ac_compile") 2>conftest.er1
9623 ac_status=$?
9624 grep -v '^ *+' conftest.er1 >conftest.err
9625 rm -f conftest.er1
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } && {
9629 test -z "$ac_c_werror_flag" ||
9630 test ! -s conftest.err
9631 } && test -s conftest.$ac_objext; then
9632 ac_hi=-1 ac_mid=-1
9633 while :; do
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 $ac_includes_default
9641 typedef double ac__type_sizeof_;
9643 main ()
9645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9646 test_array [0] = 0
9649 return 0;
9651 _ACEOF
9652 rm -f conftest.$ac_objext
9653 if { (ac_try="$ac_compile"
9654 case "(($ac_try" in
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9657 esac
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_compile") 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest.$ac_objext; then
9669 ac_lo=$ac_mid; break
9670 else
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_hi=`expr '(' $ac_mid ')' - 1`
9675 if test $ac_mid -le $ac_hi; then
9676 ac_lo= ac_hi=
9677 break
9679 ac_mid=`expr 2 '*' $ac_mid`
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683 done
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_lo= ac_hi=
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695 # Binary search between lo and hi bounds.
9696 while test "x$ac_lo" != "x$ac_hi"; do
9697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 $ac_includes_default
9705 typedef double ac__type_sizeof_;
9707 main ()
9709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9710 test_array [0] = 0
9713 return 0;
9715 _ACEOF
9716 rm -f conftest.$ac_objext
9717 if { (ac_try="$ac_compile"
9718 case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_compile") 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest.$ac_objext; then
9733 ac_hi=$ac_mid
9734 else
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ac_lo=`expr '(' $ac_mid ')' + 1`
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742 done
9743 case $ac_lo in
9744 ?*) ac_cv_sizeof_double=$ac_lo;;
9745 '') if test "$ac_cv_type_double" = yes; then
9746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9747 See \`config.log' for more details." >&5
9748 echo "$as_me: error: cannot compute sizeof (double)
9749 See \`config.log' for more details." >&2;}
9750 { (exit 77); exit 77; }; }
9751 else
9752 ac_cv_sizeof_double=0
9753 fi ;;
9754 esac
9755 else
9756 cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h. */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 $ac_includes_default
9763 typedef double ac__type_sizeof_;
9764 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9765 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9766 #include <stdio.h>
9767 #include <stdlib.h>
9769 main ()
9772 FILE *f = fopen ("conftest.val", "w");
9773 if (! f)
9774 return 1;
9775 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9777 long int i = longval ();
9778 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9779 return 1;
9780 fprintf (f, "%ld\n", i);
9782 else
9784 unsigned long int i = ulongval ();
9785 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9786 return 1;
9787 fprintf (f, "%lu\n", i);
9789 return ferror (f) || fclose (f) != 0;
9792 return 0;
9794 _ACEOF
9795 rm -f conftest$ac_exeext
9796 if { (ac_try="$ac_link"
9797 case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800 esac
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_link") 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9806 { (case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809 esac
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_try") 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_sizeof_double=`cat conftest.val`
9816 else
9817 echo "$as_me: program exited with status $ac_status" >&5
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ( exit $ac_status )
9822 if test "$ac_cv_type_double" = yes; then
9823 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9824 See \`config.log' for more details." >&5
9825 echo "$as_me: error: cannot compute sizeof (double)
9826 See \`config.log' for more details." >&2;}
9827 { (exit 77); exit 77; }; }
9828 else
9829 ac_cv_sizeof_double=0
9832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9834 rm -f conftest.val
9836 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9837 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9841 cat >>confdefs.h <<_ACEOF
9842 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9843 _ACEOF
9846 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9847 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9848 if test "${ac_cv_type_fpos_t+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h. */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 $ac_includes_default
9858 typedef fpos_t ac__type_new_;
9860 main ()
9862 if ((ac__type_new_ *) 0)
9863 return 0;
9864 if (sizeof (ac__type_new_))
9865 return 0;
9867 return 0;
9869 _ACEOF
9870 rm -f conftest.$ac_objext
9871 if { (ac_try="$ac_compile"
9872 case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9875 esac
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_compile") 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } && {
9884 test -z "$ac_c_werror_flag" ||
9885 test ! -s conftest.err
9886 } && test -s conftest.$ac_objext; then
9887 ac_cv_type_fpos_t=yes
9888 else
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9892 ac_cv_type_fpos_t=no
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9898 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9900 # The cast to long int works around a bug in the HP C Compiler
9901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9903 # This bug is HP SR number 8606223364.
9904 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9905 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9906 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 if test "$cross_compiling" = yes; then
9910 # Depending upon the size, compute the lo and hi bounds.
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h. */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 $ac_includes_default
9918 typedef fpos_t ac__type_sizeof_;
9920 main ()
9922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9923 test_array [0] = 0
9926 return 0;
9928 _ACEOF
9929 rm -f conftest.$ac_objext
9930 if { (ac_try="$ac_compile"
9931 case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_compile") 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && {
9943 test -z "$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 } && test -s conftest.$ac_objext; then
9946 ac_lo=0 ac_mid=0
9947 while :; do
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 $ac_includes_default
9955 typedef fpos_t ac__type_sizeof_;
9957 main ()
9959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9960 test_array [0] = 0
9963 return 0;
9965 _ACEOF
9966 rm -f conftest.$ac_objext
9967 if { (ac_try="$ac_compile"
9968 case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971 esac
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_compile") 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } && {
9980 test -z "$ac_c_werror_flag" ||
9981 test ! -s conftest.err
9982 } && test -s conftest.$ac_objext; then
9983 ac_hi=$ac_mid; break
9984 else
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_lo=`expr $ac_mid + 1`
9989 if test $ac_lo -le $ac_mid; then
9990 ac_lo= ac_hi=
9991 break
9993 ac_mid=`expr 2 '*' $ac_mid + 1`
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997 done
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h. */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 $ac_includes_default
10009 typedef fpos_t ac__type_sizeof_;
10011 main ()
10013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10014 test_array [0] = 0
10017 return 0;
10019 _ACEOF
10020 rm -f conftest.$ac_objext
10021 if { (ac_try="$ac_compile"
10022 case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_compile") 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } && {
10034 test -z "$ac_c_werror_flag" ||
10035 test ! -s conftest.err
10036 } && test -s conftest.$ac_objext; then
10037 ac_hi=-1 ac_mid=-1
10038 while :; do
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 $ac_includes_default
10046 typedef fpos_t ac__type_sizeof_;
10048 main ()
10050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10051 test_array [0] = 0
10054 return 0;
10056 _ACEOF
10057 rm -f conftest.$ac_objext
10058 if { (ac_try="$ac_compile"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_compile") 2>conftest.er1
10065 ac_status=$?
10066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_c_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest.$ac_objext; then
10074 ac_lo=$ac_mid; break
10075 else
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 ac_hi=`expr '(' $ac_mid ')' - 1`
10080 if test $ac_mid -le $ac_hi; then
10081 ac_lo= ac_hi=
10082 break
10084 ac_mid=`expr 2 '*' $ac_mid`
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 done
10089 else
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10093 ac_lo= ac_hi=
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100 # Binary search between lo and hi bounds.
10101 while test "x$ac_lo" != "x$ac_hi"; do
10102 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10103 cat >conftest.$ac_ext <<_ACEOF
10104 /* confdefs.h. */
10105 _ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 $ac_includes_default
10110 typedef fpos_t ac__type_sizeof_;
10112 main ()
10114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10115 test_array [0] = 0
10118 return 0;
10120 _ACEOF
10121 rm -f conftest.$ac_objext
10122 if { (ac_try="$ac_compile"
10123 case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_compile") 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest.$ac_objext; then
10138 ac_hi=$ac_mid
10139 else
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_lo=`expr '(' $ac_mid ')' + 1`
10146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147 done
10148 case $ac_lo in
10149 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10150 '') if test "$ac_cv_type_fpos_t" = yes; then
10151 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10152 See \`config.log' for more details." >&5
10153 echo "$as_me: error: cannot compute sizeof (fpos_t)
10154 See \`config.log' for more details." >&2;}
10155 { (exit 77); exit 77; }; }
10156 else
10157 ac_cv_sizeof_fpos_t=0
10158 fi ;;
10159 esac
10160 else
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h. */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 $ac_includes_default
10168 typedef fpos_t ac__type_sizeof_;
10169 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10170 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10171 #include <stdio.h>
10172 #include <stdlib.h>
10174 main ()
10177 FILE *f = fopen ("conftest.val", "w");
10178 if (! f)
10179 return 1;
10180 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10182 long int i = longval ();
10183 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10184 return 1;
10185 fprintf (f, "%ld\n", i);
10187 else
10189 unsigned long int i = ulongval ();
10190 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10191 return 1;
10192 fprintf (f, "%lu\n", i);
10194 return ferror (f) || fclose (f) != 0;
10197 return 0;
10199 _ACEOF
10200 rm -f conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10211 { (case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_try") 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_sizeof_fpos_t=`cat conftest.val`
10221 else
10222 echo "$as_me: program exited with status $ac_status" >&5
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ( exit $ac_status )
10227 if test "$ac_cv_type_fpos_t" = yes; then
10228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10229 See \`config.log' for more details." >&5
10230 echo "$as_me: error: cannot compute sizeof (fpos_t)
10231 See \`config.log' for more details." >&2;}
10232 { (exit 77); exit 77; }; }
10233 else
10234 ac_cv_sizeof_fpos_t=0
10237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10239 rm -f conftest.val
10241 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10242 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10246 cat >>confdefs.h <<_ACEOF
10247 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10248 _ACEOF
10251 { echo "$as_me:$LINENO: checking for size_t" >&5
10252 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10253 if test "${ac_cv_type_size_t+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h. */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 $ac_includes_default
10263 typedef size_t ac__type_new_;
10265 main ()
10267 if ((ac__type_new_ *) 0)
10268 return 0;
10269 if (sizeof (ac__type_new_))
10270 return 0;
10272 return 0;
10274 _ACEOF
10275 rm -f conftest.$ac_objext
10276 if { (ac_try="$ac_compile"
10277 case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10280 esac
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_compile") 2>conftest.er1
10283 ac_status=$?
10284 grep -v '^ *+' conftest.er1 >conftest.err
10285 rm -f conftest.er1
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && {
10289 test -z "$ac_c_werror_flag" ||
10290 test ! -s conftest.err
10291 } && test -s conftest.$ac_objext; then
10292 ac_cv_type_size_t=yes
10293 else
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_cv_type_size_t=no
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10302 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10303 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10305 # The cast to long int works around a bug in the HP C Compiler
10306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10308 # This bug is HP SR number 8606223364.
10309 { echo "$as_me:$LINENO: checking size of size_t" >&5
10310 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10311 if test "${ac_cv_sizeof_size_t+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314 if test "$cross_compiling" = yes; then
10315 # Depending upon the size, compute the lo and hi bounds.
10316 cat >conftest.$ac_ext <<_ACEOF
10317 /* confdefs.h. */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 $ac_includes_default
10323 typedef size_t ac__type_sizeof_;
10325 main ()
10327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10328 test_array [0] = 0
10331 return 0;
10333 _ACEOF
10334 rm -f conftest.$ac_objext
10335 if { (ac_try="$ac_compile"
10336 case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10339 esac
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_compile") 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && {
10348 test -z "$ac_c_werror_flag" ||
10349 test ! -s conftest.err
10350 } && test -s conftest.$ac_objext; then
10351 ac_lo=0 ac_mid=0
10352 while :; do
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 $ac_includes_default
10360 typedef size_t ac__type_sizeof_;
10362 main ()
10364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10365 test_array [0] = 0
10368 return 0;
10370 _ACEOF
10371 rm -f conftest.$ac_objext
10372 if { (ac_try="$ac_compile"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_compile") 2>conftest.er1
10379 ac_status=$?
10380 grep -v '^ *+' conftest.er1 >conftest.err
10381 rm -f conftest.er1
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && {
10385 test -z "$ac_c_werror_flag" ||
10386 test ! -s conftest.err
10387 } && test -s conftest.$ac_objext; then
10388 ac_hi=$ac_mid; break
10389 else
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10393 ac_lo=`expr $ac_mid + 1`
10394 if test $ac_lo -le $ac_mid; then
10395 ac_lo= ac_hi=
10396 break
10398 ac_mid=`expr 2 '*' $ac_mid + 1`
10401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402 done
10403 else
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h. */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 $ac_includes_default
10414 typedef size_t ac__type_sizeof_;
10416 main ()
10418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10419 test_array [0] = 0
10422 return 0;
10424 _ACEOF
10425 rm -f conftest.$ac_objext
10426 if { (ac_try="$ac_compile"
10427 case "(($ac_try" in
10428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10430 esac
10431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432 (eval "$ac_compile") 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } && {
10439 test -z "$ac_c_werror_flag" ||
10440 test ! -s conftest.err
10441 } && test -s conftest.$ac_objext; then
10442 ac_hi=-1 ac_mid=-1
10443 while :; do
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h. */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 $ac_includes_default
10451 typedef size_t ac__type_sizeof_;
10453 main ()
10455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10456 test_array [0] = 0
10459 return 0;
10461 _ACEOF
10462 rm -f conftest.$ac_objext
10463 if { (ac_try="$ac_compile"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_compile") 2>conftest.er1
10470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest.$ac_objext; then
10479 ac_lo=$ac_mid; break
10480 else
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10484 ac_hi=`expr '(' $ac_mid ')' - 1`
10485 if test $ac_mid -le $ac_hi; then
10486 ac_lo= ac_hi=
10487 break
10489 ac_mid=`expr 2 '*' $ac_mid`
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 done
10494 else
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ac_lo= ac_hi=
10501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 # Binary search between lo and hi bounds.
10506 while test "x$ac_lo" != "x$ac_hi"; do
10507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 $ac_includes_default
10515 typedef size_t ac__type_sizeof_;
10517 main ()
10519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10520 test_array [0] = 0
10523 return 0;
10525 _ACEOF
10526 rm -f conftest.$ac_objext
10527 if { (ac_try="$ac_compile"
10528 case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_compile") 2>conftest.er1
10534 ac_status=$?
10535 grep -v '^ *+' conftest.er1 >conftest.err
10536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } && {
10540 test -z "$ac_c_werror_flag" ||
10541 test ! -s conftest.err
10542 } && test -s conftest.$ac_objext; then
10543 ac_hi=$ac_mid
10544 else
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_lo=`expr '(' $ac_mid ')' + 1`
10551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10552 done
10553 case $ac_lo in
10554 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10555 '') if test "$ac_cv_type_size_t" = yes; then
10556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10557 See \`config.log' for more details." >&5
10558 echo "$as_me: error: cannot compute sizeof (size_t)
10559 See \`config.log' for more details." >&2;}
10560 { (exit 77); exit 77; }; }
10561 else
10562 ac_cv_sizeof_size_t=0
10563 fi ;;
10564 esac
10565 else
10566 cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h. */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 $ac_includes_default
10573 typedef size_t ac__type_sizeof_;
10574 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10575 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10576 #include <stdio.h>
10577 #include <stdlib.h>
10579 main ()
10582 FILE *f = fopen ("conftest.val", "w");
10583 if (! f)
10584 return 1;
10585 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10587 long int i = longval ();
10588 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10589 return 1;
10590 fprintf (f, "%ld\n", i);
10592 else
10594 unsigned long int i = ulongval ();
10595 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10596 return 1;
10597 fprintf (f, "%lu\n", i);
10599 return ferror (f) || fclose (f) != 0;
10602 return 0;
10604 _ACEOF
10605 rm -f conftest$ac_exeext
10606 if { (ac_try="$ac_link"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_link") 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10625 ac_cv_sizeof_size_t=`cat conftest.val`
10626 else
10627 echo "$as_me: program exited with status $ac_status" >&5
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ( exit $ac_status )
10632 if test "$ac_cv_type_size_t" = yes; then
10633 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10634 See \`config.log' for more details." >&5
10635 echo "$as_me: error: cannot compute sizeof (size_t)
10636 See \`config.log' for more details." >&2;}
10637 { (exit 77); exit 77; }; }
10638 else
10639 ac_cv_sizeof_size_t=0
10642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10644 rm -f conftest.val
10646 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10647 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10651 cat >>confdefs.h <<_ACEOF
10652 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10653 _ACEOF
10656 { echo "$as_me:$LINENO: checking for pid_t" >&5
10657 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10658 if test "${ac_cv_type_pid_t+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 $ac_includes_default
10668 typedef pid_t ac__type_new_;
10670 main ()
10672 if ((ac__type_new_ *) 0)
10673 return 0;
10674 if (sizeof (ac__type_new_))
10675 return 0;
10677 return 0;
10679 _ACEOF
10680 rm -f conftest.$ac_objext
10681 if { (ac_try="$ac_compile"
10682 case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10685 esac
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_compile") 2>conftest.er1
10688 ac_status=$?
10689 grep -v '^ *+' conftest.er1 >conftest.err
10690 rm -f conftest.er1
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } && {
10694 test -z "$ac_c_werror_flag" ||
10695 test ! -s conftest.err
10696 } && test -s conftest.$ac_objext; then
10697 ac_cv_type_pid_t=yes
10698 else
10699 echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10702 ac_cv_type_pid_t=no
10705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10708 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10710 # The cast to long int works around a bug in the HP C Compiler
10711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10713 # This bug is HP SR number 8606223364.
10714 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10715 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10716 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719 if test "$cross_compiling" = yes; then
10720 # Depending upon the size, compute the lo and hi bounds.
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h. */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 $ac_includes_default
10728 typedef pid_t ac__type_sizeof_;
10730 main ()
10732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10733 test_array [0] = 0
10736 return 0;
10738 _ACEOF
10739 rm -f conftest.$ac_objext
10740 if { (ac_try="$ac_compile"
10741 case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_compile") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest.$ac_objext; then
10756 ac_lo=0 ac_mid=0
10757 while :; do
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h. */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 $ac_includes_default
10765 typedef pid_t ac__type_sizeof_;
10767 main ()
10769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10770 test_array [0] = 0
10773 return 0;
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_compile") 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest.$ac_objext; then
10793 ac_hi=$ac_mid; break
10794 else
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_lo=`expr $ac_mid + 1`
10799 if test $ac_lo -le $ac_mid; then
10800 ac_lo= ac_hi=
10801 break
10803 ac_mid=`expr 2 '*' $ac_mid + 1`
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 done
10808 else
10809 echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h. */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 $ac_includes_default
10819 typedef pid_t ac__type_sizeof_;
10821 main ()
10823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10824 test_array [0] = 0
10827 return 0;
10829 _ACEOF
10830 rm -f conftest.$ac_objext
10831 if { (ac_try="$ac_compile"
10832 case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10835 esac
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_compile") 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } && {
10844 test -z "$ac_c_werror_flag" ||
10845 test ! -s conftest.err
10846 } && test -s conftest.$ac_objext; then
10847 ac_hi=-1 ac_mid=-1
10848 while :; do
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h. */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 $ac_includes_default
10856 typedef pid_t ac__type_sizeof_;
10858 main ()
10860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10861 test_array [0] = 0
10864 return 0;
10866 _ACEOF
10867 rm -f conftest.$ac_objext
10868 if { (ac_try="$ac_compile"
10869 case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_compile") 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest.$ac_objext; then
10884 ac_lo=$ac_mid; break
10885 else
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_hi=`expr '(' $ac_mid ')' - 1`
10890 if test $ac_mid -le $ac_hi; then
10891 ac_lo= ac_hi=
10892 break
10894 ac_mid=`expr 2 '*' $ac_mid`
10897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898 done
10899 else
10900 echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10903 ac_lo= ac_hi=
10906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10910 # Binary search between lo and hi bounds.
10911 while test "x$ac_lo" != "x$ac_hi"; do
10912 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 $ac_includes_default
10920 typedef pid_t ac__type_sizeof_;
10922 main ()
10924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10925 test_array [0] = 0
10928 return 0;
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_compile") 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } && {
10945 test -z "$ac_c_werror_flag" ||
10946 test ! -s conftest.err
10947 } && test -s conftest.$ac_objext; then
10948 ac_hi=$ac_mid
10949 else
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10953 ac_lo=`expr '(' $ac_mid ')' + 1`
10956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10957 done
10958 case $ac_lo in
10959 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10960 '') if test "$ac_cv_type_pid_t" = yes; then
10961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10962 See \`config.log' for more details." >&5
10963 echo "$as_me: error: cannot compute sizeof (pid_t)
10964 See \`config.log' for more details." >&2;}
10965 { (exit 77); exit 77; }; }
10966 else
10967 ac_cv_sizeof_pid_t=0
10968 fi ;;
10969 esac
10970 else
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 $ac_includes_default
10978 typedef pid_t ac__type_sizeof_;
10979 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10980 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10981 #include <stdio.h>
10982 #include <stdlib.h>
10984 main ()
10987 FILE *f = fopen ("conftest.val", "w");
10988 if (! f)
10989 return 1;
10990 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10992 long int i = longval ();
10993 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10994 return 1;
10995 fprintf (f, "%ld\n", i);
10997 else
10999 unsigned long int i = ulongval ();
11000 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11001 return 1;
11002 fprintf (f, "%lu\n", i);
11004 return ferror (f) || fclose (f) != 0;
11007 return 0;
11009 _ACEOF
11010 rm -f conftest$ac_exeext
11011 if { (ac_try="$ac_link"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11021 { (case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11024 esac
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_try") 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 ac_cv_sizeof_pid_t=`cat conftest.val`
11031 else
11032 echo "$as_me: program exited with status $ac_status" >&5
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ( exit $ac_status )
11037 if test "$ac_cv_type_pid_t" = yes; then
11038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11039 See \`config.log' for more details." >&5
11040 echo "$as_me: error: cannot compute sizeof (pid_t)
11041 See \`config.log' for more details." >&2;}
11042 { (exit 77); exit 77; }; }
11043 else
11044 ac_cv_sizeof_pid_t=0
11047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11049 rm -f conftest.val
11051 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11052 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11056 cat >>confdefs.h <<_ACEOF
11057 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11058 _ACEOF
11062 { echo "$as_me:$LINENO: checking for long long support" >&5
11063 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11064 have_long_long=no
11065 cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h. */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11073 main ()
11075 long long x; x = (long long)0;
11077 return 0;
11079 _ACEOF
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085 esac
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_c_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest.$ac_objext; then
11099 cat >>confdefs.h <<\_ACEOF
11100 #define HAVE_LONG_LONG 1
11101 _ACEOF
11103 have_long_long=yes
11105 else
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11114 echo "${ECHO_T}$have_long_long" >&6; }
11115 if test "$have_long_long" = yes ; then
11116 { echo "$as_me:$LINENO: checking for long long" >&5
11117 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11118 if test "${ac_cv_type_long_long+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121 cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h. */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 $ac_includes_default
11128 typedef long long ac__type_new_;
11130 main ()
11132 if ((ac__type_new_ *) 0)
11133 return 0;
11134 if (sizeof (ac__type_new_))
11135 return 0;
11137 return 0;
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_compile") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest.$ac_objext; then
11157 ac_cv_type_long_long=yes
11158 else
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 ac_cv_type_long_long=no
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11168 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11170 # The cast to long int works around a bug in the HP C Compiler
11171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11173 # This bug is HP SR number 8606223364.
11174 { echo "$as_me:$LINENO: checking size of long long" >&5
11175 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11176 if test "${ac_cv_sizeof_long_long+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179 if test "$cross_compiling" = yes; then
11180 # Depending upon the size, compute the lo and hi bounds.
11181 cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h. */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 $ac_includes_default
11188 typedef long long ac__type_sizeof_;
11190 main ()
11192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11193 test_array [0] = 0
11196 return 0;
11198 _ACEOF
11199 rm -f conftest.$ac_objext
11200 if { (ac_try="$ac_compile"
11201 case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204 esac
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_compile") 2>conftest.er1
11207 ac_status=$?
11208 grep -v '^ *+' conftest.er1 >conftest.err
11209 rm -f conftest.er1
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && {
11213 test -z "$ac_c_werror_flag" ||
11214 test ! -s conftest.err
11215 } && test -s conftest.$ac_objext; then
11216 ac_lo=0 ac_mid=0
11217 while :; do
11218 cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h. */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 $ac_includes_default
11225 typedef long long ac__type_sizeof_;
11227 main ()
11229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11230 test_array [0] = 0
11233 return 0;
11235 _ACEOF
11236 rm -f conftest.$ac_objext
11237 if { (ac_try="$ac_compile"
11238 case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11241 esac
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_compile") 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && {
11250 test -z "$ac_c_werror_flag" ||
11251 test ! -s conftest.err
11252 } && test -s conftest.$ac_objext; then
11253 ac_hi=$ac_mid; break
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_lo=`expr $ac_mid + 1`
11259 if test $ac_lo -le $ac_mid; then
11260 ac_lo= ac_hi=
11261 break
11263 ac_mid=`expr 2 '*' $ac_mid + 1`
11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11267 done
11268 else
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h. */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 $ac_includes_default
11279 typedef long long ac__type_sizeof_;
11281 main ()
11283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11284 test_array [0] = 0
11287 return 0;
11289 _ACEOF
11290 rm -f conftest.$ac_objext
11291 if { (ac_try="$ac_compile"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && {
11304 test -z "$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 } && test -s conftest.$ac_objext; then
11307 ac_hi=-1 ac_mid=-1
11308 while :; do
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 $ac_includes_default
11316 typedef long long ac__type_sizeof_;
11318 main ()
11320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11321 test_array [0] = 0
11324 return 0;
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest.$ac_objext; then
11344 ac_lo=$ac_mid; break
11345 else
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 ac_hi=`expr '(' $ac_mid ')' - 1`
11350 if test $ac_mid -le $ac_hi; then
11351 ac_lo= ac_hi=
11352 break
11354 ac_mid=`expr 2 '*' $ac_mid`
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 done
11359 else
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 ac_lo= ac_hi=
11366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 # Binary search between lo and hi bounds.
11371 while test "x$ac_lo" != "x$ac_hi"; do
11372 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11373 cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h. */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 $ac_includes_default
11380 typedef long long ac__type_sizeof_;
11382 main ()
11384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11385 test_array [0] = 0
11388 return 0;
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest.$ac_objext; then
11408 ac_hi=$ac_mid
11409 else
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11413 ac_lo=`expr '(' $ac_mid ')' + 1`
11416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11417 done
11418 case $ac_lo in
11419 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11420 '') if test "$ac_cv_type_long_long" = yes; then
11421 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11422 See \`config.log' for more details." >&5
11423 echo "$as_me: error: cannot compute sizeof (long long)
11424 See \`config.log' for more details." >&2;}
11425 { (exit 77); exit 77; }; }
11426 else
11427 ac_cv_sizeof_long_long=0
11428 fi ;;
11429 esac
11430 else
11431 cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h. */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 $ac_includes_default
11438 typedef long long ac__type_sizeof_;
11439 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11440 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11441 #include <stdio.h>
11442 #include <stdlib.h>
11444 main ()
11447 FILE *f = fopen ("conftest.val", "w");
11448 if (! f)
11449 return 1;
11450 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11452 long int i = longval ();
11453 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11454 return 1;
11455 fprintf (f, "%ld\n", i);
11457 else
11459 unsigned long int i = ulongval ();
11460 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11461 return 1;
11462 fprintf (f, "%lu\n", i);
11464 return ferror (f) || fclose (f) != 0;
11467 return 0;
11469 _ACEOF
11470 rm -f conftest$ac_exeext
11471 if { (ac_try="$ac_link"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475 esac
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_link") 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11481 { (case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11484 esac
11485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_try") 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_cv_sizeof_long_long=`cat conftest.val`
11491 else
11492 echo "$as_me: program exited with status $ac_status" >&5
11493 echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11496 ( exit $ac_status )
11497 if test "$ac_cv_type_long_long" = yes; then
11498 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11499 See \`config.log' for more details." >&5
11500 echo "$as_me: error: cannot compute sizeof (long long)
11501 See \`config.log' for more details." >&2;}
11502 { (exit 77); exit 77; }; }
11503 else
11504 ac_cv_sizeof_long_long=0
11507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11509 rm -f conftest.val
11511 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11512 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11516 cat >>confdefs.h <<_ACEOF
11517 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11518 _ACEOF
11523 { echo "$as_me:$LINENO: checking for long double support" >&5
11524 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11525 have_long_double=no
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11534 main ()
11536 long double x; x = (long double)0;
11538 return 0;
11540 _ACEOF
11541 rm -f conftest.$ac_objext
11542 if { (ac_try="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_compile") 2>conftest.er1
11549 ac_status=$?
11550 grep -v '^ *+' conftest.er1 >conftest.err
11551 rm -f conftest.er1
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } && {
11555 test -z "$ac_c_werror_flag" ||
11556 test ! -s conftest.err
11557 } && test -s conftest.$ac_objext; then
11560 cat >>confdefs.h <<\_ACEOF
11561 #define HAVE_LONG_DOUBLE 1
11562 _ACEOF
11564 have_long_double=yes
11566 else
11567 echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11575 echo "${ECHO_T}$have_long_double" >&6; }
11576 if test "$have_long_double" = yes ; then
11577 { echo "$as_me:$LINENO: checking for long double" >&5
11578 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11579 if test "${ac_cv_type_long_double+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 else
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h. */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 $ac_includes_default
11589 typedef long double ac__type_new_;
11591 main ()
11593 if ((ac__type_new_ *) 0)
11594 return 0;
11595 if (sizeof (ac__type_new_))
11596 return 0;
11598 return 0;
11600 _ACEOF
11601 rm -f conftest.$ac_objext
11602 if { (ac_try="$ac_compile"
11603 case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606 esac
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_compile") 2>conftest.er1
11609 ac_status=$?
11610 grep -v '^ *+' conftest.er1 >conftest.err
11611 rm -f conftest.er1
11612 cat conftest.err >&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } && {
11615 test -z "$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11617 } && test -s conftest.$ac_objext; then
11618 ac_cv_type_long_double=yes
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11623 ac_cv_type_long_double=no
11626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11628 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11629 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11631 # The cast to long int works around a bug in the HP C Compiler
11632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11634 # This bug is HP SR number 8606223364.
11635 { echo "$as_me:$LINENO: checking size of long double" >&5
11636 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11637 if test "${ac_cv_sizeof_long_double+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 if test "$cross_compiling" = yes; then
11641 # Depending upon the size, compute the lo and hi bounds.
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 $ac_includes_default
11649 typedef long double ac__type_sizeof_;
11651 main ()
11653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11654 test_array [0] = 0
11657 return 0;
11659 _ACEOF
11660 rm -f conftest.$ac_objext
11661 if { (ac_try="$ac_compile"
11662 case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_compile") 2>conftest.er1
11668 ac_status=$?
11669 grep -v '^ *+' conftest.er1 >conftest.err
11670 rm -f conftest.er1
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } && {
11674 test -z "$ac_c_werror_flag" ||
11675 test ! -s conftest.err
11676 } && test -s conftest.$ac_objext; then
11677 ac_lo=0 ac_mid=0
11678 while :; do
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 $ac_includes_default
11686 typedef long double ac__type_sizeof_;
11688 main ()
11690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11691 test_array [0] = 0
11694 return 0;
11696 _ACEOF
11697 rm -f conftest.$ac_objext
11698 if { (ac_try="$ac_compile"
11699 case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11702 esac
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_compile") 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } && {
11711 test -z "$ac_c_werror_flag" ||
11712 test ! -s conftest.err
11713 } && test -s conftest.$ac_objext; then
11714 ac_hi=$ac_mid; break
11715 else
11716 echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11719 ac_lo=`expr $ac_mid + 1`
11720 if test $ac_lo -le $ac_mid; then
11721 ac_lo= ac_hi=
11722 break
11724 ac_mid=`expr 2 '*' $ac_mid + 1`
11727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11728 done
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h. */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 $ac_includes_default
11740 typedef long double ac__type_sizeof_;
11742 main ()
11744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11745 test_array [0] = 0
11748 return 0;
11750 _ACEOF
11751 rm -f conftest.$ac_objext
11752 if { (ac_try="$ac_compile"
11753 case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11756 esac
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_compile") 2>conftest.er1
11759 ac_status=$?
11760 grep -v '^ *+' conftest.er1 >conftest.err
11761 rm -f conftest.er1
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } && {
11765 test -z "$ac_c_werror_flag" ||
11766 test ! -s conftest.err
11767 } && test -s conftest.$ac_objext; then
11768 ac_hi=-1 ac_mid=-1
11769 while :; do
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 typedef long double ac__type_sizeof_;
11779 main ()
11781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11782 test_array [0] = 0
11785 return 0;
11787 _ACEOF
11788 rm -f conftest.$ac_objext
11789 if { (ac_try="$ac_compile"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_compile") 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } && {
11802 test -z "$ac_c_werror_flag" ||
11803 test ! -s conftest.err
11804 } && test -s conftest.$ac_objext; then
11805 ac_lo=$ac_mid; break
11806 else
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_hi=`expr '(' $ac_mid ')' - 1`
11811 if test $ac_mid -le $ac_hi; then
11812 ac_lo= ac_hi=
11813 break
11815 ac_mid=`expr 2 '*' $ac_mid`
11818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819 done
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 ac_lo= ac_hi=
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 # Binary search between lo and hi bounds.
11832 while test "x$ac_lo" != "x$ac_hi"; do
11833 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11834 cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h. */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 $ac_includes_default
11841 typedef long double ac__type_sizeof_;
11843 main ()
11845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11846 test_array [0] = 0
11849 return 0;
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (ac_try="$ac_compile"
11854 case "(($ac_try" in
11855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11857 esac
11858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859 (eval "$ac_compile") 2>conftest.er1
11860 ac_status=$?
11861 grep -v '^ *+' conftest.er1 >conftest.err
11862 rm -f conftest.er1
11863 cat conftest.err >&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } && {
11866 test -z "$ac_c_werror_flag" ||
11867 test ! -s conftest.err
11868 } && test -s conftest.$ac_objext; then
11869 ac_hi=$ac_mid
11870 else
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_lo=`expr '(' $ac_mid ')' + 1`
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 done
11879 case $ac_lo in
11880 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11881 '') if test "$ac_cv_type_long_double" = yes; then
11882 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11883 See \`config.log' for more details." >&5
11884 echo "$as_me: error: cannot compute sizeof (long double)
11885 See \`config.log' for more details." >&2;}
11886 { (exit 77); exit 77; }; }
11887 else
11888 ac_cv_sizeof_long_double=0
11889 fi ;;
11890 esac
11891 else
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 $ac_includes_default
11899 typedef long double ac__type_sizeof_;
11900 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11901 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11902 #include <stdio.h>
11903 #include <stdlib.h>
11905 main ()
11908 FILE *f = fopen ("conftest.val", "w");
11909 if (! f)
11910 return 1;
11911 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11913 long int i = longval ();
11914 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11915 return 1;
11916 fprintf (f, "%ld\n", i);
11918 else
11920 unsigned long int i = ulongval ();
11921 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11922 return 1;
11923 fprintf (f, "%lu\n", i);
11925 return ferror (f) || fclose (f) != 0;
11928 return 0;
11930 _ACEOF
11931 rm -f conftest$ac_exeext
11932 if { (ac_try="$ac_link"
11933 case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_link") 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_sizeof_long_double=`cat conftest.val`
11952 else
11953 echo "$as_me: program exited with status $ac_status" >&5
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ( exit $ac_status )
11958 if test "$ac_cv_type_long_double" = yes; then
11959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11960 See \`config.log' for more details." >&5
11961 echo "$as_me: error: cannot compute sizeof (long double)
11962 See \`config.log' for more details." >&2;}
11963 { (exit 77); exit 77; }; }
11964 else
11965 ac_cv_sizeof_long_double=0
11968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11970 rm -f conftest.val
11972 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11973 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11977 cat >>confdefs.h <<_ACEOF
11978 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11979 _ACEOF
11985 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11986 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11987 have_c99_bool=no
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h. */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11996 main ()
11998 _Bool x; x = (_Bool)0;
12000 return 0;
12002 _ACEOF
12003 rm -f conftest.$ac_objext
12004 if { (ac_try="$ac_compile"
12005 case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008 esac
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest.$ac_objext; then
12022 cat >>confdefs.h <<\_ACEOF
12023 #define HAVE_C99_BOOL 1
12024 _ACEOF
12026 have_c99_bool=yes
12028 else
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12037 echo "${ECHO_T}$have_c99_bool" >&6; }
12038 if test "$have_c99_bool" = yes ; then
12039 { echo "$as_me:$LINENO: checking for _Bool" >&5
12040 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12041 if test "${ac_cv_type__Bool+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044 cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h. */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 $ac_includes_default
12051 typedef _Bool ac__type_new_;
12053 main ()
12055 if ((ac__type_new_ *) 0)
12056 return 0;
12057 if (sizeof (ac__type_new_))
12058 return 0;
12060 return 0;
12062 _ACEOF
12063 rm -f conftest.$ac_objext
12064 if { (ac_try="$ac_compile"
12065 case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12068 esac
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_compile") 2>conftest.er1
12071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } && {
12077 test -z "$ac_c_werror_flag" ||
12078 test ! -s conftest.err
12079 } && test -s conftest.$ac_objext; then
12080 ac_cv_type__Bool=yes
12081 else
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12085 ac_cv_type__Bool=no
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12091 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12093 # The cast to long int works around a bug in the HP C Compiler
12094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12096 # This bug is HP SR number 8606223364.
12097 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12098 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12099 if test "${ac_cv_sizeof__Bool+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102 if test "$cross_compiling" = yes; then
12103 # Depending upon the size, compute the lo and hi bounds.
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 $ac_includes_default
12111 typedef _Bool ac__type_sizeof_;
12113 main ()
12115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12116 test_array [0] = 0
12119 return 0;
12121 _ACEOF
12122 rm -f conftest.$ac_objext
12123 if { (ac_try="$ac_compile"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_compile") 2>conftest.er1
12130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } && {
12136 test -z "$ac_c_werror_flag" ||
12137 test ! -s conftest.err
12138 } && test -s conftest.$ac_objext; then
12139 ac_lo=0 ac_mid=0
12140 while :; do
12141 cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h. */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 $ac_includes_default
12148 typedef _Bool ac__type_sizeof_;
12150 main ()
12152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12153 test_array [0] = 0
12156 return 0;
12158 _ACEOF
12159 rm -f conftest.$ac_objext
12160 if { (ac_try="$ac_compile"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_compile") 2>conftest.er1
12167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } && {
12173 test -z "$ac_c_werror_flag" ||
12174 test ! -s conftest.err
12175 } && test -s conftest.$ac_objext; then
12176 ac_hi=$ac_mid; break
12177 else
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_lo=`expr $ac_mid + 1`
12182 if test $ac_lo -le $ac_mid; then
12183 ac_lo= ac_hi=
12184 break
12186 ac_mid=`expr 2 '*' $ac_mid + 1`
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 done
12191 else
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h. */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12201 $ac_includes_default
12202 typedef _Bool ac__type_sizeof_;
12204 main ()
12206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12207 test_array [0] = 0
12210 return 0;
12212 _ACEOF
12213 rm -f conftest.$ac_objext
12214 if { (ac_try="$ac_compile"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_compile") 2>conftest.er1
12221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest.$ac_objext; then
12230 ac_hi=-1 ac_mid=-1
12231 while :; do
12232 cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h. */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 $ac_includes_default
12239 typedef _Bool ac__type_sizeof_;
12241 main ()
12243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12244 test_array [0] = 0
12247 return 0;
12249 _ACEOF
12250 rm -f conftest.$ac_objext
12251 if { (ac_try="$ac_compile"
12252 case "(($ac_try" in
12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254 *) ac_try_echo=$ac_try;;
12255 esac
12256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257 (eval "$ac_compile") 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } && {
12264 test -z "$ac_c_werror_flag" ||
12265 test ! -s conftest.err
12266 } && test -s conftest.$ac_objext; then
12267 ac_lo=$ac_mid; break
12268 else
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_hi=`expr '(' $ac_mid ')' - 1`
12273 if test $ac_mid -le $ac_hi; then
12274 ac_lo= ac_hi=
12275 break
12277 ac_mid=`expr 2 '*' $ac_mid`
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281 done
12282 else
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 ac_lo= ac_hi=
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293 # Binary search between lo and hi bounds.
12294 while test "x$ac_lo" != "x$ac_hi"; do
12295 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12296 cat >conftest.$ac_ext <<_ACEOF
12297 /* confdefs.h. */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 $ac_includes_default
12303 typedef _Bool ac__type_sizeof_;
12305 main ()
12307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12308 test_array [0] = 0
12311 return 0;
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (ac_try="$ac_compile"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_compile") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest.$ac_objext; then
12331 ac_hi=$ac_mid
12332 else
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_lo=`expr '(' $ac_mid ')' + 1`
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 done
12341 case $ac_lo in
12342 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12343 '') if test "$ac_cv_type__Bool" = yes; then
12344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12345 See \`config.log' for more details." >&5
12346 echo "$as_me: error: cannot compute sizeof (_Bool)
12347 See \`config.log' for more details." >&2;}
12348 { (exit 77); exit 77; }; }
12349 else
12350 ac_cv_sizeof__Bool=0
12351 fi ;;
12352 esac
12353 else
12354 cat >conftest.$ac_ext <<_ACEOF
12355 /* confdefs.h. */
12356 _ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12360 $ac_includes_default
12361 typedef _Bool ac__type_sizeof_;
12362 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12363 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12364 #include <stdio.h>
12365 #include <stdlib.h>
12367 main ()
12370 FILE *f = fopen ("conftest.val", "w");
12371 if (! f)
12372 return 1;
12373 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12375 long int i = longval ();
12376 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12377 return 1;
12378 fprintf (f, "%ld\n", i);
12380 else
12382 unsigned long int i = ulongval ();
12383 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12384 return 1;
12385 fprintf (f, "%lu\n", i);
12387 return ferror (f) || fclose (f) != 0;
12390 return 0;
12392 _ACEOF
12393 rm -f conftest$ac_exeext
12394 if { (ac_try="$ac_link"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398 esac
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_link") 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12404 { (case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407 esac
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_try") 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_cv_sizeof__Bool=`cat conftest.val`
12414 else
12415 echo "$as_me: program exited with status $ac_status" >&5
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ( exit $ac_status )
12420 if test "$ac_cv_type__Bool" = yes; then
12421 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12422 See \`config.log' for more details." >&5
12423 echo "$as_me: error: cannot compute sizeof (_Bool)
12424 See \`config.log' for more details." >&2;}
12425 { (exit 77); exit 77; }; }
12426 else
12427 ac_cv_sizeof__Bool=0
12430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12432 rm -f conftest.val
12434 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12435 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12439 cat >>confdefs.h <<_ACEOF
12440 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12441 _ACEOF
12446 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12447 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12448 if test "${ac_cv_type_uintptr_t+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h. */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457 #ifdef HAVE_STDINT_H
12458 #include <stdint.h>
12459 #endif
12461 typedef uintptr_t ac__type_new_;
12463 main ()
12465 if ((ac__type_new_ *) 0)
12466 return 0;
12467 if (sizeof (ac__type_new_))
12468 return 0;
12470 return 0;
12472 _ACEOF
12473 rm -f conftest.$ac_objext
12474 if { (ac_try="$ac_compile"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_compile") 2>conftest.er1
12481 ac_status=$?
12482 grep -v '^ *+' conftest.er1 >conftest.err
12483 rm -f conftest.er1
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } && {
12487 test -z "$ac_c_werror_flag" ||
12488 test ! -s conftest.err
12489 } && test -s conftest.$ac_objext; then
12490 ac_cv_type_uintptr_t=yes
12491 else
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12495 ac_cv_type_uintptr_t=no
12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12501 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12502 if test $ac_cv_type_uintptr_t = yes; then
12504 cat >>confdefs.h <<_ACEOF
12505 #define HAVE_UINTPTR_T 1
12506 _ACEOF
12508 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12509 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12510 if test "${ac_cv_type_uintptr_t+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12520 typedef uintptr_t ac__type_new_;
12522 main ()
12524 if ((ac__type_new_ *) 0)
12525 return 0;
12526 if (sizeof (ac__type_new_))
12527 return 0;
12529 return 0;
12531 _ACEOF
12532 rm -f conftest.$ac_objext
12533 if { (ac_try="$ac_compile"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12537 esac
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_compile") 2>conftest.er1
12540 ac_status=$?
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } && {
12546 test -z "$ac_c_werror_flag" ||
12547 test ! -s conftest.err
12548 } && test -s conftest.$ac_objext; then
12549 ac_cv_type_uintptr_t=yes
12550 else
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 ac_cv_type_uintptr_t=no
12557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12560 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12562 # The cast to long int works around a bug in the HP C Compiler
12563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12565 # This bug is HP SR number 8606223364.
12566 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12567 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12568 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571 if test "$cross_compiling" = yes; then
12572 # Depending upon the size, compute the lo and hi bounds.
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 $ac_includes_default
12580 typedef uintptr_t ac__type_sizeof_;
12582 main ()
12584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12585 test_array [0] = 0
12588 return 0;
12590 _ACEOF
12591 rm -f conftest.$ac_objext
12592 if { (ac_try="$ac_compile"
12593 case "(($ac_try" in
12594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12595 *) ac_try_echo=$ac_try;;
12596 esac
12597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12598 (eval "$ac_compile") 2>conftest.er1
12599 ac_status=$?
12600 grep -v '^ *+' conftest.er1 >conftest.err
12601 rm -f conftest.er1
12602 cat conftest.err >&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } && {
12605 test -z "$ac_c_werror_flag" ||
12606 test ! -s conftest.err
12607 } && test -s conftest.$ac_objext; then
12608 ac_lo=0 ac_mid=0
12609 while :; do
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h. */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 $ac_includes_default
12617 typedef uintptr_t ac__type_sizeof_;
12619 main ()
12621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12622 test_array [0] = 0
12625 return 0;
12627 _ACEOF
12628 rm -f conftest.$ac_objext
12629 if { (ac_try="$ac_compile"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_compile") 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } && {
12642 test -z "$ac_c_werror_flag" ||
12643 test ! -s conftest.err
12644 } && test -s conftest.$ac_objext; then
12645 ac_hi=$ac_mid; break
12646 else
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 ac_lo=`expr $ac_mid + 1`
12651 if test $ac_lo -le $ac_mid; then
12652 ac_lo= ac_hi=
12653 break
12655 ac_mid=`expr 2 '*' $ac_mid + 1`
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 done
12660 else
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 typedef uintptr_t ac__type_sizeof_;
12673 main ()
12675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12676 test_array [0] = 0
12679 return 0;
12681 _ACEOF
12682 rm -f conftest.$ac_objext
12683 if { (ac_try="$ac_compile"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687 esac
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_compile") 2>conftest.er1
12690 ac_status=$?
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } && {
12696 test -z "$ac_c_werror_flag" ||
12697 test ! -s conftest.err
12698 } && test -s conftest.$ac_objext; then
12699 ac_hi=-1 ac_mid=-1
12700 while :; do
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 $ac_includes_default
12708 typedef uintptr_t ac__type_sizeof_;
12710 main ()
12712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12713 test_array [0] = 0
12716 return 0;
12718 _ACEOF
12719 rm -f conftest.$ac_objext
12720 if { (ac_try="$ac_compile"
12721 case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_compile") 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && {
12733 test -z "$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 } && test -s conftest.$ac_objext; then
12736 ac_lo=$ac_mid; break
12737 else
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ac_hi=`expr '(' $ac_mid ')' - 1`
12742 if test $ac_mid -le $ac_hi; then
12743 ac_lo= ac_hi=
12744 break
12746 ac_mid=`expr 2 '*' $ac_mid`
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 done
12751 else
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ac_lo= ac_hi=
12758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762 # Binary search between lo and hi bounds.
12763 while test "x$ac_lo" != "x$ac_hi"; do
12764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 $ac_includes_default
12772 typedef uintptr_t ac__type_sizeof_;
12774 main ()
12776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12777 test_array [0] = 0
12780 return 0;
12782 _ACEOF
12783 rm -f conftest.$ac_objext
12784 if { (ac_try="$ac_compile"
12785 case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788 esac
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_compile") 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest.$ac_objext; then
12800 ac_hi=$ac_mid
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12805 ac_lo=`expr '(' $ac_mid ')' + 1`
12808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12809 done
12810 case $ac_lo in
12811 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12812 '') if test "$ac_cv_type_uintptr_t" = yes; then
12813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12814 See \`config.log' for more details." >&5
12815 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12816 See \`config.log' for more details." >&2;}
12817 { (exit 77); exit 77; }; }
12818 else
12819 ac_cv_sizeof_uintptr_t=0
12820 fi ;;
12821 esac
12822 else
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 $ac_includes_default
12830 typedef uintptr_t ac__type_sizeof_;
12831 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12832 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12833 #include <stdio.h>
12834 #include <stdlib.h>
12836 main ()
12839 FILE *f = fopen ("conftest.val", "w");
12840 if (! f)
12841 return 1;
12842 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12844 long int i = longval ();
12845 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12846 return 1;
12847 fprintf (f, "%ld\n", i);
12849 else
12851 unsigned long int i = ulongval ();
12852 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12853 return 1;
12854 fprintf (f, "%lu\n", i);
12856 return ferror (f) || fclose (f) != 0;
12859 return 0;
12861 _ACEOF
12862 rm -f conftest$ac_exeext
12863 if { (ac_try="$ac_link"
12864 case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867 esac
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_link") 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12873 { (case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12876 esac
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_try") 2>&5
12879 ac_status=$?
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; }; then
12882 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12883 else
12884 echo "$as_me: program exited with status $ac_status" >&5
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ( exit $ac_status )
12889 if test "$ac_cv_type_uintptr_t" = yes; then
12890 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12891 See \`config.log' for more details." >&5
12892 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12893 See \`config.log' for more details." >&2;}
12894 { (exit 77); exit 77; }; }
12895 else
12896 ac_cv_sizeof_uintptr_t=0
12899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12901 rm -f conftest.val
12903 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12904 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12908 cat >>confdefs.h <<_ACEOF
12909 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12910 _ACEOF
12917 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12918 { echo "$as_me:$LINENO: checking size of off_t" >&5
12919 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12920 if test "${ac_cv_sizeof_off_t+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923 if test "$cross_compiling" = yes; then
12924 ac_cv_sizeof_off_t=4
12925 else
12926 cat >conftest.$ac_ext <<_ACEOF
12927 /* confdefs.h. */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12932 #include <stdio.h>
12933 #include <sys/types.h>
12934 main()
12936 FILE *f=fopen("conftestval", "w");
12937 if (!f) exit(1);
12938 fprintf(f, "%d\n", sizeof(off_t));
12939 exit(0);
12941 _ACEOF
12942 rm -f conftest$ac_exeext
12943 if { (ac_try="$ac_link"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947 esac
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_link") 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12956 esac
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_sizeof_off_t=`cat conftestval`
12963 else
12964 echo "$as_me: program exited with status $ac_status" >&5
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12968 ( exit $ac_status )
12969 ac_cv_sizeof_off_t=0
12971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12978 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12979 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12981 cat >>confdefs.h <<_ACEOF
12982 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12983 _ACEOF
12986 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12987 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12988 if test "$have_long_long" = yes -a \
12989 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12990 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12992 cat >>confdefs.h <<\_ACEOF
12993 #define HAVE_LARGEFILE_SUPPORT 1
12994 _ACEOF
12996 { echo "$as_me:$LINENO: result: yes" >&5
12997 echo "${ECHO_T}yes" >&6; }
12998 else
12999 { echo "$as_me:$LINENO: result: no" >&5
13000 echo "${ECHO_T}no" >&6; }
13003 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13004 { echo "$as_me:$LINENO: checking size of time_t" >&5
13005 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13006 if test "${ac_cv_sizeof_time_t+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009 if test "$cross_compiling" = yes; then
13010 ac_cv_sizeof_time_t=4
13011 else
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h. */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 #include <stdio.h>
13019 #include <time.h>
13020 main()
13022 FILE *f=fopen("conftestval", "w");
13023 if (!f) exit(1);
13024 fprintf(f, "%d\n", sizeof(time_t));
13025 exit(0);
13027 _ACEOF
13028 rm -f conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13033 esac
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_link") 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13039 { (case "(($ac_try" in
13040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041 *) ac_try_echo=$ac_try;;
13042 esac
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044 (eval "$ac_try") 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_sizeof_time_t=`cat conftestval`
13049 else
13050 echo "$as_me: program exited with status $ac_status" >&5
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 ( exit $ac_status )
13055 ac_cv_sizeof_time_t=0
13057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13064 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13065 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13067 cat >>confdefs.h <<_ACEOF
13068 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13069 _ACEOF
13073 # if have pthread_t then define SIZEOF_PTHREAD_T
13074 ac_save_cc="$CC"
13075 if test "$ac_cv_kpthread" = "yes"
13076 then CC="$CC -Kpthread"
13077 elif test "$ac_cv_kthread" = "yes"
13078 then CC="$CC -Kthread"
13079 elif test "$ac_cv_pthread" = "yes"
13080 then CC="$CC -pthread"
13082 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13083 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13084 have_pthread_t=no
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h. */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 #include <pthread.h>
13093 main ()
13095 pthread_t x; x = *(pthread_t*)0;
13097 return 0;
13099 _ACEOF
13100 rm -f conftest.$ac_objext
13101 if { (ac_try="$ac_compile"
13102 case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13105 esac
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_compile") 2>conftest.er1
13108 ac_status=$?
13109 grep -v '^ *+' conftest.er1 >conftest.err
13110 rm -f conftest.er1
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } && {
13114 test -z "$ac_c_werror_flag" ||
13115 test ! -s conftest.err
13116 } && test -s conftest.$ac_objext; then
13117 have_pthread_t=yes
13118 else
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13127 echo "${ECHO_T}$have_pthread_t" >&6; }
13128 if test "$have_pthread_t" = yes ; then
13129 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13130 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13131 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13132 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135 if test "$cross_compiling" = yes; then
13136 ac_cv_sizeof_pthread_t=4
13137 else
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. */
13144 #include <stdio.h>
13145 #include <pthread.h>
13146 main()
13148 FILE *f=fopen("conftestval", "w");
13149 if (!f) exit(1);
13150 fprintf(f, "%d\n", sizeof(pthread_t));
13151 exit(0);
13153 _ACEOF
13154 rm -f conftest$ac_exeext
13155 if { (ac_try="$ac_link"
13156 case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_link") 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13165 { (case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13168 esac
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_try") 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13174 ac_cv_sizeof_pthread_t=`cat conftestval`
13175 else
13176 echo "$as_me: program exited with status $ac_status" >&5
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ( exit $ac_status )
13181 ac_cv_sizeof_pthread_t=0
13183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13190 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13191 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13193 cat >>confdefs.h <<_ACEOF
13194 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13195 _ACEOF
13198 CC="$ac_save_cc"
13203 case $ac_sys_system/$ac_sys_release in
13204 Darwin/[01567]\..*)
13205 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13207 Darwin/*)
13208 OTHER_LIBTOOL_OPT=""
13210 esac
13213 case $ac_sys_system/$ac_sys_release in
13214 Darwin/[01567]\..*)
13215 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13216 if test "${enable_universalsdk}"; then
13218 else
13219 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13221 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13222 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13223 Darwin/*)
13224 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13225 if test ${gcc_version} '<' 4.0
13226 then
13227 LIBTOOL_CRUFT="-lcc_dynamic"
13228 else
13229 LIBTOOL_CRUFT=""
13231 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13232 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13233 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13234 esac
13236 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13237 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13238 if test "$enable_framework"
13239 then
13240 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13241 # -F. is needed to allow linking to the framework while
13242 # in the build location.
13244 cat >>confdefs.h <<\_ACEOF
13245 #define WITH_NEXT_FRAMEWORK 1
13246 _ACEOF
13248 { echo "$as_me:$LINENO: result: yes" >&5
13249 echo "${ECHO_T}yes" >&6; }
13250 else
13251 { echo "$as_me:$LINENO: result: no" >&5
13252 echo "${ECHO_T}no" >&6; }
13255 { echo "$as_me:$LINENO: checking for dyld" >&5
13256 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13257 case $ac_sys_system/$ac_sys_release in
13258 Darwin/*)
13260 cat >>confdefs.h <<\_ACEOF
13261 #define WITH_DYLD 1
13262 _ACEOF
13264 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13265 echo "${ECHO_T}always on for Darwin" >&6; }
13268 { echo "$as_me:$LINENO: result: no" >&5
13269 echo "${ECHO_T}no" >&6; }
13271 esac
13273 # Set info about shared libraries.
13279 # SO is the extension of shared libraries `(including the dot!)
13280 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13281 { echo "$as_me:$LINENO: checking SO" >&5
13282 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13283 if test -z "$SO"
13284 then
13285 case $ac_sys_system in
13286 hp*|HP*)
13287 case `uname -m` in
13288 ia64) SO=.so;;
13289 *) SO=.sl;;
13290 esac
13292 CYGWIN*) SO=.dll;;
13293 *) SO=.so;;
13294 esac
13295 else
13296 # this might also be a termcap variable, see #610332
13297 echo
13298 echo '====================================================================='
13299 echo '+ +'
13300 echo '+ WARNING: You have set SO in your environment. +'
13301 echo '+ Do you really mean to change the extension for shared libraries? +'
13302 echo '+ Continuing in 10 seconds to let you to ponder. +'
13303 echo '+ +'
13304 echo '====================================================================='
13305 sleep 10
13307 { echo "$as_me:$LINENO: result: $SO" >&5
13308 echo "${ECHO_T}$SO" >&6; }
13311 cat >>confdefs.h <<_ACEOF
13312 #define SHLIB_EXT "$SO"
13313 _ACEOF
13315 # LDSHARED is the ld *command* used to create shared library
13316 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13317 # (Shared libraries in this instance are shared modules to be loaded into
13318 # Python, as opposed to building Python itself as a shared library.)
13319 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13320 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13321 if test -z "$LDSHARED"
13322 then
13323 case $ac_sys_system/$ac_sys_release in
13324 AIX*)
13325 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13326 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13328 IRIX/5*) LDSHARED="ld -shared";;
13329 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13330 SunOS/5*)
13331 if test "$GCC" = "yes"
13332 then LDSHARED='$(CC) -shared'
13333 else LDSHARED='$(CC) -G';
13334 fi ;;
13335 hp*|HP*)
13336 if test "$GCC" = "yes"
13337 then LDSHARED='$(CC) -shared'
13338 else LDSHARED='ld -b';
13339 fi ;;
13340 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13341 Darwin/1.3*)
13342 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13343 if test "$enable_framework" ; then
13344 # Link against the framework. All externals should be defined.
13345 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13346 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13347 else
13348 # No framework. Ignore undefined symbols, assuming they come from Python
13349 LDSHARED="$LDSHARED -undefined suppress"
13350 fi ;;
13351 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13352 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13353 if test "$enable_framework" ; then
13354 # Link against the framework. All externals should be defined.
13355 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13356 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13357 else
13358 # No framework, use the Python app as bundle-loader
13359 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13360 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13361 fi ;;
13362 Darwin/*)
13363 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13364 # This allows an extension to be used in any Python
13366 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13367 then
13368 if test "${enable_universalsdk}"; then
13369 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13371 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13372 BLDSHARED="$LDSHARED"
13373 else
13374 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13375 if test "$enable_framework" ; then
13376 # Link against the framework. All externals should be defined.
13377 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13378 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13379 else
13380 # No framework, use the Python app as bundle-loader
13381 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13382 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13386 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13387 BSD/OS*/4*) LDSHARED="gcc -shared";;
13388 FreeBSD*)
13389 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13390 then
13391 LDSHARED="$CC -shared ${LDFLAGS}"
13392 else
13393 LDSHARED="ld -Bshareable ${LDFLAGS}"
13394 fi;;
13395 OpenBSD*)
13396 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13397 then
13398 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13399 else
13400 case `uname -r` in
13401 [01].* | 2.[0-7] | 2.[0-7].*)
13402 LDSHARED="ld -Bshareable ${LDFLAGS}"
13405 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13407 esac
13408 fi;;
13409 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13410 OpenUNIX*|UnixWare*)
13411 if test "$GCC" = "yes"
13412 then LDSHARED='$(CC) -shared'
13413 else LDSHARED='$(CC) -G'
13414 fi;;
13415 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13416 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13417 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13418 atheos*) LDSHARED="gcc -shared";;
13419 *) LDSHARED="ld";;
13420 esac
13422 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13423 echo "${ECHO_T}$LDSHARED" >&6; }
13424 BLDSHARED=${BLDSHARED-$LDSHARED}
13425 # CCSHARED are the C *flags* used to create objects to go into a shared
13426 # library (module) -- this is only needed for a few systems
13427 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13428 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13429 if test -z "$CCSHARED"
13430 then
13431 case $ac_sys_system/$ac_sys_release in
13432 SunOS*) if test "$GCC" = yes;
13433 then CCSHARED="-fPIC";
13434 elif test `uname -p` = sparc;
13435 then CCSHARED="-xcode=pic32";
13436 else CCSHARED="-Kpic";
13437 fi;;
13438 hp*|HP*) if test "$GCC" = yes;
13439 then CCSHARED="-fPIC";
13440 else CCSHARED="+z";
13441 fi;;
13442 Linux*|GNU*) CCSHARED="-fPIC";;
13443 BSD/OS*/4*) CCSHARED="-fpic";;
13444 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13445 OpenUNIX*|UnixWare*)
13446 if test "$GCC" = "yes"
13447 then CCSHARED="-fPIC"
13448 else CCSHARED="-KPIC"
13449 fi;;
13450 SCO_SV*)
13451 if test "$GCC" = "yes"
13452 then CCSHARED="-fPIC"
13453 else CCSHARED="-Kpic -belf"
13454 fi;;
13455 Monterey*) CCSHARED="-G";;
13456 IRIX*/6*) case $CC in
13457 *gcc*) CCSHARED="-shared";;
13458 *) CCSHARED="";;
13459 esac;;
13460 atheos*) CCSHARED="-fPIC";;
13461 esac
13463 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13464 echo "${ECHO_T}$CCSHARED" >&6; }
13465 # LINKFORSHARED are the flags passed to the $(CC) command that links
13466 # the python executable -- this is only needed for a few systems
13467 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13468 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13469 if test -z "$LINKFORSHARED"
13470 then
13471 case $ac_sys_system/$ac_sys_release in
13472 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13473 hp*|HP*)
13474 LINKFORSHARED="-Wl,-E -Wl,+s";;
13475 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13476 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13477 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13478 # -u libsys_s pulls in all symbols in libsys
13479 Darwin/*)
13480 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13481 # which is
13482 # not used by the core itself but which needs to be in the core so
13483 # that dynamically loaded extension modules have access to it.
13484 # -prebind is no longer used, because it actually seems to give a
13485 # slowdown in stead of a speedup, maybe due to the large number of
13486 # dynamic loads Python does.
13488 LINKFORSHARED="$extra_undefs"
13489 if test "$enable_framework"
13490 then
13491 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13493 LINKFORSHARED="$LINKFORSHARED";;
13494 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13495 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13496 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13497 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13498 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13499 then
13500 LINKFORSHARED="-Wl,--export-dynamic"
13501 fi;;
13502 SunOS/5*) case $CC in
13503 *gcc*)
13504 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13505 then
13506 LINKFORSHARED="-Xlinker --export-dynamic"
13507 fi;;
13508 esac;;
13509 CYGWIN*)
13510 if test $enable_shared = "no"
13511 then
13512 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13513 fi;;
13514 QNX*)
13515 # -Wl,-E causes the symbols to be added to the dynamic
13516 # symbol table so that they can be found when a module
13517 # is loaded. -N 2048K causes the stack size to be set
13518 # to 2048 kilobytes so that the stack doesn't overflow
13519 # when running test_compile.py.
13520 LINKFORSHARED='-Wl,-E -N 2048K';;
13521 esac
13523 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13524 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13528 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13529 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13530 if test ! "$LIBRARY" = "$LDLIBRARY"
13531 then
13532 case $ac_sys_system in
13533 CYGWIN*)
13534 # Cygwin needs CCSHARED when building extension DLLs
13535 # but not when building the interpreter DLL.
13536 CFLAGSFORSHARED='';;
13538 CFLAGSFORSHARED='$(CCSHARED)'
13539 esac
13541 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13542 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13544 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13545 # library (with --enable-shared).
13546 # For platforms on which shared libraries are not allowed to have unresolved
13547 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13548 # if it is not required, since it creates a dependency of the shared library
13549 # to LIBS. This, in turn, means that applications linking the shared libpython
13550 # don't need to link LIBS explicitly. The default should be only changed
13551 # on systems where this approach causes problems.
13553 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13554 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13555 case "$ac_sys_system" in
13557 SHLIBS='$(LIBS)';;
13558 esac
13559 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13560 echo "${ECHO_T}$SHLIBS" >&6; }
13563 # checks for libraries
13565 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13566 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570 ac_check_lib_save_LIBS=$LIBS
13571 LIBS="-ldl $LIBS"
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h. */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13579 /* Override any GCC internal prototype to avoid an error.
13580 Use char because int might match the return type of a GCC
13581 builtin and then its argument prototype would still apply. */
13582 #ifdef __cplusplus
13583 extern "C"
13584 #endif
13585 char dlopen ();
13587 main ()
13589 return dlopen ();
13591 return 0;
13593 _ACEOF
13594 rm -f conftest.$ac_objext conftest$ac_exeext
13595 if { (ac_try="$ac_link"
13596 case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13599 esac
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_link") 2>conftest.er1
13602 ac_status=$?
13603 grep -v '^ *+' conftest.er1 >conftest.err
13604 rm -f conftest.er1
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } && {
13608 test -z "$ac_c_werror_flag" ||
13609 test ! -s conftest.err
13610 } && test -s conftest$ac_exeext &&
13611 $as_test_x conftest$ac_exeext; then
13612 ac_cv_lib_dl_dlopen=yes
13613 else
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13617 ac_cv_lib_dl_dlopen=no
13620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13621 conftest$ac_exeext conftest.$ac_ext
13622 LIBS=$ac_check_lib_save_LIBS
13624 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13625 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13626 if test $ac_cv_lib_dl_dlopen = yes; then
13627 cat >>confdefs.h <<_ACEOF
13628 #define HAVE_LIBDL 1
13629 _ACEOF
13631 LIBS="-ldl $LIBS"
13634 # Dynamic linking for SunOS/Solaris and SYSV
13636 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13637 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13638 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641 ac_check_lib_save_LIBS=$LIBS
13642 LIBS="-ldld $LIBS"
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h. */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13650 /* Override any GCC internal prototype to avoid an error.
13651 Use char because int might match the return type of a GCC
13652 builtin and then its argument prototype would still apply. */
13653 #ifdef __cplusplus
13654 extern "C"
13655 #endif
13656 char shl_load ();
13658 main ()
13660 return shl_load ();
13662 return 0;
13664 _ACEOF
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (ac_try="$ac_link"
13667 case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_link") 2>conftest.er1
13673 ac_status=$?
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } && {
13679 test -z "$ac_c_werror_flag" ||
13680 test ! -s conftest.err
13681 } && test -s conftest$ac_exeext &&
13682 $as_test_x conftest$ac_exeext; then
13683 ac_cv_lib_dld_shl_load=yes
13684 else
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13688 ac_cv_lib_dld_shl_load=no
13691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13692 conftest$ac_exeext conftest.$ac_ext
13693 LIBS=$ac_check_lib_save_LIBS
13695 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13696 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13697 if test $ac_cv_lib_dld_shl_load = yes; then
13698 cat >>confdefs.h <<_ACEOF
13699 #define HAVE_LIBDLD 1
13700 _ACEOF
13702 LIBS="-ldld $LIBS"
13705 # Dynamic linking for HP-UX
13707 # only check for sem_init if thread support is requested
13708 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13709 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13710 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13711 if test "${ac_cv_search_sem_init+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714 ac_func_search_save_LIBS=$LIBS
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13722 /* Override any GCC internal prototype to avoid an error.
13723 Use char because int might match the return type of a GCC
13724 builtin and then its argument prototype would still apply. */
13725 #ifdef __cplusplus
13726 extern "C"
13727 #endif
13728 char sem_init ();
13730 main ()
13732 return sem_init ();
13734 return 0;
13736 _ACEOF
13737 for ac_lib in '' pthread rt posix4; do
13738 if test -z "$ac_lib"; then
13739 ac_res="none required"
13740 else
13741 ac_res=-l$ac_lib
13742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13744 rm -f conftest.$ac_objext conftest$ac_exeext
13745 if { (ac_try="$ac_link"
13746 case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13749 esac
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_link") 2>conftest.er1
13752 ac_status=$?
13753 grep -v '^ *+' conftest.er1 >conftest.err
13754 rm -f conftest.er1
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } && {
13758 test -z "$ac_c_werror_flag" ||
13759 test ! -s conftest.err
13760 } && test -s conftest$ac_exeext &&
13761 $as_test_x conftest$ac_exeext; then
13762 ac_cv_search_sem_init=$ac_res
13763 else
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13771 conftest$ac_exeext
13772 if test "${ac_cv_search_sem_init+set}" = set; then
13773 break
13775 done
13776 if test "${ac_cv_search_sem_init+set}" = set; then
13778 else
13779 ac_cv_search_sem_init=no
13781 rm conftest.$ac_ext
13782 LIBS=$ac_func_search_save_LIBS
13784 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13785 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13786 ac_res=$ac_cv_search_sem_init
13787 if test "$ac_res" != no; then
13788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13791 # 'Real Time' functions on Solaris
13792 # posix4 on Solaris 2.6
13793 # pthread (first!) on Linux
13796 # check if we need libintl for locale functions
13797 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13798 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13799 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802 ac_check_lib_save_LIBS=$LIBS
13803 LIBS="-lintl $LIBS"
13804 cat >conftest.$ac_ext <<_ACEOF
13805 /* confdefs.h. */
13806 _ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13811 /* Override any GCC internal prototype to avoid an error.
13812 Use char because int might match the return type of a GCC
13813 builtin and then its argument prototype would still apply. */
13814 #ifdef __cplusplus
13815 extern "C"
13816 #endif
13817 char textdomain ();
13819 main ()
13821 return textdomain ();
13823 return 0;
13825 _ACEOF
13826 rm -f conftest.$ac_objext conftest$ac_exeext
13827 if { (ac_try="$ac_link"
13828 case "(($ac_try" in
13829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830 *) ac_try_echo=$ac_try;;
13831 esac
13832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13833 (eval "$ac_link") 2>conftest.er1
13834 ac_status=$?
13835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } && {
13840 test -z "$ac_c_werror_flag" ||
13841 test ! -s conftest.err
13842 } && test -s conftest$ac_exeext &&
13843 $as_test_x conftest$ac_exeext; then
13844 ac_cv_lib_intl_textdomain=yes
13845 else
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13849 ac_cv_lib_intl_textdomain=no
13852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13853 conftest$ac_exeext conftest.$ac_ext
13854 LIBS=$ac_check_lib_save_LIBS
13856 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13857 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13858 if test $ac_cv_lib_intl_textdomain = yes; then
13860 cat >>confdefs.h <<\_ACEOF
13861 #define WITH_LIBINTL 1
13862 _ACEOF
13867 # checks for system dependent C++ extensions support
13868 case "$ac_sys_system" in
13869 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13870 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13871 cat >conftest.$ac_ext <<_ACEOF
13872 /* confdefs.h. */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 #include "/usr/lpp/xlC/include/load.h"
13879 main ()
13881 loadAndInit("", 0, "")
13883 return 0;
13885 _ACEOF
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (ac_try="$ac_link"
13888 case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13891 esac
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_link") 2>conftest.er1
13894 ac_status=$?
13895 grep -v '^ *+' conftest.er1 >conftest.err
13896 rm -f conftest.er1
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest$ac_exeext &&
13903 $as_test_x conftest$ac_exeext; then
13905 cat >>confdefs.h <<\_ACEOF
13906 #define AIX_GENUINE_CPLUSPLUS 1
13907 _ACEOF
13909 { echo "$as_me:$LINENO: result: yes" >&5
13910 echo "${ECHO_T}yes" >&6; }
13911 else
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 { echo "$as_me:$LINENO: result: no" >&5
13916 echo "${ECHO_T}no" >&6; }
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920 conftest$ac_exeext conftest.$ac_ext;;
13921 *) ;;
13922 esac
13924 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13925 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13926 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13927 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930 ac_check_lib_save_LIBS=$LIBS
13931 LIBS="-lnsl $LIBS"
13932 cat >conftest.$ac_ext <<_ACEOF
13933 /* confdefs.h. */
13934 _ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13942 #ifdef __cplusplus
13943 extern "C"
13944 #endif
13945 char t_open ();
13947 main ()
13949 return t_open ();
13951 return 0;
13953 _ACEOF
13954 rm -f conftest.$ac_objext conftest$ac_exeext
13955 if { (ac_try="$ac_link"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_link") 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } && {
13968 test -z "$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13970 } && test -s conftest$ac_exeext &&
13971 $as_test_x conftest$ac_exeext; then
13972 ac_cv_lib_nsl_t_open=yes
13973 else
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13977 ac_cv_lib_nsl_t_open=no
13980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13981 conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13984 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13985 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13986 if test $ac_cv_lib_nsl_t_open = yes; then
13987 LIBS="-lnsl $LIBS"
13989 # SVR4
13990 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13991 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13992 if test "${ac_cv_lib_socket_socket+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995 ac_check_lib_save_LIBS=$LIBS
13996 LIBS="-lsocket $LIBS $LIBS"
13997 cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h. */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14004 /* Override any GCC internal prototype to avoid an error.
14005 Use char because int might match the return type of a GCC
14006 builtin and then its argument prototype would still apply. */
14007 #ifdef __cplusplus
14008 extern "C"
14009 #endif
14010 char socket ();
14012 main ()
14014 return socket ();
14016 return 0;
14018 _ACEOF
14019 rm -f conftest.$ac_objext conftest$ac_exeext
14020 if { (ac_try="$ac_link"
14021 case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_link") 2>conftest.er1
14027 ac_status=$?
14028 grep -v '^ *+' conftest.er1 >conftest.err
14029 rm -f conftest.er1
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } && {
14033 test -z "$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14035 } && test -s conftest$ac_exeext &&
14036 $as_test_x conftest$ac_exeext; then
14037 ac_cv_lib_socket_socket=yes
14038 else
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_cv_lib_socket_socket=no
14045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14046 conftest$ac_exeext conftest.$ac_ext
14047 LIBS=$ac_check_lib_save_LIBS
14049 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14050 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14051 if test $ac_cv_lib_socket_socket = yes; then
14052 LIBS="-lsocket $LIBS"
14054 # SVR4 sockets
14056 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14057 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14059 # Check whether --with-libs was given.
14060 if test "${with_libs+set}" = set; then
14061 withval=$with_libs;
14062 { echo "$as_me:$LINENO: result: $withval" >&5
14063 echo "${ECHO_T}$withval" >&6; }
14064 LIBS="$withval $LIBS"
14066 else
14067 { echo "$as_me:$LINENO: result: no" >&5
14068 echo "${ECHO_T}no" >&6; }
14072 # Check for use of the system libffi library
14073 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14074 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14076 # Check whether --with-system_ffi was given.
14077 if test "${with_system_ffi+set}" = set; then
14078 withval=$with_system_ffi;
14082 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14083 echo "${ECHO_T}$with_system_ffi" >&6; }
14085 # Determine if signalmodule should be used.
14088 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14089 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14091 # Check whether --with-signal-module was given.
14092 if test "${with_signal_module+set}" = set; then
14093 withval=$with_signal_module;
14097 if test -z "$with_signal_module"
14098 then with_signal_module="yes"
14100 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14101 echo "${ECHO_T}$with_signal_module" >&6; }
14103 if test "${with_signal_module}" = "yes"; then
14104 USE_SIGNAL_MODULE=""
14105 SIGNAL_OBJS=""
14106 else
14107 USE_SIGNAL_MODULE="#"
14108 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14111 # This is used to generate Setup.config
14113 USE_THREAD_MODULE=""
14115 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14116 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14119 # Check whether --with-dec-threads was given.
14120 if test "${with_dec_threads+set}" = set; then
14121 withval=$with_dec_threads;
14122 { echo "$as_me:$LINENO: result: $withval" >&5
14123 echo "${ECHO_T}$withval" >&6; }
14124 LDLAST=-threads
14125 if test "${with_thread+set}" != set; then
14126 with_thread="$withval";
14128 else
14129 { echo "$as_me:$LINENO: result: no" >&5
14130 echo "${ECHO_T}no" >&6; }
14134 # Templates for things AC_DEFINEd more than once.
14135 # For a single AC_DEFINE, no template is needed.
14143 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14144 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14146 # Check whether --with-threads was given.
14147 if test "${with_threads+set}" = set; then
14148 withval=$with_threads;
14152 # --with-thread is deprecated, but check for it anyway
14154 # Check whether --with-thread was given.
14155 if test "${with_thread+set}" = set; then
14156 withval=$with_thread; with_threads=$with_thread
14160 if test -z "$with_threads"
14161 then with_threads="yes"
14163 { echo "$as_me:$LINENO: result: $with_threads" >&5
14164 echo "${ECHO_T}$with_threads" >&6; }
14167 if test "$with_threads" = "no"
14168 then
14169 USE_THREAD_MODULE="#"
14170 elif test "$ac_cv_pthread_is_default" = yes
14171 then
14172 cat >>confdefs.h <<\_ACEOF
14173 #define WITH_THREAD 1
14174 _ACEOF
14176 # Defining _REENTRANT on system with POSIX threads should not hurt.
14177 cat >>confdefs.h <<\_ACEOF
14178 #define _REENTRANT 1
14179 _ACEOF
14181 posix_threads=yes
14182 THREADOBJ="Python/thread.o"
14183 elif test "$ac_cv_kpthread" = "yes"
14184 then
14185 CC="$CC -Kpthread"
14186 if test "$ac_cv_cxx_thread" = "yes"; then
14187 CXX="$CXX -Kpthread"
14189 cat >>confdefs.h <<\_ACEOF
14190 #define WITH_THREAD 1
14191 _ACEOF
14193 posix_threads=yes
14194 THREADOBJ="Python/thread.o"
14195 elif test "$ac_cv_kthread" = "yes"
14196 then
14197 CC="$CC -Kthread"
14198 if test "$ac_cv_cxx_thread" = "yes"; then
14199 CXX="$CXX -Kthread"
14201 cat >>confdefs.h <<\_ACEOF
14202 #define WITH_THREAD 1
14203 _ACEOF
14205 posix_threads=yes
14206 THREADOBJ="Python/thread.o"
14207 elif test "$ac_cv_pthread" = "yes"
14208 then
14209 CC="$CC -pthread"
14210 if test "$ac_cv_cxx_thread" = "yes"; then
14211 CXX="$CXX -pthread"
14213 cat >>confdefs.h <<\_ACEOF
14214 #define WITH_THREAD 1
14215 _ACEOF
14217 posix_threads=yes
14218 THREADOBJ="Python/thread.o"
14219 else
14220 if test ! -z "$with_threads" -a -d "$with_threads"
14221 then LDFLAGS="$LDFLAGS -L$with_threads"
14223 if test ! -z "$withval" -a -d "$withval"
14224 then LDFLAGS="$LDFLAGS -L$withval"
14227 # According to the POSIX spec, a pthreads implementation must
14228 # define _POSIX_THREADS in unistd.h. Some apparently don't
14229 # (e.g. gnu pth with pthread emulation)
14230 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14231 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14232 cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h. */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14239 #include <unistd.h>
14240 #ifdef _POSIX_THREADS
14242 #endif
14244 _ACEOF
14245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14246 $EGREP "yes" >/dev/null 2>&1; then
14247 unistd_defines_pthreads=yes
14248 else
14249 unistd_defines_pthreads=no
14251 rm -f conftest*
14253 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14254 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14256 cat >>confdefs.h <<\_ACEOF
14257 #define _REENTRANT 1
14258 _ACEOF
14260 if test "${ac_cv_header_cthreads_h+set}" = set; then
14261 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14262 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14263 if test "${ac_cv_header_cthreads_h+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14267 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14268 else
14269 # Is the header compilable?
14270 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14271 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14272 cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h. */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 $ac_includes_default
14279 #include <cthreads.h>
14280 _ACEOF
14281 rm -f conftest.$ac_objext
14282 if { (ac_try="$ac_compile"
14283 case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286 esac
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_compile") 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest.$ac_objext; then
14298 ac_header_compiler=yes
14299 else
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ac_header_compiler=no
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14308 echo "${ECHO_T}$ac_header_compiler" >&6; }
14310 # Is the header present?
14311 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14312 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14313 cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h. */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 #include <cthreads.h>
14320 _ACEOF
14321 if { (ac_try="$ac_cpp conftest.$ac_ext"
14322 case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14328 ac_status=$?
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } >/dev/null && {
14334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14335 test ! -s conftest.err
14336 }; then
14337 ac_header_preproc=yes
14338 else
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 ac_header_preproc=no
14345 rm -f conftest.err conftest.$ac_ext
14346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14347 echo "${ECHO_T}$ac_header_preproc" >&6; }
14349 # So? What about this header?
14350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14351 yes:no: )
14352 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14353 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14355 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14356 ac_header_preproc=yes
14358 no:yes:* )
14359 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14360 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14361 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14362 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14363 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14364 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14365 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14366 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14368 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14370 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14371 ( cat <<\_ASBOX
14372 ## ------------------------------------------------ ##
14373 ## Report this to http://www.python.org/python-bugs ##
14374 ## ------------------------------------------------ ##
14375 _ASBOX
14376 ) | sed "s/^/$as_me: WARNING: /" >&2
14378 esac
14379 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14380 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14381 if test "${ac_cv_header_cthreads_h+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384 ac_cv_header_cthreads_h=$ac_header_preproc
14386 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14387 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14390 if test $ac_cv_header_cthreads_h = yes; then
14391 cat >>confdefs.h <<\_ACEOF
14392 #define WITH_THREAD 1
14393 _ACEOF
14395 cat >>confdefs.h <<\_ACEOF
14396 #define C_THREADS 1
14397 _ACEOF
14400 cat >>confdefs.h <<\_ACEOF
14401 #define HURD_C_THREADS 1
14402 _ACEOF
14404 LIBS="$LIBS -lthreads"
14405 THREADOBJ="Python/thread.o"
14406 else
14408 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14409 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14410 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14411 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14415 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14416 else
14417 # Is the header compilable?
14418 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14419 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h. */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 $ac_includes_default
14427 #include <mach/cthreads.h>
14428 _ACEOF
14429 rm -f conftest.$ac_objext
14430 if { (ac_try="$ac_compile"
14431 case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14434 esac
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_compile") 2>conftest.er1
14437 ac_status=$?
14438 grep -v '^ *+' conftest.er1 >conftest.err
14439 rm -f conftest.er1
14440 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } && {
14443 test -z "$ac_c_werror_flag" ||
14444 test ! -s conftest.err
14445 } && test -s conftest.$ac_objext; then
14446 ac_header_compiler=yes
14447 else
14448 echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14451 ac_header_compiler=no
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14456 echo "${ECHO_T}$ac_header_compiler" >&6; }
14458 # Is the header present?
14459 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14460 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14461 cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h. */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 #include <mach/cthreads.h>
14468 _ACEOF
14469 if { (ac_try="$ac_cpp conftest.$ac_ext"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14473 esac
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14476 ac_status=$?
14477 grep -v '^ *+' conftest.er1 >conftest.err
14478 rm -f conftest.er1
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } >/dev/null && {
14482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14483 test ! -s conftest.err
14484 }; then
14485 ac_header_preproc=yes
14486 else
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14490 ac_header_preproc=no
14493 rm -f conftest.err conftest.$ac_ext
14494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14495 echo "${ECHO_T}$ac_header_preproc" >&6; }
14497 # So? What about this header?
14498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14499 yes:no: )
14500 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14501 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14503 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14504 ac_header_preproc=yes
14506 no:yes:* )
14507 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14508 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14510 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14511 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14512 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14514 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14516 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14518 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14519 ( cat <<\_ASBOX
14520 ## ------------------------------------------------ ##
14521 ## Report this to http://www.python.org/python-bugs ##
14522 ## ------------------------------------------------ ##
14523 _ASBOX
14524 ) | sed "s/^/$as_me: WARNING: /" >&2
14526 esac
14527 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14528 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14529 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14534 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14535 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14538 if test $ac_cv_header_mach_cthreads_h = yes; then
14539 cat >>confdefs.h <<\_ACEOF
14540 #define WITH_THREAD 1
14541 _ACEOF
14543 cat >>confdefs.h <<\_ACEOF
14544 #define C_THREADS 1
14545 _ACEOF
14548 cat >>confdefs.h <<\_ACEOF
14549 #define MACH_C_THREADS 1
14550 _ACEOF
14552 THREADOBJ="Python/thread.o"
14553 else
14555 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14556 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14558 # Check whether --with-pth was given.
14559 if test "${with_pth+set}" = set; then
14560 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14561 echo "${ECHO_T}$withval" >&6; }
14562 cat >>confdefs.h <<\_ACEOF
14563 #define WITH_THREAD 1
14564 _ACEOF
14567 cat >>confdefs.h <<\_ACEOF
14568 #define HAVE_PTH 1
14569 _ACEOF
14571 LIBS="-lpth $LIBS"
14572 THREADOBJ="Python/thread.o"
14573 else
14574 { echo "$as_me:$LINENO: result: no" >&5
14575 echo "${ECHO_T}no" >&6; }
14577 # Just looking for pthread_create in libpthread is not enough:
14578 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14579 # So we really have to include pthread.h, and then link.
14580 _libs=$LIBS
14581 LIBS="$LIBS -lpthread"
14582 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14583 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14584 cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h. */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 #include <pthread.h>
14592 void * start_routine (void *arg) { exit (0); }
14594 main ()
14597 pthread_create (NULL, NULL, start_routine, NULL)
14599 return 0;
14601 _ACEOF
14602 rm -f conftest.$ac_objext conftest$ac_exeext
14603 if { (ac_try="$ac_link"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607 esac
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_link") 2>conftest.er1
14610 ac_status=$?
14611 grep -v '^ *+' conftest.er1 >conftest.err
14612 rm -f conftest.er1
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && {
14616 test -z "$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 } && test -s conftest$ac_exeext &&
14619 $as_test_x conftest$ac_exeext; then
14621 { echo "$as_me:$LINENO: result: yes" >&5
14622 echo "${ECHO_T}yes" >&6; }
14623 cat >>confdefs.h <<\_ACEOF
14624 #define WITH_THREAD 1
14625 _ACEOF
14627 posix_threads=yes
14628 THREADOBJ="Python/thread.o"
14629 else
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14634 LIBS=$_libs
14635 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14636 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14637 if test "${ac_cv_func_pthread_detach+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640 cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h. */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14648 #define pthread_detach innocuous_pthread_detach
14650 /* System header to define __stub macros and hopefully few prototypes,
14651 which can conflict with char pthread_detach (); below.
14652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14653 <limits.h> exists even on freestanding compilers. */
14655 #ifdef __STDC__
14656 # include <limits.h>
14657 #else
14658 # include <assert.h>
14659 #endif
14661 #undef pthread_detach
14663 /* Override any GCC internal prototype to avoid an error.
14664 Use char because int might match the return type of a GCC
14665 builtin and then its argument prototype would still apply. */
14666 #ifdef __cplusplus
14667 extern "C"
14668 #endif
14669 char pthread_detach ();
14670 /* The GNU C library defines this for functions which it implements
14671 to always fail with ENOSYS. Some functions are actually named
14672 something starting with __ and the normal name is an alias. */
14673 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14674 choke me
14675 #endif
14678 main ()
14680 return pthread_detach ();
14682 return 0;
14684 _ACEOF
14685 rm -f conftest.$ac_objext conftest$ac_exeext
14686 if { (ac_try="$ac_link"
14687 case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_link") 2>conftest.er1
14693 ac_status=$?
14694 grep -v '^ *+' conftest.er1 >conftest.err
14695 rm -f conftest.er1
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest$ac_exeext &&
14702 $as_test_x conftest$ac_exeext; then
14703 ac_cv_func_pthread_detach=yes
14704 else
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_cv_func_pthread_detach=no
14711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14712 conftest$ac_exeext conftest.$ac_ext
14714 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14715 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14716 if test $ac_cv_func_pthread_detach = yes; then
14717 cat >>confdefs.h <<\_ACEOF
14718 #define WITH_THREAD 1
14719 _ACEOF
14721 posix_threads=yes
14722 THREADOBJ="Python/thread.o"
14723 else
14725 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14726 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14727 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14728 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14732 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14733 else
14734 # Is the header compilable?
14735 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14736 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h. */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 $ac_includes_default
14744 #include <atheos/threads.h>
14745 _ACEOF
14746 rm -f conftest.$ac_objext
14747 if { (ac_try="$ac_compile"
14748 case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751 esac
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_compile") 2>conftest.er1
14754 ac_status=$?
14755 grep -v '^ *+' conftest.er1 >conftest.err
14756 rm -f conftest.er1
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } && {
14760 test -z "$ac_c_werror_flag" ||
14761 test ! -s conftest.err
14762 } && test -s conftest.$ac_objext; then
14763 ac_header_compiler=yes
14764 else
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14768 ac_header_compiler=no
14771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14773 echo "${ECHO_T}$ac_header_compiler" >&6; }
14775 # Is the header present?
14776 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14777 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h. */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <atheos/threads.h>
14785 _ACEOF
14786 if { (ac_try="$ac_cpp conftest.$ac_ext"
14787 case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14790 esac
14791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14793 ac_status=$?
14794 grep -v '^ *+' conftest.er1 >conftest.err
14795 rm -f conftest.er1
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } >/dev/null && {
14799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14800 test ! -s conftest.err
14801 }; then
14802 ac_header_preproc=yes
14803 else
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 ac_header_preproc=no
14810 rm -f conftest.err conftest.$ac_ext
14811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14812 echo "${ECHO_T}$ac_header_preproc" >&6; }
14814 # So? What about this header?
14815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14816 yes:no: )
14817 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14818 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14820 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14821 ac_header_preproc=yes
14823 no:yes:* )
14824 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14825 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14827 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14829 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14831 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14833 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14835 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14836 ( cat <<\_ASBOX
14837 ## ------------------------------------------------ ##
14838 ## Report this to http://www.python.org/python-bugs ##
14839 ## ------------------------------------------------ ##
14840 _ASBOX
14841 ) | sed "s/^/$as_me: WARNING: /" >&2
14843 esac
14844 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14845 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14846 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849 ac_cv_header_atheos_threads_h=$ac_header_preproc
14851 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14852 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14855 if test $ac_cv_header_atheos_threads_h = yes; then
14856 cat >>confdefs.h <<\_ACEOF
14857 #define WITH_THREAD 1
14858 _ACEOF
14861 cat >>confdefs.h <<\_ACEOF
14862 #define ATHEOS_THREADS 1
14863 _ACEOF
14865 THREADOBJ="Python/thread.o"
14866 else
14868 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14869 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14870 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14872 else
14873 ac_check_lib_save_LIBS=$LIBS
14874 LIBS="-lpthreads $LIBS"
14875 cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h. */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14882 /* Override any GCC internal prototype to avoid an error.
14883 Use char because int might match the return type of a GCC
14884 builtin and then its argument prototype would still apply. */
14885 #ifdef __cplusplus
14886 extern "C"
14887 #endif
14888 char pthread_create ();
14890 main ()
14892 return pthread_create ();
14894 return 0;
14896 _ACEOF
14897 rm -f conftest.$ac_objext conftest$ac_exeext
14898 if { (ac_try="$ac_link"
14899 case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14902 esac
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_link") 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && {
14911 test -z "$ac_c_werror_flag" ||
14912 test ! -s conftest.err
14913 } && test -s conftest$ac_exeext &&
14914 $as_test_x conftest$ac_exeext; then
14915 ac_cv_lib_pthreads_pthread_create=yes
14916 else
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ac_cv_lib_pthreads_pthread_create=no
14923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14924 conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_check_lib_save_LIBS
14927 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14928 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14929 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14930 cat >>confdefs.h <<\_ACEOF
14931 #define WITH_THREAD 1
14932 _ACEOF
14934 posix_threads=yes
14935 LIBS="$LIBS -lpthreads"
14936 THREADOBJ="Python/thread.o"
14937 else
14939 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14940 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14941 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944 ac_check_lib_save_LIBS=$LIBS
14945 LIBS="-lc_r $LIBS"
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14953 /* Override any GCC internal prototype to avoid an error.
14954 Use char because int might match the return type of a GCC
14955 builtin and then its argument prototype would still apply. */
14956 #ifdef __cplusplus
14957 extern "C"
14958 #endif
14959 char pthread_create ();
14961 main ()
14963 return pthread_create ();
14965 return 0;
14967 _ACEOF
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (ac_try="$ac_link"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_link") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest$ac_exeext &&
14985 $as_test_x conftest$ac_exeext; then
14986 ac_cv_lib_c_r_pthread_create=yes
14987 else
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 ac_cv_lib_c_r_pthread_create=no
14994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14995 conftest$ac_exeext conftest.$ac_ext
14996 LIBS=$ac_check_lib_save_LIBS
14998 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14999 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15000 if test $ac_cv_lib_c_r_pthread_create = yes; then
15001 cat >>confdefs.h <<\_ACEOF
15002 #define WITH_THREAD 1
15003 _ACEOF
15005 posix_threads=yes
15006 LIBS="$LIBS -lc_r"
15007 THREADOBJ="Python/thread.o"
15008 else
15010 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15011 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15012 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015 ac_check_lib_save_LIBS=$LIBS
15016 LIBS="-lpthread $LIBS"
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h. */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15024 /* Override any GCC internal prototype to avoid an error.
15025 Use char because int might match the return type of a GCC
15026 builtin and then its argument prototype would still apply. */
15027 #ifdef __cplusplus
15028 extern "C"
15029 #endif
15030 char __pthread_create_system ();
15032 main ()
15034 return __pthread_create_system ();
15036 return 0;
15038 _ACEOF
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (ac_try="$ac_link"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15044 esac
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_link") 2>conftest.er1
15047 ac_status=$?
15048 grep -v '^ *+' conftest.er1 >conftest.err
15049 rm -f conftest.er1
15050 cat conftest.err >&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } && {
15053 test -z "$ac_c_werror_flag" ||
15054 test ! -s conftest.err
15055 } && test -s conftest$ac_exeext &&
15056 $as_test_x conftest$ac_exeext; then
15057 ac_cv_lib_pthread___pthread_create_system=yes
15058 else
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15062 ac_cv_lib_pthread___pthread_create_system=no
15065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15066 conftest$ac_exeext conftest.$ac_ext
15067 LIBS=$ac_check_lib_save_LIBS
15069 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15070 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15071 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15072 cat >>confdefs.h <<\_ACEOF
15073 #define WITH_THREAD 1
15074 _ACEOF
15076 posix_threads=yes
15077 LIBS="$LIBS -lpthread"
15078 THREADOBJ="Python/thread.o"
15079 else
15081 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15082 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15083 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086 ac_check_lib_save_LIBS=$LIBS
15087 LIBS="-lcma $LIBS"
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h. */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char pthread_create ();
15103 main ()
15105 return pthread_create ();
15107 return 0;
15109 _ACEOF
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (ac_try="$ac_link"
15112 case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115 esac
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_link") 2>conftest.er1
15118 ac_status=$?
15119 grep -v '^ *+' conftest.er1 >conftest.err
15120 rm -f conftest.er1
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } && {
15124 test -z "$ac_c_werror_flag" ||
15125 test ! -s conftest.err
15126 } && test -s conftest$ac_exeext &&
15127 $as_test_x conftest$ac_exeext; then
15128 ac_cv_lib_cma_pthread_create=yes
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_cv_lib_cma_pthread_create=no
15136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15137 conftest$ac_exeext conftest.$ac_ext
15138 LIBS=$ac_check_lib_save_LIBS
15140 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15141 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15142 if test $ac_cv_lib_cma_pthread_create = yes; then
15143 cat >>confdefs.h <<\_ACEOF
15144 #define WITH_THREAD 1
15145 _ACEOF
15147 posix_threads=yes
15148 LIBS="$LIBS -lcma"
15149 THREADOBJ="Python/thread.o"
15150 else
15152 USE_THREAD_MODULE="#"
15169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15170 conftest$ac_exeext conftest.$ac_ext
15180 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15181 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15182 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185 ac_check_lib_save_LIBS=$LIBS
15186 LIBS="-lmpc $LIBS"
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 /* Override any GCC internal prototype to avoid an error.
15195 Use char because int might match the return type of a GCC
15196 builtin and then its argument prototype would still apply. */
15197 #ifdef __cplusplus
15198 extern "C"
15199 #endif
15200 char usconfig ();
15202 main ()
15204 return usconfig ();
15206 return 0;
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (ac_try="$ac_link"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_link") 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } && {
15223 test -z "$ac_c_werror_flag" ||
15224 test ! -s conftest.err
15225 } && test -s conftest$ac_exeext &&
15226 $as_test_x conftest$ac_exeext; then
15227 ac_cv_lib_mpc_usconfig=yes
15228 else
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 ac_cv_lib_mpc_usconfig=no
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15237 LIBS=$ac_check_lib_save_LIBS
15239 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15240 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15241 if test $ac_cv_lib_mpc_usconfig = yes; then
15242 cat >>confdefs.h <<\_ACEOF
15243 #define WITH_THREAD 1
15244 _ACEOF
15246 LIBS="$LIBS -lmpc"
15247 THREADOBJ="Python/thread.o"
15248 USE_THREAD_MODULE=""
15252 if test "$posix_threads" != "yes"; then
15253 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15254 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15255 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258 ac_check_lib_save_LIBS=$LIBS
15259 LIBS="-lthread $LIBS"
15260 cat >conftest.$ac_ext <<_ACEOF
15261 /* confdefs.h. */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15267 /* Override any GCC internal prototype to avoid an error.
15268 Use char because int might match the return type of a GCC
15269 builtin and then its argument prototype would still apply. */
15270 #ifdef __cplusplus
15271 extern "C"
15272 #endif
15273 char thr_create ();
15275 main ()
15277 return thr_create ();
15279 return 0;
15281 _ACEOF
15282 rm -f conftest.$ac_objext conftest$ac_exeext
15283 if { (ac_try="$ac_link"
15284 case "(($ac_try" in
15285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286 *) ac_try_echo=$ac_try;;
15287 esac
15288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289 (eval "$ac_link") 2>conftest.er1
15290 ac_status=$?
15291 grep -v '^ *+' conftest.er1 >conftest.err
15292 rm -f conftest.er1
15293 cat conftest.err >&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } && {
15296 test -z "$ac_c_werror_flag" ||
15297 test ! -s conftest.err
15298 } && test -s conftest$ac_exeext &&
15299 $as_test_x conftest$ac_exeext; then
15300 ac_cv_lib_thread_thr_create=yes
15301 else
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 ac_cv_lib_thread_thr_create=no
15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309 conftest$ac_exeext conftest.$ac_ext
15310 LIBS=$ac_check_lib_save_LIBS
15312 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15313 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15314 if test $ac_cv_lib_thread_thr_create = yes; then
15315 cat >>confdefs.h <<\_ACEOF
15316 #define WITH_THREAD 1
15317 _ACEOF
15319 LIBS="$LIBS -lthread"
15320 THREADOBJ="Python/thread.o"
15321 USE_THREAD_MODULE=""
15326 if test "$USE_THREAD_MODULE" != "#"
15327 then
15328 # If the above checks didn't disable threads, (at least) OSF1
15329 # needs this '-threads' argument during linking.
15330 case $ac_sys_system in
15331 OSF1) LDLAST=-threads;;
15332 esac
15336 if test "$posix_threads" = "yes"; then
15337 if test "$unistd_defines_pthreads" = "no"; then
15339 cat >>confdefs.h <<\_ACEOF
15340 #define _POSIX_THREADS 1
15341 _ACEOF
15345 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15346 case $ac_sys_system/$ac_sys_release in
15347 SunOS/5.6)
15348 cat >>confdefs.h <<\_ACEOF
15349 #define HAVE_PTHREAD_DESTRUCTOR 1
15350 _ACEOF
15353 SunOS/5.8)
15354 cat >>confdefs.h <<\_ACEOF
15355 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15356 _ACEOF
15359 AIX/5)
15360 cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15362 _ACEOF
15365 esac
15367 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15368 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15369 if test "${ac_cv_pthread_system_supported+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372 if test "$cross_compiling" = yes; then
15373 ac_cv_pthread_system_supported=no
15374 else
15375 cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h. */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 #include <pthread.h>
15382 void *foo(void *parm) {
15383 return NULL;
15385 main() {
15386 pthread_attr_t attr;
15387 pthread_t id;
15388 if (pthread_attr_init(&attr)) exit(-1);
15389 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15390 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15391 exit(0);
15393 _ACEOF
15394 rm -f conftest$ac_exeext
15395 if { (ac_try="$ac_link"
15396 case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15399 esac
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_link") 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_cv_pthread_system_supported=yes
15415 else
15416 echo "$as_me: program exited with status $ac_status" >&5
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ( exit $ac_status )
15421 ac_cv_pthread_system_supported=no
15423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15430 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15431 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15432 if test "$ac_cv_pthread_system_supported" = "yes"; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15436 _ACEOF
15440 for ac_func in pthread_sigmask
15442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448 cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h. */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15456 #define $ac_func innocuous_$ac_func
15458 /* System header to define __stub macros and hopefully few prototypes,
15459 which can conflict with char $ac_func (); below.
15460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461 <limits.h> exists even on freestanding compilers. */
15463 #ifdef __STDC__
15464 # include <limits.h>
15465 #else
15466 # include <assert.h>
15467 #endif
15469 #undef $ac_func
15471 /* Override any GCC internal prototype to avoid an error.
15472 Use char because int might match the return type of a GCC
15473 builtin and then its argument prototype would still apply. */
15474 #ifdef __cplusplus
15475 extern "C"
15476 #endif
15477 char $ac_func ();
15478 /* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
15481 #if defined __stub_$ac_func || defined __stub___$ac_func
15482 choke me
15483 #endif
15486 main ()
15488 return $ac_func ();
15490 return 0;
15492 _ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_link") 2>conftest.er1
15501 ac_status=$?
15502 grep -v '^ *+' conftest.er1 >conftest.err
15503 rm -f conftest.er1
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && {
15507 test -z "$ac_c_werror_flag" ||
15508 test ! -s conftest.err
15509 } && test -s conftest$ac_exeext &&
15510 $as_test_x conftest$ac_exeext; then
15511 eval "$as_ac_var=yes"
15512 else
15513 echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15516 eval "$as_ac_var=no"
15519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15520 conftest$ac_exeext conftest.$ac_ext
15522 ac_res=`eval echo '${'$as_ac_var'}'`
15523 { echo "$as_me:$LINENO: result: $ac_res" >&5
15524 echo "${ECHO_T}$ac_res" >&6; }
15525 if test `eval echo '${'$as_ac_var'}'` = yes; then
15526 cat >>confdefs.h <<_ACEOF
15527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15528 _ACEOF
15529 case $ac_sys_system in
15530 CYGWIN*)
15532 cat >>confdefs.h <<\_ACEOF
15533 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15534 _ACEOF
15537 esac
15539 done
15544 # Check for enable-ipv6
15547 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15548 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15549 # Check whether --enable-ipv6 was given.
15550 if test "${enable_ipv6+set}" = set; then
15551 enableval=$enable_ipv6; case "$enableval" in
15553 { echo "$as_me:$LINENO: result: no" >&5
15554 echo "${ECHO_T}no" >&6; }
15555 ipv6=no
15557 *) { echo "$as_me:$LINENO: result: yes" >&5
15558 echo "${ECHO_T}yes" >&6; }
15559 cat >>confdefs.h <<\_ACEOF
15560 #define ENABLE_IPV6 1
15561 _ACEOF
15563 ipv6=yes
15565 esac
15566 else
15568 if test "$cross_compiling" = yes; then
15569 { echo "$as_me:$LINENO: result: no" >&5
15570 echo "${ECHO_T}no" >&6; }
15571 ipv6=no
15573 else
15574 cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h. */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 /* AF_INET6 available check */
15581 #include <sys/types.h>
15582 #include <sys/socket.h>
15583 main()
15585 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15586 exit(1);
15587 else
15588 exit(0);
15591 _ACEOF
15592 rm -f conftest$ac_exeext
15593 if { (ac_try="$ac_link"
15594 case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_link") 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606 esac
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 { echo "$as_me:$LINENO: result: yes" >&5
15613 echo "${ECHO_T}yes" >&6; }
15614 ipv6=yes
15615 else
15616 echo "$as_me: program exited with status $ac_status" >&5
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15620 ( exit $ac_status )
15621 { echo "$as_me:$LINENO: result: no" >&5
15622 echo "${ECHO_T}no" >&6; }
15623 ipv6=no
15625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15630 if test "$ipv6" = "yes"; then
15631 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15632 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15633 cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h. */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 #include <sys/types.h>
15640 #include <netinet/in.h>
15642 main ()
15644 struct sockaddr_in6 x;
15645 x.sin6_scope_id;
15647 return 0;
15649 _ACEOF
15650 rm -f conftest.$ac_objext
15651 if { (ac_try="$ac_compile"
15652 case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15655 esac
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_compile") 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest.$ac_objext; then
15667 { echo "$as_me:$LINENO: result: yes" >&5
15668 echo "${ECHO_T}yes" >&6; }
15669 ipv6=yes
15670 else
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 { echo "$as_me:$LINENO: result: no" >&5
15675 echo "${ECHO_T}no" >&6; }
15676 ipv6=no
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 if test "$ipv6" = "yes"; then
15683 cat >>confdefs.h <<\_ACEOF
15684 #define ENABLE_IPV6 1
15685 _ACEOF
15692 ipv6type=unknown
15693 ipv6lib=none
15694 ipv6trylibc=no
15696 if test "$ipv6" = "yes"; then
15697 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15698 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15699 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15701 case $i in
15702 inria)
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h. */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15710 #include <netinet/in.h>
15711 #ifdef IPV6_INRIA_VERSION
15713 #endif
15714 _ACEOF
15715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15716 $EGREP "yes" >/dev/null 2>&1; then
15717 ipv6type=$i
15719 rm -f conftest*
15722 kame)
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15730 #include <netinet/in.h>
15731 #ifdef __KAME__
15733 #endif
15734 _ACEOF
15735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15736 $EGREP "yes" >/dev/null 2>&1; then
15737 ipv6type=$i;
15738 ipv6lib=inet6
15739 ipv6libdir=/usr/local/v6/lib
15740 ipv6trylibc=yes
15742 rm -f conftest*
15745 linux-glibc)
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h. */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15753 #include <features.h>
15754 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15756 #endif
15757 _ACEOF
15758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15759 $EGREP "yes" >/dev/null 2>&1; then
15760 ipv6type=$i;
15761 ipv6trylibc=yes
15763 rm -f conftest*
15766 linux-inet6)
15767 if test -d /usr/inet6; then
15768 ipv6type=$i
15769 ipv6lib=inet6
15770 ipv6libdir=/usr/inet6/lib
15771 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15774 solaris)
15775 if test -f /etc/netconfig; then
15776 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15777 ipv6type=$i
15778 ipv6trylibc=yes
15782 toshiba)
15783 cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h. */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15790 #include <sys/param.h>
15791 #ifdef _TOSHIBA_INET6
15793 #endif
15794 _ACEOF
15795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15796 $EGREP "yes" >/dev/null 2>&1; then
15797 ipv6type=$i;
15798 ipv6lib=inet6;
15799 ipv6libdir=/usr/local/v6/lib
15801 rm -f conftest*
15804 v6d)
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h. */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15812 #include </usr/local/v6/include/sys/v6config.h>
15813 #ifdef __V6D__
15815 #endif
15816 _ACEOF
15817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15818 $EGREP "yes" >/dev/null 2>&1; then
15819 ipv6type=$i;
15820 ipv6lib=v6;
15821 ipv6libdir=/usr/local/v6/lib;
15822 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15824 rm -f conftest*
15827 zeta)
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. */
15835 #include <sys/param.h>
15836 #ifdef _ZETA_MINAMI_INET6
15838 #endif
15839 _ACEOF
15840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15841 $EGREP "yes" >/dev/null 2>&1; then
15842 ipv6type=$i;
15843 ipv6lib=inet6;
15844 ipv6libdir=/usr/local/v6/lib
15846 rm -f conftest*
15849 esac
15850 if test "$ipv6type" != "unknown"; then
15851 break
15853 done
15854 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15855 echo "${ECHO_T}$ipv6type" >&6; }
15858 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15859 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15860 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15861 echo "using lib$ipv6lib"
15862 else
15863 if test $ipv6trylibc = "yes"; then
15864 echo "using libc"
15865 else
15866 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15867 echo "You need to fetch lib$ipv6lib.a from appropriate"
15868 echo 'ipv6 kit and compile beforehand.'
15869 exit 1
15874 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15875 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 #include <Carbon/Carbon.h>
15884 main ()
15886 FSIORefNum fRef = 0
15888 return 0;
15890 _ACEOF
15891 rm -f conftest.$ac_objext
15892 if { (ac_try="$ac_compile"
15893 case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15896 esac
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_compile") 2>conftest.er1
15899 ac_status=$?
15900 grep -v '^ *+' conftest.er1 >conftest.err
15901 rm -f conftest.er1
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } && {
15905 test -z "$ac_c_werror_flag" ||
15906 test ! -s conftest.err
15907 } && test -s conftest.$ac_objext; then
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_OSX105_SDK 1
15911 _ACEOF
15913 { echo "$as_me:$LINENO: result: yes" >&5
15914 echo "${ECHO_T}yes" >&6; }
15915 else
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 { echo "$as_me:$LINENO: result: no" >&5
15920 echo "${ECHO_T}no" >&6; }
15924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926 # Check for --with-doc-strings
15927 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15928 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15930 # Check whether --with-doc-strings was given.
15931 if test "${with_doc_strings+set}" = set; then
15932 withval=$with_doc_strings;
15936 if test -z "$with_doc_strings"
15937 then with_doc_strings="yes"
15939 if test "$with_doc_strings" != "no"
15940 then
15942 cat >>confdefs.h <<\_ACEOF
15943 #define WITH_DOC_STRINGS 1
15944 _ACEOF
15947 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15948 echo "${ECHO_T}$with_doc_strings" >&6; }
15950 # Check for Python-specific malloc support
15951 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15952 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15954 # Check whether --with-tsc was given.
15955 if test "${with_tsc+set}" = set; then
15956 withval=$with_tsc;
15957 if test "$withval" != no
15958 then
15960 cat >>confdefs.h <<\_ACEOF
15961 #define WITH_TSC 1
15962 _ACEOF
15964 { echo "$as_me:$LINENO: result: yes" >&5
15965 echo "${ECHO_T}yes" >&6; }
15966 else { echo "$as_me:$LINENO: result: no" >&5
15967 echo "${ECHO_T}no" >&6; }
15969 else
15970 { echo "$as_me:$LINENO: result: no" >&5
15971 echo "${ECHO_T}no" >&6; }
15975 # Check for Python-specific malloc support
15976 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15977 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15979 # Check whether --with-pymalloc was given.
15980 if test "${with_pymalloc+set}" = set; then
15981 withval=$with_pymalloc;
15985 if test -z "$with_pymalloc"
15986 then with_pymalloc="yes"
15988 if test "$with_pymalloc" != "no"
15989 then
15991 cat >>confdefs.h <<\_ACEOF
15992 #define WITH_PYMALLOC 1
15993 _ACEOF
15996 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15997 echo "${ECHO_T}$with_pymalloc" >&6; }
15999 # Check for --with-wctype-functions
16000 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16001 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16003 # Check whether --with-wctype-functions was given.
16004 if test "${with_wctype_functions+set}" = set; then
16005 withval=$with_wctype_functions;
16006 if test "$withval" != no
16007 then
16009 cat >>confdefs.h <<\_ACEOF
16010 #define WANT_WCTYPE_FUNCTIONS 1
16011 _ACEOF
16013 { echo "$as_me:$LINENO: result: yes" >&5
16014 echo "${ECHO_T}yes" >&6; }
16015 else { echo "$as_me:$LINENO: result: no" >&5
16016 echo "${ECHO_T}no" >&6; }
16018 else
16019 { echo "$as_me:$LINENO: result: no" >&5
16020 echo "${ECHO_T}no" >&6; }
16024 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16026 DLINCLDIR=.
16028 # the dlopen() function means we might want to use dynload_shlib.o. some
16029 # platforms, such as AIX, have dlopen(), but don't want to use it.
16031 for ac_func in dlopen
16033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h. */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16047 #define $ac_func innocuous_$ac_func
16049 /* System header to define __stub macros and hopefully few prototypes,
16050 which can conflict with char $ac_func (); below.
16051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16052 <limits.h> exists even on freestanding compilers. */
16054 #ifdef __STDC__
16055 # include <limits.h>
16056 #else
16057 # include <assert.h>
16058 #endif
16060 #undef $ac_func
16062 /* Override any GCC internal prototype to avoid an error.
16063 Use char because int might match the return type of a GCC
16064 builtin and then its argument prototype would still apply. */
16065 #ifdef __cplusplus
16066 extern "C"
16067 #endif
16068 char $ac_func ();
16069 /* The GNU C library defines this for functions which it implements
16070 to always fail with ENOSYS. Some functions are actually named
16071 something starting with __ and the normal name is an alias. */
16072 #if defined __stub_$ac_func || defined __stub___$ac_func
16073 choke me
16074 #endif
16077 main ()
16079 return $ac_func ();
16081 return 0;
16083 _ACEOF
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (ac_try="$ac_link"
16086 case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_link") 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } && {
16098 test -z "$ac_c_werror_flag" ||
16099 test ! -s conftest.err
16100 } && test -s conftest$ac_exeext &&
16101 $as_test_x conftest$ac_exeext; then
16102 eval "$as_ac_var=yes"
16103 else
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 eval "$as_ac_var=no"
16110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16111 conftest$ac_exeext conftest.$ac_ext
16113 ac_res=`eval echo '${'$as_ac_var'}'`
16114 { echo "$as_me:$LINENO: result: $ac_res" >&5
16115 echo "${ECHO_T}$ac_res" >&6; }
16116 if test `eval echo '${'$as_ac_var'}'` = yes; then
16117 cat >>confdefs.h <<_ACEOF
16118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16119 _ACEOF
16122 done
16125 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16126 # loading of modules.
16128 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16129 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16130 if test -z "$DYNLOADFILE"
16131 then
16132 case $ac_sys_system/$ac_sys_release in
16133 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16134 if test "$ac_cv_func_dlopen" = yes
16135 then DYNLOADFILE="dynload_shlib.o"
16136 else DYNLOADFILE="dynload_aix.o"
16139 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16140 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16141 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16142 atheos*) DYNLOADFILE="dynload_atheos.o";;
16144 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16145 # out any dynamic loading
16146 if test "$ac_cv_func_dlopen" = yes
16147 then DYNLOADFILE="dynload_shlib.o"
16148 else DYNLOADFILE="dynload_stub.o"
16151 esac
16153 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16154 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16155 if test "$DYNLOADFILE" != "dynload_stub.o"
16156 then
16158 cat >>confdefs.h <<\_ACEOF
16159 #define HAVE_DYNAMIC_LOADING 1
16160 _ACEOF
16164 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16167 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16168 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16169 if test -z "$MACHDEP_OBJS"
16170 then
16171 MACHDEP_OBJS=$extra_machdep_objs
16172 else
16173 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16175 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16176 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16178 # checks for library functions
16262 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16263 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16264 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16265 getpriority getpwent getspnam getspent getsid getwd \
16266 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16267 mremap nice pathconf pause plock poll pthread_init \
16268 putenv readlink realpath \
16269 select setegid seteuid setgid \
16270 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16271 sigaction siginterrupt sigrelse strftime strlcpy \
16272 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16273 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll wcsxfrm _getpty
16275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h. */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16289 #define $ac_func innocuous_$ac_func
16291 /* System header to define __stub macros and hopefully few prototypes,
16292 which can conflict with char $ac_func (); below.
16293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16294 <limits.h> exists even on freestanding compilers. */
16296 #ifdef __STDC__
16297 # include <limits.h>
16298 #else
16299 # include <assert.h>
16300 #endif
16302 #undef $ac_func
16304 /* Override any GCC internal prototype to avoid an error.
16305 Use char because int might match the return type of a GCC
16306 builtin and then its argument prototype would still apply. */
16307 #ifdef __cplusplus
16308 extern "C"
16309 #endif
16310 char $ac_func ();
16311 /* The GNU C library defines this for functions which it implements
16312 to always fail with ENOSYS. Some functions are actually named
16313 something starting with __ and the normal name is an alias. */
16314 #if defined __stub_$ac_func || defined __stub___$ac_func
16315 choke me
16316 #endif
16319 main ()
16321 return $ac_func ();
16323 return 0;
16325 _ACEOF
16326 rm -f conftest.$ac_objext conftest$ac_exeext
16327 if { (ac_try="$ac_link"
16328 case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331 esac
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_link") 2>conftest.er1
16334 ac_status=$?
16335 grep -v '^ *+' conftest.er1 >conftest.err
16336 rm -f conftest.er1
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } && {
16340 test -z "$ac_c_werror_flag" ||
16341 test ! -s conftest.err
16342 } && test -s conftest$ac_exeext &&
16343 $as_test_x conftest$ac_exeext; then
16344 eval "$as_ac_var=yes"
16345 else
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16349 eval "$as_ac_var=no"
16352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16353 conftest$ac_exeext conftest.$ac_ext
16355 ac_res=`eval echo '${'$as_ac_var'}'`
16356 { echo "$as_me:$LINENO: result: $ac_res" >&5
16357 echo "${ECHO_T}$ac_res" >&6; }
16358 if test `eval echo '${'$as_ac_var'}'` = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16361 _ACEOF
16364 done
16367 # For some functions, having a definition is not sufficient, since
16368 # we want to take their address.
16369 { echo "$as_me:$LINENO: checking for chroot" >&5
16370 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
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. */
16377 #include <unistd.h>
16379 main ()
16381 void *x=chroot
16383 return 0;
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (ac_try="$ac_compile"
16388 case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16391 esac
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_compile") 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } && {
16400 test -z "$ac_c_werror_flag" ||
16401 test ! -s conftest.err
16402 } && test -s conftest.$ac_objext; then
16404 cat >>confdefs.h <<\_ACEOF
16405 #define HAVE_CHROOT 1
16406 _ACEOF
16408 { echo "$as_me:$LINENO: result: yes" >&5
16409 echo "${ECHO_T}yes" >&6; }
16410 else
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 { echo "$as_me:$LINENO: result: no" >&5
16415 echo "${ECHO_T}no" >&6; }
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 { echo "$as_me:$LINENO: checking for link" >&5
16421 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16422 cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h. */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428 #include <unistd.h>
16430 main ()
16432 void *x=link
16434 return 0;
16436 _ACEOF
16437 rm -f conftest.$ac_objext
16438 if { (ac_try="$ac_compile"
16439 case "(($ac_try" in
16440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441 *) ac_try_echo=$ac_try;;
16442 esac
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444 (eval "$ac_compile") 2>conftest.er1
16445 ac_status=$?
16446 grep -v '^ *+' conftest.er1 >conftest.err
16447 rm -f conftest.er1
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } && {
16451 test -z "$ac_c_werror_flag" ||
16452 test ! -s conftest.err
16453 } && test -s conftest.$ac_objext; then
16455 cat >>confdefs.h <<\_ACEOF
16456 #define HAVE_LINK 1
16457 _ACEOF
16459 { echo "$as_me:$LINENO: result: yes" >&5
16460 echo "${ECHO_T}yes" >&6; }
16461 else
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 { echo "$as_me:$LINENO: result: no" >&5
16466 echo "${ECHO_T}no" >&6; }
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471 { echo "$as_me:$LINENO: checking for symlink" >&5
16472 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16473 cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h. */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 #include <unistd.h>
16481 main ()
16483 void *x=symlink
16485 return 0;
16487 _ACEOF
16488 rm -f conftest.$ac_objext
16489 if { (ac_try="$ac_compile"
16490 case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16493 esac
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_compile") 2>conftest.er1
16496 ac_status=$?
16497 grep -v '^ *+' conftest.er1 >conftest.err
16498 rm -f conftest.er1
16499 cat conftest.err >&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } && {
16502 test -z "$ac_c_werror_flag" ||
16503 test ! -s conftest.err
16504 } && test -s conftest.$ac_objext; then
16506 cat >>confdefs.h <<\_ACEOF
16507 #define HAVE_SYMLINK 1
16508 _ACEOF
16510 { echo "$as_me:$LINENO: result: yes" >&5
16511 echo "${ECHO_T}yes" >&6; }
16512 else
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 { echo "$as_me:$LINENO: result: no" >&5
16517 echo "${ECHO_T}no" >&6; }
16521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522 { echo "$as_me:$LINENO: checking for fchdir" >&5
16523 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16524 cat >conftest.$ac_ext <<_ACEOF
16525 /* confdefs.h. */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16530 #include <unistd.h>
16532 main ()
16534 void *x=fchdir
16536 return 0;
16538 _ACEOF
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_compile") 2>conftest.er1
16547 ac_status=$?
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } && {
16553 test -z "$ac_c_werror_flag" ||
16554 test ! -s conftest.err
16555 } && test -s conftest.$ac_objext; then
16557 cat >>confdefs.h <<\_ACEOF
16558 #define HAVE_FCHDIR 1
16559 _ACEOF
16561 { echo "$as_me:$LINENO: result: yes" >&5
16562 echo "${ECHO_T}yes" >&6; }
16563 else
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16567 { echo "$as_me:$LINENO: result: no" >&5
16568 echo "${ECHO_T}no" >&6; }
16572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16573 { echo "$as_me:$LINENO: checking for fsync" >&5
16574 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16575 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h. */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 #include <unistd.h>
16583 main ()
16585 void *x=fsync
16587 return 0;
16589 _ACEOF
16590 rm -f conftest.$ac_objext
16591 if { (ac_try="$ac_compile"
16592 case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16595 esac
16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_compile") 2>conftest.er1
16598 ac_status=$?
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } && {
16604 test -z "$ac_c_werror_flag" ||
16605 test ! -s conftest.err
16606 } && test -s conftest.$ac_objext; then
16608 cat >>confdefs.h <<\_ACEOF
16609 #define HAVE_FSYNC 1
16610 _ACEOF
16612 { echo "$as_me:$LINENO: result: yes" >&5
16613 echo "${ECHO_T}yes" >&6; }
16614 else
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 { echo "$as_me:$LINENO: result: no" >&5
16619 echo "${ECHO_T}no" >&6; }
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16625 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16626 cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h. */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 #include <unistd.h>
16634 main ()
16636 void *x=fdatasync
16638 return 0;
16640 _ACEOF
16641 rm -f conftest.$ac_objext
16642 if { (ac_try="$ac_compile"
16643 case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16646 esac
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_compile") 2>conftest.er1
16649 ac_status=$?
16650 grep -v '^ *+' conftest.er1 >conftest.err
16651 rm -f conftest.er1
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } && {
16655 test -z "$ac_c_werror_flag" ||
16656 test ! -s conftest.err
16657 } && test -s conftest.$ac_objext; then
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE_FDATASYNC 1
16661 _ACEOF
16663 { echo "$as_me:$LINENO: result: yes" >&5
16664 echo "${ECHO_T}yes" >&6; }
16665 else
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 { echo "$as_me:$LINENO: result: no" >&5
16670 echo "${ECHO_T}no" >&6; }
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 { echo "$as_me:$LINENO: checking for epoll" >&5
16676 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16677 cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h. */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 #include <sys/epoll.h>
16685 main ()
16687 void *x=epoll_create
16689 return 0;
16691 _ACEOF
16692 rm -f conftest.$ac_objext
16693 if { (ac_try="$ac_compile"
16694 case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_compile") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest.$ac_objext; then
16710 cat >>confdefs.h <<\_ACEOF
16711 #define HAVE_EPOLL 1
16712 _ACEOF
16714 { echo "$as_me:$LINENO: result: yes" >&5
16715 echo "${ECHO_T}yes" >&6; }
16716 else
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16720 { echo "$as_me:$LINENO: result: no" >&5
16721 echo "${ECHO_T}no" >&6; }
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 { echo "$as_me:$LINENO: checking for kqueue" >&5
16727 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16735 #include <sys/types.h>
16736 #include <sys/event.h>
16739 main ()
16741 int x=kqueue()
16743 return 0;
16745 _ACEOF
16746 rm -f conftest.$ac_objext
16747 if { (ac_try="$ac_compile"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest.$ac_objext; then
16764 cat >>confdefs.h <<\_ACEOF
16765 #define HAVE_KQUEUE 1
16766 _ACEOF
16768 { echo "$as_me:$LINENO: result: yes" >&5
16769 echo "${ECHO_T}yes" >&6; }
16770 else
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 { echo "$as_me:$LINENO: result: no" >&5
16775 echo "${ECHO_T}no" >&6; }
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 # On some systems (eg. FreeBSD 5), we would find a definition of the
16781 # functions ctermid_r, setgroups in the library, but no prototype
16782 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16783 # address to avoid compiler warnings and potential miscompilations
16784 # because of the missing prototypes.
16786 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16787 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16788 cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h. */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16795 #include "confdefs.h"
16796 #include <stdio.h>
16799 main ()
16801 void* p = ctermid_r
16803 return 0;
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (ac_try="$ac_compile"
16808 case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16811 esac
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_compile") 2>conftest.er1
16814 ac_status=$?
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -f conftest.er1
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } && {
16820 test -z "$ac_c_werror_flag" ||
16821 test ! -s conftest.err
16822 } && test -s conftest.$ac_objext; then
16824 cat >>confdefs.h <<\_ACEOF
16825 #define HAVE_CTERMID_R 1
16826 _ACEOF
16828 { echo "$as_me:$LINENO: result: yes" >&5
16829 echo "${ECHO_T}yes" >&6; }
16830 else
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 { echo "$as_me:$LINENO: result: no" >&5
16835 echo "${ECHO_T}no" >&6; }
16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 { echo "$as_me:$LINENO: checking for flock" >&5
16842 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h. */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16850 #include "confdefs.h"
16851 #include <sys/file.h>
16854 main ()
16856 void* p = flock
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_FLOCK 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 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16897 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16905 #include "confdefs.h"
16906 #include <unistd.h>
16909 main ()
16911 void* p = getpagesize
16913 return 0;
16915 _ACEOF
16916 rm -f conftest.$ac_objext
16917 if { (ac_try="$ac_compile"
16918 case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921 esac
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_compile") 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } && {
16930 test -z "$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 } && test -s conftest.$ac_objext; then
16934 cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_GETPAGESIZE 1
16936 _ACEOF
16938 { echo "$as_me:$LINENO: result: yes" >&5
16939 echo "${ECHO_T}yes" >&6; }
16940 else
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 { echo "$as_me:$LINENO: result: no" >&5
16945 echo "${ECHO_T}no" >&6; }
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 for ac_prog in true
16953 # Extract the first word of "$ac_prog", so it can be a program name with args.
16954 set dummy $ac_prog; ac_word=$2
16955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16957 if test "${ac_cv_prog_TRUE+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 else
16960 if test -n "$TRUE"; then
16961 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16962 else
16963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16964 for as_dir in $PATH
16966 IFS=$as_save_IFS
16967 test -z "$as_dir" && as_dir=.
16968 for ac_exec_ext in '' $ac_executable_extensions; do
16969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16970 ac_cv_prog_TRUE="$ac_prog"
16971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16972 break 2
16974 done
16975 done
16976 IFS=$as_save_IFS
16980 TRUE=$ac_cv_prog_TRUE
16981 if test -n "$TRUE"; then
16982 { echo "$as_me:$LINENO: result: $TRUE" >&5
16983 echo "${ECHO_T}$TRUE" >&6; }
16984 else
16985 { echo "$as_me:$LINENO: result: no" >&5
16986 echo "${ECHO_T}no" >&6; }
16990 test -n "$TRUE" && break
16991 done
16992 test -n "$TRUE" || TRUE="/bin/true"
16995 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16996 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16997 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000 ac_check_lib_save_LIBS=$LIBS
17001 LIBS="-lc $LIBS"
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h. */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17009 /* Override any GCC internal prototype to avoid an error.
17010 Use char because int might match the return type of a GCC
17011 builtin and then its argument prototype would still apply. */
17012 #ifdef __cplusplus
17013 extern "C"
17014 #endif
17015 char inet_aton ();
17017 main ()
17019 return inet_aton ();
17021 return 0;
17023 _ACEOF
17024 rm -f conftest.$ac_objext conftest$ac_exeext
17025 if { (ac_try="$ac_link"
17026 case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_link") 2>conftest.er1
17032 ac_status=$?
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } && {
17038 test -z "$ac_c_werror_flag" ||
17039 test ! -s conftest.err
17040 } && test -s conftest$ac_exeext &&
17041 $as_test_x conftest$ac_exeext; then
17042 ac_cv_lib_c_inet_aton=yes
17043 else
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17047 ac_cv_lib_c_inet_aton=no
17050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17051 conftest$ac_exeext conftest.$ac_ext
17052 LIBS=$ac_check_lib_save_LIBS
17054 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17055 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17056 if test $ac_cv_lib_c_inet_aton = yes; then
17057 $ac_cv_prog_TRUE
17058 else
17060 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17061 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17062 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065 ac_check_lib_save_LIBS=$LIBS
17066 LIBS="-lresolv $LIBS"
17067 cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h. */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 char inet_aton ();
17082 main ()
17084 return inet_aton ();
17086 return 0;
17088 _ACEOF
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_link") 2>conftest.er1
17097 ac_status=$?
17098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest$ac_exeext &&
17106 $as_test_x conftest$ac_exeext; then
17107 ac_cv_lib_resolv_inet_aton=yes
17108 else
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_cv_lib_resolv_inet_aton=no
17115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17116 conftest$ac_exeext conftest.$ac_ext
17117 LIBS=$ac_check_lib_save_LIBS
17119 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17120 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17121 if test $ac_cv_lib_resolv_inet_aton = yes; then
17122 cat >>confdefs.h <<_ACEOF
17123 #define HAVE_LIBRESOLV 1
17124 _ACEOF
17126 LIBS="-lresolv $LIBS"
17134 # On Tru64, chflags seems to be present, but calling it will
17135 # exit Python
17136 { echo "$as_me:$LINENO: checking for chflags" >&5
17137 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17138 if test "$cross_compiling" = yes; then
17139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17140 See \`config.log' for more details." >&5
17141 echo "$as_me: error: cannot run test program while cross compiling
17142 See \`config.log' for more details." >&2;}
17143 { (exit 1); exit 1; }; }
17144 else
17145 cat >conftest.$ac_ext <<_ACEOF
17146 /* confdefs.h. */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17152 #include <sys/stat.h>
17153 #include <unistd.h>
17154 int main(int argc, char*argv[])
17156 if(chflags(argv[0], 0) != 0)
17157 return 1;
17158 return 0;
17161 _ACEOF
17162 rm -f conftest$ac_exeext
17163 if { (ac_try="$ac_link"
17164 case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17167 esac
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_link") 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176 esac
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17183 cat >>confdefs.h <<\_ACEOF
17184 #define HAVE_CHFLAGS 1
17185 _ACEOF
17187 { echo "$as_me:$LINENO: result: yes" >&5
17188 echo "${ECHO_T}yes" >&6; }
17189 else
17190 echo "$as_me: program exited with status $ac_status" >&5
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 ( exit $ac_status )
17195 { echo "$as_me:$LINENO: result: no" >&5
17196 echo "${ECHO_T}no" >&6; }
17199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17204 { echo "$as_me:$LINENO: checking for lchflags" >&5
17205 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17206 if test "$cross_compiling" = yes; then
17207 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17208 See \`config.log' for more details." >&5
17209 echo "$as_me: error: cannot run test program while cross compiling
17210 See \`config.log' for more details." >&2;}
17211 { (exit 1); exit 1; }; }
17212 else
17213 cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h. */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17220 #include <sys/stat.h>
17221 #include <unistd.h>
17222 int main(int argc, char*argv[])
17224 if(lchflags(argv[0], 0) != 0)
17225 return 1;
17226 return 0;
17229 _ACEOF
17230 rm -f conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_link") 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17241 { (case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17244 esac
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_try") 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; }; then
17251 cat >>confdefs.h <<\_ACEOF
17252 #define HAVE_LCHFLAGS 1
17253 _ACEOF
17255 { echo "$as_me:$LINENO: result: yes" >&5
17256 echo "${ECHO_T}yes" >&6; }
17257 else
17258 echo "$as_me: program exited with status $ac_status" >&5
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 ( exit $ac_status )
17263 { echo "$as_me:$LINENO: result: no" >&5
17264 echo "${ECHO_T}no" >&6; }
17267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17272 case $ac_sys_system/$ac_sys_release in
17273 Darwin/*)
17274 _CUR_CFLAGS="${CFLAGS}"
17275 _CUR_LDFLAGS="${LDFLAGS}"
17276 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17277 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17279 esac
17281 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17282 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17283 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286 ac_check_lib_save_LIBS=$LIBS
17287 LIBS="-lz $LIBS"
17288 cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h. */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17298 #ifdef __cplusplus
17299 extern "C"
17300 #endif
17301 char inflateCopy ();
17303 main ()
17305 return inflateCopy ();
17307 return 0;
17309 _ACEOF
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (ac_try="$ac_link"
17312 case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && {
17324 test -z "$ac_c_werror_flag" ||
17325 test ! -s conftest.err
17326 } && test -s conftest$ac_exeext &&
17327 $as_test_x conftest$ac_exeext; then
17328 ac_cv_lib_z_inflateCopy=yes
17329 else
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 ac_cv_lib_z_inflateCopy=no
17336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17337 conftest$ac_exeext conftest.$ac_ext
17338 LIBS=$ac_check_lib_save_LIBS
17340 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17341 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17342 if test $ac_cv_lib_z_inflateCopy = yes; then
17344 cat >>confdefs.h <<\_ACEOF
17345 #define HAVE_ZLIB_COPY 1
17346 _ACEOF
17351 case $ac_sys_system/$ac_sys_release in
17352 Darwin/*)
17353 CFLAGS="${_CUR_CFLAGS}"
17354 LDFLAGS="${_CUR_LDFLAGS}"
17356 esac
17358 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17359 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17360 cat >conftest.$ac_ext <<_ACEOF
17361 /* confdefs.h. */
17362 _ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17367 #include "confdefs.h"
17368 #include <netdb.h>
17371 main ()
17373 void* p = hstrerror; hstrerror(0)
17375 return 0;
17377 _ACEOF
17378 rm -f conftest.$ac_objext conftest$ac_exeext
17379 if { (ac_try="$ac_link"
17380 case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17383 esac
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_link") 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } && {
17392 test -z "$ac_c_werror_flag" ||
17393 test ! -s conftest.err
17394 } && test -s conftest$ac_exeext &&
17395 $as_test_x conftest$ac_exeext; then
17397 cat >>confdefs.h <<\_ACEOF
17398 #define HAVE_HSTRERROR 1
17399 _ACEOF
17401 { echo "$as_me:$LINENO: result: yes" >&5
17402 echo "${ECHO_T}yes" >&6; }
17403 else
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 { echo "$as_me:$LINENO: result: no" >&5
17408 echo "${ECHO_T}no" >&6; }
17412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17413 conftest$ac_exeext conftest.$ac_ext
17415 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17416 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17417 cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h. */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17424 #include "confdefs.h"
17425 #include <sys/types.h>
17426 #include <sys/socket.h>
17427 #include <netinet/in.h>
17428 #include <arpa/inet.h>
17431 main ()
17433 void* p = inet_aton;inet_aton(0,0)
17435 return 0;
17437 _ACEOF
17438 rm -f conftest.$ac_objext conftest$ac_exeext
17439 if { (ac_try="$ac_link"
17440 case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_link") 2>conftest.er1
17446 ac_status=$?
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } && {
17452 test -z "$ac_c_werror_flag" ||
17453 test ! -s conftest.err
17454 } && test -s conftest$ac_exeext &&
17455 $as_test_x conftest$ac_exeext; then
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_INET_ATON 1
17459 _ACEOF
17461 { echo "$as_me:$LINENO: result: yes" >&5
17462 echo "${ECHO_T}yes" >&6; }
17463 else
17464 echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17467 { echo "$as_me:$LINENO: result: no" >&5
17468 echo "${ECHO_T}no" >&6; }
17472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17473 conftest$ac_exeext conftest.$ac_ext
17475 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17476 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17477 cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h. */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17484 #include "confdefs.h"
17485 #include <sys/types.h>
17486 #include <sys/socket.h>
17487 #include <netinet/in.h>
17488 #include <arpa/inet.h>
17491 main ()
17493 void* p = inet_pton
17495 return 0;
17497 _ACEOF
17498 rm -f conftest.$ac_objext
17499 if { (ac_try="$ac_compile"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_compile") 2>conftest.er1
17506 ac_status=$?
17507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } && {
17512 test -z "$ac_c_werror_flag" ||
17513 test ! -s conftest.err
17514 } && test -s conftest.$ac_objext; then
17516 cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_INET_PTON 1
17518 _ACEOF
17520 { echo "$as_me:$LINENO: result: yes" >&5
17521 echo "${ECHO_T}yes" >&6; }
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 { echo "$as_me:$LINENO: result: no" >&5
17527 echo "${ECHO_T}no" >&6; }
17531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533 # On some systems, setgroups is in unistd.h, on others, in grp.h
17534 { echo "$as_me:$LINENO: checking for setgroups" >&5
17535 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17536 cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h. */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17543 #include "confdefs.h"
17544 #include <unistd.h>
17545 #ifdef HAVE_GRP_H
17546 #include <grp.h>
17547 #endif
17550 main ()
17552 void* p = setgroups
17554 return 0;
17556 _ACEOF
17557 rm -f conftest.$ac_objext
17558 if { (ac_try="$ac_compile"
17559 case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest.$ac_objext; then
17575 cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_SETGROUPS 1
17577 _ACEOF
17579 { echo "$as_me:$LINENO: result: yes" >&5
17580 echo "${ECHO_T}yes" >&6; }
17581 else
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 { echo "$as_me:$LINENO: result: no" >&5
17586 echo "${ECHO_T}no" >&6; }
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 # check for openpty and forkpty
17595 for ac_func in openpty
17597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603 cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h. */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17611 #define $ac_func innocuous_$ac_func
17613 /* System header to define __stub macros and hopefully few prototypes,
17614 which can conflict with char $ac_func (); below.
17615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17616 <limits.h> exists even on freestanding compilers. */
17618 #ifdef __STDC__
17619 # include <limits.h>
17620 #else
17621 # include <assert.h>
17622 #endif
17624 #undef $ac_func
17626 /* Override any GCC internal prototype to avoid an error.
17627 Use char because int might match the return type of a GCC
17628 builtin and then its argument prototype would still apply. */
17629 #ifdef __cplusplus
17630 extern "C"
17631 #endif
17632 char $ac_func ();
17633 /* The GNU C library defines this for functions which it implements
17634 to always fail with ENOSYS. Some functions are actually named
17635 something starting with __ and the normal name is an alias. */
17636 #if defined __stub_$ac_func || defined __stub___$ac_func
17637 choke me
17638 #endif
17641 main ()
17643 return $ac_func ();
17645 return 0;
17647 _ACEOF
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (ac_try="$ac_link"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17653 esac
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_link") 2>conftest.er1
17656 ac_status=$?
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } && {
17662 test -z "$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17664 } && test -s conftest$ac_exeext &&
17665 $as_test_x conftest$ac_exeext; then
17666 eval "$as_ac_var=yes"
17667 else
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 eval "$as_ac_var=no"
17674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17675 conftest$ac_exeext conftest.$ac_ext
17677 ac_res=`eval echo '${'$as_ac_var'}'`
17678 { echo "$as_me:$LINENO: result: $ac_res" >&5
17679 echo "${ECHO_T}$ac_res" >&6; }
17680 if test `eval echo '${'$as_ac_var'}'` = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17683 _ACEOF
17685 else
17686 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17687 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17688 if test "${ac_cv_lib_util_openpty+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 else
17691 ac_check_lib_save_LIBS=$LIBS
17692 LIBS="-lutil $LIBS"
17693 cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h. */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
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 openpty ();
17708 main ()
17710 return openpty ();
17712 return 0;
17714 _ACEOF
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (ac_try="$ac_link"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_link") 2>conftest.er1
17723 ac_status=$?
17724 grep -v '^ *+' conftest.er1 >conftest.err
17725 rm -f conftest.er1
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && {
17729 test -z "$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 } && test -s conftest$ac_exeext &&
17732 $as_test_x conftest$ac_exeext; then
17733 ac_cv_lib_util_openpty=yes
17734 else
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17738 ac_cv_lib_util_openpty=no
17741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17742 conftest$ac_exeext conftest.$ac_ext
17743 LIBS=$ac_check_lib_save_LIBS
17745 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17746 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17747 if test $ac_cv_lib_util_openpty = yes; then
17748 cat >>confdefs.h <<\_ACEOF
17749 #define HAVE_OPENPTY 1
17750 _ACEOF
17751 LIBS="$LIBS -lutil"
17752 else
17753 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17754 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17755 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758 ac_check_lib_save_LIBS=$LIBS
17759 LIBS="-lbsd $LIBS"
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h. */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17767 /* Override any GCC internal prototype to avoid an error.
17768 Use char because int might match the return type of a GCC
17769 builtin and then its argument prototype would still apply. */
17770 #ifdef __cplusplus
17771 extern "C"
17772 #endif
17773 char openpty ();
17775 main ()
17777 return openpty ();
17779 return 0;
17781 _ACEOF
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (ac_try="$ac_link"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_link") 2>conftest.er1
17790 ac_status=$?
17791 grep -v '^ *+' conftest.er1 >conftest.err
17792 rm -f conftest.er1
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } && {
17796 test -z "$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 } && test -s conftest$ac_exeext &&
17799 $as_test_x conftest$ac_exeext; then
17800 ac_cv_lib_bsd_openpty=yes
17801 else
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 ac_cv_lib_bsd_openpty=no
17808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17809 conftest$ac_exeext conftest.$ac_ext
17810 LIBS=$ac_check_lib_save_LIBS
17812 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17813 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17814 if test $ac_cv_lib_bsd_openpty = yes; then
17815 cat >>confdefs.h <<\_ACEOF
17816 #define HAVE_OPENPTY 1
17817 _ACEOF
17818 LIBS="$LIBS -lbsd"
17826 done
17829 for ac_func in forkpty
17831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837 cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h. */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17845 #define $ac_func innocuous_$ac_func
17847 /* System header to define __stub macros and hopefully few prototypes,
17848 which can conflict with char $ac_func (); below.
17849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17850 <limits.h> exists even on freestanding compilers. */
17852 #ifdef __STDC__
17853 # include <limits.h>
17854 #else
17855 # include <assert.h>
17856 #endif
17858 #undef $ac_func
17860 /* Override any GCC internal prototype to avoid an error.
17861 Use char because int might match the return type of a GCC
17862 builtin and then its argument prototype would still apply. */
17863 #ifdef __cplusplus
17864 extern "C"
17865 #endif
17866 char $ac_func ();
17867 /* The GNU C library defines this for functions which it implements
17868 to always fail with ENOSYS. Some functions are actually named
17869 something starting with __ and the normal name is an alias. */
17870 #if defined __stub_$ac_func || defined __stub___$ac_func
17871 choke me
17872 #endif
17875 main ()
17877 return $ac_func ();
17879 return 0;
17881 _ACEOF
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } && {
17896 test -z "$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 } && test -s conftest$ac_exeext &&
17899 $as_test_x conftest$ac_exeext; then
17900 eval "$as_ac_var=yes"
17901 else
17902 echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17905 eval "$as_ac_var=no"
17908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17909 conftest$ac_exeext conftest.$ac_ext
17911 ac_res=`eval echo '${'$as_ac_var'}'`
17912 { echo "$as_me:$LINENO: result: $ac_res" >&5
17913 echo "${ECHO_T}$ac_res" >&6; }
17914 if test `eval echo '${'$as_ac_var'}'` = yes; then
17915 cat >>confdefs.h <<_ACEOF
17916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17917 _ACEOF
17919 else
17920 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17921 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17922 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 else
17925 ac_check_lib_save_LIBS=$LIBS
17926 LIBS="-lutil $LIBS"
17927 cat >conftest.$ac_ext <<_ACEOF
17928 /* confdefs.h. */
17929 _ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17934 /* Override any GCC internal prototype to avoid an error.
17935 Use char because int might match the return type of a GCC
17936 builtin and then its argument prototype would still apply. */
17937 #ifdef __cplusplus
17938 extern "C"
17939 #endif
17940 char forkpty ();
17942 main ()
17944 return forkpty ();
17946 return 0;
17948 _ACEOF
17949 rm -f conftest.$ac_objext conftest$ac_exeext
17950 if { (ac_try="$ac_link"
17951 case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_link") 2>conftest.er1
17957 ac_status=$?
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } && {
17963 test -z "$ac_c_werror_flag" ||
17964 test ! -s conftest.err
17965 } && test -s conftest$ac_exeext &&
17966 $as_test_x conftest$ac_exeext; then
17967 ac_cv_lib_util_forkpty=yes
17968 else
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 ac_cv_lib_util_forkpty=no
17975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17976 conftest$ac_exeext conftest.$ac_ext
17977 LIBS=$ac_check_lib_save_LIBS
17979 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17980 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17981 if test $ac_cv_lib_util_forkpty = yes; then
17982 cat >>confdefs.h <<\_ACEOF
17983 #define HAVE_FORKPTY 1
17984 _ACEOF
17985 LIBS="$LIBS -lutil"
17986 else
17987 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17988 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17989 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 else
17992 ac_check_lib_save_LIBS=$LIBS
17993 LIBS="-lbsd $LIBS"
17994 cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h. */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18001 /* Override any GCC internal prototype to avoid an error.
18002 Use char because int might match the return type of a GCC
18003 builtin and then its argument prototype would still apply. */
18004 #ifdef __cplusplus
18005 extern "C"
18006 #endif
18007 char forkpty ();
18009 main ()
18011 return forkpty ();
18013 return 0;
18015 _ACEOF
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (ac_try="$ac_link"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18024 ac_status=$?
18025 grep -v '^ *+' conftest.er1 >conftest.err
18026 rm -f conftest.er1
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest$ac_exeext &&
18033 $as_test_x conftest$ac_exeext; then
18034 ac_cv_lib_bsd_forkpty=yes
18035 else
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 ac_cv_lib_bsd_forkpty=no
18042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18043 conftest$ac_exeext conftest.$ac_ext
18044 LIBS=$ac_check_lib_save_LIBS
18046 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18047 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18048 if test $ac_cv_lib_bsd_forkpty = yes; then
18049 cat >>confdefs.h <<\_ACEOF
18050 #define HAVE_FORKPTY 1
18051 _ACEOF
18052 LIBS="$LIBS -lbsd"
18060 done
18063 # Stuff for expat.
18065 for ac_func in memmove
18067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 else
18073 cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h. */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18081 #define $ac_func innocuous_$ac_func
18083 /* System header to define __stub macros and hopefully few prototypes,
18084 which can conflict with char $ac_func (); below.
18085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18086 <limits.h> exists even on freestanding compilers. */
18088 #ifdef __STDC__
18089 # include <limits.h>
18090 #else
18091 # include <assert.h>
18092 #endif
18094 #undef $ac_func
18096 /* Override any GCC internal prototype to avoid an error.
18097 Use char because int might match the return type of a GCC
18098 builtin and then its argument prototype would still apply. */
18099 #ifdef __cplusplus
18100 extern "C"
18101 #endif
18102 char $ac_func ();
18103 /* The GNU C library defines this for functions which it implements
18104 to always fail with ENOSYS. Some functions are actually named
18105 something starting with __ and the normal name is an alias. */
18106 #if defined __stub_$ac_func || defined __stub___$ac_func
18107 choke me
18108 #endif
18111 main ()
18113 return $ac_func ();
18115 return 0;
18117 _ACEOF
18118 rm -f conftest.$ac_objext conftest$ac_exeext
18119 if { (ac_try="$ac_link"
18120 case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_link") 2>conftest.er1
18126 ac_status=$?
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest$ac_exeext &&
18135 $as_test_x conftest$ac_exeext; then
18136 eval "$as_ac_var=yes"
18137 else
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 eval "$as_ac_var=no"
18144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18145 conftest$ac_exeext conftest.$ac_ext
18147 ac_res=`eval echo '${'$as_ac_var'}'`
18148 { echo "$as_me:$LINENO: result: $ac_res" >&5
18149 echo "${ECHO_T}$ac_res" >&6; }
18150 if test `eval echo '${'$as_ac_var'}'` = yes; then
18151 cat >>confdefs.h <<_ACEOF
18152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18153 _ACEOF
18156 done
18159 # check for long file support functions
18166 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174 cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h. */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18182 #define $ac_func innocuous_$ac_func
18184 /* System header to define __stub macros and hopefully few prototypes,
18185 which can conflict with char $ac_func (); below.
18186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18187 <limits.h> exists even on freestanding compilers. */
18189 #ifdef __STDC__
18190 # include <limits.h>
18191 #else
18192 # include <assert.h>
18193 #endif
18195 #undef $ac_func
18197 /* Override any GCC internal prototype to avoid an error.
18198 Use char because int might match the return type of a GCC
18199 builtin and then its argument prototype would still apply. */
18200 #ifdef __cplusplus
18201 extern "C"
18202 #endif
18203 char $ac_func ();
18204 /* The GNU C library defines this for functions which it implements
18205 to always fail with ENOSYS. Some functions are actually named
18206 something starting with __ and the normal name is an alias. */
18207 #if defined __stub_$ac_func || defined __stub___$ac_func
18208 choke me
18209 #endif
18212 main ()
18214 return $ac_func ();
18216 return 0;
18218 _ACEOF
18219 rm -f conftest.$ac_objext conftest$ac_exeext
18220 if { (ac_try="$ac_link"
18221 case "(($ac_try" in
18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223 *) ac_try_echo=$ac_try;;
18224 esac
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_link") 2>conftest.er1
18227 ac_status=$?
18228 grep -v '^ *+' conftest.er1 >conftest.err
18229 rm -f conftest.er1
18230 cat conftest.err >&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } && {
18233 test -z "$ac_c_werror_flag" ||
18234 test ! -s conftest.err
18235 } && test -s conftest$ac_exeext &&
18236 $as_test_x conftest$ac_exeext; then
18237 eval "$as_ac_var=yes"
18238 else
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 eval "$as_ac_var=no"
18245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18246 conftest$ac_exeext conftest.$ac_ext
18248 ac_res=`eval echo '${'$as_ac_var'}'`
18249 { echo "$as_me:$LINENO: result: $ac_res" >&5
18250 echo "${ECHO_T}$ac_res" >&6; }
18251 if test `eval echo '${'$as_ac_var'}'` = yes; then
18252 cat >>confdefs.h <<_ACEOF
18253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18254 _ACEOF
18257 done
18263 for ac_func in dup2 getcwd strdup
18265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 else
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h. */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18279 #define $ac_func innocuous_$ac_func
18281 /* System header to define __stub macros and hopefully few prototypes,
18282 which can conflict with char $ac_func (); below.
18283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18284 <limits.h> exists even on freestanding compilers. */
18286 #ifdef __STDC__
18287 # include <limits.h>
18288 #else
18289 # include <assert.h>
18290 #endif
18292 #undef $ac_func
18294 /* Override any GCC internal prototype to avoid an error.
18295 Use char because int might match the return type of a GCC
18296 builtin and then its argument prototype would still apply. */
18297 #ifdef __cplusplus
18298 extern "C"
18299 #endif
18300 char $ac_func ();
18301 /* The GNU C library defines this for functions which it implements
18302 to always fail with ENOSYS. Some functions are actually named
18303 something starting with __ and the normal name is an alias. */
18304 #if defined __stub_$ac_func || defined __stub___$ac_func
18305 choke me
18306 #endif
18309 main ()
18311 return $ac_func ();
18313 return 0;
18315 _ACEOF
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (ac_try="$ac_link"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_link") 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } && {
18330 test -z "$ac_c_werror_flag" ||
18331 test ! -s conftest.err
18332 } && test -s conftest$ac_exeext &&
18333 $as_test_x conftest$ac_exeext; then
18334 eval "$as_ac_var=yes"
18335 else
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18339 eval "$as_ac_var=no"
18342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18343 conftest$ac_exeext conftest.$ac_ext
18345 ac_res=`eval echo '${'$as_ac_var'}'`
18346 { echo "$as_me:$LINENO: result: $ac_res" >&5
18347 echo "${ECHO_T}$ac_res" >&6; }
18348 if test `eval echo '${'$as_ac_var'}'` = yes; then
18349 cat >>confdefs.h <<_ACEOF
18350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18351 _ACEOF
18353 else
18354 case " $LIBOBJS " in
18355 *" $ac_func.$ac_objext "* ) ;;
18356 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18358 esac
18361 done
18365 for ac_func in getpgrp
18367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18371 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 else
18373 cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h. */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18381 #define $ac_func innocuous_$ac_func
18383 /* System header to define __stub macros and hopefully few prototypes,
18384 which can conflict with char $ac_func (); below.
18385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18386 <limits.h> exists even on freestanding compilers. */
18388 #ifdef __STDC__
18389 # include <limits.h>
18390 #else
18391 # include <assert.h>
18392 #endif
18394 #undef $ac_func
18396 /* Override any GCC internal prototype to avoid an error.
18397 Use char because int might match the return type of a GCC
18398 builtin and then its argument prototype would still apply. */
18399 #ifdef __cplusplus
18400 extern "C"
18401 #endif
18402 char $ac_func ();
18403 /* The GNU C library defines this for functions which it implements
18404 to always fail with ENOSYS. Some functions are actually named
18405 something starting with __ and the normal name is an alias. */
18406 #if defined __stub_$ac_func || defined __stub___$ac_func
18407 choke me
18408 #endif
18411 main ()
18413 return $ac_func ();
18415 return 0;
18417 _ACEOF
18418 rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_link") 2>conftest.er1
18426 ac_status=$?
18427 grep -v '^ *+' conftest.er1 >conftest.err
18428 rm -f conftest.er1
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } && {
18432 test -z "$ac_c_werror_flag" ||
18433 test ! -s conftest.err
18434 } && test -s conftest$ac_exeext &&
18435 $as_test_x conftest$ac_exeext; then
18436 eval "$as_ac_var=yes"
18437 else
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18441 eval "$as_ac_var=no"
18444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18445 conftest$ac_exeext conftest.$ac_ext
18447 ac_res=`eval echo '${'$as_ac_var'}'`
18448 { echo "$as_me:$LINENO: result: $ac_res" >&5
18449 echo "${ECHO_T}$ac_res" >&6; }
18450 if test `eval echo '${'$as_ac_var'}'` = yes; then
18451 cat >>confdefs.h <<_ACEOF
18452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18453 _ACEOF
18454 cat >conftest.$ac_ext <<_ACEOF
18455 /* confdefs.h. */
18456 _ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h. */
18460 #include <unistd.h>
18462 main ()
18464 getpgrp(0);
18466 return 0;
18468 _ACEOF
18469 rm -f conftest.$ac_objext
18470 if { (ac_try="$ac_compile"
18471 case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_compile") 2>conftest.er1
18477 ac_status=$?
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } && {
18483 test -z "$ac_c_werror_flag" ||
18484 test ! -s conftest.err
18485 } && test -s conftest.$ac_objext; then
18487 cat >>confdefs.h <<\_ACEOF
18488 #define GETPGRP_HAVE_ARG 1
18489 _ACEOF
18492 else
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18502 done
18505 for ac_func in setpgrp
18507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513 cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h. */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18521 #define $ac_func innocuous_$ac_func
18523 /* System header to define __stub macros and hopefully few prototypes,
18524 which can conflict with char $ac_func (); below.
18525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18526 <limits.h> exists even on freestanding compilers. */
18528 #ifdef __STDC__
18529 # include <limits.h>
18530 #else
18531 # include <assert.h>
18532 #endif
18534 #undef $ac_func
18536 /* Override any GCC internal prototype to avoid an error.
18537 Use char because int might match the return type of a GCC
18538 builtin and then its argument prototype would still apply. */
18539 #ifdef __cplusplus
18540 extern "C"
18541 #endif
18542 char $ac_func ();
18543 /* The GNU C library defines this for functions which it implements
18544 to always fail with ENOSYS. Some functions are actually named
18545 something starting with __ and the normal name is an alias. */
18546 #if defined __stub_$ac_func || defined __stub___$ac_func
18547 choke me
18548 #endif
18551 main ()
18553 return $ac_func ();
18555 return 0;
18557 _ACEOF
18558 rm -f conftest.$ac_objext conftest$ac_exeext
18559 if { (ac_try="$ac_link"
18560 case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18563 esac
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_link") 2>conftest.er1
18566 ac_status=$?
18567 grep -v '^ *+' conftest.er1 >conftest.err
18568 rm -f conftest.er1
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } && {
18572 test -z "$ac_c_werror_flag" ||
18573 test ! -s conftest.err
18574 } && test -s conftest$ac_exeext &&
18575 $as_test_x conftest$ac_exeext; then
18576 eval "$as_ac_var=yes"
18577 else
18578 echo "$as_me: failed program was:" >&5
18579 sed 's/^/| /' conftest.$ac_ext >&5
18581 eval "$as_ac_var=no"
18584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18585 conftest$ac_exeext conftest.$ac_ext
18587 ac_res=`eval echo '${'$as_ac_var'}'`
18588 { echo "$as_me:$LINENO: result: $ac_res" >&5
18589 echo "${ECHO_T}$ac_res" >&6; }
18590 if test `eval echo '${'$as_ac_var'}'` = yes; then
18591 cat >>confdefs.h <<_ACEOF
18592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18593 _ACEOF
18594 cat >conftest.$ac_ext <<_ACEOF
18595 /* confdefs.h. */
18596 _ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18600 #include <unistd.h>
18602 main ()
18604 setpgrp(0,0);
18606 return 0;
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (ac_try="$ac_compile"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_compile") 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } && {
18623 test -z "$ac_c_werror_flag" ||
18624 test ! -s conftest.err
18625 } && test -s conftest.$ac_objext; then
18627 cat >>confdefs.h <<\_ACEOF
18628 #define SETPGRP_HAVE_ARG 1
18629 _ACEOF
18632 else
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18642 done
18645 for ac_func in gettimeofday
18647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18652 else
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h. */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18661 #define $ac_func innocuous_$ac_func
18663 /* System header to define __stub macros and hopefully few prototypes,
18664 which can conflict with char $ac_func (); below.
18665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18666 <limits.h> exists even on freestanding compilers. */
18668 #ifdef __STDC__
18669 # include <limits.h>
18670 #else
18671 # include <assert.h>
18672 #endif
18674 #undef $ac_func
18676 /* Override any GCC internal prototype to avoid an error.
18677 Use char because int might match the return type of a GCC
18678 builtin and then its argument prototype would still apply. */
18679 #ifdef __cplusplus
18680 extern "C"
18681 #endif
18682 char $ac_func ();
18683 /* The GNU C library defines this for functions which it implements
18684 to always fail with ENOSYS. Some functions are actually named
18685 something starting with __ and the normal name is an alias. */
18686 #if defined __stub_$ac_func || defined __stub___$ac_func
18687 choke me
18688 #endif
18691 main ()
18693 return $ac_func ();
18695 return 0;
18697 _ACEOF
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (ac_try="$ac_link"
18700 case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18703 esac
18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_link") 2>conftest.er1
18706 ac_status=$?
18707 grep -v '^ *+' conftest.er1 >conftest.err
18708 rm -f conftest.er1
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } && {
18712 test -z "$ac_c_werror_flag" ||
18713 test ! -s conftest.err
18714 } && test -s conftest$ac_exeext &&
18715 $as_test_x conftest$ac_exeext; then
18716 eval "$as_ac_var=yes"
18717 else
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 eval "$as_ac_var=no"
18724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18725 conftest$ac_exeext conftest.$ac_ext
18727 ac_res=`eval echo '${'$as_ac_var'}'`
18728 { echo "$as_me:$LINENO: result: $ac_res" >&5
18729 echo "${ECHO_T}$ac_res" >&6; }
18730 if test `eval echo '${'$as_ac_var'}'` = yes; then
18731 cat >>confdefs.h <<_ACEOF
18732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18733 _ACEOF
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h. */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 #include <sys/time.h>
18742 main ()
18744 gettimeofday((struct timeval*)0,(struct timezone*)0);
18746 return 0;
18748 _ACEOF
18749 rm -f conftest.$ac_objext
18750 if { (ac_try="$ac_compile"
18751 case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_compile") 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } && {
18763 test -z "$ac_c_werror_flag" ||
18764 test ! -s conftest.err
18765 } && test -s conftest.$ac_objext; then
18767 else
18768 echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18772 cat >>confdefs.h <<\_ACEOF
18773 #define GETTIMEOFDAY_NO_TZ 1
18774 _ACEOF
18779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18782 done
18785 { echo "$as_me:$LINENO: checking for major" >&5
18786 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18787 cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h. */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18794 #if defined(MAJOR_IN_MKDEV)
18795 #include <sys/mkdev.h>
18796 #elif defined(MAJOR_IN_SYSMACROS)
18797 #include <sys/sysmacros.h>
18798 #else
18799 #include <sys/types.h>
18800 #endif
18803 main ()
18806 makedev(major(0),minor(0));
18809 return 0;
18811 _ACEOF
18812 rm -f conftest.$ac_objext conftest$ac_exeext
18813 if { (ac_try="$ac_link"
18814 case "(($ac_try" in
18815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816 *) ac_try_echo=$ac_try;;
18817 esac
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819 (eval "$ac_link") 2>conftest.er1
18820 ac_status=$?
18821 grep -v '^ *+' conftest.er1 >conftest.err
18822 rm -f conftest.er1
18823 cat conftest.err >&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } && {
18826 test -z "$ac_c_werror_flag" ||
18827 test ! -s conftest.err
18828 } && test -s conftest$ac_exeext &&
18829 $as_test_x conftest$ac_exeext; then
18832 cat >>confdefs.h <<\_ACEOF
18833 #define HAVE_DEVICE_MACROS 1
18834 _ACEOF
18836 { echo "$as_me:$LINENO: result: yes" >&5
18837 echo "${ECHO_T}yes" >&6; }
18839 else
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18844 { echo "$as_me:$LINENO: result: no" >&5
18845 echo "${ECHO_T}no" >&6; }
18849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18850 conftest$ac_exeext conftest.$ac_ext
18852 # On OSF/1 V5.1, getaddrinfo is available, but a define
18853 # for [no]getaddrinfo in netdb.h.
18854 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18855 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h. */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18863 #include <sys/types.h>
18864 #include <sys/socket.h>
18865 #include <netdb.h>
18866 #include <stdio.h>
18869 main ()
18872 getaddrinfo(NULL, NULL, NULL, NULL);
18875 return 0;
18877 _ACEOF
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18883 esac
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_link") 2>conftest.er1
18886 ac_status=$?
18887 grep -v '^ *+' conftest.er1 >conftest.err
18888 rm -f conftest.er1
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } && {
18892 test -z "$ac_c_werror_flag" ||
18893 test ! -s conftest.err
18894 } && test -s conftest$ac_exeext &&
18895 $as_test_x conftest$ac_exeext; then
18897 { echo "$as_me:$LINENO: result: yes" >&5
18898 echo "${ECHO_T}yes" >&6; }
18899 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18900 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18901 if test "$cross_compiling" = yes; then
18902 { echo "$as_me:$LINENO: result: buggy" >&5
18903 echo "${ECHO_T}buggy" >&6; }
18904 buggygetaddrinfo=yes
18905 else
18906 cat >conftest.$ac_ext <<_ACEOF
18907 /* confdefs.h. */
18908 _ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18913 #include <sys/types.h>
18914 #include <netdb.h>
18915 #include <string.h>
18916 #include <sys/socket.h>
18917 #include <netinet/in.h>
18919 main()
18921 int passive, gaierr, inet4 = 0, inet6 = 0;
18922 struct addrinfo hints, *ai, *aitop;
18923 char straddr[INET6_ADDRSTRLEN], strport[16];
18925 for (passive = 0; passive <= 1; passive++) {
18926 memset(&hints, 0, sizeof(hints));
18927 hints.ai_family = AF_UNSPEC;
18928 hints.ai_flags = passive ? AI_PASSIVE : 0;
18929 hints.ai_socktype = SOCK_STREAM;
18930 hints.ai_protocol = IPPROTO_TCP;
18931 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18932 (void)gai_strerror(gaierr);
18933 goto bad;
18935 for (ai = aitop; ai; ai = ai->ai_next) {
18936 if (ai->ai_addr == NULL ||
18937 ai->ai_addrlen == 0 ||
18938 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18939 straddr, sizeof(straddr), strport, sizeof(strport),
18940 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18941 goto bad;
18943 switch (ai->ai_family) {
18944 case AF_INET:
18945 if (strcmp(strport, "54321") != 0) {
18946 goto bad;
18948 if (passive) {
18949 if (strcmp(straddr, "0.0.0.0") != 0) {
18950 goto bad;
18952 } else {
18953 if (strcmp(straddr, "127.0.0.1") != 0) {
18954 goto bad;
18957 inet4++;
18958 break;
18959 case AF_INET6:
18960 if (strcmp(strport, "54321") != 0) {
18961 goto bad;
18963 if (passive) {
18964 if (strcmp(straddr, "::") != 0) {
18965 goto bad;
18967 } else {
18968 if (strcmp(straddr, "::1") != 0) {
18969 goto bad;
18972 inet6++;
18973 break;
18974 case AF_UNSPEC:
18975 goto bad;
18976 break;
18977 default:
18978 /* another family support? */
18979 break;
18984 if (!(inet4 == 0 || inet4 == 2))
18985 goto bad;
18986 if (!(inet6 == 0 || inet6 == 2))
18987 goto bad;
18989 if (aitop)
18990 freeaddrinfo(aitop);
18991 exit(0);
18993 bad:
18994 if (aitop)
18995 freeaddrinfo(aitop);
18996 exit(1);
18999 _ACEOF
19000 rm -f conftest$ac_exeext
19001 if { (ac_try="$ac_link"
19002 case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_link") 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19011 { (case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_try") 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 { echo "$as_me:$LINENO: result: good" >&5
19021 echo "${ECHO_T}good" >&6; }
19022 buggygetaddrinfo=no
19023 else
19024 echo "$as_me: program exited with status $ac_status" >&5
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 ( exit $ac_status )
19029 { echo "$as_me:$LINENO: result: buggy" >&5
19030 echo "${ECHO_T}buggy" >&6; }
19031 buggygetaddrinfo=yes
19033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19037 else
19038 echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19042 { echo "$as_me:$LINENO: result: no" >&5
19043 echo "${ECHO_T}no" >&6; }
19044 buggygetaddrinfo=yes
19048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19049 conftest$ac_exeext conftest.$ac_ext
19051 if test "$buggygetaddrinfo" = "yes"; then
19052 if test "$ipv6" = "yes"; then
19053 echo 'Fatal: You must get working getaddrinfo() function.'
19054 echo ' or you can specify "--disable-ipv6"'.
19055 exit 1
19057 else
19059 cat >>confdefs.h <<\_ACEOF
19060 #define HAVE_GETADDRINFO 1
19061 _ACEOF
19065 for ac_func in getnameinfo
19067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073 cat >conftest.$ac_ext <<_ACEOF
19074 /* confdefs.h. */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19081 #define $ac_func innocuous_$ac_func
19083 /* System header to define __stub macros and hopefully few prototypes,
19084 which can conflict with char $ac_func (); below.
19085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19086 <limits.h> exists even on freestanding compilers. */
19088 #ifdef __STDC__
19089 # include <limits.h>
19090 #else
19091 # include <assert.h>
19092 #endif
19094 #undef $ac_func
19096 /* Override any GCC internal prototype to avoid an error.
19097 Use char because int might match the return type of a GCC
19098 builtin and then its argument prototype would still apply. */
19099 #ifdef __cplusplus
19100 extern "C"
19101 #endif
19102 char $ac_func ();
19103 /* The GNU C library defines this for functions which it implements
19104 to always fail with ENOSYS. Some functions are actually named
19105 something starting with __ and the normal name is an alias. */
19106 #if defined __stub_$ac_func || defined __stub___$ac_func
19107 choke me
19108 #endif
19111 main ()
19113 return $ac_func ();
19115 return 0;
19117 _ACEOF
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19123 esac
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && {
19132 test -z "$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19134 } && test -s conftest$ac_exeext &&
19135 $as_test_x conftest$ac_exeext; then
19136 eval "$as_ac_var=yes"
19137 else
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19141 eval "$as_ac_var=no"
19144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19145 conftest$ac_exeext conftest.$ac_ext
19147 ac_res=`eval echo '${'$as_ac_var'}'`
19148 { echo "$as_me:$LINENO: result: $ac_res" >&5
19149 echo "${ECHO_T}$ac_res" >&6; }
19150 if test `eval echo '${'$as_ac_var'}'` = yes; then
19151 cat >>confdefs.h <<_ACEOF
19152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19153 _ACEOF
19156 done
19159 # checks for structures
19160 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19161 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19162 if test "${ac_cv_header_time+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165 cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h. */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 #include <sys/types.h>
19172 #include <sys/time.h>
19173 #include <time.h>
19176 main ()
19178 if ((struct tm *) 0)
19179 return 0;
19181 return 0;
19183 _ACEOF
19184 rm -f conftest.$ac_objext
19185 if { (ac_try="$ac_compile"
19186 case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_compile") 2>conftest.er1
19192 ac_status=$?
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest.$ac_objext; then
19201 ac_cv_header_time=yes
19202 else
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ac_cv_header_time=no
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19212 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19213 if test $ac_cv_header_time = yes; then
19215 cat >>confdefs.h <<\_ACEOF
19216 #define TIME_WITH_SYS_TIME 1
19217 _ACEOF
19221 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19222 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19223 if test "${ac_cv_struct_tm+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19225 else
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h. */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <sys/types.h>
19233 #include <time.h>
19236 main ()
19238 struct tm tm;
19239 int *p = &tm.tm_sec;
19240 return !p;
19242 return 0;
19244 _ACEOF
19245 rm -f conftest.$ac_objext
19246 if { (ac_try="$ac_compile"
19247 case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19250 esac
19251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_compile") 2>conftest.er1
19253 ac_status=$?
19254 grep -v '^ *+' conftest.er1 >conftest.err
19255 rm -f conftest.er1
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } && {
19259 test -z "$ac_c_werror_flag" ||
19260 test ! -s conftest.err
19261 } && test -s conftest.$ac_objext; then
19262 ac_cv_struct_tm=time.h
19263 else
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19267 ac_cv_struct_tm=sys/time.h
19270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19273 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19274 if test $ac_cv_struct_tm = sys/time.h; then
19276 cat >>confdefs.h <<\_ACEOF
19277 #define TM_IN_SYS_TIME 1
19278 _ACEOF
19282 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19283 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19284 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 else
19287 cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h. */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 #include <sys/types.h>
19294 #include <$ac_cv_struct_tm>
19298 main ()
19300 static struct tm ac_aggr;
19301 if (ac_aggr.tm_zone)
19302 return 0;
19304 return 0;
19306 _ACEOF
19307 rm -f conftest.$ac_objext
19308 if { (ac_try="$ac_compile"
19309 case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19312 esac
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_compile") 2>conftest.er1
19315 ac_status=$?
19316 grep -v '^ *+' conftest.er1 >conftest.err
19317 rm -f conftest.er1
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } && {
19321 test -z "$ac_c_werror_flag" ||
19322 test ! -s conftest.err
19323 } && test -s conftest.$ac_objext; then
19324 ac_cv_member_struct_tm_tm_zone=yes
19325 else
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h. */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19335 #include <sys/types.h>
19336 #include <$ac_cv_struct_tm>
19340 main ()
19342 static struct tm ac_aggr;
19343 if (sizeof ac_aggr.tm_zone)
19344 return 0;
19346 return 0;
19348 _ACEOF
19349 rm -f conftest.$ac_objext
19350 if { (ac_try="$ac_compile"
19351 case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354 esac
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_compile") 2>conftest.er1
19357 ac_status=$?
19358 grep -v '^ *+' conftest.er1 >conftest.err
19359 rm -f conftest.er1
19360 cat conftest.err >&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest.$ac_objext; then
19366 ac_cv_member_struct_tm_tm_zone=yes
19367 else
19368 echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19371 ac_cv_member_struct_tm_tm_zone=no
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19379 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19380 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19381 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19383 cat >>confdefs.h <<_ACEOF
19384 #define HAVE_STRUCT_TM_TM_ZONE 1
19385 _ACEOF
19390 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19392 cat >>confdefs.h <<\_ACEOF
19393 #define HAVE_TM_ZONE 1
19394 _ACEOF
19396 else
19397 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19398 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19399 if test "${ac_cv_have_decl_tzname+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 else
19402 cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h. */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 #include <time.h>
19411 main ()
19413 #ifndef tzname
19414 (void) tzname;
19415 #endif
19418 return 0;
19420 _ACEOF
19421 rm -f conftest.$ac_objext
19422 if { (ac_try="$ac_compile"
19423 case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_compile") 2>conftest.er1
19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } && {
19435 test -z "$ac_c_werror_flag" ||
19436 test ! -s conftest.err
19437 } && test -s conftest.$ac_objext; then
19438 ac_cv_have_decl_tzname=yes
19439 else
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 ac_cv_have_decl_tzname=no
19446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19448 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19449 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19450 if test $ac_cv_have_decl_tzname = yes; then
19452 cat >>confdefs.h <<_ACEOF
19453 #define HAVE_DECL_TZNAME 1
19454 _ACEOF
19457 else
19458 cat >>confdefs.h <<_ACEOF
19459 #define HAVE_DECL_TZNAME 0
19460 _ACEOF
19466 { echo "$as_me:$LINENO: checking for tzname" >&5
19467 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19468 if test "${ac_cv_var_tzname+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19477 #include <time.h>
19478 #if !HAVE_DECL_TZNAME
19479 extern char *tzname[];
19480 #endif
19483 main ()
19485 return tzname[0][0];
19487 return 0;
19489 _ACEOF
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (ac_try="$ac_link"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_link") 2>conftest.er1
19498 ac_status=$?
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && {
19504 test -z "$ac_c_werror_flag" ||
19505 test ! -s conftest.err
19506 } && test -s conftest$ac_exeext &&
19507 $as_test_x conftest$ac_exeext; then
19508 ac_cv_var_tzname=yes
19509 else
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19513 ac_cv_var_tzname=no
19516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19517 conftest$ac_exeext conftest.$ac_ext
19519 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19520 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19521 if test $ac_cv_var_tzname = yes; then
19523 cat >>confdefs.h <<\_ACEOF
19524 #define HAVE_TZNAME 1
19525 _ACEOF
19530 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19531 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19532 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 else
19535 cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h. */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 $ac_includes_default
19543 main ()
19545 static struct stat ac_aggr;
19546 if (ac_aggr.st_rdev)
19547 return 0;
19549 return 0;
19551 _ACEOF
19552 rm -f conftest.$ac_objext
19553 if { (ac_try="$ac_compile"
19554 case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_compile") 2>conftest.er1
19560 ac_status=$?
19561 grep -v '^ *+' conftest.er1 >conftest.err
19562 rm -f conftest.er1
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest.$ac_objext; then
19569 ac_cv_member_struct_stat_st_rdev=yes
19570 else
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h. */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 $ac_includes_default
19582 main ()
19584 static struct stat ac_aggr;
19585 if (sizeof ac_aggr.st_rdev)
19586 return 0;
19588 return 0;
19590 _ACEOF
19591 rm -f conftest.$ac_objext
19592 if { (ac_try="$ac_compile"
19593 case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19596 esac
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_compile") 2>conftest.er1
19599 ac_status=$?
19600 grep -v '^ *+' conftest.er1 >conftest.err
19601 rm -f conftest.er1
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } && {
19605 test -z "$ac_c_werror_flag" ||
19606 test ! -s conftest.err
19607 } && test -s conftest.$ac_objext; then
19608 ac_cv_member_struct_stat_st_rdev=yes
19609 else
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19613 ac_cv_member_struct_stat_st_rdev=no
19616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19622 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19623 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19625 cat >>confdefs.h <<_ACEOF
19626 #define HAVE_STRUCT_STAT_ST_RDEV 1
19627 _ACEOF
19632 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19633 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19634 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637 cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h. */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19643 $ac_includes_default
19645 main ()
19647 static struct stat ac_aggr;
19648 if (ac_aggr.st_blksize)
19649 return 0;
19651 return 0;
19653 _ACEOF
19654 rm -f conftest.$ac_objext
19655 if { (ac_try="$ac_compile"
19656 case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19659 esac
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_compile") 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && {
19668 test -z "$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 } && test -s conftest.$ac_objext; then
19671 ac_cv_member_struct_stat_st_blksize=yes
19672 else
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 $ac_includes_default
19684 main ()
19686 static struct stat ac_aggr;
19687 if (sizeof ac_aggr.st_blksize)
19688 return 0;
19690 return 0;
19692 _ACEOF
19693 rm -f conftest.$ac_objext
19694 if { (ac_try="$ac_compile"
19695 case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_compile") 2>conftest.er1
19701 ac_status=$?
19702 grep -v '^ *+' conftest.er1 >conftest.err
19703 rm -f conftest.er1
19704 cat conftest.err >&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); } && {
19707 test -z "$ac_c_werror_flag" ||
19708 test ! -s conftest.err
19709 } && test -s conftest.$ac_objext; then
19710 ac_cv_member_struct_stat_st_blksize=yes
19711 else
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 ac_cv_member_struct_stat_st_blksize=no
19718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19723 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19724 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19725 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19727 cat >>confdefs.h <<_ACEOF
19728 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19729 _ACEOF
19734 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19735 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19736 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739 cat >conftest.$ac_ext <<_ACEOF
19740 /* confdefs.h. */
19741 _ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19745 $ac_includes_default
19747 main ()
19749 static struct stat ac_aggr;
19750 if (ac_aggr.st_flags)
19751 return 0;
19753 return 0;
19755 _ACEOF
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761 esac
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest.$ac_objext; then
19773 ac_cv_member_struct_stat_st_flags=yes
19774 else
19775 echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19778 cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h. */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19784 $ac_includes_default
19786 main ()
19788 static struct stat ac_aggr;
19789 if (sizeof ac_aggr.st_flags)
19790 return 0;
19792 return 0;
19794 _ACEOF
19795 rm -f conftest.$ac_objext
19796 if { (ac_try="$ac_compile"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_compile") 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest.$ac_objext; then
19812 ac_cv_member_struct_stat_st_flags=yes
19813 else
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_cv_member_struct_stat_st_flags=no
19820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19826 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19827 if test $ac_cv_member_struct_stat_st_flags = yes; then
19829 cat >>confdefs.h <<_ACEOF
19830 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19831 _ACEOF
19836 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19837 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19838 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841 cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h. */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 $ac_includes_default
19849 main ()
19851 static struct stat ac_aggr;
19852 if (ac_aggr.st_gen)
19853 return 0;
19855 return 0;
19857 _ACEOF
19858 rm -f conftest.$ac_objext
19859 if { (ac_try="$ac_compile"
19860 case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_compile") 2>conftest.er1
19866 ac_status=$?
19867 grep -v '^ *+' conftest.er1 >conftest.err
19868 rm -f conftest.er1
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest.$ac_objext; then
19875 ac_cv_member_struct_stat_st_gen=yes
19876 else
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h. */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 $ac_includes_default
19888 main ()
19890 static struct stat ac_aggr;
19891 if (sizeof ac_aggr.st_gen)
19892 return 0;
19894 return 0;
19896 _ACEOF
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19905 ac_status=$?
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest.$ac_objext; then
19914 ac_cv_member_struct_stat_st_gen=yes
19915 else
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_cv_member_struct_stat_st_gen=no
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19928 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19929 if test $ac_cv_member_struct_stat_st_gen = yes; then
19931 cat >>confdefs.h <<_ACEOF
19932 #define HAVE_STRUCT_STAT_ST_GEN 1
19933 _ACEOF
19938 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19939 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19940 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 $ac_includes_default
19951 main ()
19953 static struct stat ac_aggr;
19954 if (ac_aggr.st_birthtime)
19955 return 0;
19957 return 0;
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest.$ac_objext; then
19977 ac_cv_member_struct_stat_st_birthtime=yes
19978 else
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h. */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19990 main ()
19992 static struct stat ac_aggr;
19993 if (sizeof ac_aggr.st_birthtime)
19994 return 0;
19996 return 0;
19998 _ACEOF
19999 rm -f conftest.$ac_objext
20000 if { (ac_try="$ac_compile"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_compile") 2>conftest.er1
20007 ac_status=$?
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest.$ac_objext; then
20016 ac_cv_member_struct_stat_st_birthtime=yes
20017 else
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_cv_member_struct_stat_st_birthtime=no
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20030 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20031 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20033 cat >>confdefs.h <<_ACEOF
20034 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20035 _ACEOF
20040 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20041 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20042 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h. */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 $ac_includes_default
20053 main ()
20055 static struct stat ac_aggr;
20056 if (ac_aggr.st_blocks)
20057 return 0;
20059 return 0;
20061 _ACEOF
20062 rm -f conftest.$ac_objext
20063 if { (ac_try="$ac_compile"
20064 case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20067 esac
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_compile") 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest.$ac_objext; then
20079 ac_cv_member_struct_stat_st_blocks=yes
20080 else
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20084 cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h. */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 $ac_includes_default
20092 main ()
20094 static struct stat ac_aggr;
20095 if (sizeof ac_aggr.st_blocks)
20096 return 0;
20098 return 0;
20100 _ACEOF
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_compile") 2>conftest.er1
20109 ac_status=$?
20110 grep -v '^ *+' conftest.er1 >conftest.err
20111 rm -f conftest.er1
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest.$ac_objext; then
20118 ac_cv_member_struct_stat_st_blocks=yes
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_member_struct_stat_st_blocks=no
20126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20132 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20133 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20137 _ACEOF
20140 cat >>confdefs.h <<\_ACEOF
20141 #define HAVE_ST_BLOCKS 1
20142 _ACEOF
20144 else
20145 case " $LIBOBJS " in
20146 *" fileblocks.$ac_objext "* ) ;;
20147 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20149 esac
20155 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20156 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20157 if test "${ac_cv_header_time_altzone+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 #include <time.h>
20168 main ()
20170 return altzone;
20172 return 0;
20174 _ACEOF
20175 rm -f conftest.$ac_objext
20176 if { (ac_try="$ac_compile"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20180 esac
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_compile") 2>conftest.er1
20183 ac_status=$?
20184 grep -v '^ *+' conftest.er1 >conftest.err
20185 rm -f conftest.er1
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && {
20189 test -z "$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 } && test -s conftest.$ac_objext; then
20192 ac_cv_header_time_altzone=yes
20193 else
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 ac_cv_header_time_altzone=no
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20203 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20204 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20205 if test $ac_cv_header_time_altzone = yes; then
20207 cat >>confdefs.h <<\_ACEOF
20208 #define HAVE_ALTZONE 1
20209 _ACEOF
20213 was_it_defined=no
20214 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20215 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h. */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20223 #include <sys/types.h>
20224 #include <sys/select.h>
20225 #include <sys/time.h>
20228 main ()
20232 return 0;
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_compile") 2>conftest.er1
20243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && {
20249 test -z "$ac_c_werror_flag" ||
20250 test ! -s conftest.err
20251 } && test -s conftest.$ac_objext; then
20254 cat >>confdefs.h <<\_ACEOF
20255 #define SYS_SELECT_WITH_SYS_TIME 1
20256 _ACEOF
20258 was_it_defined=yes
20260 else
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20268 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20269 echo "${ECHO_T}$was_it_defined" >&6; }
20271 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20272 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20273 if test "${ac_cv_struct_addrinfo+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20283 # include <netdb.h>
20285 main ()
20287 struct addrinfo a
20289 return 0;
20291 _ACEOF
20292 rm -f conftest.$ac_objext
20293 if { (ac_try="$ac_compile"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297 esac
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_compile") 2>conftest.er1
20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest.$ac_objext; then
20309 ac_cv_struct_addrinfo=yes
20310 else
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20314 ac_cv_struct_addrinfo=no
20317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20321 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20322 if test $ac_cv_struct_addrinfo = yes; then
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_ADDRINFO 1
20326 _ACEOF
20330 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20331 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20332 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20342 # include <sys/types.h>
20343 # include <sys/socket.h>
20345 main ()
20347 struct sockaddr_storage s
20349 return 0;
20351 _ACEOF
20352 rm -f conftest.$ac_objext
20353 if { (ac_try="$ac_compile"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_compile") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest.$ac_objext; then
20369 ac_cv_struct_sockaddr_storage=yes
20370 else
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 ac_cv_struct_sockaddr_storage=no
20377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20381 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20382 if test $ac_cv_struct_sockaddr_storage = yes; then
20384 cat >>confdefs.h <<\_ACEOF
20385 #define HAVE_SOCKADDR_STORAGE 1
20386 _ACEOF
20390 # checks for compiler characteristics
20393 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20394 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20395 if test "${ac_cv_c_char_unsigned+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h. */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 $ac_includes_default
20406 main ()
20408 static int test_array [1 - 2 * !(((char) -1) < 0)];
20409 test_array [0] = 0
20412 return 0;
20414 _ACEOF
20415 rm -f conftest.$ac_objext
20416 if { (ac_try="$ac_compile"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_compile") 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest.$ac_objext; then
20432 ac_cv_c_char_unsigned=no
20433 else
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 ac_cv_c_char_unsigned=yes
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20443 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20444 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20445 cat >>confdefs.h <<\_ACEOF
20446 #define __CHAR_UNSIGNED__ 1
20447 _ACEOF
20451 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20452 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20453 if test "${ac_cv_c_const+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 else
20456 cat >conftest.$ac_ext <<_ACEOF
20457 /* confdefs.h. */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20464 main ()
20466 /* FIXME: Include the comments suggested by Paul. */
20467 #ifndef __cplusplus
20468 /* Ultrix mips cc rejects this. */
20469 typedef int charset[2];
20470 const charset cs;
20471 /* SunOS 4.1.1 cc rejects this. */
20472 char const *const *pcpcc;
20473 char **ppc;
20474 /* NEC SVR4.0.2 mips cc rejects this. */
20475 struct point {int x, y;};
20476 static struct point const zero = {0,0};
20477 /* AIX XL C 1.02.0.0 rejects this.
20478 It does not let you subtract one const X* pointer from another in
20479 an arm of an if-expression whose if-part is not a constant
20480 expression */
20481 const char *g = "string";
20482 pcpcc = &g + (g ? g-g : 0);
20483 /* HPUX 7.0 cc rejects these. */
20484 ++pcpcc;
20485 ppc = (char**) pcpcc;
20486 pcpcc = (char const *const *) ppc;
20487 { /* SCO 3.2v4 cc rejects this. */
20488 char *t;
20489 char const *s = 0 ? (char *) 0 : (char const *) 0;
20491 *t++ = 0;
20492 if (s) return 0;
20494 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20495 int x[] = {25, 17};
20496 const int *foo = &x[0];
20497 ++foo;
20499 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20500 typedef const int *iptr;
20501 iptr p = 0;
20502 ++p;
20504 { /* AIX XL C 1.02.0.0 rejects this saying
20505 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20506 struct s { int j; const int *ap[3]; };
20507 struct s *b; b->j = 5;
20509 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20510 const int foo = 10;
20511 if (!foo) return 0;
20513 return !cs[0] && !zero.x;
20514 #endif
20517 return 0;
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_compile") 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } && {
20534 test -z "$ac_c_werror_flag" ||
20535 test ! -s conftest.err
20536 } && test -s conftest.$ac_objext; then
20537 ac_cv_c_const=yes
20538 else
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20542 ac_cv_c_const=no
20545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20547 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20548 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20549 if test $ac_cv_c_const = no; then
20551 cat >>confdefs.h <<\_ACEOF
20552 #define const
20553 _ACEOF
20558 works=no
20559 { echo "$as_me:$LINENO: checking for working volatile" >&5
20560 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20561 cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h. */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20569 main ()
20571 volatile int x; x = 0;
20573 return 0;
20575 _ACEOF
20576 rm -f conftest.$ac_objext
20577 if { (ac_try="$ac_compile"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_compile") 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest.$ac_objext; then
20593 works=yes
20594 else
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20599 cat >>confdefs.h <<\_ACEOF
20600 #define volatile
20601 _ACEOF
20606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607 { echo "$as_me:$LINENO: result: $works" >&5
20608 echo "${ECHO_T}$works" >&6; }
20610 works=no
20611 { echo "$as_me:$LINENO: checking for working signed char" >&5
20612 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20613 cat >conftest.$ac_ext <<_ACEOF
20614 /* confdefs.h. */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20621 main ()
20623 signed char c;
20625 return 0;
20627 _ACEOF
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_compile") 2>conftest.er1
20636 ac_status=$?
20637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && {
20642 test -z "$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 } && test -s conftest.$ac_objext; then
20645 works=yes
20646 else
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20651 cat >>confdefs.h <<\_ACEOF
20652 #define signed
20653 _ACEOF
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20659 { echo "$as_me:$LINENO: result: $works" >&5
20660 echo "${ECHO_T}$works" >&6; }
20662 have_prototypes=no
20663 { echo "$as_me:$LINENO: checking for prototypes" >&5
20664 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
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 int foo(int x) { return 0; }
20673 main ()
20675 return foo(10);
20677 return 0;
20679 _ACEOF
20680 rm -f conftest.$ac_objext
20681 if { (ac_try="$ac_compile"
20682 case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_compile") 2>conftest.er1
20688 ac_status=$?
20689 grep -v '^ *+' conftest.er1 >conftest.err
20690 rm -f conftest.er1
20691 cat conftest.err >&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } && {
20694 test -z "$ac_c_werror_flag" ||
20695 test ! -s conftest.err
20696 } && test -s conftest.$ac_objext; then
20699 cat >>confdefs.h <<\_ACEOF
20700 #define HAVE_PROTOTYPES 1
20701 _ACEOF
20703 have_prototypes=yes
20705 else
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20714 echo "${ECHO_T}$have_prototypes" >&6; }
20716 works=no
20717 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20718 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20719 cat >conftest.$ac_ext <<_ACEOF
20720 /* confdefs.h. */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20726 #include <stdarg.h>
20727 int foo(int x, ...) {
20728 va_list va;
20729 va_start(va, x);
20730 va_arg(va, int);
20731 va_arg(va, char *);
20732 va_arg(va, double);
20733 return 0;
20737 main ()
20739 return foo(10, "", 3.14);
20741 return 0;
20743 _ACEOF
20744 rm -f conftest.$ac_objext
20745 if { (ac_try="$ac_compile"
20746 case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20749 esac
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_compile") 2>conftest.er1
20752 ac_status=$?
20753 grep -v '^ *+' conftest.er1 >conftest.err
20754 rm -f conftest.er1
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } && {
20758 test -z "$ac_c_werror_flag" ||
20759 test ! -s conftest.err
20760 } && test -s conftest.$ac_objext; then
20763 cat >>confdefs.h <<\_ACEOF
20764 #define HAVE_STDARG_PROTOTYPES 1
20765 _ACEOF
20767 works=yes
20769 else
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20777 { echo "$as_me:$LINENO: result: $works" >&5
20778 echo "${ECHO_T}$works" >&6; }
20780 # check for socketpair
20781 { echo "$as_me:$LINENO: checking for socketpair" >&5
20782 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h. */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20790 #include <sys/types.h>
20791 #include <sys/socket.h>
20794 main ()
20796 void *x=socketpair
20798 return 0;
20800 _ACEOF
20801 rm -f conftest.$ac_objext
20802 if { (ac_try="$ac_compile"
20803 case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806 esac
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_compile") 2>conftest.er1
20809 ac_status=$?
20810 grep -v '^ *+' conftest.er1 >conftest.err
20811 rm -f conftest.er1
20812 cat conftest.err >&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); } && {
20815 test -z "$ac_c_werror_flag" ||
20816 test ! -s conftest.err
20817 } && test -s conftest.$ac_objext; then
20819 cat >>confdefs.h <<\_ACEOF
20820 #define HAVE_SOCKETPAIR 1
20821 _ACEOF
20823 { echo "$as_me:$LINENO: result: yes" >&5
20824 echo "${ECHO_T}yes" >&6; }
20825 else
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 { echo "$as_me:$LINENO: result: no" >&5
20830 echo "${ECHO_T}no" >&6; }
20834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20836 # check if sockaddr has sa_len member
20837 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20838 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h. */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 #include <sys/types.h>
20846 #include <sys/socket.h>
20848 main ()
20850 struct sockaddr x;
20851 x.sa_len = 0;
20853 return 0;
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_compile") 2>conftest.er1
20864 ac_status=$?
20865 grep -v '^ *+' conftest.er1 >conftest.err
20866 rm -f conftest.er1
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } && {
20870 test -z "$ac_c_werror_flag" ||
20871 test ! -s conftest.err
20872 } && test -s conftest.$ac_objext; then
20873 { echo "$as_me:$LINENO: result: yes" >&5
20874 echo "${ECHO_T}yes" >&6; }
20876 cat >>confdefs.h <<\_ACEOF
20877 #define HAVE_SOCKADDR_SA_LEN 1
20878 _ACEOF
20880 else
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 { echo "$as_me:$LINENO: result: no" >&5
20885 echo "${ECHO_T}no" >&6; }
20888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20890 va_list_is_array=no
20891 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20892 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20893 cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h. */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20900 #ifdef HAVE_STDARG_PROTOTYPES
20901 #include <stdarg.h>
20902 #else
20903 #include <varargs.h>
20904 #endif
20907 main ()
20909 va_list list1, list2; list1 = list2;
20911 return 0;
20913 _ACEOF
20914 rm -f conftest.$ac_objext
20915 if { (ac_try="$ac_compile"
20916 case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20919 esac
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_compile") 2>conftest.er1
20922 ac_status=$?
20923 grep -v '^ *+' conftest.er1 >conftest.err
20924 rm -f conftest.er1
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } && {
20928 test -z "$ac_c_werror_flag" ||
20929 test ! -s conftest.err
20930 } && test -s conftest.$ac_objext; then
20932 else
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20938 cat >>confdefs.h <<\_ACEOF
20939 #define VA_LIST_IS_ARRAY 1
20940 _ACEOF
20942 va_list_is_array=yes
20946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20948 echo "${ECHO_T}$va_list_is_array" >&6; }
20950 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20954 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20955 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20956 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959 cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h. */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20967 #define gethostbyname_r innocuous_gethostbyname_r
20969 /* System header to define __stub macros and hopefully few prototypes,
20970 which can conflict with char gethostbyname_r (); below.
20971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20972 <limits.h> exists even on freestanding compilers. */
20974 #ifdef __STDC__
20975 # include <limits.h>
20976 #else
20977 # include <assert.h>
20978 #endif
20980 #undef gethostbyname_r
20982 /* Override any GCC internal prototype to avoid an error.
20983 Use char because int might match the return type of a GCC
20984 builtin and then its argument prototype would still apply. */
20985 #ifdef __cplusplus
20986 extern "C"
20987 #endif
20988 char gethostbyname_r ();
20989 /* The GNU C library defines this for functions which it implements
20990 to always fail with ENOSYS. Some functions are actually named
20991 something starting with __ and the normal name is an alias. */
20992 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20993 choke me
20994 #endif
20997 main ()
20999 return gethostbyname_r ();
21001 return 0;
21003 _ACEOF
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (ac_try="$ac_link"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_link") 2>conftest.er1
21012 ac_status=$?
21013 grep -v '^ *+' conftest.er1 >conftest.err
21014 rm -f conftest.er1
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest$ac_exeext &&
21021 $as_test_x conftest$ac_exeext; then
21022 ac_cv_func_gethostbyname_r=yes
21023 else
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21027 ac_cv_func_gethostbyname_r=no
21030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21031 conftest$ac_exeext conftest.$ac_ext
21033 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21034 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21035 if test $ac_cv_func_gethostbyname_r = yes; then
21037 cat >>confdefs.h <<\_ACEOF
21038 #define HAVE_GETHOSTBYNAME_R 1
21039 _ACEOF
21041 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21042 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21043 OLD_CFLAGS=$CFLAGS
21044 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21045 cat >conftest.$ac_ext <<_ACEOF
21046 /* confdefs.h. */
21047 _ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h. */
21052 # include <netdb.h>
21055 main ()
21058 char *name;
21059 struct hostent *he, *res;
21060 char buffer[2048];
21061 int buflen = 2048;
21062 int h_errnop;
21064 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21067 return 0;
21069 _ACEOF
21070 rm -f conftest.$ac_objext
21071 if { (ac_try="$ac_compile"
21072 case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_compile") 2>conftest.er1
21078 ac_status=$?
21079 grep -v '^ *+' conftest.er1 >conftest.err
21080 rm -f conftest.er1
21081 cat conftest.err >&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } && {
21084 test -z "$ac_c_werror_flag" ||
21085 test ! -s conftest.err
21086 } && test -s conftest.$ac_objext; then
21088 cat >>confdefs.h <<\_ACEOF
21089 #define HAVE_GETHOSTBYNAME_R 1
21090 _ACEOF
21093 cat >>confdefs.h <<\_ACEOF
21094 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21095 _ACEOF
21097 { echo "$as_me:$LINENO: result: yes" >&5
21098 echo "${ECHO_T}yes" >&6; }
21100 else
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21105 { echo "$as_me:$LINENO: result: no" >&5
21106 echo "${ECHO_T}no" >&6; }
21107 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21108 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21109 cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h. */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21116 # include <netdb.h>
21119 main ()
21122 char *name;
21123 struct hostent *he;
21124 char buffer[2048];
21125 int buflen = 2048;
21126 int h_errnop;
21128 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21131 return 0;
21133 _ACEOF
21134 rm -f conftest.$ac_objext
21135 if { (ac_try="$ac_compile"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21139 esac
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_compile") 2>conftest.er1
21142 ac_status=$?
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest.$ac_objext; then
21152 cat >>confdefs.h <<\_ACEOF
21153 #define HAVE_GETHOSTBYNAME_R 1
21154 _ACEOF
21157 cat >>confdefs.h <<\_ACEOF
21158 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21159 _ACEOF
21161 { echo "$as_me:$LINENO: result: yes" >&5
21162 echo "${ECHO_T}yes" >&6; }
21164 else
21165 echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21169 { echo "$as_me:$LINENO: result: no" >&5
21170 echo "${ECHO_T}no" >&6; }
21171 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21172 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21173 cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h. */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21180 # include <netdb.h>
21183 main ()
21186 char *name;
21187 struct hostent *he;
21188 struct hostent_data data;
21190 (void) gethostbyname_r(name, he, &data);
21193 return 0;
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_compile") 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest.$ac_objext; then
21214 cat >>confdefs.h <<\_ACEOF
21215 #define HAVE_GETHOSTBYNAME_R 1
21216 _ACEOF
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21221 _ACEOF
21223 { echo "$as_me:$LINENO: result: yes" >&5
21224 echo "${ECHO_T}yes" >&6; }
21226 else
21227 echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21231 { echo "$as_me:$LINENO: result: no" >&5
21232 echo "${ECHO_T}no" >&6; }
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 CFLAGS=$OLD_CFLAGS
21247 else
21250 for ac_func in gethostbyname
21252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 else
21258 cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h. */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21266 #define $ac_func innocuous_$ac_func
21268 /* System header to define __stub macros and hopefully few prototypes,
21269 which can conflict with char $ac_func (); below.
21270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21271 <limits.h> exists even on freestanding compilers. */
21273 #ifdef __STDC__
21274 # include <limits.h>
21275 #else
21276 # include <assert.h>
21277 #endif
21279 #undef $ac_func
21281 /* Override any GCC internal prototype to avoid an error.
21282 Use char because int might match the return type of a GCC
21283 builtin and then its argument prototype would still apply. */
21284 #ifdef __cplusplus
21285 extern "C"
21286 #endif
21287 char $ac_func ();
21288 /* The GNU C library defines this for functions which it implements
21289 to always fail with ENOSYS. Some functions are actually named
21290 something starting with __ and the normal name is an alias. */
21291 #if defined __stub_$ac_func || defined __stub___$ac_func
21292 choke me
21293 #endif
21296 main ()
21298 return $ac_func ();
21300 return 0;
21302 _ACEOF
21303 rm -f conftest.$ac_objext conftest$ac_exeext
21304 if { (ac_try="$ac_link"
21305 case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21308 esac
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_link") 2>conftest.er1
21311 ac_status=$?
21312 grep -v '^ *+' conftest.er1 >conftest.err
21313 rm -f conftest.er1
21314 cat conftest.err >&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && {
21317 test -z "$ac_c_werror_flag" ||
21318 test ! -s conftest.err
21319 } && test -s conftest$ac_exeext &&
21320 $as_test_x conftest$ac_exeext; then
21321 eval "$as_ac_var=yes"
21322 else
21323 echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21326 eval "$as_ac_var=no"
21329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21330 conftest$ac_exeext conftest.$ac_ext
21332 ac_res=`eval echo '${'$as_ac_var'}'`
21333 { echo "$as_me:$LINENO: result: $ac_res" >&5
21334 echo "${ECHO_T}$ac_res" >&6; }
21335 if test `eval echo '${'$as_ac_var'}'` = yes; then
21336 cat >>confdefs.h <<_ACEOF
21337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21338 _ACEOF
21341 done
21352 # checks for system services
21353 # (none yet)
21355 # Linux requires this for correct f.p. operations
21356 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21357 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21358 if test "${ac_cv_func___fpu_control+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361 cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h. */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21369 #define __fpu_control innocuous___fpu_control
21371 /* System header to define __stub macros and hopefully few prototypes,
21372 which can conflict with char __fpu_control (); below.
21373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21374 <limits.h> exists even on freestanding compilers. */
21376 #ifdef __STDC__
21377 # include <limits.h>
21378 #else
21379 # include <assert.h>
21380 #endif
21382 #undef __fpu_control
21384 /* Override any GCC internal prototype to avoid an error.
21385 Use char because int might match the return type of a GCC
21386 builtin and then its argument prototype would still apply. */
21387 #ifdef __cplusplus
21388 extern "C"
21389 #endif
21390 char __fpu_control ();
21391 /* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394 #if defined __stub___fpu_control || defined __stub_____fpu_control
21395 choke me
21396 #endif
21399 main ()
21401 return __fpu_control ();
21403 return 0;
21405 _ACEOF
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (ac_try="$ac_link"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411 esac
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_link") 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } && {
21420 test -z "$ac_c_werror_flag" ||
21421 test ! -s conftest.err
21422 } && test -s conftest$ac_exeext &&
21423 $as_test_x conftest$ac_exeext; then
21424 ac_cv_func___fpu_control=yes
21425 else
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ac_cv_func___fpu_control=no
21432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21433 conftest$ac_exeext conftest.$ac_ext
21435 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21436 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21437 if test $ac_cv_func___fpu_control = yes; then
21439 else
21441 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21442 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21443 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21445 else
21446 ac_check_lib_save_LIBS=$LIBS
21447 LIBS="-lieee $LIBS"
21448 cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h. */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21455 /* Override any GCC internal prototype to avoid an error.
21456 Use char because int might match the return type of a GCC
21457 builtin and then its argument prototype would still apply. */
21458 #ifdef __cplusplus
21459 extern "C"
21460 #endif
21461 char __fpu_control ();
21463 main ()
21465 return __fpu_control ();
21467 return 0;
21469 _ACEOF
21470 rm -f conftest.$ac_objext conftest$ac_exeext
21471 if { (ac_try="$ac_link"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_link") 2>conftest.er1
21478 ac_status=$?
21479 grep -v '^ *+' conftest.er1 >conftest.err
21480 rm -f conftest.er1
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } && {
21484 test -z "$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21486 } && test -s conftest$ac_exeext &&
21487 $as_test_x conftest$ac_exeext; then
21488 ac_cv_lib_ieee___fpu_control=yes
21489 else
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21493 ac_cv_lib_ieee___fpu_control=no
21496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21497 conftest$ac_exeext conftest.$ac_ext
21498 LIBS=$ac_check_lib_save_LIBS
21500 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21501 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21502 if test $ac_cv_lib_ieee___fpu_control = yes; then
21503 cat >>confdefs.h <<_ACEOF
21504 #define HAVE_LIBIEEE 1
21505 _ACEOF
21507 LIBS="-lieee $LIBS"
21515 # Check for --with-fpectl
21516 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21517 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21519 # Check whether --with-fpectl was given.
21520 if test "${with_fpectl+set}" = set; then
21521 withval=$with_fpectl;
21522 if test "$withval" != no
21523 then
21525 cat >>confdefs.h <<\_ACEOF
21526 #define WANT_SIGFPE_HANDLER 1
21527 _ACEOF
21529 { echo "$as_me:$LINENO: result: yes" >&5
21530 echo "${ECHO_T}yes" >&6; }
21531 else { echo "$as_me:$LINENO: result: no" >&5
21532 echo "${ECHO_T}no" >&6; }
21534 else
21535 { echo "$as_me:$LINENO: result: no" >&5
21536 echo "${ECHO_T}no" >&6; }
21540 # check for --with-libm=...
21542 case $ac_sys_system in
21543 Darwin) ;;
21544 *) LIBM=-lm
21545 esac
21546 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21547 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21549 # Check whether --with-libm was given.
21550 if test "${with_libm+set}" = set; then
21551 withval=$with_libm;
21552 if test "$withval" = no
21553 then LIBM=
21554 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21555 echo "${ECHO_T}force LIBM empty" >&6; }
21556 elif test "$withval" != yes
21557 then LIBM=$withval
21558 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21559 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21560 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21561 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21562 { (exit 1); exit 1; }; }
21564 else
21565 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21566 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21570 # check for --with-libc=...
21572 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21573 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21575 # Check whether --with-libc was given.
21576 if test "${with_libc+set}" = set; then
21577 withval=$with_libc;
21578 if test "$withval" = no
21579 then LIBC=
21580 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21581 echo "${ECHO_T}force LIBC empty" >&6; }
21582 elif test "$withval" != yes
21583 then LIBC=$withval
21584 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21585 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21586 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21587 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21588 { (exit 1); exit 1; }; }
21590 else
21591 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21592 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21596 # ************************************
21597 # * Check for mathematical functions *
21598 # ************************************
21600 LIBS_SAVE=$LIBS
21601 LIBS="$LIBS $LIBM"
21603 # Detect whether system arithmetic is subject to x87-style double
21604 # rounding issues. The result of this test has little meaning on non
21605 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21606 # mode is round-to-nearest and double rounding issues are present, and
21607 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21608 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21609 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21610 if test "${ac_cv_x87_double_rounding+set}" = set; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21612 else
21614 if test "$cross_compiling" = yes; then
21615 ac_cv_x87_double_rounding=no
21616 else
21617 cat >conftest.$ac_ext <<_ACEOF
21618 /* confdefs.h. */
21619 _ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21624 #include <stdlib.h>
21625 #include <math.h>
21626 int main() {
21627 volatile double x, y, z;
21628 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21629 x = 0.99999999999999989; /* 1-2**-53 */
21630 y = 1./x;
21631 if (y != 1.)
21632 exit(0);
21633 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21634 x = 1e16;
21635 y = 2.99999;
21636 z = x + y;
21637 if (z != 1e16+4.)
21638 exit(0);
21639 /* both tests show evidence of double rounding */
21640 exit(1);
21643 _ACEOF
21644 rm -f conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>&5
21652 ac_status=$?
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21655 { (case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21658 esac
21659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_try") 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21664 ac_cv_x87_double_rounding=no
21665 else
21666 echo "$as_me: program exited with status $ac_status" >&5
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 ( exit $ac_status )
21671 ac_cv_x87_double_rounding=yes
21673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21679 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21680 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21681 if test "$ac_cv_x87_double_rounding" = yes
21682 then
21684 cat >>confdefs.h <<\_ACEOF
21685 #define X87_DOUBLE_ROUNDING 1
21686 _ACEOF
21691 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21692 # -0. on some architectures.
21693 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21694 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21695 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 else
21699 if test "$cross_compiling" = yes; then
21700 ac_cv_tanh_preserves_zero_sign=no
21701 else
21702 cat >conftest.$ac_ext <<_ACEOF
21703 /* confdefs.h. */
21704 _ACEOF
21705 cat confdefs.h >>conftest.$ac_ext
21706 cat >>conftest.$ac_ext <<_ACEOF
21707 /* end confdefs.h. */
21709 #include <math.h>
21710 #include <stdlib.h>
21711 int main() {
21712 /* return 0 if either negative zeros don't exist
21713 on this platform or if negative zeros exist
21714 and tanh(-0.) == -0. */
21715 if (atan2(0., -1.) == atan2(-0., -1.) ||
21716 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21717 else exit(1);
21720 _ACEOF
21721 rm -f conftest$ac_exeext
21722 if { (ac_try="$ac_link"
21723 case "(($ac_try" in
21724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21726 esac
21727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_link") 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21732 { (case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21735 esac
21736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737 (eval "$ac_try") 2>&5
21738 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; }; then
21741 ac_cv_tanh_preserves_zero_sign=yes
21742 else
21743 echo "$as_me: program exited with status $ac_status" >&5
21744 echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21747 ( exit $ac_status )
21748 ac_cv_tanh_preserves_zero_sign=no
21750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21756 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21757 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21758 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21759 then
21761 cat >>confdefs.h <<\_ACEOF
21762 #define TANH_PRESERVES_ZERO_SIGN 1
21763 _ACEOF
21775 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
21777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 else
21783 cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h. */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21791 #define $ac_func innocuous_$ac_func
21793 /* System header to define __stub macros and hopefully few prototypes,
21794 which can conflict with char $ac_func (); below.
21795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21796 <limits.h> exists even on freestanding compilers. */
21798 #ifdef __STDC__
21799 # include <limits.h>
21800 #else
21801 # include <assert.h>
21802 #endif
21804 #undef $ac_func
21806 /* Override any GCC internal prototype to avoid an error.
21807 Use char because int might match the return type of a GCC
21808 builtin and then its argument prototype would still apply. */
21809 #ifdef __cplusplus
21810 extern "C"
21811 #endif
21812 char $ac_func ();
21813 /* The GNU C library defines this for functions which it implements
21814 to always fail with ENOSYS. Some functions are actually named
21815 something starting with __ and the normal name is an alias. */
21816 #if defined __stub_$ac_func || defined __stub___$ac_func
21817 choke me
21818 #endif
21821 main ()
21823 return $ac_func ();
21825 return 0;
21827 _ACEOF
21828 rm -f conftest.$ac_objext conftest$ac_exeext
21829 if { (ac_try="$ac_link"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21833 esac
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_link") 2>conftest.er1
21836 ac_status=$?
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest$ac_exeext &&
21845 $as_test_x conftest$ac_exeext; then
21846 eval "$as_ac_var=yes"
21847 else
21848 echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21851 eval "$as_ac_var=no"
21854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21855 conftest$ac_exeext conftest.$ac_ext
21857 ac_res=`eval echo '${'$as_ac_var'}'`
21858 { echo "$as_me:$LINENO: result: $ac_res" >&5
21859 echo "${ECHO_T}$ac_res" >&6; }
21860 if test `eval echo '${'$as_ac_var'}'` = yes; then
21861 cat >>confdefs.h <<_ACEOF
21862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21863 _ACEOF
21866 done
21868 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
21869 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
21870 if test "${ac_cv_have_decl_isinf+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873 cat >conftest.$ac_ext <<_ACEOF
21874 /* confdefs.h. */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 #include <math.h>
21882 main ()
21884 #ifndef isinf
21885 (void) isinf;
21886 #endif
21889 return 0;
21891 _ACEOF
21892 rm -f conftest.$ac_objext
21893 if { (ac_try="$ac_compile"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21897 esac
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_compile") 2>conftest.er1
21900 ac_status=$?
21901 grep -v '^ *+' conftest.er1 >conftest.err
21902 rm -f conftest.er1
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && {
21906 test -z "$ac_c_werror_flag" ||
21907 test ! -s conftest.err
21908 } && test -s conftest.$ac_objext; then
21909 ac_cv_have_decl_isinf=yes
21910 else
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21914 ac_cv_have_decl_isinf=no
21917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
21920 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
21921 if test $ac_cv_have_decl_isinf = yes; then
21923 cat >>confdefs.h <<_ACEOF
21924 #define HAVE_DECL_ISINF 1
21925 _ACEOF
21928 else
21929 cat >>confdefs.h <<_ACEOF
21930 #define HAVE_DECL_ISINF 0
21931 _ACEOF
21935 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
21936 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
21937 if test "${ac_cv_have_decl_isnan+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940 cat >conftest.$ac_ext <<_ACEOF
21941 /* confdefs.h. */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21946 #include <math.h>
21949 main ()
21951 #ifndef isnan
21952 (void) isnan;
21953 #endif
21956 return 0;
21958 _ACEOF
21959 rm -f conftest.$ac_objext
21960 if { (ac_try="$ac_compile"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_compile") 2>conftest.er1
21967 ac_status=$?
21968 grep -v '^ *+' conftest.er1 >conftest.err
21969 rm -f conftest.er1
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } && {
21973 test -z "$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21975 } && test -s conftest.$ac_objext; then
21976 ac_cv_have_decl_isnan=yes
21977 else
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ac_cv_have_decl_isnan=no
21984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
21987 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
21988 if test $ac_cv_have_decl_isnan = yes; then
21990 cat >>confdefs.h <<_ACEOF
21991 #define HAVE_DECL_ISNAN 1
21992 _ACEOF
21995 else
21996 cat >>confdefs.h <<_ACEOF
21997 #define HAVE_DECL_ISNAN 0
21998 _ACEOF
22002 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22003 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22004 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 else
22007 cat >conftest.$ac_ext <<_ACEOF
22008 /* confdefs.h. */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22013 #include <math.h>
22016 main ()
22018 #ifndef isfinite
22019 (void) isfinite;
22020 #endif
22023 return 0;
22025 _ACEOF
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22034 ac_status=$?
22035 grep -v '^ *+' conftest.er1 >conftest.err
22036 rm -f conftest.er1
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22043 ac_cv_have_decl_isfinite=yes
22044 else
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_cv_have_decl_isfinite=no
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22054 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22055 if test $ac_cv_have_decl_isfinite = yes; then
22057 cat >>confdefs.h <<_ACEOF
22058 #define HAVE_DECL_ISFINITE 1
22059 _ACEOF
22062 else
22063 cat >>confdefs.h <<_ACEOF
22064 #define HAVE_DECL_ISFINITE 0
22065 _ACEOF
22072 LIBS=$LIBS_SAVE
22074 # determine what size digit to use for Python's longs
22075 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22076 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22077 # Check whether --enable-big-digits was given.
22078 if test "${enable_big_digits+set}" = set; then
22079 enableval=$enable_big_digits; case $enable_big_digits in
22080 yes)
22081 enable_big_digits=30 ;;
22083 enable_big_digits=15 ;;
22084 15|30)
22087 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22088 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22089 { (exit 1); exit 1; }; } ;;
22090 esac
22091 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22092 echo "${ECHO_T}$enable_big_digits" >&6; }
22094 cat >>confdefs.h <<_ACEOF
22095 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22096 _ACEOF
22099 else
22100 { echo "$as_me:$LINENO: result: no value specified" >&5
22101 echo "${ECHO_T}no value specified" >&6; }
22105 # check for wchar.h
22106 if test "${ac_cv_header_wchar_h+set}" = set; then
22107 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22108 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22109 if test "${ac_cv_header_wchar_h+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22113 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22114 else
22115 # Is the header compilable?
22116 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22117 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22118 cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h. */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 $ac_includes_default
22125 #include <wchar.h>
22126 _ACEOF
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_compile") 2>conftest.er1
22135 ac_status=$?
22136 grep -v '^ *+' conftest.er1 >conftest.err
22137 rm -f conftest.er1
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest.$ac_objext; then
22144 ac_header_compiler=yes
22145 else
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22149 ac_header_compiler=no
22152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22154 echo "${ECHO_T}$ac_header_compiler" >&6; }
22156 # Is the header present?
22157 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22158 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22159 cat >conftest.$ac_ext <<_ACEOF
22160 /* confdefs.h. */
22161 _ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h. */
22165 #include <wchar.h>
22166 _ACEOF
22167 if { (ac_try="$ac_cpp conftest.$ac_ext"
22168 case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22171 esac
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22174 ac_status=$?
22175 grep -v '^ *+' conftest.er1 >conftest.err
22176 rm -f conftest.er1
22177 cat conftest.err >&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } >/dev/null && {
22180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22181 test ! -s conftest.err
22182 }; then
22183 ac_header_preproc=yes
22184 else
22185 echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22188 ac_header_preproc=no
22191 rm -f conftest.err conftest.$ac_ext
22192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22193 echo "${ECHO_T}$ac_header_preproc" >&6; }
22195 # So? What about this header?
22196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22197 yes:no: )
22198 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22199 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22200 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22201 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22202 ac_header_preproc=yes
22204 no:yes:* )
22205 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22206 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22207 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22208 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22209 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22210 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22211 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22212 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22214 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22216 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22217 ( cat <<\_ASBOX
22218 ## ------------------------------------------------ ##
22219 ## Report this to http://www.python.org/python-bugs ##
22220 ## ------------------------------------------------ ##
22221 _ASBOX
22222 ) | sed "s/^/$as_me: WARNING: /" >&2
22224 esac
22225 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22226 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22227 if test "${ac_cv_header_wchar_h+set}" = set; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
22229 else
22230 ac_cv_header_wchar_h=$ac_header_preproc
22232 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22233 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22236 if test $ac_cv_header_wchar_h = yes; then
22239 cat >>confdefs.h <<\_ACEOF
22240 #define HAVE_WCHAR_H 1
22241 _ACEOF
22243 wchar_h="yes"
22245 else
22246 wchar_h="no"
22252 # determine wchar_t size
22253 if test "$wchar_h" = yes
22254 then
22255 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22256 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22257 if test "${ac_cv_type_wchar_t+set}" = set; then
22258 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 else
22260 cat >conftest.$ac_ext <<_ACEOF
22261 /* confdefs.h. */
22262 _ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
22266 #include <wchar.h>
22268 typedef wchar_t ac__type_new_;
22270 main ()
22272 if ((ac__type_new_ *) 0)
22273 return 0;
22274 if (sizeof (ac__type_new_))
22275 return 0;
22277 return 0;
22279 _ACEOF
22280 rm -f conftest.$ac_objext
22281 if { (ac_try="$ac_compile"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_compile") 2>conftest.er1
22288 ac_status=$?
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } && {
22294 test -z "$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 } && test -s conftest.$ac_objext; then
22297 ac_cv_type_wchar_t=yes
22298 else
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22302 ac_cv_type_wchar_t=no
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22307 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22308 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22310 # The cast to long int works around a bug in the HP C Compiler
22311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22313 # This bug is HP SR number 8606223364.
22314 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22315 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22316 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22318 else
22319 if test "$cross_compiling" = yes; then
22320 # Depending upon the size, compute the lo and hi bounds.
22321 cat >conftest.$ac_ext <<_ACEOF
22322 /* confdefs.h. */
22323 _ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22327 #include <wchar.h>
22329 typedef wchar_t ac__type_sizeof_;
22331 main ()
22333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22334 test_array [0] = 0
22337 return 0;
22339 _ACEOF
22340 rm -f conftest.$ac_objext
22341 if { (ac_try="$ac_compile"
22342 case "(($ac_try" in
22343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344 *) ac_try_echo=$ac_try;;
22345 esac
22346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347 (eval "$ac_compile") 2>conftest.er1
22348 ac_status=$?
22349 grep -v '^ *+' conftest.er1 >conftest.err
22350 rm -f conftest.er1
22351 cat conftest.err >&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } && {
22354 test -z "$ac_c_werror_flag" ||
22355 test ! -s conftest.err
22356 } && test -s conftest.$ac_objext; then
22357 ac_lo=0 ac_mid=0
22358 while :; do
22359 cat >conftest.$ac_ext <<_ACEOF
22360 /* confdefs.h. */
22361 _ACEOF
22362 cat confdefs.h >>conftest.$ac_ext
22363 cat >>conftest.$ac_ext <<_ACEOF
22364 /* end confdefs.h. */
22365 #include <wchar.h>
22367 typedef wchar_t ac__type_sizeof_;
22369 main ()
22371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22372 test_array [0] = 0
22375 return 0;
22377 _ACEOF
22378 rm -f conftest.$ac_objext
22379 if { (ac_try="$ac_compile"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22383 esac
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_compile") 2>conftest.er1
22386 ac_status=$?
22387 grep -v '^ *+' conftest.er1 >conftest.err
22388 rm -f conftest.er1
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } && {
22392 test -z "$ac_c_werror_flag" ||
22393 test ! -s conftest.err
22394 } && test -s conftest.$ac_objext; then
22395 ac_hi=$ac_mid; break
22396 else
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 ac_lo=`expr $ac_mid + 1`
22401 if test $ac_lo -le $ac_mid; then
22402 ac_lo= ac_hi=
22403 break
22405 ac_mid=`expr 2 '*' $ac_mid + 1`
22408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 done
22410 else
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h. */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22420 #include <wchar.h>
22422 typedef wchar_t ac__type_sizeof_;
22424 main ()
22426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22427 test_array [0] = 0
22430 return 0;
22432 _ACEOF
22433 rm -f conftest.$ac_objext
22434 if { (ac_try="$ac_compile"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22438 esac
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440 (eval "$ac_compile") 2>conftest.er1
22441 ac_status=$?
22442 grep -v '^ *+' conftest.er1 >conftest.err
22443 rm -f conftest.er1
22444 cat conftest.err >&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } && {
22447 test -z "$ac_c_werror_flag" ||
22448 test ! -s conftest.err
22449 } && test -s conftest.$ac_objext; then
22450 ac_hi=-1 ac_mid=-1
22451 while :; do
22452 cat >conftest.$ac_ext <<_ACEOF
22453 /* confdefs.h. */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458 #include <wchar.h>
22460 typedef wchar_t ac__type_sizeof_;
22462 main ()
22464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22465 test_array [0] = 0
22468 return 0;
22470 _ACEOF
22471 rm -f conftest.$ac_objext
22472 if { (ac_try="$ac_compile"
22473 case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_compile") 2>conftest.er1
22479 ac_status=$?
22480 grep -v '^ *+' conftest.er1 >conftest.err
22481 rm -f conftest.er1
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } && {
22485 test -z "$ac_c_werror_flag" ||
22486 test ! -s conftest.err
22487 } && test -s conftest.$ac_objext; then
22488 ac_lo=$ac_mid; break
22489 else
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 ac_hi=`expr '(' $ac_mid ')' - 1`
22494 if test $ac_mid -le $ac_hi; then
22495 ac_lo= ac_hi=
22496 break
22498 ac_mid=`expr 2 '*' $ac_mid`
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 done
22503 else
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_lo= ac_hi=
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 # Binary search between lo and hi bounds.
22515 while test "x$ac_lo" != "x$ac_hi"; do
22516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22517 cat >conftest.$ac_ext <<_ACEOF
22518 /* confdefs.h. */
22519 _ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 #include <wchar.h>
22525 typedef wchar_t ac__type_sizeof_;
22527 main ()
22529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22530 test_array [0] = 0
22533 return 0;
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_compile") 2>conftest.er1
22544 ac_status=$?
22545 grep -v '^ *+' conftest.er1 >conftest.err
22546 rm -f conftest.er1
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } && {
22550 test -z "$ac_c_werror_flag" ||
22551 test ! -s conftest.err
22552 } && test -s conftest.$ac_objext; then
22553 ac_hi=$ac_mid
22554 else
22555 echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22558 ac_lo=`expr '(' $ac_mid ')' + 1`
22561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562 done
22563 case $ac_lo in
22564 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22565 '') if test "$ac_cv_type_wchar_t" = yes; then
22566 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22567 See \`config.log' for more details." >&5
22568 echo "$as_me: error: cannot compute sizeof (wchar_t)
22569 See \`config.log' for more details." >&2;}
22570 { (exit 77); exit 77; }; }
22571 else
22572 ac_cv_sizeof_wchar_t=0
22573 fi ;;
22574 esac
22575 else
22576 cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h. */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22582 #include <wchar.h>
22584 typedef wchar_t ac__type_sizeof_;
22585 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22586 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22587 #include <stdio.h>
22588 #include <stdlib.h>
22590 main ()
22593 FILE *f = fopen ("conftest.val", "w");
22594 if (! f)
22595 return 1;
22596 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22598 long int i = longval ();
22599 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22600 return 1;
22601 fprintf (f, "%ld\n", i);
22603 else
22605 unsigned long int i = ulongval ();
22606 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22607 return 1;
22608 fprintf (f, "%lu\n", i);
22610 return ferror (f) || fclose (f) != 0;
22613 return 0;
22615 _ACEOF
22616 rm -f conftest$ac_exeext
22617 if { (ac_try="$ac_link"
22618 case "(($ac_try" in
22619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620 *) ac_try_echo=$ac_try;;
22621 esac
22622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623 (eval "$ac_link") 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22627 { (case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22630 esac
22631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632 (eval "$ac_try") 2>&5
22633 ac_status=$?
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; }; then
22636 ac_cv_sizeof_wchar_t=`cat conftest.val`
22637 else
22638 echo "$as_me: program exited with status $ac_status" >&5
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22642 ( exit $ac_status )
22643 if test "$ac_cv_type_wchar_t" = yes; then
22644 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22645 See \`config.log' for more details." >&5
22646 echo "$as_me: error: cannot compute sizeof (wchar_t)
22647 See \`config.log' for more details." >&2;}
22648 { (exit 77); exit 77; }; }
22649 else
22650 ac_cv_sizeof_wchar_t=0
22653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22655 rm -f conftest.val
22657 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22658 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22662 cat >>confdefs.h <<_ACEOF
22663 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22664 _ACEOF
22669 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22670 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22671 have_ucs4_tcl=no
22672 cat >conftest.$ac_ext <<_ACEOF
22673 /* confdefs.h. */
22674 _ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h. */
22679 #include <tcl.h>
22680 #if TCL_UTF_MAX != 6
22681 # error "NOT UCS4_TCL"
22682 #endif
22684 main ()
22688 return 0;
22690 _ACEOF
22691 rm -f conftest.$ac_objext
22692 if { (ac_try="$ac_compile"
22693 case "(($ac_try" in
22694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695 *) ac_try_echo=$ac_try;;
22696 esac
22697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22698 (eval "$ac_compile") 2>conftest.er1
22699 ac_status=$?
22700 grep -v '^ *+' conftest.er1 >conftest.err
22701 rm -f conftest.er1
22702 cat conftest.err >&5
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); } && {
22705 test -z "$ac_c_werror_flag" ||
22706 test ! -s conftest.err
22707 } && test -s conftest.$ac_objext; then
22710 cat >>confdefs.h <<\_ACEOF
22711 #define HAVE_UCS4_TCL 1
22712 _ACEOF
22714 have_ucs4_tcl=yes
22716 else
22717 echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22725 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22727 # check whether wchar_t is signed or not
22728 if test "$wchar_h" = yes
22729 then
22730 # check whether wchar_t is signed or not
22731 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22732 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22733 if test "${ac_cv_wchar_t_signed+set}" = set; then
22734 echo $ECHO_N "(cached) $ECHO_C" >&6
22735 else
22737 if test "$cross_compiling" = yes; then
22738 ac_cv_wchar_t_signed=yes
22739 else
22740 cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h. */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22747 #include <wchar.h>
22748 int main()
22750 /* Success: exit code 0 */
22751 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22754 _ACEOF
22755 rm -f conftest$ac_exeext
22756 if { (ac_try="$ac_link"
22757 case "(($ac_try" in
22758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759 *) ac_try_echo=$ac_try;;
22760 esac
22761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22762 (eval "$ac_link") 2>&5
22763 ac_status=$?
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22766 { (case "(($ac_try" in
22767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768 *) ac_try_echo=$ac_try;;
22769 esac
22770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22771 (eval "$ac_try") 2>&5
22772 ac_status=$?
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); }; }; then
22775 ac_cv_wchar_t_signed=yes
22776 else
22777 echo "$as_me: program exited with status $ac_status" >&5
22778 echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22781 ( exit $ac_status )
22782 ac_cv_wchar_t_signed=no
22784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22790 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22791 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22794 { echo "$as_me:$LINENO: checking what type to use for str" >&5
22795 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
22797 # Check whether --with-wide-unicode was given.
22798 if test "${with_wide_unicode+set}" = set; then
22799 withval=$with_wide_unicode;
22800 if test "$withval" != no
22801 then unicode_size="4"
22802 else unicode_size="2"
22805 else
22807 case "$have_ucs4_tcl" in
22808 yes) unicode_size="4" ;;
22809 *) unicode_size="2" ;;
22810 esac
22817 case "$unicode_size" in
22818 4) cat >>confdefs.h <<\_ACEOF
22819 #define Py_UNICODE_SIZE 4
22820 _ACEOF
22822 *) cat >>confdefs.h <<\_ACEOF
22823 #define Py_UNICODE_SIZE 2
22824 _ACEOF
22826 esac
22831 # wchar_t is only usable if it maps to an unsigned type
22832 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22833 -a "$ac_cv_wchar_t_signed" = "no"
22834 then
22835 PY_UNICODE_TYPE="wchar_t"
22837 cat >>confdefs.h <<\_ACEOF
22838 #define HAVE_USABLE_WCHAR_T 1
22839 _ACEOF
22841 cat >>confdefs.h <<\_ACEOF
22842 #define PY_UNICODE_TYPE wchar_t
22843 _ACEOF
22845 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22846 then
22847 PY_UNICODE_TYPE="unsigned short"
22848 cat >>confdefs.h <<\_ACEOF
22849 #define PY_UNICODE_TYPE unsigned short
22850 _ACEOF
22852 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22853 then
22854 PY_UNICODE_TYPE="unsigned long"
22855 cat >>confdefs.h <<\_ACEOF
22856 #define PY_UNICODE_TYPE unsigned long
22857 _ACEOF
22859 else
22860 PY_UNICODE_TYPE="no type found"
22862 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22863 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22865 # check for endianness
22866 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22867 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22868 if test "${ac_cv_c_bigendian+set}" = set; then
22869 echo $ECHO_N "(cached) $ECHO_C" >&6
22870 else
22871 # See if sys/param.h defines the BYTE_ORDER macro.
22872 cat >conftest.$ac_ext <<_ACEOF
22873 /* confdefs.h. */
22874 _ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22878 #include <sys/types.h>
22879 #include <sys/param.h>
22882 main ()
22884 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22885 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22886 bogus endian macros
22887 #endif
22890 return 0;
22892 _ACEOF
22893 rm -f conftest.$ac_objext
22894 if { (ac_try="$ac_compile"
22895 case "(($ac_try" in
22896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897 *) ac_try_echo=$ac_try;;
22898 esac
22899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22900 (eval "$ac_compile") 2>conftest.er1
22901 ac_status=$?
22902 grep -v '^ *+' conftest.er1 >conftest.err
22903 rm -f conftest.er1
22904 cat conftest.err >&5
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); } && {
22907 test -z "$ac_c_werror_flag" ||
22908 test ! -s conftest.err
22909 } && test -s conftest.$ac_objext; then
22910 # It does; now see whether it defined to BIG_ENDIAN or not.
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h. */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 #include <sys/types.h>
22918 #include <sys/param.h>
22921 main ()
22923 #if BYTE_ORDER != BIG_ENDIAN
22924 not big endian
22925 #endif
22928 return 0;
22930 _ACEOF
22931 rm -f conftest.$ac_objext
22932 if { (ac_try="$ac_compile"
22933 case "(($ac_try" in
22934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935 *) ac_try_echo=$ac_try;;
22936 esac
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938 (eval "$ac_compile") 2>conftest.er1
22939 ac_status=$?
22940 grep -v '^ *+' conftest.er1 >conftest.err
22941 rm -f conftest.er1
22942 cat conftest.err >&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); } && {
22945 test -z "$ac_c_werror_flag" ||
22946 test ! -s conftest.err
22947 } && test -s conftest.$ac_objext; then
22948 ac_cv_c_bigendian=yes
22949 else
22950 echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22953 ac_cv_c_bigendian=no
22956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22957 else
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22961 # It does not; compile a test program.
22962 if test "$cross_compiling" = yes; then
22963 # try to guess the endianness by grepping values into an object file
22964 ac_cv_c_bigendian=unknown
22965 cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h. */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22971 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22972 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22973 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22974 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22975 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22976 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22978 main ()
22980 _ascii (); _ebcdic ();
22982 return 0;
22984 _ACEOF
22985 rm -f conftest.$ac_objext
22986 if { (ac_try="$ac_compile"
22987 case "(($ac_try" in
22988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_compile") 2>conftest.er1
22993 ac_status=$?
22994 grep -v '^ *+' conftest.er1 >conftest.err
22995 rm -f conftest.er1
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } && {
22999 test -z "$ac_c_werror_flag" ||
23000 test ! -s conftest.err
23001 } && test -s conftest.$ac_objext; then
23002 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23003 ac_cv_c_bigendian=yes
23005 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23006 if test "$ac_cv_c_bigendian" = unknown; then
23007 ac_cv_c_bigendian=no
23008 else
23009 # finding both strings is unlikely to happen, but who knows?
23010 ac_cv_c_bigendian=unknown
23013 else
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23021 else
23022 cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 $ac_includes_default
23030 main ()
23033 /* Are we little or big endian? From Harbison&Steele. */
23034 union
23036 long int l;
23037 char c[sizeof (long int)];
23038 } u;
23039 u.l = 1;
23040 return u.c[sizeof (long int) - 1] == 1;
23043 return 0;
23045 _ACEOF
23046 rm -f conftest$ac_exeext
23047 if { (ac_try="$ac_link"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23051 esac
23052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23053 (eval "$ac_link") 2>&5
23054 ac_status=$?
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23057 { (case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_try") 2>&5
23063 ac_status=$?
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); }; }; then
23066 ac_cv_c_bigendian=no
23067 else
23068 echo "$as_me: program exited with status $ac_status" >&5
23069 echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23072 ( exit $ac_status )
23073 ac_cv_c_bigendian=yes
23075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23084 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23085 case $ac_cv_c_bigendian in
23086 yes)
23088 cat >>confdefs.h <<\_ACEOF
23089 #define WORDS_BIGENDIAN 1
23090 _ACEOF
23095 { { echo "$as_me:$LINENO: error: unknown endianness
23096 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23097 echo "$as_me: error: unknown endianness
23098 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23099 { (exit 1); exit 1; }; } ;;
23100 esac
23103 # Check whether right shifting a negative integer extends the sign bit
23104 # or fills with zeros (like the Cray J90, according to Tim Peters).
23105 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23106 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23107 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
23109 else
23111 if test "$cross_compiling" = yes; then
23112 ac_cv_rshift_extends_sign=yes
23113 else
23114 cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h. */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23121 int main()
23123 exit(((-1)>>3 == -1) ? 0 : 1);
23126 _ACEOF
23127 rm -f conftest$ac_exeext
23128 if { (ac_try="$ac_link"
23129 case "(($ac_try" in
23130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131 *) ac_try_echo=$ac_try;;
23132 esac
23133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23134 (eval "$ac_link") 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23138 { (case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23141 esac
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_try") 2>&5
23144 ac_status=$?
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); }; }; then
23147 ac_cv_rshift_extends_sign=yes
23148 else
23149 echo "$as_me: program exited with status $ac_status" >&5
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 ( exit $ac_status )
23154 ac_cv_rshift_extends_sign=no
23156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23162 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23163 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23164 if test "$ac_cv_rshift_extends_sign" = no
23165 then
23167 cat >>confdefs.h <<\_ACEOF
23168 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23169 _ACEOF
23173 # check for getc_unlocked and related locking functions
23174 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23175 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23176 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23178 else
23180 cat >conftest.$ac_ext <<_ACEOF
23181 /* confdefs.h. */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 #include <stdio.h>
23188 main ()
23191 FILE *f = fopen("/dev/null", "r");
23192 flockfile(f);
23193 getc_unlocked(f);
23194 funlockfile(f);
23197 return 0;
23199 _ACEOF
23200 rm -f conftest.$ac_objext conftest$ac_exeext
23201 if { (ac_try="$ac_link"
23202 case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23205 esac
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_link") 2>conftest.er1
23208 ac_status=$?
23209 grep -v '^ *+' conftest.er1 >conftest.err
23210 rm -f conftest.er1
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } && {
23214 test -z "$ac_c_werror_flag" ||
23215 test ! -s conftest.err
23216 } && test -s conftest$ac_exeext &&
23217 $as_test_x conftest$ac_exeext; then
23218 ac_cv_have_getc_unlocked=yes
23219 else
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 ac_cv_have_getc_unlocked=no
23226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23227 conftest$ac_exeext conftest.$ac_ext
23230 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23231 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23232 if test "$ac_cv_have_getc_unlocked" = yes
23233 then
23235 cat >>confdefs.h <<\_ACEOF
23236 #define HAVE_GETC_UNLOCKED 1
23237 _ACEOF
23241 # check where readline lives
23242 # save the value of LIBS so we don't actually link Python with readline
23243 LIBS_no_readline=$LIBS
23245 # On some systems we need to link readline to a termcap compatible
23246 # library. NOTE: Keep the precedence of listed libraries synchronised
23247 # with setup.py.
23248 py_cv_lib_readline=no
23249 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23250 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23251 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23252 if test -z "$py_libtermcap"; then
23253 READLINE_LIBS="-lreadline"
23254 else
23255 READLINE_LIBS="-lreadline -l$py_libtermcap"
23257 LIBS="$READLINE_LIBS $LIBS_no_readline"
23258 cat >conftest.$ac_ext <<_ACEOF
23259 /* confdefs.h. */
23260 _ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23265 /* Override any GCC internal prototype to avoid an error.
23266 Use char because int might match the return type of a GCC
23267 builtin and then its argument prototype would still apply. */
23268 #ifdef __cplusplus
23269 extern "C"
23270 #endif
23271 char readline ();
23273 main ()
23275 return readline ();
23277 return 0;
23279 _ACEOF
23280 rm -f conftest.$ac_objext conftest$ac_exeext
23281 if { (ac_try="$ac_link"
23282 case "(($ac_try" in
23283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 *) ac_try_echo=$ac_try;;
23285 esac
23286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 (eval "$ac_link") 2>conftest.er1
23288 ac_status=$?
23289 grep -v '^ *+' conftest.er1 >conftest.err
23290 rm -f conftest.er1
23291 cat conftest.err >&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } && {
23294 test -z "$ac_c_werror_flag" ||
23295 test ! -s conftest.err
23296 } && test -s conftest$ac_exeext &&
23297 $as_test_x conftest$ac_exeext; then
23298 py_cv_lib_readline=yes
23299 else
23300 echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23307 conftest$ac_exeext conftest.$ac_ext
23308 if test $py_cv_lib_readline = yes; then
23309 break
23311 done
23312 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23313 #AC_SUBST([READLINE_LIBS])
23314 if test $py_cv_lib_readline = no; then
23315 { echo "$as_me:$LINENO: result: none" >&5
23316 echo "${ECHO_T}none" >&6; }
23317 else
23318 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23319 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23321 cat >>confdefs.h <<\_ACEOF
23322 #define HAVE_LIBREADLINE 1
23323 _ACEOF
23327 # check for readline 2.1
23328 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23329 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23330 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23331 echo $ECHO_N "(cached) $ECHO_C" >&6
23332 else
23333 ac_check_lib_save_LIBS=$LIBS
23334 LIBS="-lreadline $READLINE_LIBS $LIBS"
23335 cat >conftest.$ac_ext <<_ACEOF
23336 /* confdefs.h. */
23337 _ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h. */
23342 /* Override any GCC internal prototype to avoid an error.
23343 Use char because int might match the return type of a GCC
23344 builtin and then its argument prototype would still apply. */
23345 #ifdef __cplusplus
23346 extern "C"
23347 #endif
23348 char rl_callback_handler_install ();
23350 main ()
23352 return rl_callback_handler_install ();
23354 return 0;
23356 _ACEOF
23357 rm -f conftest.$ac_objext conftest$ac_exeext
23358 if { (ac_try="$ac_link"
23359 case "(($ac_try" in
23360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361 *) ac_try_echo=$ac_try;;
23362 esac
23363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23364 (eval "$ac_link") 2>conftest.er1
23365 ac_status=$?
23366 grep -v '^ *+' conftest.er1 >conftest.err
23367 rm -f conftest.er1
23368 cat conftest.err >&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } && {
23371 test -z "$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23373 } && test -s conftest$ac_exeext &&
23374 $as_test_x conftest$ac_exeext; then
23375 ac_cv_lib_readline_rl_callback_handler_install=yes
23376 else
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ac_cv_lib_readline_rl_callback_handler_install=no
23383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23384 conftest$ac_exeext conftest.$ac_ext
23385 LIBS=$ac_check_lib_save_LIBS
23387 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23388 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23389 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23391 cat >>confdefs.h <<\_ACEOF
23392 #define HAVE_RL_CALLBACK 1
23393 _ACEOF
23398 # check for readline 2.2
23399 cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h. */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h. */
23405 #include <readline/readline.h>
23406 _ACEOF
23407 if { (ac_try="$ac_cpp conftest.$ac_ext"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23411 esac
23412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23414 ac_status=$?
23415 grep -v '^ *+' conftest.er1 >conftest.err
23416 rm -f conftest.er1
23417 cat conftest.err >&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } >/dev/null && {
23420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23422 }; then
23423 have_readline=yes
23424 else
23425 echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23428 have_readline=no
23431 rm -f conftest.err conftest.$ac_ext
23432 if test $have_readline = yes
23433 then
23434 cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h. */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23440 #include <readline/readline.h>
23442 _ACEOF
23443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23444 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23446 cat >>confdefs.h <<\_ACEOF
23447 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23448 _ACEOF
23451 rm -f conftest*
23455 # check for readline 4.0
23456 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23457 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23458 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23459 echo $ECHO_N "(cached) $ECHO_C" >&6
23460 else
23461 ac_check_lib_save_LIBS=$LIBS
23462 LIBS="-lreadline $READLINE_LIBS $LIBS"
23463 cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h. */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23470 /* Override any GCC internal prototype to avoid an error.
23471 Use char because int might match the return type of a GCC
23472 builtin and then its argument prototype would still apply. */
23473 #ifdef __cplusplus
23474 extern "C"
23475 #endif
23476 char rl_pre_input_hook ();
23478 main ()
23480 return rl_pre_input_hook ();
23482 return 0;
23484 _ACEOF
23485 rm -f conftest.$ac_objext conftest$ac_exeext
23486 if { (ac_try="$ac_link"
23487 case "(($ac_try" in
23488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489 *) ac_try_echo=$ac_try;;
23490 esac
23491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23492 (eval "$ac_link") 2>conftest.er1
23493 ac_status=$?
23494 grep -v '^ *+' conftest.er1 >conftest.err
23495 rm -f conftest.er1
23496 cat conftest.err >&5
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); } && {
23499 test -z "$ac_c_werror_flag" ||
23500 test ! -s conftest.err
23501 } && test -s conftest$ac_exeext &&
23502 $as_test_x conftest$ac_exeext; then
23503 ac_cv_lib_readline_rl_pre_input_hook=yes
23504 else
23505 echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23508 ac_cv_lib_readline_rl_pre_input_hook=no
23511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23512 conftest$ac_exeext conftest.$ac_ext
23513 LIBS=$ac_check_lib_save_LIBS
23515 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23516 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23517 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23519 cat >>confdefs.h <<\_ACEOF
23520 #define HAVE_RL_PRE_INPUT_HOOK 1
23521 _ACEOF
23526 # also in 4.0
23527 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23528 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23529 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23531 else
23532 ac_check_lib_save_LIBS=$LIBS
23533 LIBS="-lreadline $READLINE_LIBS $LIBS"
23534 cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h. */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23541 /* Override any GCC internal prototype to avoid an error.
23542 Use char because int might match the return type of a GCC
23543 builtin and then its argument prototype would still apply. */
23544 #ifdef __cplusplus
23545 extern "C"
23546 #endif
23547 char rl_completion_display_matches_hook ();
23549 main ()
23551 return rl_completion_display_matches_hook ();
23553 return 0;
23555 _ACEOF
23556 rm -f conftest.$ac_objext conftest$ac_exeext
23557 if { (ac_try="$ac_link"
23558 case "(($ac_try" in
23559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560 *) ac_try_echo=$ac_try;;
23561 esac
23562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23563 (eval "$ac_link") 2>conftest.er1
23564 ac_status=$?
23565 grep -v '^ *+' conftest.er1 >conftest.err
23566 rm -f conftest.er1
23567 cat conftest.err >&5
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); } && {
23570 test -z "$ac_c_werror_flag" ||
23571 test ! -s conftest.err
23572 } && test -s conftest$ac_exeext &&
23573 $as_test_x conftest$ac_exeext; then
23574 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23575 else
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23583 conftest$ac_exeext conftest.$ac_ext
23584 LIBS=$ac_check_lib_save_LIBS
23586 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23587 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23588 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23590 cat >>confdefs.h <<\_ACEOF
23591 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23592 _ACEOF
23597 # check for readline 4.2
23598 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23599 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23600 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23602 else
23603 ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-lreadline $READLINE_LIBS $LIBS"
23605 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h. */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23612 /* Override any GCC internal prototype to avoid an error.
23613 Use char because int might match the return type of a GCC
23614 builtin and then its argument prototype would still apply. */
23615 #ifdef __cplusplus
23616 extern "C"
23617 #endif
23618 char rl_completion_matches ();
23620 main ()
23622 return rl_completion_matches ();
23624 return 0;
23626 _ACEOF
23627 rm -f conftest.$ac_objext conftest$ac_exeext
23628 if { (ac_try="$ac_link"
23629 case "(($ac_try" in
23630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631 *) ac_try_echo=$ac_try;;
23632 esac
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634 (eval "$ac_link") 2>conftest.er1
23635 ac_status=$?
23636 grep -v '^ *+' conftest.er1 >conftest.err
23637 rm -f conftest.er1
23638 cat conftest.err >&5
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); } && {
23641 test -z "$ac_c_werror_flag" ||
23642 test ! -s conftest.err
23643 } && test -s conftest$ac_exeext &&
23644 $as_test_x conftest$ac_exeext; then
23645 ac_cv_lib_readline_rl_completion_matches=yes
23646 else
23647 echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23650 ac_cv_lib_readline_rl_completion_matches=no
23653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23654 conftest$ac_exeext conftest.$ac_ext
23655 LIBS=$ac_check_lib_save_LIBS
23657 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23658 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23659 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23661 cat >>confdefs.h <<\_ACEOF
23662 #define HAVE_RL_COMPLETION_MATCHES 1
23663 _ACEOF
23668 # also in readline 4.2
23669 cat >conftest.$ac_ext <<_ACEOF
23670 /* confdefs.h. */
23671 _ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h. */
23675 #include <readline/readline.h>
23676 _ACEOF
23677 if { (ac_try="$ac_cpp conftest.$ac_ext"
23678 case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23681 esac
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23684 ac_status=$?
23685 grep -v '^ *+' conftest.er1 >conftest.err
23686 rm -f conftest.er1
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } >/dev/null && {
23690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 }; then
23693 have_readline=yes
23694 else
23695 echo "$as_me: failed program was:" >&5
23696 sed 's/^/| /' conftest.$ac_ext >&5
23698 have_readline=no
23701 rm -f conftest.err conftest.$ac_ext
23702 if test $have_readline = yes
23703 then
23704 cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h. */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710 #include <readline/readline.h>
23712 _ACEOF
23713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23714 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
23716 cat >>confdefs.h <<\_ACEOF
23717 #define HAVE_RL_CATCH_SIGNAL 1
23718 _ACEOF
23721 rm -f conftest*
23725 # End of readline checks: restore LIBS
23726 LIBS=$LIBS_no_readline
23728 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23729 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23730 if test "${ac_cv_broken_nice+set}" = set; then
23731 echo $ECHO_N "(cached) $ECHO_C" >&6
23732 else
23734 if test "$cross_compiling" = yes; then
23735 ac_cv_broken_nice=no
23736 else
23737 cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h. */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23744 int main()
23746 int val1 = nice(1);
23747 if (val1 != -1 && val1 == nice(2))
23748 exit(0);
23749 exit(1);
23752 _ACEOF
23753 rm -f conftest$ac_exeext
23754 if { (ac_try="$ac_link"
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_link") 2>&5
23761 ac_status=$?
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23764 { (case "(($ac_try" in
23765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766 *) ac_try_echo=$ac_try;;
23767 esac
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769 (eval "$ac_try") 2>&5
23770 ac_status=$?
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); }; }; then
23773 ac_cv_broken_nice=yes
23774 else
23775 echo "$as_me: program exited with status $ac_status" >&5
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23779 ( exit $ac_status )
23780 ac_cv_broken_nice=no
23782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23788 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23789 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23790 if test "$ac_cv_broken_nice" = yes
23791 then
23793 cat >>confdefs.h <<\_ACEOF
23794 #define HAVE_BROKEN_NICE 1
23795 _ACEOF
23799 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23800 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23801 if test "$cross_compiling" = yes; then
23802 ac_cv_broken_poll=no
23803 else
23804 cat >conftest.$ac_ext <<_ACEOF
23805 /* confdefs.h. */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23811 #include <poll.h>
23813 int main (void)
23815 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23817 close (42);
23819 int poll_test = poll (&poll_struct, 1, 0);
23821 if (poll_test < 0)
23823 exit(0);
23825 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23827 exit(0);
23829 else
23831 exit(1);
23835 _ACEOF
23836 rm -f conftest$ac_exeext
23837 if { (ac_try="$ac_link"
23838 case "(($ac_try" in
23839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23840 *) ac_try_echo=$ac_try;;
23841 esac
23842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23843 (eval "$ac_link") 2>&5
23844 ac_status=$?
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23847 { (case "(($ac_try" in
23848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23849 *) ac_try_echo=$ac_try;;
23850 esac
23851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23852 (eval "$ac_try") 2>&5
23853 ac_status=$?
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); }; }; then
23856 ac_cv_broken_poll=yes
23857 else
23858 echo "$as_me: program exited with status $ac_status" >&5
23859 echo "$as_me: failed program was:" >&5
23860 sed 's/^/| /' conftest.$ac_ext >&5
23862 ( exit $ac_status )
23863 ac_cv_broken_poll=no
23865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23869 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23870 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23871 if test "$ac_cv_broken_poll" = yes
23872 then
23874 cat >>confdefs.h <<\_ACEOF
23875 #define HAVE_BROKEN_POLL 1
23876 _ACEOF
23880 # Before we can test tzset, we need to check if struct tm has a tm_zone
23881 # (which is not required by ISO C or UNIX spec) and/or if we support
23882 # tzname[]
23883 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23884 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23885 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23886 echo $ECHO_N "(cached) $ECHO_C" >&6
23887 else
23888 cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h. */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23894 #include <sys/types.h>
23895 #include <$ac_cv_struct_tm>
23899 main ()
23901 static struct tm ac_aggr;
23902 if (ac_aggr.tm_zone)
23903 return 0;
23905 return 0;
23907 _ACEOF
23908 rm -f conftest.$ac_objext
23909 if { (ac_try="$ac_compile"
23910 case "(($ac_try" in
23911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912 *) ac_try_echo=$ac_try;;
23913 esac
23914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23915 (eval "$ac_compile") 2>conftest.er1
23916 ac_status=$?
23917 grep -v '^ *+' conftest.er1 >conftest.err
23918 rm -f conftest.er1
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } && {
23922 test -z "$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23924 } && test -s conftest.$ac_objext; then
23925 ac_cv_member_struct_tm_tm_zone=yes
23926 else
23927 echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 cat >conftest.$ac_ext <<_ACEOF
23931 /* confdefs.h. */
23932 _ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h. */
23936 #include <sys/types.h>
23937 #include <$ac_cv_struct_tm>
23941 main ()
23943 static struct tm ac_aggr;
23944 if (sizeof ac_aggr.tm_zone)
23945 return 0;
23947 return 0;
23949 _ACEOF
23950 rm -f conftest.$ac_objext
23951 if { (ac_try="$ac_compile"
23952 case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23955 esac
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_compile") 2>conftest.er1
23958 ac_status=$?
23959 grep -v '^ *+' conftest.er1 >conftest.err
23960 rm -f conftest.er1
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } && {
23964 test -z "$ac_c_werror_flag" ||
23965 test ! -s conftest.err
23966 } && test -s conftest.$ac_objext; then
23967 ac_cv_member_struct_tm_tm_zone=yes
23968 else
23969 echo "$as_me: failed program was:" >&5
23970 sed 's/^/| /' conftest.$ac_ext >&5
23972 ac_cv_member_struct_tm_tm_zone=no
23975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23980 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23981 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23982 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23984 cat >>confdefs.h <<_ACEOF
23985 #define HAVE_STRUCT_TM_TM_ZONE 1
23986 _ACEOF
23991 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23993 cat >>confdefs.h <<\_ACEOF
23994 #define HAVE_TM_ZONE 1
23995 _ACEOF
23997 else
23998 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23999 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24000 if test "${ac_cv_have_decl_tzname+set}" = set; then
24001 echo $ECHO_N "(cached) $ECHO_C" >&6
24002 else
24003 cat >conftest.$ac_ext <<_ACEOF
24004 /* confdefs.h. */
24005 _ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h. */
24009 #include <time.h>
24012 main ()
24014 #ifndef tzname
24015 (void) tzname;
24016 #endif
24019 return 0;
24021 _ACEOF
24022 rm -f conftest.$ac_objext
24023 if { (ac_try="$ac_compile"
24024 case "(($ac_try" in
24025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026 *) ac_try_echo=$ac_try;;
24027 esac
24028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029 (eval "$ac_compile") 2>conftest.er1
24030 ac_status=$?
24031 grep -v '^ *+' conftest.er1 >conftest.err
24032 rm -f conftest.er1
24033 cat conftest.err >&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } && {
24036 test -z "$ac_c_werror_flag" ||
24037 test ! -s conftest.err
24038 } && test -s conftest.$ac_objext; then
24039 ac_cv_have_decl_tzname=yes
24040 else
24041 echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24044 ac_cv_have_decl_tzname=no
24047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24049 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24050 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24051 if test $ac_cv_have_decl_tzname = yes; then
24053 cat >>confdefs.h <<_ACEOF
24054 #define HAVE_DECL_TZNAME 1
24055 _ACEOF
24058 else
24059 cat >>confdefs.h <<_ACEOF
24060 #define HAVE_DECL_TZNAME 0
24061 _ACEOF
24067 { echo "$as_me:$LINENO: checking for tzname" >&5
24068 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24069 if test "${ac_cv_var_tzname+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072 cat >conftest.$ac_ext <<_ACEOF
24073 /* confdefs.h. */
24074 _ACEOF
24075 cat confdefs.h >>conftest.$ac_ext
24076 cat >>conftest.$ac_ext <<_ACEOF
24077 /* end confdefs.h. */
24078 #include <time.h>
24079 #if !HAVE_DECL_TZNAME
24080 extern char *tzname[];
24081 #endif
24084 main ()
24086 return tzname[0][0];
24088 return 0;
24090 _ACEOF
24091 rm -f conftest.$ac_objext conftest$ac_exeext
24092 if { (ac_try="$ac_link"
24093 case "(($ac_try" in
24094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24095 *) ac_try_echo=$ac_try;;
24096 esac
24097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24098 (eval "$ac_link") 2>conftest.er1
24099 ac_status=$?
24100 grep -v '^ *+' conftest.er1 >conftest.err
24101 rm -f conftest.er1
24102 cat conftest.err >&5
24103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); } && {
24105 test -z "$ac_c_werror_flag" ||
24106 test ! -s conftest.err
24107 } && test -s conftest$ac_exeext &&
24108 $as_test_x conftest$ac_exeext; then
24109 ac_cv_var_tzname=yes
24110 else
24111 echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24114 ac_cv_var_tzname=no
24117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24118 conftest$ac_exeext conftest.$ac_ext
24120 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24121 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24122 if test $ac_cv_var_tzname = yes; then
24124 cat >>confdefs.h <<\_ACEOF
24125 #define HAVE_TZNAME 1
24126 _ACEOF
24132 # check tzset(3) exists and works like we expect it to
24133 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24134 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24135 if test "${ac_cv_working_tzset+set}" = set; then
24136 echo $ECHO_N "(cached) $ECHO_C" >&6
24137 else
24139 if test "$cross_compiling" = yes; then
24140 ac_cv_working_tzset=no
24141 else
24142 cat >conftest.$ac_ext <<_ACEOF
24143 /* confdefs.h. */
24144 _ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h. */
24149 #include <stdlib.h>
24150 #include <time.h>
24151 #include <string.h>
24153 #if HAVE_TZNAME
24154 extern char *tzname[];
24155 #endif
24157 int main()
24159 /* Note that we need to ensure that not only does tzset(3)
24160 do 'something' with localtime, but it works as documented
24161 in the library reference and as expected by the test suite.
24162 This includes making sure that tzname is set properly if
24163 tm->tm_zone does not exist since it is the alternative way
24164 of getting timezone info.
24166 Red Hat 6.2 doesn't understand the southern hemisphere
24167 after New Year's Day.
24170 time_t groundhogday = 1044144000; /* GMT-based */
24171 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24173 putenv("TZ=UTC+0");
24174 tzset();
24175 if (localtime(&groundhogday)->tm_hour != 0)
24176 exit(1);
24177 #if HAVE_TZNAME
24178 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24179 if (strcmp(tzname[0], "UTC") ||
24180 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24181 exit(1);
24182 #endif
24184 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24185 tzset();
24186 if (localtime(&groundhogday)->tm_hour != 19)
24187 exit(1);
24188 #if HAVE_TZNAME
24189 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24190 exit(1);
24191 #endif
24193 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24194 tzset();
24195 if (localtime(&groundhogday)->tm_hour != 11)
24196 exit(1);
24197 #if HAVE_TZNAME
24198 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24199 exit(1);
24200 #endif
24202 #if HAVE_STRUCT_TM_TM_ZONE
24203 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24204 exit(1);
24205 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24206 exit(1);
24207 #endif
24209 exit(0);
24212 _ACEOF
24213 rm -f conftest$ac_exeext
24214 if { (ac_try="$ac_link"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24218 esac
24219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24220 (eval "$ac_link") 2>&5
24221 ac_status=$?
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24224 { (case "(($ac_try" in
24225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226 *) ac_try_echo=$ac_try;;
24227 esac
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229 (eval "$ac_try") 2>&5
24230 ac_status=$?
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); }; }; then
24233 ac_cv_working_tzset=yes
24234 else
24235 echo "$as_me: program exited with status $ac_status" >&5
24236 echo "$as_me: failed program was:" >&5
24237 sed 's/^/| /' conftest.$ac_ext >&5
24239 ( exit $ac_status )
24240 ac_cv_working_tzset=no
24242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24248 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24249 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24250 if test "$ac_cv_working_tzset" = yes
24251 then
24253 cat >>confdefs.h <<\_ACEOF
24254 #define HAVE_WORKING_TZSET 1
24255 _ACEOF
24259 # Look for subsecond timestamps in struct stat
24260 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24261 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24262 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24263 echo $ECHO_N "(cached) $ECHO_C" >&6
24264 else
24265 cat >conftest.$ac_ext <<_ACEOF
24266 /* confdefs.h. */
24267 _ACEOF
24268 cat confdefs.h >>conftest.$ac_ext
24269 cat >>conftest.$ac_ext <<_ACEOF
24270 /* end confdefs.h. */
24271 #include <sys/stat.h>
24273 main ()
24276 struct stat st;
24277 st.st_mtim.tv_nsec = 1;
24280 return 0;
24282 _ACEOF
24283 rm -f conftest.$ac_objext
24284 if { (ac_try="$ac_compile"
24285 case "(($ac_try" in
24286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24287 *) ac_try_echo=$ac_try;;
24288 esac
24289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24290 (eval "$ac_compile") 2>conftest.er1
24291 ac_status=$?
24292 grep -v '^ *+' conftest.er1 >conftest.err
24293 rm -f conftest.er1
24294 cat conftest.err >&5
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); } && {
24297 test -z "$ac_c_werror_flag" ||
24298 test ! -s conftest.err
24299 } && test -s conftest.$ac_objext; then
24300 ac_cv_stat_tv_nsec=yes
24301 else
24302 echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24305 ac_cv_stat_tv_nsec=no
24308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24312 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24313 if test "$ac_cv_stat_tv_nsec" = yes
24314 then
24316 cat >>confdefs.h <<\_ACEOF
24317 #define HAVE_STAT_TV_NSEC 1
24318 _ACEOF
24322 # Look for BSD style subsecond timestamps in struct stat
24323 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24324 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24325 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24326 echo $ECHO_N "(cached) $ECHO_C" >&6
24327 else
24328 cat >conftest.$ac_ext <<_ACEOF
24329 /* confdefs.h. */
24330 _ACEOF
24331 cat confdefs.h >>conftest.$ac_ext
24332 cat >>conftest.$ac_ext <<_ACEOF
24333 /* end confdefs.h. */
24334 #include <sys/stat.h>
24336 main ()
24339 struct stat st;
24340 st.st_mtimespec.tv_nsec = 1;
24343 return 0;
24345 _ACEOF
24346 rm -f conftest.$ac_objext
24347 if { (ac_try="$ac_compile"
24348 case "(($ac_try" in
24349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350 *) ac_try_echo=$ac_try;;
24351 esac
24352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_compile") 2>conftest.er1
24354 ac_status=$?
24355 grep -v '^ *+' conftest.er1 >conftest.err
24356 rm -f conftest.er1
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } && {
24360 test -z "$ac_c_werror_flag" ||
24361 test ! -s conftest.err
24362 } && test -s conftest.$ac_objext; then
24363 ac_cv_stat_tv_nsec2=yes
24364 else
24365 echo "$as_me: failed program was:" >&5
24366 sed 's/^/| /' conftest.$ac_ext >&5
24368 ac_cv_stat_tv_nsec2=no
24371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24374 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24375 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24376 if test "$ac_cv_stat_tv_nsec2" = yes
24377 then
24379 cat >>confdefs.h <<\_ACEOF
24380 #define HAVE_STAT_TV_NSEC2 1
24381 _ACEOF
24385 # On HP/UX 11.0, mvwdelch is a block with a return statement
24386 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24387 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24388 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24389 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 else
24391 cat >conftest.$ac_ext <<_ACEOF
24392 /* confdefs.h. */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24397 #include <curses.h>
24399 main ()
24402 int rtn;
24403 rtn = mvwdelch(0,0,0);
24406 return 0;
24408 _ACEOF
24409 rm -f conftest.$ac_objext
24410 if { (ac_try="$ac_compile"
24411 case "(($ac_try" in
24412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413 *) ac_try_echo=$ac_try;;
24414 esac
24415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416 (eval "$ac_compile") 2>conftest.er1
24417 ac_status=$?
24418 grep -v '^ *+' conftest.er1 >conftest.err
24419 rm -f conftest.er1
24420 cat conftest.err >&5
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); } && {
24423 test -z "$ac_c_werror_flag" ||
24424 test ! -s conftest.err
24425 } && test -s conftest.$ac_objext; then
24426 ac_cv_mvwdelch_is_expression=yes
24427 else
24428 echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24431 ac_cv_mvwdelch_is_expression=no
24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24437 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24438 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24440 if test "$ac_cv_mvwdelch_is_expression" = yes
24441 then
24443 cat >>confdefs.h <<\_ACEOF
24444 #define MVWDELCH_IS_EXPRESSION 1
24445 _ACEOF
24449 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24450 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24451 if test "${ac_cv_window_has_flags+set}" = set; then
24452 echo $ECHO_N "(cached) $ECHO_C" >&6
24453 else
24454 cat >conftest.$ac_ext <<_ACEOF
24455 /* confdefs.h. */
24456 _ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h. */
24460 #include <curses.h>
24462 main ()
24465 WINDOW *w;
24466 w->_flags = 0;
24469 return 0;
24471 _ACEOF
24472 rm -f conftest.$ac_objext
24473 if { (ac_try="$ac_compile"
24474 case "(($ac_try" in
24475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476 *) ac_try_echo=$ac_try;;
24477 esac
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479 (eval "$ac_compile") 2>conftest.er1
24480 ac_status=$?
24481 grep -v '^ *+' conftest.er1 >conftest.err
24482 rm -f conftest.er1
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } && {
24486 test -z "$ac_c_werror_flag" ||
24487 test ! -s conftest.err
24488 } && test -s conftest.$ac_objext; then
24489 ac_cv_window_has_flags=yes
24490 else
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24494 ac_cv_window_has_flags=no
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24500 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24501 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24504 if test "$ac_cv_window_has_flags" = yes
24505 then
24507 cat >>confdefs.h <<\_ACEOF
24508 #define WINDOW_HAS_FLAGS 1
24509 _ACEOF
24513 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24514 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24515 cat >conftest.$ac_ext <<_ACEOF
24516 /* confdefs.h. */
24517 _ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h. */
24521 #include <curses.h>
24523 main ()
24525 void *x=is_term_resized
24527 return 0;
24529 _ACEOF
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24535 esac
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537 (eval "$ac_compile") 2>conftest.er1
24538 ac_status=$?
24539 grep -v '^ *+' conftest.er1 >conftest.err
24540 rm -f conftest.er1
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } && {
24544 test -z "$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 } && test -s conftest.$ac_objext; then
24548 cat >>confdefs.h <<\_ACEOF
24549 #define HAVE_CURSES_IS_TERM_RESIZED 1
24550 _ACEOF
24552 { echo "$as_me:$LINENO: result: yes" >&5
24553 echo "${ECHO_T}yes" >&6; }
24554 else
24555 echo "$as_me: failed program was:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24558 { echo "$as_me:$LINENO: result: no" >&5
24559 echo "${ECHO_T}no" >&6; }
24563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24565 { echo "$as_me:$LINENO: checking for resize_term" >&5
24566 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24567 cat >conftest.$ac_ext <<_ACEOF
24568 /* confdefs.h. */
24569 _ACEOF
24570 cat confdefs.h >>conftest.$ac_ext
24571 cat >>conftest.$ac_ext <<_ACEOF
24572 /* end confdefs.h. */
24573 #include <curses.h>
24575 main ()
24577 void *x=resize_term
24579 return 0;
24581 _ACEOF
24582 rm -f conftest.$ac_objext
24583 if { (ac_try="$ac_compile"
24584 case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24587 esac
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_compile") 2>conftest.er1
24590 ac_status=$?
24591 grep -v '^ *+' conftest.er1 >conftest.err
24592 rm -f conftest.er1
24593 cat conftest.err >&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } && {
24596 test -z "$ac_c_werror_flag" ||
24597 test ! -s conftest.err
24598 } && test -s conftest.$ac_objext; then
24600 cat >>confdefs.h <<\_ACEOF
24601 #define HAVE_CURSES_RESIZE_TERM 1
24602 _ACEOF
24604 { echo "$as_me:$LINENO: result: yes" >&5
24605 echo "${ECHO_T}yes" >&6; }
24606 else
24607 echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24610 { echo "$as_me:$LINENO: result: no" >&5
24611 echo "${ECHO_T}no" >&6; }
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24617 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24618 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24619 cat >conftest.$ac_ext <<_ACEOF
24620 /* confdefs.h. */
24621 _ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24625 #include <curses.h>
24627 main ()
24629 void *x=resizeterm
24631 return 0;
24633 _ACEOF
24634 rm -f conftest.$ac_objext
24635 if { (ac_try="$ac_compile"
24636 case "(($ac_try" in
24637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638 *) ac_try_echo=$ac_try;;
24639 esac
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641 (eval "$ac_compile") 2>conftest.er1
24642 ac_status=$?
24643 grep -v '^ *+' conftest.er1 >conftest.err
24644 rm -f conftest.er1
24645 cat conftest.err >&5
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); } && {
24648 test -z "$ac_c_werror_flag" ||
24649 test ! -s conftest.err
24650 } && test -s conftest.$ac_objext; then
24652 cat >>confdefs.h <<\_ACEOF
24653 #define HAVE_CURSES_RESIZETERM 1
24654 _ACEOF
24656 { echo "$as_me:$LINENO: result: yes" >&5
24657 echo "${ECHO_T}yes" >&6; }
24658 else
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24662 { echo "$as_me:$LINENO: result: no" >&5
24663 echo "${ECHO_T}no" >&6; }
24667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24670 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24672 if test -r /dev/ptmx
24673 then
24674 { echo "$as_me:$LINENO: result: yes" >&5
24675 echo "${ECHO_T}yes" >&6; }
24677 cat >>confdefs.h <<\_ACEOF
24678 #define HAVE_DEV_PTMX 1
24679 _ACEOF
24681 else
24682 { echo "$as_me:$LINENO: result: no" >&5
24683 echo "${ECHO_T}no" >&6; }
24686 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24687 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24689 if test -r /dev/ptc
24690 then
24691 { echo "$as_me:$LINENO: result: yes" >&5
24692 echo "${ECHO_T}yes" >&6; }
24694 cat >>confdefs.h <<\_ACEOF
24695 #define HAVE_DEV_PTC 1
24696 _ACEOF
24698 else
24699 { echo "$as_me:$LINENO: result: no" >&5
24700 echo "${ECHO_T}no" >&6; }
24703 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24704 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24705 if test "$cross_compiling" = yes; then
24706 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24707 See \`config.log' for more details." >&5
24708 echo "$as_me: error: cannot run test program while cross compiling
24709 See \`config.log' for more details." >&2;}
24710 { (exit 1); exit 1; }; }
24711 else
24712 cat >conftest.$ac_ext <<_ACEOF
24713 /* confdefs.h. */
24714 _ACEOF
24715 cat confdefs.h >>conftest.$ac_ext
24716 cat >>conftest.$ac_ext <<_ACEOF
24717 /* end confdefs.h. */
24718 #include <stdio.h>
24719 #include <stddef.h>
24720 #include <string.h>
24722 #ifdef HAVE_SYS_TYPES_H
24723 #include <sys/types.h>
24724 #endif
24726 #ifdef HAVE_SSIZE_T
24727 typedef ssize_t Py_ssize_t;
24728 #elif SIZEOF_VOID_P == SIZEOF_LONG
24729 typedef long Py_ssize_t;
24730 #else
24731 typedef int Py_ssize_t;
24732 #endif
24734 int main()
24736 char buffer[256];
24738 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24739 return 1;
24741 if (strcmp(buffer, "123"))
24742 return 1;
24744 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24745 return 1;
24747 if (strcmp(buffer, "-123"))
24748 return 1;
24750 return 0;
24752 _ACEOF
24753 rm -f conftest$ac_exeext
24754 if { (ac_try="$ac_link"
24755 case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24758 esac
24759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760 (eval "$ac_link") 2>&5
24761 ac_status=$?
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24764 { (case "(($ac_try" in
24765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24766 *) ac_try_echo=$ac_try;;
24767 esac
24768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24769 (eval "$ac_try") 2>&5
24770 ac_status=$?
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; }; then
24773 { echo "$as_me:$LINENO: result: yes" >&5
24774 echo "${ECHO_T}yes" >&6; }
24776 cat >>confdefs.h <<\_ACEOF
24777 #define PY_FORMAT_SIZE_T "z"
24778 _ACEOF
24780 else
24781 echo "$as_me: program exited with status $ac_status" >&5
24782 echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24785 ( exit $ac_status )
24786 { echo "$as_me:$LINENO: result: no" >&5
24787 echo "${ECHO_T}no" >&6; }
24789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24794 { echo "$as_me:$LINENO: checking for socklen_t" >&5
24795 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
24796 if test "${ac_cv_type_socklen_t+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24798 else
24799 cat >conftest.$ac_ext <<_ACEOF
24800 /* confdefs.h. */
24801 _ACEOF
24802 cat confdefs.h >>conftest.$ac_ext
24803 cat >>conftest.$ac_ext <<_ACEOF
24804 /* end confdefs.h. */
24806 #ifdef HAVE_SYS_TYPES_H
24807 #include <sys/types.h>
24808 #endif
24809 #ifdef HAVE_SYS_SOCKET_H
24810 #include <sys/socket.h>
24811 #endif
24814 typedef socklen_t ac__type_new_;
24816 main ()
24818 if ((ac__type_new_ *) 0)
24819 return 0;
24820 if (sizeof (ac__type_new_))
24821 return 0;
24823 return 0;
24825 _ACEOF
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24831 esac
24832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833 (eval "$ac_compile") 2>conftest.er1
24834 ac_status=$?
24835 grep -v '^ *+' conftest.er1 >conftest.err
24836 rm -f conftest.er1
24837 cat conftest.err >&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } && {
24840 test -z "$ac_c_werror_flag" ||
24841 test ! -s conftest.err
24842 } && test -s conftest.$ac_objext; then
24843 ac_cv_type_socklen_t=yes
24844 else
24845 echo "$as_me: failed program was:" >&5
24846 sed 's/^/| /' conftest.$ac_ext >&5
24848 ac_cv_type_socklen_t=no
24851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24853 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24854 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24855 if test $ac_cv_type_socklen_t = yes; then
24857 else
24859 cat >>confdefs.h <<\_ACEOF
24860 #define socklen_t int
24861 _ACEOF
24866 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
24867 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
24868 if test "$cross_compiling" = yes; then
24869 ac_cv_broken_mbstowcs=no
24870 else
24871 cat >conftest.$ac_ext <<_ACEOF
24872 /* confdefs.h. */
24873 _ACEOF
24874 cat confdefs.h >>conftest.$ac_ext
24875 cat >>conftest.$ac_ext <<_ACEOF
24876 /* end confdefs.h. */
24878 #include<stdlib.h>
24879 int main() {
24880 size_t len = -1;
24881 const char *str = "text";
24882 len = mbstowcs(NULL, str, 0);
24883 return (len != 4);
24886 _ACEOF
24887 rm -f conftest$ac_exeext
24888 if { (ac_try="$ac_link"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_link") 2>&5
24895 ac_status=$?
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24898 { (case "(($ac_try" in
24899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900 *) ac_try_echo=$ac_try;;
24901 esac
24902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24903 (eval "$ac_try") 2>&5
24904 ac_status=$?
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; }; then
24907 ac_cv_broken_mbstowcs=no
24908 else
24909 echo "$as_me: program exited with status $ac_status" >&5
24910 echo "$as_me: failed program was:" >&5
24911 sed 's/^/| /' conftest.$ac_ext >&5
24913 ( exit $ac_status )
24914 ac_cv_broken_mbstowcs=yes
24916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24920 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
24921 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
24922 if test "$ac_cv_broken_mbstowcs" = yes
24923 then
24925 cat >>confdefs.h <<\_ACEOF
24926 #define HAVE_BROKEN_MBSTOWCS 1
24927 _ACEOF
24931 # Check for --with-computed-gotos
24932 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
24933 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
24935 # Check whether --with-computed-gotos was given.
24936 if test "${with_computed_gotos+set}" = set; then
24937 withval=$with_computed_gotos;
24938 if test "$withval" != no
24939 then
24941 cat >>confdefs.h <<\_ACEOF
24942 #define USE_COMPUTED_GOTOS 1
24943 _ACEOF
24945 { echo "$as_me:$LINENO: result: yes" >&5
24946 echo "${ECHO_T}yes" >&6; }
24947 else { echo "$as_me:$LINENO: result: no" >&5
24948 echo "${ECHO_T}no" >&6; }
24950 else
24951 { echo "$as_me:$LINENO: result: no" >&5
24952 echo "${ECHO_T}no" >&6; }
24959 for h in `(cd $srcdir;echo Python/thread_*.h)`
24961 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24962 done
24965 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24966 { echo "$as_me:$LINENO: checking for build directories" >&5
24967 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24968 for dir in $SRCDIRS; do
24969 if test ! -d $dir; then
24970 mkdir $dir
24972 done
24973 { echo "$as_me:$LINENO: result: done" >&5
24974 echo "${ECHO_T}done" >&6; }
24976 # generate output files
24977 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24979 cat >confcache <<\_ACEOF
24980 # This file is a shell script that caches the results of configure
24981 # tests run on this system so they can be shared between configure
24982 # scripts and configure runs, see configure's option --config-cache.
24983 # It is not useful on other systems. If it contains results you don't
24984 # want to keep, you may remove or edit it.
24986 # config.status only pays attention to the cache file if you give it
24987 # the --recheck option to rerun configure.
24989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24991 # following values.
24993 _ACEOF
24995 # The following way of writing the cache mishandles newlines in values,
24996 # but we know of no workaround that is simple, portable, and efficient.
24997 # So, we kill variables containing newlines.
24998 # Ultrix sh set writes to stderr and can't be redirected directly,
24999 # and sets the high bit in the cache file unless we assign to the vars.
25001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25002 eval ac_val=\$$ac_var
25003 case $ac_val in #(
25004 *${as_nl}*)
25005 case $ac_var in #(
25006 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25007 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25008 esac
25009 case $ac_var in #(
25010 _ | IFS | as_nl) ;; #(
25011 *) $as_unset $ac_var ;;
25012 esac ;;
25013 esac
25014 done
25016 (set) 2>&1 |
25017 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25018 *${as_nl}ac_space=\ *)
25019 # `set' does not quote correctly, so add quotes (double-quote
25020 # substitution turns \\\\ into \\, and sed turns \\ into \).
25021 sed -n \
25022 "s/'/'\\\\''/g;
25023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25024 ;; #(
25026 # `set' quotes correctly as required by POSIX, so do not add quotes.
25027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25029 esac |
25030 sort
25032 sed '
25033 /^ac_cv_env_/b end
25034 t clear
25035 :clear
25036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25037 t end
25038 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25039 :end' >>confcache
25040 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25041 if test -w "$cache_file"; then
25042 test "x$cache_file" != "x/dev/null" &&
25043 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25044 echo "$as_me: updating cache $cache_file" >&6;}
25045 cat confcache >$cache_file
25046 else
25047 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25048 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25051 rm -f confcache
25053 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25054 # Let make expand exec_prefix.
25055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25057 DEFS=-DHAVE_CONFIG_H
25059 ac_libobjs=
25060 ac_ltlibobjs=
25061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25062 # 1. Remove the extension, and $U if already installed.
25063 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25064 ac_i=`echo "$ac_i" | sed "$ac_script"`
25065 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25066 # will be set to the directory where LIBOBJS objects are built.
25067 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25068 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25069 done
25070 LIBOBJS=$ac_libobjs
25072 LTLIBOBJS=$ac_ltlibobjs
25076 : ${CONFIG_STATUS=./config.status}
25077 ac_clean_files_save=$ac_clean_files
25078 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25079 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25080 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25081 cat >$CONFIG_STATUS <<_ACEOF
25082 #! $SHELL
25083 # Generated by $as_me.
25084 # Run this file to recreate the current configuration.
25085 # Compiler output produced by configure, useful for debugging
25086 # configure, is in config.log if it exists.
25088 debug=false
25089 ac_cs_recheck=false
25090 ac_cs_silent=false
25091 SHELL=\${CONFIG_SHELL-$SHELL}
25092 _ACEOF
25094 cat >>$CONFIG_STATUS <<\_ACEOF
25095 ## --------------------- ##
25096 ## M4sh Initialization. ##
25097 ## --------------------- ##
25099 # Be more Bourne compatible
25100 DUALCASE=1; export DUALCASE # for MKS sh
25101 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25102 emulate sh
25103 NULLCMD=:
25104 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25105 # is contrary to our usage. Disable this feature.
25106 alias -g '${1+"$@"}'='"$@"'
25107 setopt NO_GLOB_SUBST
25108 else
25109 case `(set -o) 2>/dev/null` in
25110 *posix*) set -o posix ;;
25111 esac
25118 # PATH needs CR
25119 # Avoid depending upon Character Ranges.
25120 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25121 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25122 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25123 as_cr_digits='0123456789'
25124 as_cr_alnum=$as_cr_Letters$as_cr_digits
25126 # The user is always right.
25127 if test "${PATH_SEPARATOR+set}" != set; then
25128 echo "#! /bin/sh" >conf$$.sh
25129 echo "exit 0" >>conf$$.sh
25130 chmod +x conf$$.sh
25131 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25132 PATH_SEPARATOR=';'
25133 else
25134 PATH_SEPARATOR=:
25136 rm -f conf$$.sh
25139 # Support unset when possible.
25140 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25141 as_unset=unset
25142 else
25143 as_unset=false
25147 # IFS
25148 # We need space, tab and new line, in precisely that order. Quoting is
25149 # there to prevent editors from complaining about space-tab.
25150 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25151 # splitting by setting IFS to empty value.)
25152 as_nl='
25154 IFS=" "" $as_nl"
25156 # Find who we are. Look in the path if we contain no directory separator.
25157 case $0 in
25158 *[\\/]* ) as_myself=$0 ;;
25159 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25160 for as_dir in $PATH
25162 IFS=$as_save_IFS
25163 test -z "$as_dir" && as_dir=.
25164 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25165 done
25166 IFS=$as_save_IFS
25169 esac
25170 # We did not find ourselves, most probably we were run as `sh COMMAND'
25171 # in which case we are not to be found in the path.
25172 if test "x$as_myself" = x; then
25173 as_myself=$0
25175 if test ! -f "$as_myself"; then
25176 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25177 { (exit 1); exit 1; }
25180 # Work around bugs in pre-3.0 UWIN ksh.
25181 for as_var in ENV MAIL MAILPATH
25182 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25183 done
25184 PS1='$ '
25185 PS2='> '
25186 PS4='+ '
25188 # NLS nuisances.
25189 for as_var in \
25190 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25191 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25192 LC_TELEPHONE LC_TIME
25194 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25195 eval $as_var=C; export $as_var
25196 else
25197 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25199 done
25201 # Required to use basename.
25202 if expr a : '\(a\)' >/dev/null 2>&1 &&
25203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25204 as_expr=expr
25205 else
25206 as_expr=false
25209 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25210 as_basename=basename
25211 else
25212 as_basename=false
25216 # Name of the executable.
25217 as_me=`$as_basename -- "$0" ||
25218 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25219 X"$0" : 'X\(//\)$' \| \
25220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25221 echo X/"$0" |
25222 sed '/^.*\/\([^/][^/]*\)\/*$/{
25223 s//\1/
25226 /^X\/\(\/\/\)$/{
25227 s//\1/
25230 /^X\/\(\/\).*/{
25231 s//\1/
25234 s/.*/./; q'`
25236 # CDPATH.
25237 $as_unset CDPATH
25241 as_lineno_1=$LINENO
25242 as_lineno_2=$LINENO
25243 test "x$as_lineno_1" != "x$as_lineno_2" &&
25244 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25246 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25247 # uniformly replaced by the line number. The first 'sed' inserts a
25248 # line-number line after each line using $LINENO; the second 'sed'
25249 # does the real work. The second script uses 'N' to pair each
25250 # line-number line with the line containing $LINENO, and appends
25251 # trailing '-' during substitution so that $LINENO is not a special
25252 # case at line end.
25253 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25254 # scripts with optimization help from Paolo Bonzini. Blame Lee
25255 # E. McMahon (1931-1989) for sed's syntax. :-)
25256 sed -n '
25258 /[$]LINENO/=
25259 ' <$as_myself |
25260 sed '
25261 s/[$]LINENO.*/&-/
25262 t lineno
25264 :lineno
25266 :loop
25267 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25268 t loop
25269 s/-\n.*//
25270 ' >$as_me.lineno &&
25271 chmod +x "$as_me.lineno" ||
25272 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25273 { (exit 1); exit 1; }; }
25275 # Don't try to exec as it changes $[0], causing all sort of problems
25276 # (the dirname of $[0] is not the place where we might find the
25277 # original and so on. Autoconf is especially sensitive to this).
25278 . "./$as_me.lineno"
25279 # Exit status is that of the last command.
25280 exit
25284 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25285 as_dirname=dirname
25286 else
25287 as_dirname=false
25290 ECHO_C= ECHO_N= ECHO_T=
25291 case `echo -n x` in
25292 -n*)
25293 case `echo 'x\c'` in
25294 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25295 *) ECHO_C='\c';;
25296 esac;;
25298 ECHO_N='-n';;
25299 esac
25301 if expr a : '\(a\)' >/dev/null 2>&1 &&
25302 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25303 as_expr=expr
25304 else
25305 as_expr=false
25308 rm -f conf$$ conf$$.exe conf$$.file
25309 if test -d conf$$.dir; then
25310 rm -f conf$$.dir/conf$$.file
25311 else
25312 rm -f conf$$.dir
25313 mkdir conf$$.dir
25315 echo >conf$$.file
25316 if ln -s conf$$.file conf$$ 2>/dev/null; then
25317 as_ln_s='ln -s'
25318 # ... but there are two gotchas:
25319 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25320 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25321 # In both cases, we have to default to `cp -p'.
25322 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25323 as_ln_s='cp -p'
25324 elif ln conf$$.file conf$$ 2>/dev/null; then
25325 as_ln_s=ln
25326 else
25327 as_ln_s='cp -p'
25329 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25330 rmdir conf$$.dir 2>/dev/null
25332 if mkdir -p . 2>/dev/null; then
25333 as_mkdir_p=:
25334 else
25335 test -d ./-p && rmdir ./-p
25336 as_mkdir_p=false
25339 if test -x / >/dev/null 2>&1; then
25340 as_test_x='test -x'
25341 else
25342 if ls -dL / >/dev/null 2>&1; then
25343 as_ls_L_option=L
25344 else
25345 as_ls_L_option=
25347 as_test_x='
25348 eval sh -c '\''
25349 if test -d "$1"; then
25350 test -d "$1/.";
25351 else
25352 case $1 in
25353 -*)set "./$1";;
25354 esac;
25355 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25356 ???[sx]*):;;*)false;;esac;fi
25357 '\'' sh
25360 as_executable_p=$as_test_x
25362 # Sed expression to map a string onto a valid CPP name.
25363 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25365 # Sed expression to map a string onto a valid variable name.
25366 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25369 exec 6>&1
25371 # Save the log message, to keep $[0] and so on meaningful, and to
25372 # report actual input values of CONFIG_FILES etc. instead of their
25373 # values after options handling.
25374 ac_log="
25375 This file was extended by python $as_me 3.1, which was
25376 generated by GNU Autoconf 2.61. Invocation command line was
25378 CONFIG_FILES = $CONFIG_FILES
25379 CONFIG_HEADERS = $CONFIG_HEADERS
25380 CONFIG_LINKS = $CONFIG_LINKS
25381 CONFIG_COMMANDS = $CONFIG_COMMANDS
25382 $ $0 $@
25384 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25387 _ACEOF
25389 cat >>$CONFIG_STATUS <<_ACEOF
25390 # Files that config.status was made for.
25391 config_files="$ac_config_files"
25392 config_headers="$ac_config_headers"
25394 _ACEOF
25396 cat >>$CONFIG_STATUS <<\_ACEOF
25397 ac_cs_usage="\
25398 \`$as_me' instantiates files from templates according to the
25399 current configuration.
25401 Usage: $0 [OPTIONS] [FILE]...
25403 -h, --help print this help, then exit
25404 -V, --version print version number and configuration settings, then exit
25405 -q, --quiet do not print progress messages
25406 -d, --debug don't remove temporary files
25407 --recheck update $as_me by reconfiguring in the same conditions
25408 --file=FILE[:TEMPLATE]
25409 instantiate the configuration file FILE
25410 --header=FILE[:TEMPLATE]
25411 instantiate the configuration header FILE
25413 Configuration files:
25414 $config_files
25416 Configuration headers:
25417 $config_headers
25419 Report bugs to <bug-autoconf@gnu.org>."
25421 _ACEOF
25422 cat >>$CONFIG_STATUS <<_ACEOF
25423 ac_cs_version="\\
25424 python config.status 3.1
25425 configured by $0, generated by GNU Autoconf 2.61,
25426 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25428 Copyright (C) 2006 Free Software Foundation, Inc.
25429 This config.status script is free software; the Free Software Foundation
25430 gives unlimited permission to copy, distribute and modify it."
25432 ac_pwd='$ac_pwd'
25433 srcdir='$srcdir'
25434 INSTALL='$INSTALL'
25435 _ACEOF
25437 cat >>$CONFIG_STATUS <<\_ACEOF
25438 # If no file are specified by the user, then we need to provide default
25439 # value. By we need to know if files were specified by the user.
25440 ac_need_defaults=:
25441 while test $# != 0
25443 case $1 in
25444 --*=*)
25445 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25446 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25447 ac_shift=:
25450 ac_option=$1
25451 ac_optarg=$2
25452 ac_shift=shift
25454 esac
25456 case $ac_option in
25457 # Handling of the options.
25458 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25459 ac_cs_recheck=: ;;
25460 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25461 echo "$ac_cs_version"; exit ;;
25462 --debug | --debu | --deb | --de | --d | -d )
25463 debug=: ;;
25464 --file | --fil | --fi | --f )
25465 $ac_shift
25466 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25467 ac_need_defaults=false;;
25468 --header | --heade | --head | --hea )
25469 $ac_shift
25470 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25471 ac_need_defaults=false;;
25472 --he | --h)
25473 # Conflict between --help and --header
25474 { echo "$as_me: error: ambiguous option: $1
25475 Try \`$0 --help' for more information." >&2
25476 { (exit 1); exit 1; }; };;
25477 --help | --hel | -h )
25478 echo "$ac_cs_usage"; exit ;;
25479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25480 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25481 ac_cs_silent=: ;;
25483 # This is an error.
25484 -*) { echo "$as_me: error: unrecognized option: $1
25485 Try \`$0 --help' for more information." >&2
25486 { (exit 1); exit 1; }; } ;;
25488 *) ac_config_targets="$ac_config_targets $1"
25489 ac_need_defaults=false ;;
25491 esac
25492 shift
25493 done
25495 ac_configure_extra_args=
25497 if $ac_cs_silent; then
25498 exec 6>/dev/null
25499 ac_configure_extra_args="$ac_configure_extra_args --silent"
25502 _ACEOF
25503 cat >>$CONFIG_STATUS <<_ACEOF
25504 if \$ac_cs_recheck; then
25505 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25506 CONFIG_SHELL=$SHELL
25507 export CONFIG_SHELL
25508 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25511 _ACEOF
25512 cat >>$CONFIG_STATUS <<\_ACEOF
25513 exec 5>>config.log
25515 echo
25516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25517 ## Running $as_me. ##
25518 _ASBOX
25519 echo "$ac_log"
25520 } >&5
25522 _ACEOF
25523 cat >>$CONFIG_STATUS <<_ACEOF
25524 _ACEOF
25526 cat >>$CONFIG_STATUS <<\_ACEOF
25528 # Handling of arguments.
25529 for ac_config_target in $ac_config_targets
25531 case $ac_config_target in
25532 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25533 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25534 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25535 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25536 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25537 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25538 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25540 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25541 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25542 { (exit 1); exit 1; }; };;
25543 esac
25544 done
25547 # If the user did not use the arguments to specify the items to instantiate,
25548 # then the envvar interface is used. Set only those that are not.
25549 # We use the long form for the default assignment because of an extremely
25550 # bizarre bug on SunOS 4.1.3.
25551 if $ac_need_defaults; then
25552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25556 # Have a temporary directory for convenience. Make it in the build tree
25557 # simply because there is no reason against having it here, and in addition,
25558 # creating and moving files from /tmp can sometimes cause problems.
25559 # Hook for its removal unless debugging.
25560 # Note that there is a small window in which the directory will not be cleaned:
25561 # after its creation but before its name has been assigned to `$tmp'.
25562 $debug ||
25564 tmp=
25565 trap 'exit_status=$?
25566 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25568 trap '{ (exit 1); exit 1; }' 1 2 13 15
25570 # Create a (secure) tmp directory for tmp files.
25573 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25574 test -n "$tmp" && test -d "$tmp"
25575 } ||
25577 tmp=./conf$$-$RANDOM
25578 (umask 077 && mkdir "$tmp")
25579 } ||
25581 echo "$me: cannot create a temporary directory in ." >&2
25582 { (exit 1); exit 1; }
25586 # Set up the sed scripts for CONFIG_FILES section.
25589 # No need to generate the scripts if there are no CONFIG_FILES.
25590 # This happens for instance when ./config.status config.h
25591 if test -n "$CONFIG_FILES"; then
25593 _ACEOF
25597 ac_delim='%!_!# '
25598 for ac_last_try in false false false false false :; do
25599 cat >conf$$subs.sed <<_ACEOF
25600 SHELL!$SHELL$ac_delim
25601 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25602 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25603 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25604 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25605 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25606 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25607 exec_prefix!$exec_prefix$ac_delim
25608 prefix!$prefix$ac_delim
25609 program_transform_name!$program_transform_name$ac_delim
25610 bindir!$bindir$ac_delim
25611 sbindir!$sbindir$ac_delim
25612 libexecdir!$libexecdir$ac_delim
25613 datarootdir!$datarootdir$ac_delim
25614 datadir!$datadir$ac_delim
25615 sysconfdir!$sysconfdir$ac_delim
25616 sharedstatedir!$sharedstatedir$ac_delim
25617 localstatedir!$localstatedir$ac_delim
25618 includedir!$includedir$ac_delim
25619 oldincludedir!$oldincludedir$ac_delim
25620 docdir!$docdir$ac_delim
25621 infodir!$infodir$ac_delim
25622 htmldir!$htmldir$ac_delim
25623 dvidir!$dvidir$ac_delim
25624 pdfdir!$pdfdir$ac_delim
25625 psdir!$psdir$ac_delim
25626 libdir!$libdir$ac_delim
25627 localedir!$localedir$ac_delim
25628 mandir!$mandir$ac_delim
25629 DEFS!$DEFS$ac_delim
25630 ECHO_C!$ECHO_C$ac_delim
25631 ECHO_N!$ECHO_N$ac_delim
25632 ECHO_T!$ECHO_T$ac_delim
25633 LIBS!$LIBS$ac_delim
25634 build_alias!$build_alias$ac_delim
25635 host_alias!$host_alias$ac_delim
25636 target_alias!$target_alias$ac_delim
25637 VERSION!$VERSION$ac_delim
25638 SOVERSION!$SOVERSION$ac_delim
25639 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25640 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25641 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25642 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25643 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25644 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25645 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25646 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25647 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25648 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25649 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25650 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25651 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25652 MACHDEP!$MACHDEP$ac_delim
25653 SGI_ABI!$SGI_ABI$ac_delim
25654 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25655 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25656 CC!$CC$ac_delim
25657 CFLAGS!$CFLAGS$ac_delim
25658 LDFLAGS!$LDFLAGS$ac_delim
25659 CPPFLAGS!$CPPFLAGS$ac_delim
25660 ac_ct_CC!$ac_ct_CC$ac_delim
25661 EXEEXT!$EXEEXT$ac_delim
25662 OBJEXT!$OBJEXT$ac_delim
25663 CXX!$CXX$ac_delim
25664 MAINCC!$MAINCC$ac_delim
25665 CPP!$CPP$ac_delim
25666 GREP!$GREP$ac_delim
25667 EGREP!$EGREP$ac_delim
25668 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25669 LIBRARY!$LIBRARY$ac_delim
25670 LDLIBRARY!$LDLIBRARY$ac_delim
25671 DLLLIBRARY!$DLLLIBRARY$ac_delim
25672 BLDLIBRARY!$BLDLIBRARY$ac_delim
25673 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25674 INSTSONAME!$INSTSONAME$ac_delim
25675 RUNSHARED!$RUNSHARED$ac_delim
25676 LINKCC!$LINKCC$ac_delim
25677 RANLIB!$RANLIB$ac_delim
25678 AR!$AR$ac_delim
25679 SVNVERSION!$SVNVERSION$ac_delim
25680 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25681 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25682 INSTALL_DATA!$INSTALL_DATA$ac_delim
25683 LN!$LN$ac_delim
25684 OPT!$OPT$ac_delim
25685 BASECFLAGS!$BASECFLAGS$ac_delim
25686 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25687 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25688 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25689 SO!$SO$ac_delim
25690 LDSHARED!$LDSHARED$ac_delim
25691 BLDSHARED!$BLDSHARED$ac_delim
25692 CCSHARED!$CCSHARED$ac_delim
25693 LINKFORSHARED!$LINKFORSHARED$ac_delim
25694 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25695 SHLIBS!$SHLIBS$ac_delim
25696 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25697 _ACEOF
25699 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25700 break
25701 elif $ac_last_try; then
25702 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25703 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25704 { (exit 1); exit 1; }; }
25705 else
25706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25708 done
25710 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25711 if test -n "$ac_eof"; then
25712 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25713 ac_eof=`expr $ac_eof + 1`
25716 cat >>$CONFIG_STATUS <<_ACEOF
25717 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25719 _ACEOF
25720 sed '
25721 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25722 s/^/s,@/; s/!/@,|#_!!_#|/
25725 s/'"$ac_delim"'$/,g/; t
25726 s/$/\\/; p
25727 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25728 ' >>$CONFIG_STATUS <conf$$subs.sed
25729 rm -f conf$$subs.sed
25730 cat >>$CONFIG_STATUS <<_ACEOF
25731 CEOF$ac_eof
25732 _ACEOF
25735 ac_delim='%!_!# '
25736 for ac_last_try in false false false false false :; do
25737 cat >conf$$subs.sed <<_ACEOF
25738 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25739 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25740 LDLAST!$LDLAST$ac_delim
25741 THREADOBJ!$THREADOBJ$ac_delim
25742 DLINCLDIR!$DLINCLDIR$ac_delim
25743 DYNLOADFILE!$DYNLOADFILE$ac_delim
25744 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25745 TRUE!$TRUE$ac_delim
25746 LIBOBJS!$LIBOBJS$ac_delim
25747 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25748 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25749 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25750 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25751 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25752 LIBM!$LIBM$ac_delim
25753 LIBC!$LIBC$ac_delim
25754 THREADHEADERS!$THREADHEADERS$ac_delim
25755 SRCDIRS!$SRCDIRS$ac_delim
25756 LTLIBOBJS!$LTLIBOBJS$ac_delim
25757 _ACEOF
25759 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
25760 break
25761 elif $ac_last_try; then
25762 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25763 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25764 { (exit 1); exit 1; }; }
25765 else
25766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25768 done
25770 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25771 if test -n "$ac_eof"; then
25772 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25773 ac_eof=`expr $ac_eof + 1`
25776 cat >>$CONFIG_STATUS <<_ACEOF
25777 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25779 _ACEOF
25780 sed '
25781 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25782 s/^/s,@/; s/!/@,|#_!!_#|/
25785 s/'"$ac_delim"'$/,g/; t
25786 s/$/\\/; p
25787 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25788 ' >>$CONFIG_STATUS <conf$$subs.sed
25789 rm -f conf$$subs.sed
25790 cat >>$CONFIG_STATUS <<_ACEOF
25791 :end
25792 s/|#_!!_#|//g
25793 CEOF$ac_eof
25794 _ACEOF
25797 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25798 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25799 # trailing colons and then remove the whole line if VPATH becomes empty
25800 # (actually we leave an empty line to preserve line numbers).
25801 if test "x$srcdir" = x.; then
25802 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25803 s/:*\$(srcdir):*/:/
25804 s/:*\${srcdir}:*/:/
25805 s/:*@srcdir@:*/:/
25806 s/^\([^=]*=[ ]*\):*/\1/
25807 s/:*$//
25808 s/^[^=]*=[ ]*$//
25812 cat >>$CONFIG_STATUS <<\_ACEOF
25813 fi # test -n "$CONFIG_FILES"
25816 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25818 case $ac_tag in
25819 :[FHLC]) ac_mode=$ac_tag; continue;;
25820 esac
25821 case $ac_mode$ac_tag in
25822 :[FHL]*:*);;
25823 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25824 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25825 { (exit 1); exit 1; }; };;
25826 :[FH]-) ac_tag=-:-;;
25827 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25828 esac
25829 ac_save_IFS=$IFS
25830 IFS=:
25831 set x $ac_tag
25832 IFS=$ac_save_IFS
25833 shift
25834 ac_file=$1
25835 shift
25837 case $ac_mode in
25838 :L) ac_source=$1;;
25839 :[FH])
25840 ac_file_inputs=
25841 for ac_f
25843 case $ac_f in
25844 -) ac_f="$tmp/stdin";;
25845 *) # Look for the file first in the build tree, then in the source tree
25846 # (if the path is not absolute). The absolute path cannot be DOS-style,
25847 # because $ac_f cannot contain `:'.
25848 test -f "$ac_f" ||
25849 case $ac_f in
25850 [\\/$]*) false;;
25851 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25852 esac ||
25853 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25854 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25855 { (exit 1); exit 1; }; };;
25856 esac
25857 ac_file_inputs="$ac_file_inputs $ac_f"
25858 done
25860 # Let's still pretend it is `configure' which instantiates (i.e., don't
25861 # use $as_me), people would be surprised to read:
25862 # /* config.h. Generated by config.status. */
25863 configure_input="Generated from "`IFS=:
25864 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25865 if test x"$ac_file" != x-; then
25866 configure_input="$ac_file. $configure_input"
25867 { echo "$as_me:$LINENO: creating $ac_file" >&5
25868 echo "$as_me: creating $ac_file" >&6;}
25871 case $ac_tag in
25872 *:-:* | *:-) cat >"$tmp/stdin";;
25873 esac
25875 esac
25877 ac_dir=`$as_dirname -- "$ac_file" ||
25878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25879 X"$ac_file" : 'X\(//\)[^/]' \| \
25880 X"$ac_file" : 'X\(//\)$' \| \
25881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25882 echo X"$ac_file" |
25883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25884 s//\1/
25887 /^X\(\/\/\)[^/].*/{
25888 s//\1/
25891 /^X\(\/\/\)$/{
25892 s//\1/
25895 /^X\(\/\).*/{
25896 s//\1/
25899 s/.*/./; q'`
25900 { as_dir="$ac_dir"
25901 case $as_dir in #(
25902 -*) as_dir=./$as_dir;;
25903 esac
25904 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25905 as_dirs=
25906 while :; do
25907 case $as_dir in #(
25908 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25909 *) as_qdir=$as_dir;;
25910 esac
25911 as_dirs="'$as_qdir' $as_dirs"
25912 as_dir=`$as_dirname -- "$as_dir" ||
25913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25914 X"$as_dir" : 'X\(//\)[^/]' \| \
25915 X"$as_dir" : 'X\(//\)$' \| \
25916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25917 echo X"$as_dir" |
25918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25919 s//\1/
25922 /^X\(\/\/\)[^/].*/{
25923 s//\1/
25926 /^X\(\/\/\)$/{
25927 s//\1/
25930 /^X\(\/\).*/{
25931 s//\1/
25934 s/.*/./; q'`
25935 test -d "$as_dir" && break
25936 done
25937 test -z "$as_dirs" || eval "mkdir $as_dirs"
25938 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25940 { (exit 1); exit 1; }; }; }
25941 ac_builddir=.
25943 case "$ac_dir" in
25944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25946 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25947 # A ".." for each directory in $ac_dir_suffix.
25948 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25949 case $ac_top_builddir_sub in
25950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25952 esac ;;
25953 esac
25954 ac_abs_top_builddir=$ac_pwd
25955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25956 # for backward compatibility:
25957 ac_top_builddir=$ac_top_build_prefix
25959 case $srcdir in
25960 .) # We are building in place.
25961 ac_srcdir=.
25962 ac_top_srcdir=$ac_top_builddir_sub
25963 ac_abs_top_srcdir=$ac_pwd ;;
25964 [\\/]* | ?:[\\/]* ) # Absolute name.
25965 ac_srcdir=$srcdir$ac_dir_suffix;
25966 ac_top_srcdir=$srcdir
25967 ac_abs_top_srcdir=$srcdir ;;
25968 *) # Relative name.
25969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25970 ac_top_srcdir=$ac_top_build_prefix$srcdir
25971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25972 esac
25973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25976 case $ac_mode in
25979 # CONFIG_FILE
25982 case $INSTALL in
25983 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25984 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25985 esac
25986 _ACEOF
25988 cat >>$CONFIG_STATUS <<\_ACEOF
25989 # If the template does not know about datarootdir, expand it.
25990 # FIXME: This hack should be removed a few years after 2.60.
25991 ac_datarootdir_hack=; ac_datarootdir_seen=
25993 case `sed -n '/datarootdir/ {
25997 /@datadir@/p
25998 /@docdir@/p
25999 /@infodir@/p
26000 /@localedir@/p
26001 /@mandir@/p
26002 ' $ac_file_inputs` in
26003 *datarootdir*) ac_datarootdir_seen=yes;;
26004 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26005 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26006 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26007 _ACEOF
26008 cat >>$CONFIG_STATUS <<_ACEOF
26009 ac_datarootdir_hack='
26010 s&@datadir@&$datadir&g
26011 s&@docdir@&$docdir&g
26012 s&@infodir@&$infodir&g
26013 s&@localedir@&$localedir&g
26014 s&@mandir@&$mandir&g
26015 s&\\\${datarootdir}&$datarootdir&g' ;;
26016 esac
26017 _ACEOF
26019 # Neutralize VPATH when `$srcdir' = `.'.
26020 # Shell code in configure.ac might set extrasub.
26021 # FIXME: do we really want to maintain this feature?
26022 cat >>$CONFIG_STATUS <<_ACEOF
26023 sed "$ac_vpsub
26024 $extrasub
26025 _ACEOF
26026 cat >>$CONFIG_STATUS <<\_ACEOF
26028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26029 s&@configure_input@&$configure_input&;t t
26030 s&@top_builddir@&$ac_top_builddir_sub&;t t
26031 s&@srcdir@&$ac_srcdir&;t t
26032 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26033 s&@top_srcdir@&$ac_top_srcdir&;t t
26034 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26035 s&@builddir@&$ac_builddir&;t t
26036 s&@abs_builddir@&$ac_abs_builddir&;t t
26037 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26038 s&@INSTALL@&$ac_INSTALL&;t t
26039 $ac_datarootdir_hack
26040 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26043 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26045 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26046 which seems to be undefined. Please make sure it is defined." >&5
26047 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26048 which seems to be undefined. Please make sure it is defined." >&2;}
26050 rm -f "$tmp/stdin"
26051 case $ac_file in
26052 -) cat "$tmp/out"; rm -f "$tmp/out";;
26053 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26054 esac
26058 # CONFIG_HEADER
26060 _ACEOF
26062 # Transform confdefs.h into a sed script `conftest.defines', that
26063 # substitutes the proper values into config.h.in to produce config.h.
26064 rm -f conftest.defines conftest.tail
26065 # First, append a space to every undef/define line, to ease matching.
26066 echo 's/$/ /' >conftest.defines
26067 # Then, protect against being on the right side of a sed subst, or in
26068 # an unquoted here document, in config.status. If some macros were
26069 # called several times there might be several #defines for the same
26070 # symbol, which is useless. But do not sort them, since the last
26071 # AC_DEFINE must be honored.
26072 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26073 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26074 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26075 # PARAMS is the parameter list in the macro definition--in most cases, it's
26076 # just an empty string.
26077 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26078 ac_dB='\\)[ (].*,\\1define\\2'
26079 ac_dC=' '
26080 ac_dD=' ,'
26082 uniq confdefs.h |
26083 sed -n '
26084 t rset
26085 :rset
26086 s/^[ ]*#[ ]*define[ ][ ]*//
26087 t ok
26090 s/[\\&,]/\\&/g
26091 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26092 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26093 ' >>conftest.defines
26095 # Remove the space that was appended to ease matching.
26096 # Then replace #undef with comments. This is necessary, for
26097 # example, in the case of _POSIX_SOURCE, which is predefined and required
26098 # on some systems where configure will not decide to define it.
26099 # (The regexp can be short, since the line contains either #define or #undef.)
26100 echo 's/ $//
26101 s,^[ #]*u.*,/* & */,' >>conftest.defines
26103 # Break up conftest.defines:
26104 ac_max_sed_lines=50
26106 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26107 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26108 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26109 # et cetera.
26110 ac_in='$ac_file_inputs'
26111 ac_out='"$tmp/out1"'
26112 ac_nxt='"$tmp/out2"'
26114 while :
26116 # Write a here document:
26117 cat >>$CONFIG_STATUS <<_ACEOF
26118 # First, check the format of the line:
26119 cat >"\$tmp/defines.sed" <<\\CEOF
26120 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26121 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26123 :def
26124 _ACEOF
26125 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26126 echo 'CEOF
26127 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26128 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26129 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26130 grep . conftest.tail >/dev/null || break
26131 rm -f conftest.defines
26132 mv conftest.tail conftest.defines
26133 done
26134 rm -f conftest.defines conftest.tail
26136 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26137 cat >>$CONFIG_STATUS <<\_ACEOF
26138 if test x"$ac_file" != x-; then
26139 echo "/* $configure_input */" >"$tmp/config.h"
26140 cat "$ac_result" >>"$tmp/config.h"
26141 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26142 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26143 echo "$as_me: $ac_file is unchanged" >&6;}
26144 else
26145 rm -f $ac_file
26146 mv "$tmp/config.h" $ac_file
26148 else
26149 echo "/* $configure_input */"
26150 cat "$ac_result"
26152 rm -f "$tmp/out12"
26156 esac
26158 done # for ac_tag
26161 { (exit 0); exit 0; }
26162 _ACEOF
26163 chmod +x $CONFIG_STATUS
26164 ac_clean_files=$ac_clean_files_save
26167 # configure is writing to config.log, and then calls config.status.
26168 # config.status does its own redirection, appending to config.log.
26169 # Unfortunately, on DOS this fails, as config.log is still kept open
26170 # by configure, so config.status won't be able to write to it; its
26171 # output is simply discarded. So we exec the FD to /dev/null,
26172 # effectively closing config.log, so it can be properly (re)opened and
26173 # appended to by config.status. When coming back to configure, we
26174 # need to make the FD available again.
26175 if test "$no_create" != yes; then
26176 ac_cs_success=:
26177 ac_config_status_args=
26178 test "$silent" = yes &&
26179 ac_config_status_args="$ac_config_status_args --quiet"
26180 exec 5>/dev/null
26181 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26182 exec 5>>config.log
26183 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26184 # would make configure fail if this is the last instruction.
26185 $ac_cs_success || { (exit 1); exit 1; }
26189 echo "creating Modules/Setup"
26190 if test ! -f Modules/Setup
26191 then
26192 cp $srcdir/Modules/Setup.dist Modules/Setup
26195 echo "creating Modules/Setup.local"
26196 if test ! -f Modules/Setup.local
26197 then
26198 echo "# Edit this file for local setup changes" >Modules/Setup.local
26201 echo "creating Makefile"
26202 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26203 -s Modules Modules/Setup.config \
26204 Modules/Setup.local Modules/Setup
26205 mv config.c Modules