Fix the tag.
[python/dscho.git] / configure
blobbe58ce09a52a537e55239cfef5d61d6bb74e0ece
1 #! /bin/sh
2 # From configure.in Revision: 62620 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.0.
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.0'
579 PACKAGE_STRING='python 3.0'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 PYTHONFRAMEWORK
661 PYTHONFRAMEWORKIDENTIFIER
662 PYTHONFRAMEWORKDIR
663 PYTHONFRAMEWORKPREFIX
664 PYTHONFRAMEWORKINSTALLDIR
665 FRAMEWORKINSTALLFIRST
666 FRAMEWORKINSTALLLAST
667 FRAMEWORKALTINSTALLFIRST
668 FRAMEWORKALTINSTALLLAST
669 FRAMEWORKUNIXTOOLSPREFIX
670 MACHDEP
671 SGI_ABI
672 EXTRAPLATDIR
673 EXTRAMACHDEPPATH
674 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
675 EXPORT_MACOSX_DEPLOYMENT_TARGET
677 CFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CC
681 EXEEXT
682 OBJEXT
684 MAINCC
686 GREP
687 EGREP
688 BUILDEXEEXT
689 LIBRARY
690 LDLIBRARY
691 DLLLIBRARY
692 BLDLIBRARY
693 LDLIBRARYDIR
694 INSTSONAME
695 RUNSHARED
696 LINKCC
697 RANLIB
699 SVNVERSION
700 INSTALL_PROGRAM
701 INSTALL_SCRIPT
702 INSTALL_DATA
705 BASECFLAGS
706 OTHER_LIBTOOL_OPT
707 LIBTOOL_CRUFT
709 LDSHARED
710 BLDSHARED
711 CCSHARED
712 LINKFORSHARED
713 CFLAGSFORSHARED
714 SHLIBS
715 USE_SIGNAL_MODULE
716 SIGNAL_OBJS
717 USE_THREAD_MODULE
718 LDLAST
719 THREADOBJ
720 DLINCLDIR
721 DYNLOADFILE
722 MACHDEP_OBJS
723 TRUE
724 LIBOBJS
725 HAVE_GETHOSTBYNAME_R_6_ARG
726 HAVE_GETHOSTBYNAME_R_5_ARG
727 HAVE_GETHOSTBYNAME_R_3_ARG
728 HAVE_GETHOSTBYNAME_R
729 HAVE_GETHOSTBYNAME
730 LIBM
731 LIBC
732 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.0 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.0:";;
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-toolbox-glue disable/enable MacOSX glue code for extensions
1322 --enable-ipv6 Enable ipv6 (with ipv4) support
1323 --disable-ipv6 Disable ipv6 support
1325 Optional Packages:
1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1328 --with-framework-name=FRAMEWORK
1329 specify an alternate name of the framework built
1330 with --enable-framework
1331 --without-gcc never use gcc
1332 --with-cxx-main=<compiler>
1333 compile main() and link python executable with C++
1334 compiler
1335 --with-suffix=.exe set executable suffix
1336 --with-pydebug build with Py_DEBUG defined
1337 --with-libs='lib1 ...' link against additional libs
1338 --with-system-ffi build _ctypes module using an installed ffi library
1339 --with-signal-module disable/enable signal module
1340 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1341 --with(out)-threads[=DIRECTORY]
1342 disable/enable thread support
1343 --with(out)-thread[=DIRECTORY]
1344 deprecated; use --with(out)-threads
1345 --with-pth use GNU pth threading libraries
1346 --with(out)-doc-strings disable/enable documentation strings
1347 --with(out)-tsc enable/disable timestamp counter profile
1348 --with(out)-pymalloc disable/enable specialized mallocs
1349 --with-wctype-functions use wctype.h functions
1350 --with-fpectl enable SIGFPE catching
1351 --with-libm=STRING math library
1352 --with-libc=STRING C library
1353 --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
1355 Some influential environment variables:
1356 CC C compiler command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1359 nonstandard directory <lib dir>
1360 LIBS libraries to pass to the linker, e.g. -l<library>
1361 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1362 you have headers in a nonstandard directory <include dir>
1363 CPP C preprocessor
1365 Use these variables to override the choices made by `configure' or to help
1366 it to find libraries and programs with nonstandard names/locations.
1368 Report bugs to <http://www.python.org/python-bugs>.
1369 _ACEOF
1370 ac_status=$?
1373 if test "$ac_init_help" = "recursive"; then
1374 # If there are subdirs, report their specific --help.
1375 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376 test -d "$ac_dir" || continue
1377 ac_builddir=.
1379 case "$ac_dir" in
1380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1383 # A ".." for each directory in $ac_dir_suffix.
1384 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1385 case $ac_top_builddir_sub in
1386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388 esac ;;
1389 esac
1390 ac_abs_top_builddir=$ac_pwd
1391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir=$ac_top_build_prefix
1395 case $srcdir in
1396 .) # We are building in place.
1397 ac_srcdir=.
1398 ac_top_srcdir=$ac_top_builddir_sub
1399 ac_abs_top_srcdir=$ac_pwd ;;
1400 [\\/]* | ?:[\\/]* ) # Absolute name.
1401 ac_srcdir=$srcdir$ac_dir_suffix;
1402 ac_top_srcdir=$srcdir
1403 ac_abs_top_srcdir=$srcdir ;;
1404 *) # Relative name.
1405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406 ac_top_srcdir=$ac_top_build_prefix$srcdir
1407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1408 esac
1409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411 cd "$ac_dir" || { ac_status=$?; continue; }
1412 # Check for guested configure.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1417 echo &&
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1419 else
1420 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1421 fi || ac_status=$?
1422 cd "$ac_pwd" || { ac_status=$?; break; }
1423 done
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1428 cat <<\_ACEOF
1429 python configure 3.0
1430 generated by GNU Autoconf 2.61
1432 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1433 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1434 This configure script is free software; the Free Software Foundation
1435 gives unlimited permission to copy, distribute and modify it.
1436 _ACEOF
1437 exit
1439 cat >config.log <<_ACEOF
1440 This file contains any messages produced by compilers while
1441 running configure, to aid debugging if configure makes a mistake.
1443 It was created by python $as_me 3.0, which was
1444 generated by GNU Autoconf 2.61. Invocation command line was
1446 $ $0 $@
1448 _ACEOF
1449 exec 5>>config.log
1451 cat <<_ASUNAME
1452 ## --------- ##
1453 ## Platform. ##
1454 ## --------- ##
1456 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1457 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1458 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1459 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1460 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1462 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1463 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1465 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1466 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1467 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1468 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1469 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1470 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1471 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1473 _ASUNAME
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 for as_dir in $PATH
1478 IFS=$as_save_IFS
1479 test -z "$as_dir" && as_dir=.
1480 echo "PATH: $as_dir"
1481 done
1482 IFS=$as_save_IFS
1484 } >&5
1486 cat >&5 <<_ACEOF
1489 ## ----------- ##
1490 ## Core tests. ##
1491 ## ----------- ##
1493 _ACEOF
1496 # Keep a trace of the command line.
1497 # Strip out --no-create and --no-recursion so they do not pile up.
1498 # Strip out --silent because we don't want to record it for future runs.
1499 # Also quote any args containing shell meta-characters.
1500 # Make two passes to allow for proper duplicate-argument suppression.
1501 ac_configure_args=
1502 ac_configure_args0=
1503 ac_configure_args1=
1504 ac_must_keep_next=false
1505 for ac_pass in 1 2
1507 for ac_arg
1509 case $ac_arg in
1510 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512 | -silent | --silent | --silen | --sile | --sil)
1513 continue ;;
1514 *\'*)
1515 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1516 esac
1517 case $ac_pass in
1518 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1520 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1521 if test $ac_must_keep_next = true; then
1522 ac_must_keep_next=false # Got value, back to normal.
1523 else
1524 case $ac_arg in
1525 *=* | --config-cache | -C | -disable-* | --disable-* \
1526 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1527 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1528 | -with-* | --with-* | -without-* | --without-* | --x)
1529 case "$ac_configure_args0 " in
1530 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1531 esac
1533 -* ) ac_must_keep_next=true ;;
1534 esac
1536 ac_configure_args="$ac_configure_args '$ac_arg'"
1538 esac
1539 done
1540 done
1541 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1542 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1544 # When interrupted or exit'd, cleanup temporary files, and complete
1545 # config.log. We remove comments because anyway the quotes in there
1546 # would cause problems or look ugly.
1547 # WARNING: Use '\'' to represent an apostrophe within the trap.
1548 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1549 trap 'exit_status=$?
1550 # Save into config.log some information that might help in debugging.
1552 echo
1554 cat <<\_ASBOX
1555 ## ---------------- ##
1556 ## Cache variables. ##
1557 ## ---------------- ##
1558 _ASBOX
1559 echo
1560 # The following way of writing the cache mishandles newlines in values,
1562 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1563 eval ac_val=\$$ac_var
1564 case $ac_val in #(
1565 *${as_nl}*)
1566 case $ac_var in #(
1567 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1568 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1569 esac
1570 case $ac_var in #(
1571 _ | IFS | as_nl) ;; #(
1572 *) $as_unset $ac_var ;;
1573 esac ;;
1574 esac
1575 done
1576 (set) 2>&1 |
1577 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1578 *${as_nl}ac_space=\ *)
1579 sed -n \
1580 "s/'\''/'\''\\\\'\'''\''/g;
1581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1582 ;; #(
1584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1586 esac |
1587 sort
1589 echo
1591 cat <<\_ASBOX
1592 ## ----------------- ##
1593 ## Output variables. ##
1594 ## ----------------- ##
1595 _ASBOX
1596 echo
1597 for ac_var in $ac_subst_vars
1599 eval ac_val=\$$ac_var
1600 case $ac_val in
1601 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1602 esac
1603 echo "$ac_var='\''$ac_val'\''"
1604 done | sort
1605 echo
1607 if test -n "$ac_subst_files"; then
1608 cat <<\_ASBOX
1609 ## ------------------- ##
1610 ## File substitutions. ##
1611 ## ------------------- ##
1612 _ASBOX
1613 echo
1614 for ac_var in $ac_subst_files
1616 eval ac_val=\$$ac_var
1617 case $ac_val in
1618 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1619 esac
1620 echo "$ac_var='\''$ac_val'\''"
1621 done | sort
1622 echo
1625 if test -s confdefs.h; then
1626 cat <<\_ASBOX
1627 ## ----------- ##
1628 ## confdefs.h. ##
1629 ## ----------- ##
1630 _ASBOX
1631 echo
1632 cat confdefs.h
1633 echo
1635 test "$ac_signal" != 0 &&
1636 echo "$as_me: caught signal $ac_signal"
1637 echo "$as_me: exit $exit_status"
1638 } >&5
1639 rm -f core *.core core.conftest.* &&
1640 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1641 exit $exit_status
1643 for ac_signal in 1 2 13 15; do
1644 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1645 done
1646 ac_signal=0
1648 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1649 rm -f -r conftest* confdefs.h
1651 # Predefined preprocessor variables.
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_NAME "$PACKAGE_NAME"
1655 _ACEOF
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1660 _ACEOF
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1665 _ACEOF
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_STRING "$PACKAGE_STRING"
1670 _ACEOF
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1675 _ACEOF
1678 # Let the site file select an alternate cache file if it wants to.
1679 # Prefer explicitly selected file to automatically selected ones.
1680 if test -n "$CONFIG_SITE"; then
1681 set x "$CONFIG_SITE"
1682 elif test "x$prefix" != xNONE; then
1683 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1684 else
1685 set x "$ac_default_prefix/share/config.site" \
1686 "$ac_default_prefix/etc/config.site"
1688 shift
1689 for ac_site_file
1691 if test -r "$ac_site_file"; then
1692 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1693 echo "$as_me: loading site script $ac_site_file" >&6;}
1694 sed 's/^/| /' "$ac_site_file" >&5
1695 . "$ac_site_file"
1697 done
1699 if test -r "$cache_file"; then
1700 # Some versions of bash will fail to source /dev/null (special
1701 # files actually), so we avoid doing that.
1702 if test -f "$cache_file"; then
1703 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1704 echo "$as_me: loading cache $cache_file" >&6;}
1705 case $cache_file in
1706 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1707 *) . "./$cache_file";;
1708 esac
1710 else
1711 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1712 echo "$as_me: creating cache $cache_file" >&6;}
1713 >$cache_file
1716 # Check that the precious variables saved in the cache have kept the same
1717 # value.
1718 ac_cache_corrupted=false
1719 for ac_var in $ac_precious_vars; do
1720 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1721 eval ac_new_set=\$ac_env_${ac_var}_set
1722 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1723 eval ac_new_val=\$ac_env_${ac_var}_value
1724 case $ac_old_set,$ac_new_set in
1725 set,)
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1727 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1729 ,set)
1730 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1731 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1732 ac_cache_corrupted=: ;;
1733 ,);;
1735 if test "x$ac_old_val" != "x$ac_new_val"; then
1736 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1738 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1739 echo "$as_me: former value: $ac_old_val" >&2;}
1740 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1741 echo "$as_me: current value: $ac_new_val" >&2;}
1742 ac_cache_corrupted=:
1743 fi;;
1744 esac
1745 # Pass precious variables to config.status.
1746 if test "$ac_new_set" = set; then
1747 case $ac_new_val in
1748 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 *) ac_arg=$ac_var=$ac_new_val ;;
1750 esac
1751 case " $ac_configure_args " in
1752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1753 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754 esac
1756 done
1757 if $ac_cache_corrupted; then
1758 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1759 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1760 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1762 { (exit 1); exit 1; }; }
1789 ac_ext=c
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 ac_config_headers="$ac_config_headers pyconfig.h"
1805 # We don't use PACKAGE_ variables, and they cause conflicts
1806 # with other autoconf-based packages that include Python.h
1807 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1808 rm confdefs.h
1809 mv confdefs.h.new confdefs.h
1812 VERSION=3.0
1815 SOVERSION=1.0
1817 # The later defininition of _XOPEN_SOURCE disables certain features
1818 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1820 cat >>confdefs.h <<\_ACEOF
1821 #define _GNU_SOURCE 1
1822 _ACEOF
1825 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1826 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1827 # them.
1829 cat >>confdefs.h <<\_ACEOF
1830 #define _NETBSD_SOURCE 1
1831 _ACEOF
1834 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1835 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1836 # them.
1838 cat >>confdefs.h <<\_ACEOF
1839 #define __BSD_VISIBLE 1
1840 _ACEOF
1843 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1844 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1846 cat >>confdefs.h <<\_ACEOF
1847 #define _BSD_TYPES 1
1848 _ACEOF
1851 define_xopen_source=yes
1853 # Arguments passed to configure.
1855 CONFIG_ARGS="$ac_configure_args"
1857 # Check whether --enable-universalsdk was given.
1858 if test "${enable_universalsdk+set}" = set; then
1859 enableval=$enable_universalsdk;
1860 case $enableval in
1861 yes)
1862 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1864 esac
1865 case $enableval in
1867 UNIVERSALSDK=
1868 enable_universalsdk=
1871 UNIVERSALSDK=$enableval
1873 esac
1875 else
1877 UNIVERSALSDK=
1878 enable_universalsdk=
1885 # Check whether --with-framework-name was given.
1886 if test "${with_framework_name+set}" = set; then
1887 withval=$with_framework_name;
1888 PYTHONFRAMEWORK=${withval}
1889 PYTHONFRAMEWORKDIR=${withval}.framework
1890 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1892 else
1894 PYTHONFRAMEWORK=Python
1895 PYTHONFRAMEWORKDIR=Python.framework
1896 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1900 # Check whether --enable-framework was given.
1901 if test "${enable_framework+set}" = set; then
1902 enableval=$enable_framework;
1903 case $enableval in
1904 yes)
1905 enableval=/Library/Frameworks
1906 esac
1907 case $enableval in
1909 PYTHONFRAMEWORK=
1910 PYTHONFRAMEWORKDIR=no-framework
1911 PYTHONFRAMEWORKPREFIX=
1912 PYTHONFRAMEWORKINSTALLDIR=
1913 FRAMEWORKINSTALLFIRST=
1914 FRAMEWORKINSTALLLAST=
1915 FRAMEWORKALTINSTALLFIRST=
1916 FRAMEWORKALTINSTALLLAST=
1917 if test "x${prefix}" = "xNONE"; then
1918 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1919 else
1920 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1922 enable_framework=
1925 PYTHONFRAMEWORKPREFIX=$enableval
1926 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1927 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1928 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1929 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1930 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1931 if test "x${prefix}" = "xNONE" ; then
1932 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1933 else
1934 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1936 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1938 # Add files for Mac specific code to the list of output
1939 # files:
1940 ac_config_files="$ac_config_files Mac/Makefile"
1942 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1944 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1946 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1948 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1950 esac
1952 else
1954 PYTHONFRAMEWORK=
1955 PYTHONFRAMEWORKDIR=no-framework
1956 PYTHONFRAMEWORKPREFIX=
1957 PYTHONFRAMEWORKINSTALLDIR=
1958 FRAMEWORKINSTALLFIRST=
1959 FRAMEWORKINSTALLLAST=
1960 FRAMEWORKALTINSTALLFIRST=
1961 FRAMEWORKALTINSTALLLAST=
1962 if test "x${prefix}" = "xNONE" ; then
1963 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1964 else
1965 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1967 enable_framework=
1982 ##AC_ARG_WITH(dyld,
1983 ## AC_HELP_STRING(--with-dyld,
1984 ## Use (OpenStep|Rhapsody) dynamic linker))
1986 # Set name for machine-dependent library files
1988 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1989 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1990 if test -z "$MACHDEP"
1991 then
1992 ac_sys_system=`uname -s`
1993 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1994 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1995 ac_sys_release=`uname -v`
1996 else
1997 ac_sys_release=`uname -r`
1999 ac_md_system=`echo $ac_sys_system |
2000 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2001 ac_md_release=`echo $ac_sys_release |
2002 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2003 MACHDEP="$ac_md_system$ac_md_release"
2005 case $MACHDEP in
2006 cygwin*) MACHDEP="cygwin";;
2007 darwin*) MACHDEP="darwin";;
2008 atheos*) MACHDEP="atheos";;
2009 irix646) MACHDEP="irix6";;
2010 '') MACHDEP="unknown";;
2011 esac
2014 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2015 # disable features if it is defined, without any means to access these
2016 # features as extensions. For these systems, we skip the definition of
2017 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2018 # some feature, make sure there is no alternative way to access this
2019 # feature. Also, when using wildcards, make sure you have verified the
2020 # need for not defining _XOPEN_SOURCE on all systems matching the
2021 # wildcard, and that the wildcard does not include future systems
2022 # (which may remove their limitations).
2023 case $ac_sys_system/$ac_sys_release in
2024 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2025 # even though select is a POSIX function. Reported by J. Ribbens.
2026 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2027 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2028 define_xopen_source=no
2029 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2030 # also defined. This can be overridden by defining _BSD_SOURCE
2031 # As this has a different meaning on Linux, only define it on OpenBSD
2033 cat >>confdefs.h <<\_ACEOF
2034 #define _BSD_SOURCE 1
2035 _ACEOF
2038 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2039 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2040 # Marc Recht
2041 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2042 define_xopen_source=no;;
2043 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2044 # of union __?sigval. Reported by Stuart Bishop.
2045 SunOS/5.6)
2046 define_xopen_source=no;;
2047 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2048 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2049 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2050 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2051 define_xopen_source=no;;
2052 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2053 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2054 SCO_SV/3.2)
2055 define_xopen_source=no;;
2056 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2057 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2058 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2059 # This should hopefully be fixed in FreeBSD 4.9
2060 FreeBSD/4.8* | Darwin/6* )
2061 define_xopen_source=no;;
2062 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2063 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2064 # or has another value. By not (re)defining it, the defaults come in place.
2065 AIX/4)
2066 define_xopen_source=no;;
2067 AIX/5)
2068 if test `uname -r` -eq 1; then
2069 define_xopen_source=no
2072 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2073 # disables platform specific features beyond repair.
2074 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2075 # has no effect, don't bother defining them
2076 Darwin/[789].*)
2077 define_xopen_source=no
2080 esac
2082 if test $define_xopen_source = yes
2083 then
2084 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2085 # defined precisely as g++ defines it
2086 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2087 # compiler
2088 case $ac_sys_system/$ac_sys_release in
2089 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2091 cat >>confdefs.h <<\_ACEOF
2092 #define _XOPEN_SOURCE 500
2093 _ACEOF
2098 cat >>confdefs.h <<\_ACEOF
2099 #define _XOPEN_SOURCE 600
2100 _ACEOF
2103 esac
2105 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2106 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2107 # several APIs are not declared. Since this is also needed in some
2108 # cases for HP-UX, we define it globally.
2109 # except for Solaris 10, where it must not be defined,
2110 # as it implies XPG4.2
2111 case $ac_sys_system/$ac_sys_release in
2112 SunOS/5.10)
2116 cat >>confdefs.h <<\_ACEOF
2117 #define _XOPEN_SOURCE_EXTENDED 1
2118 _ACEOF
2121 esac
2124 cat >>confdefs.h <<\_ACEOF
2125 #define _POSIX_C_SOURCE 200112L
2126 _ACEOF
2132 # SGI compilers allow the specification of the both the ABI and the
2133 # ISA on the command line. Depending on the values of these switches,
2134 # different and often incompatable code will be generated.
2136 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2137 # thus supply support for various ABI/ISA combinations. The MACHDEP
2138 # variable is also adjusted.
2141 if test ! -z "$SGI_ABI"
2142 then
2143 CC="cc $SGI_ABI"
2144 LDFLAGS="$SGI_ABI $LDFLAGS"
2145 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2147 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2148 echo "${ECHO_T}$MACHDEP" >&6; }
2150 # And add extra plat-mac for darwin
2153 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2154 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2155 if test -z "$EXTRAPLATDIR"
2156 then
2157 case $MACHDEP in
2158 darwin)
2159 EXTRAPLATDIR="\$(PLATMACDIRS)"
2160 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2163 EXTRAPLATDIR=""
2164 EXTRAMACHDEPPATH=""
2166 esac
2168 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2169 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2171 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2172 # it may influence the way we can build extensions, so distutils
2173 # needs to check it
2176 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2177 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2179 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2180 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2181 ac_sys_machine=`uname -m`
2182 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2183 echo "${ECHO_T}$ac_sys_machine" >&6; }
2185 # checks for alternative programs
2187 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2188 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2189 # just to get things to compile and link. Users are free to override OPT
2190 # when running configure or make. The build should not break if they do.
2191 # BASECFLAGS should generally not be messed with, however.
2193 # XXX shouldn't some/most/all of this code be merged with the stuff later
2194 # on that fiddles with OPT and BASECFLAGS?
2195 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2196 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2198 # Check whether --with-gcc was given.
2199 if test "${with_gcc+set}" = set; then
2200 withval=$with_gcc;
2201 case $withval in
2202 no) CC=cc
2203 without_gcc=yes;;
2204 yes) CC=gcc
2205 without_gcc=no;;
2206 *) CC=$withval
2207 without_gcc=$withval;;
2208 esac
2209 else
2211 case $ac_sys_system in
2212 AIX*) CC=cc_r
2213 without_gcc=;;
2214 Monterey*)
2215 RANLIB=:
2216 without_gcc=;;
2217 *) without_gcc=no;;
2218 esac
2221 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2222 echo "${ECHO_T}$without_gcc" >&6; }
2224 # If the user switches compilers, we can't believe the cache
2225 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2226 then
2227 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2228 (it is also a good idea to do 'make clean' before compiling)" >&5
2229 echo "$as_me: error: cached CC is different -- throw away $cache_file
2230 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2231 { (exit 1); exit 1; }; }
2234 ac_ext=c
2235 ac_cpp='$CPP $CPPFLAGS'
2236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239 if test -n "$ac_tool_prefix"; then
2240 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2241 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 break 2
2261 done
2262 done
2263 IFS=$as_save_IFS
2267 CC=$ac_cv_prog_CC
2268 if test -n "$CC"; then
2269 { echo "$as_me:$LINENO: result: $CC" >&5
2270 echo "${ECHO_T}$CC" >&6; }
2271 else
2272 { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2278 if test -z "$ac_cv_prog_CC"; then
2279 ac_ct_CC=$CC
2280 # Extract the first word of "gcc", so it can be a program name with args.
2281 set dummy gcc; ac_word=$2
2282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 if test -n "$ac_ct_CC"; then
2288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297 ac_cv_prog_ac_ct_CC="gcc"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2301 done
2302 done
2303 IFS=$as_save_IFS
2307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2308 if test -n "$ac_ct_CC"; then
2309 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2310 echo "${ECHO_T}$ac_ct_CC" >&6; }
2311 else
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2316 if test "x$ac_ct_CC" = x; then
2317 CC=""
2318 else
2319 case $cross_compiling:$ac_tool_warned in
2320 yes:)
2321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet. If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&5
2324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet. If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2327 ac_tool_warned=yes ;;
2328 esac
2329 CC=$ac_ct_CC
2331 else
2332 CC="$ac_cv_prog_CC"
2335 if test -z "$CC"; then
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}cc; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="${ac_tool_prefix}cc"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2358 done
2359 done
2360 IFS=$as_save_IFS
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2368 else
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2376 if test -z "$CC"; then
2377 # Extract the first word of "cc", so it can be a program name with args.
2378 set dummy cc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_CC+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC="$CC" # Let the user override the test.
2386 else
2387 ac_prog_rejected=no
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2396 ac_prog_rejected=yes
2397 continue
2399 ac_cv_prog_CC="cc"
2400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 break 2
2403 done
2404 done
2405 IFS=$as_save_IFS
2407 if test $ac_prog_rejected = yes; then
2408 # We found a bogon in the path, so make sure we never use it.
2409 set dummy $ac_cv_prog_CC
2410 shift
2411 if test $# != 0; then
2412 # We chose a different compiler from the bogus one.
2413 # However, it has the same basename, so the bogon will be chosen
2414 # first if we set CC to just the basename; use the full file name.
2415 shift
2416 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2421 CC=$ac_cv_prog_CC
2422 if test -n "$CC"; then
2423 { echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6; }
2425 else
2426 { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2432 if test -z "$CC"; then
2433 if test -n "$ac_tool_prefix"; then
2434 for ac_prog in cl.exe
2436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2457 done
2458 done
2459 IFS=$as_save_IFS
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2467 else
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2473 test -n "$CC" && break
2474 done
2476 if test -z "$CC"; then
2477 ac_ct_CC=$CC
2478 for ac_prog in cl.exe
2480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2481 set dummy $ac_prog; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_ac_ct_CC="$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2501 done
2502 done
2503 IFS=$as_save_IFS
2507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508 if test -n "$ac_ct_CC"; then
2509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510 echo "${ECHO_T}$ac_ct_CC" >&6; }
2511 else
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2517 test -n "$ac_ct_CC" && break
2518 done
2520 if test "x$ac_ct_CC" = x; then
2521 CC=""
2522 else
2523 case $cross_compiling:$ac_tool_warned in
2524 yes:)
2525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2526 whose name does not start with the host triplet. If you think this
2527 configuration is useful to you, please write to autoconf@gnu.org." >&5
2528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2529 whose name does not start with the host triplet. If you think this
2530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2531 ac_tool_warned=yes ;;
2532 esac
2533 CC=$ac_ct_CC
2540 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2541 See \`config.log' for more details." >&5
2542 echo "$as_me: error: no acceptable C compiler found in \$PATH
2543 See \`config.log' for more details." >&2;}
2544 { (exit 1); exit 1; }; }
2546 # Provide some information about the compiler.
2547 echo "$as_me:$LINENO: checking for C compiler version" >&5
2548 ac_compiler=`set X $ac_compile; echo $2`
2549 { (ac_try="$ac_compiler --version >&5"
2550 case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_compiler --version >&5") 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }
2559 { (ac_try="$ac_compiler -v >&5"
2560 case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compiler -v >&5") 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2569 { (ac_try="$ac_compiler -V >&5"
2570 case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compiler -V >&5") 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }
2580 cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h. */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2588 main ()
2592 return 0;
2594 _ACEOF
2595 ac_clean_files_save=$ac_clean_files
2596 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2597 # Try to create an executable without -o first, disregard a.out.
2598 # It will help us diagnose broken compilers, and finding out an intuition
2599 # of exeext.
2600 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2601 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2602 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2604 # List of possible output files, starting from the most likely.
2605 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2606 # only as a last resort. b.out is created by i960 compilers.
2607 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2609 # The IRIX 6 linker writes into existing files which may not be
2610 # executable, retaining their permissions. Remove them first so a
2611 # subsequent execution test works.
2612 ac_rmfiles=
2613 for ac_file in $ac_files
2615 case $ac_file in
2616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2617 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2618 esac
2619 done
2620 rm -f $ac_rmfiles
2622 if { (ac_try="$ac_link_default"
2623 case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2626 esac
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_link_default") 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; then
2632 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2633 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2634 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2635 # so that the user can short-circuit this test for compilers unknown to
2636 # Autoconf.
2637 for ac_file in $ac_files ''
2639 test -f "$ac_file" || continue
2640 case $ac_file in
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2643 [ab].out )
2644 # We found the default executable, but exeext='' is most
2645 # certainly right.
2646 break;;
2647 *.* )
2648 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2649 then :; else
2650 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652 # We set ac_cv_exeext here because the later test for it is not
2653 # safe: cross compilers may not add the suffix if given an `-o'
2654 # argument, so we may need to know it at that point already.
2655 # Even if this section looks crufty: it has the advantage of
2656 # actually working.
2657 break;;
2659 break;;
2660 esac
2661 done
2662 test "$ac_cv_exeext" = no && ac_cv_exeext=
2664 else
2665 ac_file=''
2668 { echo "$as_me:$LINENO: result: $ac_file" >&5
2669 echo "${ECHO_T}$ac_file" >&6; }
2670 if test -z "$ac_file"; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2674 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2675 See \`config.log' for more details." >&5
2676 echo "$as_me: error: C compiler cannot create executables
2677 See \`config.log' for more details." >&2;}
2678 { (exit 77); exit 77; }; }
2681 ac_exeext=$ac_cv_exeext
2683 # Check that the compiler produces executables we can run. If not, either
2684 # the compiler is broken, or we cross compile.
2685 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2686 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2687 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2688 # If not cross compiling, check that we can run a simple program.
2689 if test "$cross_compiling" != yes; then
2690 if { ac_try='./$ac_file'
2691 { (case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_try") 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 cross_compiling=no
2701 else
2702 if test "$cross_compiling" = maybe; then
2703 cross_compiling=yes
2704 else
2705 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2706 If you meant to cross compile, use \`--host'.
2707 See \`config.log' for more details." >&5
2708 echo "$as_me: error: cannot run C compiled programs.
2709 If you meant to cross compile, use \`--host'.
2710 See \`config.log' for more details." >&2;}
2711 { (exit 1); exit 1; }; }
2715 { echo "$as_me:$LINENO: result: yes" >&5
2716 echo "${ECHO_T}yes" >&6; }
2718 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2719 ac_clean_files=$ac_clean_files_save
2720 # Check that the compiler produces executables we can run. If not, either
2721 # the compiler is broken, or we cross compile.
2722 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2723 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2724 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2725 echo "${ECHO_T}$cross_compiling" >&6; }
2727 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2728 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2729 if { (ac_try="$ac_link"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_link") 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; then
2739 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2740 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2741 # work properly (i.e., refer to `conftest.exe'), while it won't with
2742 # `rm'.
2743 for ac_file in conftest.exe conftest conftest.*; do
2744 test -f "$ac_file" || continue
2745 case $ac_file in
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2748 break;;
2749 * ) break;;
2750 esac
2751 done
2752 else
2753 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2754 See \`config.log' for more details." >&5
2755 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2756 See \`config.log' for more details." >&2;}
2757 { (exit 1); exit 1; }; }
2760 rm -f conftest$ac_cv_exeext
2761 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2762 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2764 rm -f conftest.$ac_ext
2765 EXEEXT=$ac_cv_exeext
2766 ac_exeext=$EXEEXT
2767 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2768 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2769 if test "${ac_cv_objext+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772 cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h. */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2780 main ()
2784 return 0;
2786 _ACEOF
2787 rm -f conftest.o conftest.obj
2788 if { (ac_try="$ac_compile"
2789 case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2792 esac
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794 (eval "$ac_compile") 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; then
2798 for ac_file in conftest.o conftest.obj conftest.*; do
2799 test -f "$ac_file" || continue;
2800 case $ac_file in
2801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2802 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2803 break;;
2804 esac
2805 done
2806 else
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2811 See \`config.log' for more details." >&5
2812 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2813 See \`config.log' for more details." >&2;}
2814 { (exit 1); exit 1; }; }
2817 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2819 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2820 echo "${ECHO_T}$ac_cv_objext" >&6; }
2821 OBJEXT=$ac_cv_objext
2822 ac_objext=$OBJEXT
2823 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2824 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2825 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2836 main ()
2838 #ifndef __GNUC__
2839 choke me
2840 #endif
2843 return 0;
2845 _ACEOF
2846 rm -f conftest.$ac_objext
2847 if { (ac_try="$ac_compile"
2848 case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_compile") 2>conftest.er1
2854 ac_status=$?
2855 grep -v '^ *+' conftest.er1 >conftest.err
2856 rm -f conftest.er1
2857 cat conftest.err >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } && {
2860 test -z "$ac_c_werror_flag" ||
2861 test ! -s conftest.err
2862 } && test -s conftest.$ac_objext; then
2863 ac_compiler_gnu=yes
2864 else
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 ac_compiler_gnu=no
2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2875 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2876 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2877 GCC=`test $ac_compiler_gnu = yes && echo yes`
2878 ac_test_CFLAGS=${CFLAGS+set}
2879 ac_save_CFLAGS=$CFLAGS
2880 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2881 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2882 if test "${ac_cv_prog_cc_g+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 ac_save_c_werror_flag=$ac_c_werror_flag
2886 ac_c_werror_flag=yes
2887 ac_cv_prog_cc_g=no
2888 CFLAGS="-g"
2889 cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h. */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2897 main ()
2901 return 0;
2903 _ACEOF
2904 rm -f conftest.$ac_objext
2905 if { (ac_try="$ac_compile"
2906 case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
2921 ac_cv_prog_cc_g=yes
2922 else
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 CFLAGS=""
2927 cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h. */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2935 main ()
2939 return 0;
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2944 case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && {
2956 test -z "$ac_c_werror_flag" ||
2957 test ! -s conftest.err
2958 } && test -s conftest.$ac_objext; then
2960 else
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 ac_c_werror_flag=$ac_save_c_werror_flag
2965 CFLAGS="-g"
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2974 main ()
2978 return 0;
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (ac_try="$ac_compile"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } && {
2995 test -z "$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 } && test -s conftest.$ac_objext; then
2998 ac_cv_prog_cc_g=yes
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_c_werror_flag=$ac_save_c_werror_flag
3015 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3017 if test "$ac_test_CFLAGS" = set; then
3018 CFLAGS=$ac_save_CFLAGS
3019 elif test $ac_cv_prog_cc_g = yes; then
3020 if test "$GCC" = yes; then
3021 CFLAGS="-g -O2"
3022 else
3023 CFLAGS="-g"
3025 else
3026 if test "$GCC" = yes; then
3027 CFLAGS="-O2"
3028 else
3029 CFLAGS=
3032 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3033 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_cc_c89+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037 ac_cv_prog_cc_c89=no
3038 ac_save_CC=$CC
3039 cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h. */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3045 #include <stdarg.h>
3046 #include <stdio.h>
3047 #include <sys/types.h>
3048 #include <sys/stat.h>
3049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3050 struct buf { int x; };
3051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3052 static char *e (p, i)
3053 char **p;
3054 int i;
3056 return p[i];
3058 static char *f (char * (*g) (char **, int), char **p, ...)
3060 char *s;
3061 va_list v;
3062 va_start (v,p);
3063 s = g (p, va_arg (v,int));
3064 va_end (v);
3065 return s;
3068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3069 function prototypes and stuff, but not '\xHH' hex character constants.
3070 These don't provoke an error unfortunately, instead are silently treated
3071 as 'x'. The following induces an error, until -std is added to get
3072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3073 array size at least. It's necessary to write '\x00'==0 to get something
3074 that's true only with -std. */
3075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3077 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3078 inside strings and character constants. */
3079 #define FOO(x) 'x'
3080 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3082 int test (int i, double x);
3083 struct s1 {int (*f) (int a);};
3084 struct s2 {int (*f) (double a);};
3085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3086 int argc;
3087 char **argv;
3089 main ()
3091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3093 return 0;
3095 _ACEOF
3096 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3099 CC="$ac_save_CC $ac_arg"
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3117 ac_cv_prog_cc_c89=$ac_arg
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3125 rm -f core conftest.err conftest.$ac_objext
3126 test "x$ac_cv_prog_cc_c89" != "xno" && break
3127 done
3128 rm -f conftest.$ac_ext
3129 CC=$ac_save_CC
3132 # AC_CACHE_VAL
3133 case "x$ac_cv_prog_cc_c89" in
3135 { echo "$as_me:$LINENO: result: none needed" >&5
3136 echo "${ECHO_T}none needed" >&6; } ;;
3137 xno)
3138 { echo "$as_me:$LINENO: result: unsupported" >&5
3139 echo "${ECHO_T}unsupported" >&6; } ;;
3141 CC="$CC $ac_cv_prog_cc_c89"
3142 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3143 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3144 esac
3147 ac_ext=c
3148 ac_cpp='$CPP $CPPFLAGS'
3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3157 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3159 # Check whether --with-cxx_main was given.
3160 if test "${with_cxx_main+set}" = set; then
3161 withval=$with_cxx_main;
3163 case $withval in
3164 no) with_cxx_main=no
3165 MAINCC='$(CC)';;
3166 yes) with_cxx_main=yes
3167 MAINCC='$(CXX)';;
3168 *) with_cxx_main=yes
3169 MAINCC=$withval
3170 if test -z "$CXX"
3171 then
3172 CXX=$withval
3173 fi;;
3174 esac
3175 else
3177 with_cxx_main=no
3178 MAINCC='$(CC)'
3182 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3183 echo "${ECHO_T}$with_cxx_main" >&6; }
3185 preset_cxx="$CXX"
3186 if test -z "$CXX"
3187 then
3188 case "$CC" in
3189 gcc) # Extract the first word of "g++", so it can be a program name with args.
3190 set dummy g++; ac_word=$2
3191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3193 if test "${ac_cv_path_CXX+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 case $CXX in
3197 [\\/]* | ?:[\\/]*)
3198 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in notfound
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3212 done
3213 done
3214 IFS=$as_save_IFS
3216 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3218 esac
3220 CXX=$ac_cv_path_CXX
3221 if test -n "$CXX"; then
3222 { echo "$as_me:$LINENO: result: $CXX" >&5
3223 echo "${ECHO_T}$CXX" >&6; }
3224 else
3225 { echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6; }
3230 cc) # Extract the first word of "c++", so it can be a program name with args.
3231 set dummy c++; ac_word=$2
3232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3234 if test "${ac_cv_path_CXX+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 case $CXX in
3238 [\\/]* | ?:[\\/]*)
3239 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in notfound
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 break 2
3253 done
3254 done
3255 IFS=$as_save_IFS
3257 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3259 esac
3261 CXX=$ac_cv_path_CXX
3262 if test -n "$CXX"; then
3263 { echo "$as_me:$LINENO: result: $CXX" >&5
3264 echo "${ECHO_T}$CXX" >&6; }
3265 else
3266 { echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6; }
3271 esac
3272 if test "$CXX" = "notfound"
3273 then
3274 CXX=""
3277 if test -z "$CXX"
3278 then
3279 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CXX+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 if test -n "$CXX"; then
3289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_CXX="$ac_prog"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 CXX=$ac_cv_prog_CXX
3309 if test -n "$CXX"; then
3310 { echo "$as_me:$LINENO: result: $CXX" >&5
3311 echo "${ECHO_T}$CXX" >&6; }
3312 else
3313 { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3318 test -n "$CXX" && break
3319 done
3320 test -n "$CXX" || CXX="notfound"
3322 if test "$CXX" = "notfound"
3323 then
3324 CXX=""
3327 if test "$preset_cxx" != "$CXX"
3328 then
3329 { echo "$as_me:$LINENO: WARNING:
3331 By default, distutils will build C++ extension modules with \"$CXX\".
3332 If this is not intended, then set CXX on the configure command line.
3333 " >&5
3334 echo "$as_me: WARNING:
3336 By default, distutils will build C++ extension modules with \"$CXX\".
3337 If this is not intended, then set CXX on the configure command line.
3338 " >&2;}
3342 # checks for UNIX variants that set C preprocessor variables
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3351 # On Suns, sometimes $CPP names a directory.
3352 if test -n "$CPP" && test -d "$CPP"; then
3353 CPP=
3355 if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3362 ac_preproc_ok=false
3363 for ac_c_preproc_warn_flag in '' yes
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h. */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #ifdef __STDC__
3378 # include <limits.h>
3379 #else
3380 # include <assert.h>
3381 #endif
3382 Syntax error
3383 _ACEOF
3384 if { (ac_try="$ac_cpp conftest.$ac_ext"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } >/dev/null && {
3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 }; then
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 # Broken: fails on valid input.
3406 continue
3409 rm -f conftest.err conftest.$ac_ext
3411 # OK, works on sane cases. Now check whether nonexistent headers
3412 # can be detected and how.
3413 cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h. */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #include <ac_nonexistent.h>
3420 _ACEOF
3421 if { (ac_try="$ac_cpp conftest.$ac_ext"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev/null && {
3434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 }; then
3437 # Broken: success on invalid input.
3438 continue
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 # Passes both tests.
3444 ac_preproc_ok=:
3445 break
3448 rm -f conftest.err conftest.$ac_ext
3450 done
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then
3454 break
3457 done
3458 ac_cv_prog_CPP=$CPP
3461 CPP=$ac_cv_prog_CPP
3462 else
3463 ac_cv_prog_CPP=$CPP
3465 { echo "$as_me:$LINENO: result: $CPP" >&5
3466 echo "${ECHO_T}$CPP" >&6; }
3467 ac_preproc_ok=false
3468 for ac_c_preproc_warn_flag in '' yes
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #ifdef __STDC__
3483 # include <limits.h>
3484 #else
3485 # include <assert.h>
3486 #endif
3487 Syntax error
3488 _ACEOF
3489 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 }; then
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 # Broken: fails on valid input.
3511 continue
3514 rm -f conftest.err conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <ac_nonexistent.h>
3525 _ACEOF
3526 if { (ac_try="$ac_cpp conftest.$ac_ext"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null && {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 }; then
3542 # Broken: success on invalid input.
3543 continue
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3553 rm -f conftest.err conftest.$ac_ext
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3560 else
3561 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&5
3563 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3576 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3577 if test "${ac_cv_path_GREP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 # Extract the first word of "grep ggrep" to use in msg output
3581 if test -z "$GREP"; then
3582 set dummy grep ggrep; ac_prog_name=$2
3583 if test "${ac_cv_path_GREP+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 ac_path_GREP_found=false
3587 # Loop through the user's path and test for each of PROGNAME-LIST
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_prog in grep ggrep; do
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3596 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3597 # Check for GNU ac_path_GREP and select it if it is found.
3598 # Check for GNU $ac_path_GREP
3599 case `"$ac_path_GREP" --version 2>&1` in
3600 *GNU*)
3601 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3603 ac_count=0
3604 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3605 while :
3607 cat "conftest.in" "conftest.in" >"conftest.tmp"
3608 mv "conftest.tmp" "conftest.in"
3609 cp "conftest.in" "conftest.nl"
3610 echo 'GREP' >> "conftest.nl"
3611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3613 ac_count=`expr $ac_count + 1`
3614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3615 # Best one so far, save it but keep looking for a better one
3616 ac_cv_path_GREP="$ac_path_GREP"
3617 ac_path_GREP_max=$ac_count
3619 # 10*(2^10) chars as input seems more than enough
3620 test $ac_count -gt 10 && break
3621 done
3622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3623 esac
3626 $ac_path_GREP_found && break 3
3627 done
3628 done
3630 done
3631 IFS=$as_save_IFS
3636 GREP="$ac_cv_path_GREP"
3637 if test -z "$GREP"; then
3638 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3639 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3640 { (exit 1); exit 1; }; }
3643 else
3644 ac_cv_path_GREP=$GREP
3649 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3650 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3651 GREP="$ac_cv_path_GREP"
3654 { echo "$as_me:$LINENO: checking for egrep" >&5
3655 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3656 if test "${ac_cv_path_EGREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3660 then ac_cv_path_EGREP="$GREP -E"
3661 else
3662 # Extract the first word of "egrep" to use in msg output
3663 if test -z "$EGREP"; then
3664 set dummy egrep; ac_prog_name=$2
3665 if test "${ac_cv_path_EGREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 ac_path_EGREP_found=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_prog in egrep; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3679 # Check for GNU ac_path_EGREP and select it if it is found.
3680 # Check for GNU $ac_path_EGREP
3681 case `"$ac_path_EGREP" --version 2>&1` in
3682 *GNU*)
3683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3685 ac_count=0
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687 while :
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'EGREP' >> "conftest.nl"
3693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695 ac_count=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_EGREP="$ac_path_EGREP"
3699 ac_path_EGREP_max=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3703 done
3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705 esac
3708 $ac_path_EGREP_found && break 3
3709 done
3710 done
3712 done
3713 IFS=$as_save_IFS
3718 EGREP="$ac_cv_path_EGREP"
3719 if test -z "$EGREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3725 else
3726 ac_cv_path_EGREP=$EGREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3734 EGREP="$ac_cv_path_EGREP"
3738 { echo "$as_me:$LINENO: checking for AIX" >&5
3739 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #ifdef _AIX
3748 #endif
3750 _ACEOF
3751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3752 $EGREP "yes" >/dev/null 2>&1; then
3753 { echo "$as_me:$LINENO: result: yes" >&5
3754 echo "${ECHO_T}yes" >&6; }
3755 cat >>confdefs.h <<\_ACEOF
3756 #define _ALL_SOURCE 1
3757 _ACEOF
3759 else
3760 { echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6; }
3763 rm -f conftest*
3767 # Check for unsupported systems
3768 case $ac_sys_system/$ac_sys_release in
3769 atheos*|Linux*/1*)
3770 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3771 echo See README for details.
3772 exit 1;;
3773 esac
3776 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3777 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3779 # Check whether --with-suffix was given.
3780 if test "${with_suffix+set}" = set; then
3781 withval=$with_suffix;
3782 case $withval in
3783 no) EXEEXT=;;
3784 yes) EXEEXT=.exe;;
3785 *) EXEEXT=$withval;;
3786 esac
3789 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3790 echo "${ECHO_T}$EXEEXT" >&6; }
3792 # Test whether we're running on a non-case-sensitive system, in which
3793 # case we give a warning if no ext is given
3795 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3796 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3797 if test ! -d CaseSensitiveTestDir; then
3798 mkdir CaseSensitiveTestDir
3801 if test -d casesensitivetestdir
3802 then
3803 { echo "$as_me:$LINENO: result: yes" >&5
3804 echo "${ECHO_T}yes" >&6; }
3805 BUILDEXEEXT=.exe
3806 else
3807 { echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6; }
3809 BUILDEXEEXT=$EXEEXT
3811 rmdir CaseSensitiveTestDir
3813 case $MACHDEP in
3814 bsdos*)
3815 case $CC in
3816 gcc) CC="$CC -D_HAVE_BSDI";;
3817 esac;;
3818 esac
3820 case $ac_sys_system in
3821 hp*|HP*)
3822 case $CC in
3823 cc|*/cc) CC="$CC -Ae";;
3824 esac;;
3825 Monterey*)
3826 case $CC in
3827 cc) CC="$CC -Wl,-Bexport";;
3828 esac;;
3829 SunOS*)
3830 # Some functions have a prototype only with that define, e.g. confstr
3832 cat >>confdefs.h <<\_ACEOF
3833 #define __EXTENSIONS__ 1
3834 _ACEOF
3837 esac
3841 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3842 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3843 if test -z "$LIBRARY"
3844 then
3845 LIBRARY='libpython$(VERSION).a'
3847 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3848 echo "${ECHO_T}$LIBRARY" >&6; }
3850 # LDLIBRARY is the name of the library to link against (as opposed to the
3851 # name of the library into which to insert object files). BLDLIBRARY is also
3852 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3853 # is blank as the main program is not linked directly against LDLIBRARY.
3854 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3855 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3856 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3857 # DLLLIBRARY is the shared (i.e., DLL) library.
3859 # RUNSHARED is used to run shared python without installed libraries
3861 # INSTSONAME is the name of the shared library that will be use to install
3862 # on the system - some systems like version suffix, others don't
3869 LDLIBRARY="$LIBRARY"
3870 BLDLIBRARY='$(LDLIBRARY)'
3871 INSTSONAME='$(LDLIBRARY)'
3872 DLLLIBRARY=''
3873 LDLIBRARYDIR=''
3874 RUNSHARED=''
3876 # LINKCC is the command that links the python executable -- default is $(CC).
3877 # If CXX is set, and if it is needed to link a main function that was
3878 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3879 # python might then depend on the C++ runtime
3880 # This is altered for AIX in order to build the export list before
3881 # linking.
3883 { echo "$as_me:$LINENO: checking LINKCC" >&5
3884 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3885 if test -z "$LINKCC"
3886 then
3887 LINKCC='$(PURIFY) $(MAINCC)'
3888 case $ac_sys_system in
3889 AIX*)
3890 exp_extra="\"\""
3891 if test $ac_sys_release -ge 5 -o \
3892 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3893 exp_extra="."
3895 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3896 Monterey64*)
3897 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3898 esac
3900 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3901 echo "${ECHO_T}$LINKCC" >&6; }
3903 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3904 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3905 # Check whether --enable-shared was given.
3906 if test "${enable_shared+set}" = set; then
3907 enableval=$enable_shared;
3911 if test -z "$enable_shared"
3912 then
3913 case $ac_sys_system in
3914 CYGWIN* | atheos*)
3915 enable_shared="yes";;
3917 enable_shared="no";;
3918 esac
3920 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3921 echo "${ECHO_T}$enable_shared" >&6; }
3923 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3924 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3925 # Check whether --enable-profiling was given.
3926 if test "${enable_profiling+set}" = set; then
3927 enableval=$enable_profiling; ac_save_cc="$CC"
3928 CC="$CC -pg"
3929 if test "$cross_compiling" = yes; then
3930 ac_enable_profiling="no"
3931 else
3932 cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h. */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 int main() { return 0; }
3939 _ACEOF
3940 rm -f conftest$ac_exeext
3941 if { (ac_try="$ac_link"
3942 case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3951 { (case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_try") 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 ac_enable_profiling="yes"
3961 else
3962 echo "$as_me: program exited with status $ac_status" >&5
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 ( exit $ac_status )
3967 ac_enable_profiling="no"
3969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3973 CC="$ac_save_cc"
3976 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3977 echo "${ECHO_T}$ac_enable_profiling" >&6; }
3979 case "$ac_enable_profiling" in
3980 "yes")
3981 BASECFLAGS="-pg $BASECFLAGS"
3982 LDFLAGS="-pg $LDFLAGS"
3984 esac
3986 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3987 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
3989 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3990 # library that we build, but we do not want to link against it (we
3991 # will find it with a -framework option). For this reason there is an
3992 # extra variable BLDLIBRARY against which Python and the extension
3993 # modules are linked, BLDLIBRARY. This is normally the same as
3994 # LDLIBRARY, but empty for MacOSX framework builds.
3995 if test "$enable_framework"
3996 then
3997 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3998 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3999 BLDLIBRARY=''
4000 else
4001 BLDLIBRARY='$(LDLIBRARY)'
4004 # Other platforms follow
4005 if test $enable_shared = "yes"; then
4007 cat >>confdefs.h <<\_ACEOF
4008 #define Py_ENABLE_SHARED 1
4009 _ACEOF
4011 case $ac_sys_system in
4012 CYGWIN*)
4013 LDLIBRARY='libpython$(VERSION).dll.a'
4014 DLLLIBRARY='libpython$(VERSION).dll'
4016 SunOS*)
4017 LDLIBRARY='libpython$(VERSION).so'
4018 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4019 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4020 INSTSONAME="$LDLIBRARY".$SOVERSION
4022 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4023 LDLIBRARY='libpython$(VERSION).so'
4024 BLDLIBRARY='-L. -lpython$(VERSION)'
4025 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4026 case $ac_sys_system in
4027 FreeBSD*)
4028 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4030 esac
4031 INSTSONAME="$LDLIBRARY".$SOVERSION
4033 hp*|HP*)
4034 case `uname -m` in
4035 ia64)
4036 LDLIBRARY='libpython$(VERSION).so'
4039 LDLIBRARY='libpython$(VERSION).sl'
4041 esac
4042 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4043 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4045 OSF*)
4046 LDLIBRARY='libpython$(VERSION).so'
4047 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4048 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4050 atheos*)
4051 LDLIBRARY='libpython$(VERSION).so'
4052 BLDLIBRARY='-L. -lpython$(VERSION)'
4053 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4055 esac
4056 else # shared is disabled
4057 case $ac_sys_system in
4058 CYGWIN*)
4059 BLDLIBRARY='$(LIBRARY)'
4060 LDLIBRARY='libpython$(VERSION).dll.a'
4062 esac
4065 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4066 echo "${ECHO_T}$LDLIBRARY" >&6; }
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4070 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4073 if test "${ac_cv_prog_RANLIB+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 if test -n "$RANLIB"; then
4077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4090 done
4091 done
4092 IFS=$as_save_IFS
4096 RANLIB=$ac_cv_prog_RANLIB
4097 if test -n "$RANLIB"; then
4098 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4099 echo "${ECHO_T}$RANLIB" >&6; }
4100 else
4101 { echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6; }
4107 if test -z "$ac_cv_prog_RANLIB"; then
4108 ac_ct_RANLIB=$RANLIB
4109 # Extract the first word of "ranlib", so it can be a program name with args.
4110 set dummy ranlib; ac_word=$2
4111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4113 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 if test -n "$ac_ct_RANLIB"; then
4117 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_ac_ct_RANLIB="ranlib"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4132 IFS=$as_save_IFS
4136 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4137 if test -n "$ac_ct_RANLIB"; then
4138 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4139 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4140 else
4141 { echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6; }
4145 if test "x$ac_ct_RANLIB" = x; then
4146 RANLIB=":"
4147 else
4148 case $cross_compiling:$ac_tool_warned in
4149 yes:)
4150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4151 whose name does not start with the host triplet. If you think this
4152 configuration is useful to you, please write to autoconf@gnu.org." >&5
4153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4154 whose name does not start with the host triplet. If you think this
4155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4156 ac_tool_warned=yes ;;
4157 esac
4158 RANLIB=$ac_ct_RANLIB
4160 else
4161 RANLIB="$ac_cv_prog_RANLIB"
4165 for ac_prog in ar aal
4167 # Extract the first word of "$ac_prog", so it can be a program name with args.
4168 set dummy $ac_prog; ac_word=$2
4169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4171 if test "${ac_cv_prog_AR+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 if test -n "$AR"; then
4175 ac_cv_prog_AR="$AR" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_AR="$ac_prog"
4185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 AR=$ac_cv_prog_AR
4195 if test -n "$AR"; then
4196 { echo "$as_me:$LINENO: result: $AR" >&5
4197 echo "${ECHO_T}$AR" >&6; }
4198 else
4199 { echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6; }
4204 test -n "$AR" && break
4205 done
4206 test -n "$AR" || AR="ar"
4210 # Extract the first word of "svnversion", so it can be a program name with args.
4211 set dummy svnversion; ac_word=$2
4212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4214 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 if test -n "$SVNVERSION"; then
4218 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_SVNVERSION="found"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4231 done
4232 done
4233 IFS=$as_save_IFS
4235 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4238 SVNVERSION=$ac_cv_prog_SVNVERSION
4239 if test -n "$SVNVERSION"; then
4240 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4241 echo "${ECHO_T}$SVNVERSION" >&6; }
4242 else
4243 { echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6; }
4248 if test $SVNVERSION = found
4249 then
4250 SVNVERSION="svnversion \$(srcdir)"
4251 else
4252 SVNVERSION="echo exported"
4255 case $MACHDEP in
4256 bsdos*|hp*|HP*)
4257 # install -d does not work on BSDI or HP-UX
4258 if test -z "$INSTALL"
4259 then
4260 INSTALL="${srcdir}/install-sh -c"
4262 esac
4263 ac_aux_dir=
4264 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4265 if test -f "$ac_dir/install-sh"; then
4266 ac_aux_dir=$ac_dir
4267 ac_install_sh="$ac_aux_dir/install-sh -c"
4268 break
4269 elif test -f "$ac_dir/install.sh"; then
4270 ac_aux_dir=$ac_dir
4271 ac_install_sh="$ac_aux_dir/install.sh -c"
4272 break
4273 elif test -f "$ac_dir/shtool"; then
4274 ac_aux_dir=$ac_dir
4275 ac_install_sh="$ac_aux_dir/shtool install -c"
4276 break
4278 done
4279 if test -z "$ac_aux_dir"; then
4280 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4281 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4282 { (exit 1); exit 1; }; }
4285 # These three variables are undocumented and unsupported,
4286 # and are intended to be withdrawn in a future Autoconf release.
4287 # They can cause serious problems if a builder's source tree is in a directory
4288 # whose full name contains unusual characters.
4289 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4290 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4291 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4294 # Find a good install program. We prefer a C program (faster),
4295 # so one script is as good as another. But avoid the broken or
4296 # incompatible versions:
4297 # SysV /etc/install, /usr/sbin/install
4298 # SunOS /usr/etc/install
4299 # IRIX /sbin/install
4300 # AIX /bin/install
4301 # AmigaOS /C/install, which installs bootblocks on floppy discs
4302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4305 # OS/2's system install, which has a completely different semantic
4306 # ./install, which can be erroneously created by make from ./install.sh.
4307 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4308 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4309 if test -z "$INSTALL"; then
4310 if test "${ac_cv_path_install+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 # Account for people who put trailing slashes in PATH elements.
4319 case $as_dir/ in
4320 ./ | .// | /cC/* | \
4321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4322 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4323 /usr/ucb/* ) ;;
4325 # OSF1 and SCO ODT 3.0 have their own names for install.
4326 # Don't use installbsd from OSF since it installs stuff as root
4327 # by default.
4328 for ac_prog in ginstall scoinst install; do
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4331 if test $ac_prog = install &&
4332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4333 # AIX install. It has an incompatible calling convention.
4335 elif test $ac_prog = install &&
4336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4337 # program-specific install script used by HP pwplus--don't use.
4339 else
4340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4341 break 3
4344 done
4345 done
4347 esac
4348 done
4349 IFS=$as_save_IFS
4353 if test "${ac_cv_path_install+set}" = set; then
4354 INSTALL=$ac_cv_path_install
4355 else
4356 # As a last resort, use the slow shell script. Don't cache a
4357 # value for INSTALL within a source directory, because that will
4358 # break other packages using the cache if that directory is
4359 # removed, or if the value is a relative name.
4360 INSTALL=$ac_install_sh
4363 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4364 echo "${ECHO_T}$INSTALL" >&6; }
4366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4367 # It thinks the first close brace ends the variable substitution.
4368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4375 # Not every filesystem supports hard links
4377 if test -z "$LN" ; then
4378 case $ac_sys_system in
4379 CYGWIN*) LN="ln -s";;
4380 atheos*) LN="ln -s";;
4381 *) LN=ln;;
4382 esac
4385 # Check for --with-pydebug
4386 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4387 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4389 # Check whether --with-pydebug was given.
4390 if test "${with_pydebug+set}" = set; then
4391 withval=$with_pydebug;
4392 if test "$withval" != no
4393 then
4395 cat >>confdefs.h <<\_ACEOF
4396 #define Py_DEBUG 1
4397 _ACEOF
4399 { echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6; };
4401 Py_DEBUG='true'
4402 else { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4405 else
4406 { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4411 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4412 # merged with this chunk of code?
4414 # Optimizer/debugger flags
4415 # ------------------------
4416 # (The following bit of code is complicated enough - please keep things
4417 # indented properly. Just pretend you're editing Python code. ;-)
4419 # There are two parallel sets of case statements below, one that checks to
4420 # see if OPT was set and one that does BASECFLAGS setting based upon
4421 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4422 # user set OPT.
4424 # tweak OPT based on compiler and platform, only if the user didn't set
4425 # it on the command line
4427 if test -z "$OPT"
4428 then
4429 case $GCC in
4430 yes)
4431 if test "$CC" != 'g++' ; then
4432 STRICT_PROTO="-Wstrict-prototypes"
4434 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4435 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4436 WRAP="-fwrapv"
4438 case $ac_cv_prog_cc_g in
4439 yes)
4440 if test "$Py_DEBUG" = 'true' ; then
4441 # Optimization messes up debuggers, so turn it off for
4442 # debug builds.
4443 OPT="-g -Wall $STRICT_PROTO"
4444 else
4445 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4449 OPT="-O3 -Wall $STRICT_PROTO"
4451 esac
4452 case $ac_sys_system in
4453 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4455 esac
4459 OPT="-O"
4461 esac
4463 # The current (beta) Monterey compiler dies with optimizations
4464 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4465 case $ac_sys_system in
4466 Monterey*)
4467 OPT=""
4469 esac
4474 # tweak BASECFLAGS based on compiler and platform
4475 case $GCC in
4476 yes)
4477 # Python violates C99 rules, by casting between incompatible
4478 # pointer types. GCC may generate bad code as a result of that,
4479 # so use -fno-strict-aliasing if supported.
4480 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4481 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4482 ac_save_cc="$CC"
4483 CC="$CC -fno-strict-aliasing"
4484 if test "$cross_compiling" = yes; then
4485 ac_cv_no_strict_aliasing_ok=no
4486 else
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 int main() { return 0; }
4494 _ACEOF
4495 rm -f conftest$ac_exeext
4496 if { (ac_try="$ac_link"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_link") 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4506 { (case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_no_strict_aliasing_ok=yes
4516 else
4517 echo "$as_me: program exited with status $ac_status" >&5
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ( exit $ac_status )
4522 ac_cv_no_strict_aliasing_ok=no
4524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4528 CC="$ac_save_cc"
4529 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4530 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4531 if test $ac_cv_no_strict_aliasing_ok = yes
4532 then
4533 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4536 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4537 # support. Without this, treatment of subnormals doesn't follow
4538 # the standard.
4539 case $ac_sys_machine in
4540 alpha*)
4541 BASECFLAGS="$BASECFLAGS -mieee"
4543 esac
4545 case $ac_sys_system in
4546 SCO_SV*)
4547 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4549 # is there any other compiler on Darwin besides gcc?
4550 Darwin*)
4551 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4552 # used to be here, but non-Apple gcc doesn't accept them.
4553 if test "${enable_universalsdk}"; then
4554 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4558 OSF*)
4559 BASECFLAGS="$BASECFLAGS -mieee"
4561 esac
4565 case $ac_sys_system in
4566 OpenUNIX*|UnixWare*)
4567 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4569 OSF*)
4570 BASECFLAGS="$BASECFLAGS -ieee -std"
4572 SCO_SV*)
4573 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4575 esac
4577 esac
4579 if test "$Py_DEBUG" = 'true'; then
4581 else
4582 OPT="-DNDEBUG $OPT"
4585 if test "$ac_arch_flags"
4586 then
4587 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4590 # disable check for icc since it seems to pass, but generates a warning
4591 if test "$CC" = icc
4592 then
4593 ac_cv_opt_olimit_ok=no
4596 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4597 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4598 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 ac_save_cc="$CC"
4602 CC="$CC -OPT:Olimit=0"
4603 if test "$cross_compiling" = yes; then
4604 ac_cv_opt_olimit_ok=no
4605 else
4606 cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h. */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 int main() { return 0; }
4613 _ACEOF
4614 rm -f conftest$ac_exeext
4615 if { (ac_try="$ac_link"
4616 case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619 esac
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621 (eval "$ac_link") 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4625 { (case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_try") 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_cv_opt_olimit_ok=yes
4635 else
4636 echo "$as_me: program exited with status $ac_status" >&5
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 ( exit $ac_status )
4641 ac_cv_opt_olimit_ok=no
4643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4647 CC="$ac_save_cc"
4650 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4651 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4652 if test $ac_cv_opt_olimit_ok = yes; then
4653 case $ac_sys_system in
4654 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4655 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4656 # environment?
4657 Darwin*)
4660 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4662 esac
4663 else
4664 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4665 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4666 if test "${ac_cv_olimit_ok+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 ac_save_cc="$CC"
4670 CC="$CC -Olimit 1500"
4671 if test "$cross_compiling" = yes; then
4672 ac_cv_olimit_ok=no
4673 else
4674 cat >conftest.$ac_ext <<_ACEOF
4675 /* confdefs.h. */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4680 int main() { return 0; }
4681 _ACEOF
4682 rm -f conftest$ac_exeext
4683 if { (ac_try="$ac_link"
4684 case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_link") 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4693 { (case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_try") 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_cv_olimit_ok=yes
4703 else
4704 echo "$as_me: program exited with status $ac_status" >&5
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 ( exit $ac_status )
4709 ac_cv_olimit_ok=no
4711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4715 CC="$ac_save_cc"
4718 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4719 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4720 if test $ac_cv_olimit_ok = yes; then
4721 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4725 # Check whether GCC supports PyArg_ParseTuple format
4726 if test "$GCC" = "yes"
4727 then
4728 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4729 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4730 save_CFLAGS=$CFLAGS
4731 CFLAGS="$CFLAGS -Werror"
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4739 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4742 main ()
4746 return 0;
4748 _ACEOF
4749 rm -f conftest.$ac_objext
4750 if { (ac_try="$ac_compile"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756 (eval "$ac_compile") 2>conftest.er1
4757 ac_status=$?
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } && {
4763 test -z "$ac_c_werror_flag" ||
4764 test ! -s conftest.err
4765 } && test -s conftest.$ac_objext; then
4767 cat >>confdefs.h <<\_ACEOF
4768 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4769 _ACEOF
4771 { echo "$as_me:$LINENO: result: yes" >&5
4772 echo "${ECHO_T}yes" >&6; }
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 { echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6; }
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 CFLAGS=$save_CFLAGS
4786 # On some compilers, pthreads are available without further options
4787 # (e.g. MacOS X). On some of these systems, the compiler will not
4788 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4789 # So we have to see first whether pthreads are available without
4790 # options before we can check whether -Kpthread improves anything.
4791 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4792 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4793 if test "${ac_cv_pthread_is_default+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796 if test "$cross_compiling" = yes; then
4797 ac_cv_pthread_is_default=no
4798 else
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4806 #include <pthread.h>
4808 void* routine(void* p){return NULL;}
4810 int main(){
4811 pthread_t p;
4812 if(pthread_create(&p,NULL,routine,NULL)!=0)
4813 return 1;
4814 (void)pthread_detach(p);
4815 return 0;
4818 _ACEOF
4819 rm -f conftest$ac_exeext
4820 if { (ac_try="$ac_link"
4821 case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824 esac
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_link") 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4830 { (case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_try") 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4840 ac_cv_pthread_is_default=yes
4841 ac_cv_kthread=no
4842 ac_cv_pthread=no
4844 else
4845 echo "$as_me: program exited with status $ac_status" >&5
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 ( exit $ac_status )
4850 ac_cv_pthread_is_default=no
4852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4859 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4860 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4863 if test $ac_cv_pthread_is_default = yes
4864 then
4865 ac_cv_kpthread=no
4866 else
4867 # -Kpthread, if available, provides the right #defines
4868 # and linker options to make pthread_create available
4869 # Some compilers won't report that they do not support -Kpthread,
4870 # so we need to run a program to see whether it really made the
4871 # function available.
4872 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4873 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4874 if test "${ac_cv_kpthread+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 ac_save_cc="$CC"
4878 CC="$CC -Kpthread"
4879 if test "$cross_compiling" = yes; then
4880 ac_cv_kpthread=no
4881 else
4882 cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h. */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4889 #include <pthread.h>
4891 void* routine(void* p){return NULL;}
4893 int main(){
4894 pthread_t p;
4895 if(pthread_create(&p,NULL,routine,NULL)!=0)
4896 return 1;
4897 (void)pthread_detach(p);
4898 return 0;
4901 _ACEOF
4902 rm -f conftest$ac_exeext
4903 if { (ac_try="$ac_link"
4904 case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907 esac
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_link") 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4913 { (case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916 esac
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_try") 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_kpthread=yes
4923 else
4924 echo "$as_me: program exited with status $ac_status" >&5
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 ( exit $ac_status )
4929 ac_cv_kpthread=no
4931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4935 CC="$ac_save_cc"
4938 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4939 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4942 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4943 then
4944 # -Kthread, if available, provides the right #defines
4945 # and linker options to make pthread_create available
4946 # Some compilers won't report that they do not support -Kthread,
4947 # so we need to run a program to see whether it really made the
4948 # function available.
4949 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4950 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4951 if test "${ac_cv_kthread+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954 ac_save_cc="$CC"
4955 CC="$CC -Kthread"
4956 if test "$cross_compiling" = yes; then
4957 ac_cv_kthread=no
4958 else
4959 cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h. */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4966 #include <pthread.h>
4968 void* routine(void* p){return NULL;}
4970 int main(){
4971 pthread_t p;
4972 if(pthread_create(&p,NULL,routine,NULL)!=0)
4973 return 1;
4974 (void)pthread_detach(p);
4975 return 0;
4978 _ACEOF
4979 rm -f conftest$ac_exeext
4980 if { (ac_try="$ac_link"
4981 case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_link") 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4990 { (case "(($ac_try" in
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993 esac
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_try") 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_cv_kthread=yes
5000 else
5001 echo "$as_me: program exited with status $ac_status" >&5
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ( exit $ac_status )
5006 ac_cv_kthread=no
5008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5012 CC="$ac_save_cc"
5015 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5016 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5019 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5020 then
5021 # -pthread, if available, provides the right #defines
5022 # and linker options to make pthread_create available
5023 # Some compilers won't report that they do not support -pthread,
5024 # so we need to run a program to see whether it really made the
5025 # function available.
5026 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5027 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5028 if test "${ac_cv_thread+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 ac_save_cc="$CC"
5032 CC="$CC -pthread"
5033 if test "$cross_compiling" = yes; then
5034 ac_cv_pthread=no
5035 else
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5043 #include <pthread.h>
5045 void* routine(void* p){return NULL;}
5047 int main(){
5048 pthread_t p;
5049 if(pthread_create(&p,NULL,routine,NULL)!=0)
5050 return 1;
5051 (void)pthread_detach(p);
5052 return 0;
5055 _ACEOF
5056 rm -f conftest$ac_exeext
5057 if { (ac_try="$ac_link"
5058 case "(($ac_try" in
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5061 esac
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_link") 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5067 { (case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072 (eval "$ac_try") 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_cv_pthread=yes
5077 else
5078 echo "$as_me: program exited with status $ac_status" >&5
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 ( exit $ac_status )
5083 ac_cv_pthread=no
5085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5089 CC="$ac_save_cc"
5092 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5093 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5096 # If we have set a CC compiler flag for thread support then
5097 # check if it works for CXX, too.
5098 ac_cv_cxx_thread=no
5099 if test ! -z "$CXX"
5100 then
5101 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5102 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5103 ac_save_cxx="$CXX"
5105 if test "$ac_cv_kpthread" = "yes"
5106 then
5107 CXX="$CXX -Kpthread"
5108 ac_cv_cxx_thread=yes
5109 elif test "$ac_cv_kthread" = "yes"
5110 then
5111 CXX="$CXX -Kthread"
5112 ac_cv_cxx_thread=yes
5113 elif test "$ac_cv_pthread" = "yes"
5114 then
5115 CXX="$CXX -pthread"
5116 ac_cv_cxx_thread=yes
5119 if test $ac_cv_cxx_thread = yes
5120 then
5121 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5122 $CXX -c conftest.$ac_ext 2>&5
5123 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5124 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5125 then
5126 ac_cv_cxx_thread=yes
5127 else
5128 ac_cv_cxx_thread=no
5130 rm -fr conftest*
5132 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5133 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5135 CXX="$ac_save_cxx"
5138 # checks for header files
5139 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5140 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5141 if test "${ac_cv_header_stdc+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 #include <stdlib.h>
5151 #include <stdarg.h>
5152 #include <string.h>
5153 #include <float.h>
5156 main ()
5160 return 0;
5162 _ACEOF
5163 rm -f conftest.$ac_objext
5164 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } && {
5177 test -z "$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 } && test -s conftest.$ac_objext; then
5180 ac_cv_header_stdc=yes
5181 else
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 ac_cv_header_stdc=no
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190 if test $ac_cv_header_stdc = yes; then
5191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5192 cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h. */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5198 #include <string.h>
5200 _ACEOF
5201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5202 $EGREP "memchr" >/dev/null 2>&1; then
5204 else
5205 ac_cv_header_stdc=no
5207 rm -f conftest*
5211 if test $ac_cv_header_stdc = yes; then
5212 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h. */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 #include <stdlib.h>
5221 _ACEOF
5222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5223 $EGREP "free" >/dev/null 2>&1; then
5225 else
5226 ac_cv_header_stdc=no
5228 rm -f conftest*
5232 if test $ac_cv_header_stdc = yes; then
5233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5234 if test "$cross_compiling" = yes; then
5236 else
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #include <ctype.h>
5244 #include <stdlib.h>
5245 #if ((' ' & 0x0FF) == 0x020)
5246 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5247 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5248 #else
5249 # define ISLOWER(c) \
5250 (('a' <= (c) && (c) <= 'i') \
5251 || ('j' <= (c) && (c) <= 'r') \
5252 || ('s' <= (c) && (c) <= 'z'))
5253 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5254 #endif
5256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5258 main ()
5260 int i;
5261 for (i = 0; i < 256; i++)
5262 if (XOR (islower (i), ISLOWER (i))
5263 || toupper (i) != TOUPPER (i))
5264 return 2;
5265 return 0;
5267 _ACEOF
5268 rm -f conftest$ac_exeext
5269 if { (ac_try="$ac_link"
5270 case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5273 esac
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_link") 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5279 { (case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282 esac
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284 (eval "$ac_try") 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5289 else
5290 echo "$as_me: program exited with status $ac_status" >&5
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5294 ( exit $ac_status )
5295 ac_cv_header_stdc=no
5297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5303 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5304 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5305 if test $ac_cv_header_stdc = yes; then
5307 cat >>confdefs.h <<\_ACEOF
5308 #define STDC_HEADERS 1
5309 _ACEOF
5313 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5323 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5324 inttypes.h stdint.h unistd.h
5326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 $ac_includes_default
5340 #include <$ac_header>
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (ac_try="$ac_compile"
5344 case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347 esac
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_objext; then
5359 eval "$as_ac_Header=yes"
5360 else
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 eval "$as_ac_Header=no"
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369 ac_res=`eval echo '${'$as_ac_Header'}'`
5370 { echo "$as_me:$LINENO: result: $ac_res" >&5
5371 echo "${ECHO_T}$ac_res" >&6; }
5372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5373 cat >>confdefs.h <<_ACEOF
5374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5375 _ACEOF
5379 done
5435 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5436 fcntl.h grp.h \
5437 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5438 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5439 unistd.h utime.h \
5440 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5441 sys/lock.h sys/mkdev.h sys/modem.h \
5442 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5443 sys/time.h \
5444 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5445 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5446 bluetooth/bluetooth.h linux/tipc.h
5448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 ac_res=`eval echo '${'$as_ac_Header'}'`
5456 { echo "$as_me:$LINENO: result: $ac_res" >&5
5457 echo "${ECHO_T}$ac_res" >&6; }
5458 else
5459 # Is the header compilable?
5460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5462 cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h. */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 $ac_includes_default
5469 #include <$ac_header>
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5473 case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476 esac
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
5488 ac_header_compiler=yes
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ac_header_compiler=no
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5498 echo "${ECHO_T}$ac_header_compiler" >&6; }
5500 # Is the header present?
5501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h. */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 #include <$ac_header>
5510 _ACEOF
5511 if { (ac_try="$ac_cpp conftest.$ac_ext"
5512 case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } >/dev/null && {
5524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 }; then
5527 ac_header_preproc=yes
5528 else
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 ac_header_preproc=no
5535 rm -f conftest.err conftest.$ac_ext
5536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5537 echo "${ECHO_T}$ac_header_preproc" >&6; }
5539 # So? What about this header?
5540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5541 yes:no: )
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5546 ac_header_preproc=yes
5548 no:yes:* )
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5561 ( cat <<\_ASBOX
5562 ## ------------------------------------------------ ##
5563 ## Report this to http://www.python.org/python-bugs ##
5564 ## ------------------------------------------------ ##
5565 _ASBOX
5566 ) | sed "s/^/$as_me: WARNING: /" >&2
5568 esac
5569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574 eval "$as_ac_Header=\$ac_header_preproc"
5576 ac_res=`eval echo '${'$as_ac_Header'}'`
5577 { echo "$as_me:$LINENO: result: $ac_res" >&5
5578 echo "${ECHO_T}$ac_res" >&6; }
5581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5582 cat >>confdefs.h <<_ACEOF
5583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5584 _ACEOF
5588 done
5595 ac_header_dirent=no
5596 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5597 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5598 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5599 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 cat >conftest.$ac_ext <<_ACEOF
5604 /* confdefs.h. */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 #include <sys/types.h>
5610 #include <$ac_hdr>
5613 main ()
5615 if ((DIR *) 0)
5616 return 0;
5618 return 0;
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5623 case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest.$ac_objext; then
5638 eval "$as_ac_Header=yes"
5639 else
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 eval "$as_ac_Header=no"
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 ac_res=`eval echo '${'$as_ac_Header'}'`
5649 { echo "$as_me:$LINENO: result: $ac_res" >&5
5650 echo "${ECHO_T}$ac_res" >&6; }
5651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5652 cat >>confdefs.h <<_ACEOF
5653 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5654 _ACEOF
5656 ac_header_dirent=$ac_hdr; break
5659 done
5660 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5661 if test $ac_header_dirent = dirent.h; then
5662 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5664 if test "${ac_cv_search_opendir+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 ac_func_search_save_LIBS=$LIBS
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5675 /* Override any GCC internal prototype to avoid an error.
5676 Use char because int might match the return type of a GCC
5677 builtin and then its argument prototype would still apply. */
5678 #ifdef __cplusplus
5679 extern "C"
5680 #endif
5681 char opendir ();
5683 main ()
5685 return opendir ();
5687 return 0;
5689 _ACEOF
5690 for ac_lib in '' dir; do
5691 if test -z "$ac_lib"; then
5692 ac_res="none required"
5693 else
5694 ac_res=-l$ac_lib
5695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5697 rm -f conftest.$ac_objext conftest$ac_exeext
5698 if { (ac_try="$ac_link"
5699 case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_link") 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } && {
5711 test -z "$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 } && test -s conftest$ac_exeext &&
5714 $as_test_x conftest$ac_exeext; then
5715 ac_cv_search_opendir=$ac_res
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5724 conftest$ac_exeext
5725 if test "${ac_cv_search_opendir+set}" = set; then
5726 break
5728 done
5729 if test "${ac_cv_search_opendir+set}" = set; then
5731 else
5732 ac_cv_search_opendir=no
5734 rm conftest.$ac_ext
5735 LIBS=$ac_func_search_save_LIBS
5737 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5738 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5739 ac_res=$ac_cv_search_opendir
5740 if test "$ac_res" != no; then
5741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5745 else
5746 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5747 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5748 if test "${ac_cv_search_opendir+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751 ac_func_search_save_LIBS=$LIBS
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5759 /* Override any GCC internal prototype to avoid an error.
5760 Use char because int might match the return type of a GCC
5761 builtin and then its argument prototype would still apply. */
5762 #ifdef __cplusplus
5763 extern "C"
5764 #endif
5765 char opendir ();
5767 main ()
5769 return opendir ();
5771 return 0;
5773 _ACEOF
5774 for ac_lib in '' x; do
5775 if test -z "$ac_lib"; then
5776 ac_res="none required"
5777 else
5778 ac_res=-l$ac_lib
5779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (ac_try="$ac_link"
5783 case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786 esac
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_link") 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } && {
5795 test -z "$ac_c_werror_flag" ||
5796 test ! -s conftest.err
5797 } && test -s conftest$ac_exeext &&
5798 $as_test_x conftest$ac_exeext; then
5799 ac_cv_search_opendir=$ac_res
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5808 conftest$ac_exeext
5809 if test "${ac_cv_search_opendir+set}" = set; then
5810 break
5812 done
5813 if test "${ac_cv_search_opendir+set}" = set; then
5815 else
5816 ac_cv_search_opendir=no
5818 rm conftest.$ac_ext
5819 LIBS=$ac_func_search_save_LIBS
5821 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5822 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5823 ac_res=$ac_cv_search_opendir
5824 if test "$ac_res" != no; then
5825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5831 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5832 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5833 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836 cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h. */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 #include <sys/types.h>
5844 main ()
5846 return makedev(0, 0);
5848 return 0;
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (ac_try="$ac_link"
5853 case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_link") 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest$ac_exeext &&
5868 $as_test_x conftest$ac_exeext; then
5869 ac_cv_header_sys_types_h_makedev=yes
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 ac_cv_header_sys_types_h_makedev=no
5877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5878 conftest$ac_exeext conftest.$ac_ext
5881 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5882 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5884 if test $ac_cv_header_sys_types_h_makedev = no; then
5885 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5886 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5887 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5888 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5892 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5893 else
5894 # Is the header compilable?
5895 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5896 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5897 cat >conftest.$ac_ext <<_ACEOF
5898 /* confdefs.h. */
5899 _ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 $ac_includes_default
5904 #include <sys/mkdev.h>
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.$ac_objext; then
5923 ac_header_compiler=yes
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 ac_header_compiler=no
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5933 echo "${ECHO_T}$ac_header_compiler" >&6; }
5935 # Is the header present?
5936 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5937 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <sys/mkdev.h>
5945 _ACEOF
5946 if { (ac_try="$ac_cpp conftest.$ac_ext"
5947 case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } >/dev/null && {
5959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5961 }; then
5962 ac_header_preproc=yes
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_header_preproc=no
5970 rm -f conftest.err conftest.$ac_ext
5971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5972 echo "${ECHO_T}$ac_header_preproc" >&6; }
5974 # So? What about this header?
5975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5976 yes:no: )
5977 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5978 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5979 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5980 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5981 ac_header_preproc=yes
5983 no:yes:* )
5984 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5985 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5986 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5987 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5988 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5989 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5990 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5991 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5992 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5993 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5994 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5995 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5996 ( cat <<\_ASBOX
5997 ## ------------------------------------------------ ##
5998 ## Report this to http://www.python.org/python-bugs ##
5999 ## ------------------------------------------------ ##
6000 _ASBOX
6001 ) | sed "s/^/$as_me: WARNING: /" >&2
6003 esac
6004 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6005 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6006 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6011 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6012 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6015 if test $ac_cv_header_sys_mkdev_h = yes; then
6017 cat >>confdefs.h <<\_ACEOF
6018 #define MAJOR_IN_MKDEV 1
6019 _ACEOF
6025 if test $ac_cv_header_sys_mkdev_h = no; then
6026 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6027 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6028 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6029 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6033 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6034 else
6035 # Is the header compilable?
6036 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6037 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 $ac_includes_default
6045 #include <sys/sysmacros.h>
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6049 case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compile") 2>conftest.er1
6055 ac_status=$?
6056 grep -v '^ *+' conftest.er1 >conftest.err
6057 rm -f conftest.er1
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } && {
6061 test -z "$ac_c_werror_flag" ||
6062 test ! -s conftest.err
6063 } && test -s conftest.$ac_objext; then
6064 ac_header_compiler=yes
6065 else
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069 ac_header_compiler=no
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6074 echo "${ECHO_T}$ac_header_compiler" >&6; }
6076 # Is the header present?
6077 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6078 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <sys/sysmacros.h>
6086 _ACEOF
6087 if { (ac_try="$ac_cpp conftest.$ac_ext"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } >/dev/null && {
6100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 }; then
6103 ac_header_preproc=yes
6104 else
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_header_preproc=no
6111 rm -f conftest.err conftest.$ac_ext
6112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6113 echo "${ECHO_T}$ac_header_preproc" >&6; }
6115 # So? What about this header?
6116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6117 yes:no: )
6118 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6119 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6120 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6121 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6122 ac_header_preproc=yes
6124 no:yes:* )
6125 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6126 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6128 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6130 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6132 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6134 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6136 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6137 ( cat <<\_ASBOX
6138 ## ------------------------------------------------ ##
6139 ## Report this to http://www.python.org/python-bugs ##
6140 ## ------------------------------------------------ ##
6141 _ASBOX
6142 ) | sed "s/^/$as_me: WARNING: /" >&2
6144 esac
6145 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6146 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6147 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6152 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6153 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6156 if test $ac_cv_header_sys_sysmacros_h = yes; then
6158 cat >>confdefs.h <<\_ACEOF
6159 #define MAJOR_IN_SYSMACROS 1
6160 _ACEOF
6169 # On Solaris, term.h requires curses.h
6171 for ac_header in term.h
6173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h. */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6186 #ifdef HAVE_CURSES_H
6187 #include <curses.h>
6188 #endif
6191 #include <$ac_header>
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (ac_try="$ac_compile"
6195 case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_compile") 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } && {
6207 test -z "$ac_c_werror_flag" ||
6208 test ! -s conftest.err
6209 } && test -s conftest.$ac_objext; then
6210 eval "$as_ac_Header=yes"
6211 else
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 eval "$as_ac_Header=no"
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 ac_res=`eval echo '${'$as_ac_Header'}'`
6221 { echo "$as_me:$LINENO: result: $ac_res" >&5
6222 echo "${ECHO_T}$ac_res" >&6; }
6223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6224 cat >>confdefs.h <<_ACEOF
6225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226 _ACEOF
6230 done
6233 # On Linux, netlink.h requires asm/types.h
6235 for ac_header in linux/netlink.h
6237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6250 #ifdef HAVE_ASM_TYPES_H
6251 #include <asm/types.h>
6252 #endif
6253 #ifdef HAVE_SYS_SOCKET_H
6254 #include <sys/socket.h>
6255 #endif
6258 #include <$ac_header>
6259 _ACEOF
6260 rm -f conftest.$ac_objext
6261 if { (ac_try="$ac_compile"
6262 case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_compile") 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && {
6274 test -z "$ac_c_werror_flag" ||
6275 test ! -s conftest.err
6276 } && test -s conftest.$ac_objext; then
6277 eval "$as_ac_Header=yes"
6278 else
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 eval "$as_ac_Header=no"
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 ac_res=`eval echo '${'$as_ac_Header'}'`
6288 { echo "$as_me:$LINENO: result: $ac_res" >&5
6289 echo "${ECHO_T}$ac_res" >&6; }
6290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6291 cat >>confdefs.h <<_ACEOF
6292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6293 _ACEOF
6297 done
6300 # checks for typedefs
6301 was_it_defined=no
6302 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6303 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <time.h>
6312 _ACEOF
6313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6314 $EGREP "clock_t" >/dev/null 2>&1; then
6315 was_it_defined=yes
6316 else
6319 cat >>confdefs.h <<\_ACEOF
6320 #define clock_t long
6321 _ACEOF
6325 rm -f conftest*
6327 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6328 echo "${ECHO_T}$was_it_defined" >&6; }
6330 # Check whether using makedev requires defining _OSF_SOURCE
6331 { echo "$as_me:$LINENO: checking for makedev" >&5
6332 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 #include <sys/types.h>
6341 main ()
6343 makedev(0, 0)
6345 return 0;
6347 _ACEOF
6348 rm -f conftest.$ac_objext conftest$ac_exeext
6349 if { (ac_try="$ac_link"
6350 case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353 esac
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_link") 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && {
6362 test -z "$ac_c_werror_flag" ||
6363 test ! -s conftest.err
6364 } && test -s conftest$ac_exeext &&
6365 $as_test_x conftest$ac_exeext; then
6366 ac_cv_has_makedev=yes
6367 else
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 ac_cv_has_makedev=no
6374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6375 conftest$ac_exeext conftest.$ac_ext
6376 if test "$ac_cv_has_makedev" = "no"; then
6377 # we didn't link, try if _OSF_SOURCE will allow us to link
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6385 #define _OSF_SOURCE 1
6386 #include <sys/types.h>
6389 main ()
6391 makedev(0, 0)
6393 return 0;
6395 _ACEOF
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (ac_try="$ac_link"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_link") 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } && {
6410 test -z "$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6412 } && test -s conftest$ac_exeext &&
6413 $as_test_x conftest$ac_exeext; then
6414 ac_cv_has_makedev=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_cv_has_makedev=no
6422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6423 conftest$ac_exeext conftest.$ac_ext
6424 if test "$ac_cv_has_makedev" = "yes"; then
6426 cat >>confdefs.h <<\_ACEOF
6427 #define _OSF_SOURCE 1
6428 _ACEOF
6432 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6433 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6434 if test "$ac_cv_has_makedev" = "yes"; then
6436 cat >>confdefs.h <<\_ACEOF
6437 #define HAVE_MAKEDEV 1
6438 _ACEOF
6442 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6443 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6444 # defined, but the compiler does not support pragma redefine_extname,
6445 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6446 # structures (such as rlimit64) without declaring them. As a
6447 # work-around, disable LFS on such configurations
6449 use_lfs=yes
6450 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6451 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6459 #define _LARGEFILE_SOURCE 1
6460 #define _FILE_OFFSET_BITS 64
6461 #include <sys/resource.h>
6464 main ()
6466 struct rlimit foo;
6468 return 0;
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (ac_try="$ac_compile"
6473 case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476 esac
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_compile") 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest.$ac_objext; then
6488 sol_lfs_bug=no
6489 else
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 sol_lfs_bug=yes
6496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6498 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6499 if test "$sol_lfs_bug" = "yes"; then
6500 use_lfs=no
6503 if test "$use_lfs" = "yes"; then
6504 # Two defines needed to enable largefile support on various platforms
6505 # These may affect some typedefs
6507 cat >>confdefs.h <<\_ACEOF
6508 #define _LARGEFILE_SOURCE 1
6509 _ACEOF
6512 cat >>confdefs.h <<\_ACEOF
6513 #define _FILE_OFFSET_BITS 64
6514 _ACEOF
6518 # Add some code to confdefs.h so that the test for off_t works on SCO
6519 cat >> confdefs.h <<\EOF
6520 #if defined(SCO_DS)
6521 #undef _OFF_T
6522 #endif
6525 # Type availability checks
6526 { echo "$as_me:$LINENO: checking for mode_t" >&5
6527 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6528 if test "${ac_cv_type_mode_t+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 typedef mode_t ac__type_new_;
6540 main ()
6542 if ((ac__type_new_ *) 0)
6543 return 0;
6544 if (sizeof (ac__type_new_))
6545 return 0;
6547 return 0;
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (ac_try="$ac_compile"
6552 case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555 esac
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_compile") 2>conftest.er1
6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } && {
6564 test -z "$ac_c_werror_flag" ||
6565 test ! -s conftest.err
6566 } && test -s conftest.$ac_objext; then
6567 ac_cv_type_mode_t=yes
6568 else
6569 echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6572 ac_cv_type_mode_t=no
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6578 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6579 if test $ac_cv_type_mode_t = yes; then
6581 else
6583 cat >>confdefs.h <<_ACEOF
6584 #define mode_t int
6585 _ACEOF
6589 { echo "$as_me:$LINENO: checking for off_t" >&5
6590 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6591 if test "${ac_cv_type_off_t+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 cat >conftest.$ac_ext <<_ACEOF
6595 /* confdefs.h. */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 $ac_includes_default
6601 typedef off_t ac__type_new_;
6603 main ()
6605 if ((ac__type_new_ *) 0)
6606 return 0;
6607 if (sizeof (ac__type_new_))
6608 return 0;
6610 return 0;
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (ac_try="$ac_compile"
6615 case "(($ac_try" in
6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6618 esac
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_compile") 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && {
6627 test -z "$ac_c_werror_flag" ||
6628 test ! -s conftest.err
6629 } && test -s conftest.$ac_objext; then
6630 ac_cv_type_off_t=yes
6631 else
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6635 ac_cv_type_off_t=no
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6641 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6642 if test $ac_cv_type_off_t = yes; then
6644 else
6646 cat >>confdefs.h <<_ACEOF
6647 #define off_t long int
6648 _ACEOF
6652 { echo "$as_me:$LINENO: checking for pid_t" >&5
6653 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6654 if test "${ac_cv_type_pid_t+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 $ac_includes_default
6664 typedef pid_t ac__type_new_;
6666 main ()
6668 if ((ac__type_new_ *) 0)
6669 return 0;
6670 if (sizeof (ac__type_new_))
6671 return 0;
6673 return 0;
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (ac_try="$ac_compile"
6678 case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6681 esac
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_compile") 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest.$ac_objext; then
6693 ac_cv_type_pid_t=yes
6694 else
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6698 ac_cv_type_pid_t=no
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6704 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6705 if test $ac_cv_type_pid_t = yes; then
6707 else
6709 cat >>confdefs.h <<_ACEOF
6710 #define pid_t int
6711 _ACEOF
6715 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6716 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6717 if test "${ac_cv_type_signal+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720 cat >conftest.$ac_ext <<_ACEOF
6721 /* confdefs.h. */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6726 #include <sys/types.h>
6727 #include <signal.h>
6730 main ()
6732 return *(signal (0, 0)) (0) == 1;
6734 return 0;
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (ac_try="$ac_compile"
6739 case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_compile") 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } && {
6751 test -z "$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6753 } && test -s conftest.$ac_objext; then
6754 ac_cv_type_signal=int
6755 else
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6759 ac_cv_type_signal=void
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6765 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6767 cat >>confdefs.h <<_ACEOF
6768 #define RETSIGTYPE $ac_cv_type_signal
6769 _ACEOF
6772 { echo "$as_me:$LINENO: checking for size_t" >&5
6773 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6774 if test "${ac_cv_type_size_t+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777 cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h. */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 $ac_includes_default
6784 typedef size_t ac__type_new_;
6786 main ()
6788 if ((ac__type_new_ *) 0)
6789 return 0;
6790 if (sizeof (ac__type_new_))
6791 return 0;
6793 return 0;
6795 _ACEOF
6796 rm -f conftest.$ac_objext
6797 if { (ac_try="$ac_compile"
6798 case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6801 esac
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803 (eval "$ac_compile") 2>conftest.er1
6804 ac_status=$?
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } && {
6810 test -z "$ac_c_werror_flag" ||
6811 test ! -s conftest.err
6812 } && test -s conftest.$ac_objext; then
6813 ac_cv_type_size_t=yes
6814 else
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 ac_cv_type_size_t=no
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6824 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6825 if test $ac_cv_type_size_t = yes; then
6827 else
6829 cat >>confdefs.h <<_ACEOF
6830 #define size_t unsigned int
6831 _ACEOF
6835 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6836 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6837 if test "${ac_cv_type_uid_t+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840 cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h. */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 #include <sys/types.h>
6848 _ACEOF
6849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6850 $EGREP "uid_t" >/dev/null 2>&1; then
6851 ac_cv_type_uid_t=yes
6852 else
6853 ac_cv_type_uid_t=no
6855 rm -f conftest*
6858 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6859 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6860 if test $ac_cv_type_uid_t = no; then
6862 cat >>confdefs.h <<\_ACEOF
6863 #define uid_t int
6864 _ACEOF
6867 cat >>confdefs.h <<\_ACEOF
6868 #define gid_t int
6869 _ACEOF
6873 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6874 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6875 if test "${ac_cv_type_ssize_t+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6885 typedef ssize_t ac__type_new_;
6887 main ()
6889 if ((ac__type_new_ *) 0)
6890 return 0;
6891 if (sizeof (ac__type_new_))
6892 return 0;
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
6914 ac_cv_type_ssize_t=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_cv_type_ssize_t=no
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6925 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6926 if test $ac_cv_type_ssize_t = yes; then
6928 cat >>confdefs.h <<\_ACEOF
6929 #define HAVE_SSIZE_T 1
6930 _ACEOF
6935 # Sizes of various common basic types
6936 # ANSI C requires sizeof(char) == 1, so no need to check it
6937 { echo "$as_me:$LINENO: checking for int" >&5
6938 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6939 if test "${ac_cv_type_int+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6949 typedef int ac__type_new_;
6951 main ()
6953 if ((ac__type_new_ *) 0)
6954 return 0;
6955 if (sizeof (ac__type_new_))
6956 return 0;
6958 return 0;
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6978 ac_cv_type_int=yes
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_cv_type_int=no
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6989 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6991 # The cast to long int works around a bug in the HP C Compiler
6992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6994 # This bug is HP SR number 8606223364.
6995 { echo "$as_me:$LINENO: checking size of int" >&5
6996 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6997 if test "${ac_cv_sizeof_int+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 if test "$cross_compiling" = yes; then
7001 # Depending upon the size, compute the lo and hi bounds.
7002 cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h. */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7008 $ac_includes_default
7009 typedef int ac__type_sizeof_;
7011 main ()
7013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7014 test_array [0] = 0
7017 return 0;
7019 _ACEOF
7020 rm -f conftest.$ac_objext
7021 if { (ac_try="$ac_compile"
7022 case "(($ac_try" in
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7025 esac
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027 (eval "$ac_compile") 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest.$ac_objext; then
7037 ac_lo=0 ac_mid=0
7038 while :; do
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 $ac_includes_default
7046 typedef int ac__type_sizeof_;
7048 main ()
7050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7051 test_array [0] = 0
7054 return 0;
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (ac_try="$ac_compile"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_hi=$ac_mid; break
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_lo=`expr $ac_mid + 1`
7080 if test $ac_lo -le $ac_mid; then
7081 ac_lo= ac_hi=
7082 break
7084 ac_mid=`expr 2 '*' $ac_mid + 1`
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 done
7089 else
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 $ac_includes_default
7100 typedef int ac__type_sizeof_;
7102 main ()
7104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7105 test_array [0] = 0
7108 return 0;
7110 _ACEOF
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7113 case "(($ac_try" in
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
7128 ac_hi=-1 ac_mid=-1
7129 while :; do
7130 cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h. */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 $ac_includes_default
7137 typedef int ac__type_sizeof_;
7139 main ()
7141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7142 test_array [0] = 0
7145 return 0;
7147 _ACEOF
7148 rm -f conftest.$ac_objext
7149 if { (ac_try="$ac_compile"
7150 case "(($ac_try" in
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7153 esac
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155 (eval "$ac_compile") 2>conftest.er1
7156 ac_status=$?
7157 grep -v '^ *+' conftest.er1 >conftest.err
7158 rm -f conftest.er1
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } && {
7162 test -z "$ac_c_werror_flag" ||
7163 test ! -s conftest.err
7164 } && test -s conftest.$ac_objext; then
7165 ac_lo=$ac_mid; break
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 ac_hi=`expr '(' $ac_mid ')' - 1`
7171 if test $ac_mid -le $ac_hi; then
7172 ac_lo= ac_hi=
7173 break
7175 ac_mid=`expr 2 '*' $ac_mid`
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 done
7180 else
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_lo= ac_hi=
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 # Binary search between lo and hi bounds.
7192 while test "x$ac_lo" != "x$ac_hi"; do
7193 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7194 cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h. */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7201 typedef int ac__type_sizeof_;
7203 main ()
7205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7206 test_array [0] = 0
7209 return 0;
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7214 case "(($ac_try" in
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7217 esac
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7229 ac_hi=$ac_mid
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 ac_lo=`expr '(' $ac_mid ')' + 1`
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 done
7239 case $ac_lo in
7240 ?*) ac_cv_sizeof_int=$ac_lo;;
7241 '') if test "$ac_cv_type_int" = yes; then
7242 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7243 See \`config.log' for more details." >&5
7244 echo "$as_me: error: cannot compute sizeof (int)
7245 See \`config.log' for more details." >&2;}
7246 { (exit 77); exit 77; }; }
7247 else
7248 ac_cv_sizeof_int=0
7249 fi ;;
7250 esac
7251 else
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h. */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 $ac_includes_default
7259 typedef int ac__type_sizeof_;
7260 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7261 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7262 #include <stdio.h>
7263 #include <stdlib.h>
7265 main ()
7268 FILE *f = fopen ("conftest.val", "w");
7269 if (! f)
7270 return 1;
7271 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7273 long int i = longval ();
7274 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7275 return 1;
7276 fprintf (f, "%ld\n", i);
7278 else
7280 unsigned long int i = ulongval ();
7281 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7282 return 1;
7283 fprintf (f, "%lu\n", i);
7285 return ferror (f) || fclose (f) != 0;
7288 return 0;
7290 _ACEOF
7291 rm -f conftest$ac_exeext
7292 if { (ac_try="$ac_link"
7293 case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296 esac
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_link") 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7302 { (case "(($ac_try" in
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7305 esac
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_try") 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_sizeof_int=`cat conftest.val`
7312 else
7313 echo "$as_me: program exited with status $ac_status" >&5
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 ( exit $ac_status )
7318 if test "$ac_cv_type_int" = yes; then
7319 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7320 See \`config.log' for more details." >&5
7321 echo "$as_me: error: cannot compute sizeof (int)
7322 See \`config.log' for more details." >&2;}
7323 { (exit 77); exit 77; }; }
7324 else
7325 ac_cv_sizeof_int=0
7328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7330 rm -f conftest.val
7332 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7333 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7337 cat >>confdefs.h <<_ACEOF
7338 #define SIZEOF_INT $ac_cv_sizeof_int
7339 _ACEOF
7342 { echo "$as_me:$LINENO: checking for long" >&5
7343 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7344 if test "${ac_cv_type_long+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347 cat >conftest.$ac_ext <<_ACEOF
7348 /* confdefs.h. */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7353 $ac_includes_default
7354 typedef long ac__type_new_;
7356 main ()
7358 if ((ac__type_new_ *) 0)
7359 return 0;
7360 if (sizeof (ac__type_new_))
7361 return 0;
7363 return 0;
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7368 case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371 esac
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 ac_cv_type_long=yes
7384 else
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_cv_type_long=no
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7394 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7396 # The cast to long int works around a bug in the HP C Compiler
7397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7399 # This bug is HP SR number 8606223364.
7400 { echo "$as_me:$LINENO: checking size of long" >&5
7401 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7402 if test "${ac_cv_sizeof_long+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405 if test "$cross_compiling" = yes; then
7406 # Depending upon the size, compute the lo and hi bounds.
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h. */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 $ac_includes_default
7414 typedef long ac__type_sizeof_;
7416 main ()
7418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7419 test_array [0] = 0
7422 return 0;
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7427 case "(($ac_try" in
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7430 esac
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432 (eval "$ac_compile") 2>conftest.er1
7433 ac_status=$?
7434 grep -v '^ *+' conftest.er1 >conftest.err
7435 rm -f conftest.er1
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } && {
7439 test -z "$ac_c_werror_flag" ||
7440 test ! -s conftest.err
7441 } && test -s conftest.$ac_objext; then
7442 ac_lo=0 ac_mid=0
7443 while :; do
7444 cat >conftest.$ac_ext <<_ACEOF
7445 /* confdefs.h. */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 $ac_includes_default
7451 typedef long ac__type_sizeof_;
7453 main ()
7455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7456 test_array [0] = 0
7459 return 0;
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7464 case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7467 esac
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
7470 ac_status=$?
7471 grep -v '^ *+' conftest.er1 >conftest.err
7472 rm -f conftest.er1
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.$ac_objext; then
7479 ac_hi=$ac_mid; break
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 ac_lo=`expr $ac_mid + 1`
7485 if test $ac_lo -le $ac_mid; then
7486 ac_lo= ac_hi=
7487 break
7489 ac_mid=`expr 2 '*' $ac_mid + 1`
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 done
7494 else
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7498 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h. */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7504 $ac_includes_default
7505 typedef long ac__type_sizeof_;
7507 main ()
7509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7510 test_array [0] = 0
7513 return 0;
7515 _ACEOF
7516 rm -f conftest.$ac_objext
7517 if { (ac_try="$ac_compile"
7518 case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521 esac
7522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7523 (eval "$ac_compile") 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest.$ac_objext; then
7533 ac_hi=-1 ac_mid=-1
7534 while :; do
7535 cat >conftest.$ac_ext <<_ACEOF
7536 /* confdefs.h. */
7537 _ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 $ac_includes_default
7542 typedef long ac__type_sizeof_;
7544 main ()
7546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7547 test_array [0] = 0
7550 return 0;
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7555 case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.$ac_objext; then
7570 ac_lo=$ac_mid; break
7571 else
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_hi=`expr '(' $ac_mid ')' - 1`
7576 if test $ac_mid -le $ac_hi; then
7577 ac_lo= ac_hi=
7578 break
7580 ac_mid=`expr 2 '*' $ac_mid`
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 done
7585 else
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 ac_lo= ac_hi=
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 # Binary search between lo and hi bounds.
7597 while test "x$ac_lo" != "x$ac_hi"; do
7598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h. */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 $ac_includes_default
7606 typedef long ac__type_sizeof_;
7608 main ()
7610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7611 test_array [0] = 0
7614 return 0;
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7619 case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7625 ac_status=$?
7626 grep -v '^ *+' conftest.er1 >conftest.err
7627 rm -f conftest.er1
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7634 ac_hi=$ac_mid
7635 else
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 ac_lo=`expr '(' $ac_mid ')' + 1`
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 done
7644 case $ac_lo in
7645 ?*) ac_cv_sizeof_long=$ac_lo;;
7646 '') if test "$ac_cv_type_long" = yes; then
7647 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7648 See \`config.log' for more details." >&5
7649 echo "$as_me: error: cannot compute sizeof (long)
7650 See \`config.log' for more details." >&2;}
7651 { (exit 77); exit 77; }; }
7652 else
7653 ac_cv_sizeof_long=0
7654 fi ;;
7655 esac
7656 else
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 $ac_includes_default
7664 typedef long ac__type_sizeof_;
7665 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7666 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7667 #include <stdio.h>
7668 #include <stdlib.h>
7670 main ()
7673 FILE *f = fopen ("conftest.val", "w");
7674 if (! f)
7675 return 1;
7676 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7678 long int i = longval ();
7679 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7680 return 1;
7681 fprintf (f, "%ld\n", i);
7683 else
7685 unsigned long int i = ulongval ();
7686 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7687 return 1;
7688 fprintf (f, "%lu\n", i);
7690 return ferror (f) || fclose (f) != 0;
7693 return 0;
7695 _ACEOF
7696 rm -f conftest$ac_exeext
7697 if { (ac_try="$ac_link"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_link") 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7707 { (case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7710 esac
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_try") 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 ac_cv_sizeof_long=`cat conftest.val`
7717 else
7718 echo "$as_me: program exited with status $ac_status" >&5
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 ( exit $ac_status )
7723 if test "$ac_cv_type_long" = yes; then
7724 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7725 See \`config.log' for more details." >&5
7726 echo "$as_me: error: cannot compute sizeof (long)
7727 See \`config.log' for more details." >&2;}
7728 { (exit 77); exit 77; }; }
7729 else
7730 ac_cv_sizeof_long=0
7733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7735 rm -f conftest.val
7737 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7738 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7742 cat >>confdefs.h <<_ACEOF
7743 #define SIZEOF_LONG $ac_cv_sizeof_long
7744 _ACEOF
7747 { echo "$as_me:$LINENO: checking for void *" >&5
7748 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7749 if test "${ac_cv_type_void_p+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 $ac_includes_default
7759 typedef void * ac__type_new_;
7761 main ()
7763 if ((ac__type_new_ *) 0)
7764 return 0;
7765 if (sizeof (ac__type_new_))
7766 return 0;
7768 return 0;
7770 _ACEOF
7771 rm -f conftest.$ac_objext
7772 if { (ac_try="$ac_compile"
7773 case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776 esac
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_compile") 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } && {
7785 test -z "$ac_c_werror_flag" ||
7786 test ! -s conftest.err
7787 } && test -s conftest.$ac_objext; then
7788 ac_cv_type_void_p=yes
7789 else
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ac_cv_type_void_p=no
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7799 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7801 # The cast to long int works around a bug in the HP C Compiler
7802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7804 # This bug is HP SR number 8606223364.
7805 { echo "$as_me:$LINENO: checking size of void *" >&5
7806 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7807 if test "${ac_cv_sizeof_void_p+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810 if test "$cross_compiling" = yes; then
7811 # Depending upon the size, compute the lo and hi bounds.
7812 cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h. */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7818 $ac_includes_default
7819 typedef void * ac__type_sizeof_;
7821 main ()
7823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7824 test_array [0] = 0
7827 return 0;
7829 _ACEOF
7830 rm -f conftest.$ac_objext
7831 if { (ac_try="$ac_compile"
7832 case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
7847 ac_lo=0 ac_mid=0
7848 while :; do
7849 cat >conftest.$ac_ext <<_ACEOF
7850 /* confdefs.h. */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7855 $ac_includes_default
7856 typedef void * ac__type_sizeof_;
7858 main ()
7860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7861 test_array [0] = 0
7864 return 0;
7866 _ACEOF
7867 rm -f conftest.$ac_objext
7868 if { (ac_try="$ac_compile"
7869 case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_compile") 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest.$ac_objext; then
7884 ac_hi=$ac_mid; break
7885 else
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 ac_lo=`expr $ac_mid + 1`
7890 if test $ac_lo -le $ac_mid; then
7891 ac_lo= ac_hi=
7892 break
7894 ac_mid=`expr 2 '*' $ac_mid + 1`
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 done
7899 else
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 $ac_includes_default
7910 typedef void * ac__type_sizeof_;
7912 main ()
7914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7915 test_array [0] = 0
7918 return 0;
7920 _ACEOF
7921 rm -f conftest.$ac_objext
7922 if { (ac_try="$ac_compile"
7923 case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926 esac
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.$ac_objext; then
7938 ac_hi=-1 ac_mid=-1
7939 while :; do
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 $ac_includes_default
7947 typedef void * ac__type_sizeof_;
7949 main ()
7951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7952 test_array [0] = 0
7955 return 0;
7957 _ACEOF
7958 rm -f conftest.$ac_objext
7959 if { (ac_try="$ac_compile"
7960 case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7963 esac
7964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_compile") 2>conftest.er1
7966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } && {
7972 test -z "$ac_c_werror_flag" ||
7973 test ! -s conftest.err
7974 } && test -s conftest.$ac_objext; then
7975 ac_lo=$ac_mid; break
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 ac_hi=`expr '(' $ac_mid ')' - 1`
7981 if test $ac_mid -le $ac_hi; then
7982 ac_lo= ac_hi=
7983 break
7985 ac_mid=`expr 2 '*' $ac_mid`
7988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 done
7990 else
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_lo= ac_hi=
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 # Binary search between lo and hi bounds.
8002 while test "x$ac_lo" != "x$ac_hi"; do
8003 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 $ac_includes_default
8011 typedef void * ac__type_sizeof_;
8013 main ()
8015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8016 test_array [0] = 0
8019 return 0;
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8024 case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8027 esac
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_hi=$ac_mid
8040 else
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 ac_lo=`expr '(' $ac_mid ')' + 1`
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 done
8049 case $ac_lo in
8050 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8051 '') if test "$ac_cv_type_void_p" = yes; then
8052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8053 See \`config.log' for more details." >&5
8054 echo "$as_me: error: cannot compute sizeof (void *)
8055 See \`config.log' for more details." >&2;}
8056 { (exit 77); exit 77; }; }
8057 else
8058 ac_cv_sizeof_void_p=0
8059 fi ;;
8060 esac
8061 else
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 $ac_includes_default
8069 typedef void * ac__type_sizeof_;
8070 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8071 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8072 #include <stdio.h>
8073 #include <stdlib.h>
8075 main ()
8078 FILE *f = fopen ("conftest.val", "w");
8079 if (! f)
8080 return 1;
8081 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8083 long int i = longval ();
8084 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8085 return 1;
8086 fprintf (f, "%ld\n", i);
8088 else
8090 unsigned long int i = ulongval ();
8091 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8092 return 1;
8093 fprintf (f, "%lu\n", i);
8095 return ferror (f) || fclose (f) != 0;
8098 return 0;
8100 _ACEOF
8101 rm -f conftest$ac_exeext
8102 if { (ac_try="$ac_link"
8103 case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_link") 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 ac_cv_sizeof_void_p=`cat conftest.val`
8122 else
8123 echo "$as_me: program exited with status $ac_status" >&5
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 ( exit $ac_status )
8128 if test "$ac_cv_type_void_p" = yes; then
8129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8130 See \`config.log' for more details." >&5
8131 echo "$as_me: error: cannot compute sizeof (void *)
8132 See \`config.log' for more details." >&2;}
8133 { (exit 77); exit 77; }; }
8134 else
8135 ac_cv_sizeof_void_p=0
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8140 rm -f conftest.val
8142 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8143 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8147 cat >>confdefs.h <<_ACEOF
8148 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8149 _ACEOF
8152 { echo "$as_me:$LINENO: checking for short" >&5
8153 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8154 if test "${ac_cv_type_short+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157 cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h. */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 $ac_includes_default
8164 typedef short ac__type_new_;
8166 main ()
8168 if ((ac__type_new_ *) 0)
8169 return 0;
8170 if (sizeof (ac__type_new_))
8171 return 0;
8173 return 0;
8175 _ACEOF
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8178 case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest.$ac_objext; then
8193 ac_cv_type_short=yes
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_type_short=no
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8204 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8206 # The cast to long int works around a bug in the HP C Compiler
8207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8209 # This bug is HP SR number 8606223364.
8210 { echo "$as_me:$LINENO: checking size of short" >&5
8211 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8212 if test "${ac_cv_sizeof_short+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215 if test "$cross_compiling" = yes; then
8216 # Depending upon the size, compute the lo and hi bounds.
8217 cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h. */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 $ac_includes_default
8224 typedef short ac__type_sizeof_;
8226 main ()
8228 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8229 test_array [0] = 0
8232 return 0;
8234 _ACEOF
8235 rm -f conftest.$ac_objext
8236 if { (ac_try="$ac_compile"
8237 case "(($ac_try" in
8238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8239 *) ac_try_echo=$ac_try;;
8240 esac
8241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8242 (eval "$ac_compile") 2>conftest.er1
8243 ac_status=$?
8244 grep -v '^ *+' conftest.er1 >conftest.err
8245 rm -f conftest.er1
8246 cat conftest.err >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } && {
8249 test -z "$ac_c_werror_flag" ||
8250 test ! -s conftest.err
8251 } && test -s conftest.$ac_objext; then
8252 ac_lo=0 ac_mid=0
8253 while :; do
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h. */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 $ac_includes_default
8261 typedef short ac__type_sizeof_;
8263 main ()
8265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8266 test_array [0] = 0
8269 return 0;
8271 _ACEOF
8272 rm -f conftest.$ac_objext
8273 if { (ac_try="$ac_compile"
8274 case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277 esac
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_compile") 2>conftest.er1
8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && {
8286 test -z "$ac_c_werror_flag" ||
8287 test ! -s conftest.err
8288 } && test -s conftest.$ac_objext; then
8289 ac_hi=$ac_mid; break
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 ac_lo=`expr $ac_mid + 1`
8295 if test $ac_lo -le $ac_mid; then
8296 ac_lo= ac_hi=
8297 break
8299 ac_mid=`expr 2 '*' $ac_mid + 1`
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 done
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h. */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 $ac_includes_default
8315 typedef short ac__type_sizeof_;
8317 main ()
8319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8320 test_array [0] = 0
8323 return 0;
8325 _ACEOF
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8328 case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
8343 ac_hi=-1 ac_mid=-1
8344 while :; do
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h. */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 $ac_includes_default
8352 typedef short ac__type_sizeof_;
8354 main ()
8356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8357 test_array [0] = 0
8360 return 0;
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (ac_try="$ac_compile"
8365 case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8368 esac
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_lo=$ac_mid; break
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 ac_hi=`expr '(' $ac_mid ')' - 1`
8386 if test $ac_mid -le $ac_hi; then
8387 ac_lo= ac_hi=
8388 break
8390 ac_mid=`expr 2 '*' $ac_mid`
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 done
8395 else
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 ac_lo= ac_hi=
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 # Binary search between lo and hi bounds.
8407 while test "x$ac_lo" != "x$ac_hi"; do
8408 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 $ac_includes_default
8416 typedef short ac__type_sizeof_;
8418 main ()
8420 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8421 test_array [0] = 0
8424 return 0;
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8429 case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_hi=$ac_mid
8445 else
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_lo=`expr '(' $ac_mid ')' + 1`
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 done
8454 case $ac_lo in
8455 ?*) ac_cv_sizeof_short=$ac_lo;;
8456 '') if test "$ac_cv_type_short" = yes; then
8457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8458 See \`config.log' for more details." >&5
8459 echo "$as_me: error: cannot compute sizeof (short)
8460 See \`config.log' for more details." >&2;}
8461 { (exit 77); exit 77; }; }
8462 else
8463 ac_cv_sizeof_short=0
8464 fi ;;
8465 esac
8466 else
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h. */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 typedef short ac__type_sizeof_;
8475 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8476 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8477 #include <stdio.h>
8478 #include <stdlib.h>
8480 main ()
8483 FILE *f = fopen ("conftest.val", "w");
8484 if (! f)
8485 return 1;
8486 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8488 long int i = longval ();
8489 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8490 return 1;
8491 fprintf (f, "%ld\n", i);
8493 else
8495 unsigned long int i = ulongval ();
8496 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8497 return 1;
8498 fprintf (f, "%lu\n", i);
8500 return ferror (f) || fclose (f) != 0;
8503 return 0;
8505 _ACEOF
8506 rm -f conftest$ac_exeext
8507 if { (ac_try="$ac_link"
8508 case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_link") 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8517 { (case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_try") 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_sizeof_short=`cat conftest.val`
8527 else
8528 echo "$as_me: program exited with status $ac_status" >&5
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ( exit $ac_status )
8533 if test "$ac_cv_type_short" = yes; then
8534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8535 See \`config.log' for more details." >&5
8536 echo "$as_me: error: cannot compute sizeof (short)
8537 See \`config.log' for more details." >&2;}
8538 { (exit 77); exit 77; }; }
8539 else
8540 ac_cv_sizeof_short=0
8543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8545 rm -f conftest.val
8547 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8548 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8552 cat >>confdefs.h <<_ACEOF
8553 #define SIZEOF_SHORT $ac_cv_sizeof_short
8554 _ACEOF
8557 { echo "$as_me:$LINENO: checking for float" >&5
8558 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8559 if test "${ac_cv_type_float+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h. */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 $ac_includes_default
8569 typedef float ac__type_new_;
8571 main ()
8573 if ((ac__type_new_ *) 0)
8574 return 0;
8575 if (sizeof (ac__type_new_))
8576 return 0;
8578 return 0;
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (ac_try="$ac_compile"
8583 case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586 esac
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_compile") 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } && {
8595 test -z "$ac_c_werror_flag" ||
8596 test ! -s conftest.err
8597 } && test -s conftest.$ac_objext; then
8598 ac_cv_type_float=yes
8599 else
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 ac_cv_type_float=no
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8609 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8611 # The cast to long int works around a bug in the HP C Compiler
8612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8614 # This bug is HP SR number 8606223364.
8615 { echo "$as_me:$LINENO: checking size of float" >&5
8616 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8617 if test "${ac_cv_sizeof_float+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 if test "$cross_compiling" = yes; then
8621 # Depending upon the size, compute the lo and hi bounds.
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 typedef float ac__type_sizeof_;
8631 main ()
8633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8634 test_array [0] = 0
8637 return 0;
8639 _ACEOF
8640 rm -f conftest.$ac_objext
8641 if { (ac_try="$ac_compile"
8642 case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8645 esac
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_compile") 2>conftest.er1
8648 ac_status=$?
8649 grep -v '^ *+' conftest.er1 >conftest.err
8650 rm -f conftest.er1
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && {
8654 test -z "$ac_c_werror_flag" ||
8655 test ! -s conftest.err
8656 } && test -s conftest.$ac_objext; then
8657 ac_lo=0 ac_mid=0
8658 while :; do
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h. */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 $ac_includes_default
8666 typedef float ac__type_sizeof_;
8668 main ()
8670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8671 test_array [0] = 0
8674 return 0;
8676 _ACEOF
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8679 case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_compile") 2>conftest.er1
8685 ac_status=$?
8686 grep -v '^ *+' conftest.er1 >conftest.err
8687 rm -f conftest.er1
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest.$ac_objext; then
8694 ac_hi=$ac_mid; break
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_lo=`expr $ac_mid + 1`
8700 if test $ac_lo -le $ac_mid; then
8701 ac_lo= ac_hi=
8702 break
8704 ac_mid=`expr 2 '*' $ac_mid + 1`
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 done
8709 else
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8713 cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h. */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 $ac_includes_default
8720 typedef float ac__type_sizeof_;
8722 main ()
8724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8725 test_array [0] = 0
8728 return 0;
8730 _ACEOF
8731 rm -f conftest.$ac_objext
8732 if { (ac_try="$ac_compile"
8733 case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8736 esac
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_compile") 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_c_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest.$ac_objext; then
8748 ac_hi=-1 ac_mid=-1
8749 while :; do
8750 cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h. */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 $ac_includes_default
8757 typedef float ac__type_sizeof_;
8759 main ()
8761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8762 test_array [0] = 0
8765 return 0;
8767 _ACEOF
8768 rm -f conftest.$ac_objext
8769 if { (ac_try="$ac_compile"
8770 case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8773 esac
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_compile") 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && {
8782 test -z "$ac_c_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest.$ac_objext; then
8785 ac_lo=$ac_mid; break
8786 else
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 ac_hi=`expr '(' $ac_mid ')' - 1`
8791 if test $ac_mid -le $ac_hi; then
8792 ac_lo= ac_hi=
8793 break
8795 ac_mid=`expr 2 '*' $ac_mid`
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 done
8800 else
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_lo= ac_hi=
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 # Binary search between lo and hi bounds.
8812 while test "x$ac_lo" != "x$ac_hi"; do
8813 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8814 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h. */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 $ac_includes_default
8821 typedef float ac__type_sizeof_;
8823 main ()
8825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8826 test_array [0] = 0
8829 return 0;
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (ac_try="$ac_compile"
8834 case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8837 esac
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_compile") 2>conftest.er1
8840 ac_status=$?
8841 grep -v '^ *+' conftest.er1 >conftest.err
8842 rm -f conftest.er1
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && {
8846 test -z "$ac_c_werror_flag" ||
8847 test ! -s conftest.err
8848 } && test -s conftest.$ac_objext; then
8849 ac_hi=$ac_mid
8850 else
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_lo=`expr '(' $ac_mid ')' + 1`
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 done
8859 case $ac_lo in
8860 ?*) ac_cv_sizeof_float=$ac_lo;;
8861 '') if test "$ac_cv_type_float" = yes; then
8862 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8863 See \`config.log' for more details." >&5
8864 echo "$as_me: error: cannot compute sizeof (float)
8865 See \`config.log' for more details." >&2;}
8866 { (exit 77); exit 77; }; }
8867 else
8868 ac_cv_sizeof_float=0
8869 fi ;;
8870 esac
8871 else
8872 cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h. */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8878 $ac_includes_default
8879 typedef float ac__type_sizeof_;
8880 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8881 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8882 #include <stdio.h>
8883 #include <stdlib.h>
8885 main ()
8888 FILE *f = fopen ("conftest.val", "w");
8889 if (! f)
8890 return 1;
8891 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8893 long int i = longval ();
8894 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8895 return 1;
8896 fprintf (f, "%ld\n", i);
8898 else
8900 unsigned long int i = ulongval ();
8901 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8902 return 1;
8903 fprintf (f, "%lu\n", i);
8905 return ferror (f) || fclose (f) != 0;
8908 return 0;
8910 _ACEOF
8911 rm -f conftest$ac_exeext
8912 if { (ac_try="$ac_link"
8913 case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916 esac
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_link") 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8922 { (case "(($ac_try" in
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8925 esac
8926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927 (eval "$ac_try") 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_cv_sizeof_float=`cat conftest.val`
8932 else
8933 echo "$as_me: program exited with status $ac_status" >&5
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8937 ( exit $ac_status )
8938 if test "$ac_cv_type_float" = yes; then
8939 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8940 See \`config.log' for more details." >&5
8941 echo "$as_me: error: cannot compute sizeof (float)
8942 See \`config.log' for more details." >&2;}
8943 { (exit 77); exit 77; }; }
8944 else
8945 ac_cv_sizeof_float=0
8948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8950 rm -f conftest.val
8952 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8953 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8957 cat >>confdefs.h <<_ACEOF
8958 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8959 _ACEOF
8962 { echo "$as_me:$LINENO: checking for double" >&5
8963 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8964 if test "${ac_cv_type_double+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967 cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h. */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8973 $ac_includes_default
8974 typedef double ac__type_new_;
8976 main ()
8978 if ((ac__type_new_ *) 0)
8979 return 0;
8980 if (sizeof (ac__type_new_))
8981 return 0;
8983 return 0;
8985 _ACEOF
8986 rm -f conftest.$ac_objext
8987 if { (ac_try="$ac_compile"
8988 case "(($ac_try" in
8989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8990 *) ac_try_echo=$ac_try;;
8991 esac
8992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8993 (eval "$ac_compile") 2>conftest.er1
8994 ac_status=$?
8995 grep -v '^ *+' conftest.er1 >conftest.err
8996 rm -f conftest.er1
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } && {
9000 test -z "$ac_c_werror_flag" ||
9001 test ! -s conftest.err
9002 } && test -s conftest.$ac_objext; then
9003 ac_cv_type_double=yes
9004 else
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9008 ac_cv_type_double=no
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9014 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9016 # The cast to long int works around a bug in the HP C Compiler
9017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9019 # This bug is HP SR number 8606223364.
9020 { echo "$as_me:$LINENO: checking size of double" >&5
9021 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9022 if test "${ac_cv_sizeof_double+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025 if test "$cross_compiling" = yes; then
9026 # Depending upon the size, compute the lo and hi bounds.
9027 cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h. */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 $ac_includes_default
9034 typedef double ac__type_sizeof_;
9036 main ()
9038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9039 test_array [0] = 0
9042 return 0;
9044 _ACEOF
9045 rm -f conftest.$ac_objext
9046 if { (ac_try="$ac_compile"
9047 case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_compile") 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } && {
9059 test -z "$ac_c_werror_flag" ||
9060 test ! -s conftest.err
9061 } && test -s conftest.$ac_objext; then
9062 ac_lo=0 ac_mid=0
9063 while :; do
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h. */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 $ac_includes_default
9071 typedef double ac__type_sizeof_;
9073 main ()
9075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9076 test_array [0] = 0
9079 return 0;
9081 _ACEOF
9082 rm -f conftest.$ac_objext
9083 if { (ac_try="$ac_compile"
9084 case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087 esac
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_compile") 2>conftest.er1
9090 ac_status=$?
9091 grep -v '^ *+' conftest.er1 >conftest.err
9092 rm -f conftest.er1
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } && {
9096 test -z "$ac_c_werror_flag" ||
9097 test ! -s conftest.err
9098 } && test -s conftest.$ac_objext; then
9099 ac_hi=$ac_mid; break
9100 else
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 ac_lo=`expr $ac_mid + 1`
9105 if test $ac_lo -le $ac_mid; then
9106 ac_lo= ac_hi=
9107 break
9109 ac_mid=`expr 2 '*' $ac_mid + 1`
9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113 done
9114 else
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h. */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9125 typedef double ac__type_sizeof_;
9127 main ()
9129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9130 test_array [0] = 0
9133 return 0;
9135 _ACEOF
9136 rm -f conftest.$ac_objext
9137 if { (ac_try="$ac_compile"
9138 case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141 esac
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
9153 ac_hi=-1 ac_mid=-1
9154 while :; do
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 $ac_includes_default
9162 typedef double ac__type_sizeof_;
9164 main ()
9166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9167 test_array [0] = 0
9170 return 0;
9172 _ACEOF
9173 rm -f conftest.$ac_objext
9174 if { (ac_try="$ac_compile"
9175 case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_compile") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_c_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest.$ac_objext; then
9190 ac_lo=$ac_mid; break
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_hi=`expr '(' $ac_mid ')' - 1`
9196 if test $ac_mid -le $ac_hi; then
9197 ac_lo= ac_hi=
9198 break
9200 ac_mid=`expr 2 '*' $ac_mid`
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 done
9205 else
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 ac_lo= ac_hi=
9212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 # Binary search between lo and hi bounds.
9217 while test "x$ac_lo" != "x$ac_hi"; do
9218 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 $ac_includes_default
9226 typedef double ac__type_sizeof_;
9228 main ()
9230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9231 test_array [0] = 0
9234 return 0;
9236 _ACEOF
9237 rm -f conftest.$ac_objext
9238 if { (ac_try="$ac_compile"
9239 case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9242 esac
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_compile") 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest.$ac_objext; then
9254 ac_hi=$ac_mid
9255 else
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 ac_lo=`expr '(' $ac_mid ')' + 1`
9262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263 done
9264 case $ac_lo in
9265 ?*) ac_cv_sizeof_double=$ac_lo;;
9266 '') if test "$ac_cv_type_double" = yes; then
9267 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9268 See \`config.log' for more details." >&5
9269 echo "$as_me: error: cannot compute sizeof (double)
9270 See \`config.log' for more details." >&2;}
9271 { (exit 77); exit 77; }; }
9272 else
9273 ac_cv_sizeof_double=0
9274 fi ;;
9275 esac
9276 else
9277 cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h. */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 $ac_includes_default
9284 typedef double ac__type_sizeof_;
9285 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9286 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9287 #include <stdio.h>
9288 #include <stdlib.h>
9290 main ()
9293 FILE *f = fopen ("conftest.val", "w");
9294 if (! f)
9295 return 1;
9296 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9298 long int i = longval ();
9299 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9300 return 1;
9301 fprintf (f, "%ld\n", i);
9303 else
9305 unsigned long int i = ulongval ();
9306 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9307 return 1;
9308 fprintf (f, "%lu\n", i);
9310 return ferror (f) || fclose (f) != 0;
9313 return 0;
9315 _ACEOF
9316 rm -f conftest$ac_exeext
9317 if { (ac_try="$ac_link"
9318 case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321 esac
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_link") 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9327 { (case "(($ac_try" in
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9330 esac
9331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_try") 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 ac_cv_sizeof_double=`cat conftest.val`
9337 else
9338 echo "$as_me: program exited with status $ac_status" >&5
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ( exit $ac_status )
9343 if test "$ac_cv_type_double" = yes; then
9344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9345 See \`config.log' for more details." >&5
9346 echo "$as_me: error: cannot compute sizeof (double)
9347 See \`config.log' for more details." >&2;}
9348 { (exit 77); exit 77; }; }
9349 else
9350 ac_cv_sizeof_double=0
9353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9355 rm -f conftest.val
9357 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9358 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9362 cat >>confdefs.h <<_ACEOF
9363 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9364 _ACEOF
9367 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9368 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9369 if test "${ac_cv_type_fpos_t+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h. */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 $ac_includes_default
9379 typedef fpos_t ac__type_new_;
9381 main ()
9383 if ((ac__type_new_ *) 0)
9384 return 0;
9385 if (sizeof (ac__type_new_))
9386 return 0;
9388 return 0;
9390 _ACEOF
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9393 case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_compile") 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest.$ac_objext; then
9408 ac_cv_type_fpos_t=yes
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_cv_type_fpos_t=no
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9419 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9421 # The cast to long int works around a bug in the HP C Compiler
9422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9424 # This bug is HP SR number 8606223364.
9425 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9426 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9427 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430 if test "$cross_compiling" = yes; then
9431 # Depending upon the size, compute the lo and hi bounds.
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 $ac_includes_default
9439 typedef fpos_t ac__type_sizeof_;
9441 main ()
9443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9444 test_array [0] = 0
9447 return 0;
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (ac_try="$ac_compile"
9452 case "(($ac_try" in
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9455 esac
9456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_compile") 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } && {
9464 test -z "$ac_c_werror_flag" ||
9465 test ! -s conftest.err
9466 } && test -s conftest.$ac_objext; then
9467 ac_lo=0 ac_mid=0
9468 while :; do
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h. */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 $ac_includes_default
9476 typedef fpos_t ac__type_sizeof_;
9478 main ()
9480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9481 test_array [0] = 0
9484 return 0;
9486 _ACEOF
9487 rm -f conftest.$ac_objext
9488 if { (ac_try="$ac_compile"
9489 case "(($ac_try" in
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9492 esac
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_compile") 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } && {
9501 test -z "$ac_c_werror_flag" ||
9502 test ! -s conftest.err
9503 } && test -s conftest.$ac_objext; then
9504 ac_hi=$ac_mid; break
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 ac_lo=`expr $ac_mid + 1`
9510 if test $ac_lo -le $ac_mid; then
9511 ac_lo= ac_hi=
9512 break
9514 ac_mid=`expr 2 '*' $ac_mid + 1`
9517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9518 done
9519 else
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h. */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 $ac_includes_default
9530 typedef fpos_t ac__type_sizeof_;
9532 main ()
9534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9535 test_array [0] = 0
9538 return 0;
9540 _ACEOF
9541 rm -f conftest.$ac_objext
9542 if { (ac_try="$ac_compile"
9543 case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546 esac
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_compile") 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && {
9555 test -z "$ac_c_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest.$ac_objext; then
9558 ac_hi=-1 ac_mid=-1
9559 while :; do
9560 cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h. */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 $ac_includes_default
9567 typedef fpos_t ac__type_sizeof_;
9569 main ()
9571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9572 test_array [0] = 0
9575 return 0;
9577 _ACEOF
9578 rm -f conftest.$ac_objext
9579 if { (ac_try="$ac_compile"
9580 case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_compile") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest.$ac_objext; then
9595 ac_lo=$ac_mid; break
9596 else
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_hi=`expr '(' $ac_mid ')' - 1`
9601 if test $ac_mid -le $ac_hi; then
9602 ac_lo= ac_hi=
9603 break
9605 ac_mid=`expr 2 '*' $ac_mid`
9608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609 done
9610 else
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9614 ac_lo= ac_hi=
9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 # Binary search between lo and hi bounds.
9622 while test "x$ac_lo" != "x$ac_hi"; do
9623 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h. */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630 $ac_includes_default
9631 typedef fpos_t ac__type_sizeof_;
9633 main ()
9635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9636 test_array [0] = 0
9639 return 0;
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (ac_try="$ac_compile"
9644 case "(($ac_try" in
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9647 esac
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_compile") 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && {
9656 test -z "$ac_c_werror_flag" ||
9657 test ! -s conftest.err
9658 } && test -s conftest.$ac_objext; then
9659 ac_hi=$ac_mid
9660 else
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_lo=`expr '(' $ac_mid ')' + 1`
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668 done
9669 case $ac_lo in
9670 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9671 '') if test "$ac_cv_type_fpos_t" = yes; then
9672 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9673 See \`config.log' for more details." >&5
9674 echo "$as_me: error: cannot compute sizeof (fpos_t)
9675 See \`config.log' for more details." >&2;}
9676 { (exit 77); exit 77; }; }
9677 else
9678 ac_cv_sizeof_fpos_t=0
9679 fi ;;
9680 esac
9681 else
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h. */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 $ac_includes_default
9689 typedef fpos_t ac__type_sizeof_;
9690 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9691 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9692 #include <stdio.h>
9693 #include <stdlib.h>
9695 main ()
9698 FILE *f = fopen ("conftest.val", "w");
9699 if (! f)
9700 return 1;
9701 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9703 long int i = longval ();
9704 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9705 return 1;
9706 fprintf (f, "%ld\n", i);
9708 else
9710 unsigned long int i = ulongval ();
9711 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9712 return 1;
9713 fprintf (f, "%lu\n", i);
9715 return ferror (f) || fclose (f) != 0;
9718 return 0;
9720 _ACEOF
9721 rm -f conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9723 case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_link") 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9732 { (case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9735 esac
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_try") 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_cv_sizeof_fpos_t=`cat conftest.val`
9742 else
9743 echo "$as_me: program exited with status $ac_status" >&5
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ( exit $ac_status )
9748 if test "$ac_cv_type_fpos_t" = yes; then
9749 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9750 See \`config.log' for more details." >&5
9751 echo "$as_me: error: cannot compute sizeof (fpos_t)
9752 See \`config.log' for more details." >&2;}
9753 { (exit 77); exit 77; }; }
9754 else
9755 ac_cv_sizeof_fpos_t=0
9758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9760 rm -f conftest.val
9762 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9763 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9767 cat >>confdefs.h <<_ACEOF
9768 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9769 _ACEOF
9772 { echo "$as_me:$LINENO: checking for size_t" >&5
9773 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9774 if test "${ac_cv_type_size_t+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777 cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h. */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 $ac_includes_default
9784 typedef size_t ac__type_new_;
9786 main ()
9788 if ((ac__type_new_ *) 0)
9789 return 0;
9790 if (sizeof (ac__type_new_))
9791 return 0;
9793 return 0;
9795 _ACEOF
9796 rm -f conftest.$ac_objext
9797 if { (ac_try="$ac_compile"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_compile") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest.$ac_objext; then
9813 ac_cv_type_size_t=yes
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 ac_cv_type_size_t=no
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9823 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9824 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9826 # The cast to long int works around a bug in the HP C Compiler
9827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9829 # This bug is HP SR number 8606223364.
9830 { echo "$as_me:$LINENO: checking size of size_t" >&5
9831 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9832 if test "${ac_cv_sizeof_size_t+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835 if test "$cross_compiling" = yes; then
9836 # Depending upon the size, compute the lo and hi bounds.
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 $ac_includes_default
9844 typedef size_t ac__type_sizeof_;
9846 main ()
9848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9849 test_array [0] = 0
9852 return 0;
9854 _ACEOF
9855 rm -f conftest.$ac_objext
9856 if { (ac_try="$ac_compile"
9857 case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_compile") 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } && {
9869 test -z "$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9871 } && test -s conftest.$ac_objext; then
9872 ac_lo=0 ac_mid=0
9873 while :; do
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 $ac_includes_default
9881 typedef size_t ac__type_sizeof_;
9883 main ()
9885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9886 test_array [0] = 0
9889 return 0;
9891 _ACEOF
9892 rm -f conftest.$ac_objext
9893 if { (ac_try="$ac_compile"
9894 case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_compile") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 } && test -s conftest.$ac_objext; then
9909 ac_hi=$ac_mid; break
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_lo=`expr $ac_mid + 1`
9915 if test $ac_lo -le $ac_mid; then
9916 ac_lo= ac_hi=
9917 break
9919 ac_mid=`expr 2 '*' $ac_mid + 1`
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 done
9924 else
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h. */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9934 $ac_includes_default
9935 typedef size_t ac__type_sizeof_;
9937 main ()
9939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9940 test_array [0] = 0
9943 return 0;
9945 _ACEOF
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9948 case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_compile") 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest.$ac_objext; then
9963 ac_hi=-1 ac_mid=-1
9964 while :; do
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h. */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 $ac_includes_default
9972 typedef size_t ac__type_sizeof_;
9974 main ()
9976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9977 test_array [0] = 0
9980 return 0;
9982 _ACEOF
9983 rm -f conftest.$ac_objext
9984 if { (ac_try="$ac_compile"
9985 case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_compile") 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
9999 } && test -s conftest.$ac_objext; then
10000 ac_lo=$ac_mid; break
10001 else
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10005 ac_hi=`expr '(' $ac_mid ')' - 1`
10006 if test $ac_mid -le $ac_hi; then
10007 ac_lo= ac_hi=
10008 break
10010 ac_mid=`expr 2 '*' $ac_mid`
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 done
10015 else
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_lo= ac_hi=
10022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026 # Binary search between lo and hi bounds.
10027 while test "x$ac_lo" != "x$ac_hi"; do
10028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h. */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 $ac_includes_default
10036 typedef size_t ac__type_sizeof_;
10038 main ()
10040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10041 test_array [0] = 0
10044 return 0;
10046 _ACEOF
10047 rm -f conftest.$ac_objext
10048 if { (ac_try="$ac_compile"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_compile") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest.$ac_objext; then
10064 ac_hi=$ac_mid
10065 else
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_lo=`expr '(' $ac_mid ')' + 1`
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 done
10074 case $ac_lo in
10075 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10076 '') if test "$ac_cv_type_size_t" = yes; then
10077 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10078 See \`config.log' for more details." >&5
10079 echo "$as_me: error: cannot compute sizeof (size_t)
10080 See \`config.log' for more details." >&2;}
10081 { (exit 77); exit 77; }; }
10082 else
10083 ac_cv_sizeof_size_t=0
10084 fi ;;
10085 esac
10086 else
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h. */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 $ac_includes_default
10094 typedef size_t ac__type_sizeof_;
10095 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10096 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10097 #include <stdio.h>
10098 #include <stdlib.h>
10100 main ()
10103 FILE *f = fopen ("conftest.val", "w");
10104 if (! f)
10105 return 1;
10106 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10108 long int i = longval ();
10109 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10110 return 1;
10111 fprintf (f, "%ld\n", i);
10113 else
10115 unsigned long int i = ulongval ();
10116 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10117 return 1;
10118 fprintf (f, "%lu\n", i);
10120 return ferror (f) || fclose (f) != 0;
10123 return 0;
10125 _ACEOF
10126 rm -f conftest$ac_exeext
10127 if { (ac_try="$ac_link"
10128 case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_link") 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10137 { (case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_try") 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; }; then
10146 ac_cv_sizeof_size_t=`cat conftest.val`
10147 else
10148 echo "$as_me: program exited with status $ac_status" >&5
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ( exit $ac_status )
10153 if test "$ac_cv_type_size_t" = yes; then
10154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10155 See \`config.log' for more details." >&5
10156 echo "$as_me: error: cannot compute sizeof (size_t)
10157 See \`config.log' for more details." >&2;}
10158 { (exit 77); exit 77; }; }
10159 else
10160 ac_cv_sizeof_size_t=0
10163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10165 rm -f conftest.val
10167 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10168 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10172 cat >>confdefs.h <<_ACEOF
10173 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10174 _ACEOF
10177 { echo "$as_me:$LINENO: checking for pid_t" >&5
10178 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10179 if test "${ac_cv_type_pid_t+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h. */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 $ac_includes_default
10189 typedef pid_t ac__type_new_;
10191 main ()
10193 if ((ac__type_new_ *) 0)
10194 return 0;
10195 if (sizeof (ac__type_new_))
10196 return 0;
10198 return 0;
10200 _ACEOF
10201 rm -f conftest.$ac_objext
10202 if { (ac_try="$ac_compile"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_compile") 2>conftest.er1
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } && {
10215 test -z "$ac_c_werror_flag" ||
10216 test ! -s conftest.err
10217 } && test -s conftest.$ac_objext; then
10218 ac_cv_type_pid_t=yes
10219 else
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 ac_cv_type_pid_t=no
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10229 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10231 # The cast to long int works around a bug in the HP C Compiler
10232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10234 # This bug is HP SR number 8606223364.
10235 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10236 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10237 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 if test "$cross_compiling" = yes; then
10241 # Depending upon the size, compute the lo and hi bounds.
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 $ac_includes_default
10249 typedef pid_t ac__type_sizeof_;
10251 main ()
10253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10254 test_array [0] = 0
10257 return 0;
10259 _ACEOF
10260 rm -f conftest.$ac_objext
10261 if { (ac_try="$ac_compile"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_compile") 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && {
10274 test -z "$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 } && test -s conftest.$ac_objext; then
10277 ac_lo=0 ac_mid=0
10278 while :; do
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h. */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 $ac_includes_default
10286 typedef pid_t ac__type_sizeof_;
10288 main ()
10290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10291 test_array [0] = 0
10294 return 0;
10296 _ACEOF
10297 rm -f conftest.$ac_objext
10298 if { (ac_try="$ac_compile"
10299 case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_compile") 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && {
10311 test -z "$ac_c_werror_flag" ||
10312 test ! -s conftest.err
10313 } && test -s conftest.$ac_objext; then
10314 ac_hi=$ac_mid; break
10315 else
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 ac_lo=`expr $ac_mid + 1`
10320 if test $ac_lo -le $ac_mid; then
10321 ac_lo= ac_hi=
10322 break
10324 ac_mid=`expr 2 '*' $ac_mid + 1`
10327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10328 done
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 cat >conftest.$ac_ext <<_ACEOF
10334 /* confdefs.h. */
10335 _ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10339 $ac_includes_default
10340 typedef pid_t ac__type_sizeof_;
10342 main ()
10344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10345 test_array [0] = 0
10348 return 0;
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (ac_try="$ac_compile"
10353 case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_compile") 2>conftest.er1
10359 ac_status=$?
10360 grep -v '^ *+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } && {
10365 test -z "$ac_c_werror_flag" ||
10366 test ! -s conftest.err
10367 } && test -s conftest.$ac_objext; then
10368 ac_hi=-1 ac_mid=-1
10369 while :; do
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376 $ac_includes_default
10377 typedef pid_t ac__type_sizeof_;
10379 main ()
10381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10382 test_array [0] = 0
10385 return 0;
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (ac_try="$ac_compile"
10390 case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_compile") 2>conftest.er1
10396 ac_status=$?
10397 grep -v '^ *+' conftest.er1 >conftest.err
10398 rm -f conftest.er1
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && {
10402 test -z "$ac_c_werror_flag" ||
10403 test ! -s conftest.err
10404 } && test -s conftest.$ac_objext; then
10405 ac_lo=$ac_mid; break
10406 else
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 ac_hi=`expr '(' $ac_mid ')' - 1`
10411 if test $ac_mid -le $ac_hi; then
10412 ac_lo= ac_hi=
10413 break
10415 ac_mid=`expr 2 '*' $ac_mid`
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 done
10420 else
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 ac_lo= ac_hi=
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431 # Binary search between lo and hi bounds.
10432 while test "x$ac_lo" != "x$ac_hi"; do
10433 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h. */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 $ac_includes_default
10441 typedef pid_t ac__type_sizeof_;
10443 main ()
10445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10446 test_array [0] = 0
10449 return 0;
10451 _ACEOF
10452 rm -f conftest.$ac_objext
10453 if { (ac_try="$ac_compile"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_compile") 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest.$ac_objext; then
10469 ac_hi=$ac_mid
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_lo=`expr '(' $ac_mid ')' + 1`
10477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10478 done
10479 case $ac_lo in
10480 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10481 '') if test "$ac_cv_type_pid_t" = yes; then
10482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10483 See \`config.log' for more details." >&5
10484 echo "$as_me: error: cannot compute sizeof (pid_t)
10485 See \`config.log' for more details." >&2;}
10486 { (exit 77); exit 77; }; }
10487 else
10488 ac_cv_sizeof_pid_t=0
10489 fi ;;
10490 esac
10491 else
10492 cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h. */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 $ac_includes_default
10499 typedef pid_t ac__type_sizeof_;
10500 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10501 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10502 #include <stdio.h>
10503 #include <stdlib.h>
10505 main ()
10508 FILE *f = fopen ("conftest.val", "w");
10509 if (! f)
10510 return 1;
10511 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10513 long int i = longval ();
10514 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10515 return 1;
10516 fprintf (f, "%ld\n", i);
10518 else
10520 unsigned long int i = ulongval ();
10521 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10522 return 1;
10523 fprintf (f, "%lu\n", i);
10525 return ferror (f) || fclose (f) != 0;
10528 return 0;
10530 _ACEOF
10531 rm -f conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_link") 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_sizeof_pid_t=`cat conftest.val`
10552 else
10553 echo "$as_me: program exited with status $ac_status" >&5
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ( exit $ac_status )
10558 if test "$ac_cv_type_pid_t" = yes; then
10559 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10560 See \`config.log' for more details." >&5
10561 echo "$as_me: error: cannot compute sizeof (pid_t)
10562 See \`config.log' for more details." >&2;}
10563 { (exit 77); exit 77; }; }
10564 else
10565 ac_cv_sizeof_pid_t=0
10568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10570 rm -f conftest.val
10572 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10573 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10577 cat >>confdefs.h <<_ACEOF
10578 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10579 _ACEOF
10583 { echo "$as_me:$LINENO: checking for long long support" >&5
10584 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10585 have_long_long=no
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h. */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10594 main ()
10596 long long x; x = (long long)0;
10598 return 0;
10600 _ACEOF
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest.$ac_objext; then
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_LONG_LONG 1
10622 _ACEOF
10624 have_long_long=yes
10626 else
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10635 echo "${ECHO_T}$have_long_long" >&6; }
10636 if test "$have_long_long" = yes ; then
10637 { echo "$as_me:$LINENO: checking for long long" >&5
10638 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10639 if test "${ac_cv_type_long_long+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h. */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648 $ac_includes_default
10649 typedef long long ac__type_new_;
10651 main ()
10653 if ((ac__type_new_ *) 0)
10654 return 0;
10655 if (sizeof (ac__type_new_))
10656 return 0;
10658 return 0;
10660 _ACEOF
10661 rm -f conftest.$ac_objext
10662 if { (ac_try="$ac_compile"
10663 case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10666 esac
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_compile") 2>conftest.er1
10669 ac_status=$?
10670 grep -v '^ *+' conftest.er1 >conftest.err
10671 rm -f conftest.er1
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } && {
10675 test -z "$ac_c_werror_flag" ||
10676 test ! -s conftest.err
10677 } && test -s conftest.$ac_objext; then
10678 ac_cv_type_long_long=yes
10679 else
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10683 ac_cv_type_long_long=no
10686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10689 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10691 # The cast to long int works around a bug in the HP C Compiler
10692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10694 # This bug is HP SR number 8606223364.
10695 { echo "$as_me:$LINENO: checking size of long long" >&5
10696 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10697 if test "${ac_cv_sizeof_long_long+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700 if test "$cross_compiling" = yes; then
10701 # Depending upon the size, compute the lo and hi bounds.
10702 cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h. */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 $ac_includes_default
10709 typedef long long ac__type_sizeof_;
10711 main ()
10713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10714 test_array [0] = 0
10717 return 0;
10719 _ACEOF
10720 rm -f conftest.$ac_objext
10721 if { (ac_try="$ac_compile"
10722 case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725 esac
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_compile") 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } && {
10734 test -z "$ac_c_werror_flag" ||
10735 test ! -s conftest.err
10736 } && test -s conftest.$ac_objext; then
10737 ac_lo=0 ac_mid=0
10738 while :; do
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h. */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10745 $ac_includes_default
10746 typedef long long ac__type_sizeof_;
10748 main ()
10750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10751 test_array [0] = 0
10754 return 0;
10756 _ACEOF
10757 rm -f conftest.$ac_objext
10758 if { (ac_try="$ac_compile"
10759 case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_compile") 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && {
10771 test -z "$ac_c_werror_flag" ||
10772 test ! -s conftest.err
10773 } && test -s conftest.$ac_objext; then
10774 ac_hi=$ac_mid; break
10775 else
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 ac_lo=`expr $ac_mid + 1`
10780 if test $ac_lo -le $ac_mid; then
10781 ac_lo= ac_hi=
10782 break
10784 ac_mid=`expr 2 '*' $ac_mid + 1`
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 done
10789 else
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h. */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 $ac_includes_default
10800 typedef long long ac__type_sizeof_;
10802 main ()
10804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10805 test_array [0] = 0
10808 return 0;
10810 _ACEOF
10811 rm -f conftest.$ac_objext
10812 if { (ac_try="$ac_compile"
10813 case "(($ac_try" in
10814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815 *) ac_try_echo=$ac_try;;
10816 esac
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818 (eval "$ac_compile") 2>conftest.er1
10819 ac_status=$?
10820 grep -v '^ *+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } && {
10825 test -z "$ac_c_werror_flag" ||
10826 test ! -s conftest.err
10827 } && test -s conftest.$ac_objext; then
10828 ac_hi=-1 ac_mid=-1
10829 while :; do
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 $ac_includes_default
10837 typedef long long ac__type_sizeof_;
10839 main ()
10841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10842 test_array [0] = 0
10845 return 0;
10847 _ACEOF
10848 rm -f conftest.$ac_objext
10849 if { (ac_try="$ac_compile"
10850 case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10853 esac
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_compile") 2>conftest.er1
10856 ac_status=$?
10857 grep -v '^ *+' conftest.er1 >conftest.err
10858 rm -f conftest.er1
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && {
10862 test -z "$ac_c_werror_flag" ||
10863 test ! -s conftest.err
10864 } && test -s conftest.$ac_objext; then
10865 ac_lo=$ac_mid; break
10866 else
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 ac_hi=`expr '(' $ac_mid ')' - 1`
10871 if test $ac_mid -le $ac_hi; then
10872 ac_lo= ac_hi=
10873 break
10875 ac_mid=`expr 2 '*' $ac_mid`
10878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10879 done
10880 else
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_lo= ac_hi=
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10891 # Binary search between lo and hi bounds.
10892 while test "x$ac_lo" != "x$ac_hi"; do
10893 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h. */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 $ac_includes_default
10901 typedef long long ac__type_sizeof_;
10903 main ()
10905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10906 test_array [0] = 0
10909 return 0;
10911 _ACEOF
10912 rm -f conftest.$ac_objext
10913 if { (ac_try="$ac_compile"
10914 case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10917 esac
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_compile") 2>conftest.er1
10920 ac_status=$?
10921 grep -v '^ *+' conftest.er1 >conftest.err
10922 rm -f conftest.er1
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } && {
10926 test -z "$ac_c_werror_flag" ||
10927 test ! -s conftest.err
10928 } && test -s conftest.$ac_objext; then
10929 ac_hi=$ac_mid
10930 else
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ac_lo=`expr '(' $ac_mid ')' + 1`
10937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10938 done
10939 case $ac_lo in
10940 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10941 '') if test "$ac_cv_type_long_long" = yes; then
10942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10943 See \`config.log' for more details." >&5
10944 echo "$as_me: error: cannot compute sizeof (long long)
10945 See \`config.log' for more details." >&2;}
10946 { (exit 77); exit 77; }; }
10947 else
10948 ac_cv_sizeof_long_long=0
10949 fi ;;
10950 esac
10951 else
10952 cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h. */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 $ac_includes_default
10959 typedef long long ac__type_sizeof_;
10960 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10961 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10962 #include <stdio.h>
10963 #include <stdlib.h>
10965 main ()
10968 FILE *f = fopen ("conftest.val", "w");
10969 if (! f)
10970 return 1;
10971 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10973 long int i = longval ();
10974 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10975 return 1;
10976 fprintf (f, "%ld\n", i);
10978 else
10980 unsigned long int i = ulongval ();
10981 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10982 return 1;
10983 fprintf (f, "%lu\n", i);
10985 return ferror (f) || fclose (f) != 0;
10988 return 0;
10990 _ACEOF
10991 rm -f conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11002 { (case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_try") 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 ac_cv_sizeof_long_long=`cat conftest.val`
11012 else
11013 echo "$as_me: program exited with status $ac_status" >&5
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11017 ( exit $ac_status )
11018 if test "$ac_cv_type_long_long" = yes; then
11019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11020 See \`config.log' for more details." >&5
11021 echo "$as_me: error: cannot compute sizeof (long long)
11022 See \`config.log' for more details." >&2;}
11023 { (exit 77); exit 77; }; }
11024 else
11025 ac_cv_sizeof_long_long=0
11028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11030 rm -f conftest.val
11032 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11033 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11037 cat >>confdefs.h <<_ACEOF
11038 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11039 _ACEOF
11044 { echo "$as_me:$LINENO: checking for long double support" >&5
11045 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11046 have_long_double=no
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h. */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11055 main ()
11057 long double x; x = (long double)0;
11059 return 0;
11061 _ACEOF
11062 rm -f conftest.$ac_objext
11063 if { (ac_try="$ac_compile"
11064 case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11067 esac
11068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069 (eval "$ac_compile") 2>conftest.er1
11070 ac_status=$?
11071 grep -v '^ *+' conftest.er1 >conftest.err
11072 rm -f conftest.er1
11073 cat conftest.err >&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } && {
11076 test -z "$ac_c_werror_flag" ||
11077 test ! -s conftest.err
11078 } && test -s conftest.$ac_objext; then
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_LONG_DOUBLE 1
11083 _ACEOF
11085 have_long_double=yes
11087 else
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11096 echo "${ECHO_T}$have_long_double" >&6; }
11097 if test "$have_long_double" = yes ; then
11098 { echo "$as_me:$LINENO: checking for long double" >&5
11099 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11100 if test "${ac_cv_type_long_double+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103 cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h. */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 $ac_includes_default
11110 typedef long double ac__type_new_;
11112 main ()
11114 if ((ac__type_new_ *) 0)
11115 return 0;
11116 if (sizeof (ac__type_new_))
11117 return 0;
11119 return 0;
11121 _ACEOF
11122 rm -f conftest.$ac_objext
11123 if { (ac_try="$ac_compile"
11124 case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11127 esac
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_compile") 2>conftest.er1
11130 ac_status=$?
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } && {
11136 test -z "$ac_c_werror_flag" ||
11137 test ! -s conftest.err
11138 } && test -s conftest.$ac_objext; then
11139 ac_cv_type_long_double=yes
11140 else
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 ac_cv_type_long_double=no
11147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11150 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11152 # The cast to long int works around a bug in the HP C Compiler
11153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11155 # This bug is HP SR number 8606223364.
11156 { echo "$as_me:$LINENO: checking size of long double" >&5
11157 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11158 if test "${ac_cv_sizeof_long_double+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161 if test "$cross_compiling" = yes; then
11162 # Depending upon the size, compute the lo and hi bounds.
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 typedef long double ac__type_sizeof_;
11172 main ()
11174 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11175 test_array [0] = 0
11178 return 0;
11180 _ACEOF
11181 rm -f conftest.$ac_objext
11182 if { (ac_try="$ac_compile"
11183 case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11186 esac
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_compile") 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest.$ac_objext; then
11198 ac_lo=0 ac_mid=0
11199 while :; do
11200 cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h. */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11206 $ac_includes_default
11207 typedef long double ac__type_sizeof_;
11209 main ()
11211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11212 test_array [0] = 0
11215 return 0;
11217 _ACEOF
11218 rm -f conftest.$ac_objext
11219 if { (ac_try="$ac_compile"
11220 case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_compile") 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } && {
11232 test -z "$ac_c_werror_flag" ||
11233 test ! -s conftest.err
11234 } && test -s conftest.$ac_objext; then
11235 ac_hi=$ac_mid; break
11236 else
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ac_lo=`expr $ac_mid + 1`
11241 if test $ac_lo -le $ac_mid; then
11242 ac_lo= ac_hi=
11243 break
11245 ac_mid=`expr 2 '*' $ac_mid + 1`
11248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11249 done
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h. */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 $ac_includes_default
11261 typedef long double ac__type_sizeof_;
11263 main ()
11265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11266 test_array [0] = 0
11269 return 0;
11271 _ACEOF
11272 rm -f conftest.$ac_objext
11273 if { (ac_try="$ac_compile"
11274 case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_compile") 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest.$ac_objext; then
11289 ac_hi=-1 ac_mid=-1
11290 while :; do
11291 cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h. */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 $ac_includes_default
11298 typedef long double ac__type_sizeof_;
11300 main ()
11302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11303 test_array [0] = 0
11306 return 0;
11308 _ACEOF
11309 rm -f conftest.$ac_objext
11310 if { (ac_try="$ac_compile"
11311 case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11314 esac
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_compile") 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest.$ac_objext; then
11326 ac_lo=$ac_mid; break
11327 else
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 ac_hi=`expr '(' $ac_mid ')' - 1`
11332 if test $ac_mid -le $ac_hi; then
11333 ac_lo= ac_hi=
11334 break
11336 ac_mid=`expr 2 '*' $ac_mid`
11339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11340 done
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_lo= ac_hi=
11348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352 # Binary search between lo and hi bounds.
11353 while test "x$ac_lo" != "x$ac_hi"; do
11354 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11355 cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 $ac_includes_default
11362 typedef long double ac__type_sizeof_;
11364 main ()
11366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11367 test_array [0] = 0
11370 return 0;
11372 _ACEOF
11373 rm -f conftest.$ac_objext
11374 if { (ac_try="$ac_compile"
11375 case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_compile") 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && {
11387 test -z "$ac_c_werror_flag" ||
11388 test ! -s conftest.err
11389 } && test -s conftest.$ac_objext; then
11390 ac_hi=$ac_mid
11391 else
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 ac_lo=`expr '(' $ac_mid ')' + 1`
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399 done
11400 case $ac_lo in
11401 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11402 '') if test "$ac_cv_type_long_double" = yes; then
11403 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11404 See \`config.log' for more details." >&5
11405 echo "$as_me: error: cannot compute sizeof (long double)
11406 See \`config.log' for more details." >&2;}
11407 { (exit 77); exit 77; }; }
11408 else
11409 ac_cv_sizeof_long_double=0
11410 fi ;;
11411 esac
11412 else
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h. */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 $ac_includes_default
11420 typedef long double ac__type_sizeof_;
11421 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11422 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11423 #include <stdio.h>
11424 #include <stdlib.h>
11426 main ()
11429 FILE *f = fopen ("conftest.val", "w");
11430 if (! f)
11431 return 1;
11432 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11434 long int i = longval ();
11435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11436 return 1;
11437 fprintf (f, "%ld\n", i);
11439 else
11441 unsigned long int i = ulongval ();
11442 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11443 return 1;
11444 fprintf (f, "%lu\n", i);
11446 return ferror (f) || fclose (f) != 0;
11449 return 0;
11451 _ACEOF
11452 rm -f conftest$ac_exeext
11453 if { (ac_try="$ac_link"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_link") 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11463 { (case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466 esac
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_try") 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 ac_cv_sizeof_long_double=`cat conftest.val`
11473 else
11474 echo "$as_me: program exited with status $ac_status" >&5
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 ( exit $ac_status )
11479 if test "$ac_cv_type_long_double" = yes; then
11480 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11481 See \`config.log' for more details." >&5
11482 echo "$as_me: error: cannot compute sizeof (long double)
11483 See \`config.log' for more details." >&2;}
11484 { (exit 77); exit 77; }; }
11485 else
11486 ac_cv_sizeof_long_double=0
11489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11491 rm -f conftest.val
11493 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11494 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11498 cat >>confdefs.h <<_ACEOF
11499 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11500 _ACEOF
11506 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11507 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11508 have_c99_bool=no
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h. */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11517 main ()
11519 _Bool x; x = (_Bool)0;
11521 return 0;
11523 _ACEOF
11524 rm -f conftest.$ac_objext
11525 if { (ac_try="$ac_compile"
11526 case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11529 esac
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_compile") 2>conftest.er1
11532 ac_status=$?
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && {
11538 test -z "$ac_c_werror_flag" ||
11539 test ! -s conftest.err
11540 } && test -s conftest.$ac_objext; then
11543 cat >>confdefs.h <<\_ACEOF
11544 #define HAVE_C99_BOOL 1
11545 _ACEOF
11547 have_c99_bool=yes
11549 else
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11558 echo "${ECHO_T}$have_c99_bool" >&6; }
11559 if test "$have_c99_bool" = yes ; then
11560 { echo "$as_me:$LINENO: checking for _Bool" >&5
11561 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11562 if test "${ac_cv_type__Bool+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h. */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 $ac_includes_default
11572 typedef _Bool ac__type_new_;
11574 main ()
11576 if ((ac__type_new_ *) 0)
11577 return 0;
11578 if (sizeof (ac__type_new_))
11579 return 0;
11581 return 0;
11583 _ACEOF
11584 rm -f conftest.$ac_objext
11585 if { (ac_try="$ac_compile"
11586 case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11589 esac
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_compile") 2>conftest.er1
11592 ac_status=$?
11593 grep -v '^ *+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } && {
11598 test -z "$ac_c_werror_flag" ||
11599 test ! -s conftest.err
11600 } && test -s conftest.$ac_objext; then
11601 ac_cv_type__Bool=yes
11602 else
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 ac_cv_type__Bool=no
11609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11611 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11612 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11614 # The cast to long int works around a bug in the HP C Compiler
11615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11617 # This bug is HP SR number 8606223364.
11618 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11619 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11620 if test "${ac_cv_sizeof__Bool+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623 if test "$cross_compiling" = yes; then
11624 # Depending upon the size, compute the lo and hi bounds.
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h. */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 $ac_includes_default
11632 typedef _Bool ac__type_sizeof_;
11634 main ()
11636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11637 test_array [0] = 0
11640 return 0;
11642 _ACEOF
11643 rm -f conftest.$ac_objext
11644 if { (ac_try="$ac_compile"
11645 case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_compile") 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && {
11657 test -z "$ac_c_werror_flag" ||
11658 test ! -s conftest.err
11659 } && test -s conftest.$ac_objext; then
11660 ac_lo=0 ac_mid=0
11661 while :; do
11662 cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h. */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 $ac_includes_default
11669 typedef _Bool ac__type_sizeof_;
11671 main ()
11673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11674 test_array [0] = 0
11677 return 0;
11679 _ACEOF
11680 rm -f conftest.$ac_objext
11681 if { (ac_try="$ac_compile"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_compile") 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } && {
11694 test -z "$ac_c_werror_flag" ||
11695 test ! -s conftest.err
11696 } && test -s conftest.$ac_objext; then
11697 ac_hi=$ac_mid; break
11698 else
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 ac_lo=`expr $ac_mid + 1`
11703 if test $ac_lo -le $ac_mid; then
11704 ac_lo= ac_hi=
11705 break
11707 ac_mid=`expr 2 '*' $ac_mid + 1`
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 done
11712 else
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11716 cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h. */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 $ac_includes_default
11723 typedef _Bool ac__type_sizeof_;
11725 main ()
11727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11728 test_array [0] = 0
11731 return 0;
11733 _ACEOF
11734 rm -f conftest.$ac_objext
11735 if { (ac_try="$ac_compile"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_compile") 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } && {
11748 test -z "$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 } && test -s conftest.$ac_objext; then
11751 ac_hi=-1 ac_mid=-1
11752 while :; do
11753 cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h. */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 $ac_includes_default
11760 typedef _Bool ac__type_sizeof_;
11762 main ()
11764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11765 test_array [0] = 0
11768 return 0;
11770 _ACEOF
11771 rm -f conftest.$ac_objext
11772 if { (ac_try="$ac_compile"
11773 case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_compile") 2>conftest.er1
11779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } && {
11785 test -z "$ac_c_werror_flag" ||
11786 test ! -s conftest.err
11787 } && test -s conftest.$ac_objext; then
11788 ac_lo=$ac_mid; break
11789 else
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 ac_hi=`expr '(' $ac_mid ')' - 1`
11794 if test $ac_mid -le $ac_hi; then
11795 ac_lo= ac_hi=
11796 break
11798 ac_mid=`expr 2 '*' $ac_mid`
11801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802 done
11803 else
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 ac_lo= ac_hi=
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11814 # Binary search between lo and hi bounds.
11815 while test "x$ac_lo" != "x$ac_hi"; do
11816 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h. */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 $ac_includes_default
11824 typedef _Bool ac__type_sizeof_;
11826 main ()
11828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11829 test_array [0] = 0
11832 return 0;
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_compile") 2>conftest.er1
11843 ac_status=$?
11844 grep -v '^ *+' conftest.er1 >conftest.err
11845 rm -f conftest.er1
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest.$ac_objext; then
11852 ac_hi=$ac_mid
11853 else
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_lo=`expr '(' $ac_mid ')' + 1`
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 done
11862 case $ac_lo in
11863 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11864 '') if test "$ac_cv_type__Bool" = yes; then
11865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11866 See \`config.log' for more details." >&5
11867 echo "$as_me: error: cannot compute sizeof (_Bool)
11868 See \`config.log' for more details." >&2;}
11869 { (exit 77); exit 77; }; }
11870 else
11871 ac_cv_sizeof__Bool=0
11872 fi ;;
11873 esac
11874 else
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 $ac_includes_default
11882 typedef _Bool ac__type_sizeof_;
11883 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11884 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11885 #include <stdio.h>
11886 #include <stdlib.h>
11888 main ()
11891 FILE *f = fopen ("conftest.val", "w");
11892 if (! f)
11893 return 1;
11894 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11896 long int i = longval ();
11897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11898 return 1;
11899 fprintf (f, "%ld\n", i);
11901 else
11903 unsigned long int i = ulongval ();
11904 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11905 return 1;
11906 fprintf (f, "%lu\n", i);
11908 return ferror (f) || fclose (f) != 0;
11911 return 0;
11913 _ACEOF
11914 rm -f conftest$ac_exeext
11915 if { (ac_try="$ac_link"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_link") 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_cv_sizeof__Bool=`cat conftest.val`
11935 else
11936 echo "$as_me: program exited with status $ac_status" >&5
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ( exit $ac_status )
11941 if test "$ac_cv_type__Bool" = yes; then
11942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11943 See \`config.log' for more details." >&5
11944 echo "$as_me: error: cannot compute sizeof (_Bool)
11945 See \`config.log' for more details." >&2;}
11946 { (exit 77); exit 77; }; }
11947 else
11948 ac_cv_sizeof__Bool=0
11951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11953 rm -f conftest.val
11955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11956 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11960 cat >>confdefs.h <<_ACEOF
11961 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11962 _ACEOF
11967 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11968 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11969 if test "${ac_cv_type_uintptr_t+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 else
11972 cat >conftest.$ac_ext <<_ACEOF
11973 /* confdefs.h. */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11978 #ifdef HAVE_STDINT_H
11979 #include <stdint.h>
11980 #endif
11982 typedef uintptr_t ac__type_new_;
11984 main ()
11986 if ((ac__type_new_ *) 0)
11987 return 0;
11988 if (sizeof (ac__type_new_))
11989 return 0;
11991 return 0;
11993 _ACEOF
11994 rm -f conftest.$ac_objext
11995 if { (ac_try="$ac_compile"
11996 case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_compile") 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && {
12008 test -z "$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 } && test -s conftest.$ac_objext; then
12011 ac_cv_type_uintptr_t=yes
12012 else
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ac_cv_type_uintptr_t=no
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12022 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12023 if test $ac_cv_type_uintptr_t = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026 #define HAVE_UINTPTR_T 1
12027 _ACEOF
12029 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12030 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12031 if test "${ac_cv_type_uintptr_t+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 $ac_includes_default
12041 typedef uintptr_t ac__type_new_;
12043 main ()
12045 if ((ac__type_new_ *) 0)
12046 return 0;
12047 if (sizeof (ac__type_new_))
12048 return 0;
12050 return 0;
12052 _ACEOF
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_compile") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest.$ac_objext; then
12070 ac_cv_type_uintptr_t=yes
12071 else
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 ac_cv_type_uintptr_t=no
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12081 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12083 # The cast to long int works around a bug in the HP C Compiler
12084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12086 # This bug is HP SR number 8606223364.
12087 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12088 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12089 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092 if test "$cross_compiling" = yes; then
12093 # Depending upon the size, compute the lo and hi bounds.
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h. */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 $ac_includes_default
12101 typedef uintptr_t ac__type_sizeof_;
12103 main ()
12105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12106 test_array [0] = 0
12109 return 0;
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (ac_try="$ac_compile"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_compile") 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest.$ac_objext; then
12129 ac_lo=0 ac_mid=0
12130 while :; do
12131 cat >conftest.$ac_ext <<_ACEOF
12132 /* confdefs.h. */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137 $ac_includes_default
12138 typedef uintptr_t ac__type_sizeof_;
12140 main ()
12142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12143 test_array [0] = 0
12146 return 0;
12148 _ACEOF
12149 rm -f conftest.$ac_objext
12150 if { (ac_try="$ac_compile"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_compile") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest.$ac_objext; then
12166 ac_hi=$ac_mid; break
12167 else
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_lo=`expr $ac_mid + 1`
12172 if test $ac_lo -le $ac_mid; then
12173 ac_lo= ac_hi=
12174 break
12176 ac_mid=`expr 2 '*' $ac_mid + 1`
12179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 done
12181 else
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h. */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 $ac_includes_default
12192 typedef uintptr_t ac__type_sizeof_;
12194 main ()
12196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12197 test_array [0] = 0
12200 return 0;
12202 _ACEOF
12203 rm -f conftest.$ac_objext
12204 if { (ac_try="$ac_compile"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_compile") 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } && {
12217 test -z "$ac_c_werror_flag" ||
12218 test ! -s conftest.err
12219 } && test -s conftest.$ac_objext; then
12220 ac_hi=-1 ac_mid=-1
12221 while :; do
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h. */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 $ac_includes_default
12229 typedef uintptr_t ac__type_sizeof_;
12231 main ()
12233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12234 test_array [0] = 0
12237 return 0;
12239 _ACEOF
12240 rm -f conftest.$ac_objext
12241 if { (ac_try="$ac_compile"
12242 case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245 esac
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_compile") 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest.$ac_objext; then
12257 ac_lo=$ac_mid; break
12258 else
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12262 ac_hi=`expr '(' $ac_mid ')' - 1`
12263 if test $ac_mid -le $ac_hi; then
12264 ac_lo= ac_hi=
12265 break
12267 ac_mid=`expr 2 '*' $ac_mid`
12270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 done
12272 else
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12276 ac_lo= ac_hi=
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283 # Binary search between lo and hi bounds.
12284 while test "x$ac_lo" != "x$ac_hi"; do
12285 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h. */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 $ac_includes_default
12293 typedef uintptr_t ac__type_sizeof_;
12295 main ()
12297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12298 test_array [0] = 0
12301 return 0;
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (ac_try="$ac_compile"
12306 case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309 esac
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_compile") 2>conftest.er1
12312 ac_status=$?
12313 grep -v '^ *+' conftest.er1 >conftest.err
12314 rm -f conftest.er1
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } && {
12318 test -z "$ac_c_werror_flag" ||
12319 test ! -s conftest.err
12320 } && test -s conftest.$ac_objext; then
12321 ac_hi=$ac_mid
12322 else
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_lo=`expr '(' $ac_mid ')' + 1`
12329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330 done
12331 case $ac_lo in
12332 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12333 '') if test "$ac_cv_type_uintptr_t" = yes; then
12334 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12335 See \`config.log' for more details." >&5
12336 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12337 See \`config.log' for more details." >&2;}
12338 { (exit 77); exit 77; }; }
12339 else
12340 ac_cv_sizeof_uintptr_t=0
12341 fi ;;
12342 esac
12343 else
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h. */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 $ac_includes_default
12351 typedef uintptr_t ac__type_sizeof_;
12352 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12353 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12354 #include <stdio.h>
12355 #include <stdlib.h>
12357 main ()
12360 FILE *f = fopen ("conftest.val", "w");
12361 if (! f)
12362 return 1;
12363 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12365 long int i = longval ();
12366 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12367 return 1;
12368 fprintf (f, "%ld\n", i);
12370 else
12372 unsigned long int i = ulongval ();
12373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12374 return 1;
12375 fprintf (f, "%lu\n", i);
12377 return ferror (f) || fclose (f) != 0;
12380 return 0;
12382 _ACEOF
12383 rm -f conftest$ac_exeext
12384 if { (ac_try="$ac_link"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388 esac
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_link") 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12404 else
12405 echo "$as_me: program exited with status $ac_status" >&5
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 ( exit $ac_status )
12410 if test "$ac_cv_type_uintptr_t" = yes; then
12411 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12412 See \`config.log' for more details." >&5
12413 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12414 See \`config.log' for more details." >&2;}
12415 { (exit 77); exit 77; }; }
12416 else
12417 ac_cv_sizeof_uintptr_t=0
12420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12422 rm -f conftest.val
12424 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12425 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12429 cat >>confdefs.h <<_ACEOF
12430 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12431 _ACEOF
12438 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12439 { echo "$as_me:$LINENO: checking size of off_t" >&5
12440 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12441 if test "${ac_cv_sizeof_off_t+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444 if test "$cross_compiling" = yes; then
12445 ac_cv_sizeof_off_t=4
12446 else
12447 cat >conftest.$ac_ext <<_ACEOF
12448 /* confdefs.h. */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453 #include <stdio.h>
12454 #include <sys/types.h>
12455 main()
12457 FILE *f=fopen("conftestval", "w");
12458 if (!f) exit(1);
12459 fprintf(f, "%d\n", sizeof(off_t));
12460 exit(0);
12462 _ACEOF
12463 rm -f conftest$ac_exeext
12464 if { (ac_try="$ac_link"
12465 case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12468 esac
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_link") 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12474 { (case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12477 esac
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_try") 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_cv_sizeof_off_t=`cat conftestval`
12484 else
12485 echo "$as_me: program exited with status $ac_status" >&5
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 ( exit $ac_status )
12490 ac_cv_sizeof_off_t=0
12492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12499 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12500 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12502 cat >>confdefs.h <<_ACEOF
12503 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12504 _ACEOF
12507 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12508 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12509 if test "$have_long_long" = yes -a \
12510 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12511 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12513 cat >>confdefs.h <<\_ACEOF
12514 #define HAVE_LARGEFILE_SUPPORT 1
12515 _ACEOF
12517 { echo "$as_me:$LINENO: result: yes" >&5
12518 echo "${ECHO_T}yes" >&6; }
12519 else
12520 { echo "$as_me:$LINENO: result: no" >&5
12521 echo "${ECHO_T}no" >&6; }
12524 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12525 { echo "$as_me:$LINENO: checking size of time_t" >&5
12526 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12527 if test "${ac_cv_sizeof_time_t+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530 if test "$cross_compiling" = yes; then
12531 ac_cv_sizeof_time_t=4
12532 else
12533 cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h. */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 #include <stdio.h>
12540 #include <time.h>
12541 main()
12543 FILE *f=fopen("conftestval", "w");
12544 if (!f) exit(1);
12545 fprintf(f, "%d\n", sizeof(time_t));
12546 exit(0);
12548 _ACEOF
12549 rm -f conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_sizeof_time_t=`cat conftestval`
12570 else
12571 echo "$as_me: program exited with status $ac_status" >&5
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 ( exit $ac_status )
12576 ac_cv_sizeof_time_t=0
12578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12585 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12586 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12588 cat >>confdefs.h <<_ACEOF
12589 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12590 _ACEOF
12594 # if have pthread_t then define SIZEOF_PTHREAD_T
12595 ac_save_cc="$CC"
12596 if test "$ac_cv_kpthread" = "yes"
12597 then CC="$CC -Kpthread"
12598 elif test "$ac_cv_kthread" = "yes"
12599 then CC="$CC -Kthread"
12600 elif test "$ac_cv_pthread" = "yes"
12601 then CC="$CC -pthread"
12603 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12604 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12605 have_pthread_t=no
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h. */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 #include <pthread.h>
12614 main ()
12616 pthread_t x; x = *(pthread_t*)0;
12618 return 0;
12620 _ACEOF
12621 rm -f conftest.$ac_objext
12622 if { (ac_try="$ac_compile"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_compile") 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest.$ac_objext; then
12638 have_pthread_t=yes
12639 else
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12648 echo "${ECHO_T}$have_pthread_t" >&6; }
12649 if test "$have_pthread_t" = yes ; then
12650 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12651 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12652 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12653 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656 if test "$cross_compiling" = yes; then
12657 ac_cv_sizeof_pthread_t=4
12658 else
12659 cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h. */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12665 #include <stdio.h>
12666 #include <pthread.h>
12667 main()
12669 FILE *f=fopen("conftestval", "w");
12670 if (!f) exit(1);
12671 fprintf(f, "%d\n", sizeof(pthread_t));
12672 exit(0);
12674 _ACEOF
12675 rm -f conftest$ac_exeext
12676 if { (ac_try="$ac_link"
12677 case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_link") 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12689 esac
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_sizeof_pthread_t=`cat conftestval`
12696 else
12697 echo "$as_me: program exited with status $ac_status" >&5
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 ( exit $ac_status )
12702 ac_cv_sizeof_pthread_t=0
12704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12711 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12712 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12714 cat >>confdefs.h <<_ACEOF
12715 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12716 _ACEOF
12719 CC="$ac_save_cc"
12721 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12722 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12723 # Check whether --enable-toolbox-glue was given.
12724 if test "${enable_toolbox_glue+set}" = set; then
12725 enableval=$enable_toolbox_glue;
12729 if test -z "$enable_toolbox_glue"
12730 then
12731 case $ac_sys_system/$ac_sys_release in
12732 Darwin/*)
12733 enable_toolbox_glue="yes";;
12735 enable_toolbox_glue="no";;
12736 esac
12738 case "$enable_toolbox_glue" in
12739 yes)
12740 extra_machdep_objs="Python/mactoolboxglue.o"
12741 extra_undefs="-u _PyMac_Error"
12743 cat >>confdefs.h <<\_ACEOF
12744 #define USE_TOOLBOX_OBJECT_GLUE 1
12745 _ACEOF
12749 extra_machdep_objs=""
12750 extra_undefs=""
12752 esac
12753 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12754 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12757 case $ac_sys_system/$ac_sys_release in
12758 Darwin/[01567]\..*)
12759 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12761 Darwin/*)
12762 OTHER_LIBTOOL_OPT=""
12764 esac
12767 case $ac_sys_system/$ac_sys_release in
12768 Darwin/[01567]\..*)
12769 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12770 if test "${enable_universalsdk}"; then
12772 else
12773 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
12775 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12776 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12777 Darwin/*)
12778 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12779 if test ${gcc_version} '<' 4.0
12780 then
12781 LIBTOOL_CRUFT="-lcc_dynamic"
12782 else
12783 LIBTOOL_CRUFT=""
12785 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
12786 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12787 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12788 esac
12790 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12791 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12792 if test "$enable_framework"
12793 then
12794 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12795 # -F. is needed to allow linking to the framework while
12796 # in the build location.
12798 cat >>confdefs.h <<\_ACEOF
12799 #define WITH_NEXT_FRAMEWORK 1
12800 _ACEOF
12802 { echo "$as_me:$LINENO: result: yes" >&5
12803 echo "${ECHO_T}yes" >&6; }
12804 else
12805 { echo "$as_me:$LINENO: result: no" >&5
12806 echo "${ECHO_T}no" >&6; }
12809 { echo "$as_me:$LINENO: checking for dyld" >&5
12810 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12811 case $ac_sys_system/$ac_sys_release in
12812 Darwin/*)
12814 cat >>confdefs.h <<\_ACEOF
12815 #define WITH_DYLD 1
12816 _ACEOF
12818 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12819 echo "${ECHO_T}always on for Darwin" >&6; }
12822 { echo "$as_me:$LINENO: result: no" >&5
12823 echo "${ECHO_T}no" >&6; }
12825 esac
12827 # Set info about shared libraries.
12833 # SO is the extension of shared libraries `(including the dot!)
12834 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12835 { echo "$as_me:$LINENO: checking SO" >&5
12836 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12837 if test -z "$SO"
12838 then
12839 case $ac_sys_system in
12840 hp*|HP*)
12841 case `uname -m` in
12842 ia64) SO=.so;;
12843 *) SO=.sl;;
12844 esac
12846 CYGWIN*) SO=.dll;;
12847 *) SO=.so;;
12848 esac
12849 else
12850 # this might also be a termcap variable, see #610332
12851 echo
12852 echo '====================================================================='
12853 echo '+ +'
12854 echo '+ WARNING: You have set SO in your environment. +'
12855 echo '+ Do you really mean to change the extension for shared libraries? +'
12856 echo '+ Continuing in 10 seconds to let you to ponder. +'
12857 echo '+ +'
12858 echo '====================================================================='
12859 sleep 10
12861 { echo "$as_me:$LINENO: result: $SO" >&5
12862 echo "${ECHO_T}$SO" >&6; }
12864 cat >>confdefs.h <<_ACEOF
12865 #define SHLIB_EXT "$SO"
12866 _ACEOF
12868 # LDSHARED is the ld *command* used to create shared library
12869 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12870 # (Shared libraries in this instance are shared modules to be loaded into
12871 # Python, as opposed to building Python itself as a shared library.)
12872 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12873 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12874 if test -z "$LDSHARED"
12875 then
12876 case $ac_sys_system/$ac_sys_release in
12877 AIX*)
12878 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12879 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12881 IRIX/5*) LDSHARED="ld -shared";;
12882 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
12883 SunOS/5*)
12884 if test "$GCC" = "yes"
12885 then LDSHARED='$(CC) -shared'
12886 else LDSHARED='$(CC) -G';
12887 fi ;;
12888 hp*|HP*)
12889 if test "$GCC" = "yes"
12890 then LDSHARED='$(CC) -shared'
12891 else LDSHARED='ld -b';
12892 fi ;;
12893 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
12894 Darwin/1.3*)
12895 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12896 if test "$enable_framework" ; then
12897 # Link against the framework. All externals should be defined.
12898 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12899 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12900 else
12901 # No framework. Ignore undefined symbols, assuming they come from Python
12902 LDSHARED="$LDSHARED -undefined suppress"
12903 fi ;;
12904 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12905 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12906 if test "$enable_framework" ; then
12907 # Link against the framework. All externals should be defined.
12908 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12909 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12910 else
12911 # No framework, use the Python app as bundle-loader
12912 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12913 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12914 fi ;;
12915 Darwin/*)
12916 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12917 # This allows an extension to be used in any Python
12918 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12919 if test ${cur_target} '>' 10.2; then
12920 cur_target=10.3
12922 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12924 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12925 # environment with a value that is the same as what we'll use
12926 # in the Makefile to ensure that we'll get the same compiler
12927 # environment during configure and build time.
12928 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12929 export MACOSX_DEPLOYMENT_TARGET
12931 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
12932 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12933 then
12934 if test "${enable_universalsdk}"; then
12935 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12937 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12938 BLDSHARED="$LDSHARED"
12939 else
12940 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12941 if test "$enable_framework" ; then
12942 # Link against the framework. All externals should be defined.
12943 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12944 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12945 else
12946 # No framework, use the Python app as bundle-loader
12947 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12948 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12952 Linux*|GNU*) LDSHARED='$(CC) -shared';;
12953 BSD/OS*/4*) LDSHARED="gcc -shared";;
12954 FreeBSD*)
12955 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12956 then
12957 LDSHARED="$CC -shared ${LDFLAGS}"
12958 else
12959 LDSHARED="ld -Bshareable ${LDFLAGS}"
12960 fi;;
12961 OpenBSD*)
12962 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12963 then
12964 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12965 else
12966 case `uname -r` in
12967 [01].* | 2.[0-7] | 2.[0-7].*)
12968 LDSHARED="ld -Bshareable ${LDFLAGS}"
12971 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12973 esac
12974 fi;;
12975 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
12976 OpenUNIX*|UnixWare*)
12977 if test "$GCC" = "yes"
12978 then LDSHARED='$(CC) -shared'
12979 else LDSHARED='$(CC) -G'
12980 fi;;
12981 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
12982 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12983 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
12984 atheos*) LDSHARED="gcc -shared";;
12985 *) LDSHARED="ld";;
12986 esac
12988 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12989 echo "${ECHO_T}$LDSHARED" >&6; }
12990 BLDSHARED=${BLDSHARED-$LDSHARED}
12991 # CCSHARED are the C *flags* used to create objects to go into a shared
12992 # library (module) -- this is only needed for a few systems
12993 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12994 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12995 if test -z "$CCSHARED"
12996 then
12997 case $ac_sys_system/$ac_sys_release in
12998 SunOS*) if test "$GCC" = yes;
12999 then CCSHARED="-fPIC";
13000 elif test `uname -p` = sparc;
13001 then CCSHARED="-xcode=pic32";
13002 else CCSHARED="-Kpic";
13003 fi;;
13004 hp*|HP*) if test "$GCC" = yes;
13005 then CCSHARED="-fPIC";
13006 else CCSHARED="+z";
13007 fi;;
13008 Linux*|GNU*) CCSHARED="-fPIC";;
13009 BSD/OS*/4*) CCSHARED="-fpic";;
13010 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13011 OpenUNIX*|UnixWare*)
13012 if test "$GCC" = "yes"
13013 then CCSHARED="-fPIC"
13014 else CCSHARED="-KPIC"
13015 fi;;
13016 SCO_SV*)
13017 if test "$GCC" = "yes"
13018 then CCSHARED="-fPIC"
13019 else CCSHARED="-Kpic -belf"
13020 fi;;
13021 Monterey*) CCSHARED="-G";;
13022 IRIX*/6*) case $CC in
13023 *gcc*) CCSHARED="-shared";;
13024 *) CCSHARED="";;
13025 esac;;
13026 atheos*) CCSHARED="-fPIC";;
13027 esac
13029 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13030 echo "${ECHO_T}$CCSHARED" >&6; }
13031 # LINKFORSHARED are the flags passed to the $(CC) command that links
13032 # the python executable -- this is only needed for a few systems
13033 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13034 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13035 if test -z "$LINKFORSHARED"
13036 then
13037 case $ac_sys_system/$ac_sys_release in
13038 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13039 hp*|HP*)
13040 LINKFORSHARED="-Wl,-E -Wl,+s";;
13041 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13042 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13043 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13044 # -u libsys_s pulls in all symbols in libsys
13045 Darwin/*)
13046 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13047 # which is
13048 # not used by the core itself but which needs to be in the core so
13049 # that dynamically loaded extension modules have access to it.
13050 # -prebind is no longer used, because it actually seems to give a
13051 # slowdown in stead of a speedup, maybe due to the large number of
13052 # dynamic loads Python does.
13054 LINKFORSHARED="$extra_undefs"
13055 if test "$enable_framework"
13056 then
13057 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13059 LINKFORSHARED="$LINKFORSHARED";;
13060 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13061 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13062 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13063 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13064 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13065 then
13066 LINKFORSHARED="-Wl,--export-dynamic"
13067 fi;;
13068 SunOS/5*) case $CC in
13069 *gcc*)
13070 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13071 then
13072 LINKFORSHARED="-Xlinker --export-dynamic"
13073 fi;;
13074 esac;;
13075 CYGWIN*)
13076 if test $enable_shared = "no"
13077 then
13078 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13079 fi;;
13080 esac
13082 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13083 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13086 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13087 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13088 if test ! "$LIBRARY" = "$LDLIBRARY"
13089 then
13090 case $ac_sys_system in
13091 CYGWIN*)
13092 # Cygwin needs CCSHARED when building extension DLLs
13093 # but not when building the interpreter DLL.
13094 CFLAGSFORSHARED='';;
13096 CFLAGSFORSHARED='$(CCSHARED)'
13097 esac
13099 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13100 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13102 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13103 # library (with --enable-shared).
13104 # For platforms on which shared libraries are not allowed to have unresolved
13105 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13106 # if it is not required, since it creates a dependency of the shared library
13107 # to LIBS. This, in turn, means that applications linking the shared libpython
13108 # don't need to link LIBS explicitly. The default should be only changed
13109 # on systems where this approach causes problems.
13111 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13112 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13113 case "$ac_sys_system" in
13115 SHLIBS='$(LIBS)';;
13116 esac
13117 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13118 echo "${ECHO_T}$SHLIBS" >&6; }
13121 # checks for libraries
13123 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13124 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13125 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-ldl $LIBS"
13130 cat >conftest.$ac_ext <<_ACEOF
13131 /* confdefs.h. */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13140 #ifdef __cplusplus
13141 extern "C"
13142 #endif
13143 char dlopen ();
13145 main ()
13147 return dlopen ();
13149 return 0;
13151 _ACEOF
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (ac_try="$ac_link"
13154 case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_link") 2>conftest.er1
13160 ac_status=$?
13161 grep -v '^ *+' conftest.er1 >conftest.err
13162 rm -f conftest.er1
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && {
13166 test -z "$ac_c_werror_flag" ||
13167 test ! -s conftest.err
13168 } && test -s conftest$ac_exeext &&
13169 $as_test_x conftest$ac_exeext; then
13170 ac_cv_lib_dl_dlopen=yes
13171 else
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13175 ac_cv_lib_dl_dlopen=no
13178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13182 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13183 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13184 if test $ac_cv_lib_dl_dlopen = yes; then
13185 cat >>confdefs.h <<_ACEOF
13186 #define HAVE_LIBDL 1
13187 _ACEOF
13189 LIBS="-ldl $LIBS"
13192 # Dynamic linking for SunOS/Solaris and SYSV
13194 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13195 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13196 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199 ac_check_lib_save_LIBS=$LIBS
13200 LIBS="-ldld $LIBS"
13201 cat >conftest.$ac_ext <<_ACEOF
13202 /* confdefs.h. */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 char shl_load ();
13216 main ()
13218 return shl_load ();
13220 return 0;
13222 _ACEOF
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13228 esac
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_link") 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } && {
13237 test -z "$ac_c_werror_flag" ||
13238 test ! -s conftest.err
13239 } && test -s conftest$ac_exeext &&
13240 $as_test_x conftest$ac_exeext; then
13241 ac_cv_lib_dld_shl_load=yes
13242 else
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 ac_cv_lib_dld_shl_load=no
13249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13250 conftest$ac_exeext conftest.$ac_ext
13251 LIBS=$ac_check_lib_save_LIBS
13253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13254 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13255 if test $ac_cv_lib_dld_shl_load = yes; then
13256 cat >>confdefs.h <<_ACEOF
13257 #define HAVE_LIBDLD 1
13258 _ACEOF
13260 LIBS="-ldld $LIBS"
13263 # Dynamic linking for HP-UX
13265 # only check for sem_ini if thread support is requested
13266 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13267 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13268 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13269 if test "${ac_cv_search_sem_init+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 else
13272 ac_func_search_save_LIBS=$LIBS
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char sem_init ();
13288 main ()
13290 return sem_init ();
13292 return 0;
13294 _ACEOF
13295 for ac_lib in '' pthread rt posix4; do
13296 if test -z "$ac_lib"; then
13297 ac_res="none required"
13298 else
13299 ac_res=-l$ac_lib
13300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (ac_try="$ac_link"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_link") 2>conftest.er1
13310 ac_status=$?
13311 grep -v '^ *+' conftest.er1 >conftest.err
13312 rm -f conftest.er1
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } && {
13316 test -z "$ac_c_werror_flag" ||
13317 test ! -s conftest.err
13318 } && test -s conftest$ac_exeext &&
13319 $as_test_x conftest$ac_exeext; then
13320 ac_cv_search_sem_init=$ac_res
13321 else
13322 echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13329 conftest$ac_exeext
13330 if test "${ac_cv_search_sem_init+set}" = set; then
13331 break
13333 done
13334 if test "${ac_cv_search_sem_init+set}" = set; then
13336 else
13337 ac_cv_search_sem_init=no
13339 rm conftest.$ac_ext
13340 LIBS=$ac_func_search_save_LIBS
13342 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13343 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13344 ac_res=$ac_cv_search_sem_init
13345 if test "$ac_res" != no; then
13346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13349 # 'Real Time' functions on Solaris
13350 # posix4 on Solaris 2.6
13351 # pthread (first!) on Linux
13354 # check if we need libintl for locale functions
13355 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13356 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13357 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360 ac_check_lib_save_LIBS=$LIBS
13361 LIBS="-lintl $LIBS"
13362 cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h. */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13369 /* Override any GCC internal prototype to avoid an error.
13370 Use char because int might match the return type of a GCC
13371 builtin and then its argument prototype would still apply. */
13372 #ifdef __cplusplus
13373 extern "C"
13374 #endif
13375 char textdomain ();
13377 main ()
13379 return textdomain ();
13381 return 0;
13383 _ACEOF
13384 rm -f conftest.$ac_objext conftest$ac_exeext
13385 if { (ac_try="$ac_link"
13386 case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13389 esac
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_link") 2>conftest.er1
13392 ac_status=$?
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } && {
13398 test -z "$ac_c_werror_flag" ||
13399 test ! -s conftest.err
13400 } && test -s conftest$ac_exeext &&
13401 $as_test_x conftest$ac_exeext; then
13402 ac_cv_lib_intl_textdomain=yes
13403 else
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13407 ac_cv_lib_intl_textdomain=no
13410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13411 conftest$ac_exeext conftest.$ac_ext
13412 LIBS=$ac_check_lib_save_LIBS
13414 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13415 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13416 if test $ac_cv_lib_intl_textdomain = yes; then
13418 cat >>confdefs.h <<\_ACEOF
13419 #define WITH_LIBINTL 1
13420 _ACEOF
13425 # checks for system dependent C++ extensions support
13426 case "$ac_sys_system" in
13427 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13428 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13429 cat >conftest.$ac_ext <<_ACEOF
13430 /* confdefs.h. */
13431 _ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13435 #include "/usr/lpp/xlC/include/load.h"
13437 main ()
13439 loadAndInit("", 0, "")
13441 return 0;
13443 _ACEOF
13444 rm -f conftest.$ac_objext conftest$ac_exeext
13445 if { (ac_try="$ac_link"
13446 case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13449 esac
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_link") 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } && {
13458 test -z "$ac_c_werror_flag" ||
13459 test ! -s conftest.err
13460 } && test -s conftest$ac_exeext &&
13461 $as_test_x conftest$ac_exeext; then
13463 cat >>confdefs.h <<\_ACEOF
13464 #define AIX_GENUINE_CPLUSPLUS 1
13465 _ACEOF
13467 { echo "$as_me:$LINENO: result: yes" >&5
13468 echo "${ECHO_T}yes" >&6; }
13469 else
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 { echo "$as_me:$LINENO: result: no" >&5
13474 echo "${ECHO_T}no" >&6; }
13477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13478 conftest$ac_exeext conftest.$ac_ext;;
13479 *) ;;
13480 esac
13482 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13483 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13484 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13485 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488 ac_check_lib_save_LIBS=$LIBS
13489 LIBS="-lnsl $LIBS"
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h. */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13500 #ifdef __cplusplus
13501 extern "C"
13502 #endif
13503 char t_open ();
13505 main ()
13507 return t_open ();
13509 return 0;
13511 _ACEOF
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (ac_try="$ac_link"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_link") 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && {
13526 test -z "$ac_c_werror_flag" ||
13527 test ! -s conftest.err
13528 } && test -s conftest$ac_exeext &&
13529 $as_test_x conftest$ac_exeext; then
13530 ac_cv_lib_nsl_t_open=yes
13531 else
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13535 ac_cv_lib_nsl_t_open=no
13538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13539 conftest$ac_exeext conftest.$ac_ext
13540 LIBS=$ac_check_lib_save_LIBS
13542 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13543 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13544 if test $ac_cv_lib_nsl_t_open = yes; then
13545 LIBS="-lnsl $LIBS"
13547 # SVR4
13548 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13549 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13550 if test "${ac_cv_lib_socket_socket+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553 ac_check_lib_save_LIBS=$LIBS
13554 LIBS="-lsocket $LIBS $LIBS"
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13562 /* Override any GCC internal prototype to avoid an error.
13563 Use char because int might match the return type of a GCC
13564 builtin and then its argument prototype would still apply. */
13565 #ifdef __cplusplus
13566 extern "C"
13567 #endif
13568 char socket ();
13570 main ()
13572 return socket ();
13574 return 0;
13576 _ACEOF
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (ac_try="$ac_link"
13579 case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13582 esac
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_link") 2>conftest.er1
13585 ac_status=$?
13586 grep -v '^ *+' conftest.er1 >conftest.err
13587 rm -f conftest.er1
13588 cat conftest.err >&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } && {
13591 test -z "$ac_c_werror_flag" ||
13592 test ! -s conftest.err
13593 } && test -s conftest$ac_exeext &&
13594 $as_test_x conftest$ac_exeext; then
13595 ac_cv_lib_socket_socket=yes
13596 else
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 ac_cv_lib_socket_socket=no
13603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13604 conftest$ac_exeext conftest.$ac_ext
13605 LIBS=$ac_check_lib_save_LIBS
13607 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13608 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13609 if test $ac_cv_lib_socket_socket = yes; then
13610 LIBS="-lsocket $LIBS"
13612 # SVR4 sockets
13614 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13615 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13617 # Check whether --with-libs was given.
13618 if test "${with_libs+set}" = set; then
13619 withval=$with_libs;
13620 { echo "$as_me:$LINENO: result: $withval" >&5
13621 echo "${ECHO_T}$withval" >&6; }
13622 LIBS="$withval $LIBS"
13624 else
13625 { echo "$as_me:$LINENO: result: no" >&5
13626 echo "${ECHO_T}no" >&6; }
13630 # Check for use of the system libffi library
13631 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13632 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13634 # Check whether --with-system_ffi was given.
13635 if test "${with_system_ffi+set}" = set; then
13636 withval=$with_system_ffi;
13640 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13641 echo "${ECHO_T}$with_system_ffi" >&6; }
13643 # Determine if signalmodule should be used.
13646 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13647 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13649 # Check whether --with-signal-module was given.
13650 if test "${with_signal_module+set}" = set; then
13651 withval=$with_signal_module;
13655 if test -z "$with_signal_module"
13656 then with_signal_module="yes"
13658 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13659 echo "${ECHO_T}$with_signal_module" >&6; }
13661 if test "${with_signal_module}" = "yes"; then
13662 USE_SIGNAL_MODULE=""
13663 SIGNAL_OBJS=""
13664 else
13665 USE_SIGNAL_MODULE="#"
13666 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13669 # This is used to generate Setup.config
13671 USE_THREAD_MODULE=""
13673 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13674 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13677 # Check whether --with-dec-threads was given.
13678 if test "${with_dec_threads+set}" = set; then
13679 withval=$with_dec_threads;
13680 { echo "$as_me:$LINENO: result: $withval" >&5
13681 echo "${ECHO_T}$withval" >&6; }
13682 LDLAST=-threads
13683 if test "${with_thread+set}" != set; then
13684 with_thread="$withval";
13686 else
13687 { echo "$as_me:$LINENO: result: no" >&5
13688 echo "${ECHO_T}no" >&6; }
13692 # Templates for things AC_DEFINEd more than once.
13693 # For a single AC_DEFINE, no template is needed.
13701 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13702 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13704 # Check whether --with-threads was given.
13705 if test "${with_threads+set}" = set; then
13706 withval=$with_threads;
13710 # --with-thread is deprecated, but check for it anyway
13712 # Check whether --with-thread was given.
13713 if test "${with_thread+set}" = set; then
13714 withval=$with_thread; with_threads=$with_thread
13718 if test -z "$with_threads"
13719 then with_threads="yes"
13721 { echo "$as_me:$LINENO: result: $with_threads" >&5
13722 echo "${ECHO_T}$with_threads" >&6; }
13725 if test "$with_threads" = "no"
13726 then
13727 USE_THREAD_MODULE="#"
13728 elif test "$ac_cv_pthread_is_default" = yes
13729 then
13730 cat >>confdefs.h <<\_ACEOF
13731 #define WITH_THREAD 1
13732 _ACEOF
13734 # Defining _REENTRANT on system with POSIX threads should not hurt.
13735 cat >>confdefs.h <<\_ACEOF
13736 #define _REENTRANT 1
13737 _ACEOF
13739 posix_threads=yes
13740 THREADOBJ="Python/thread.o"
13741 elif test "$ac_cv_kpthread" = "yes"
13742 then
13743 CC="$CC -Kpthread"
13744 if test "$ac_cv_cxx_thread" = "yes"; then
13745 CXX="$CXX -Kpthread"
13747 cat >>confdefs.h <<\_ACEOF
13748 #define WITH_THREAD 1
13749 _ACEOF
13751 posix_threads=yes
13752 THREADOBJ="Python/thread.o"
13753 elif test "$ac_cv_kthread" = "yes"
13754 then
13755 CC="$CC -Kthread"
13756 if test "$ac_cv_cxx_thread" = "yes"; then
13757 CXX="$CXX -Kthread"
13759 cat >>confdefs.h <<\_ACEOF
13760 #define WITH_THREAD 1
13761 _ACEOF
13763 posix_threads=yes
13764 THREADOBJ="Python/thread.o"
13765 elif test "$ac_cv_pthread" = "yes"
13766 then
13767 CC="$CC -pthread"
13768 if test "$ac_cv_cxx_thread" = "yes"; then
13769 CXX="$CXX -pthread"
13771 cat >>confdefs.h <<\_ACEOF
13772 #define WITH_THREAD 1
13773 _ACEOF
13775 posix_threads=yes
13776 THREADOBJ="Python/thread.o"
13777 else
13778 if test ! -z "$with_threads" -a -d "$with_threads"
13779 then LDFLAGS="$LDFLAGS -L$with_threads"
13781 if test ! -z "$withval" -a -d "$withval"
13782 then LDFLAGS="$LDFLAGS -L$withval"
13785 # According to the POSIX spec, a pthreads implementation must
13786 # define _POSIX_THREADS in unistd.h. Some apparently don't
13787 # (e.g. gnu pth with pthread emulation)
13788 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13789 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h. */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13797 #include <unistd.h>
13798 #ifdef _POSIX_THREADS
13800 #endif
13802 _ACEOF
13803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13804 $EGREP "yes" >/dev/null 2>&1; then
13805 unistd_defines_pthreads=yes
13806 else
13807 unistd_defines_pthreads=no
13809 rm -f conftest*
13811 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13812 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13814 cat >>confdefs.h <<\_ACEOF
13815 #define _REENTRANT 1
13816 _ACEOF
13818 if test "${ac_cv_header_cthreads_h+set}" = set; then
13819 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13820 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13821 if test "${ac_cv_header_cthreads_h+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13825 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13826 else
13827 # Is the header compilable?
13828 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13829 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 #include <cthreads.h>
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest.$ac_objext; then
13856 ac_header_compiler=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ac_header_compiler=no
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13866 echo "${ECHO_T}$ac_header_compiler" >&6; }
13868 # Is the header present?
13869 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13870 echo $ECHO_N "checking cthreads.h presence... $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 <cthreads.h>
13878 _ACEOF
13879 if { (ac_try="$ac_cpp conftest.$ac_ext"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883 esac
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } >/dev/null && {
13892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13894 }; then
13895 ac_header_preproc=yes
13896 else
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_header_preproc=no
13903 rm -f conftest.err conftest.$ac_ext
13904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13905 echo "${ECHO_T}$ac_header_preproc" >&6; }
13907 # So? What about this header?
13908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13909 yes:no: )
13910 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13911 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13913 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13914 ac_header_preproc=yes
13916 no:yes:* )
13917 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13918 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13920 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13922 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13924 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13926 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13928 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13929 ( cat <<\_ASBOX
13930 ## ------------------------------------------------ ##
13931 ## Report this to http://www.python.org/python-bugs ##
13932 ## ------------------------------------------------ ##
13933 _ASBOX
13934 ) | sed "s/^/$as_me: WARNING: /" >&2
13936 esac
13937 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13938 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13939 if test "${ac_cv_header_cthreads_h+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942 ac_cv_header_cthreads_h=$ac_header_preproc
13944 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13945 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13948 if test $ac_cv_header_cthreads_h = yes; then
13949 cat >>confdefs.h <<\_ACEOF
13950 #define WITH_THREAD 1
13951 _ACEOF
13953 cat >>confdefs.h <<\_ACEOF
13954 #define C_THREADS 1
13955 _ACEOF
13958 cat >>confdefs.h <<\_ACEOF
13959 #define HURD_C_THREADS 1
13960 _ACEOF
13962 LIBS="$LIBS -lthreads"
13963 THREADOBJ="Python/thread.o"
13964 else
13966 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13967 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13968 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13969 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13973 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13974 else
13975 # Is the header compilable?
13976 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13977 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h. */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 $ac_includes_default
13985 #include <mach/cthreads.h>
13986 _ACEOF
13987 rm -f conftest.$ac_objext
13988 if { (ac_try="$ac_compile"
13989 case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_compile") 2>conftest.er1
13995 ac_status=$?
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } && {
14001 test -z "$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14003 } && test -s conftest.$ac_objext; then
14004 ac_header_compiler=yes
14005 else
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_header_compiler=no
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14014 echo "${ECHO_T}$ac_header_compiler" >&6; }
14016 # Is the header present?
14017 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14018 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 #include <mach/cthreads.h>
14026 _ACEOF
14027 if { (ac_try="$ac_cpp conftest.$ac_ext"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031 esac
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } >/dev/null && {
14040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14041 test ! -s conftest.err
14042 }; then
14043 ac_header_preproc=yes
14044 else
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_header_preproc=no
14051 rm -f conftest.err conftest.$ac_ext
14052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14053 echo "${ECHO_T}$ac_header_preproc" >&6; }
14055 # So? What about this header?
14056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14057 yes:no: )
14058 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14059 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14061 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14062 ac_header_preproc=yes
14064 no:yes:* )
14065 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14066 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14068 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14070 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14072 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14074 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14076 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14077 ( cat <<\_ASBOX
14078 ## ------------------------------------------------ ##
14079 ## Report this to http://www.python.org/python-bugs ##
14080 ## ------------------------------------------------ ##
14081 _ASBOX
14082 ) | sed "s/^/$as_me: WARNING: /" >&2
14084 esac
14085 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14086 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14087 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14092 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14093 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14096 if test $ac_cv_header_mach_cthreads_h = yes; then
14097 cat >>confdefs.h <<\_ACEOF
14098 #define WITH_THREAD 1
14099 _ACEOF
14101 cat >>confdefs.h <<\_ACEOF
14102 #define C_THREADS 1
14103 _ACEOF
14106 cat >>confdefs.h <<\_ACEOF
14107 #define MACH_C_THREADS 1
14108 _ACEOF
14110 THREADOBJ="Python/thread.o"
14111 else
14113 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14114 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14116 # Check whether --with-pth was given.
14117 if test "${with_pth+set}" = set; then
14118 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14119 echo "${ECHO_T}$withval" >&6; }
14120 cat >>confdefs.h <<\_ACEOF
14121 #define WITH_THREAD 1
14122 _ACEOF
14125 cat >>confdefs.h <<\_ACEOF
14126 #define HAVE_PTH 1
14127 _ACEOF
14129 LIBS="-lpth $LIBS"
14130 THREADOBJ="Python/thread.o"
14131 else
14132 { echo "$as_me:$LINENO: result: no" >&5
14133 echo "${ECHO_T}no" >&6; }
14135 # Just looking for pthread_create in libpthread is not enough:
14136 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14137 # So we really have to include pthread.h, and then link.
14138 _libs=$LIBS
14139 LIBS="$LIBS -lpthread"
14140 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14141 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14142 cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h. */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 #include <pthread.h>
14150 void * start_routine (void *arg) { exit (0); }
14152 main ()
14155 pthread_create (NULL, NULL, start_routine, NULL)
14157 return 0;
14159 _ACEOF
14160 rm -f conftest.$ac_objext conftest$ac_exeext
14161 if { (ac_try="$ac_link"
14162 case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14165 esac
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_link") 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } && {
14174 test -z "$ac_c_werror_flag" ||
14175 test ! -s conftest.err
14176 } && test -s conftest$ac_exeext &&
14177 $as_test_x conftest$ac_exeext; then
14179 { echo "$as_me:$LINENO: result: yes" >&5
14180 echo "${ECHO_T}yes" >&6; }
14181 cat >>confdefs.h <<\_ACEOF
14182 #define WITH_THREAD 1
14183 _ACEOF
14185 posix_threads=yes
14186 THREADOBJ="Python/thread.o"
14187 else
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14192 LIBS=$_libs
14193 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14194 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14195 if test "${ac_cv_func_pthread_detach+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h. */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14204 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14206 #define pthread_detach innocuous_pthread_detach
14208 /* System header to define __stub macros and hopefully few prototypes,
14209 which can conflict with char pthread_detach (); below.
14210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14211 <limits.h> exists even on freestanding compilers. */
14213 #ifdef __STDC__
14214 # include <limits.h>
14215 #else
14216 # include <assert.h>
14217 #endif
14219 #undef pthread_detach
14221 /* Override any GCC internal prototype to avoid an error.
14222 Use char because int might match the return type of a GCC
14223 builtin and then its argument prototype would still apply. */
14224 #ifdef __cplusplus
14225 extern "C"
14226 #endif
14227 char pthread_detach ();
14228 /* The GNU C library defines this for functions which it implements
14229 to always fail with ENOSYS. Some functions are actually named
14230 something starting with __ and the normal name is an alias. */
14231 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14232 choke me
14233 #endif
14236 main ()
14238 return pthread_detach ();
14240 return 0;
14242 _ACEOF
14243 rm -f conftest.$ac_objext conftest$ac_exeext
14244 if { (ac_try="$ac_link"
14245 case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248 esac
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_link") 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } && {
14257 test -z "$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 } && test -s conftest$ac_exeext &&
14260 $as_test_x conftest$ac_exeext; then
14261 ac_cv_func_pthread_detach=yes
14262 else
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_cv_func_pthread_detach=no
14269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14270 conftest$ac_exeext conftest.$ac_ext
14272 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14273 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14274 if test $ac_cv_func_pthread_detach = yes; then
14275 cat >>confdefs.h <<\_ACEOF
14276 #define WITH_THREAD 1
14277 _ACEOF
14279 posix_threads=yes
14280 THREADOBJ="Python/thread.o"
14281 else
14283 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14284 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14285 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14286 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14290 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14291 else
14292 # Is the header compilable?
14293 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14294 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h. */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 $ac_includes_default
14302 #include <atheos/threads.h>
14303 _ACEOF
14304 rm -f conftest.$ac_objext
14305 if { (ac_try="$ac_compile"
14306 case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_compile") 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } && {
14318 test -z "$ac_c_werror_flag" ||
14319 test ! -s conftest.err
14320 } && test -s conftest.$ac_objext; then
14321 ac_header_compiler=yes
14322 else
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 ac_header_compiler=no
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14331 echo "${ECHO_T}$ac_header_compiler" >&6; }
14333 # Is the header present?
14334 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14335 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14336 cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h. */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 #include <atheos/threads.h>
14343 _ACEOF
14344 if { (ac_try="$ac_cpp conftest.$ac_ext"
14345 case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14351 ac_status=$?
14352 grep -v '^ *+' conftest.er1 >conftest.err
14353 rm -f conftest.er1
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } >/dev/null && {
14357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14358 test ! -s conftest.err
14359 }; then
14360 ac_header_preproc=yes
14361 else
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 ac_header_preproc=no
14368 rm -f conftest.err conftest.$ac_ext
14369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14370 echo "${ECHO_T}$ac_header_preproc" >&6; }
14372 # So? What about this header?
14373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14374 yes:no: )
14375 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14376 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14377 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14378 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14379 ac_header_preproc=yes
14381 no:yes:* )
14382 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14383 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14385 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14386 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14387 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14389 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14391 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14392 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14393 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14394 ( cat <<\_ASBOX
14395 ## ------------------------------------------------ ##
14396 ## Report this to http://www.python.org/python-bugs ##
14397 ## ------------------------------------------------ ##
14398 _ASBOX
14399 ) | sed "s/^/$as_me: WARNING: /" >&2
14401 esac
14402 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14403 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14404 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407 ac_cv_header_atheos_threads_h=$ac_header_preproc
14409 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14410 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14413 if test $ac_cv_header_atheos_threads_h = yes; then
14414 cat >>confdefs.h <<\_ACEOF
14415 #define WITH_THREAD 1
14416 _ACEOF
14419 cat >>confdefs.h <<\_ACEOF
14420 #define ATHEOS_THREADS 1
14421 _ACEOF
14423 THREADOBJ="Python/thread.o"
14424 else
14426 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14427 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14428 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431 ac_check_lib_save_LIBS=$LIBS
14432 LIBS="-lpthreads $LIBS"
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h. */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14440 /* Override any GCC internal prototype to avoid an error.
14441 Use char because int might match the return type of a GCC
14442 builtin and then its argument prototype would still apply. */
14443 #ifdef __cplusplus
14444 extern "C"
14445 #endif
14446 char pthread_create ();
14448 main ()
14450 return pthread_create ();
14452 return 0;
14454 _ACEOF
14455 rm -f conftest.$ac_objext conftest$ac_exeext
14456 if { (ac_try="$ac_link"
14457 case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_link") 2>conftest.er1
14463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest$ac_exeext &&
14472 $as_test_x conftest$ac_exeext; then
14473 ac_cv_lib_pthreads_pthread_create=yes
14474 else
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ac_cv_lib_pthreads_pthread_create=no
14481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482 conftest$ac_exeext conftest.$ac_ext
14483 LIBS=$ac_check_lib_save_LIBS
14485 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14486 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14487 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14488 cat >>confdefs.h <<\_ACEOF
14489 #define WITH_THREAD 1
14490 _ACEOF
14492 posix_threads=yes
14493 LIBS="$LIBS -lpthreads"
14494 THREADOBJ="Python/thread.o"
14495 else
14497 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14498 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14499 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 ac_check_lib_save_LIBS=$LIBS
14503 LIBS="-lc_r $LIBS"
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14511 /* Override any GCC internal prototype to avoid an error.
14512 Use char because int might match the return type of a GCC
14513 builtin and then its argument prototype would still apply. */
14514 #ifdef __cplusplus
14515 extern "C"
14516 #endif
14517 char pthread_create ();
14519 main ()
14521 return pthread_create ();
14523 return 0;
14525 _ACEOF
14526 rm -f conftest.$ac_objext conftest$ac_exeext
14527 if { (ac_try="$ac_link"
14528 case "(($ac_try" in
14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14531 esac
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533 (eval "$ac_link") 2>conftest.er1
14534 ac_status=$?
14535 grep -v '^ *+' conftest.er1 >conftest.err
14536 rm -f conftest.er1
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } && {
14540 test -z "$ac_c_werror_flag" ||
14541 test ! -s conftest.err
14542 } && test -s conftest$ac_exeext &&
14543 $as_test_x conftest$ac_exeext; then
14544 ac_cv_lib_c_r_pthread_create=yes
14545 else
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14549 ac_cv_lib_c_r_pthread_create=no
14552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14553 conftest$ac_exeext conftest.$ac_ext
14554 LIBS=$ac_check_lib_save_LIBS
14556 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14557 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14558 if test $ac_cv_lib_c_r_pthread_create = yes; then
14559 cat >>confdefs.h <<\_ACEOF
14560 #define WITH_THREAD 1
14561 _ACEOF
14563 posix_threads=yes
14564 LIBS="$LIBS -lc_r"
14565 THREADOBJ="Python/thread.o"
14566 else
14568 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14569 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14570 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573 ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-lpthread $LIBS"
14575 cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h. */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14582 /* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14585 #ifdef __cplusplus
14586 extern "C"
14587 #endif
14588 char __pthread_create_system ();
14590 main ()
14592 return __pthread_create_system ();
14594 return 0;
14596 _ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602 esac
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_link") 2>conftest.er1
14605 ac_status=$?
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && {
14611 test -z "$ac_c_werror_flag" ||
14612 test ! -s conftest.err
14613 } && test -s conftest$ac_exeext &&
14614 $as_test_x conftest$ac_exeext; then
14615 ac_cv_lib_pthread___pthread_create_system=yes
14616 else
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14620 ac_cv_lib_pthread___pthread_create_system=no
14623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14624 conftest$ac_exeext conftest.$ac_ext
14625 LIBS=$ac_check_lib_save_LIBS
14627 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14628 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14629 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14630 cat >>confdefs.h <<\_ACEOF
14631 #define WITH_THREAD 1
14632 _ACEOF
14634 posix_threads=yes
14635 LIBS="$LIBS -lpthread"
14636 THREADOBJ="Python/thread.o"
14637 else
14639 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14640 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14641 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644 ac_check_lib_save_LIBS=$LIBS
14645 LIBS="-lcma $LIBS"
14646 cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h. */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14656 #ifdef __cplusplus
14657 extern "C"
14658 #endif
14659 char pthread_create ();
14661 main ()
14663 return pthread_create ();
14665 return 0;
14667 _ACEOF
14668 rm -f conftest.$ac_objext conftest$ac_exeext
14669 if { (ac_try="$ac_link"
14670 case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_link") 2>conftest.er1
14676 ac_status=$?
14677 grep -v '^ *+' conftest.er1 >conftest.err
14678 rm -f conftest.er1
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } && {
14682 test -z "$ac_c_werror_flag" ||
14683 test ! -s conftest.err
14684 } && test -s conftest$ac_exeext &&
14685 $as_test_x conftest$ac_exeext; then
14686 ac_cv_lib_cma_pthread_create=yes
14687 else
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 ac_cv_lib_cma_pthread_create=no
14694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14695 conftest$ac_exeext conftest.$ac_ext
14696 LIBS=$ac_check_lib_save_LIBS
14698 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14699 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14700 if test $ac_cv_lib_cma_pthread_create = yes; then
14701 cat >>confdefs.h <<\_ACEOF
14702 #define WITH_THREAD 1
14703 _ACEOF
14705 posix_threads=yes
14706 LIBS="$LIBS -lcma"
14707 THREADOBJ="Python/thread.o"
14708 else
14710 USE_THREAD_MODULE="#"
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14738 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14739 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14740 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743 ac_check_lib_save_LIBS=$LIBS
14744 LIBS="-lmpc $LIBS"
14745 cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h. */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14752 /* Override any GCC internal prototype to avoid an error.
14753 Use char because int might match the return type of a GCC
14754 builtin and then its argument prototype would still apply. */
14755 #ifdef __cplusplus
14756 extern "C"
14757 #endif
14758 char usconfig ();
14760 main ()
14762 return usconfig ();
14764 return 0;
14766 _ACEOF
14767 rm -f conftest.$ac_objext conftest$ac_exeext
14768 if { (ac_try="$ac_link"
14769 case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_link") 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest$ac_exeext &&
14784 $as_test_x conftest$ac_exeext; then
14785 ac_cv_lib_mpc_usconfig=yes
14786 else
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14790 ac_cv_lib_mpc_usconfig=no
14793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14794 conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14797 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14798 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14799 if test $ac_cv_lib_mpc_usconfig = yes; then
14800 cat >>confdefs.h <<\_ACEOF
14801 #define WITH_THREAD 1
14802 _ACEOF
14804 LIBS="$LIBS -lmpc"
14805 THREADOBJ="Python/thread.o"
14806 USE_THREAD_MODULE=""
14810 if test "$posix_threads" != "yes"; then
14811 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14812 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14813 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816 ac_check_lib_save_LIBS=$LIBS
14817 LIBS="-lthread $LIBS"
14818 cat >conftest.$ac_ext <<_ACEOF
14819 /* confdefs.h. */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14825 /* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply. */
14828 #ifdef __cplusplus
14829 extern "C"
14830 #endif
14831 char thr_create ();
14833 main ()
14835 return thr_create ();
14837 return 0;
14839 _ACEOF
14840 rm -f conftest.$ac_objext conftest$ac_exeext
14841 if { (ac_try="$ac_link"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14845 esac
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_link") 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } && {
14854 test -z "$ac_c_werror_flag" ||
14855 test ! -s conftest.err
14856 } && test -s conftest$ac_exeext &&
14857 $as_test_x conftest$ac_exeext; then
14858 ac_cv_lib_thread_thr_create=yes
14859 else
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 ac_cv_lib_thread_thr_create=no
14866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14867 conftest$ac_exeext conftest.$ac_ext
14868 LIBS=$ac_check_lib_save_LIBS
14870 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14871 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14872 if test $ac_cv_lib_thread_thr_create = yes; then
14873 cat >>confdefs.h <<\_ACEOF
14874 #define WITH_THREAD 1
14875 _ACEOF
14877 LIBS="$LIBS -lthread"
14878 THREADOBJ="Python/thread.o"
14879 USE_THREAD_MODULE=""
14884 if test "$USE_THREAD_MODULE" != "#"
14885 then
14886 # If the above checks didn't disable threads, (at least) OSF1
14887 # needs this '-threads' argument during linking.
14888 case $ac_sys_system in
14889 OSF1) LDLAST=-threads;;
14890 esac
14894 if test "$posix_threads" = "yes"; then
14895 if test "$unistd_defines_pthreads" = "no"; then
14897 cat >>confdefs.h <<\_ACEOF
14898 #define _POSIX_THREADS 1
14899 _ACEOF
14903 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14904 case $ac_sys_system/$ac_sys_release in
14905 SunOS/5.6)
14906 cat >>confdefs.h <<\_ACEOF
14907 #define HAVE_PTHREAD_DESTRUCTOR 1
14908 _ACEOF
14911 SunOS/5.8)
14912 cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14914 _ACEOF
14917 AIX/5)
14918 cat >>confdefs.h <<\_ACEOF
14919 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14920 _ACEOF
14923 esac
14925 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14926 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14927 if test "${ac_cv_pthread_system_supported+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930 if test "$cross_compiling" = yes; then
14931 ac_cv_pthread_system_supported=no
14932 else
14933 cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 #include <pthread.h>
14940 void *foo(void *parm) {
14941 return NULL;
14943 main() {
14944 pthread_attr_t attr;
14945 pthread_t id;
14946 if (pthread_attr_init(&attr)) exit(-1);
14947 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14948 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14949 exit(0);
14951 _ACEOF
14952 rm -f conftest$ac_exeext
14953 if { (ac_try="$ac_link"
14954 case "(($ac_try" in
14955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14957 esac
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_link") 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14963 { (case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_try") 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 ac_cv_pthread_system_supported=yes
14973 else
14974 echo "$as_me: program exited with status $ac_status" >&5
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 ( exit $ac_status )
14979 ac_cv_pthread_system_supported=no
14981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14988 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14989 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14990 if test "$ac_cv_pthread_system_supported" = "yes"; then
14992 cat >>confdefs.h <<\_ACEOF
14993 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14994 _ACEOF
14998 for ac_func in pthread_sigmask
15000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h. */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15014 #define $ac_func innocuous_$ac_func
15016 /* System header to define __stub macros and hopefully few prototypes,
15017 which can conflict with char $ac_func (); below.
15018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15019 <limits.h> exists even on freestanding compilers. */
15021 #ifdef __STDC__
15022 # include <limits.h>
15023 #else
15024 # include <assert.h>
15025 #endif
15027 #undef $ac_func
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15032 #ifdef __cplusplus
15033 extern "C"
15034 #endif
15035 char $ac_func ();
15036 /* The GNU C library defines this for functions which it implements
15037 to always fail with ENOSYS. Some functions are actually named
15038 something starting with __ and the normal name is an alias. */
15039 #if defined __stub_$ac_func || defined __stub___$ac_func
15040 choke me
15041 #endif
15044 main ()
15046 return $ac_func ();
15048 return 0;
15050 _ACEOF
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (ac_try="$ac_link"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15056 esac
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_link") 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest$ac_exeext &&
15068 $as_test_x conftest$ac_exeext; then
15069 eval "$as_ac_var=yes"
15070 else
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 eval "$as_ac_var=no"
15077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15078 conftest$ac_exeext conftest.$ac_ext
15080 ac_res=`eval echo '${'$as_ac_var'}'`
15081 { echo "$as_me:$LINENO: result: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15083 if test `eval echo '${'$as_ac_var'}'` = yes; then
15084 cat >>confdefs.h <<_ACEOF
15085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15086 _ACEOF
15087 case $ac_sys_system in
15088 CYGWIN*)
15090 cat >>confdefs.h <<\_ACEOF
15091 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15092 _ACEOF
15095 esac
15097 done
15102 # Check for enable-ipv6
15105 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15106 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15107 # Check whether --enable-ipv6 was given.
15108 if test "${enable_ipv6+set}" = set; then
15109 enableval=$enable_ipv6; case "$enableval" in
15111 { echo "$as_me:$LINENO: result: no" >&5
15112 echo "${ECHO_T}no" >&6; }
15113 ipv6=no
15115 *) { echo "$as_me:$LINENO: result: yes" >&5
15116 echo "${ECHO_T}yes" >&6; }
15117 cat >>confdefs.h <<\_ACEOF
15118 #define ENABLE_IPV6 1
15119 _ACEOF
15121 ipv6=yes
15123 esac
15124 else
15126 if test "$cross_compiling" = yes; then
15127 { echo "$as_me:$LINENO: result: no" >&5
15128 echo "${ECHO_T}no" >&6; }
15129 ipv6=no
15131 else
15132 cat >conftest.$ac_ext <<_ACEOF
15133 /* confdefs.h. */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15138 /* AF_INET6 available check */
15139 #include <sys/types.h>
15140 #include <sys/socket.h>
15141 main()
15143 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15144 exit(1);
15145 else
15146 exit(0);
15149 _ACEOF
15150 rm -f conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_link") 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15161 { (case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15164 esac
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_try") 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 { echo "$as_me:$LINENO: result: yes" >&5
15171 echo "${ECHO_T}yes" >&6; }
15172 ipv6=yes
15173 else
15174 echo "$as_me: program exited with status $ac_status" >&5
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 ( exit $ac_status )
15179 { echo "$as_me:$LINENO: result: no" >&5
15180 echo "${ECHO_T}no" >&6; }
15181 ipv6=no
15183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15188 if test "$ipv6" = "yes"; then
15189 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15190 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h. */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 #include <sys/types.h>
15198 #include <netinet/in.h>
15200 main ()
15202 struct sockaddr_in6 x;
15203 x.sin6_scope_id;
15205 return 0;
15207 _ACEOF
15208 rm -f conftest.$ac_objext
15209 if { (ac_try="$ac_compile"
15210 case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_compile") 2>conftest.er1
15216 ac_status=$?
15217 grep -v '^ *+' conftest.er1 >conftest.err
15218 rm -f conftest.er1
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest.$ac_objext; then
15225 { echo "$as_me:$LINENO: result: yes" >&5
15226 echo "${ECHO_T}yes" >&6; }
15227 ipv6=yes
15228 else
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 { echo "$as_me:$LINENO: result: no" >&5
15233 echo "${ECHO_T}no" >&6; }
15234 ipv6=no
15237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240 if test "$ipv6" = "yes"; then
15241 cat >>confdefs.h <<\_ACEOF
15242 #define ENABLE_IPV6 1
15243 _ACEOF
15250 ipv6type=unknown
15251 ipv6lib=none
15252 ipv6trylibc=no
15254 if test "$ipv6" = "yes"; then
15255 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15256 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15257 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15259 case $i in
15260 inria)
15261 cat >conftest.$ac_ext <<_ACEOF
15262 /* confdefs.h. */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15268 #include <netinet/in.h>
15269 #ifdef IPV6_INRIA_VERSION
15271 #endif
15272 _ACEOF
15273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15274 $EGREP "yes" >/dev/null 2>&1; then
15275 ipv6type=$i
15277 rm -f conftest*
15280 kame)
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h. */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15288 #include <netinet/in.h>
15289 #ifdef __KAME__
15291 #endif
15292 _ACEOF
15293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15294 $EGREP "yes" >/dev/null 2>&1; then
15295 ipv6type=$i;
15296 ipv6lib=inet6
15297 ipv6libdir=/usr/local/v6/lib
15298 ipv6trylibc=yes
15300 rm -f conftest*
15303 linux-glibc)
15304 cat >conftest.$ac_ext <<_ACEOF
15305 /* confdefs.h. */
15306 _ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15311 #include <features.h>
15312 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15314 #endif
15315 _ACEOF
15316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15317 $EGREP "yes" >/dev/null 2>&1; then
15318 ipv6type=$i;
15319 ipv6trylibc=yes
15321 rm -f conftest*
15324 linux-inet6)
15325 if test -d /usr/inet6; then
15326 ipv6type=$i
15327 ipv6lib=inet6
15328 ipv6libdir=/usr/inet6/lib
15329 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15332 solaris)
15333 if test -f /etc/netconfig; then
15334 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15335 ipv6type=$i
15336 ipv6trylibc=yes
15340 toshiba)
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15348 #include <sys/param.h>
15349 #ifdef _TOSHIBA_INET6
15351 #endif
15352 _ACEOF
15353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15354 $EGREP "yes" >/dev/null 2>&1; then
15355 ipv6type=$i;
15356 ipv6lib=inet6;
15357 ipv6libdir=/usr/local/v6/lib
15359 rm -f conftest*
15362 v6d)
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15370 #include </usr/local/v6/include/sys/v6config.h>
15371 #ifdef __V6D__
15373 #endif
15374 _ACEOF
15375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15376 $EGREP "yes" >/dev/null 2>&1; then
15377 ipv6type=$i;
15378 ipv6lib=v6;
15379 ipv6libdir=/usr/local/v6/lib;
15380 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15382 rm -f conftest*
15385 zeta)
15386 cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h. */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15393 #include <sys/param.h>
15394 #ifdef _ZETA_MINAMI_INET6
15396 #endif
15397 _ACEOF
15398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15399 $EGREP "yes" >/dev/null 2>&1; then
15400 ipv6type=$i;
15401 ipv6lib=inet6;
15402 ipv6libdir=/usr/local/v6/lib
15404 rm -f conftest*
15407 esac
15408 if test "$ipv6type" != "unknown"; then
15409 break
15411 done
15412 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15413 echo "${ECHO_T}$ipv6type" >&6; }
15416 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15417 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15418 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15419 echo "using lib$ipv6lib"
15420 else
15421 if test $ipv6trylibc = "yes"; then
15422 echo "using libc"
15423 else
15424 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15425 echo "You need to fetch lib$ipv6lib.a from appropriate"
15426 echo 'ipv6 kit and compile beforehand.'
15427 exit 1
15432 # Check for --with-doc-strings
15433 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15434 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15436 # Check whether --with-doc-strings was given.
15437 if test "${with_doc_strings+set}" = set; then
15438 withval=$with_doc_strings;
15442 if test -z "$with_doc_strings"
15443 then with_doc_strings="yes"
15445 if test "$with_doc_strings" != "no"
15446 then
15448 cat >>confdefs.h <<\_ACEOF
15449 #define WITH_DOC_STRINGS 1
15450 _ACEOF
15453 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15454 echo "${ECHO_T}$with_doc_strings" >&6; }
15456 # Check for Python-specific malloc support
15457 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15458 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15460 # Check whether --with-tsc was given.
15461 if test "${with_tsc+set}" = set; then
15462 withval=$with_tsc;
15463 if test "$withval" != no
15464 then
15466 cat >>confdefs.h <<\_ACEOF
15467 #define WITH_TSC 1
15468 _ACEOF
15470 { echo "$as_me:$LINENO: result: yes" >&5
15471 echo "${ECHO_T}yes" >&6; }
15472 else { echo "$as_me:$LINENO: result: no" >&5
15473 echo "${ECHO_T}no" >&6; }
15475 else
15476 { echo "$as_me:$LINENO: result: no" >&5
15477 echo "${ECHO_T}no" >&6; }
15481 # Check for Python-specific malloc support
15482 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15483 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15485 # Check whether --with-pymalloc was given.
15486 if test "${with_pymalloc+set}" = set; then
15487 withval=$with_pymalloc;
15491 if test -z "$with_pymalloc"
15492 then with_pymalloc="yes"
15494 if test "$with_pymalloc" != "no"
15495 then
15497 cat >>confdefs.h <<\_ACEOF
15498 #define WITH_PYMALLOC 1
15499 _ACEOF
15502 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15503 echo "${ECHO_T}$with_pymalloc" >&6; }
15505 # Check for --with-wctype-functions
15506 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15507 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15509 # Check whether --with-wctype-functions was given.
15510 if test "${with_wctype_functions+set}" = set; then
15511 withval=$with_wctype_functions;
15512 if test "$withval" != no
15513 then
15515 cat >>confdefs.h <<\_ACEOF
15516 #define WANT_WCTYPE_FUNCTIONS 1
15517 _ACEOF
15519 { echo "$as_me:$LINENO: result: yes" >&5
15520 echo "${ECHO_T}yes" >&6; }
15521 else { echo "$as_me:$LINENO: result: no" >&5
15522 echo "${ECHO_T}no" >&6; }
15524 else
15525 { echo "$as_me:$LINENO: result: no" >&5
15526 echo "${ECHO_T}no" >&6; }
15530 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15532 DLINCLDIR=.
15534 # the dlopen() function means we might want to use dynload_shlib.o. some
15535 # platforms, such as AIX, have dlopen(), but don't want to use it.
15537 for ac_func in dlopen
15539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h. */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15553 #define $ac_func innocuous_$ac_func
15555 /* System header to define __stub macros and hopefully few prototypes,
15556 which can conflict with char $ac_func (); below.
15557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15558 <limits.h> exists even on freestanding compilers. */
15560 #ifdef __STDC__
15561 # include <limits.h>
15562 #else
15563 # include <assert.h>
15564 #endif
15566 #undef $ac_func
15568 /* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15571 #ifdef __cplusplus
15572 extern "C"
15573 #endif
15574 char $ac_func ();
15575 /* The GNU C library defines this for functions which it implements
15576 to always fail with ENOSYS. Some functions are actually named
15577 something starting with __ and the normal name is an alias. */
15578 #if defined __stub_$ac_func || defined __stub___$ac_func
15579 choke me
15580 #endif
15583 main ()
15585 return $ac_func ();
15587 return 0;
15589 _ACEOF
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (ac_try="$ac_link"
15592 case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15595 esac
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_link") 2>conftest.er1
15598 ac_status=$?
15599 grep -v '^ *+' conftest.er1 >conftest.err
15600 rm -f conftest.er1
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } && {
15604 test -z "$ac_c_werror_flag" ||
15605 test ! -s conftest.err
15606 } && test -s conftest$ac_exeext &&
15607 $as_test_x conftest$ac_exeext; then
15608 eval "$as_ac_var=yes"
15609 else
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 eval "$as_ac_var=no"
15616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15617 conftest$ac_exeext conftest.$ac_ext
15619 ac_res=`eval echo '${'$as_ac_var'}'`
15620 { echo "$as_me:$LINENO: result: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15622 if test `eval echo '${'$as_ac_var'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15625 _ACEOF
15628 done
15631 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15632 # loading of modules.
15634 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15635 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15636 if test -z "$DYNLOADFILE"
15637 then
15638 case $ac_sys_system/$ac_sys_release in
15639 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15640 if test "$ac_cv_func_dlopen" = yes
15641 then DYNLOADFILE="dynload_shlib.o"
15642 else DYNLOADFILE="dynload_aix.o"
15645 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15646 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15647 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15648 atheos*) DYNLOADFILE="dynload_atheos.o";;
15650 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15651 # out any dynamic loading
15652 if test "$ac_cv_func_dlopen" = yes
15653 then DYNLOADFILE="dynload_shlib.o"
15654 else DYNLOADFILE="dynload_stub.o"
15657 esac
15659 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15660 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15661 if test "$DYNLOADFILE" != "dynload_stub.o"
15662 then
15664 cat >>confdefs.h <<\_ACEOF
15665 #define HAVE_DYNAMIC_LOADING 1
15666 _ACEOF
15670 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15673 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15674 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15675 if test -z "$MACHDEP_OBJS"
15676 then
15677 MACHDEP_OBJS=$extra_machdep_objs
15678 else
15679 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15681 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15682 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15684 # checks for library functions
15768 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
15769 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15770 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15771 getpriority getpwent getspnam getspent getsid getwd \
15772 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15773 mremap nice pathconf pause plock poll pthread_init \
15774 putenv readlink realpath \
15775 select setegid seteuid setgid \
15776 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15777 sigaction siginterrupt sigrelse strftime strlcpy \
15778 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15779 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll wcsxfrm _getpty
15781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 else
15787 cat >conftest.$ac_ext <<_ACEOF
15788 /* confdefs.h. */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15795 #define $ac_func innocuous_$ac_func
15797 /* System header to define __stub macros and hopefully few prototypes,
15798 which can conflict with char $ac_func (); below.
15799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15800 <limits.h> exists even on freestanding compilers. */
15802 #ifdef __STDC__
15803 # include <limits.h>
15804 #else
15805 # include <assert.h>
15806 #endif
15808 #undef $ac_func
15810 /* Override any GCC internal prototype to avoid an error.
15811 Use char because int might match the return type of a GCC
15812 builtin and then its argument prototype would still apply. */
15813 #ifdef __cplusplus
15814 extern "C"
15815 #endif
15816 char $ac_func ();
15817 /* The GNU C library defines this for functions which it implements
15818 to always fail with ENOSYS. Some functions are actually named
15819 something starting with __ and the normal name is an alias. */
15820 #if defined __stub_$ac_func || defined __stub___$ac_func
15821 choke me
15822 #endif
15825 main ()
15827 return $ac_func ();
15829 return 0;
15831 _ACEOF
15832 rm -f conftest.$ac_objext conftest$ac_exeext
15833 if { (ac_try="$ac_link"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_link") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } && {
15846 test -z "$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15848 } && test -s conftest$ac_exeext &&
15849 $as_test_x conftest$ac_exeext; then
15850 eval "$as_ac_var=yes"
15851 else
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 eval "$as_ac_var=no"
15858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15859 conftest$ac_exeext conftest.$ac_ext
15861 ac_res=`eval echo '${'$as_ac_var'}'`
15862 { echo "$as_me:$LINENO: result: $ac_res" >&5
15863 echo "${ECHO_T}$ac_res" >&6; }
15864 if test `eval echo '${'$as_ac_var'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15867 _ACEOF
15870 done
15873 # For some functions, having a definition is not sufficient, since
15874 # we want to take their address.
15875 { echo "$as_me:$LINENO: checking for chroot" >&5
15876 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15877 cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h. */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 #include <unistd.h>
15885 main ()
15887 void *x=chroot
15889 return 0;
15891 _ACEOF
15892 rm -f conftest.$ac_objext
15893 if { (ac_try="$ac_compile"
15894 case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15897 esac
15898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899 (eval "$ac_compile") 2>conftest.er1
15900 ac_status=$?
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } && {
15906 test -z "$ac_c_werror_flag" ||
15907 test ! -s conftest.err
15908 } && test -s conftest.$ac_objext; then
15910 cat >>confdefs.h <<\_ACEOF
15911 #define HAVE_CHROOT 1
15912 _ACEOF
15914 { echo "$as_me:$LINENO: result: yes" >&5
15915 echo "${ECHO_T}yes" >&6; }
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 { echo "$as_me:$LINENO: result: no" >&5
15921 echo "${ECHO_T}no" >&6; }
15925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926 { echo "$as_me:$LINENO: checking for link" >&5
15927 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h. */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 #include <unistd.h>
15936 main ()
15938 void *x=link
15940 return 0;
15942 _ACEOF
15943 rm -f conftest.$ac_objext
15944 if { (ac_try="$ac_compile"
15945 case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15951 ac_status=$?
15952 grep -v '^ *+' conftest.er1 >conftest.err
15953 rm -f conftest.er1
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest.$ac_objext; then
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_LINK 1
15963 _ACEOF
15965 { echo "$as_me:$LINENO: result: yes" >&5
15966 echo "${ECHO_T}yes" >&6; }
15967 else
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 { echo "$as_me:$LINENO: result: no" >&5
15972 echo "${ECHO_T}no" >&6; }
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977 { echo "$as_me:$LINENO: checking for symlink" >&5
15978 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h. */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 #include <unistd.h>
15987 main ()
15989 void *x=symlink
15991 return 0;
15993 _ACEOF
15994 rm -f conftest.$ac_objext
15995 if { (ac_try="$ac_compile"
15996 case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
15999 esac
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_compile") 2>conftest.er1
16002 ac_status=$?
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } && {
16008 test -z "$ac_c_werror_flag" ||
16009 test ! -s conftest.err
16010 } && test -s conftest.$ac_objext; then
16012 cat >>confdefs.h <<\_ACEOF
16013 #define HAVE_SYMLINK 1
16014 _ACEOF
16016 { echo "$as_me:$LINENO: result: yes" >&5
16017 echo "${ECHO_T}yes" >&6; }
16018 else
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 { echo "$as_me:$LINENO: result: no" >&5
16023 echo "${ECHO_T}no" >&6; }
16027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 { echo "$as_me:$LINENO: checking for fchdir" >&5
16029 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16030 cat >conftest.$ac_ext <<_ACEOF
16031 /* confdefs.h. */
16032 _ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16036 #include <unistd.h>
16038 main ()
16040 void *x=fchdir
16042 return 0;
16044 _ACEOF
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_compile") 2>conftest.er1
16053 ac_status=$?
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } && {
16059 test -z "$ac_c_werror_flag" ||
16060 test ! -s conftest.err
16061 } && test -s conftest.$ac_objext; then
16063 cat >>confdefs.h <<\_ACEOF
16064 #define HAVE_FCHDIR 1
16065 _ACEOF
16067 { echo "$as_me:$LINENO: result: yes" >&5
16068 echo "${ECHO_T}yes" >&6; }
16069 else
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 { echo "$as_me:$LINENO: result: no" >&5
16074 echo "${ECHO_T}no" >&6; }
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 { echo "$as_me:$LINENO: checking for fsync" >&5
16080 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h. */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <unistd.h>
16089 main ()
16091 void *x=fsync
16093 return 0;
16095 _ACEOF
16096 rm -f conftest.$ac_objext
16097 if { (ac_try="$ac_compile"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_compile") 2>conftest.er1
16104 ac_status=$?
16105 grep -v '^ *+' conftest.er1 >conftest.err
16106 rm -f conftest.er1
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } && {
16110 test -z "$ac_c_werror_flag" ||
16111 test ! -s conftest.err
16112 } && test -s conftest.$ac_objext; then
16114 cat >>confdefs.h <<\_ACEOF
16115 #define HAVE_FSYNC 1
16116 _ACEOF
16118 { echo "$as_me:$LINENO: result: yes" >&5
16119 echo "${ECHO_T}yes" >&6; }
16120 else
16121 echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16124 { echo "$as_me:$LINENO: result: no" >&5
16125 echo "${ECHO_T}no" >&6; }
16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16130 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16131 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16132 cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h. */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16138 #include <unistd.h>
16140 main ()
16142 void *x=fdatasync
16144 return 0;
16146 _ACEOF
16147 rm -f conftest.$ac_objext
16148 if { (ac_try="$ac_compile"
16149 case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152 esac
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_compile") 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } && {
16161 test -z "$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 } && test -s conftest.$ac_objext; then
16165 cat >>confdefs.h <<\_ACEOF
16166 #define HAVE_FDATASYNC 1
16167 _ACEOF
16169 { echo "$as_me:$LINENO: result: yes" >&5
16170 echo "${ECHO_T}yes" >&6; }
16171 else
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 { echo "$as_me:$LINENO: result: no" >&5
16176 echo "${ECHO_T}no" >&6; }
16180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16181 { echo "$as_me:$LINENO: checking for epoll" >&5
16182 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 #include <sys/epoll.h>
16191 main ()
16193 void *x=epoll_create
16195 return 0;
16197 _ACEOF
16198 rm -f conftest.$ac_objext
16199 if { (ac_try="$ac_compile"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.$ac_objext; then
16216 cat >>confdefs.h <<\_ACEOF
16217 #define HAVE_EPOLL 1
16218 _ACEOF
16220 { echo "$as_me:$LINENO: result: yes" >&5
16221 echo "${ECHO_T}yes" >&6; }
16222 else
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 { echo "$as_me:$LINENO: result: no" >&5
16227 echo "${ECHO_T}no" >&6; }
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 { echo "$as_me:$LINENO: checking for kqueue" >&5
16233 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16234 cat >conftest.$ac_ext <<_ACEOF
16235 /* confdefs.h. */
16236 _ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16241 #include <sys/types.h>
16242 #include <sys/event.h>
16245 main ()
16247 int x=kqueue()
16249 return 0;
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (ac_try="$ac_compile"
16254 case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16257 esac
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_compile") 2>conftest.er1
16260 ac_status=$?
16261 grep -v '^ *+' conftest.er1 >conftest.err
16262 rm -f conftest.er1
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } && {
16266 test -z "$ac_c_werror_flag" ||
16267 test ! -s conftest.err
16268 } && test -s conftest.$ac_objext; then
16270 cat >>confdefs.h <<\_ACEOF
16271 #define HAVE_KQUEUE 1
16272 _ACEOF
16274 { echo "$as_me:$LINENO: result: yes" >&5
16275 echo "${ECHO_T}yes" >&6; }
16276 else
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 { echo "$as_me:$LINENO: result: no" >&5
16281 echo "${ECHO_T}no" >&6; }
16285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286 # On some systems (eg. FreeBSD 5), we would find a definition of the
16287 # functions ctermid_r, setgroups in the library, but no prototype
16288 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16289 # address to avoid compiler warnings and potential miscompilations
16290 # because of the missing prototypes.
16292 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16293 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h. */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16301 #include "confdefs.h"
16302 #include <stdio.h>
16305 main ()
16307 void* p = ctermid_r
16309 return 0;
16311 _ACEOF
16312 rm -f conftest.$ac_objext
16313 if { (ac_try="$ac_compile"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16317 esac
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_compile") 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest.$ac_objext; then
16330 cat >>confdefs.h <<\_ACEOF
16331 #define HAVE_CTERMID_R 1
16332 _ACEOF
16334 { echo "$as_me:$LINENO: result: yes" >&5
16335 echo "${ECHO_T}yes" >&6; }
16336 else
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 { echo "$as_me:$LINENO: result: no" >&5
16341 echo "${ECHO_T}no" >&6; }
16345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16347 { echo "$as_me:$LINENO: checking for flock" >&5
16348 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16356 #include "confdefs.h"
16357 #include <sys/file.h>
16360 main ()
16362 void* p = flock
16364 return 0;
16366 _ACEOF
16367 rm -f conftest.$ac_objext
16368 if { (ac_try="$ac_compile"
16369 case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372 esac
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_compile") 2>conftest.er1
16375 ac_status=$?
16376 grep -v '^ *+' conftest.er1 >conftest.err
16377 rm -f conftest.er1
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && {
16381 test -z "$ac_c_werror_flag" ||
16382 test ! -s conftest.err
16383 } && test -s conftest.$ac_objext; then
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE_FLOCK 1
16387 _ACEOF
16389 { echo "$as_me:$LINENO: result: yes" >&5
16390 echo "${ECHO_T}yes" >&6; }
16391 else
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16395 { echo "$as_me:$LINENO: result: no" >&5
16396 echo "${ECHO_T}no" >&6; }
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16403 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h. */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16411 #include "confdefs.h"
16412 #include <unistd.h>
16415 main ()
16417 void* p = getpagesize
16419 return 0;
16421 _ACEOF
16422 rm -f conftest.$ac_objext
16423 if { (ac_try="$ac_compile"
16424 case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_compile") 2>conftest.er1
16430 ac_status=$?
16431 grep -v '^ *+' conftest.er1 >conftest.err
16432 rm -f conftest.er1
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } && {
16436 test -z "$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16438 } && test -s conftest.$ac_objext; then
16440 cat >>confdefs.h <<\_ACEOF
16441 #define HAVE_GETPAGESIZE 1
16442 _ACEOF
16444 { echo "$as_me:$LINENO: result: yes" >&5
16445 echo "${ECHO_T}yes" >&6; }
16446 else
16447 echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16450 { echo "$as_me:$LINENO: result: no" >&5
16451 echo "${ECHO_T}no" >&6; }
16455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16457 for ac_prog in true
16459 # Extract the first word of "$ac_prog", so it can be a program name with args.
16460 set dummy $ac_prog; ac_word=$2
16461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16463 if test "${ac_cv_prog_TRUE+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466 if test -n "$TRUE"; then
16467 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16468 else
16469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16470 for as_dir in $PATH
16472 IFS=$as_save_IFS
16473 test -z "$as_dir" && as_dir=.
16474 for ac_exec_ext in '' $ac_executable_extensions; do
16475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16476 ac_cv_prog_TRUE="$ac_prog"
16477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16478 break 2
16480 done
16481 done
16482 IFS=$as_save_IFS
16486 TRUE=$ac_cv_prog_TRUE
16487 if test -n "$TRUE"; then
16488 { echo "$as_me:$LINENO: result: $TRUE" >&5
16489 echo "${ECHO_T}$TRUE" >&6; }
16490 else
16491 { echo "$as_me:$LINENO: result: no" >&5
16492 echo "${ECHO_T}no" >&6; }
16496 test -n "$TRUE" && break
16497 done
16498 test -n "$TRUE" || TRUE="/bin/true"
16501 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16502 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16503 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16504 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 else
16506 ac_check_lib_save_LIBS=$LIBS
16507 LIBS="-lc $LIBS"
16508 cat >conftest.$ac_ext <<_ACEOF
16509 /* confdefs.h. */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16515 /* Override any GCC internal prototype to avoid an error.
16516 Use char because int might match the return type of a GCC
16517 builtin and then its argument prototype would still apply. */
16518 #ifdef __cplusplus
16519 extern "C"
16520 #endif
16521 char inet_aton ();
16523 main ()
16525 return inet_aton ();
16527 return 0;
16529 _ACEOF
16530 rm -f conftest.$ac_objext conftest$ac_exeext
16531 if { (ac_try="$ac_link"
16532 case "(($ac_try" in
16533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534 *) ac_try_echo=$ac_try;;
16535 esac
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537 (eval "$ac_link") 2>conftest.er1
16538 ac_status=$?
16539 grep -v '^ *+' conftest.er1 >conftest.err
16540 rm -f conftest.er1
16541 cat conftest.err >&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } && {
16544 test -z "$ac_c_werror_flag" ||
16545 test ! -s conftest.err
16546 } && test -s conftest$ac_exeext &&
16547 $as_test_x conftest$ac_exeext; then
16548 ac_cv_lib_c_inet_aton=yes
16549 else
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_cv_lib_c_inet_aton=no
16556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16557 conftest$ac_exeext conftest.$ac_ext
16558 LIBS=$ac_check_lib_save_LIBS
16560 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16561 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16562 if test $ac_cv_lib_c_inet_aton = yes; then
16563 $ac_cv_prog_TRUE
16564 else
16566 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16567 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16568 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 else
16571 ac_check_lib_save_LIBS=$LIBS
16572 LIBS="-lresolv $LIBS"
16573 cat >conftest.$ac_ext <<_ACEOF
16574 /* confdefs.h. */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16580 /* Override any GCC internal prototype to avoid an error.
16581 Use char because int might match the return type of a GCC
16582 builtin and then its argument prototype would still apply. */
16583 #ifdef __cplusplus
16584 extern "C"
16585 #endif
16586 char inet_aton ();
16588 main ()
16590 return inet_aton ();
16592 return 0;
16594 _ACEOF
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (ac_try="$ac_link"
16597 case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16600 esac
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_link") 2>conftest.er1
16603 ac_status=$?
16604 grep -v '^ *+' conftest.er1 >conftest.err
16605 rm -f conftest.er1
16606 cat conftest.err >&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } && {
16609 test -z "$ac_c_werror_flag" ||
16610 test ! -s conftest.err
16611 } && test -s conftest$ac_exeext &&
16612 $as_test_x conftest$ac_exeext; then
16613 ac_cv_lib_resolv_inet_aton=yes
16614 else
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ac_cv_lib_resolv_inet_aton=no
16621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16622 conftest$ac_exeext conftest.$ac_ext
16623 LIBS=$ac_check_lib_save_LIBS
16625 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16626 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16627 if test $ac_cv_lib_resolv_inet_aton = yes; then
16628 cat >>confdefs.h <<_ACEOF
16629 #define HAVE_LIBRESOLV 1
16630 _ACEOF
16632 LIBS="-lresolv $LIBS"
16640 # On Tru64, chflags seems to be present, but calling it will
16641 # exit Python
16642 { echo "$as_me:$LINENO: checking for chflags" >&5
16643 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16644 if test "$cross_compiling" = yes; then
16645 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16646 See \`config.log' for more details." >&5
16647 echo "$as_me: error: cannot run test program while cross compiling
16648 See \`config.log' for more details." >&2;}
16649 { (exit 1); exit 1; }; }
16650 else
16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h. */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16658 #include <sys/stat.h>
16659 #include <unistd.h>
16660 int main(int argc, char*argv[])
16662 if(chflags(argv[0], 0) != 0)
16663 return 1;
16664 return 0;
16667 _ACEOF
16668 rm -f conftest$ac_exeext
16669 if { (ac_try="$ac_link"
16670 case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_link") 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16679 { (case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16682 esac
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_try") 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; }; then
16689 cat >>confdefs.h <<\_ACEOF
16690 #define HAVE_CHFLAGS 1
16691 _ACEOF
16693 { echo "$as_me:$LINENO: result: yes" >&5
16694 echo "${ECHO_T}yes" >&6; }
16695 else
16696 echo "$as_me: program exited with status $ac_status" >&5
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 ( exit $ac_status )
16701 { echo "$as_me:$LINENO: result: no" >&5
16702 echo "${ECHO_T}no" >&6; }
16705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: checking for lchflags" >&5
16711 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
16712 if test "$cross_compiling" = yes; then
16713 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16714 See \`config.log' for more details." >&5
16715 echo "$as_me: error: cannot run test program while cross compiling
16716 See \`config.log' for more details." >&2;}
16717 { (exit 1); exit 1; }; }
16718 else
16719 cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h. */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16726 #include <sys/stat.h>
16727 #include <unistd.h>
16728 int main(int argc, char*argv[])
16730 if(lchflags(argv[0], 0) != 0)
16731 return 1;
16732 return 0;
16735 _ACEOF
16736 rm -f conftest$ac_exeext
16737 if { (ac_try="$ac_link"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16757 cat >>confdefs.h <<\_ACEOF
16758 #define HAVE_LCHFLAGS 1
16759 _ACEOF
16761 { echo "$as_me:$LINENO: result: yes" >&5
16762 echo "${ECHO_T}yes" >&6; }
16763 else
16764 echo "$as_me: program exited with status $ac_status" >&5
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 ( exit $ac_status )
16769 { echo "$as_me:$LINENO: result: no" >&5
16770 echo "${ECHO_T}no" >&6; }
16773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16778 case $ac_sys_system/$ac_sys_release in
16779 Darwin/*)
16780 _CUR_CFLAGS="${CFLAGS}"
16781 _CUR_LDFLAGS="${LDFLAGS}"
16782 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16783 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16785 esac
16787 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16788 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16789 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 else
16792 ac_check_lib_save_LIBS=$LIBS
16793 LIBS="-lz $LIBS"
16794 cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h. */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16801 /* Override any GCC internal prototype to avoid an error.
16802 Use char because int might match the return type of a GCC
16803 builtin and then its argument prototype would still apply. */
16804 #ifdef __cplusplus
16805 extern "C"
16806 #endif
16807 char inflateCopy ();
16809 main ()
16811 return inflateCopy ();
16813 return 0;
16815 _ACEOF
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (ac_try="$ac_link"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_link") 2>conftest.er1
16824 ac_status=$?
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } && {
16830 test -z "$ac_c_werror_flag" ||
16831 test ! -s conftest.err
16832 } && test -s conftest$ac_exeext &&
16833 $as_test_x conftest$ac_exeext; then
16834 ac_cv_lib_z_inflateCopy=yes
16835 else
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_cv_lib_z_inflateCopy=no
16842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16843 conftest$ac_exeext conftest.$ac_ext
16844 LIBS=$ac_check_lib_save_LIBS
16846 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16847 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16848 if test $ac_cv_lib_z_inflateCopy = yes; then
16850 cat >>confdefs.h <<\_ACEOF
16851 #define HAVE_ZLIB_COPY 1
16852 _ACEOF
16857 case $ac_sys_system/$ac_sys_release in
16858 Darwin/*)
16859 CFLAGS="${_CUR_CFLAGS}"
16860 LDFLAGS="${_CUR_LDFLAGS}"
16862 esac
16864 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16865 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16866 cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h. */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16873 #include "confdefs.h"
16874 #include <netdb.h>
16877 main ()
16879 void* p = hstrerror; hstrerror(0)
16881 return 0;
16883 _ACEOF
16884 rm -f conftest.$ac_objext conftest$ac_exeext
16885 if { (ac_try="$ac_link"
16886 case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889 esac
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_link") 2>conftest.er1
16892 ac_status=$?
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } && {
16898 test -z "$ac_c_werror_flag" ||
16899 test ! -s conftest.err
16900 } && test -s conftest$ac_exeext &&
16901 $as_test_x conftest$ac_exeext; then
16903 cat >>confdefs.h <<\_ACEOF
16904 #define HAVE_HSTRERROR 1
16905 _ACEOF
16907 { echo "$as_me:$LINENO: result: yes" >&5
16908 echo "${ECHO_T}yes" >&6; }
16909 else
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16913 { echo "$as_me:$LINENO: result: no" >&5
16914 echo "${ECHO_T}no" >&6; }
16918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16919 conftest$ac_exeext conftest.$ac_ext
16921 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16922 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16923 cat >conftest.$ac_ext <<_ACEOF
16924 /* confdefs.h. */
16925 _ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16930 #include "confdefs.h"
16931 #include <sys/types.h>
16932 #include <sys/socket.h>
16933 #include <netinet/in.h>
16934 #include <arpa/inet.h>
16937 main ()
16939 void* p = inet_aton;inet_aton(0,0)
16941 return 0;
16943 _ACEOF
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (ac_try="$ac_link"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_link") 2>conftest.er1
16952 ac_status=$?
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } && {
16958 test -z "$ac_c_werror_flag" ||
16959 test ! -s conftest.err
16960 } && test -s conftest$ac_exeext &&
16961 $as_test_x conftest$ac_exeext; then
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_INET_ATON 1
16965 _ACEOF
16967 { echo "$as_me:$LINENO: result: yes" >&5
16968 echo "${ECHO_T}yes" >&6; }
16969 else
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 { echo "$as_me:$LINENO: result: no" >&5
16974 echo "${ECHO_T}no" >&6; }
16978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16979 conftest$ac_exeext conftest.$ac_ext
16981 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16982 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16983 cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h. */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16990 #include "confdefs.h"
16991 #include <sys/types.h>
16992 #include <sys/socket.h>
16993 #include <netinet/in.h>
16994 #include <arpa/inet.h>
16997 main ()
16999 void* p = inet_pton
17001 return 0;
17003 _ACEOF
17004 rm -f conftest.$ac_objext
17005 if { (ac_try="$ac_compile"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_compile") 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest.$ac_objext; then
17022 cat >>confdefs.h <<\_ACEOF
17023 #define HAVE_INET_PTON 1
17024 _ACEOF
17026 { echo "$as_me:$LINENO: result: yes" >&5
17027 echo "${ECHO_T}yes" >&6; }
17028 else
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 { echo "$as_me:$LINENO: result: no" >&5
17033 echo "${ECHO_T}no" >&6; }
17037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17039 # On some systems, setgroups is in unistd.h, on others, in grp.h
17040 { echo "$as_me:$LINENO: checking for setgroups" >&5
17041 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17042 cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h. */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17049 #include "confdefs.h"
17050 #include <unistd.h>
17051 #ifdef HAVE_GRP_H
17052 #include <grp.h>
17053 #endif
17056 main ()
17058 void* p = setgroups
17060 return 0;
17062 _ACEOF
17063 rm -f conftest.$ac_objext
17064 if { (ac_try="$ac_compile"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_compile") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } && {
17077 test -z "$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 } && test -s conftest.$ac_objext; then
17081 cat >>confdefs.h <<\_ACEOF
17082 #define HAVE_SETGROUPS 1
17083 _ACEOF
17085 { echo "$as_me:$LINENO: result: yes" >&5
17086 echo "${ECHO_T}yes" >&6; }
17087 else
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17091 { echo "$as_me:$LINENO: result: no" >&5
17092 echo "${ECHO_T}no" >&6; }
17096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098 # check for openpty and forkpty
17101 for ac_func in openpty
17103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109 cat >conftest.$ac_ext <<_ACEOF
17110 /* confdefs.h. */
17111 _ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h. */
17115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17117 #define $ac_func innocuous_$ac_func
17119 /* System header to define __stub macros and hopefully few prototypes,
17120 which can conflict with char $ac_func (); below.
17121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17122 <limits.h> exists even on freestanding compilers. */
17124 #ifdef __STDC__
17125 # include <limits.h>
17126 #else
17127 # include <assert.h>
17128 #endif
17130 #undef $ac_func
17132 /* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
17135 #ifdef __cplusplus
17136 extern "C"
17137 #endif
17138 char $ac_func ();
17139 /* The GNU C library defines this for functions which it implements
17140 to always fail with ENOSYS. Some functions are actually named
17141 something starting with __ and the normal name is an alias. */
17142 #if defined __stub_$ac_func || defined __stub___$ac_func
17143 choke me
17144 #endif
17147 main ()
17149 return $ac_func ();
17151 return 0;
17153 _ACEOF
17154 rm -f conftest.$ac_objext conftest$ac_exeext
17155 if { (ac_try="$ac_link"
17156 case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159 esac
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_link") 2>conftest.er1
17162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } && {
17168 test -z "$ac_c_werror_flag" ||
17169 test ! -s conftest.err
17170 } && test -s conftest$ac_exeext &&
17171 $as_test_x conftest$ac_exeext; then
17172 eval "$as_ac_var=yes"
17173 else
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17177 eval "$as_ac_var=no"
17180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17181 conftest$ac_exeext conftest.$ac_ext
17183 ac_res=`eval echo '${'$as_ac_var'}'`
17184 { echo "$as_me:$LINENO: result: $ac_res" >&5
17185 echo "${ECHO_T}$ac_res" >&6; }
17186 if test `eval echo '${'$as_ac_var'}'` = yes; then
17187 cat >>confdefs.h <<_ACEOF
17188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17189 _ACEOF
17191 else
17192 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17193 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17194 if test "${ac_cv_lib_util_openpty+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 else
17197 ac_check_lib_save_LIBS=$LIBS
17198 LIBS="-lutil $LIBS"
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h. */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17206 /* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
17209 #ifdef __cplusplus
17210 extern "C"
17211 #endif
17212 char openpty ();
17214 main ()
17216 return openpty ();
17218 return 0;
17220 _ACEOF
17221 rm -f conftest.$ac_objext conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>conftest.er1
17229 ac_status=$?
17230 grep -v '^ *+' conftest.er1 >conftest.err
17231 rm -f conftest.er1
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } && {
17235 test -z "$ac_c_werror_flag" ||
17236 test ! -s conftest.err
17237 } && test -s conftest$ac_exeext &&
17238 $as_test_x conftest$ac_exeext; then
17239 ac_cv_lib_util_openpty=yes
17240 else
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 ac_cv_lib_util_openpty=no
17247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17248 conftest$ac_exeext conftest.$ac_ext
17249 LIBS=$ac_check_lib_save_LIBS
17251 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17252 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17253 if test $ac_cv_lib_util_openpty = yes; then
17254 cat >>confdefs.h <<\_ACEOF
17255 #define HAVE_OPENPTY 1
17256 _ACEOF
17257 LIBS="$LIBS -lutil"
17258 else
17259 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17260 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17261 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 else
17264 ac_check_lib_save_LIBS=$LIBS
17265 LIBS="-lbsd $LIBS"
17266 cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h. */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17273 /* Override any GCC internal prototype to avoid an error.
17274 Use char because int might match the return type of a GCC
17275 builtin and then its argument prototype would still apply. */
17276 #ifdef __cplusplus
17277 extern "C"
17278 #endif
17279 char openpty ();
17281 main ()
17283 return openpty ();
17285 return 0;
17287 _ACEOF
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (ac_try="$ac_link"
17290 case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_link") 2>conftest.er1
17296 ac_status=$?
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && {
17302 test -z "$ac_c_werror_flag" ||
17303 test ! -s conftest.err
17304 } && test -s conftest$ac_exeext &&
17305 $as_test_x conftest$ac_exeext; then
17306 ac_cv_lib_bsd_openpty=yes
17307 else
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17311 ac_cv_lib_bsd_openpty=no
17314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17315 conftest$ac_exeext conftest.$ac_ext
17316 LIBS=$ac_check_lib_save_LIBS
17318 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17319 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17320 if test $ac_cv_lib_bsd_openpty = yes; then
17321 cat >>confdefs.h <<\_ACEOF
17322 #define HAVE_OPENPTY 1
17323 _ACEOF
17324 LIBS="$LIBS -lbsd"
17332 done
17335 for ac_func in forkpty
17337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17351 #define $ac_func innocuous_$ac_func
17353 /* System header to define __stub macros and hopefully few prototypes,
17354 which can conflict with char $ac_func (); below.
17355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356 <limits.h> exists even on freestanding compilers. */
17358 #ifdef __STDC__
17359 # include <limits.h>
17360 #else
17361 # include <assert.h>
17362 #endif
17364 #undef $ac_func
17366 /* Override any GCC internal prototype to avoid an error.
17367 Use char because int might match the return type of a GCC
17368 builtin and then its argument prototype would still apply. */
17369 #ifdef __cplusplus
17370 extern "C"
17371 #endif
17372 char $ac_func ();
17373 /* The GNU C library defines this for functions which it implements
17374 to always fail with ENOSYS. Some functions are actually named
17375 something starting with __ and the normal name is an alias. */
17376 #if defined __stub_$ac_func || defined __stub___$ac_func
17377 choke me
17378 #endif
17381 main ()
17383 return $ac_func ();
17385 return 0;
17387 _ACEOF
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (ac_try="$ac_link"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_link") 2>conftest.er1
17396 ac_status=$?
17397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } && {
17402 test -z "$ac_c_werror_flag" ||
17403 test ! -s conftest.err
17404 } && test -s conftest$ac_exeext &&
17405 $as_test_x conftest$ac_exeext; then
17406 eval "$as_ac_var=yes"
17407 else
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 eval "$as_ac_var=no"
17414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17415 conftest$ac_exeext conftest.$ac_ext
17417 ac_res=`eval echo '${'$as_ac_var'}'`
17418 { echo "$as_me:$LINENO: result: $ac_res" >&5
17419 echo "${ECHO_T}$ac_res" >&6; }
17420 if test `eval echo '${'$as_ac_var'}'` = yes; then
17421 cat >>confdefs.h <<_ACEOF
17422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17423 _ACEOF
17425 else
17426 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17427 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17428 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431 ac_check_lib_save_LIBS=$LIBS
17432 LIBS="-lutil $LIBS"
17433 cat >conftest.$ac_ext <<_ACEOF
17434 /* confdefs.h. */
17435 _ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17440 /* Override any GCC internal prototype to avoid an error.
17441 Use char because int might match the return type of a GCC
17442 builtin and then its argument prototype would still apply. */
17443 #ifdef __cplusplus
17444 extern "C"
17445 #endif
17446 char forkpty ();
17448 main ()
17450 return forkpty ();
17452 return 0;
17454 _ACEOF
17455 rm -f conftest.$ac_objext conftest$ac_exeext
17456 if { (ac_try="$ac_link"
17457 case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_link") 2>conftest.er1
17463 ac_status=$?
17464 grep -v '^ *+' conftest.er1 >conftest.err
17465 rm -f conftest.er1
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } && {
17469 test -z "$ac_c_werror_flag" ||
17470 test ! -s conftest.err
17471 } && test -s conftest$ac_exeext &&
17472 $as_test_x conftest$ac_exeext; then
17473 ac_cv_lib_util_forkpty=yes
17474 else
17475 echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17478 ac_cv_lib_util_forkpty=no
17481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17482 conftest$ac_exeext conftest.$ac_ext
17483 LIBS=$ac_check_lib_save_LIBS
17485 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17486 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17487 if test $ac_cv_lib_util_forkpty = yes; then
17488 cat >>confdefs.h <<\_ACEOF
17489 #define HAVE_FORKPTY 1
17490 _ACEOF
17491 LIBS="$LIBS -lutil"
17492 else
17493 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17494 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17495 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 else
17498 ac_check_lib_save_LIBS=$LIBS
17499 LIBS="-lbsd $LIBS"
17500 cat >conftest.$ac_ext <<_ACEOF
17501 /* confdefs.h. */
17502 _ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17507 /* Override any GCC internal prototype to avoid an error.
17508 Use char because int might match the return type of a GCC
17509 builtin and then its argument prototype would still apply. */
17510 #ifdef __cplusplus
17511 extern "C"
17512 #endif
17513 char forkpty ();
17515 main ()
17517 return forkpty ();
17519 return 0;
17521 _ACEOF
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } && {
17536 test -z "$ac_c_werror_flag" ||
17537 test ! -s conftest.err
17538 } && test -s conftest$ac_exeext &&
17539 $as_test_x conftest$ac_exeext; then
17540 ac_cv_lib_bsd_forkpty=yes
17541 else
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 ac_cv_lib_bsd_forkpty=no
17548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17549 conftest$ac_exeext conftest.$ac_ext
17550 LIBS=$ac_check_lib_save_LIBS
17552 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17553 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17554 if test $ac_cv_lib_bsd_forkpty = yes; then
17555 cat >>confdefs.h <<\_ACEOF
17556 #define HAVE_FORKPTY 1
17557 _ACEOF
17558 LIBS="$LIBS -lbsd"
17566 done
17569 # Stuff for expat.
17571 for ac_func in memmove
17573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17578 else
17579 cat >conftest.$ac_ext <<_ACEOF
17580 /* confdefs.h. */
17581 _ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17587 #define $ac_func innocuous_$ac_func
17589 /* System header to define __stub macros and hopefully few prototypes,
17590 which can conflict with char $ac_func (); below.
17591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17592 <limits.h> exists even on freestanding compilers. */
17594 #ifdef __STDC__
17595 # include <limits.h>
17596 #else
17597 # include <assert.h>
17598 #endif
17600 #undef $ac_func
17602 /* Override any GCC internal prototype to avoid an error.
17603 Use char because int might match the return type of a GCC
17604 builtin and then its argument prototype would still apply. */
17605 #ifdef __cplusplus
17606 extern "C"
17607 #endif
17608 char $ac_func ();
17609 /* The GNU C library defines this for functions which it implements
17610 to always fail with ENOSYS. Some functions are actually named
17611 something starting with __ and the normal name is an alias. */
17612 #if defined __stub_$ac_func || defined __stub___$ac_func
17613 choke me
17614 #endif
17617 main ()
17619 return $ac_func ();
17621 return 0;
17623 _ACEOF
17624 rm -f conftest.$ac_objext conftest$ac_exeext
17625 if { (ac_try="$ac_link"
17626 case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_link") 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } && {
17638 test -z "$ac_c_werror_flag" ||
17639 test ! -s conftest.err
17640 } && test -s conftest$ac_exeext &&
17641 $as_test_x conftest$ac_exeext; then
17642 eval "$as_ac_var=yes"
17643 else
17644 echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17647 eval "$as_ac_var=no"
17650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17651 conftest$ac_exeext conftest.$ac_ext
17653 ac_res=`eval echo '${'$as_ac_var'}'`
17654 { echo "$as_me:$LINENO: result: $ac_res" >&5
17655 echo "${ECHO_T}$ac_res" >&6; }
17656 if test `eval echo '${'$as_ac_var'}'` = yes; then
17657 cat >>confdefs.h <<_ACEOF
17658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17659 _ACEOF
17662 done
17665 # check for long file support functions
17672 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680 cat >conftest.$ac_ext <<_ACEOF
17681 /* confdefs.h. */
17682 _ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17688 #define $ac_func innocuous_$ac_func
17690 /* System header to define __stub macros and hopefully few prototypes,
17691 which can conflict with char $ac_func (); below.
17692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17693 <limits.h> exists even on freestanding compilers. */
17695 #ifdef __STDC__
17696 # include <limits.h>
17697 #else
17698 # include <assert.h>
17699 #endif
17701 #undef $ac_func
17703 /* Override any GCC internal prototype to avoid an error.
17704 Use char because int might match the return type of a GCC
17705 builtin and then its argument prototype would still apply. */
17706 #ifdef __cplusplus
17707 extern "C"
17708 #endif
17709 char $ac_func ();
17710 /* The GNU C library defines this for functions which it implements
17711 to always fail with ENOSYS. Some functions are actually named
17712 something starting with __ and the normal name is an alias. */
17713 #if defined __stub_$ac_func || defined __stub___$ac_func
17714 choke me
17715 #endif
17718 main ()
17720 return $ac_func ();
17722 return 0;
17724 _ACEOF
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_link") 2>conftest.er1
17733 ac_status=$?
17734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } && {
17739 test -z "$ac_c_werror_flag" ||
17740 test ! -s conftest.err
17741 } && test -s conftest$ac_exeext &&
17742 $as_test_x conftest$ac_exeext; then
17743 eval "$as_ac_var=yes"
17744 else
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17748 eval "$as_ac_var=no"
17751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17752 conftest$ac_exeext conftest.$ac_ext
17754 ac_res=`eval echo '${'$as_ac_var'}'`
17755 { echo "$as_me:$LINENO: result: $ac_res" >&5
17756 echo "${ECHO_T}$ac_res" >&6; }
17757 if test `eval echo '${'$as_ac_var'}'` = yes; then
17758 cat >>confdefs.h <<_ACEOF
17759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17760 _ACEOF
17763 done
17769 for ac_func in dup2 getcwd strdup
17771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777 cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h. */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17785 #define $ac_func innocuous_$ac_func
17787 /* System header to define __stub macros and hopefully few prototypes,
17788 which can conflict with char $ac_func (); below.
17789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790 <limits.h> exists even on freestanding compilers. */
17792 #ifdef __STDC__
17793 # include <limits.h>
17794 #else
17795 # include <assert.h>
17796 #endif
17798 #undef $ac_func
17800 /* Override any GCC internal prototype to avoid an error.
17801 Use char because int might match the return type of a GCC
17802 builtin and then its argument prototype would still apply. */
17803 #ifdef __cplusplus
17804 extern "C"
17805 #endif
17806 char $ac_func ();
17807 /* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810 #if defined __stub_$ac_func || defined __stub___$ac_func
17811 choke me
17812 #endif
17815 main ()
17817 return $ac_func ();
17819 return 0;
17821 _ACEOF
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (ac_try="$ac_link"
17824 case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827 esac
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_link") 2>conftest.er1
17830 ac_status=$?
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } && {
17836 test -z "$ac_c_werror_flag" ||
17837 test ! -s conftest.err
17838 } && test -s conftest$ac_exeext &&
17839 $as_test_x conftest$ac_exeext; then
17840 eval "$as_ac_var=yes"
17841 else
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 eval "$as_ac_var=no"
17848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17849 conftest$ac_exeext conftest.$ac_ext
17851 ac_res=`eval echo '${'$as_ac_var'}'`
17852 { echo "$as_me:$LINENO: result: $ac_res" >&5
17853 echo "${ECHO_T}$ac_res" >&6; }
17854 if test `eval echo '${'$as_ac_var'}'` = yes; then
17855 cat >>confdefs.h <<_ACEOF
17856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17857 _ACEOF
17859 else
17860 case " $LIBOBJS " in
17861 *" $ac_func.$ac_objext "* ) ;;
17862 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17864 esac
17867 done
17871 for ac_func in getpgrp
17873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 else
17879 cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h. */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17887 #define $ac_func innocuous_$ac_func
17889 /* System header to define __stub macros and hopefully few prototypes,
17890 which can conflict with char $ac_func (); below.
17891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17892 <limits.h> exists even on freestanding compilers. */
17894 #ifdef __STDC__
17895 # include <limits.h>
17896 #else
17897 # include <assert.h>
17898 #endif
17900 #undef $ac_func
17902 /* Override any GCC internal prototype to avoid an error.
17903 Use char because int might match the return type of a GCC
17904 builtin and then its argument prototype would still apply. */
17905 #ifdef __cplusplus
17906 extern "C"
17907 #endif
17908 char $ac_func ();
17909 /* The GNU C library defines this for functions which it implements
17910 to always fail with ENOSYS. Some functions are actually named
17911 something starting with __ and the normal name is an alias. */
17912 #if defined __stub_$ac_func || defined __stub___$ac_func
17913 choke me
17914 #endif
17917 main ()
17919 return $ac_func ();
17921 return 0;
17923 _ACEOF
17924 rm -f conftest.$ac_objext conftest$ac_exeext
17925 if { (ac_try="$ac_link"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_link") 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } && {
17938 test -z "$ac_c_werror_flag" ||
17939 test ! -s conftest.err
17940 } && test -s conftest$ac_exeext &&
17941 $as_test_x conftest$ac_exeext; then
17942 eval "$as_ac_var=yes"
17943 else
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17947 eval "$as_ac_var=no"
17950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17951 conftest$ac_exeext conftest.$ac_ext
17953 ac_res=`eval echo '${'$as_ac_var'}'`
17954 { echo "$as_me:$LINENO: result: $ac_res" >&5
17955 echo "${ECHO_T}$ac_res" >&6; }
17956 if test `eval echo '${'$as_ac_var'}'` = yes; then
17957 cat >>confdefs.h <<_ACEOF
17958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17959 _ACEOF
17960 cat >conftest.$ac_ext <<_ACEOF
17961 /* confdefs.h. */
17962 _ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17966 #include <unistd.h>
17968 main ()
17970 getpgrp(0);
17972 return 0;
17974 _ACEOF
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17980 esac
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_compile") 2>conftest.er1
17983 ac_status=$?
17984 grep -v '^ *+' conftest.er1 >conftest.err
17985 rm -f conftest.er1
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && {
17989 test -z "$ac_c_werror_flag" ||
17990 test ! -s conftest.err
17991 } && test -s conftest.$ac_objext; then
17993 cat >>confdefs.h <<\_ACEOF
17994 #define GETPGRP_HAVE_ARG 1
17995 _ACEOF
17998 else
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18008 done
18011 for ac_func in setpgrp
18013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18018 else
18019 cat >conftest.$ac_ext <<_ACEOF
18020 /* confdefs.h. */
18021 _ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18027 #define $ac_func innocuous_$ac_func
18029 /* System header to define __stub macros and hopefully few prototypes,
18030 which can conflict with char $ac_func (); below.
18031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18032 <limits.h> exists even on freestanding compilers. */
18034 #ifdef __STDC__
18035 # include <limits.h>
18036 #else
18037 # include <assert.h>
18038 #endif
18040 #undef $ac_func
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18045 #ifdef __cplusplus
18046 extern "C"
18047 #endif
18048 char $ac_func ();
18049 /* The GNU C library defines this for functions which it implements
18050 to always fail with ENOSYS. Some functions are actually named
18051 something starting with __ and the normal name is an alias. */
18052 #if defined __stub_$ac_func || defined __stub___$ac_func
18053 choke me
18054 #endif
18057 main ()
18059 return $ac_func ();
18061 return 0;
18063 _ACEOF
18064 rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_link") 2>conftest.er1
18072 ac_status=$?
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_c_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest$ac_exeext &&
18081 $as_test_x conftest$ac_exeext; then
18082 eval "$as_ac_var=yes"
18083 else
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 eval "$as_ac_var=no"
18090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18091 conftest$ac_exeext conftest.$ac_ext
18093 ac_res=`eval echo '${'$as_ac_var'}'`
18094 { echo "$as_me:$LINENO: result: $ac_res" >&5
18095 echo "${ECHO_T}$ac_res" >&6; }
18096 if test `eval echo '${'$as_ac_var'}'` = yes; then
18097 cat >>confdefs.h <<_ACEOF
18098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18099 _ACEOF
18100 cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h. */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106 #include <unistd.h>
18108 main ()
18110 setpgrp(0,0);
18112 return 0;
18114 _ACEOF
18115 rm -f conftest.$ac_objext
18116 if { (ac_try="$ac_compile"
18117 case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_compile") 2>conftest.er1
18123 ac_status=$?
18124 grep -v '^ *+' conftest.er1 >conftest.err
18125 rm -f conftest.er1
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } && {
18129 test -z "$ac_c_werror_flag" ||
18130 test ! -s conftest.err
18131 } && test -s conftest.$ac_objext; then
18133 cat >>confdefs.h <<\_ACEOF
18134 #define SETPGRP_HAVE_ARG 1
18135 _ACEOF
18138 else
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18148 done
18151 for ac_func in gettimeofday
18153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 else
18159 cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h. */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18167 #define $ac_func innocuous_$ac_func
18169 /* System header to define __stub macros and hopefully few prototypes,
18170 which can conflict with char $ac_func (); below.
18171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18172 <limits.h> exists even on freestanding compilers. */
18174 #ifdef __STDC__
18175 # include <limits.h>
18176 #else
18177 # include <assert.h>
18178 #endif
18180 #undef $ac_func
18182 /* Override any GCC internal prototype to avoid an error.
18183 Use char because int might match the return type of a GCC
18184 builtin and then its argument prototype would still apply. */
18185 #ifdef __cplusplus
18186 extern "C"
18187 #endif
18188 char $ac_func ();
18189 /* The GNU C library defines this for functions which it implements
18190 to always fail with ENOSYS. Some functions are actually named
18191 something starting with __ and the normal name is an alias. */
18192 #if defined __stub_$ac_func || defined __stub___$ac_func
18193 choke me
18194 #endif
18197 main ()
18199 return $ac_func ();
18201 return 0;
18203 _ACEOF
18204 rm -f conftest.$ac_objext conftest$ac_exeext
18205 if { (ac_try="$ac_link"
18206 case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18209 esac
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_link") 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } && {
18218 test -z "$ac_c_werror_flag" ||
18219 test ! -s conftest.err
18220 } && test -s conftest$ac_exeext &&
18221 $as_test_x conftest$ac_exeext; then
18222 eval "$as_ac_var=yes"
18223 else
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 eval "$as_ac_var=no"
18230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18231 conftest$ac_exeext conftest.$ac_ext
18233 ac_res=`eval echo '${'$as_ac_var'}'`
18234 { echo "$as_me:$LINENO: result: $ac_res" >&5
18235 echo "${ECHO_T}$ac_res" >&6; }
18236 if test `eval echo '${'$as_ac_var'}'` = yes; then
18237 cat >>confdefs.h <<_ACEOF
18238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18239 _ACEOF
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h. */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 #include <sys/time.h>
18248 main ()
18250 gettimeofday((struct timeval*)0,(struct timezone*)0);
18252 return 0;
18254 _ACEOF
18255 rm -f conftest.$ac_objext
18256 if { (ac_try="$ac_compile"
18257 case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18260 esac
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_compile") 2>conftest.er1
18263 ac_status=$?
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } && {
18269 test -z "$ac_c_werror_flag" ||
18270 test ! -s conftest.err
18271 } && test -s conftest.$ac_objext; then
18273 else
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18278 cat >>confdefs.h <<\_ACEOF
18279 #define GETTIMEOFDAY_NO_TZ 1
18280 _ACEOF
18285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288 done
18291 { echo "$as_me:$LINENO: checking for major" >&5
18292 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18293 cat >conftest.$ac_ext <<_ACEOF
18294 /* confdefs.h. */
18295 _ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18300 #if defined(MAJOR_IN_MKDEV)
18301 #include <sys/mkdev.h>
18302 #elif defined(MAJOR_IN_SYSMACROS)
18303 #include <sys/sysmacros.h>
18304 #else
18305 #include <sys/types.h>
18306 #endif
18309 main ()
18312 makedev(major(0),minor(0));
18315 return 0;
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_link") 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } && {
18332 test -z "$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18334 } && test -s conftest$ac_exeext &&
18335 $as_test_x conftest$ac_exeext; then
18338 cat >>confdefs.h <<\_ACEOF
18339 #define HAVE_DEVICE_MACROS 1
18340 _ACEOF
18342 { echo "$as_me:$LINENO: result: yes" >&5
18343 echo "${ECHO_T}yes" >&6; }
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18350 { echo "$as_me:$LINENO: result: no" >&5
18351 echo "${ECHO_T}no" >&6; }
18355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18356 conftest$ac_exeext conftest.$ac_ext
18358 # On OSF/1 V5.1, getaddrinfo is available, but a define
18359 # for [no]getaddrinfo in netdb.h.
18360 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18361 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18362 cat >conftest.$ac_ext <<_ACEOF
18363 /* confdefs.h. */
18364 _ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h. */
18369 #include <sys/types.h>
18370 #include <sys/socket.h>
18371 #include <netdb.h>
18372 #include <stdio.h>
18375 main ()
18378 getaddrinfo(NULL, NULL, NULL, NULL);
18381 return 0;
18383 _ACEOF
18384 rm -f conftest.$ac_objext conftest$ac_exeext
18385 if { (ac_try="$ac_link"
18386 case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_link") 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest$ac_exeext &&
18401 $as_test_x conftest$ac_exeext; then
18403 { echo "$as_me:$LINENO: result: yes" >&5
18404 echo "${ECHO_T}yes" >&6; }
18405 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18406 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18407 if test "$cross_compiling" = yes; then
18408 { echo "$as_me:$LINENO: result: buggy" >&5
18409 echo "${ECHO_T}buggy" >&6; }
18410 buggygetaddrinfo=yes
18411 else
18412 cat >conftest.$ac_ext <<_ACEOF
18413 /* confdefs.h. */
18414 _ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18419 #include <sys/types.h>
18420 #include <netdb.h>
18421 #include <string.h>
18422 #include <sys/socket.h>
18423 #include <netinet/in.h>
18425 main()
18427 int passive, gaierr, inet4 = 0, inet6 = 0;
18428 struct addrinfo hints, *ai, *aitop;
18429 char straddr[INET6_ADDRSTRLEN], strport[16];
18431 for (passive = 0; passive <= 1; passive++) {
18432 memset(&hints, 0, sizeof(hints));
18433 hints.ai_family = AF_UNSPEC;
18434 hints.ai_flags = passive ? AI_PASSIVE : 0;
18435 hints.ai_socktype = SOCK_STREAM;
18436 hints.ai_protocol = IPPROTO_TCP;
18437 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18438 (void)gai_strerror(gaierr);
18439 goto bad;
18441 for (ai = aitop; ai; ai = ai->ai_next) {
18442 if (ai->ai_addr == NULL ||
18443 ai->ai_addrlen == 0 ||
18444 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18445 straddr, sizeof(straddr), strport, sizeof(strport),
18446 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18447 goto bad;
18449 switch (ai->ai_family) {
18450 case AF_INET:
18451 if (strcmp(strport, "54321") != 0) {
18452 goto bad;
18454 if (passive) {
18455 if (strcmp(straddr, "0.0.0.0") != 0) {
18456 goto bad;
18458 } else {
18459 if (strcmp(straddr, "127.0.0.1") != 0) {
18460 goto bad;
18463 inet4++;
18464 break;
18465 case AF_INET6:
18466 if (strcmp(strport, "54321") != 0) {
18467 goto bad;
18469 if (passive) {
18470 if (strcmp(straddr, "::") != 0) {
18471 goto bad;
18473 } else {
18474 if (strcmp(straddr, "::1") != 0) {
18475 goto bad;
18478 inet6++;
18479 break;
18480 case AF_UNSPEC:
18481 goto bad;
18482 break;
18483 default:
18484 /* another family support? */
18485 break;
18490 if (!(inet4 == 0 || inet4 == 2))
18491 goto bad;
18492 if (!(inet6 == 0 || inet6 == 2))
18493 goto bad;
18495 if (aitop)
18496 freeaddrinfo(aitop);
18497 exit(0);
18499 bad:
18500 if (aitop)
18501 freeaddrinfo(aitop);
18502 exit(1);
18505 _ACEOF
18506 rm -f conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_link") 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18517 { (case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18520 esac
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_try") 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; }; then
18526 { echo "$as_me:$LINENO: result: good" >&5
18527 echo "${ECHO_T}good" >&6; }
18528 buggygetaddrinfo=no
18529 else
18530 echo "$as_me: program exited with status $ac_status" >&5
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 ( exit $ac_status )
18535 { echo "$as_me:$LINENO: result: buggy" >&5
18536 echo "${ECHO_T}buggy" >&6; }
18537 buggygetaddrinfo=yes
18539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18543 else
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18548 { echo "$as_me:$LINENO: result: no" >&5
18549 echo "${ECHO_T}no" >&6; }
18550 buggygetaddrinfo=yes
18554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18555 conftest$ac_exeext conftest.$ac_ext
18557 if test "$buggygetaddrinfo" = "yes"; then
18558 if test "$ipv6" = "yes"; then
18559 echo 'Fatal: You must get working getaddrinfo() function.'
18560 echo ' or you can specify "--disable-ipv6"'.
18561 exit 1
18563 else
18565 cat >>confdefs.h <<\_ACEOF
18566 #define HAVE_GETADDRINFO 1
18567 _ACEOF
18571 for ac_func in getnameinfo
18573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579 cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h. */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18587 #define $ac_func innocuous_$ac_func
18589 /* System header to define __stub macros and hopefully few prototypes,
18590 which can conflict with char $ac_func (); below.
18591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18592 <limits.h> exists even on freestanding compilers. */
18594 #ifdef __STDC__
18595 # include <limits.h>
18596 #else
18597 # include <assert.h>
18598 #endif
18600 #undef $ac_func
18602 /* Override any GCC internal prototype to avoid an error.
18603 Use char because int might match the return type of a GCC
18604 builtin and then its argument prototype would still apply. */
18605 #ifdef __cplusplus
18606 extern "C"
18607 #endif
18608 char $ac_func ();
18609 /* The GNU C library defines this for functions which it implements
18610 to always fail with ENOSYS. Some functions are actually named
18611 something starting with __ and the normal name is an alias. */
18612 #if defined __stub_$ac_func || defined __stub___$ac_func
18613 choke me
18614 #endif
18617 main ()
18619 return $ac_func ();
18621 return 0;
18623 _ACEOF
18624 rm -f conftest.$ac_objext conftest$ac_exeext
18625 if { (ac_try="$ac_link"
18626 case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18629 esac
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_link") 2>conftest.er1
18632 ac_status=$?
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest$ac_exeext &&
18641 $as_test_x conftest$ac_exeext; then
18642 eval "$as_ac_var=yes"
18643 else
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 eval "$as_ac_var=no"
18650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18651 conftest$ac_exeext conftest.$ac_ext
18653 ac_res=`eval echo '${'$as_ac_var'}'`
18654 { echo "$as_me:$LINENO: result: $ac_res" >&5
18655 echo "${ECHO_T}$ac_res" >&6; }
18656 if test `eval echo '${'$as_ac_var'}'` = yes; then
18657 cat >>confdefs.h <<_ACEOF
18658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18659 _ACEOF
18662 done
18665 # checks for structures
18666 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18667 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18668 if test "${ac_cv_header_time+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h. */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18677 #include <sys/types.h>
18678 #include <sys/time.h>
18679 #include <time.h>
18682 main ()
18684 if ((struct tm *) 0)
18685 return 0;
18687 return 0;
18689 _ACEOF
18690 rm -f conftest.$ac_objext
18691 if { (ac_try="$ac_compile"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_compile") 2>conftest.er1
18698 ac_status=$?
18699 grep -v '^ *+' conftest.er1 >conftest.err
18700 rm -f conftest.er1
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } && {
18704 test -z "$ac_c_werror_flag" ||
18705 test ! -s conftest.err
18706 } && test -s conftest.$ac_objext; then
18707 ac_cv_header_time=yes
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 ac_cv_header_time=no
18715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18718 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18719 if test $ac_cv_header_time = yes; then
18721 cat >>confdefs.h <<\_ACEOF
18722 #define TIME_WITH_SYS_TIME 1
18723 _ACEOF
18727 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18728 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18729 if test "${ac_cv_struct_tm+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732 cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h. */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18738 #include <sys/types.h>
18739 #include <time.h>
18742 main ()
18744 struct tm tm;
18745 int *p = &tm.tm_sec;
18746 return !p;
18748 return 0;
18750 _ACEOF
18751 rm -f conftest.$ac_objext
18752 if { (ac_try="$ac_compile"
18753 case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18756 esac
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_compile") 2>conftest.er1
18759 ac_status=$?
18760 grep -v '^ *+' conftest.er1 >conftest.err
18761 rm -f conftest.er1
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } && {
18765 test -z "$ac_c_werror_flag" ||
18766 test ! -s conftest.err
18767 } && test -s conftest.$ac_objext; then
18768 ac_cv_struct_tm=time.h
18769 else
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18773 ac_cv_struct_tm=sys/time.h
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18779 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18780 if test $ac_cv_struct_tm = sys/time.h; then
18782 cat >>confdefs.h <<\_ACEOF
18783 #define TM_IN_SYS_TIME 1
18784 _ACEOF
18788 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18789 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18790 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 #include <sys/types.h>
18800 #include <$ac_cv_struct_tm>
18804 main ()
18806 static struct tm ac_aggr;
18807 if (ac_aggr.tm_zone)
18808 return 0;
18810 return 0;
18812 _ACEOF
18813 rm -f conftest.$ac_objext
18814 if { (ac_try="$ac_compile"
18815 case "(($ac_try" in
18816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18818 esac
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_compile") 2>conftest.er1
18821 ac_status=$?
18822 grep -v '^ *+' conftest.er1 >conftest.err
18823 rm -f conftest.er1
18824 cat conftest.err >&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } && {
18827 test -z "$ac_c_werror_flag" ||
18828 test ! -s conftest.err
18829 } && test -s conftest.$ac_objext; then
18830 ac_cv_member_struct_tm_tm_zone=yes
18831 else
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18835 cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h. */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 #include <sys/types.h>
18842 #include <$ac_cv_struct_tm>
18846 main ()
18848 static struct tm ac_aggr;
18849 if (sizeof ac_aggr.tm_zone)
18850 return 0;
18852 return 0;
18854 _ACEOF
18855 rm -f conftest.$ac_objext
18856 if { (ac_try="$ac_compile"
18857 case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18860 esac
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_compile") 2>conftest.er1
18863 ac_status=$?
18864 grep -v '^ *+' conftest.er1 >conftest.err
18865 rm -f conftest.er1
18866 cat conftest.err >&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } && {
18869 test -z "$ac_c_werror_flag" ||
18870 test ! -s conftest.err
18871 } && test -s conftest.$ac_objext; then
18872 ac_cv_member_struct_tm_tm_zone=yes
18873 else
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18877 ac_cv_member_struct_tm_tm_zone=no
18880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18886 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18887 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18889 cat >>confdefs.h <<_ACEOF
18890 #define HAVE_STRUCT_TM_TM_ZONE 1
18891 _ACEOF
18896 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18898 cat >>confdefs.h <<\_ACEOF
18899 #define HAVE_TM_ZONE 1
18900 _ACEOF
18902 else
18903 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18904 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18905 if test "${ac_cv_have_decl_tzname+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h. */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18914 #include <time.h>
18917 main ()
18919 #ifndef tzname
18920 (void) tzname;
18921 #endif
18924 return 0;
18926 _ACEOF
18927 rm -f conftest.$ac_objext
18928 if { (ac_try="$ac_compile"
18929 case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18932 esac
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_compile") 2>conftest.er1
18935 ac_status=$?
18936 grep -v '^ *+' conftest.er1 >conftest.err
18937 rm -f conftest.er1
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } && {
18941 test -z "$ac_c_werror_flag" ||
18942 test ! -s conftest.err
18943 } && test -s conftest.$ac_objext; then
18944 ac_cv_have_decl_tzname=yes
18945 else
18946 echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18949 ac_cv_have_decl_tzname=no
18952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18954 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18955 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18956 if test $ac_cv_have_decl_tzname = yes; then
18958 cat >>confdefs.h <<_ACEOF
18959 #define HAVE_DECL_TZNAME 1
18960 _ACEOF
18963 else
18964 cat >>confdefs.h <<_ACEOF
18965 #define HAVE_DECL_TZNAME 0
18966 _ACEOF
18972 { echo "$as_me:$LINENO: checking for tzname" >&5
18973 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18974 if test "${ac_cv_var_tzname+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 else
18977 cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h. */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 #include <time.h>
18984 #if !HAVE_DECL_TZNAME
18985 extern char *tzname[];
18986 #endif
18989 main ()
18991 return tzname[0][0];
18993 return 0;
18995 _ACEOF
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (ac_try="$ac_link"
18998 case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_link") 2>conftest.er1
19004 ac_status=$?
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } && {
19010 test -z "$ac_c_werror_flag" ||
19011 test ! -s conftest.err
19012 } && test -s conftest$ac_exeext &&
19013 $as_test_x conftest$ac_exeext; then
19014 ac_cv_var_tzname=yes
19015 else
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 ac_cv_var_tzname=no
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023 conftest$ac_exeext conftest.$ac_ext
19025 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19026 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19027 if test $ac_cv_var_tzname = yes; then
19029 cat >>confdefs.h <<\_ACEOF
19030 #define HAVE_TZNAME 1
19031 _ACEOF
19036 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19037 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19038 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h. */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 $ac_includes_default
19049 main ()
19051 static struct stat ac_aggr;
19052 if (ac_aggr.st_rdev)
19053 return 0;
19055 return 0;
19057 _ACEOF
19058 rm -f conftest.$ac_objext
19059 if { (ac_try="$ac_compile"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_compile") 2>conftest.er1
19066 ac_status=$?
19067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && {
19072 test -z "$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19074 } && test -s conftest.$ac_objext; then
19075 ac_cv_member_struct_stat_st_rdev=yes
19076 else
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 $ac_includes_default
19088 main ()
19090 static struct stat ac_aggr;
19091 if (sizeof ac_aggr.st_rdev)
19092 return 0;
19094 return 0;
19096 _ACEOF
19097 rm -f conftest.$ac_objext
19098 if { (ac_try="$ac_compile"
19099 case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19102 esac
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_compile") 2>conftest.er1
19105 ac_status=$?
19106 grep -v '^ *+' conftest.er1 >conftest.err
19107 rm -f conftest.er1
19108 cat conftest.err >&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } && {
19111 test -z "$ac_c_werror_flag" ||
19112 test ! -s conftest.err
19113 } && test -s conftest.$ac_objext; then
19114 ac_cv_member_struct_stat_st_rdev=yes
19115 else
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19119 ac_cv_member_struct_stat_st_rdev=no
19122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19127 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19128 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19129 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19131 cat >>confdefs.h <<_ACEOF
19132 #define HAVE_STRUCT_STAT_ST_RDEV 1
19133 _ACEOF
19138 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19139 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19140 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h. */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 $ac_includes_default
19151 main ()
19153 static struct stat ac_aggr;
19154 if (ac_aggr.st_blksize)
19155 return 0;
19157 return 0;
19159 _ACEOF
19160 rm -f conftest.$ac_objext
19161 if { (ac_try="$ac_compile"
19162 case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19165 esac
19166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167 (eval "$ac_compile") 2>conftest.er1
19168 ac_status=$?
19169 grep -v '^ *+' conftest.er1 >conftest.err
19170 rm -f conftest.er1
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } && {
19174 test -z "$ac_c_werror_flag" ||
19175 test ! -s conftest.err
19176 } && test -s conftest.$ac_objext; then
19177 ac_cv_member_struct_stat_st_blksize=yes
19178 else
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h. */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 $ac_includes_default
19190 main ()
19192 static struct stat ac_aggr;
19193 if (sizeof ac_aggr.st_blksize)
19194 return 0;
19196 return 0;
19198 _ACEOF
19199 rm -f conftest.$ac_objext
19200 if { (ac_try="$ac_compile"
19201 case "(($ac_try" in
19202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203 *) ac_try_echo=$ac_try;;
19204 esac
19205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206 (eval "$ac_compile") 2>conftest.er1
19207 ac_status=$?
19208 grep -v '^ *+' conftest.er1 >conftest.err
19209 rm -f conftest.er1
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } && {
19213 test -z "$ac_c_werror_flag" ||
19214 test ! -s conftest.err
19215 } && test -s conftest.$ac_objext; then
19216 ac_cv_member_struct_stat_st_blksize=yes
19217 else
19218 echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19221 ac_cv_member_struct_stat_st_blksize=no
19224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19230 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19231 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19233 cat >>confdefs.h <<_ACEOF
19234 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19235 _ACEOF
19240 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19241 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19242 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 $ac_includes_default
19253 main ()
19255 static struct stat ac_aggr;
19256 if (ac_aggr.st_flags)
19257 return 0;
19259 return 0;
19261 _ACEOF
19262 rm -f conftest.$ac_objext
19263 if { (ac_try="$ac_compile"
19264 case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19267 esac
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_compile") 2>conftest.er1
19270 ac_status=$?
19271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } && {
19276 test -z "$ac_c_werror_flag" ||
19277 test ! -s conftest.err
19278 } && test -s conftest.$ac_objext; then
19279 ac_cv_member_struct_stat_st_flags=yes
19280 else
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h. */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 $ac_includes_default
19292 main ()
19294 static struct stat ac_aggr;
19295 if (sizeof ac_aggr.st_flags)
19296 return 0;
19298 return 0;
19300 _ACEOF
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_compile") 2>conftest.er1
19309 ac_status=$?
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && {
19315 test -z "$ac_c_werror_flag" ||
19316 test ! -s conftest.err
19317 } && test -s conftest.$ac_objext; then
19318 ac_cv_member_struct_stat_st_flags=yes
19319 else
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19323 ac_cv_member_struct_stat_st_flags=no
19326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19331 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19332 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19333 if test $ac_cv_member_struct_stat_st_flags = yes; then
19335 cat >>confdefs.h <<_ACEOF
19336 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19337 _ACEOF
19342 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19343 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19344 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h. */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353 $ac_includes_default
19355 main ()
19357 static struct stat ac_aggr;
19358 if (ac_aggr.st_gen)
19359 return 0;
19361 return 0;
19363 _ACEOF
19364 rm -f conftest.$ac_objext
19365 if { (ac_try="$ac_compile"
19366 case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19369 esac
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_compile") 2>conftest.er1
19372 ac_status=$?
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } && {
19378 test -z "$ac_c_werror_flag" ||
19379 test ! -s conftest.err
19380 } && test -s conftest.$ac_objext; then
19381 ac_cv_member_struct_stat_st_gen=yes
19382 else
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19386 cat >conftest.$ac_ext <<_ACEOF
19387 /* confdefs.h. */
19388 _ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19392 $ac_includes_default
19394 main ()
19396 static struct stat ac_aggr;
19397 if (sizeof ac_aggr.st_gen)
19398 return 0;
19400 return 0;
19402 _ACEOF
19403 rm -f conftest.$ac_objext
19404 if { (ac_try="$ac_compile"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest.$ac_objext; then
19420 ac_cv_member_struct_stat_st_gen=yes
19421 else
19422 echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19425 ac_cv_member_struct_stat_st_gen=no
19428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19434 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19435 if test $ac_cv_member_struct_stat_st_gen = yes; then
19437 cat >>confdefs.h <<_ACEOF
19438 #define HAVE_STRUCT_STAT_ST_GEN 1
19439 _ACEOF
19444 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19445 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19446 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19448 else
19449 cat >conftest.$ac_ext <<_ACEOF
19450 /* confdefs.h. */
19451 _ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19455 $ac_includes_default
19457 main ()
19459 static struct stat ac_aggr;
19460 if (ac_aggr.st_birthtime)
19461 return 0;
19463 return 0;
19465 _ACEOF
19466 rm -f conftest.$ac_objext
19467 if { (ac_try="$ac_compile"
19468 case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19471 esac
19472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473 (eval "$ac_compile") 2>conftest.er1
19474 ac_status=$?
19475 grep -v '^ *+' conftest.er1 >conftest.err
19476 rm -f conftest.er1
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } && {
19480 test -z "$ac_c_werror_flag" ||
19481 test ! -s conftest.err
19482 } && test -s conftest.$ac_objext; then
19483 ac_cv_member_struct_stat_st_birthtime=yes
19484 else
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 $ac_includes_default
19496 main ()
19498 static struct stat ac_aggr;
19499 if (sizeof ac_aggr.st_birthtime)
19500 return 0;
19502 return 0;
19504 _ACEOF
19505 rm -f conftest.$ac_objext
19506 if { (ac_try="$ac_compile"
19507 case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_compile") 2>conftest.er1
19513 ac_status=$?
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } && {
19519 test -z "$ac_c_werror_flag" ||
19520 test ! -s conftest.err
19521 } && test -s conftest.$ac_objext; then
19522 ac_cv_member_struct_stat_st_birthtime=yes
19523 else
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 ac_cv_member_struct_stat_st_birthtime=no
19530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19536 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19537 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19539 cat >>confdefs.h <<_ACEOF
19540 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19541 _ACEOF
19546 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19547 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19548 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 else
19551 cat >conftest.$ac_ext <<_ACEOF
19552 /* confdefs.h. */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 $ac_includes_default
19559 main ()
19561 static struct stat ac_aggr;
19562 if (ac_aggr.st_blocks)
19563 return 0;
19565 return 0;
19567 _ACEOF
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_compile") 2>conftest.er1
19576 ac_status=$?
19577 grep -v '^ *+' conftest.er1 >conftest.err
19578 rm -f conftest.er1
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } && {
19582 test -z "$ac_c_werror_flag" ||
19583 test ! -s conftest.err
19584 } && test -s conftest.$ac_objext; then
19585 ac_cv_member_struct_stat_st_blocks=yes
19586 else
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 cat >conftest.$ac_ext <<_ACEOF
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596 $ac_includes_default
19598 main ()
19600 static struct stat ac_aggr;
19601 if (sizeof ac_aggr.st_blocks)
19602 return 0;
19604 return 0;
19606 _ACEOF
19607 rm -f conftest.$ac_objext
19608 if { (ac_try="$ac_compile"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_compile") 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest.$ac_objext; then
19624 ac_cv_member_struct_stat_st_blocks=yes
19625 else
19626 echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 ac_cv_member_struct_stat_st_blocks=no
19632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19637 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19638 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19639 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19641 cat >>confdefs.h <<_ACEOF
19642 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19643 _ACEOF
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_ST_BLOCKS 1
19648 _ACEOF
19650 else
19651 case " $LIBOBJS " in
19652 *" fileblocks.$ac_objext "* ) ;;
19653 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19655 esac
19661 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19662 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19663 if test "${ac_cv_header_time_altzone+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666 cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h. */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 #include <time.h>
19674 main ()
19676 return altzone;
19678 return 0;
19680 _ACEOF
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_compile") 2>conftest.er1
19689 ac_status=$?
19690 grep -v '^ *+' conftest.er1 >conftest.err
19691 rm -f conftest.er1
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && {
19695 test -z "$ac_c_werror_flag" ||
19696 test ! -s conftest.err
19697 } && test -s conftest.$ac_objext; then
19698 ac_cv_header_time_altzone=yes
19699 else
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19703 ac_cv_header_time_altzone=no
19706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19710 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19711 if test $ac_cv_header_time_altzone = yes; then
19713 cat >>confdefs.h <<\_ACEOF
19714 #define HAVE_ALTZONE 1
19715 _ACEOF
19719 was_it_defined=no
19720 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19721 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19722 cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h. */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19729 #include <sys/types.h>
19730 #include <sys/select.h>
19731 #include <sys/time.h>
19734 main ()
19738 return 0;
19740 _ACEOF
19741 rm -f conftest.$ac_objext
19742 if { (ac_try="$ac_compile"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_compile") 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest.$ac_objext; then
19760 cat >>confdefs.h <<\_ACEOF
19761 #define SYS_SELECT_WITH_SYS_TIME 1
19762 _ACEOF
19764 was_it_defined=yes
19766 else
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19774 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19775 echo "${ECHO_T}$was_it_defined" >&6; }
19777 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19778 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19779 if test "${ac_cv_struct_addrinfo+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19781 else
19782 cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h. */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19789 # include <netdb.h>
19791 main ()
19793 struct addrinfo a
19795 return 0;
19797 _ACEOF
19798 rm -f conftest.$ac_objext
19799 if { (ac_try="$ac_compile"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_compile") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest.$ac_objext; then
19815 ac_cv_struct_addrinfo=yes
19816 else
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_cv_struct_addrinfo=no
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19827 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19828 if test $ac_cv_struct_addrinfo = yes; then
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_ADDRINFO 1
19832 _ACEOF
19836 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19837 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19838 if test "${ac_cv_struct_sockaddr_storage+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. */
19848 # include <sys/types.h>
19849 # include <sys/socket.h>
19851 main ()
19853 struct sockaddr_storage s
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_struct_sockaddr_storage=yes
19876 else
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 ac_cv_struct_sockaddr_storage=no
19883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19886 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19887 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19888 if test $ac_cv_struct_sockaddr_storage = yes; then
19890 cat >>confdefs.h <<\_ACEOF
19891 #define HAVE_SOCKADDR_STORAGE 1
19892 _ACEOF
19896 # checks for compiler characteristics
19899 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19900 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19901 if test "${ac_cv_c_char_unsigned+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h. */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 $ac_includes_default
19912 main ()
19914 static int test_array [1 - 2 * !(((char) -1) < 0)];
19915 test_array [0] = 0
19918 return 0;
19920 _ACEOF
19921 rm -f conftest.$ac_objext
19922 if { (ac_try="$ac_compile"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_compile") 2>conftest.er1
19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest.$ac_objext; then
19938 ac_cv_c_char_unsigned=no
19939 else
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19943 ac_cv_c_char_unsigned=yes
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19948 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19949 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19950 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19951 cat >>confdefs.h <<\_ACEOF
19952 #define __CHAR_UNSIGNED__ 1
19953 _ACEOF
19957 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19958 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19959 if test "${ac_cv_c_const+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19970 main ()
19972 /* FIXME: Include the comments suggested by Paul. */
19973 #ifndef __cplusplus
19974 /* Ultrix mips cc rejects this. */
19975 typedef int charset[2];
19976 const charset cs;
19977 /* SunOS 4.1.1 cc rejects this. */
19978 char const *const *pcpcc;
19979 char **ppc;
19980 /* NEC SVR4.0.2 mips cc rejects this. */
19981 struct point {int x, y;};
19982 static struct point const zero = {0,0};
19983 /* AIX XL C 1.02.0.0 rejects this.
19984 It does not let you subtract one const X* pointer from another in
19985 an arm of an if-expression whose if-part is not a constant
19986 expression */
19987 const char *g = "string";
19988 pcpcc = &g + (g ? g-g : 0);
19989 /* HPUX 7.0 cc rejects these. */
19990 ++pcpcc;
19991 ppc = (char**) pcpcc;
19992 pcpcc = (char const *const *) ppc;
19993 { /* SCO 3.2v4 cc rejects this. */
19994 char *t;
19995 char const *s = 0 ? (char *) 0 : (char const *) 0;
19997 *t++ = 0;
19998 if (s) return 0;
20000 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20001 int x[] = {25, 17};
20002 const int *foo = &x[0];
20003 ++foo;
20005 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20006 typedef const int *iptr;
20007 iptr p = 0;
20008 ++p;
20010 { /* AIX XL C 1.02.0.0 rejects this saying
20011 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20012 struct s { int j; const int *ap[3]; };
20013 struct s *b; b->j = 5;
20015 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20016 const int foo = 10;
20017 if (!foo) return 0;
20019 return !cs[0] && !zero.x;
20020 #endif
20023 return 0;
20025 _ACEOF
20026 rm -f conftest.$ac_objext
20027 if { (ac_try="$ac_compile"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_compile") 2>conftest.er1
20034 ac_status=$?
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } && {
20040 test -z "$ac_c_werror_flag" ||
20041 test ! -s conftest.err
20042 } && test -s conftest.$ac_objext; then
20043 ac_cv_c_const=yes
20044 else
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_cv_c_const=no
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20053 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20054 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20055 if test $ac_cv_c_const = no; then
20057 cat >>confdefs.h <<\_ACEOF
20058 #define const
20059 _ACEOF
20064 works=no
20065 { echo "$as_me:$LINENO: checking for working volatile" >&5
20066 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20067 cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h. */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20075 main ()
20077 volatile int x; x = 0;
20079 return 0;
20081 _ACEOF
20082 rm -f conftest.$ac_objext
20083 if { (ac_try="$ac_compile"
20084 case "(($ac_try" in
20085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086 *) ac_try_echo=$ac_try;;
20087 esac
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20090 ac_status=$?
20091 grep -v '^ *+' conftest.er1 >conftest.err
20092 rm -f conftest.er1
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } && {
20096 test -z "$ac_c_werror_flag" ||
20097 test ! -s conftest.err
20098 } && test -s conftest.$ac_objext; then
20099 works=yes
20100 else
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20105 cat >>confdefs.h <<\_ACEOF
20106 #define volatile
20107 _ACEOF
20112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113 { echo "$as_me:$LINENO: result: $works" >&5
20114 echo "${ECHO_T}$works" >&6; }
20116 works=no
20117 { echo "$as_me:$LINENO: checking for working signed char" >&5
20118 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h. */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20127 main ()
20129 signed char c;
20131 return 0;
20133 _ACEOF
20134 rm -f conftest.$ac_objext
20135 if { (ac_try="$ac_compile"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139 esac
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_compile") 2>conftest.er1
20142 ac_status=$?
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && {
20148 test -z "$ac_c_werror_flag" ||
20149 test ! -s conftest.err
20150 } && test -s conftest.$ac_objext; then
20151 works=yes
20152 else
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20157 cat >>confdefs.h <<\_ACEOF
20158 #define signed
20159 _ACEOF
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 { echo "$as_me:$LINENO: result: $works" >&5
20166 echo "${ECHO_T}$works" >&6; }
20168 have_prototypes=no
20169 { echo "$as_me:$LINENO: checking for prototypes" >&5
20170 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h. */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 int foo(int x) { return 0; }
20179 main ()
20181 return foo(10);
20183 return 0;
20185 _ACEOF
20186 rm -f conftest.$ac_objext
20187 if { (ac_try="$ac_compile"
20188 case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_compile") 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } && {
20200 test -z "$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20202 } && test -s conftest.$ac_objext; then
20205 cat >>confdefs.h <<\_ACEOF
20206 #define HAVE_PROTOTYPES 1
20207 _ACEOF
20209 have_prototypes=yes
20211 else
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20220 echo "${ECHO_T}$have_prototypes" >&6; }
20222 works=no
20223 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20224 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20232 #include <stdarg.h>
20233 int foo(int x, ...) {
20234 va_list va;
20235 va_start(va, x);
20236 va_arg(va, int);
20237 va_arg(va, char *);
20238 va_arg(va, double);
20239 return 0;
20243 main ()
20245 return foo(10, "", 3.14);
20247 return 0;
20249 _ACEOF
20250 rm -f conftest.$ac_objext
20251 if { (ac_try="$ac_compile"
20252 case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20255 esac
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_compile") 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.$ac_objext; then
20269 cat >>confdefs.h <<\_ACEOF
20270 #define HAVE_STDARG_PROTOTYPES 1
20271 _ACEOF
20273 works=yes
20275 else
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 { echo "$as_me:$LINENO: result: $works" >&5
20284 echo "${ECHO_T}$works" >&6; }
20286 # check for socketpair
20287 { echo "$as_me:$LINENO: checking for socketpair" >&5
20288 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20289 cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h. */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 #include <sys/types.h>
20297 #include <sys/socket.h>
20300 main ()
20302 void *x=socketpair
20304 return 0;
20306 _ACEOF
20307 rm -f conftest.$ac_objext
20308 if { (ac_try="$ac_compile"
20309 case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_compile") 2>conftest.er1
20315 ac_status=$?
20316 grep -v '^ *+' conftest.er1 >conftest.err
20317 rm -f conftest.er1
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && {
20321 test -z "$ac_c_werror_flag" ||
20322 test ! -s conftest.err
20323 } && test -s conftest.$ac_objext; then
20325 cat >>confdefs.h <<\_ACEOF
20326 #define HAVE_SOCKETPAIR 1
20327 _ACEOF
20329 { echo "$as_me:$LINENO: result: yes" >&5
20330 echo "${ECHO_T}yes" >&6; }
20331 else
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 { echo "$as_me:$LINENO: result: no" >&5
20336 echo "${ECHO_T}no" >&6; }
20340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20342 # check if sockaddr has sa_len member
20343 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20344 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h. */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20351 #include <sys/types.h>
20352 #include <sys/socket.h>
20354 main ()
20356 struct sockaddr x;
20357 x.sa_len = 0;
20359 return 0;
20361 _ACEOF
20362 rm -f conftest.$ac_objext
20363 if { (ac_try="$ac_compile"
20364 case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_compile") 2>conftest.er1
20370 ac_status=$?
20371 grep -v '^ *+' conftest.er1 >conftest.err
20372 rm -f conftest.er1
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } && {
20376 test -z "$ac_c_werror_flag" ||
20377 test ! -s conftest.err
20378 } && test -s conftest.$ac_objext; then
20379 { echo "$as_me:$LINENO: result: yes" >&5
20380 echo "${ECHO_T}yes" >&6; }
20382 cat >>confdefs.h <<\_ACEOF
20383 #define HAVE_SOCKADDR_SA_LEN 1
20384 _ACEOF
20386 else
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20390 { echo "$as_me:$LINENO: result: no" >&5
20391 echo "${ECHO_T}no" >&6; }
20394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20396 va_list_is_array=no
20397 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20398 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h. */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20406 #ifdef HAVE_STDARG_PROTOTYPES
20407 #include <stdarg.h>
20408 #else
20409 #include <varargs.h>
20410 #endif
20413 main ()
20415 va_list list1, list2; list1 = list2;
20417 return 0;
20419 _ACEOF
20420 rm -f conftest.$ac_objext
20421 if { (ac_try="$ac_compile"
20422 case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20425 esac
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_compile") 2>conftest.er1
20428 ac_status=$?
20429 grep -v '^ *+' conftest.er1 >conftest.err
20430 rm -f conftest.er1
20431 cat conftest.err >&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } && {
20434 test -z "$ac_c_werror_flag" ||
20435 test ! -s conftest.err
20436 } && test -s conftest.$ac_objext; then
20438 else
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20444 cat >>confdefs.h <<\_ACEOF
20445 #define VA_LIST_IS_ARRAY 1
20446 _ACEOF
20448 va_list_is_array=yes
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20454 echo "${ECHO_T}$va_list_is_array" >&6; }
20456 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20460 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20461 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20462 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h. */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20473 #define gethostbyname_r innocuous_gethostbyname_r
20475 /* System header to define __stub macros and hopefully few prototypes,
20476 which can conflict with char gethostbyname_r (); below.
20477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20478 <limits.h> exists even on freestanding compilers. */
20480 #ifdef __STDC__
20481 # include <limits.h>
20482 #else
20483 # include <assert.h>
20484 #endif
20486 #undef gethostbyname_r
20488 /* Override any GCC internal prototype to avoid an error.
20489 Use char because int might match the return type of a GCC
20490 builtin and then its argument prototype would still apply. */
20491 #ifdef __cplusplus
20492 extern "C"
20493 #endif
20494 char gethostbyname_r ();
20495 /* The GNU C library defines this for functions which it implements
20496 to always fail with ENOSYS. Some functions are actually named
20497 something starting with __ and the normal name is an alias. */
20498 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20499 choke me
20500 #endif
20503 main ()
20505 return gethostbyname_r ();
20507 return 0;
20509 _ACEOF
20510 rm -f conftest.$ac_objext conftest$ac_exeext
20511 if { (ac_try="$ac_link"
20512 case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_link") 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } && {
20524 test -z "$ac_c_werror_flag" ||
20525 test ! -s conftest.err
20526 } && test -s conftest$ac_exeext &&
20527 $as_test_x conftest$ac_exeext; then
20528 ac_cv_func_gethostbyname_r=yes
20529 else
20530 echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20533 ac_cv_func_gethostbyname_r=no
20536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20537 conftest$ac_exeext conftest.$ac_ext
20539 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20540 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20541 if test $ac_cv_func_gethostbyname_r = yes; then
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_GETHOSTBYNAME_R 1
20545 _ACEOF
20547 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20548 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20549 OLD_CFLAGS=$CFLAGS
20550 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20551 cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h. */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20558 # include <netdb.h>
20561 main ()
20564 char *name;
20565 struct hostent *he, *res;
20566 char buffer[2048];
20567 int buflen = 2048;
20568 int h_errnop;
20570 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
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
20594 cat >>confdefs.h <<\_ACEOF
20595 #define HAVE_GETHOSTBYNAME_R 1
20596 _ACEOF
20599 cat >>confdefs.h <<\_ACEOF
20600 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20601 _ACEOF
20603 { echo "$as_me:$LINENO: result: yes" >&5
20604 echo "${ECHO_T}yes" >&6; }
20606 else
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20611 { echo "$as_me:$LINENO: result: no" >&5
20612 echo "${ECHO_T}no" >&6; }
20613 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20614 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h. */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 # include <netdb.h>
20625 main ()
20628 char *name;
20629 struct hostent *he;
20630 char buffer[2048];
20631 int buflen = 2048;
20632 int h_errnop;
20634 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20637 return 0;
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_compile") 2>conftest.er1
20648 ac_status=$?
20649 grep -v '^ *+' conftest.er1 >conftest.err
20650 rm -f conftest.er1
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } && {
20654 test -z "$ac_c_werror_flag" ||
20655 test ! -s conftest.err
20656 } && test -s conftest.$ac_objext; then
20658 cat >>confdefs.h <<\_ACEOF
20659 #define HAVE_GETHOSTBYNAME_R 1
20660 _ACEOF
20663 cat >>confdefs.h <<\_ACEOF
20664 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20665 _ACEOF
20667 { echo "$as_me:$LINENO: result: yes" >&5
20668 echo "${ECHO_T}yes" >&6; }
20670 else
20671 echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20675 { echo "$as_me:$LINENO: result: no" >&5
20676 echo "${ECHO_T}no" >&6; }
20677 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20678 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20679 cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h. */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 # include <netdb.h>
20689 main ()
20692 char *name;
20693 struct hostent *he;
20694 struct hostent_data data;
20696 (void) gethostbyname_r(name, he, &data);
20699 return 0;
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_compile") 2>conftest.er1
20710 ac_status=$?
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest.$ac_objext; then
20720 cat >>confdefs.h <<\_ACEOF
20721 #define HAVE_GETHOSTBYNAME_R 1
20722 _ACEOF
20725 cat >>confdefs.h <<\_ACEOF
20726 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20727 _ACEOF
20729 { echo "$as_me:$LINENO: result: yes" >&5
20730 echo "${ECHO_T}yes" >&6; }
20732 else
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20737 { echo "$as_me:$LINENO: result: no" >&5
20738 echo "${ECHO_T}no" >&6; }
20742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20751 CFLAGS=$OLD_CFLAGS
20753 else
20756 for ac_func in gethostbyname
20758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 else
20764 cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h. */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20772 #define $ac_func innocuous_$ac_func
20774 /* System header to define __stub macros and hopefully few prototypes,
20775 which can conflict with char $ac_func (); below.
20776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20777 <limits.h> exists even on freestanding compilers. */
20779 #ifdef __STDC__
20780 # include <limits.h>
20781 #else
20782 # include <assert.h>
20783 #endif
20785 #undef $ac_func
20787 /* Override any GCC internal prototype to avoid an error.
20788 Use char because int might match the return type of a GCC
20789 builtin and then its argument prototype would still apply. */
20790 #ifdef __cplusplus
20791 extern "C"
20792 #endif
20793 char $ac_func ();
20794 /* The GNU C library defines this for functions which it implements
20795 to always fail with ENOSYS. Some functions are actually named
20796 something starting with __ and the normal name is an alias. */
20797 #if defined __stub_$ac_func || defined __stub___$ac_func
20798 choke me
20799 #endif
20802 main ()
20804 return $ac_func ();
20806 return 0;
20808 _ACEOF
20809 rm -f conftest.$ac_objext conftest$ac_exeext
20810 if { (ac_try="$ac_link"
20811 case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_link") 2>conftest.er1
20817 ac_status=$?
20818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } && {
20823 test -z "$ac_c_werror_flag" ||
20824 test ! -s conftest.err
20825 } && test -s conftest$ac_exeext &&
20826 $as_test_x conftest$ac_exeext; then
20827 eval "$as_ac_var=yes"
20828 else
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 eval "$as_ac_var=no"
20835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20836 conftest$ac_exeext conftest.$ac_ext
20838 ac_res=`eval echo '${'$as_ac_var'}'`
20839 { echo "$as_me:$LINENO: result: $ac_res" >&5
20840 echo "${ECHO_T}$ac_res" >&6; }
20841 if test `eval echo '${'$as_ac_var'}'` = yes; then
20842 cat >>confdefs.h <<_ACEOF
20843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20844 _ACEOF
20847 done
20858 # checks for system services
20859 # (none yet)
20861 # Linux requires this for correct f.p. operations
20862 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20863 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20864 if test "${ac_cv_func___fpu_control+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20875 #define __fpu_control innocuous___fpu_control
20877 /* System header to define __stub macros and hopefully few prototypes,
20878 which can conflict with char __fpu_control (); below.
20879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20880 <limits.h> exists even on freestanding compilers. */
20882 #ifdef __STDC__
20883 # include <limits.h>
20884 #else
20885 # include <assert.h>
20886 #endif
20888 #undef __fpu_control
20890 /* Override any GCC internal prototype to avoid an error.
20891 Use char because int might match the return type of a GCC
20892 builtin and then its argument prototype would still apply. */
20893 #ifdef __cplusplus
20894 extern "C"
20895 #endif
20896 char __fpu_control ();
20897 /* The GNU C library defines this for functions which it implements
20898 to always fail with ENOSYS. Some functions are actually named
20899 something starting with __ and the normal name is an alias. */
20900 #if defined __stub___fpu_control || defined __stub_____fpu_control
20901 choke me
20902 #endif
20905 main ()
20907 return __fpu_control ();
20909 return 0;
20911 _ACEOF
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (ac_try="$ac_link"
20914 case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20917 esac
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_link") 2>conftest.er1
20920 ac_status=$?
20921 grep -v '^ *+' conftest.er1 >conftest.err
20922 rm -f conftest.er1
20923 cat conftest.err >&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } && {
20926 test -z "$ac_c_werror_flag" ||
20927 test ! -s conftest.err
20928 } && test -s conftest$ac_exeext &&
20929 $as_test_x conftest$ac_exeext; then
20930 ac_cv_func___fpu_control=yes
20931 else
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ac_cv_func___fpu_control=no
20938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20939 conftest$ac_exeext conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20942 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20943 if test $ac_cv_func___fpu_control = yes; then
20945 else
20947 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20948 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20949 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 else
20952 ac_check_lib_save_LIBS=$LIBS
20953 LIBS="-lieee $LIBS"
20954 cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h. */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20961 /* Override any GCC internal prototype to avoid an error.
20962 Use char because int might match the return type of a GCC
20963 builtin and then its argument prototype would still apply. */
20964 #ifdef __cplusplus
20965 extern "C"
20966 #endif
20967 char __fpu_control ();
20969 main ()
20971 return __fpu_control ();
20973 return 0;
20975 _ACEOF
20976 rm -f conftest.$ac_objext conftest$ac_exeext
20977 if { (ac_try="$ac_link"
20978 case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20981 esac
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_link") 2>conftest.er1
20984 ac_status=$?
20985 grep -v '^ *+' conftest.er1 >conftest.err
20986 rm -f conftest.er1
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest$ac_exeext &&
20993 $as_test_x conftest$ac_exeext; then
20994 ac_cv_lib_ieee___fpu_control=yes
20995 else
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ac_cv_lib_ieee___fpu_control=no
21002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21003 conftest$ac_exeext conftest.$ac_ext
21004 LIBS=$ac_check_lib_save_LIBS
21006 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21007 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21008 if test $ac_cv_lib_ieee___fpu_control = yes; then
21009 cat >>confdefs.h <<_ACEOF
21010 #define HAVE_LIBIEEE 1
21011 _ACEOF
21013 LIBS="-lieee $LIBS"
21021 # Check for --with-fpectl
21022 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21023 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21025 # Check whether --with-fpectl was given.
21026 if test "${with_fpectl+set}" = set; then
21027 withval=$with_fpectl;
21028 if test "$withval" != no
21029 then
21031 cat >>confdefs.h <<\_ACEOF
21032 #define WANT_SIGFPE_HANDLER 1
21033 _ACEOF
21035 { echo "$as_me:$LINENO: result: yes" >&5
21036 echo "${ECHO_T}yes" >&6; }
21037 else { echo "$as_me:$LINENO: result: no" >&5
21038 echo "${ECHO_T}no" >&6; }
21040 else
21041 { echo "$as_me:$LINENO: result: no" >&5
21042 echo "${ECHO_T}no" >&6; }
21046 # check for --with-libm=...
21048 case $ac_sys_system in
21049 Darwin) ;;
21050 *) LIBM=-lm
21051 esac
21052 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21053 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21055 # Check whether --with-libm was given.
21056 if test "${with_libm+set}" = set; then
21057 withval=$with_libm;
21058 if test "$withval" = no
21059 then LIBM=
21060 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21061 echo "${ECHO_T}force LIBM empty" >&6; }
21062 elif test "$withval" != yes
21063 then LIBM=$withval
21064 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21065 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21066 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21067 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21068 { (exit 1); exit 1; }; }
21070 else
21071 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21072 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21076 # check for --with-libc=...
21078 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21079 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21081 # Check whether --with-libc was given.
21082 if test "${with_libc+set}" = set; then
21083 withval=$with_libc;
21084 if test "$withval" = no
21085 then LIBC=
21086 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21087 echo "${ECHO_T}force LIBC empty" >&6; }
21088 elif test "$withval" != yes
21089 then LIBC=$withval
21090 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21091 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21092 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21093 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21094 { (exit 1); exit 1; }; }
21096 else
21097 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21098 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21102 # ************************************
21103 # * Check for mathematical functions *
21104 # ************************************
21106 LIBS_SAVE=$LIBS
21107 LIBS="$LIBS $LIBM"
21109 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21110 # -0. on some architectures.
21111 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21112 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21113 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115 else
21117 if test "$cross_compiling" = yes; then
21118 ac_cv_tanh_preserves_zero_sign=no
21119 else
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h. */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21127 #include <math.h>
21128 #include <stdlib.h>
21129 int main() {
21130 /* return 0 if either negative zeros don't exist
21131 on this platform or if negative zeros exist
21132 and tanh(-0.) == -0. */
21133 if (atan2(0., -1.) == atan2(-0., -1.) ||
21134 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21135 else exit(1);
21138 _ACEOF
21139 rm -f conftest$ac_exeext
21140 if { (ac_try="$ac_link"
21141 case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_link") 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21150 { (case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_try") 2>&5
21156 ac_status=$?
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 ac_cv_tanh_preserves_zero_sign=yes
21160 else
21161 echo "$as_me: program exited with status $ac_status" >&5
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21165 ( exit $ac_status )
21166 ac_cv_tanh_preserves_zero_sign=no
21168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21174 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21175 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21176 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21177 then
21179 cat >>confdefs.h <<\_ACEOF
21180 #define TANH_PRESERVES_ZERO_SIGN 1
21181 _ACEOF
21186 for ac_func in hypot
21188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194 cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h. */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21202 #define $ac_func innocuous_$ac_func
21204 /* System header to define __stub macros and hopefully few prototypes,
21205 which can conflict with char $ac_func (); below.
21206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21207 <limits.h> exists even on freestanding compilers. */
21209 #ifdef __STDC__
21210 # include <limits.h>
21211 #else
21212 # include <assert.h>
21213 #endif
21215 #undef $ac_func
21217 /* Override any GCC internal prototype to avoid an error.
21218 Use char because int might match the return type of a GCC
21219 builtin and then its argument prototype would still apply. */
21220 #ifdef __cplusplus
21221 extern "C"
21222 #endif
21223 char $ac_func ();
21224 /* The GNU C library defines this for functions which it implements
21225 to always fail with ENOSYS. Some functions are actually named
21226 something starting with __ and the normal name is an alias. */
21227 #if defined __stub_$ac_func || defined __stub___$ac_func
21228 choke me
21229 #endif
21232 main ()
21234 return $ac_func ();
21236 return 0;
21238 _ACEOF
21239 rm -f conftest.$ac_objext conftest$ac_exeext
21240 if { (ac_try="$ac_link"
21241 case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21244 esac
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_link") 2>conftest.er1
21247 ac_status=$?
21248 grep -v '^ *+' conftest.er1 >conftest.err
21249 rm -f conftest.er1
21250 cat conftest.err >&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && {
21253 test -z "$ac_c_werror_flag" ||
21254 test ! -s conftest.err
21255 } && test -s conftest$ac_exeext &&
21256 $as_test_x conftest$ac_exeext; then
21257 eval "$as_ac_var=yes"
21258 else
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 eval "$as_ac_var=no"
21265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21266 conftest$ac_exeext conftest.$ac_ext
21268 ac_res=`eval echo '${'$as_ac_var'}'`
21269 { echo "$as_me:$LINENO: result: $ac_res" >&5
21270 echo "${ECHO_T}$ac_res" >&6; }
21271 if test `eval echo '${'$as_ac_var'}'` = yes; then
21272 cat >>confdefs.h <<_ACEOF
21273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21274 _ACEOF
21276 else
21277 case " $LIBOBJS " in
21278 *" $ac_func.$ac_objext "* ) ;;
21279 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21281 esac
21284 done
21297 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21303 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 else
21305 cat >conftest.$ac_ext <<_ACEOF
21306 /* confdefs.h. */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21313 #define $ac_func innocuous_$ac_func
21315 /* System header to define __stub macros and hopefully few prototypes,
21316 which can conflict with char $ac_func (); below.
21317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21318 <limits.h> exists even on freestanding compilers. */
21320 #ifdef __STDC__
21321 # include <limits.h>
21322 #else
21323 # include <assert.h>
21324 #endif
21326 #undef $ac_func
21328 /* Override any GCC internal prototype to avoid an error.
21329 Use char because int might match the return type of a GCC
21330 builtin and then its argument prototype would still apply. */
21331 #ifdef __cplusplus
21332 extern "C"
21333 #endif
21334 char $ac_func ();
21335 /* The GNU C library defines this for functions which it implements
21336 to always fail with ENOSYS. Some functions are actually named
21337 something starting with __ and the normal name is an alias. */
21338 #if defined __stub_$ac_func || defined __stub___$ac_func
21339 choke me
21340 #endif
21343 main ()
21345 return $ac_func ();
21347 return 0;
21349 _ACEOF
21350 rm -f conftest.$ac_objext conftest$ac_exeext
21351 if { (ac_try="$ac_link"
21352 case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21355 esac
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_link") 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest$ac_exeext &&
21367 $as_test_x conftest$ac_exeext; then
21368 eval "$as_ac_var=yes"
21369 else
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21373 eval "$as_ac_var=no"
21376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21377 conftest$ac_exeext conftest.$ac_ext
21379 ac_res=`eval echo '${'$as_ac_var'}'`
21380 { echo "$as_me:$LINENO: result: $ac_res" >&5
21381 echo "${ECHO_T}$ac_res" >&6; }
21382 if test `eval echo '${'$as_ac_var'}'` = yes; then
21383 cat >>confdefs.h <<_ACEOF
21384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21385 _ACEOF
21388 done
21391 LIBS=$LIBS_SAVE
21393 # check for wchar.h
21394 if test "${ac_cv_header_wchar_h+set}" = set; then
21395 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21396 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21397 if test "${ac_cv_header_wchar_h+set}" = set; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21400 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21401 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21402 else
21403 # Is the header compilable?
21404 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21405 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h. */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 $ac_includes_default
21413 #include <wchar.h>
21414 _ACEOF
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest.$ac_objext; then
21432 ac_header_compiler=yes
21433 else
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21437 ac_header_compiler=no
21440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21442 echo "${ECHO_T}$ac_header_compiler" >&6; }
21444 # Is the header present?
21445 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21446 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21447 cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h. */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 #include <wchar.h>
21454 _ACEOF
21455 if { (ac_try="$ac_cpp conftest.$ac_ext"
21456 case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21459 esac
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21462 ac_status=$?
21463 grep -v '^ *+' conftest.er1 >conftest.err
21464 rm -f conftest.er1
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } >/dev/null && {
21468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21470 }; then
21471 ac_header_preproc=yes
21472 else
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_header_preproc=no
21479 rm -f conftest.err conftest.$ac_ext
21480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21481 echo "${ECHO_T}$ac_header_preproc" >&6; }
21483 # So? What about this header?
21484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21485 yes:no: )
21486 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21487 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21489 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21490 ac_header_preproc=yes
21492 no:yes:* )
21493 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21494 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21496 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21498 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21500 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21502 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21504 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21505 ( cat <<\_ASBOX
21506 ## ------------------------------------------------ ##
21507 ## Report this to http://www.python.org/python-bugs ##
21508 ## ------------------------------------------------ ##
21509 _ASBOX
21510 ) | sed "s/^/$as_me: WARNING: /" >&2
21512 esac
21513 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21514 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21515 if test "${ac_cv_header_wchar_h+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518 ac_cv_header_wchar_h=$ac_header_preproc
21520 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21521 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21524 if test $ac_cv_header_wchar_h = yes; then
21527 cat >>confdefs.h <<\_ACEOF
21528 #define HAVE_WCHAR_H 1
21529 _ACEOF
21531 wchar_h="yes"
21533 else
21534 wchar_h="no"
21540 # determine wchar_t size
21541 if test "$wchar_h" = yes
21542 then
21543 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21544 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21545 if test "${ac_cv_type_wchar_t+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548 cat >conftest.$ac_ext <<_ACEOF
21549 /* confdefs.h. */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 #include <wchar.h>
21556 typedef wchar_t ac__type_new_;
21558 main ()
21560 if ((ac__type_new_ *) 0)
21561 return 0;
21562 if (sizeof (ac__type_new_))
21563 return 0;
21565 return 0;
21567 _ACEOF
21568 rm -f conftest.$ac_objext
21569 if { (ac_try="$ac_compile"
21570 case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21573 esac
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_compile") 2>conftest.er1
21576 ac_status=$?
21577 grep -v '^ *+' conftest.er1 >conftest.err
21578 rm -f conftest.er1
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest.$ac_objext; then
21585 ac_cv_type_wchar_t=yes
21586 else
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_cv_type_wchar_t=no
21593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21595 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21596 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21598 # The cast to long int works around a bug in the HP C Compiler
21599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21601 # This bug is HP SR number 8606223364.
21602 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21603 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21604 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21606 else
21607 if test "$cross_compiling" = yes; then
21608 # Depending upon the size, compute the lo and hi bounds.
21609 cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h. */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 #include <wchar.h>
21617 typedef wchar_t ac__type_sizeof_;
21619 main ()
21621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21622 test_array [0] = 0
21625 return 0;
21627 _ACEOF
21628 rm -f conftest.$ac_objext
21629 if { (ac_try="$ac_compile"
21630 case "(($ac_try" in
21631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632 *) ac_try_echo=$ac_try;;
21633 esac
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635 (eval "$ac_compile") 2>conftest.er1
21636 ac_status=$?
21637 grep -v '^ *+' conftest.er1 >conftest.err
21638 rm -f conftest.er1
21639 cat conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } && {
21642 test -z "$ac_c_werror_flag" ||
21643 test ! -s conftest.err
21644 } && test -s conftest.$ac_objext; then
21645 ac_lo=0 ac_mid=0
21646 while :; do
21647 cat >conftest.$ac_ext <<_ACEOF
21648 /* confdefs.h. */
21649 _ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21653 #include <wchar.h>
21655 typedef wchar_t ac__type_sizeof_;
21657 main ()
21659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21660 test_array [0] = 0
21663 return 0;
21665 _ACEOF
21666 rm -f conftest.$ac_objext
21667 if { (ac_try="$ac_compile"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_compile") 2>conftest.er1
21674 ac_status=$?
21675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } && {
21680 test -z "$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21682 } && test -s conftest.$ac_objext; then
21683 ac_hi=$ac_mid; break
21684 else
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 ac_lo=`expr $ac_mid + 1`
21689 if test $ac_lo -le $ac_mid; then
21690 ac_lo= ac_hi=
21691 break
21693 ac_mid=`expr 2 '*' $ac_mid + 1`
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697 done
21698 else
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
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. */
21708 #include <wchar.h>
21710 typedef wchar_t ac__type_sizeof_;
21712 main ()
21714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21715 test_array [0] = 0
21718 return 0;
21720 _ACEOF
21721 rm -f conftest.$ac_objext
21722 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21729 ac_status=$?
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && {
21735 test -z "$ac_c_werror_flag" ||
21736 test ! -s conftest.err
21737 } && test -s conftest.$ac_objext; then
21738 ac_hi=-1 ac_mid=-1
21739 while :; do
21740 cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h. */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 #include <wchar.h>
21748 typedef wchar_t ac__type_sizeof_;
21750 main ()
21752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21753 test_array [0] = 0
21756 return 0;
21758 _ACEOF
21759 rm -f conftest.$ac_objext
21760 if { (ac_try="$ac_compile"
21761 case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21764 esac
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766 (eval "$ac_compile") 2>conftest.er1
21767 ac_status=$?
21768 grep -v '^ *+' conftest.er1 >conftest.err
21769 rm -f conftest.er1
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } && {
21773 test -z "$ac_c_werror_flag" ||
21774 test ! -s conftest.err
21775 } && test -s conftest.$ac_objext; then
21776 ac_lo=$ac_mid; break
21777 else
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_hi=`expr '(' $ac_mid ')' - 1`
21782 if test $ac_mid -le $ac_hi; then
21783 ac_lo= ac_hi=
21784 break
21786 ac_mid=`expr 2 '*' $ac_mid`
21789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 done
21791 else
21792 echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21795 ac_lo= ac_hi=
21798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21802 # Binary search between lo and hi bounds.
21803 while test "x$ac_lo" != "x$ac_hi"; do
21804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21805 cat >conftest.$ac_ext <<_ACEOF
21806 /* confdefs.h. */
21807 _ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21811 #include <wchar.h>
21813 typedef wchar_t ac__type_sizeof_;
21815 main ()
21817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21818 test_array [0] = 0
21821 return 0;
21823 _ACEOF
21824 rm -f conftest.$ac_objext
21825 if { (ac_try="$ac_compile"
21826 case "(($ac_try" in
21827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828 *) ac_try_echo=$ac_try;;
21829 esac
21830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831 (eval "$ac_compile") 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } && {
21838 test -z "$ac_c_werror_flag" ||
21839 test ! -s conftest.err
21840 } && test -s conftest.$ac_objext; then
21841 ac_hi=$ac_mid
21842 else
21843 echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21846 ac_lo=`expr '(' $ac_mid ')' + 1`
21849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21850 done
21851 case $ac_lo in
21852 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21853 '') if test "$ac_cv_type_wchar_t" = yes; then
21854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21855 See \`config.log' for more details." >&5
21856 echo "$as_me: error: cannot compute sizeof (wchar_t)
21857 See \`config.log' for more details." >&2;}
21858 { (exit 77); exit 77; }; }
21859 else
21860 ac_cv_sizeof_wchar_t=0
21861 fi ;;
21862 esac
21863 else
21864 cat >conftest.$ac_ext <<_ACEOF
21865 /* confdefs.h. */
21866 _ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21870 #include <wchar.h>
21872 typedef wchar_t ac__type_sizeof_;
21873 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21874 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21875 #include <stdio.h>
21876 #include <stdlib.h>
21878 main ()
21881 FILE *f = fopen ("conftest.val", "w");
21882 if (! f)
21883 return 1;
21884 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21886 long int i = longval ();
21887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21888 return 1;
21889 fprintf (f, "%ld\n", i);
21891 else
21893 unsigned long int i = ulongval ();
21894 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21895 return 1;
21896 fprintf (f, "%lu\n", i);
21898 return ferror (f) || fclose (f) != 0;
21901 return 0;
21903 _ACEOF
21904 rm -f conftest$ac_exeext
21905 if { (ac_try="$ac_link"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_link") 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21915 { (case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21918 esac
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920 (eval "$ac_try") 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; }; then
21924 ac_cv_sizeof_wchar_t=`cat conftest.val`
21925 else
21926 echo "$as_me: program exited with status $ac_status" >&5
21927 echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 ( exit $ac_status )
21931 if test "$ac_cv_type_wchar_t" = yes; then
21932 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21933 See \`config.log' for more details." >&5
21934 echo "$as_me: error: cannot compute sizeof (wchar_t)
21935 See \`config.log' for more details." >&2;}
21936 { (exit 77); exit 77; }; }
21937 else
21938 ac_cv_sizeof_wchar_t=0
21941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21943 rm -f conftest.val
21945 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21946 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21950 cat >>confdefs.h <<_ACEOF
21951 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21952 _ACEOF
21957 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21958 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21959 have_ucs4_tcl=no
21960 cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h. */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21967 #include <tcl.h>
21968 #if TCL_UTF_MAX != 6
21969 # error "NOT UCS4_TCL"
21970 #endif
21972 main ()
21976 return 0;
21978 _ACEOF
21979 rm -f conftest.$ac_objext
21980 if { (ac_try="$ac_compile"
21981 case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_compile") 2>conftest.er1
21987 ac_status=$?
21988 grep -v '^ *+' conftest.er1 >conftest.err
21989 rm -f conftest.er1
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } && {
21993 test -z "$ac_c_werror_flag" ||
21994 test ! -s conftest.err
21995 } && test -s conftest.$ac_objext; then
21998 cat >>confdefs.h <<\_ACEOF
21999 #define HAVE_UCS4_TCL 1
22000 _ACEOF
22002 have_ucs4_tcl=yes
22004 else
22005 echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22013 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22015 # check whether wchar_t is signed or not
22016 if test "$wchar_h" = yes
22017 then
22018 # check whether wchar_t is signed or not
22019 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22020 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22021 if test "${ac_cv_wchar_t_signed+set}" = set; then
22022 echo $ECHO_N "(cached) $ECHO_C" >&6
22023 else
22025 if test "$cross_compiling" = yes; then
22026 ac_cv_wchar_t_signed=yes
22027 else
22028 cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h. */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22035 #include <wchar.h>
22036 int main()
22038 /* Success: exit code 0 */
22039 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22042 _ACEOF
22043 rm -f conftest$ac_exeext
22044 if { (ac_try="$ac_link"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_link") 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22054 { (case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_try") 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; }; then
22063 ac_cv_wchar_t_signed=yes
22064 else
22065 echo "$as_me: program exited with status $ac_status" >&5
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 ( exit $ac_status )
22070 ac_cv_wchar_t_signed=no
22072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22078 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22079 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22082 { echo "$as_me:$LINENO: checking what type to use for str" >&5
22083 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
22085 # Check whether --with-wide-unicode was given.
22086 if test "${with_wide_unicode+set}" = set; then
22087 withval=$with_wide_unicode;
22088 if test "$withval" != no
22089 then unicode_size="4"
22090 else unicode_size="2"
22093 else
22095 case "$have_ucs4_tcl" in
22096 yes) unicode_size="4" ;;
22097 *) unicode_size="2" ;;
22098 esac
22105 case "$unicode_size" in
22106 4) cat >>confdefs.h <<\_ACEOF
22107 #define Py_UNICODE_SIZE 4
22108 _ACEOF
22110 *) cat >>confdefs.h <<\_ACEOF
22111 #define Py_UNICODE_SIZE 2
22112 _ACEOF
22114 esac
22119 # wchar_t is only usable if it maps to an unsigned type
22120 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22121 -a "$ac_cv_wchar_t_signed" = "no"
22122 then
22123 PY_UNICODE_TYPE="wchar_t"
22125 cat >>confdefs.h <<\_ACEOF
22126 #define HAVE_USABLE_WCHAR_T 1
22127 _ACEOF
22129 cat >>confdefs.h <<\_ACEOF
22130 #define PY_UNICODE_TYPE wchar_t
22131 _ACEOF
22133 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22134 then
22135 PY_UNICODE_TYPE="unsigned short"
22136 cat >>confdefs.h <<\_ACEOF
22137 #define PY_UNICODE_TYPE unsigned short
22138 _ACEOF
22140 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22141 then
22142 PY_UNICODE_TYPE="unsigned long"
22143 cat >>confdefs.h <<\_ACEOF
22144 #define PY_UNICODE_TYPE unsigned long
22145 _ACEOF
22147 else
22148 PY_UNICODE_TYPE="no type found"
22150 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22151 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22153 # check for endianness
22154 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22155 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22156 if test "${ac_cv_c_bigendian+set}" = set; then
22157 echo $ECHO_N "(cached) $ECHO_C" >&6
22158 else
22159 # See if sys/param.h defines the BYTE_ORDER macro.
22160 cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h. */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22166 #include <sys/types.h>
22167 #include <sys/param.h>
22170 main ()
22172 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22173 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22174 bogus endian macros
22175 #endif
22178 return 0;
22180 _ACEOF
22181 rm -f conftest.$ac_objext
22182 if { (ac_try="$ac_compile"
22183 case "(($ac_try" in
22184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185 *) ac_try_echo=$ac_try;;
22186 esac
22187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22188 (eval "$ac_compile") 2>conftest.er1
22189 ac_status=$?
22190 grep -v '^ *+' conftest.er1 >conftest.err
22191 rm -f conftest.er1
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } && {
22195 test -z "$ac_c_werror_flag" ||
22196 test ! -s conftest.err
22197 } && test -s conftest.$ac_objext; then
22198 # It does; now see whether it defined to BIG_ENDIAN or not.
22199 cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h. */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 #include <sys/types.h>
22206 #include <sys/param.h>
22209 main ()
22211 #if BYTE_ORDER != BIG_ENDIAN
22212 not big endian
22213 #endif
22216 return 0;
22218 _ACEOF
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_compile") 2>conftest.er1
22227 ac_status=$?
22228 grep -v '^ *+' conftest.er1 >conftest.err
22229 rm -f conftest.er1
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && {
22233 test -z "$ac_c_werror_flag" ||
22234 test ! -s conftest.err
22235 } && test -s conftest.$ac_objext; then
22236 ac_cv_c_bigendian=yes
22237 else
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22241 ac_cv_c_bigendian=no
22244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 else
22246 echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22249 # It does not; compile a test program.
22250 if test "$cross_compiling" = yes; then
22251 # try to guess the endianness by grepping values into an object file
22252 ac_cv_c_bigendian=unknown
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h. */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22260 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22261 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22262 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22263 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22264 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22266 main ()
22268 _ascii (); _ebcdic ();
22270 return 0;
22272 _ACEOF
22273 rm -f conftest.$ac_objext
22274 if { (ac_try="$ac_compile"
22275 case "(($ac_try" in
22276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22278 esac
22279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_compile") 2>conftest.er1
22281 ac_status=$?
22282 grep -v '^ *+' conftest.er1 >conftest.err
22283 rm -f conftest.er1
22284 cat conftest.err >&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } && {
22287 test -z "$ac_c_werror_flag" ||
22288 test ! -s conftest.err
22289 } && test -s conftest.$ac_objext; then
22290 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22291 ac_cv_c_bigendian=yes
22293 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22294 if test "$ac_cv_c_bigendian" = unknown; then
22295 ac_cv_c_bigendian=no
22296 else
22297 # finding both strings is unlikely to happen, but who knows?
22298 ac_cv_c_bigendian=unknown
22301 else
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22309 else
22310 cat >conftest.$ac_ext <<_ACEOF
22311 /* confdefs.h. */
22312 _ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h. */
22316 $ac_includes_default
22318 main ()
22321 /* Are we little or big endian? From Harbison&Steele. */
22322 union
22324 long int l;
22325 char c[sizeof (long int)];
22326 } u;
22327 u.l = 1;
22328 return u.c[sizeof (long int) - 1] == 1;
22331 return 0;
22333 _ACEOF
22334 rm -f conftest$ac_exeext
22335 if { (ac_try="$ac_link"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_link") 2>&5
22342 ac_status=$?
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22345 { (case "(($ac_try" in
22346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347 *) ac_try_echo=$ac_try;;
22348 esac
22349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350 (eval "$ac_try") 2>&5
22351 ac_status=$?
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; }; then
22354 ac_cv_c_bigendian=no
22355 else
22356 echo "$as_me: program exited with status $ac_status" >&5
22357 echo "$as_me: failed program was:" >&5
22358 sed 's/^/| /' conftest.$ac_ext >&5
22360 ( exit $ac_status )
22361 ac_cv_c_bigendian=yes
22363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22371 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22372 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22373 case $ac_cv_c_bigendian in
22374 yes)
22376 cat >>confdefs.h <<\_ACEOF
22377 #define WORDS_BIGENDIAN 1
22378 _ACEOF
22383 { { echo "$as_me:$LINENO: error: unknown endianness
22384 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22385 echo "$as_me: error: unknown endianness
22386 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22387 { (exit 1); exit 1; }; } ;;
22388 esac
22393 # Check whether right shifting a negative integer extends the sign bit
22394 # or fills with zeros (like the Cray J90, according to Tim Peters).
22395 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22396 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22397 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22399 else
22401 if test "$cross_compiling" = yes; then
22402 ac_cv_rshift_extends_sign=yes
22403 else
22404 cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h. */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22411 int main()
22413 exit(((-1)>>3 == -1) ? 0 : 1);
22416 _ACEOF
22417 rm -f conftest$ac_exeext
22418 if { (ac_try="$ac_link"
22419 case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22422 esac
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_link") 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22428 { (case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22431 esac
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_try") 2>&5
22434 ac_status=$?
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); }; }; then
22437 ac_cv_rshift_extends_sign=yes
22438 else
22439 echo "$as_me: program exited with status $ac_status" >&5
22440 echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22443 ( exit $ac_status )
22444 ac_cv_rshift_extends_sign=no
22446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22452 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22453 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22454 if test "$ac_cv_rshift_extends_sign" = no
22455 then
22457 cat >>confdefs.h <<\_ACEOF
22458 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22459 _ACEOF
22463 # check for getc_unlocked and related locking functions
22464 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22465 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22466 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22470 cat >conftest.$ac_ext <<_ACEOF
22471 /* confdefs.h. */
22472 _ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h. */
22476 #include <stdio.h>
22478 main ()
22481 FILE *f = fopen("/dev/null", "r");
22482 flockfile(f);
22483 getc_unlocked(f);
22484 funlockfile(f);
22487 return 0;
22489 _ACEOF
22490 rm -f conftest.$ac_objext conftest$ac_exeext
22491 if { (ac_try="$ac_link"
22492 case "(($ac_try" in
22493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494 *) ac_try_echo=$ac_try;;
22495 esac
22496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497 (eval "$ac_link") 2>conftest.er1
22498 ac_status=$?
22499 grep -v '^ *+' conftest.er1 >conftest.err
22500 rm -f conftest.er1
22501 cat conftest.err >&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); } && {
22504 test -z "$ac_c_werror_flag" ||
22505 test ! -s conftest.err
22506 } && test -s conftest$ac_exeext &&
22507 $as_test_x conftest$ac_exeext; then
22508 ac_cv_have_getc_unlocked=yes
22509 else
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ac_cv_have_getc_unlocked=no
22516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22517 conftest$ac_exeext conftest.$ac_ext
22520 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22521 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22522 if test "$ac_cv_have_getc_unlocked" = yes
22523 then
22525 cat >>confdefs.h <<\_ACEOF
22526 #define HAVE_GETC_UNLOCKED 1
22527 _ACEOF
22531 # check where readline lives
22532 # save the value of LIBS so we don't actually link Python with readline
22533 LIBS_no_readline=$LIBS
22535 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22536 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22537 if test "${ac_cv_lib_readline_readline+set}" = set; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 else
22540 ac_check_lib_save_LIBS=$LIBS
22541 LIBS="-lreadline $LIBS"
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h. */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22549 /* Override any GCC internal prototype to avoid an error.
22550 Use char because int might match the return type of a GCC
22551 builtin and then its argument prototype would still apply. */
22552 #ifdef __cplusplus
22553 extern "C"
22554 #endif
22555 char readline ();
22557 main ()
22559 return readline ();
22561 return 0;
22563 _ACEOF
22564 rm -f conftest.$ac_objext conftest$ac_exeext
22565 if { (ac_try="$ac_link"
22566 case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22569 esac
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_link") 2>conftest.er1
22572 ac_status=$?
22573 grep -v '^ *+' conftest.er1 >conftest.err
22574 rm -f conftest.er1
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && {
22578 test -z "$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 } && test -s conftest$ac_exeext &&
22581 $as_test_x conftest$ac_exeext; then
22582 ac_cv_lib_readline_readline=yes
22583 else
22584 echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22587 ac_cv_lib_readline_readline=no
22590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22591 conftest$ac_exeext conftest.$ac_ext
22592 LIBS=$ac_check_lib_save_LIBS
22594 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22595 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22596 if test $ac_cv_lib_readline_readline = yes; then
22597 cat >>confdefs.h <<_ACEOF
22598 #define HAVE_LIBREADLINE 1
22599 _ACEOF
22601 LIBS="-lreadline $LIBS"
22605 if test "$ac_cv_have_readline_readline" = no
22606 then
22608 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22609 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22610 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22612 else
22613 ac_check_lib_save_LIBS=$LIBS
22614 LIBS="-ltermcap $LIBS"
22615 cat >conftest.$ac_ext <<_ACEOF
22616 /* confdefs.h. */
22617 _ACEOF
22618 cat confdefs.h >>conftest.$ac_ext
22619 cat >>conftest.$ac_ext <<_ACEOF
22620 /* end confdefs.h. */
22622 /* Override any GCC internal prototype to avoid an error.
22623 Use char because int might match the return type of a GCC
22624 builtin and then its argument prototype would still apply. */
22625 #ifdef __cplusplus
22626 extern "C"
22627 #endif
22628 char readline ();
22630 main ()
22632 return readline ();
22634 return 0;
22636 _ACEOF
22637 rm -f conftest.$ac_objext conftest$ac_exeext
22638 if { (ac_try="$ac_link"
22639 case "(($ac_try" in
22640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22641 *) ac_try_echo=$ac_try;;
22642 esac
22643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22644 (eval "$ac_link") 2>conftest.er1
22645 ac_status=$?
22646 grep -v '^ *+' conftest.er1 >conftest.err
22647 rm -f conftest.er1
22648 cat conftest.err >&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); } && {
22651 test -z "$ac_c_werror_flag" ||
22652 test ! -s conftest.err
22653 } && test -s conftest$ac_exeext &&
22654 $as_test_x conftest$ac_exeext; then
22655 ac_cv_lib_termcap_readline=yes
22656 else
22657 echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.$ac_ext >&5
22660 ac_cv_lib_termcap_readline=no
22663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22664 conftest$ac_exeext conftest.$ac_ext
22665 LIBS=$ac_check_lib_save_LIBS
22667 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22668 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22669 if test $ac_cv_lib_termcap_readline = yes; then
22670 cat >>confdefs.h <<_ACEOF
22671 #define HAVE_LIBTERMCAP 1
22672 _ACEOF
22674 LIBS="-ltermcap $LIBS"
22680 # check for readline 2.1
22681 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22682 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22683 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22684 echo $ECHO_N "(cached) $ECHO_C" >&6
22685 else
22686 ac_check_lib_save_LIBS=$LIBS
22687 LIBS="-lreadline $LIBS"
22688 cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h. */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22695 /* Override any GCC internal prototype to avoid an error.
22696 Use char because int might match the return type of a GCC
22697 builtin and then its argument prototype would still apply. */
22698 #ifdef __cplusplus
22699 extern "C"
22700 #endif
22701 char rl_callback_handler_install ();
22703 main ()
22705 return rl_callback_handler_install ();
22707 return 0;
22709 _ACEOF
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22715 esac
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_link") 2>conftest.er1
22718 ac_status=$?
22719 grep -v '^ *+' conftest.er1 >conftest.err
22720 rm -f conftest.er1
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } && {
22724 test -z "$ac_c_werror_flag" ||
22725 test ! -s conftest.err
22726 } && test -s conftest$ac_exeext &&
22727 $as_test_x conftest$ac_exeext; then
22728 ac_cv_lib_readline_rl_callback_handler_install=yes
22729 else
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ac_cv_lib_readline_rl_callback_handler_install=no
22736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22737 conftest$ac_exeext conftest.$ac_ext
22738 LIBS=$ac_check_lib_save_LIBS
22740 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22741 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22742 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22744 cat >>confdefs.h <<\_ACEOF
22745 #define HAVE_RL_CALLBACK 1
22746 _ACEOF
22751 # check for readline 2.2
22752 cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h. */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h. */
22758 #include <readline/readline.h>
22759 _ACEOF
22760 if { (ac_try="$ac_cpp conftest.$ac_ext"
22761 case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22767 ac_status=$?
22768 grep -v '^ *+' conftest.er1 >conftest.err
22769 rm -f conftest.er1
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } >/dev/null && {
22773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22774 test ! -s conftest.err
22775 }; then
22776 have_readline=yes
22777 else
22778 echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22781 have_readline=no
22784 rm -f conftest.err conftest.$ac_ext
22785 if test $have_readline = yes
22786 then
22787 cat >conftest.$ac_ext <<_ACEOF
22788 /* confdefs.h. */
22789 _ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22793 #include <readline/readline.h>
22795 _ACEOF
22796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22797 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
22799 cat >>confdefs.h <<\_ACEOF
22800 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22801 _ACEOF
22804 rm -f conftest*
22808 # check for readline 4.0
22809 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22810 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22811 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22812 echo $ECHO_N "(cached) $ECHO_C" >&6
22813 else
22814 ac_check_lib_save_LIBS=$LIBS
22815 LIBS="-lreadline $LIBS"
22816 cat >conftest.$ac_ext <<_ACEOF
22817 /* confdefs.h. */
22818 _ACEOF
22819 cat confdefs.h >>conftest.$ac_ext
22820 cat >>conftest.$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22823 /* Override any GCC internal prototype to avoid an error.
22824 Use char because int might match the return type of a GCC
22825 builtin and then its argument prototype would still apply. */
22826 #ifdef __cplusplus
22827 extern "C"
22828 #endif
22829 char rl_pre_input_hook ();
22831 main ()
22833 return rl_pre_input_hook ();
22835 return 0;
22837 _ACEOF
22838 rm -f conftest.$ac_objext conftest$ac_exeext
22839 if { (ac_try="$ac_link"
22840 case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843 esac
22844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_link") 2>conftest.er1
22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } && {
22852 test -z "$ac_c_werror_flag" ||
22853 test ! -s conftest.err
22854 } && test -s conftest$ac_exeext &&
22855 $as_test_x conftest$ac_exeext; then
22856 ac_cv_lib_readline_rl_pre_input_hook=yes
22857 else
22858 echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22861 ac_cv_lib_readline_rl_pre_input_hook=no
22864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22865 conftest$ac_exeext conftest.$ac_ext
22866 LIBS=$ac_check_lib_save_LIBS
22868 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22869 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22870 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22872 cat >>confdefs.h <<\_ACEOF
22873 #define HAVE_RL_PRE_INPUT_HOOK 1
22874 _ACEOF
22879 # also in 4.0
22880 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22881 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22882 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22884 else
22885 ac_check_lib_save_LIBS=$LIBS
22886 LIBS="-lreadline $LIBS"
22887 cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h. */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22894 /* Override any GCC internal prototype to avoid an error.
22895 Use char because int might match the return type of a GCC
22896 builtin and then its argument prototype would still apply. */
22897 #ifdef __cplusplus
22898 extern "C"
22899 #endif
22900 char rl_completion_display_matches_hook ();
22902 main ()
22904 return rl_completion_display_matches_hook ();
22906 return 0;
22908 _ACEOF
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913 *) ac_try_echo=$ac_try;;
22914 esac
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916 (eval "$ac_link") 2>conftest.er1
22917 ac_status=$?
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } && {
22923 test -z "$ac_c_werror_flag" ||
22924 test ! -s conftest.err
22925 } && test -s conftest$ac_exeext &&
22926 $as_test_x conftest$ac_exeext; then
22927 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
22928 else
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22932 ac_cv_lib_readline_rl_completion_display_matches_hook=no
22935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22936 conftest$ac_exeext conftest.$ac_ext
22937 LIBS=$ac_check_lib_save_LIBS
22939 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22940 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22941 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22943 cat >>confdefs.h <<\_ACEOF
22944 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22945 _ACEOF
22950 # check for readline 4.2
22951 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22952 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22953 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22955 else
22956 ac_check_lib_save_LIBS=$LIBS
22957 LIBS="-lreadline $LIBS"
22958 cat >conftest.$ac_ext <<_ACEOF
22959 /* confdefs.h. */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22965 /* Override any GCC internal prototype to avoid an error.
22966 Use char because int might match the return type of a GCC
22967 builtin and then its argument prototype would still apply. */
22968 #ifdef __cplusplus
22969 extern "C"
22970 #endif
22971 char rl_completion_matches ();
22973 main ()
22975 return rl_completion_matches ();
22977 return 0;
22979 _ACEOF
22980 rm -f conftest.$ac_objext conftest$ac_exeext
22981 if { (ac_try="$ac_link"
22982 case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_link") 2>conftest.er1
22988 ac_status=$?
22989 grep -v '^ *+' conftest.er1 >conftest.err
22990 rm -f conftest.er1
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest$ac_exeext &&
22997 $as_test_x conftest$ac_exeext; then
22998 ac_cv_lib_readline_rl_completion_matches=yes
22999 else
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 ac_cv_lib_readline_rl_completion_matches=no
23006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23007 conftest$ac_exeext conftest.$ac_ext
23008 LIBS=$ac_check_lib_save_LIBS
23010 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23011 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23012 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23014 cat >>confdefs.h <<\_ACEOF
23015 #define HAVE_RL_COMPLETION_MATCHES 1
23016 _ACEOF
23021 # also in readline 4.2
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 #include <readline/readline.h>
23029 _ACEOF
23030 if { (ac_try="$ac_cpp conftest.$ac_ext"
23031 case "(($ac_try" in
23032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23033 *) ac_try_echo=$ac_try;;
23034 esac
23035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23037 ac_status=$?
23038 grep -v '^ *+' conftest.er1 >conftest.err
23039 rm -f conftest.er1
23040 cat conftest.err >&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } >/dev/null && {
23043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23044 test ! -s conftest.err
23045 }; then
23046 have_readline=yes
23047 else
23048 echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23051 have_readline=no
23054 rm -f conftest.err conftest.$ac_ext
23055 if test $have_readline = yes
23056 then
23057 cat >conftest.$ac_ext <<_ACEOF
23058 /* confdefs.h. */
23059 _ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h. */
23063 #include <readline/readline.h>
23065 _ACEOF
23066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23067 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
23069 cat >>confdefs.h <<\_ACEOF
23070 #define HAVE_RL_CATCH_SIGNAL 1
23071 _ACEOF
23074 rm -f conftest*
23078 # End of readline checks: restore LIBS
23079 LIBS=$LIBS_no_readline
23081 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23082 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23083 if test "${ac_cv_broken_nice+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23085 else
23087 if test "$cross_compiling" = yes; then
23088 ac_cv_broken_nice=no
23089 else
23090 cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h. */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23097 int main()
23099 int val1 = nice(1);
23100 if (val1 != -1 && val1 == nice(2))
23101 exit(0);
23102 exit(1);
23105 _ACEOF
23106 rm -f conftest$ac_exeext
23107 if { (ac_try="$ac_link"
23108 case "(($ac_try" in
23109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23110 *) ac_try_echo=$ac_try;;
23111 esac
23112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23113 (eval "$ac_link") 2>&5
23114 ac_status=$?
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23117 { (case "(($ac_try" in
23118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23120 esac
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122 (eval "$ac_try") 2>&5
23123 ac_status=$?
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; }; then
23126 ac_cv_broken_nice=yes
23127 else
23128 echo "$as_me: program exited with status $ac_status" >&5
23129 echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23132 ( exit $ac_status )
23133 ac_cv_broken_nice=no
23135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23141 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23142 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23143 if test "$ac_cv_broken_nice" = yes
23144 then
23146 cat >>confdefs.h <<\_ACEOF
23147 #define HAVE_BROKEN_NICE 1
23148 _ACEOF
23152 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23153 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23154 if test "$cross_compiling" = yes; then
23155 ac_cv_broken_poll=no
23156 else
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h. */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23164 #include <poll.h>
23166 int main (void)
23168 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23170 close (42);
23172 int poll_test = poll (&poll_struct, 1, 0);
23174 if (poll_test < 0)
23176 exit(0);
23178 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23180 exit(0);
23182 else
23184 exit(1);
23188 _ACEOF
23189 rm -f conftest$ac_exeext
23190 if { (ac_try="$ac_link"
23191 case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_link") 2>&5
23197 ac_status=$?
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23200 { (case "(($ac_try" in
23201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202 *) ac_try_echo=$ac_try;;
23203 esac
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205 (eval "$ac_try") 2>&5
23206 ac_status=$?
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; }; then
23209 ac_cv_broken_poll=yes
23210 else
23211 echo "$as_me: program exited with status $ac_status" >&5
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23215 ( exit $ac_status )
23216 ac_cv_broken_poll=no
23218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23222 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23223 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23224 if test "$ac_cv_broken_poll" = yes
23225 then
23227 cat >>confdefs.h <<\_ACEOF
23228 #define HAVE_BROKEN_POLL 1
23229 _ACEOF
23233 # Before we can test tzset, we need to check if struct tm has a tm_zone
23234 # (which is not required by ISO C or UNIX spec) and/or if we support
23235 # tzname[]
23236 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23237 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23238 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 else
23241 cat >conftest.$ac_ext <<_ACEOF
23242 /* confdefs.h. */
23243 _ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h. */
23247 #include <sys/types.h>
23248 #include <$ac_cv_struct_tm>
23252 main ()
23254 static struct tm ac_aggr;
23255 if (ac_aggr.tm_zone)
23256 return 0;
23258 return 0;
23260 _ACEOF
23261 rm -f conftest.$ac_objext
23262 if { (ac_try="$ac_compile"
23263 case "(($ac_try" in
23264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23266 esac
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_compile") 2>conftest.er1
23269 ac_status=$?
23270 grep -v '^ *+' conftest.er1 >conftest.err
23271 rm -f conftest.er1
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } && {
23275 test -z "$ac_c_werror_flag" ||
23276 test ! -s conftest.err
23277 } && test -s conftest.$ac_objext; then
23278 ac_cv_member_struct_tm_tm_zone=yes
23279 else
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 cat >conftest.$ac_ext <<_ACEOF
23284 /* confdefs.h. */
23285 _ACEOF
23286 cat confdefs.h >>conftest.$ac_ext
23287 cat >>conftest.$ac_ext <<_ACEOF
23288 /* end confdefs.h. */
23289 #include <sys/types.h>
23290 #include <$ac_cv_struct_tm>
23294 main ()
23296 static struct tm ac_aggr;
23297 if (sizeof ac_aggr.tm_zone)
23298 return 0;
23300 return 0;
23302 _ACEOF
23303 rm -f conftest.$ac_objext
23304 if { (ac_try="$ac_compile"
23305 case "(($ac_try" in
23306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307 *) ac_try_echo=$ac_try;;
23308 esac
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310 (eval "$ac_compile") 2>conftest.er1
23311 ac_status=$?
23312 grep -v '^ *+' conftest.er1 >conftest.err
23313 rm -f conftest.er1
23314 cat conftest.err >&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } && {
23317 test -z "$ac_c_werror_flag" ||
23318 test ! -s conftest.err
23319 } && test -s conftest.$ac_objext; then
23320 ac_cv_member_struct_tm_tm_zone=yes
23321 else
23322 echo "$as_me: failed program was:" >&5
23323 sed 's/^/| /' conftest.$ac_ext >&5
23325 ac_cv_member_struct_tm_tm_zone=no
23328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23333 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23334 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23335 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23337 cat >>confdefs.h <<_ACEOF
23338 #define HAVE_STRUCT_TM_TM_ZONE 1
23339 _ACEOF
23344 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23346 cat >>confdefs.h <<\_ACEOF
23347 #define HAVE_TM_ZONE 1
23348 _ACEOF
23350 else
23351 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23352 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23353 if test "${ac_cv_have_decl_tzname+set}" = set; then
23354 echo $ECHO_N "(cached) $ECHO_C" >&6
23355 else
23356 cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h. */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 #include <time.h>
23365 main ()
23367 #ifndef tzname
23368 (void) tzname;
23369 #endif
23372 return 0;
23374 _ACEOF
23375 rm -f conftest.$ac_objext
23376 if { (ac_try="$ac_compile"
23377 case "(($ac_try" in
23378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23379 *) ac_try_echo=$ac_try;;
23380 esac
23381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23382 (eval "$ac_compile") 2>conftest.er1
23383 ac_status=$?
23384 grep -v '^ *+' conftest.er1 >conftest.err
23385 rm -f conftest.er1
23386 cat conftest.err >&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); } && {
23389 test -z "$ac_c_werror_flag" ||
23390 test ! -s conftest.err
23391 } && test -s conftest.$ac_objext; then
23392 ac_cv_have_decl_tzname=yes
23393 else
23394 echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23397 ac_cv_have_decl_tzname=no
23400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23403 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23404 if test $ac_cv_have_decl_tzname = yes; then
23406 cat >>confdefs.h <<_ACEOF
23407 #define HAVE_DECL_TZNAME 1
23408 _ACEOF
23411 else
23412 cat >>confdefs.h <<_ACEOF
23413 #define HAVE_DECL_TZNAME 0
23414 _ACEOF
23420 { echo "$as_me:$LINENO: checking for tzname" >&5
23421 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23422 if test "${ac_cv_var_tzname+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23424 else
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23431 #include <time.h>
23432 #if !HAVE_DECL_TZNAME
23433 extern char *tzname[];
23434 #endif
23437 main ()
23439 return tzname[0][0];
23441 return 0;
23443 _ACEOF
23444 rm -f conftest.$ac_objext conftest$ac_exeext
23445 if { (ac_try="$ac_link"
23446 case "(($ac_try" in
23447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448 *) ac_try_echo=$ac_try;;
23449 esac
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_link") 2>conftest.er1
23452 ac_status=$?
23453 grep -v '^ *+' conftest.er1 >conftest.err
23454 rm -f conftest.er1
23455 cat conftest.err >&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } && {
23458 test -z "$ac_c_werror_flag" ||
23459 test ! -s conftest.err
23460 } && test -s conftest$ac_exeext &&
23461 $as_test_x conftest$ac_exeext; then
23462 ac_cv_var_tzname=yes
23463 else
23464 echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23467 ac_cv_var_tzname=no
23470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23471 conftest$ac_exeext conftest.$ac_ext
23473 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23474 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23475 if test $ac_cv_var_tzname = yes; then
23477 cat >>confdefs.h <<\_ACEOF
23478 #define HAVE_TZNAME 1
23479 _ACEOF
23485 # check tzset(3) exists and works like we expect it to
23486 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23487 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23488 if test "${ac_cv_working_tzset+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23490 else
23492 if test "$cross_compiling" = yes; then
23493 ac_cv_working_tzset=no
23494 else
23495 cat >conftest.$ac_ext <<_ACEOF
23496 /* confdefs.h. */
23497 _ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23502 #include <stdlib.h>
23503 #include <time.h>
23504 #include <string.h>
23506 #if HAVE_TZNAME
23507 extern char *tzname[];
23508 #endif
23510 int main()
23512 /* Note that we need to ensure that not only does tzset(3)
23513 do 'something' with localtime, but it works as documented
23514 in the library reference and as expected by the test suite.
23515 This includes making sure that tzname is set properly if
23516 tm->tm_zone does not exist since it is the alternative way
23517 of getting timezone info.
23519 Red Hat 6.2 doesn't understand the southern hemisphere
23520 after New Year's Day.
23523 time_t groundhogday = 1044144000; /* GMT-based */
23524 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23526 putenv("TZ=UTC+0");
23527 tzset();
23528 if (localtime(&groundhogday)->tm_hour != 0)
23529 exit(1);
23530 #if HAVE_TZNAME
23531 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23532 if (strcmp(tzname[0], "UTC") ||
23533 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23534 exit(1);
23535 #endif
23537 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23538 tzset();
23539 if (localtime(&groundhogday)->tm_hour != 19)
23540 exit(1);
23541 #if HAVE_TZNAME
23542 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23543 exit(1);
23544 #endif
23546 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23547 tzset();
23548 if (localtime(&groundhogday)->tm_hour != 11)
23549 exit(1);
23550 #if HAVE_TZNAME
23551 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23552 exit(1);
23553 #endif
23555 #if HAVE_STRUCT_TM_TM_ZONE
23556 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23557 exit(1);
23558 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23559 exit(1);
23560 #endif
23562 exit(0);
23565 _ACEOF
23566 rm -f conftest$ac_exeext
23567 if { (ac_try="$ac_link"
23568 case "(($ac_try" in
23569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23571 esac
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573 (eval "$ac_link") 2>&5
23574 ac_status=$?
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23577 { (case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_try") 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }; then
23586 ac_cv_working_tzset=yes
23587 else
23588 echo "$as_me: program exited with status $ac_status" >&5
23589 echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23592 ( exit $ac_status )
23593 ac_cv_working_tzset=no
23595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23601 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23602 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23603 if test "$ac_cv_working_tzset" = yes
23604 then
23606 cat >>confdefs.h <<\_ACEOF
23607 #define HAVE_WORKING_TZSET 1
23608 _ACEOF
23612 # Look for subsecond timestamps in struct stat
23613 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23614 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23615 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23616 echo $ECHO_N "(cached) $ECHO_C" >&6
23617 else
23618 cat >conftest.$ac_ext <<_ACEOF
23619 /* confdefs.h. */
23620 _ACEOF
23621 cat confdefs.h >>conftest.$ac_ext
23622 cat >>conftest.$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23624 #include <sys/stat.h>
23626 main ()
23629 struct stat st;
23630 st.st_mtim.tv_nsec = 1;
23633 return 0;
23635 _ACEOF
23636 rm -f conftest.$ac_objext
23637 if { (ac_try="$ac_compile"
23638 case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23641 esac
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_compile") 2>conftest.er1
23644 ac_status=$?
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest.$ac_objext; then
23653 ac_cv_stat_tv_nsec=yes
23654 else
23655 echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.$ac_ext >&5
23658 ac_cv_stat_tv_nsec=no
23661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23664 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23665 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23666 if test "$ac_cv_stat_tv_nsec" = yes
23667 then
23669 cat >>confdefs.h <<\_ACEOF
23670 #define HAVE_STAT_TV_NSEC 1
23671 _ACEOF
23675 # Look for BSD style subsecond timestamps in struct stat
23676 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23677 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23678 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23679 echo $ECHO_N "(cached) $ECHO_C" >&6
23680 else
23681 cat >conftest.$ac_ext <<_ACEOF
23682 /* confdefs.h. */
23683 _ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23687 #include <sys/stat.h>
23689 main ()
23692 struct stat st;
23693 st.st_mtimespec.tv_nsec = 1;
23696 return 0;
23698 _ACEOF
23699 rm -f conftest.$ac_objext
23700 if { (ac_try="$ac_compile"
23701 case "(($ac_try" in
23702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23703 *) ac_try_echo=$ac_try;;
23704 esac
23705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23706 (eval "$ac_compile") 2>conftest.er1
23707 ac_status=$?
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } && {
23713 test -z "$ac_c_werror_flag" ||
23714 test ! -s conftest.err
23715 } && test -s conftest.$ac_objext; then
23716 ac_cv_stat_tv_nsec2=yes
23717 else
23718 echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23721 ac_cv_stat_tv_nsec2=no
23724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23727 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23728 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23729 if test "$ac_cv_stat_tv_nsec2" = yes
23730 then
23732 cat >>confdefs.h <<\_ACEOF
23733 #define HAVE_STAT_TV_NSEC2 1
23734 _ACEOF
23738 # On HP/UX 11.0, mvwdelch is a block with a return statement
23739 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23740 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23741 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23742 echo $ECHO_N "(cached) $ECHO_C" >&6
23743 else
23744 cat >conftest.$ac_ext <<_ACEOF
23745 /* confdefs.h. */
23746 _ACEOF
23747 cat confdefs.h >>conftest.$ac_ext
23748 cat >>conftest.$ac_ext <<_ACEOF
23749 /* end confdefs.h. */
23750 #include <curses.h>
23752 main ()
23755 int rtn;
23756 rtn = mvwdelch(0,0,0);
23759 return 0;
23761 _ACEOF
23762 rm -f conftest.$ac_objext
23763 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23770 ac_status=$?
23771 grep -v '^ *+' conftest.er1 >conftest.err
23772 rm -f conftest.er1
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } && {
23776 test -z "$ac_c_werror_flag" ||
23777 test ! -s conftest.err
23778 } && test -s conftest.$ac_objext; then
23779 ac_cv_mvwdelch_is_expression=yes
23780 else
23781 echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23784 ac_cv_mvwdelch_is_expression=no
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23791 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23793 if test "$ac_cv_mvwdelch_is_expression" = yes
23794 then
23796 cat >>confdefs.h <<\_ACEOF
23797 #define MVWDELCH_IS_EXPRESSION 1
23798 _ACEOF
23802 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23803 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23804 if test "${ac_cv_window_has_flags+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807 cat >conftest.$ac_ext <<_ACEOF
23808 /* confdefs.h. */
23809 _ACEOF
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h. */
23813 #include <curses.h>
23815 main ()
23818 WINDOW *w;
23819 w->_flags = 0;
23822 return 0;
23824 _ACEOF
23825 rm -f conftest.$ac_objext
23826 if { (ac_try="$ac_compile"
23827 case "(($ac_try" in
23828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829 *) ac_try_echo=$ac_try;;
23830 esac
23831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23832 (eval "$ac_compile") 2>conftest.er1
23833 ac_status=$?
23834 grep -v '^ *+' conftest.er1 >conftest.err
23835 rm -f conftest.er1
23836 cat conftest.err >&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } && {
23839 test -z "$ac_c_werror_flag" ||
23840 test ! -s conftest.err
23841 } && test -s conftest.$ac_objext; then
23842 ac_cv_window_has_flags=yes
23843 else
23844 echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23847 ac_cv_window_has_flags=no
23850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23854 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23857 if test "$ac_cv_window_has_flags" = yes
23858 then
23860 cat >>confdefs.h <<\_ACEOF
23861 #define WINDOW_HAS_FLAGS 1
23862 _ACEOF
23866 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23867 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23868 cat >conftest.$ac_ext <<_ACEOF
23869 /* confdefs.h. */
23870 _ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h. */
23874 #include <curses.h>
23876 main ()
23878 void *x=is_term_resized
23880 return 0;
23882 _ACEOF
23883 rm -f conftest.$ac_objext
23884 if { (ac_try="$ac_compile"
23885 case "(($ac_try" in
23886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23887 *) ac_try_echo=$ac_try;;
23888 esac
23889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23890 (eval "$ac_compile") 2>conftest.er1
23891 ac_status=$?
23892 grep -v '^ *+' conftest.er1 >conftest.err
23893 rm -f conftest.er1
23894 cat conftest.err >&5
23895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); } && {
23897 test -z "$ac_c_werror_flag" ||
23898 test ! -s conftest.err
23899 } && test -s conftest.$ac_objext; then
23901 cat >>confdefs.h <<\_ACEOF
23902 #define HAVE_CURSES_IS_TERM_RESIZED 1
23903 _ACEOF
23905 { echo "$as_me:$LINENO: result: yes" >&5
23906 echo "${ECHO_T}yes" >&6; }
23907 else
23908 echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23911 { echo "$as_me:$LINENO: result: no" >&5
23912 echo "${ECHO_T}no" >&6; }
23916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23918 { echo "$as_me:$LINENO: checking for resize_term" >&5
23919 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23920 cat >conftest.$ac_ext <<_ACEOF
23921 /* confdefs.h. */
23922 _ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23926 #include <curses.h>
23928 main ()
23930 void *x=resize_term
23932 return 0;
23934 _ACEOF
23935 rm -f conftest.$ac_objext
23936 if { (ac_try="$ac_compile"
23937 case "(($ac_try" in
23938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23940 esac
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942 (eval "$ac_compile") 2>conftest.er1
23943 ac_status=$?
23944 grep -v '^ *+' conftest.er1 >conftest.err
23945 rm -f conftest.er1
23946 cat conftest.err >&5
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } && {
23949 test -z "$ac_c_werror_flag" ||
23950 test ! -s conftest.err
23951 } && test -s conftest.$ac_objext; then
23953 cat >>confdefs.h <<\_ACEOF
23954 #define HAVE_CURSES_RESIZE_TERM 1
23955 _ACEOF
23957 { echo "$as_me:$LINENO: result: yes" >&5
23958 echo "${ECHO_T}yes" >&6; }
23959 else
23960 echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23963 { echo "$as_me:$LINENO: result: no" >&5
23964 echo "${ECHO_T}no" >&6; }
23968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23970 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23971 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23972 cat >conftest.$ac_ext <<_ACEOF
23973 /* confdefs.h. */
23974 _ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h. */
23978 #include <curses.h>
23980 main ()
23982 void *x=resizeterm
23984 return 0;
23986 _ACEOF
23987 rm -f conftest.$ac_objext
23988 if { (ac_try="$ac_compile"
23989 case "(($ac_try" in
23990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23991 *) ac_try_echo=$ac_try;;
23992 esac
23993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23994 (eval "$ac_compile") 2>conftest.er1
23995 ac_status=$?
23996 grep -v '^ *+' conftest.er1 >conftest.err
23997 rm -f conftest.er1
23998 cat conftest.err >&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } && {
24001 test -z "$ac_c_werror_flag" ||
24002 test ! -s conftest.err
24003 } && test -s conftest.$ac_objext; then
24005 cat >>confdefs.h <<\_ACEOF
24006 #define HAVE_CURSES_RESIZETERM 1
24007 _ACEOF
24009 { echo "$as_me:$LINENO: result: yes" >&5
24010 echo "${ECHO_T}yes" >&6; }
24011 else
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 { echo "$as_me:$LINENO: result: no" >&5
24016 echo "${ECHO_T}no" >&6; }
24020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24022 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24023 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24025 if test -r /dev/ptmx
24026 then
24027 { echo "$as_me:$LINENO: result: yes" >&5
24028 echo "${ECHO_T}yes" >&6; }
24030 cat >>confdefs.h <<\_ACEOF
24031 #define HAVE_DEV_PTMX 1
24032 _ACEOF
24034 else
24035 { echo "$as_me:$LINENO: result: no" >&5
24036 echo "${ECHO_T}no" >&6; }
24039 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24040 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24042 if test -r /dev/ptc
24043 then
24044 { echo "$as_me:$LINENO: result: yes" >&5
24045 echo "${ECHO_T}yes" >&6; }
24047 cat >>confdefs.h <<\_ACEOF
24048 #define HAVE_DEV_PTC 1
24049 _ACEOF
24051 else
24052 { echo "$as_me:$LINENO: result: no" >&5
24053 echo "${ECHO_T}no" >&6; }
24056 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24057 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24058 if test "$cross_compiling" = yes; then
24059 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24060 See \`config.log' for more details." >&5
24061 echo "$as_me: error: cannot run test program while cross compiling
24062 See \`config.log' for more details." >&2;}
24063 { (exit 1); exit 1; }; }
24064 else
24065 cat >conftest.$ac_ext <<_ACEOF
24066 /* confdefs.h. */
24067 _ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h. */
24071 #include <stdio.h>
24072 #include <stddef.h>
24073 #include <string.h>
24075 #ifdef HAVE_SYS_TYPES_H
24076 #include <sys/types.h>
24077 #endif
24079 #ifdef HAVE_SSIZE_T
24080 typedef ssize_t Py_ssize_t;
24081 #elif SIZEOF_VOID_P == SIZEOF_LONG
24082 typedef long Py_ssize_t;
24083 #else
24084 typedef int Py_ssize_t;
24085 #endif
24087 int main()
24089 char buffer[256];
24091 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24092 return 1;
24094 if (strcmp(buffer, "123"))
24095 return 1;
24097 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24098 return 1;
24100 if (strcmp(buffer, "-123"))
24101 return 1;
24103 return 0;
24105 _ACEOF
24106 rm -f conftest$ac_exeext
24107 if { (ac_try="$ac_link"
24108 case "(($ac_try" in
24109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24110 *) ac_try_echo=$ac_try;;
24111 esac
24112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24113 (eval "$ac_link") 2>&5
24114 ac_status=$?
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24117 { (case "(($ac_try" in
24118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119 *) ac_try_echo=$ac_try;;
24120 esac
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122 (eval "$ac_try") 2>&5
24123 ac_status=$?
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); }; }; then
24126 { echo "$as_me:$LINENO: result: yes" >&5
24127 echo "${ECHO_T}yes" >&6; }
24129 cat >>confdefs.h <<\_ACEOF
24130 #define PY_FORMAT_SIZE_T "z"
24131 _ACEOF
24133 else
24134 echo "$as_me: program exited with status $ac_status" >&5
24135 echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24138 ( exit $ac_status )
24139 { echo "$as_me:$LINENO: result: no" >&5
24140 echo "${ECHO_T}no" >&6; }
24142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24147 { echo "$as_me:$LINENO: checking for socklen_t" >&5
24148 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
24149 if test "${ac_cv_type_socklen_t+set}" = set; then
24150 echo $ECHO_N "(cached) $ECHO_C" >&6
24151 else
24152 cat >conftest.$ac_ext <<_ACEOF
24153 /* confdefs.h. */
24154 _ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24159 #ifdef HAVE_SYS_TYPES_H
24160 #include <sys/types.h>
24161 #endif
24162 #ifdef HAVE_SYS_SOCKET_H
24163 #include <sys/socket.h>
24164 #endif
24167 typedef socklen_t ac__type_new_;
24169 main ()
24171 if ((ac__type_new_ *) 0)
24172 return 0;
24173 if (sizeof (ac__type_new_))
24174 return 0;
24176 return 0;
24178 _ACEOF
24179 rm -f conftest.$ac_objext
24180 if { (ac_try="$ac_compile"
24181 case "(($ac_try" in
24182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183 *) ac_try_echo=$ac_try;;
24184 esac
24185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24186 (eval "$ac_compile") 2>conftest.er1
24187 ac_status=$?
24188 grep -v '^ *+' conftest.er1 >conftest.err
24189 rm -f conftest.er1
24190 cat conftest.err >&5
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); } && {
24193 test -z "$ac_c_werror_flag" ||
24194 test ! -s conftest.err
24195 } && test -s conftest.$ac_objext; then
24196 ac_cv_type_socklen_t=yes
24197 else
24198 echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24201 ac_cv_type_socklen_t=no
24204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24206 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24207 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24208 if test $ac_cv_type_socklen_t = yes; then
24210 else
24212 cat >>confdefs.h <<\_ACEOF
24213 #define socklen_t int
24214 _ACEOF
24221 for h in `(cd $srcdir;echo Python/thread_*.h)`
24223 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24224 done
24227 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24228 { echo "$as_me:$LINENO: checking for build directories" >&5
24229 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24230 for dir in $SRCDIRS; do
24231 if test ! -d $dir; then
24232 mkdir $dir
24234 done
24235 { echo "$as_me:$LINENO: result: done" >&5
24236 echo "${ECHO_T}done" >&6; }
24238 # generate output files
24239 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24241 cat >confcache <<\_ACEOF
24242 # This file is a shell script that caches the results of configure
24243 # tests run on this system so they can be shared between configure
24244 # scripts and configure runs, see configure's option --config-cache.
24245 # It is not useful on other systems. If it contains results you don't
24246 # want to keep, you may remove or edit it.
24248 # config.status only pays attention to the cache file if you give it
24249 # the --recheck option to rerun configure.
24251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24253 # following values.
24255 _ACEOF
24257 # The following way of writing the cache mishandles newlines in values,
24258 # but we know of no workaround that is simple, portable, and efficient.
24259 # So, we kill variables containing newlines.
24260 # Ultrix sh set writes to stderr and can't be redirected directly,
24261 # and sets the high bit in the cache file unless we assign to the vars.
24263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24264 eval ac_val=\$$ac_var
24265 case $ac_val in #(
24266 *${as_nl}*)
24267 case $ac_var in #(
24268 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24269 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24270 esac
24271 case $ac_var in #(
24272 _ | IFS | as_nl) ;; #(
24273 *) $as_unset $ac_var ;;
24274 esac ;;
24275 esac
24276 done
24278 (set) 2>&1 |
24279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24280 *${as_nl}ac_space=\ *)
24281 # `set' does not quote correctly, so add quotes (double-quote
24282 # substitution turns \\\\ into \\, and sed turns \\ into \).
24283 sed -n \
24284 "s/'/'\\\\''/g;
24285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24286 ;; #(
24288 # `set' quotes correctly as required by POSIX, so do not add quotes.
24289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24291 esac |
24292 sort
24294 sed '
24295 /^ac_cv_env_/b end
24296 t clear
24297 :clear
24298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24299 t end
24300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24301 :end' >>confcache
24302 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24303 if test -w "$cache_file"; then
24304 test "x$cache_file" != "x/dev/null" &&
24305 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24306 echo "$as_me: updating cache $cache_file" >&6;}
24307 cat confcache >$cache_file
24308 else
24309 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24310 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24313 rm -f confcache
24315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24316 # Let make expand exec_prefix.
24317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24319 DEFS=-DHAVE_CONFIG_H
24321 ac_libobjs=
24322 ac_ltlibobjs=
24323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24324 # 1. Remove the extension, and $U if already installed.
24325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24326 ac_i=`echo "$ac_i" | sed "$ac_script"`
24327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24328 # will be set to the directory where LIBOBJS objects are built.
24329 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24330 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24331 done
24332 LIBOBJS=$ac_libobjs
24334 LTLIBOBJS=$ac_ltlibobjs
24338 : ${CONFIG_STATUS=./config.status}
24339 ac_clean_files_save=$ac_clean_files
24340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24341 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24342 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24343 cat >$CONFIG_STATUS <<_ACEOF
24344 #! $SHELL
24345 # Generated by $as_me.
24346 # Run this file to recreate the current configuration.
24347 # Compiler output produced by configure, useful for debugging
24348 # configure, is in config.log if it exists.
24350 debug=false
24351 ac_cs_recheck=false
24352 ac_cs_silent=false
24353 SHELL=\${CONFIG_SHELL-$SHELL}
24354 _ACEOF
24356 cat >>$CONFIG_STATUS <<\_ACEOF
24357 ## --------------------- ##
24358 ## M4sh Initialization. ##
24359 ## --------------------- ##
24361 # Be more Bourne compatible
24362 DUALCASE=1; export DUALCASE # for MKS sh
24363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24364 emulate sh
24365 NULLCMD=:
24366 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24367 # is contrary to our usage. Disable this feature.
24368 alias -g '${1+"$@"}'='"$@"'
24369 setopt NO_GLOB_SUBST
24370 else
24371 case `(set -o) 2>/dev/null` in
24372 *posix*) set -o posix ;;
24373 esac
24380 # PATH needs CR
24381 # Avoid depending upon Character Ranges.
24382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24385 as_cr_digits='0123456789'
24386 as_cr_alnum=$as_cr_Letters$as_cr_digits
24388 # The user is always right.
24389 if test "${PATH_SEPARATOR+set}" != set; then
24390 echo "#! /bin/sh" >conf$$.sh
24391 echo "exit 0" >>conf$$.sh
24392 chmod +x conf$$.sh
24393 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24394 PATH_SEPARATOR=';'
24395 else
24396 PATH_SEPARATOR=:
24398 rm -f conf$$.sh
24401 # Support unset when possible.
24402 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24403 as_unset=unset
24404 else
24405 as_unset=false
24409 # IFS
24410 # We need space, tab and new line, in precisely that order. Quoting is
24411 # there to prevent editors from complaining about space-tab.
24412 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24413 # splitting by setting IFS to empty value.)
24414 as_nl='
24416 IFS=" "" $as_nl"
24418 # Find who we are. Look in the path if we contain no directory separator.
24419 case $0 in
24420 *[\\/]* ) as_myself=$0 ;;
24421 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24422 for as_dir in $PATH
24424 IFS=$as_save_IFS
24425 test -z "$as_dir" && as_dir=.
24426 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24427 done
24428 IFS=$as_save_IFS
24431 esac
24432 # We did not find ourselves, most probably we were run as `sh COMMAND'
24433 # in which case we are not to be found in the path.
24434 if test "x$as_myself" = x; then
24435 as_myself=$0
24437 if test ! -f "$as_myself"; then
24438 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24439 { (exit 1); exit 1; }
24442 # Work around bugs in pre-3.0 UWIN ksh.
24443 for as_var in ENV MAIL MAILPATH
24444 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24445 done
24446 PS1='$ '
24447 PS2='> '
24448 PS4='+ '
24450 # NLS nuisances.
24451 for as_var in \
24452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24454 LC_TELEPHONE LC_TIME
24456 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24457 eval $as_var=C; export $as_var
24458 else
24459 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24461 done
24463 # Required to use basename.
24464 if expr a : '\(a\)' >/dev/null 2>&1 &&
24465 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24466 as_expr=expr
24467 else
24468 as_expr=false
24471 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24472 as_basename=basename
24473 else
24474 as_basename=false
24478 # Name of the executable.
24479 as_me=`$as_basename -- "$0" ||
24480 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24481 X"$0" : 'X\(//\)$' \| \
24482 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24483 echo X/"$0" |
24484 sed '/^.*\/\([^/][^/]*\)\/*$/{
24485 s//\1/
24488 /^X\/\(\/\/\)$/{
24489 s//\1/
24492 /^X\/\(\/\).*/{
24493 s//\1/
24496 s/.*/./; q'`
24498 # CDPATH.
24499 $as_unset CDPATH
24503 as_lineno_1=$LINENO
24504 as_lineno_2=$LINENO
24505 test "x$as_lineno_1" != "x$as_lineno_2" &&
24506 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24508 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24509 # uniformly replaced by the line number. The first 'sed' inserts a
24510 # line-number line after each line using $LINENO; the second 'sed'
24511 # does the real work. The second script uses 'N' to pair each
24512 # line-number line with the line containing $LINENO, and appends
24513 # trailing '-' during substitution so that $LINENO is not a special
24514 # case at line end.
24515 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24516 # scripts with optimization help from Paolo Bonzini. Blame Lee
24517 # E. McMahon (1931-1989) for sed's syntax. :-)
24518 sed -n '
24520 /[$]LINENO/=
24521 ' <$as_myself |
24522 sed '
24523 s/[$]LINENO.*/&-/
24524 t lineno
24526 :lineno
24528 :loop
24529 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24530 t loop
24531 s/-\n.*//
24532 ' >$as_me.lineno &&
24533 chmod +x "$as_me.lineno" ||
24534 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24535 { (exit 1); exit 1; }; }
24537 # Don't try to exec as it changes $[0], causing all sort of problems
24538 # (the dirname of $[0] is not the place where we might find the
24539 # original and so on. Autoconf is especially sensitive to this).
24540 . "./$as_me.lineno"
24541 # Exit status is that of the last command.
24542 exit
24546 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24547 as_dirname=dirname
24548 else
24549 as_dirname=false
24552 ECHO_C= ECHO_N= ECHO_T=
24553 case `echo -n x` in
24554 -n*)
24555 case `echo 'x\c'` in
24556 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24557 *) ECHO_C='\c';;
24558 esac;;
24560 ECHO_N='-n';;
24561 esac
24563 if expr a : '\(a\)' >/dev/null 2>&1 &&
24564 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24565 as_expr=expr
24566 else
24567 as_expr=false
24570 rm -f conf$$ conf$$.exe conf$$.file
24571 if test -d conf$$.dir; then
24572 rm -f conf$$.dir/conf$$.file
24573 else
24574 rm -f conf$$.dir
24575 mkdir conf$$.dir
24577 echo >conf$$.file
24578 if ln -s conf$$.file conf$$ 2>/dev/null; then
24579 as_ln_s='ln -s'
24580 # ... but there are two gotchas:
24581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24583 # In both cases, we have to default to `cp -p'.
24584 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24585 as_ln_s='cp -p'
24586 elif ln conf$$.file conf$$ 2>/dev/null; then
24587 as_ln_s=ln
24588 else
24589 as_ln_s='cp -p'
24591 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24592 rmdir conf$$.dir 2>/dev/null
24594 if mkdir -p . 2>/dev/null; then
24595 as_mkdir_p=:
24596 else
24597 test -d ./-p && rmdir ./-p
24598 as_mkdir_p=false
24601 if test -x / >/dev/null 2>&1; then
24602 as_test_x='test -x'
24603 else
24604 if ls -dL / >/dev/null 2>&1; then
24605 as_ls_L_option=L
24606 else
24607 as_ls_L_option=
24609 as_test_x='
24610 eval sh -c '\''
24611 if test -d "$1"; then
24612 test -d "$1/.";
24613 else
24614 case $1 in
24615 -*)set "./$1";;
24616 esac;
24617 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24618 ???[sx]*):;;*)false;;esac;fi
24619 '\'' sh
24622 as_executable_p=$as_test_x
24624 # Sed expression to map a string onto a valid CPP name.
24625 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24627 # Sed expression to map a string onto a valid variable name.
24628 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24631 exec 6>&1
24633 # Save the log message, to keep $[0] and so on meaningful, and to
24634 # report actual input values of CONFIG_FILES etc. instead of their
24635 # values after options handling.
24636 ac_log="
24637 This file was extended by python $as_me 3.0, which was
24638 generated by GNU Autoconf 2.61. Invocation command line was
24640 CONFIG_FILES = $CONFIG_FILES
24641 CONFIG_HEADERS = $CONFIG_HEADERS
24642 CONFIG_LINKS = $CONFIG_LINKS
24643 CONFIG_COMMANDS = $CONFIG_COMMANDS
24644 $ $0 $@
24646 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24649 _ACEOF
24651 cat >>$CONFIG_STATUS <<_ACEOF
24652 # Files that config.status was made for.
24653 config_files="$ac_config_files"
24654 config_headers="$ac_config_headers"
24656 _ACEOF
24658 cat >>$CONFIG_STATUS <<\_ACEOF
24659 ac_cs_usage="\
24660 \`$as_me' instantiates files from templates according to the
24661 current configuration.
24663 Usage: $0 [OPTIONS] [FILE]...
24665 -h, --help print this help, then exit
24666 -V, --version print version number and configuration settings, then exit
24667 -q, --quiet do not print progress messages
24668 -d, --debug don't remove temporary files
24669 --recheck update $as_me by reconfiguring in the same conditions
24670 --file=FILE[:TEMPLATE]
24671 instantiate the configuration file FILE
24672 --header=FILE[:TEMPLATE]
24673 instantiate the configuration header FILE
24675 Configuration files:
24676 $config_files
24678 Configuration headers:
24679 $config_headers
24681 Report bugs to <bug-autoconf@gnu.org>."
24683 _ACEOF
24684 cat >>$CONFIG_STATUS <<_ACEOF
24685 ac_cs_version="\\
24686 python config.status 3.0
24687 configured by $0, generated by GNU Autoconf 2.61,
24688 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24690 Copyright (C) 2006 Free Software Foundation, Inc.
24691 This config.status script is free software; the Free Software Foundation
24692 gives unlimited permission to copy, distribute and modify it."
24694 ac_pwd='$ac_pwd'
24695 srcdir='$srcdir'
24696 INSTALL='$INSTALL'
24697 _ACEOF
24699 cat >>$CONFIG_STATUS <<\_ACEOF
24700 # If no file are specified by the user, then we need to provide default
24701 # value. By we need to know if files were specified by the user.
24702 ac_need_defaults=:
24703 while test $# != 0
24705 case $1 in
24706 --*=*)
24707 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24708 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24709 ac_shift=:
24712 ac_option=$1
24713 ac_optarg=$2
24714 ac_shift=shift
24716 esac
24718 case $ac_option in
24719 # Handling of the options.
24720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24721 ac_cs_recheck=: ;;
24722 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24723 echo "$ac_cs_version"; exit ;;
24724 --debug | --debu | --deb | --de | --d | -d )
24725 debug=: ;;
24726 --file | --fil | --fi | --f )
24727 $ac_shift
24728 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24729 ac_need_defaults=false;;
24730 --header | --heade | --head | --hea )
24731 $ac_shift
24732 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24733 ac_need_defaults=false;;
24734 --he | --h)
24735 # Conflict between --help and --header
24736 { echo "$as_me: error: ambiguous option: $1
24737 Try \`$0 --help' for more information." >&2
24738 { (exit 1); exit 1; }; };;
24739 --help | --hel | -h )
24740 echo "$ac_cs_usage"; exit ;;
24741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24742 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24743 ac_cs_silent=: ;;
24745 # This is an error.
24746 -*) { echo "$as_me: error: unrecognized option: $1
24747 Try \`$0 --help' for more information." >&2
24748 { (exit 1); exit 1; }; } ;;
24750 *) ac_config_targets="$ac_config_targets $1"
24751 ac_need_defaults=false ;;
24753 esac
24754 shift
24755 done
24757 ac_configure_extra_args=
24759 if $ac_cs_silent; then
24760 exec 6>/dev/null
24761 ac_configure_extra_args="$ac_configure_extra_args --silent"
24764 _ACEOF
24765 cat >>$CONFIG_STATUS <<_ACEOF
24766 if \$ac_cs_recheck; then
24767 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24768 CONFIG_SHELL=$SHELL
24769 export CONFIG_SHELL
24770 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24773 _ACEOF
24774 cat >>$CONFIG_STATUS <<\_ACEOF
24775 exec 5>>config.log
24777 echo
24778 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24779 ## Running $as_me. ##
24780 _ASBOX
24781 echo "$ac_log"
24782 } >&5
24784 _ACEOF
24785 cat >>$CONFIG_STATUS <<_ACEOF
24786 _ACEOF
24788 cat >>$CONFIG_STATUS <<\_ACEOF
24790 # Handling of arguments.
24791 for ac_config_target in $ac_config_targets
24793 case $ac_config_target in
24794 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
24795 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
24796 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24797 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24798 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
24799 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
24800 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
24801 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
24803 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24804 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24805 { (exit 1); exit 1; }; };;
24806 esac
24807 done
24810 # If the user did not use the arguments to specify the items to instantiate,
24811 # then the envvar interface is used. Set only those that are not.
24812 # We use the long form for the default assignment because of an extremely
24813 # bizarre bug on SunOS 4.1.3.
24814 if $ac_need_defaults; then
24815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24819 # Have a temporary directory for convenience. Make it in the build tree
24820 # simply because there is no reason against having it here, and in addition,
24821 # creating and moving files from /tmp can sometimes cause problems.
24822 # Hook for its removal unless debugging.
24823 # Note that there is a small window in which the directory will not be cleaned:
24824 # after its creation but before its name has been assigned to `$tmp'.
24825 $debug ||
24827 tmp=
24828 trap 'exit_status=$?
24829 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24831 trap '{ (exit 1); exit 1; }' 1 2 13 15
24833 # Create a (secure) tmp directory for tmp files.
24836 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24837 test -n "$tmp" && test -d "$tmp"
24838 } ||
24840 tmp=./conf$$-$RANDOM
24841 (umask 077 && mkdir "$tmp")
24842 } ||
24844 echo "$me: cannot create a temporary directory in ." >&2
24845 { (exit 1); exit 1; }
24849 # Set up the sed scripts for CONFIG_FILES section.
24852 # No need to generate the scripts if there are no CONFIG_FILES.
24853 # This happens for instance when ./config.status config.h
24854 if test -n "$CONFIG_FILES"; then
24856 _ACEOF
24860 ac_delim='%!_!# '
24861 for ac_last_try in false false false false false :; do
24862 cat >conf$$subs.sed <<_ACEOF
24863 SHELL!$SHELL$ac_delim
24864 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24865 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24866 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24867 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24868 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24869 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24870 exec_prefix!$exec_prefix$ac_delim
24871 prefix!$prefix$ac_delim
24872 program_transform_name!$program_transform_name$ac_delim
24873 bindir!$bindir$ac_delim
24874 sbindir!$sbindir$ac_delim
24875 libexecdir!$libexecdir$ac_delim
24876 datarootdir!$datarootdir$ac_delim
24877 datadir!$datadir$ac_delim
24878 sysconfdir!$sysconfdir$ac_delim
24879 sharedstatedir!$sharedstatedir$ac_delim
24880 localstatedir!$localstatedir$ac_delim
24881 includedir!$includedir$ac_delim
24882 oldincludedir!$oldincludedir$ac_delim
24883 docdir!$docdir$ac_delim
24884 infodir!$infodir$ac_delim
24885 htmldir!$htmldir$ac_delim
24886 dvidir!$dvidir$ac_delim
24887 pdfdir!$pdfdir$ac_delim
24888 psdir!$psdir$ac_delim
24889 libdir!$libdir$ac_delim
24890 localedir!$localedir$ac_delim
24891 mandir!$mandir$ac_delim
24892 DEFS!$DEFS$ac_delim
24893 ECHO_C!$ECHO_C$ac_delim
24894 ECHO_N!$ECHO_N$ac_delim
24895 ECHO_T!$ECHO_T$ac_delim
24896 LIBS!$LIBS$ac_delim
24897 build_alias!$build_alias$ac_delim
24898 host_alias!$host_alias$ac_delim
24899 target_alias!$target_alias$ac_delim
24900 VERSION!$VERSION$ac_delim
24901 SOVERSION!$SOVERSION$ac_delim
24902 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24903 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24904 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24905 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
24906 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24907 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24908 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24909 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24910 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24911 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24912 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24913 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24914 MACHDEP!$MACHDEP$ac_delim
24915 SGI_ABI!$SGI_ABI$ac_delim
24916 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24917 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24918 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24919 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24920 CC!$CC$ac_delim
24921 CFLAGS!$CFLAGS$ac_delim
24922 LDFLAGS!$LDFLAGS$ac_delim
24923 CPPFLAGS!$CPPFLAGS$ac_delim
24924 ac_ct_CC!$ac_ct_CC$ac_delim
24925 EXEEXT!$EXEEXT$ac_delim
24926 OBJEXT!$OBJEXT$ac_delim
24927 CXX!$CXX$ac_delim
24928 MAINCC!$MAINCC$ac_delim
24929 CPP!$CPP$ac_delim
24930 GREP!$GREP$ac_delim
24931 EGREP!$EGREP$ac_delim
24932 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24933 LIBRARY!$LIBRARY$ac_delim
24934 LDLIBRARY!$LDLIBRARY$ac_delim
24935 DLLLIBRARY!$DLLLIBRARY$ac_delim
24936 BLDLIBRARY!$BLDLIBRARY$ac_delim
24937 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24938 INSTSONAME!$INSTSONAME$ac_delim
24939 RUNSHARED!$RUNSHARED$ac_delim
24940 LINKCC!$LINKCC$ac_delim
24941 RANLIB!$RANLIB$ac_delim
24942 AR!$AR$ac_delim
24943 SVNVERSION!$SVNVERSION$ac_delim
24944 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24945 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24946 INSTALL_DATA!$INSTALL_DATA$ac_delim
24947 LN!$LN$ac_delim
24948 OPT!$OPT$ac_delim
24949 BASECFLAGS!$BASECFLAGS$ac_delim
24950 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24951 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24952 SO!$SO$ac_delim
24953 LDSHARED!$LDSHARED$ac_delim
24954 BLDSHARED!$BLDSHARED$ac_delim
24955 CCSHARED!$CCSHARED$ac_delim
24956 LINKFORSHARED!$LINKFORSHARED$ac_delim
24957 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24958 SHLIBS!$SHLIBS$ac_delim
24959 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24960 _ACEOF
24962 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24963 break
24964 elif $ac_last_try; then
24965 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24966 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24967 { (exit 1); exit 1; }; }
24968 else
24969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24971 done
24973 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24974 if test -n "$ac_eof"; then
24975 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24976 ac_eof=`expr $ac_eof + 1`
24979 cat >>$CONFIG_STATUS <<_ACEOF
24980 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24982 _ACEOF
24983 sed '
24984 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24985 s/^/s,@/; s/!/@,|#_!!_#|/
24988 s/'"$ac_delim"'$/,g/; t
24989 s/$/\\/; p
24990 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24991 ' >>$CONFIG_STATUS <conf$$subs.sed
24992 rm -f conf$$subs.sed
24993 cat >>$CONFIG_STATUS <<_ACEOF
24994 CEOF$ac_eof
24995 _ACEOF
24998 ac_delim='%!_!# '
24999 for ac_last_try in false false false false false :; do
25000 cat >conf$$subs.sed <<_ACEOF
25001 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25002 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25003 LDLAST!$LDLAST$ac_delim
25004 THREADOBJ!$THREADOBJ$ac_delim
25005 DLINCLDIR!$DLINCLDIR$ac_delim
25006 DYNLOADFILE!$DYNLOADFILE$ac_delim
25007 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25008 TRUE!$TRUE$ac_delim
25009 LIBOBJS!$LIBOBJS$ac_delim
25010 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25011 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25012 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25013 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25014 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25015 LIBM!$LIBM$ac_delim
25016 LIBC!$LIBC$ac_delim
25017 THREADHEADERS!$THREADHEADERS$ac_delim
25018 SRCDIRS!$SRCDIRS$ac_delim
25019 LTLIBOBJS!$LTLIBOBJS$ac_delim
25020 _ACEOF
25022 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
25023 break
25024 elif $ac_last_try; then
25025 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25026 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25027 { (exit 1); exit 1; }; }
25028 else
25029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25031 done
25033 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25034 if test -n "$ac_eof"; then
25035 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25036 ac_eof=`expr $ac_eof + 1`
25039 cat >>$CONFIG_STATUS <<_ACEOF
25040 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25042 _ACEOF
25043 sed '
25044 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25045 s/^/s,@/; s/!/@,|#_!!_#|/
25048 s/'"$ac_delim"'$/,g/; t
25049 s/$/\\/; p
25050 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25051 ' >>$CONFIG_STATUS <conf$$subs.sed
25052 rm -f conf$$subs.sed
25053 cat >>$CONFIG_STATUS <<_ACEOF
25054 :end
25055 s/|#_!!_#|//g
25056 CEOF$ac_eof
25057 _ACEOF
25060 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25061 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25062 # trailing colons and then remove the whole line if VPATH becomes empty
25063 # (actually we leave an empty line to preserve line numbers).
25064 if test "x$srcdir" = x.; then
25065 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25066 s/:*\$(srcdir):*/:/
25067 s/:*\${srcdir}:*/:/
25068 s/:*@srcdir@:*/:/
25069 s/^\([^=]*=[ ]*\):*/\1/
25070 s/:*$//
25071 s/^[^=]*=[ ]*$//
25075 cat >>$CONFIG_STATUS <<\_ACEOF
25076 fi # test -n "$CONFIG_FILES"
25079 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25081 case $ac_tag in
25082 :[FHLC]) ac_mode=$ac_tag; continue;;
25083 esac
25084 case $ac_mode$ac_tag in
25085 :[FHL]*:*);;
25086 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25087 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25088 { (exit 1); exit 1; }; };;
25089 :[FH]-) ac_tag=-:-;;
25090 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25091 esac
25092 ac_save_IFS=$IFS
25093 IFS=:
25094 set x $ac_tag
25095 IFS=$ac_save_IFS
25096 shift
25097 ac_file=$1
25098 shift
25100 case $ac_mode in
25101 :L) ac_source=$1;;
25102 :[FH])
25103 ac_file_inputs=
25104 for ac_f
25106 case $ac_f in
25107 -) ac_f="$tmp/stdin";;
25108 *) # Look for the file first in the build tree, then in the source tree
25109 # (if the path is not absolute). The absolute path cannot be DOS-style,
25110 # because $ac_f cannot contain `:'.
25111 test -f "$ac_f" ||
25112 case $ac_f in
25113 [\\/$]*) false;;
25114 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25115 esac ||
25116 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25117 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25118 { (exit 1); exit 1; }; };;
25119 esac
25120 ac_file_inputs="$ac_file_inputs $ac_f"
25121 done
25123 # Let's still pretend it is `configure' which instantiates (i.e., don't
25124 # use $as_me), people would be surprised to read:
25125 # /* config.h. Generated by config.status. */
25126 configure_input="Generated from "`IFS=:
25127 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25128 if test x"$ac_file" != x-; then
25129 configure_input="$ac_file. $configure_input"
25130 { echo "$as_me:$LINENO: creating $ac_file" >&5
25131 echo "$as_me: creating $ac_file" >&6;}
25134 case $ac_tag in
25135 *:-:* | *:-) cat >"$tmp/stdin";;
25136 esac
25138 esac
25140 ac_dir=`$as_dirname -- "$ac_file" ||
25141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25142 X"$ac_file" : 'X\(//\)[^/]' \| \
25143 X"$ac_file" : 'X\(//\)$' \| \
25144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25145 echo X"$ac_file" |
25146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25147 s//\1/
25150 /^X\(\/\/\)[^/].*/{
25151 s//\1/
25154 /^X\(\/\/\)$/{
25155 s//\1/
25158 /^X\(\/\).*/{
25159 s//\1/
25162 s/.*/./; q'`
25163 { as_dir="$ac_dir"
25164 case $as_dir in #(
25165 -*) as_dir=./$as_dir;;
25166 esac
25167 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25168 as_dirs=
25169 while :; do
25170 case $as_dir in #(
25171 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25172 *) as_qdir=$as_dir;;
25173 esac
25174 as_dirs="'$as_qdir' $as_dirs"
25175 as_dir=`$as_dirname -- "$as_dir" ||
25176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25177 X"$as_dir" : 'X\(//\)[^/]' \| \
25178 X"$as_dir" : 'X\(//\)$' \| \
25179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25180 echo X"$as_dir" |
25181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25182 s//\1/
25185 /^X\(\/\/\)[^/].*/{
25186 s//\1/
25189 /^X\(\/\/\)$/{
25190 s//\1/
25193 /^X\(\/\).*/{
25194 s//\1/
25197 s/.*/./; q'`
25198 test -d "$as_dir" && break
25199 done
25200 test -z "$as_dirs" || eval "mkdir $as_dirs"
25201 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25202 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25203 { (exit 1); exit 1; }; }; }
25204 ac_builddir=.
25206 case "$ac_dir" in
25207 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25209 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25210 # A ".." for each directory in $ac_dir_suffix.
25211 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25212 case $ac_top_builddir_sub in
25213 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25214 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25215 esac ;;
25216 esac
25217 ac_abs_top_builddir=$ac_pwd
25218 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25219 # for backward compatibility:
25220 ac_top_builddir=$ac_top_build_prefix
25222 case $srcdir in
25223 .) # We are building in place.
25224 ac_srcdir=.
25225 ac_top_srcdir=$ac_top_builddir_sub
25226 ac_abs_top_srcdir=$ac_pwd ;;
25227 [\\/]* | ?:[\\/]* ) # Absolute name.
25228 ac_srcdir=$srcdir$ac_dir_suffix;
25229 ac_top_srcdir=$srcdir
25230 ac_abs_top_srcdir=$srcdir ;;
25231 *) # Relative name.
25232 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25233 ac_top_srcdir=$ac_top_build_prefix$srcdir
25234 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25235 esac
25236 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25239 case $ac_mode in
25242 # CONFIG_FILE
25245 case $INSTALL in
25246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25247 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25248 esac
25249 _ACEOF
25251 cat >>$CONFIG_STATUS <<\_ACEOF
25252 # If the template does not know about datarootdir, expand it.
25253 # FIXME: This hack should be removed a few years after 2.60.
25254 ac_datarootdir_hack=; ac_datarootdir_seen=
25256 case `sed -n '/datarootdir/ {
25260 /@datadir@/p
25261 /@docdir@/p
25262 /@infodir@/p
25263 /@localedir@/p
25264 /@mandir@/p
25265 ' $ac_file_inputs` in
25266 *datarootdir*) ac_datarootdir_seen=yes;;
25267 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25268 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25269 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25270 _ACEOF
25271 cat >>$CONFIG_STATUS <<_ACEOF
25272 ac_datarootdir_hack='
25273 s&@datadir@&$datadir&g
25274 s&@docdir@&$docdir&g
25275 s&@infodir@&$infodir&g
25276 s&@localedir@&$localedir&g
25277 s&@mandir@&$mandir&g
25278 s&\\\${datarootdir}&$datarootdir&g' ;;
25279 esac
25280 _ACEOF
25282 # Neutralize VPATH when `$srcdir' = `.'.
25283 # Shell code in configure.ac might set extrasub.
25284 # FIXME: do we really want to maintain this feature?
25285 cat >>$CONFIG_STATUS <<_ACEOF
25286 sed "$ac_vpsub
25287 $extrasub
25288 _ACEOF
25289 cat >>$CONFIG_STATUS <<\_ACEOF
25291 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25292 s&@configure_input@&$configure_input&;t t
25293 s&@top_builddir@&$ac_top_builddir_sub&;t t
25294 s&@srcdir@&$ac_srcdir&;t t
25295 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25296 s&@top_srcdir@&$ac_top_srcdir&;t t
25297 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25298 s&@builddir@&$ac_builddir&;t t
25299 s&@abs_builddir@&$ac_abs_builddir&;t t
25300 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25301 s&@INSTALL@&$ac_INSTALL&;t t
25302 $ac_datarootdir_hack
25303 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25308 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25309 which seems to be undefined. Please make sure it is defined." >&5
25310 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25311 which seems to be undefined. Please make sure it is defined." >&2;}
25313 rm -f "$tmp/stdin"
25314 case $ac_file in
25315 -) cat "$tmp/out"; rm -f "$tmp/out";;
25316 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25317 esac
25321 # CONFIG_HEADER
25323 _ACEOF
25325 # Transform confdefs.h into a sed script `conftest.defines', that
25326 # substitutes the proper values into config.h.in to produce config.h.
25327 rm -f conftest.defines conftest.tail
25328 # First, append a space to every undef/define line, to ease matching.
25329 echo 's/$/ /' >conftest.defines
25330 # Then, protect against being on the right side of a sed subst, or in
25331 # an unquoted here document, in config.status. If some macros were
25332 # called several times there might be several #defines for the same
25333 # symbol, which is useless. But do not sort them, since the last
25334 # AC_DEFINE must be honored.
25335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25336 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25337 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25338 # PARAMS is the parameter list in the macro definition--in most cases, it's
25339 # just an empty string.
25340 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25341 ac_dB='\\)[ (].*,\\1define\\2'
25342 ac_dC=' '
25343 ac_dD=' ,'
25345 uniq confdefs.h |
25346 sed -n '
25347 t rset
25348 :rset
25349 s/^[ ]*#[ ]*define[ ][ ]*//
25350 t ok
25353 s/[\\&,]/\\&/g
25354 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25355 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25356 ' >>conftest.defines
25358 # Remove the space that was appended to ease matching.
25359 # Then replace #undef with comments. This is necessary, for
25360 # example, in the case of _POSIX_SOURCE, which is predefined and required
25361 # on some systems where configure will not decide to define it.
25362 # (The regexp can be short, since the line contains either #define or #undef.)
25363 echo 's/ $//
25364 s,^[ #]*u.*,/* & */,' >>conftest.defines
25366 # Break up conftest.defines:
25367 ac_max_sed_lines=50
25369 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25370 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25371 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25372 # et cetera.
25373 ac_in='$ac_file_inputs'
25374 ac_out='"$tmp/out1"'
25375 ac_nxt='"$tmp/out2"'
25377 while :
25379 # Write a here document:
25380 cat >>$CONFIG_STATUS <<_ACEOF
25381 # First, check the format of the line:
25382 cat >"\$tmp/defines.sed" <<\\CEOF
25383 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25384 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25386 :def
25387 _ACEOF
25388 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25389 echo 'CEOF
25390 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25391 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25392 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25393 grep . conftest.tail >/dev/null || break
25394 rm -f conftest.defines
25395 mv conftest.tail conftest.defines
25396 done
25397 rm -f conftest.defines conftest.tail
25399 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25400 cat >>$CONFIG_STATUS <<\_ACEOF
25401 if test x"$ac_file" != x-; then
25402 echo "/* $configure_input */" >"$tmp/config.h"
25403 cat "$ac_result" >>"$tmp/config.h"
25404 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25406 echo "$as_me: $ac_file is unchanged" >&6;}
25407 else
25408 rm -f $ac_file
25409 mv "$tmp/config.h" $ac_file
25411 else
25412 echo "/* $configure_input */"
25413 cat "$ac_result"
25415 rm -f "$tmp/out12"
25419 esac
25421 done # for ac_tag
25424 { (exit 0); exit 0; }
25425 _ACEOF
25426 chmod +x $CONFIG_STATUS
25427 ac_clean_files=$ac_clean_files_save
25430 # configure is writing to config.log, and then calls config.status.
25431 # config.status does its own redirection, appending to config.log.
25432 # Unfortunately, on DOS this fails, as config.log is still kept open
25433 # by configure, so config.status won't be able to write to it; its
25434 # output is simply discarded. So we exec the FD to /dev/null,
25435 # effectively closing config.log, so it can be properly (re)opened and
25436 # appended to by config.status. When coming back to configure, we
25437 # need to make the FD available again.
25438 if test "$no_create" != yes; then
25439 ac_cs_success=:
25440 ac_config_status_args=
25441 test "$silent" = yes &&
25442 ac_config_status_args="$ac_config_status_args --quiet"
25443 exec 5>/dev/null
25444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25445 exec 5>>config.log
25446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25447 # would make configure fail if this is the last instruction.
25448 $ac_cs_success || { (exit 1); exit 1; }
25452 echo "creating Modules/Setup"
25453 if test ! -f Modules/Setup
25454 then
25455 cp $srcdir/Modules/Setup.dist Modules/Setup
25458 echo "creating Modules/Setup.local"
25459 if test ! -f Modules/Setup.local
25460 then
25461 echo "# Edit this file for local setup changes" >Modules/Setup.local
25464 echo "creating Makefile"
25465 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
25466 -s Modules Modules/Setup.config \
25467 Modules/Setup.local Modules/Setup
25468 mv config.c Modules