2 # From configure.in Revision: 1.343 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
31 # Support unset when possible.
32 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
38 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
40 { LANG
=C
; export LANG
; }
41 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
43 { LC_ALL
=C
; export LC_ALL
; }
44 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
46 { LC_TIME
=C
; export LC_TIME
; }
47 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE
=C
; export LC_CTYPE
; }
50 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE
=C
; export LANGUAGE
; }
53 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE
=C
; export LC_COLLATE
; }
56 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
59 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
64 # Name of the executable.
65 as_me
=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits
='0123456789'
82 as_cr_alnum
=$as_cr_Letters$as_cr_digits
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86 echo "#! /bin/sh" >conftest.sh
87 echo "exit 0" >>conftest.sh
89 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
100 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
101 test "x$as_lineno_1" != "x$as_lineno_2" &&
102 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
103 # Find who we are. Look in the path if we contain no path at all
106 *[\\/]* ) as_myself
=$0 ;;
107 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
111 test -z "$as_dir" && as_dir
=.
112 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
117 # We did not find ourselves, most probably we were run as `sh COMMAND'
118 # in which case we are not to be found in the path.
119 if test "x$as_myself" = x
; then
122 if test ! -f "$as_myself"; then
123 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124 { (exit 1); exit 1; }; }
126 case $CONFIG_SHELL in
128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
129 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
132 test -z "$as_dir" && as_dir
=.
133 for as_base
in sh bash ksh sh5
; do
136 if ("$as_dir/$as_base" -c '
139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140 test "x$as_lineno_1" != "x$as_lineno_2" &&
141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
142 CONFIG_SHELL
=$as_dir/$as_base
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153 # uniformly replaced by the line number. The first 'sed' inserts a
154 # line-number line before each line; the second 'sed' does the real
155 # work. The second script uses 'N' to pair each line-number line
156 # with the numbered line, and appends trailing '-' during
157 # substitution so that $LINENO is not a special case at line end.
158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160 sed '=' <$as_myself |
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168 s,^['$as_cr_digits']*\n,,
170 chmod +x
$as_me.lineno ||
171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172 { (exit 1); exit 1; }; }
174 # Don't try to exec as it changes $[0], causing all sort of problems
175 # (the dirname of $[0] is not the place where we might find the
176 # original and so on. Autoconf is especially sensible to this).
178 # Exit status is that of the last command.
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c
*,-n*) ECHO_N
= ECHO_C
='
186 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
187 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
190 if expr a
: '\(a\)' >/dev
/null
2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.
file
198 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe
; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.
file conf$$
2>/dev
/null
; then
212 rm -f conf$$ conf$$.exe conf$$.
file
214 as_executable_p
="test -f"
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224 # We need space, tab and new line, in precisely that order.
230 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
243 ac_default_prefix
=/usr
/local
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete. It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
255 # Identity of this package.
262 ac_unique_file
="Include/object.h"
263 # Factoring default headers for most tests.
264 ac_includes_default
="\
267 # include <sys/types.h>
270 # include <sys/stat.h>
281 # if !STDC_HEADERS && HAVE_MEMORY_H
287 # include <strings.h>
290 # include <inttypes.h>
301 # Initialize some variables set by options.
303 ac_init_version
=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
313 program_transform_name
=s
,x
,x
,
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir
='${exec_prefix}/bin'
327 sbindir
='${exec_prefix}/sbin'
328 libexecdir
='${exec_prefix}/libexec'
329 datadir
='${prefix}/share'
330 sysconfdir
='${prefix}/etc'
331 sharedstatedir
='${prefix}/com'
332 localstatedir
='${prefix}/var'
333 libdir
='${exec_prefix}/lib'
334 includedir
='${prefix}/include'
335 oldincludedir
='/usr/include'
336 infodir
='${prefix}/info'
337 mandir
='${prefix}/man'
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
349 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
355 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
357 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
360 -build |
--build |
--buil |
--bui |
--bu)
361 ac_prev
=build_alias
;;
362 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
363 build_alias
=$ac_optarg ;;
365 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
366 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
367 ac_prev
=cache_file
;;
368 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
369 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
370 cache_file
=$ac_optarg ;;
373 cache_file
=config.cache
;;
375 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
377 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
379 datadir
=$ac_optarg ;;
381 -disable-* |
--disable-*)
382 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383 # Reject names that are not valid shell variable names.
384 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
385 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386 { (exit 1); exit 1; }; }
387 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
388 eval "enable_$ac_feature=no" ;;
390 -enable-* |
--enable-*)
391 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392 # Reject names that are not valid shell variable names.
393 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
394 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395 { (exit 1); exit 1; }; }
396 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
398 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
401 eval "enable_$ac_feature='$ac_optarg'" ;;
403 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
404 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
405 |
--exec |
--exe |
--ex)
406 ac_prev
=exec_prefix
;;
407 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
408 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
409 |
--exec=* |
--exe=* |
--ex=*)
410 exec_prefix
=$ac_optarg ;;
412 -gas |
--gas |
--ga |
--g)
413 # Obsolete; use --with-gas.
416 -help |
--help |
--hel |
--he |
-h)
418 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
419 ac_init_help
=recursive
;;
420 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
421 ac_init_help
=short
;;
423 -host |
--host |
--hos |
--ho)
424 ac_prev
=host_alias
;;
425 -host=* |
--host=* |
--hos=* |
--ho=*)
426 host_alias
=$ac_optarg ;;
428 -includedir |
--includedir |
--includedi |
--included |
--include \
429 |
--includ |
--inclu |
--incl |
--inc)
430 ac_prev
=includedir
;;
431 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
432 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
433 includedir
=$ac_optarg ;;
435 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
437 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
438 infodir
=$ac_optarg ;;
440 -libdir |
--libdir |
--libdi |
--libd)
442 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
445 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
446 |
--libexe |
--libex |
--libe)
447 ac_prev
=libexecdir
;;
448 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
449 |
--libexe=* |
--libex=* |
--libe=*)
450 libexecdir
=$ac_optarg ;;
452 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
453 |
--localstate |
--localstat |
--localsta |
--localst \
454 |
--locals |
--local |
--loca |
--loc |
--lo)
455 ac_prev
=localstatedir
;;
456 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
457 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
458 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
459 localstatedir
=$ac_optarg ;;
461 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
463 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
467 # Obsolete; use --without-fp.
470 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
471 |
--no-cr |
--no-c |
-n)
474 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
475 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
478 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
479 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
480 |
--oldin |
--oldi |
--old |
--ol |
--o)
481 ac_prev
=oldincludedir
;;
482 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
483 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
484 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
485 oldincludedir
=$ac_optarg ;;
487 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
489 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
492 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
493 |
--program-pre |
--program-pr |
--program-p)
494 ac_prev
=program_prefix
;;
495 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
496 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
497 program_prefix
=$ac_optarg ;;
499 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
500 |
--program-suf |
--program-su |
--program-s)
501 ac_prev
=program_suffix
;;
502 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
503 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
504 program_suffix
=$ac_optarg ;;
506 -program-transform-name |
--program-transform-name \
507 |
--program-transform-nam |
--program-transform-na \
508 |
--program-transform-n |
--program-transform- \
509 |
--program-transform |
--program-transfor \
510 |
--program-transfo |
--program-transf \
511 |
--program-trans |
--program-tran \
512 |
--progr-tra |
--program-tr |
--program-t)
513 ac_prev
=program_transform_name
;;
514 -program-transform-name=* |
--program-transform-name=* \
515 |
--program-transform-nam=* |
--program-transform-na=* \
516 |
--program-transform-n=* |
--program-transform-=* \
517 |
--program-transform=* |
--program-transfor=* \
518 |
--program-transfo=* |
--program-transf=* \
519 |
--program-trans=* |
--program-tran=* \
520 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
521 program_transform_name
=$ac_optarg ;;
523 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
524 |
-silent |
--silent |
--silen |
--sile |
--sil)
527 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
529 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
531 sbindir
=$ac_optarg ;;
533 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
534 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
535 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
537 ac_prev
=sharedstatedir
;;
538 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
539 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
540 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
542 sharedstatedir
=$ac_optarg ;;
544 -site |
--site |
--sit)
546 -site=* |
--site=* |
--sit=*)
549 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
551 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
554 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
555 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
556 ac_prev
=sysconfdir
;;
557 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
558 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
559 sysconfdir
=$ac_optarg ;;
561 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
562 ac_prev
=target_alias
;;
563 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
564 target_alias
=$ac_optarg ;;
566 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
569 -version |
--version |
--versio |
--versi |
--vers |
-V)
573 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
576 { echo "$as_me: error: invalid package name: $ac_package" >&2
577 { (exit 1); exit 1; }; }
578 ac_package
=`echo $ac_package| sed 's/-/_/g'`
580 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "with_$ac_package='$ac_optarg'" ;;
585 -without-* |
--without-*)
586 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package
=`echo $ac_package | sed 's/-/_/g'`
592 eval "with_$ac_package=no" ;;
595 # Obsolete; use --with-x.
598 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
599 |
--x-incl |
--x-inc |
--x-in |
--x-i)
600 ac_prev
=x_includes
;;
601 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
602 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
603 x_includes
=$ac_optarg ;;
605 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
606 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
607 ac_prev
=x_libraries
;;
608 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
609 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
610 x_libraries
=$ac_optarg ;;
612 -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614 { (exit 1); exit 1; }; }
618 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
621 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622 { (exit 1); exit 1; }; }
623 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624 eval "$ac_envvar='$ac_optarg'"
628 # FIXME: should be removed in autoconf 3.0.
629 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
631 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
638 if test -n "$ac_prev"; then
639 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
640 { echo "$as_me: error: missing argument to $ac_option" >&2
641 { (exit 1); exit 1; }; }
644 # Be sure to have absolute paths.
645 for ac_var
in exec_prefix prefix
647 eval ac_val
=$
`echo $ac_var`
649 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
650 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
655 # Be sure to have absolute paths.
656 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657 localstatedir libdir includedir oldincludedir infodir mandir
659 eval ac_val
=$
`echo $ac_var`
661 [\\/$
]* | ?
:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
667 # There might be people who depend on the old broken behavior: `$host'
668 # used to hold the argument of --host etc.
669 # FIXME: To remove some day.
674 # FIXME: To remove some day.
675 if test "x$host_alias" != x
; then
676 if test "x$build_alias" = x
; then
677 cross_compiling
=maybe
678 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679 If a cross compiler is detected then cross compile mode will be used." >&2
680 elif test "x$build_alias" != "x$host_alias"; then
686 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
688 test "$silent" = yes && exec 6>/dev
/null
691 # Find the source files, if location was not specified.
692 if test -z "$srcdir"; then
693 ac_srcdir_defaulted
=yes
694 # Try the directory containing this script, then its parent.
695 ac_confdir
=`(dirname "$0") 2>/dev/null ||
696 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697 X"$0" : 'X\(//\)[^/]' \| \
698 X"$0" : 'X\(//\)$' \| \
699 X"$0" : 'X\(/\)' \| \
700 . : '\(.\)' 2>/dev/null ||
702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704 /^X\(\/\/\)$/{ s//\1/; q; }
705 /^X\(\/\).*/{ s//\1/; q; }
708 if test ! -r $srcdir/$ac_unique_file; then
712 ac_srcdir_defaulted
=no
714 if test ! -r $srcdir/$ac_unique_file; then
715 if test "$ac_srcdir_defaulted" = yes; then
716 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717 { (exit 1); exit 1; }; }
719 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720 { (exit 1); exit 1; }; }
723 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724 ac_env_build_alias_set
=${build_alias+set}
725 ac_env_build_alias_value
=$build_alias
726 ac_cv_env_build_alias_set
=${build_alias+set}
727 ac_cv_env_build_alias_value
=$build_alias
728 ac_env_host_alias_set
=${host_alias+set}
729 ac_env_host_alias_value
=$host_alias
730 ac_cv_env_host_alias_set
=${host_alias+set}
731 ac_cv_env_host_alias_value
=$host_alias
732 ac_env_target_alias_set
=${target_alias+set}
733 ac_env_target_alias_value
=$target_alias
734 ac_cv_env_target_alias_set
=${target_alias+set}
735 ac_cv_env_target_alias_value
=$target_alias
736 ac_env_CC_set
=${CC+set}
738 ac_cv_env_CC_set
=${CC+set}
739 ac_cv_env_CC_value
=$CC
740 ac_env_CFLAGS_set
=${CFLAGS+set}
741 ac_env_CFLAGS_value
=$CFLAGS
742 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
743 ac_cv_env_CFLAGS_value
=$CFLAGS
744 ac_env_LDFLAGS_set
=${LDFLAGS+set}
745 ac_env_LDFLAGS_value
=$LDFLAGS
746 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
747 ac_cv_env_LDFLAGS_value
=$LDFLAGS
748 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
749 ac_env_CPPFLAGS_value
=$CPPFLAGS
750 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
751 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
752 ac_env_CPP_set
=${CPP+set}
753 ac_env_CPP_value
=$CPP
754 ac_cv_env_CPP_set
=${CPP+set}
755 ac_cv_env_CPP_value
=$CPP
758 # Report the --help message.
760 if test "$ac_init_help" = "long"; then
761 # Omit some internal or obsolete options to make the list less imposing.
762 # This message is too long to be a string in the A/UX 3.1 sh.
764 \`configure' configures this package to adapt to many kinds of systems.
766 Usage: $0 [OPTION]... [VAR=VALUE]...
768 To assign environment variables (e.g., CC, CFLAGS...), specify them as
769 VAR=VALUE. See below for descriptions of some of the useful variables.
771 Defaults for the options are specified in brackets.
774 -h, --help display this help and exit
775 --help=short display options specific to this package
776 --help=recursive display the short help of all the included packages
777 -V, --version display version information and exit
778 -q, --quiet, --silent do not print \`checking...' messages
779 --cache-file=FILE cache test results in FILE [disabled]
780 -C, --config-cache alias for \`--cache-file=config.cache'
781 -n, --no-create do not create output files
782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
787 Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
793 By default, \`make install' will install all the files in
794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796 for instance \`--prefix=\$HOME'.
798 For better control, use the options below.
800 Fine tuning of the installation directories:
801 --bindir=DIR user executables [EPREFIX/bin]
802 --sbindir=DIR system admin executables [EPREFIX/sbin]
803 --libexecdir=DIR program executables [EPREFIX/libexec]
804 --datadir=DIR read-only architecture-independent data [PREFIX/share]
805 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
806 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
807 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
808 --libdir=DIR object code libraries [EPREFIX/lib]
809 --includedir=DIR C header files [PREFIX/include]
810 --oldincludedir=DIR C header files for non-gcc [/usr/include]
811 --infodir=DIR info documentation [PREFIX/info]
812 --mandir=DIR man documentation [PREFIX/man]
819 if test -n "$ac_init_help"; then
824 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
825 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
826 --enable-framework=INSTALLDIR Build
(MacOSX|Darwin
) framework
827 --enable-shared disable
/enable building shared python library
828 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
829 --enable-ipv6 Enable ipv6
(with ipv4
) support
830 --disable-ipv6 Disable ipv6 support
831 --enable-unicode=ucs2
,ucs4 Enable Unicode
strings (default is
yes)
834 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
835 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
836 --without-gcc never use gcc
837 --with-cxx=<compiler
> enable C
++ support
838 --with-suffix=.exe
set executable suffix
839 --with-pydebug build with Py_DEBUG defined
840 --with-libs='lib1 ...' link against additional libs
841 --with-signal-module disable
/enable signal module
842 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
843 --with(out
)-threads=DIRECTORY disable
/enable thread support
844 --with(out
)-thread=DIRECTORY deprecated
; use
--with(out
)-threads
845 --with-pth use GNU pth threading libraries
846 --with(out
)-universal-newlines disable
/enable foreign newlines
847 --with(out
)-doc-strings disable
/enable documentation
strings
848 --with(out
)-pymalloc disable
/enable specialized mallocs
849 --with-wctype-functions use wctype.h functions
850 --with-sgi-dl=DIRECTORY IRIX
4 dynamic linking
851 --with-dl-dld=DL_DIR
,DLD_DIR GNU dynamic linking
852 --with-fpectl enable SIGFPE catching
853 --with-libm=STRING math library
854 --with-libc=STRING C library
856 Some influential environment variables
:
857 CC C compiler
command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
860 nonstandard directory
<lib dir
>
861 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
862 headers
in a nonstandard directory
<include dir
>
865 Use these variables to override the choices made by
`configure' or to help
866 it to find libraries and programs with nonstandard names/locations.
871 if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
878 if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
883 ac_dir_suffix= ac_top_builddir=
887 .) # No --srcdir option. We are building in place.
889 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
903 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
904 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
905 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
906 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909 # Check for guested configure; otherwise get Cygnus style configure.
910 if test -f $ac_srcdir/configure.gnu; then
912 $SHELL $ac_srcdir/configure.gnu --help=recursive
913 elif test -f $ac_srcdir/configure; then
915 $SHELL $ac_srcdir/configure --help=recursive
916 elif test -f $ac_srcdir/configure.ac ||
917 test -f $ac_srcdir/configure.in; then
921 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927 test -n "$ac_init_help" && exit 0
928 if $ac_init_version; then
931 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
932 Free Software Foundation, Inc.
933 This configure script is free software; the Free Software Foundation
934 gives unlimited permission to copy, distribute and modify it.
940 This file contains any messages produced by compilers while
941 running configure, to aid debugging if configure makes a mistake.
943 It was created by $as_me, which was
944 generated by GNU Autoconf 2.53. Invocation command line was
955 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
956 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
957 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
958 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
959 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
961 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
962 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
964 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
965 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
966 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
967 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
968 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
969 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
970 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
978 test -z "$as_dir" && as_dir=.
994 # Keep a trace of the command line.
995 # Strip out --no-create and --no-recursion so they do not pile up.
996 # Also quote any args containing shell meta-characters.
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n ) continue ;;
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1008 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1010 case " $ac_configure_args " in
1011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1012 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1015 # Get rid of the leading space.
1018 # When interrupted or exit'd, cleanup temporary files, and complete
1019 # config.log. We remove comments because anyway the quotes in there
1020 # would cause problems or look ugly.
1021 # WARNING: Be sure not to use single quotes in there, as some shells,
1022 # such as our DU 5.0 friend, will then `close
' the trap.
1023 trap 'exit_status
=$?
1024 # Save into config.log some information that might help in debugging.
1028 ## ---------------- ##
1029 ## Cache variables. ##
1030 ## ---------------- ##
1033 # The following way of writing the cache mishandles newlines in values,
1036 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1039 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1049 if test -s confdefs.h
; then
1056 sed "/^$/d" confdefs.h
1059 test "$ac_signal" != 0 &&
1060 echo "$as_me: caught signal $ac_signal"
1061 echo "$as_me: exit $exit_status"
1063 rm -f core core.
* *.core
&&
1064 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1067 for ac_signal in 1 2 13 15; do
1068 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1072 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1073 rm -rf conftest* confdefs.h
1074 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1077 # Predefined preprocessor variables.
1079 cat >>confdefs.h <<_ACEOF
1080 #define PACKAGE_NAME "$PACKAGE_NAME"
1084 cat >>confdefs.h <<_ACEOF
1085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1089 cat >>confdefs.h <<_ACEOF
1090 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1094 cat >>confdefs.h <<_ACEOF
1095 #define PACKAGE_STRING "$PACKAGE_STRING"
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1104 # Let the site file select an alternate cache file if it wants to.
1105 # Prefer explicitly selected file to automatically selected ones.
1106 if test -z "$CONFIG_SITE"; then
1107 if test "x$prefix" != xNONE; then
1108 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1110 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1113 for ac_site_file in $CONFIG_SITE; do
1114 if test -r "$ac_site_file"; then
1115 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1116 echo "$as_me: loading site script $ac_site_file" >&6;}
1117 sed 's
/^
/|
/' "$ac_site_file" >&5
1122 if test -r "$cache_file"; then
1123 # Some versions of bash will fail to source /dev/null (special
1124 # files actually), so we avoid doing that.
1125 if test -f "$cache_file"; then
1126 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1127 echo "$as_me: loading cache $cache_file" >&6;}
1129 [\\/]* | ?:[\\/]* ) . $cache_file;;
1130 *) . ./$cache_file;;
1134 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1135 echo "$as_me: creating cache $cache_file" >&6;}
1139 # Check that the precious variables saved in the cache have kept the same
1141 ac_cache_corrupted=false
1142 for ac_var in `(set) 2>&1 |
1143 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1144 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1145 eval ac_new_set=\$ac_env_${ac_var}_set
1146 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1147 eval ac_new_val="\$ac_env_${ac_var}_value"
1148 case $ac_old_set,$ac_new_set in
1150 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1151 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1152 ac_cache_corrupted=: ;;
1154 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1155 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1156 ac_cache_corrupted=: ;;
1159 if test "x$ac_old_val" != "x$ac_new_val"; then
1160 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1161 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1162 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1163 echo "$as_me: former value: $ac_old_val" >&2;}
1164 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1165 echo "$as_me: current value: $ac_new_val" >&2;}
1166 ac_cache_corrupted=:
1169 # Pass precious variables to config.status.
1170 if test "$ac_new_set" = set; then
1172 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1173 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1174 *) ac_arg=$ac_var=$ac_new_val ;;
1176 case " $ac_configure_args " in
1177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1178 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1182 if $ac_cache_corrupted; then
1183 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1184 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1185 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1186 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1187 { (exit 1); exit 1; }; }
1191 ac_cpp='$CPP $CPPFLAGS'
1192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1193 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1213 ac_config_headers="$ac_config_headers pyconfig.h"
1216 # This is for stuff that absolutely must end up in pyconfig.h.
1217 # Please use pyport.h instead, if possible.
1221 # Set VERSION so we only need to edit in one place (i.e., here)
1228 # The later defininition of _XOPEN_SOURCE disables certain features
1229 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1231 cat >>confdefs.h <<\_ACEOF
1232 #define _GNU_SOURCE 1
1236 # The definition of _GNU_SOURCE potentially causes a change of the value
1237 # of _XOPEN_SOURCE. So define it only conditionally.
1240 cat >>confdefs.h <<\_ACEOF
1241 #define _XOPEN_SOURCE 500
1245 # Arguments passed to configure.
1247 CONFIG_ARGS="$ac_configure_args"
1250 # Check whether --enable-framework or --disable-framework was given.
1251 if test "${enable_framework+set}" = set; then
1252 enableval="$enable_framework"
1256 enableval=/Library/Frameworks
1261 PYTHONFRAMEWORKDIR=no-framework
1262 PYTHONFRAMEWORKPREFIX=
1263 PYTHONFRAMEWORKINSTALLDIR=
1267 PYTHONFRAMEWORK=Python
1268 PYTHONFRAMEWORKDIR=Python.framework
1269 PYTHONFRAMEWORKPREFIX=$enableval
1270 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1271 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1277 PYTHONFRAMEWORKDIR=no-framework
1278 PYTHONFRAMEWORKPREFIX=
1279 PYTHONFRAMEWORKINSTALLDIR=
1289 ##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,)
1291 # Set name for machine-dependent library files
1293 echo "$as_me:$LINENO: checking MACHDEP" >&5
1294 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1295 if test -z "$MACHDEP"
1297 ac_sys_system=`uname -s`
1298 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then
1299 ac_sys_release=`uname -v`
1301 ac_sys_release=`uname -r`
1303 ac_md_system=`echo $ac_sys_system |
1304 tr -d '/ ' | tr '[A-Z
]' '[a-z
]'`
1305 ac_md_release=`echo $ac_sys_release |
1306 tr -d '/ ' | sed 's
/^
[A-Z
]\.
//' | sed 's
/\..
*//'`
1307 MACHDEP="$ac_md_system$ac_md_release"
1310 cygwin*) MACHDEP="cygwin";;
1311 darwin*) MACHDEP="darwin";;
1312 atheos*) MACHDEP="atheos";;
1313 '') MACHDEP="unknown";;
1318 # SGI compilers allow the specification of the both the ABI and the
1319 # ISA on the command line. Depending on the values of these switches,
1320 # different and often incompatable code will be generated.
1322 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1323 # thus supply support for various ABI/ISA combinations. The MACHDEP
1324 # variable is also adjusted.
1327 if test ! -z "$SGI_ABI"
1330 LDFLAGS="$SGI_ABI $LDFLAGS"
1331 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's
/ *//g
'`
1333 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1334 echo "${ECHO_T}$MACHDEP" >&6
1336 # checks for alternative programs
1337 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1338 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1340 # Check whether --with-gcc or --without-gcc was given.
1341 if test "${with_gcc+set}" = set; then
1350 without_gcc=$withval;;
1354 case $ac_sys_system in
1358 case $BE_HOST_CPU in
1362 OPT="-O -export pragma"
1363 LDFLAGS="$LDFLAGS -nodup"
1371 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1372 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1373 { (exit 1); exit 1; }; }
1376 AR="\$(srcdir)/Modules/ar_beos"
1385 echo "$as_me:$LINENO: result: $without_gcc" >&5
1386 echo "${ECHO_T}$without_gcc" >&6
1391 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1392 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1394 # Check whether --with-cxx or --without-cxx was given.
1395 if test "${with_cxx+set}" = set; then
1412 echo "$as_me:$LINENO: result: $with_cxx" >&5
1413 echo "${ECHO_T}$with_cxx" >&6
1415 if test "$with_cxx" = "yes"
1417 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1418 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1419 { (exit 1); exit 1; }; }
1425 if test "$check_cxx" = "yes"
1427 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1429 # Extract the first word of "$ac_prog", so it can be a program name with args.
1430 set dummy $ac_prog; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_CXX+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 if test -n "$CXX"; then
1437 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_CXX="$ac_prog"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456 if test -n "$CXX"; then
1457 echo "$as_me:$LINENO: result: $CXX" >&5
1458 echo "${ECHO_T}$CXX" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1464 test -n "$CXX" && break
1466 test -n "$CXX" || CXX="notfound"
1468 if test "$CXX" = "notfound"
1473 ac_cpp='$CXXCPP $CPPFLAGS'
1474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1475 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1477 cat >conftest.$ac_ext <<_ACEOF
1478 #line $LINENO "configure"
1479 #include "confdefs.h"
1481 #ifdef F77_DUMMY_MAIN
1485 int F77_DUMMY_MAIN() { return 1; }
1495 ac_clean_files_save=$ac_clean_files
1496 ac_clean_files="$ac_clean_files a.out a.exe"
1497 # Try to create an executable without -o first, disregard a.out.
1498 # It will help us diagnose broken compilers, and finding out an intuition
1500 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1501 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1502 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1503 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1504 (eval $ac_link_default) 2>&5
1506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1507 (exit $ac_status); }; then
1508 # Find the output, starting from the most likely. This scheme is
1509 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1512 # Be careful to initialize this variable, since it used to be cached.
1513 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1515 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1516 ls a.out conftest 2>/dev/null;
1517 ls a.* conftest.* 2>/dev/null`; do
1519 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
1520 a.out
) # We found the default executable, but exeext='' is most
1523 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1524 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1531 echo "$as_me: failed program was:" >&5
1532 cat conftest.
$ac_ext >&5
1533 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1534 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1535 { (exit 77); exit 77; }; }
1538 ac_exeext
=$ac_cv_exeext
1539 echo "$as_me:$LINENO: result: $ac_file" >&5
1540 echo "${ECHO_T}$ac_file" >&6
1542 # Check the compiler produces executables we can run. If not, either
1543 # the compiler is broken, or we cross compile.
1544 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1545 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1546 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1547 # If not cross compiling, check that we can run a simple program.
1548 if test "$cross_compiling" != yes; then
1549 if { ac_try
='./$ac_file'
1550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1554 (exit $ac_status); }; }; then
1557 if test "$cross_compiling" = maybe
; then
1560 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1561 If you meant to cross compile, use \`--host'." >&5
1562 echo "$as_me: error: cannot run C++ compiled programs.
1563 If you meant to cross compile, use \`--host'." >&2;}
1564 { (exit 1); exit 1; }; }
1568 echo "$as_me:$LINENO: result: yes" >&5
1569 echo "${ECHO_T}yes" >&6
1571 rm -f a.out a.exe conftest
$ac_cv_exeext
1572 ac_clean_files
=$ac_clean_files_save
1573 # Check the compiler produces executables we can run. If not, either
1574 # the compiler is broken, or we cross compile.
1575 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1576 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1577 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1578 echo "${ECHO_T}$cross_compiling" >&6
1580 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1581 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1583 (eval $ac_link) 2>&5
1585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1586 (exit $ac_status); }; then
1587 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1588 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1589 # work properly (i.e., refer to `conftest.exe'), while it won't with
1591 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1593 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1594 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1601 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1602 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1603 { (exit 1); exit 1; }; }
1606 rm -f conftest
$ac_cv_exeext
1607 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1608 echo "${ECHO_T}$ac_cv_exeext" >&6
1610 rm -f conftest.
$ac_ext
1611 EXEEXT
=$ac_cv_exeext
1615 ac_cpp
='$CPP $CPPFLAGS'
1616 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1617 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1618 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1625 # If the user switches compilers, we can't believe the cache
1626 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1628 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1629 (it is also a good idea to do 'make clean' before compiling)" >&5
1630 echo "$as_me: error: cached CC is different -- throw away $cache_file
1631 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1632 { (exit 1); exit 1; }; }
1636 ac_cpp
='$CPP $CPPFLAGS'
1637 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1640 if test -n "$ac_tool_prefix"; then
1641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1642 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 if test -n "$CC"; then
1649 ac_cv_prog_CC
="$CC" # Let the user override the test.
1651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1655 test -z "$as_dir" && as_dir
=.
1656 for ac_exec_ext
in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1677 if test -z "$ac_cv_prog_CC"; then
1679 # Extract the first word of "gcc", so it can be a program name with args.
1680 set dummy gcc
; ac_word
=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 if test -n "$ac_ct_CC"; then
1687 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir
=.
1694 for ac_exec_ext
in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_ac_ct_CC
="gcc"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1706 if test -n "$ac_ct_CC"; then
1707 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1708 echo "${ECHO_T}$ac_ct_CC" >&6
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1719 if test -z "$CC"; then
1720 if test -n "$ac_tool_prefix"; then
1721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1722 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 if test -n "$CC"; then
1729 ac_cv_prog_CC
="$CC" # Let the user override the test.
1731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir
=.
1736 for ac_exec_ext
in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 if test -n "$CC"; then
1749 echo "$as_me:$LINENO: result: $CC" >&5
1750 echo "${ECHO_T}$CC" >&6
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1757 if test -z "$ac_cv_prog_CC"; then
1759 # Extract the first word of "cc", so it can be a program name with args.
1760 set dummy cc
; ac_word
=$2
1761 echo "$as_me:$LINENO: checking for $ac_word" >&5
1762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 if test -n "$ac_ct_CC"; then
1767 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1773 test -z "$as_dir" && as_dir
=.
1774 for ac_exec_ext
in '' $ac_executable_extensions; do
1775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776 ac_cv_prog_ac_ct_CC
="cc"
1777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1786 if test -n "$ac_ct_CC"; then
1787 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1788 echo "${ECHO_T}$ac_ct_CC" >&6
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1800 if test -z "$CC"; then
1801 # Extract the first word of "cc", so it can be a program name with args.
1802 set dummy cc
; ac_word
=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_CC+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC
="$CC" # Let the user override the test.
1812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1816 test -z "$as_dir" && as_dir
=.
1817 for ac_exec_ext
in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1820 ac_prog_rejected
=yes
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 if test $ac_prog_rejected = yes; then
1831 # We found a bogon in the path, so make sure we never use it.
1832 set dummy
$ac_cv_prog_CC
1834 if test $# != 0; then
1835 # We chose a different compiler from the bogus one.
1836 # However, it has the same basename, so the bogon will be chosen
1837 # first if we set CC to just the basename; use the full file name.
1839 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$CC"; then
1857 if test -n "$ac_tool_prefix"; then
1860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1861 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 if test -n "$CC"; then
1868 ac_cv_prog_CC
="$CC" # Let the user override the test.
1870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1874 test -z "$as_dir" && as_dir
=.
1875 for ac_exec_ext
in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 if test -n "$CC"; then
1888 echo "$as_me:$LINENO: result: $CC" >&5
1889 echo "${ECHO_T}$CC" >&6
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1895 test -n "$CC" && break
1898 if test -z "$CC"; then
1902 # Extract the first word of "$ac_prog", so it can be a program name with args.
1903 set dummy
$ac_prog; ac_word
=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test -n "$ac_ct_CC"; then
1910 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir
=.
1917 for ac_exec_ext
in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_ac_ct_CC
="$ac_prog"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1929 if test -n "$ac_ct_CC"; then
1930 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1931 echo "${ECHO_T}$ac_ct_CC" >&6
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1937 test -n "$ac_ct_CC" && break
1946 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1947 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1948 { (exit 1); exit 1; }; }
1950 # Provide some information about the compiler.
1951 echo "$as_me:$LINENO:" \
1952 "checking for C compiler version" >&5
1953 ac_compiler
=`set X $ac_compile; echo $2`
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1955 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1960 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }
1964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1965 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }
1970 cat >conftest.
$ac_ext <<_ACEOF
1971 #line $LINENO "configure"
1972 #include "confdefs.h"
1974 #ifdef F77_DUMMY_MAIN
1978 int F77_DUMMY_MAIN() { return 1; }
1988 ac_clean_files_save
=$ac_clean_files
1989 ac_clean_files
="$ac_clean_files a.out a.exe"
1990 # Try to create an executable without -o first, disregard a.out.
1991 # It will help us diagnose broken compilers, and finding out an intuition
1993 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1994 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1995 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1996 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1997 (eval $ac_link_default) 2>&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; then
2001 # Find the output, starting from the most likely. This scheme is
2002 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005 # Be careful to initialize this variable, since it used to be cached.
2006 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2008 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2009 ls a.out conftest 2>/dev/null;
2010 ls a.* conftest.* 2>/dev/null`; do
2012 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
2013 a.out
) # We found the default executable, but exeext='' is most
2016 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2017 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2024 echo "$as_me: failed program was:" >&5
2025 cat conftest.
$ac_ext >&5
2026 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2027 echo "$as_me: error: C compiler cannot create executables" >&2;}
2028 { (exit 77); exit 77; }; }
2031 ac_exeext
=$ac_cv_exeext
2032 echo "$as_me:$LINENO: result: $ac_file" >&5
2033 echo "${ECHO_T}$ac_file" >&6
2035 # Check the compiler produces executables we can run. If not, either
2036 # the compiler is broken, or we cross compile.
2037 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2038 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2039 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2040 # If not cross compiling, check that we can run a simple program.
2041 if test "$cross_compiling" != yes; then
2042 if { ac_try
='./$ac_file'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
2050 if test "$cross_compiling" = maybe
; then
2053 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2054 If you meant to cross compile, use \`--host'." >&5
2055 echo "$as_me: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&2;}
2057 { (exit 1); exit 1; }; }
2061 echo "$as_me:$LINENO: result: yes" >&5
2062 echo "${ECHO_T}yes" >&6
2064 rm -f a.out a.exe conftest
$ac_cv_exeext
2065 ac_clean_files
=$ac_clean_files_save
2066 # Check the compiler produces executables we can run. If not, either
2067 # the compiler is broken, or we cross compile.
2068 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2069 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2070 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2071 echo "${ECHO_T}$cross_compiling" >&6
2073 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2074 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2076 (eval $ac_link) 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; then
2080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2082 # work properly (i.e., refer to `conftest.exe'), while it won't with
2084 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2086 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2087 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2094 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2095 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2096 { (exit 1); exit 1; }; }
2099 rm -f conftest
$ac_cv_exeext
2100 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2101 echo "${ECHO_T}$ac_cv_exeext" >&6
2103 rm -f conftest.
$ac_ext
2104 EXEEXT
=$ac_cv_exeext
2106 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2107 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2108 if test "${ac_cv_objext+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 cat >conftest.
$ac_ext <<_ACEOF
2112 #line $LINENO "configure"
2113 #include "confdefs.h"
2115 #ifdef F77_DUMMY_MAIN
2119 int F77_DUMMY_MAIN() { return 1; }
2129 rm -f conftest.o conftest.obj
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; then
2135 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2137 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2138 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2143 echo "$as_me: failed program was:" >&5
2144 cat conftest.
$ac_ext >&5
2145 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2146 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2147 { (exit 1); exit 1; }; }
2150 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2152 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2153 echo "${ECHO_T}$ac_cv_objext" >&6
2154 OBJEXT
=$ac_cv_objext
2156 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2157 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2158 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 cat >conftest.
$ac_ext <<_ACEOF
2162 #line $LINENO "configure"
2163 #include "confdefs.h"
2165 #ifdef F77_DUMMY_MAIN
2169 int F77_DUMMY_MAIN() { return 1; }
2182 rm -f conftest.
$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try
='test -s conftest.$ac_objext'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2196 echo "$as_me: failed program was:" >&5
2197 cat conftest.
$ac_ext >&5
2200 rm -f conftest.
$ac_objext conftest.
$ac_ext
2201 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2204 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2205 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2206 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2207 ac_test_CFLAGS
=${CFLAGS+set}
2208 ac_save_CFLAGS
=$CFLAGS
2210 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2212 if test "${ac_cv_prog_cc_g+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 cat >conftest.
$ac_ext <<_ACEOF
2216 #line $LINENO "configure"
2217 #include "confdefs.h"
2219 #ifdef F77_DUMMY_MAIN
2223 int F77_DUMMY_MAIN() { return 1; }
2233 rm -f conftest.
$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try
='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 echo "$as_me: failed program was:" >&5
2248 cat conftest.
$ac_ext >&5
2251 rm -f conftest.
$ac_objext conftest.
$ac_ext
2253 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2254 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2255 if test "$ac_test_CFLAGS" = set; then
2256 CFLAGS
=$ac_save_CFLAGS
2257 elif test $ac_cv_prog_cc_g = yes; then
2258 if test "$GCC" = yes; then
2264 if test "$GCC" = yes; then
2270 # Some people use a C++ compiler to compile C. Since we use `exit',
2271 # in C++ we need to declare it. In case someone uses the same compiler
2272 # for both compiling C and C++ we need to have the C++ compiler decide
2273 # the declaration of exit, since it's the most demanding environment.
2274 cat >conftest.
$ac_ext <<_ACEOF
2279 rm -f conftest.
$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try
='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 for ac_declaration
in \
2293 '#include <stdlib.h>' \
2294 'extern "C" void std::exit (int) throw (); using std::exit;' \
2295 'extern "C" void std::exit (int); using std::exit;' \
2296 'extern "C" void exit (int) throw ();' \
2297 'extern "C" void exit (int);' \
2300 cat >conftest.
$ac_ext <<_ACEOF
2301 #line $LINENO "configure"
2302 #include "confdefs.h"
2305 #ifdef F77_DUMMY_MAIN
2309 int F77_DUMMY_MAIN() { return 1; }
2319 rm -f conftest.
$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
2325 { ac_try
='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 echo "$as_me: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2337 rm -f conftest.
$ac_objext conftest.
$ac_ext
2338 cat >conftest.
$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2340 #include "confdefs.h"
2342 #ifdef F77_DUMMY_MAIN
2346 int F77_DUMMY_MAIN() { return 1; }
2356 rm -f conftest.
$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try
='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2370 echo "$as_me: failed program was:" >&5
2371 cat conftest.
$ac_ext >&5
2373 rm -f conftest.
$ac_objext conftest.
$ac_ext
2376 if test -n "$ac_declaration"; then
2377 echo '#ifdef __cplusplus' >>confdefs.h
2378 echo $ac_declaration >>confdefs.h
2379 echo '#endif' >>confdefs.h
2383 echo "$as_me: failed program was:" >&5
2384 cat conftest.
$ac_ext >&5
2386 rm -f conftest.
$ac_objext conftest.
$ac_ext
2388 ac_cpp
='$CPP $CPPFLAGS'
2389 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2394 # checks for UNIX variants that set C preprocessor variables
2397 ac_cpp
='$CPP $CPPFLAGS'
2398 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2401 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2402 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2403 # On Suns, sometimes $CPP names a directory.
2404 if test -n "$CPP" && test -d "$CPP"; then
2407 if test -z "$CPP"; then
2408 if test "${ac_cv_prog_CPP+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 # Double quotes because CPP needs to be expanded
2412 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2415 for ac_c_preproc_warn_flag
in '' yes
2417 # Use a header file that comes with gcc, so configuring glibc
2418 # with a fresh cross-compiler works.
2419 # On the NeXT, cc -E runs the code through the compiler's parser,
2420 # not just through cpp. "Syntax error" is here to catch this case.
2421 cat >conftest.
$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2423 #include "confdefs.h"
2427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2428 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2430 egrep -v '^ *\+' conftest.er1
>conftest.err
2432 cat conftest.err
>&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } >/dev
/null
; then
2435 if test -s conftest.err
; then
2436 ac_cpp_err
=$ac_c_preproc_warn_flag
2443 if test -z "$ac_cpp_err"; then
2446 echo "$as_me: failed program was:" >&5
2447 cat conftest.
$ac_ext >&5
2448 # Broken: fails on valid input.
2451 rm -f conftest.err conftest.
$ac_ext
2453 # OK, works on sane cases. Now check whether non-existent headers
2454 # can be detected and how.
2455 cat >conftest.
$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 #include "confdefs.h"
2458 #include <ac_nonexistent.h>
2460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2463 egrep -v '^ *\+' conftest.er1
>conftest.err
2465 cat conftest.err
>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } >/dev
/null
; then
2468 if test -s conftest.err
; then
2469 ac_cpp_err
=$ac_c_preproc_warn_flag
2476 if test -z "$ac_cpp_err"; then
2477 # Broken: success on invalid input.
2480 echo "$as_me: failed program was:" >&5
2481 cat conftest.
$ac_ext >&5
2482 # Passes both tests.
2486 rm -f conftest.err conftest.
$ac_ext
2489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2490 rm -f conftest.err conftest.
$ac_ext
2491 if $ac_preproc_ok; then
2503 echo "$as_me:$LINENO: result: $CPP" >&5
2504 echo "${ECHO_T}$CPP" >&6
2506 for ac_c_preproc_warn_flag
in '' yes
2508 # Use a header file that comes with gcc, so configuring glibc
2509 # with a fresh cross-compiler works.
2510 # On the NeXT, cc -E runs the code through the compiler's parser,
2511 # not just through cpp. "Syntax error" is here to catch this case.
2512 cat >conftest.
$ac_ext <<_ACEOF
2513 #line $LINENO "configure"
2514 #include "confdefs.h"
2518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2521 egrep -v '^ *\+' conftest.er1
>conftest.err
2523 cat conftest.err
>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } >/dev
/null
; then
2526 if test -s conftest.err
; then
2527 ac_cpp_err
=$ac_c_preproc_warn_flag
2534 if test -z "$ac_cpp_err"; then
2537 echo "$as_me: failed program was:" >&5
2538 cat conftest.
$ac_ext >&5
2539 # Broken: fails on valid input.
2542 rm -f conftest.err conftest.
$ac_ext
2544 # OK, works on sane cases. Now check whether non-existent headers
2545 # can be detected and how.
2546 cat >conftest.
$ac_ext <<_ACEOF
2547 #line $LINENO "configure"
2548 #include "confdefs.h"
2549 #include <ac_nonexistent.h>
2551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2552 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2554 egrep -v '^ *\+' conftest.er1
>conftest.err
2556 cat conftest.err
>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } >/dev
/null
; then
2559 if test -s conftest.err
; then
2560 ac_cpp_err
=$ac_c_preproc_warn_flag
2567 if test -z "$ac_cpp_err"; then
2568 # Broken: success on invalid input.
2571 echo "$as_me: failed program was:" >&5
2572 cat conftest.
$ac_ext >&5
2573 # Passes both tests.
2577 rm -f conftest.err conftest.
$ac_ext
2580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2581 rm -f conftest.err conftest.
$ac_ext
2582 if $ac_preproc_ok; then
2585 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2586 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2587 { (exit 1); exit 1; }; }
2591 ac_cpp
='$CPP $CPPFLAGS'
2592 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2598 echo "$as_me:$LINENO: checking for AIX" >&5
2599 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2600 cat >conftest.
$ac_ext <<_ACEOF
2601 #line $LINENO "configure"
2602 #include "confdefs.h"
2608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2609 egrep "yes" >/dev
/null
2>&1; then
2610 echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6
2612 cat >>confdefs.h
<<\_ACEOF
2613 #define _ALL_SOURCE 1
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2623 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2624 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2625 if test "${ac_cv_header_stdc+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 cat >conftest.
$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2630 #include "confdefs.h"
2637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2638 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2640 egrep -v '^ *\+' conftest.er1
>conftest.err
2642 cat conftest.err
>&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } >/dev
/null
; then
2645 if test -s conftest.err
; then
2646 ac_cpp_err
=$ac_c_preproc_warn_flag
2653 if test -z "$ac_cpp_err"; then
2654 ac_cv_header_stdc
=yes
2656 echo "$as_me: failed program was:" >&5
2657 cat conftest.
$ac_ext >&5
2658 ac_cv_header_stdc
=no
2660 rm -f conftest.err conftest.
$ac_ext
2662 if test $ac_cv_header_stdc = yes; then
2663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2664 cat >conftest.
$ac_ext <<_ACEOF
2665 #line $LINENO "configure"
2666 #include "confdefs.h"
2670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2671 egrep "memchr" >/dev
/null
2>&1; then
2674 ac_cv_header_stdc
=no
2680 if test $ac_cv_header_stdc = yes; then
2681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2682 cat >conftest.
$ac_ext <<_ACEOF
2683 #line $LINENO "configure"
2684 #include "confdefs.h"
2688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2689 egrep "free" >/dev
/null
2>&1; then
2692 ac_cv_header_stdc
=no
2698 if test $ac_cv_header_stdc = yes; then
2699 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2700 if test "$cross_compiling" = yes; then
2703 cat >conftest.
$ac_ext <<_ACEOF
2704 #line $LINENO "configure"
2705 #include "confdefs.h"
2707 #if ((' ' & 0x0FF) == 0x020)
2708 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2709 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2711 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2712 || ('j' <= (c) && (c) <= 'r') \
2713 || ('s' <= (c) && (c) <= 'z'))
2714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2722 for (i = 0; i < 256; i++)
2723 if (XOR (islower (i), ISLOWER (i))
2724 || toupper (i) != TOUPPER (i))
2729 rm -f conftest
$ac_exeext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2731 (eval $ac_link) 2>&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2742 echo "$as_me: program exited with status $ac_status" >&5
2743 echo "$as_me: failed program was:" >&5
2744 cat conftest.
$ac_ext >&5
2746 ac_cv_header_stdc
=no
2748 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2752 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2753 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2754 if test $ac_cv_header_stdc = yes; then
2756 cat >>confdefs.h
<<\_ACEOF
2757 #define STDC_HEADERS 1
2762 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2772 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2773 inttypes.h stdint.h unistd.h
2775 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2776 echo "$as_me:$LINENO: checking for $ac_header" >&5
2777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 cat >conftest.
$ac_ext <<_ACEOF
2782 #line $LINENO "configure"
2783 #include "confdefs.h"
2784 $ac_includes_default
2786 #include <$ac_header>
2788 rm -f conftest.
$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try
='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 eval "$as_ac_Header=yes"
2802 echo "$as_me: failed program was:" >&5
2803 cat conftest.
$ac_ext >&5
2804 eval "$as_ac_Header=no"
2806 rm -f conftest.
$ac_objext conftest.
$ac_ext
2808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2811 cat >>confdefs.h
<<_ACEOF
2812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2820 if test "${ac_cv_header_minix_config_h+set}" = set; then
2821 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2822 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2823 if test "${ac_cv_header_minix_config_h+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2827 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2829 # Is the header compilable?
2830 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2831 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2832 cat >conftest.
$ac_ext <<_ACEOF
2833 #line $LINENO "configure"
2834 #include "confdefs.h"
2835 $ac_includes_default
2836 #include <minix/config.h>
2838 rm -f conftest.
$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try
='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 ac_header_compiler
=yes
2852 echo "$as_me: failed program was:" >&5
2853 cat conftest.
$ac_ext >&5
2854 ac_header_compiler
=no
2856 rm -f conftest.
$ac_objext conftest.
$ac_ext
2857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2858 echo "${ECHO_T}$ac_header_compiler" >&6
2860 # Is the header present?
2861 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2862 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2863 cat >conftest.
$ac_ext <<_ACEOF
2864 #line $LINENO "configure"
2865 #include "confdefs.h"
2866 #include <minix/config.h>
2868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2871 egrep -v '^ *\+' conftest.er1
>conftest.err
2873 cat conftest.err
>&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } >/dev
/null
; then
2876 if test -s conftest.err
; then
2877 ac_cpp_err
=$ac_c_preproc_warn_flag
2884 if test -z "$ac_cpp_err"; then
2885 ac_header_preproc
=yes
2887 echo "$as_me: failed program was:" >&5
2888 cat conftest.
$ac_ext >&5
2889 ac_header_preproc
=no
2891 rm -f conftest.err conftest.
$ac_ext
2892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2893 echo "${ECHO_T}$ac_header_preproc" >&6
2895 # So? What about this header?
2896 case $ac_header_compiler:$ac_header_preproc in
2898 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2899 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2900 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2901 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2903 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2904 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2905 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2906 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2907 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2908 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2910 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2911 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2912 if test "${ac_cv_header_minix_config_h+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 ac_cv_header_minix_config_h
=$ac_header_preproc
2917 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2918 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2921 if test $ac_cv_header_minix_config_h = yes; then
2928 if test "$MINIX" = yes; then
2930 cat >>confdefs.h
<<\_ACEOF
2931 #define _POSIX_SOURCE 1
2935 cat >>confdefs.h
<<\_ACEOF
2936 #define _POSIX_1_SOURCE 2
2940 cat >>confdefs.h
<<\_ACEOF
2948 echo "$as_me:$LINENO: checking for --with-suffix" >&5
2949 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
2951 # Check whether --with-suffix or --without-suffix was given.
2952 if test "${with_suffix+set}" = set; then
2953 withval
="$with_suffix"
2958 *) EXEEXT
=$withval;;
2961 echo "$as_me:$LINENO: result: $EXEEXT" >&5
2962 echo "${ECHO_T}$EXEEXT" >&6
2964 # Test whether we're running on a non-case-sensitive system, in which
2965 # case we give a warning if no ext is given
2967 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
2968 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
2969 if test -d "${srcdir}/python"
2971 echo "$as_me:$LINENO: result: yes" >&5
2972 echo "${ECHO_T}yes" >&6
2975 echo "$as_me:$LINENO: result: no" >&5
2976 echo "${ECHO_T}no" >&6
2983 gcc
) CC
="$CC -D_HAVE_BSDI";;
2987 case $ac_sys_system in
2990 cc|
*/cc
) CC
="$CC -Ae";;
2994 cc
) CC
="$CC -Wl,-Bexport";;
2997 # Some functions have a prototype only with that define, e.g. confstr
2999 cat >>confdefs.h
<<\_ACEOF
3000 #define __EXTENSIONS__ 1
3008 echo "$as_me:$LINENO: checking LIBRARY" >&5
3009 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3010 if test -z "$LIBRARY"
3012 LIBRARY
='libpython$(VERSION).a'
3014 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3015 echo "${ECHO_T}$LIBRARY" >&6
3017 # LDLIBRARY is the name of the library to link against (as opposed to the
3018 # name of the library into which to insert object files). BLDLIBRARY is also
3019 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3020 # is blank as the main program is not linked directly against LDLIBRARY.
3021 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3022 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3023 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3024 # DLLLIBRARY is the shared (i.e., DLL) library.
3026 # RUNSHARED is used to run shared python without installed libraries
3028 # INSTSONAME is the name of the shared library that will be use to install
3029 # on the system - some systems like version suffix, others don't
3036 LDLIBRARY
="$LIBRARY"
3037 BLDLIBRARY
='$(LDLIBRARY)'
3038 INSTSONAME
='$(LDLIBRARY)'
3043 # LINKCC is the command that links the python executable -- default is $(CC).
3044 # If CXX is set, and if it is needed to link a main function that was
3045 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3046 # python might then depend on the C++ runtime
3047 # This is altered for AIX in order to build the export list before
3050 echo "$as_me:$LINENO: checking LINKCC" >&5
3051 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3052 if test -z "$LINKCC"
3054 if test -z "$CXX"; then
3055 LINKCC
="\$(PURIFY) \$(CC)"
3057 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
3058 $CXX -c conftest.
$ac_ext 2>&5
3059 if $CC -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
3060 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3062 LINKCC
="\$(PURIFY) \$(CC)"
3064 LINKCC
="\$(PURIFY) \$(CXX)"
3068 case $ac_sys_system in
3070 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";;
3072 LINKCC
="LD_RUN_PATH=$libdir $LINKCC";;
3074 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3077 echo "$as_me:$LINENO: result: $LINKCC" >&5
3078 echo "${ECHO_T}$LINKCC" >&6
3080 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3081 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3082 # Check whether --enable-shared or --disable-shared was given.
3083 if test "${enable_shared+set}" = set; then
3084 enableval
="$enable_shared"
3088 if test -z "$enable_shared"
3090 case $ac_sys_system in
3092 enable_shared
="yes";;
3094 enable_shared
="no";;
3097 echo "$as_me:$LINENO: result: $enable_shared" >&5
3098 echo "${ECHO_T}$enable_shared" >&6
3101 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3102 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3104 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3105 # library that we build, but we do not want to link against it (we
3106 # will find it with a -framework option). For this reason there is an
3107 # extra variable BLDLIBRARY against which Python and the extension
3108 # modules are linked, BLDLIBRARY. This is normally the same as
3109 # LDLIBRARY, but empty for MacOSX framework builds.
3110 if test "$enable_framework"
3112 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3113 LDLIBRARYDIR
='$(PYTHONFRAMEWORKDIR)'
3116 BLDLIBRARY
='$(LDLIBRARY)'
3119 # Other platforms follow
3120 if test $enable_shared = "yes"; then
3122 cat >>confdefs.h
<<\_ACEOF
3123 #define Py_ENABLE_SHARED 1
3126 case $ac_sys_system in
3128 LDLIBRARY
='libpython$(VERSION).so'
3131 LDLIBRARY
='libpython$(VERSION).dll.a'
3132 DLLLIBRARY
='libpython$(VERSION).dll'
3135 LDLIBRARY
='libpython$(VERSION).so'
3136 BLDLIBRARY
='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)'
3137 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3140 LDLIBRARY
='libpython$(VERSION).so'
3141 BLDLIBRARY
='-L. -lpython$(VERSION)'
3142 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3143 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3146 LDLIBRARY
='libpython$(VERSION).sl'
3147 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3148 RUNSHARED
=SHLIB_PATH
=`pwd`:$SHLIB_PATH
3151 LDLIBRARY
='libpython$(VERSION).so'
3152 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3153 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3156 LDLIBRARY
='libpython$(VERSION).so'
3157 BLDLIBRARY
='-L. -lpython$(VERSION)'
3158 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3161 # DG/UX requires some fancy ld contortions to produce a .so from an .a
3164 LDLIBRARY
='libpython$(VERSION).so'
3170 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3171 echo "${ECHO_T}$LDLIBRARY" >&6
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3175 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_RANLIB+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -n "$RANLIB"; then
3182 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir
=.
3189 for ac_exec_ext
in '' $ac_executable_extensions; do
3190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 RANLIB
=$ac_cv_prog_RANLIB
3201 if test -n "$RANLIB"; then
3202 echo "$as_me:$LINENO: result: $RANLIB" >&5
3203 echo "${ECHO_T}$RANLIB" >&6
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3210 if test -z "$ac_cv_prog_RANLIB"; then
3211 ac_ct_RANLIB
=$RANLIB
3212 # Extract the first word of "ranlib", so it can be a program name with args.
3213 set dummy ranlib
; ac_word
=$2
3214 echo "$as_me:$LINENO: checking for $ac_word" >&5
3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 if test -n "$ac_ct_RANLIB"; then
3220 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir
=.
3227 for ac_exec_ext
in '' $ac_executable_extensions; do
3228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3239 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3240 if test -n "$ac_ct_RANLIB"; then
3241 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3242 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3244 echo "$as_me:$LINENO: result: no" >&5
3245 echo "${ECHO_T}no" >&6
3248 RANLIB
=$ac_ct_RANLIB
3250 RANLIB
="$ac_cv_prog_RANLIB"
3254 for ac_prog
in ar aal
3256 # Extract the first word of "$ac_prog", so it can be a program name with args.
3257 set dummy
$ac_prog; ac_word
=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_AR+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 if test -n "$AR"; then
3264 ac_cv_prog_AR
="$AR" # Let the user override the test.
3266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir
=.
3271 for ac_exec_ext
in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_AR
="$ac_prog"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 if test -n "$AR"; then
3284 echo "$as_me:$LINENO: result: $AR" >&5
3285 echo "${ECHO_T}$AR" >&6
3287 echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6
3291 test -n "$AR" && break
3293 test -n "$AR" || AR
="ar"
3298 # install -d does not work on BSDI or HP-UX
3299 if test -z "$INSTALL"
3301 INSTALL
="${srcdir}/install-sh -c"
3305 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3306 if test -f $ac_dir/install-sh
; then
3308 ac_install_sh
="$ac_aux_dir/install-sh -c"
3310 elif test -f $ac_dir/install.sh
; then
3312 ac_install_sh
="$ac_aux_dir/install.sh -c"
3314 elif test -f $ac_dir/shtool
; then
3316 ac_install_sh
="$ac_aux_dir/shtool install -c"
3320 if test -z "$ac_aux_dir"; then
3321 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3322 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3323 { (exit 1); exit 1; }; }
3325 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3326 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3327 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3329 # Find a good install program. We prefer a C program (faster),
3330 # so one script is as good as another. But avoid the broken or
3331 # incompatible versions:
3332 # SysV /etc/install, /usr/sbin/install
3333 # SunOS /usr/etc/install
3334 # IRIX /sbin/install
3336 # AmigaOS /C/install, which installs bootblocks on floppy discs
3337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340 # ./install, which can be erroneously created by make from ./install.sh.
3341 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3342 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3343 if test -z "$INSTALL"; then
3344 if test "${ac_cv_path_install+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir
=.
3352 # Account for people who put trailing slashes in PATH elements.
3354 .
/ | .
// |
/cC
/* | \
3355 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3358 # OSF1 and SCO ODT 3.0 have their own names for install.
3359 # Don't use installbsd from OSF since it installs stuff as root
3361 for ac_prog
in ginstall scoinst
install; do
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3364 if test $ac_prog = install &&
3365 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3366 # AIX install. It has an incompatible calling convention.
3368 elif test $ac_prog = install &&
3369 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3370 # program-specific install script used by HP pwplus--don't use.
3373 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3385 if test "${ac_cv_path_install+set}" = set; then
3386 INSTALL
=$ac_cv_path_install
3388 # As a last resort, use the slow shell script. We don't cache a
3389 # path for INSTALL within a source directory, because that will
3390 # break other packages using the cache if that directory is
3391 # removed, or if the path is relative.
3392 INSTALL
=$ac_install_sh
3395 echo "$as_me:$LINENO: result: $INSTALL" >&5
3396 echo "${ECHO_T}$INSTALL" >&6
3398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3399 # It thinks the first close brace ends the variable substitution.
3400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3404 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3407 # Not every filesystem supports hard links
3409 if test -z "$LN" ; then
3410 case $ac_sys_system in
3412 CYGWIN
*) LN
="ln -s";;
3413 atheos
*) LN
="ln -s";;
3418 # Check for --with-pydebug
3419 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3420 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3422 # Check whether --with-pydebug or --without-pydebug was given.
3423 if test "${with_pydebug+set}" = set; then
3424 withval
="$with_pydebug"
3426 if test "$withval" != no
3429 cat >>confdefs.h
<<\_ACEOF
3433 echo "$as_me:$LINENO: result: yes" >&5
3434 echo "${ECHO_T}yes" >&6;
3436 else echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3440 echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3444 # Optimizer/debugger flags
3450 case $ac_cv_prog_cc_g in
3452 if test "$Py_DEBUG" = 'true' ; then
3453 # Optimization messes up debuggers, so turn it off for
3455 OPT
="-g -Wall -Wstrict-prototypes"
3457 OPT
="-g -O3 -Wall -Wstrict-prototypes"
3460 OPT
="-O3 -Wall -Wstrict-prototypes";;
3464 case $ac_sys_system in
3465 OpenUNIX
*|UnixWare
*)
3466 OPT
="-O -K pentium,host,inline,loop_unroll,alloca ";;
3471 case $ac_sys_system in
3473 OPT
="$OPT -Wno-long-double -no-cpp-precomp";;
3477 if test "$Py_DEBUG" = 'true'; then
3483 # The current (beta) Monterey compiler dies with optimizations
3484 case $ac_sys_system in
3488 if test "$ac_arch_flags"
3490 OPT
="$OPT $ac_arch_flags"
3493 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3494 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3495 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 CC
="$CC -OPT:Olimit=0"
3500 if test "$cross_compiling" = yes; then
3501 ac_cv_opt_olimit_ok
=no
3503 cat >conftest.
$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 #include "confdefs.h"
3506 int main() { return 0; }
3508 rm -f conftest
$ac_exeext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3510 (eval $ac_link) 2>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 ac_cv_opt_olimit_ok
=yes
3521 echo "$as_me: program exited with status $ac_status" >&5
3522 echo "$as_me: failed program was:" >&5
3523 cat conftest.
$ac_ext >&5
3525 ac_cv_opt_olimit_ok
=no
3527 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3532 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3533 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3534 if test $ac_cv_opt_olimit_ok = yes; then
3535 case $ac_sys_system in
3536 Darwin
*) OPT
="$OPT" ;;
3537 *) OPT
="$OPT -OPT:Olimit=0";;
3540 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3541 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3542 if test "${ac_cv_olimit_ok+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 CC
="$CC -Olimit 1500"
3547 if test "$cross_compiling" = yes; then
3550 cat >conftest.
$ac_ext <<_ACEOF
3551 #line $LINENO "configure"
3552 #include "confdefs.h"
3553 int main() { return 0; }
3555 rm -f conftest
$ac_exeext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3557 (eval $ac_link) 2>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3568 echo "$as_me: program exited with status $ac_status" >&5
3569 echo "$as_me: failed program was:" >&5
3570 cat conftest.
$ac_ext >&5
3574 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3579 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
3580 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
3581 if test $ac_cv_olimit_ok = yes; then
3582 OPT
="$OPT -Olimit 1500"
3586 # On some compilers, pthreads are available without further options
3587 # (e.g. MacOS X). On some of these systems, the compiler will not
3588 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
3589 # So we have to see first whether pthreads are available without
3590 # options before we can check whether -Kpthread improves anything.
3591 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
3592 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
3593 if test "${ac_cv_pthread_is_default+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test "$cross_compiling" = yes; then
3597 ac_cv_pthread_is_default
=no
3599 cat >conftest.
$ac_ext <<_ACEOF
3600 #line $LINENO "configure"
3601 #include "confdefs.h"
3603 #include <pthread.h>
3605 void* routine(void* p){return NULL;}
3609 if(pthread_create(&p,NULL,routine,NULL)!=0)
3611 (void)pthread_detach(p);
3616 rm -f conftest
$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618 (eval $ac_link) 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_pthread_is_default
=yes
3629 echo "$as_me: program exited with status $ac_status" >&5
3630 echo "$as_me: failed program was:" >&5
3631 cat conftest.
$ac_ext >&5
3633 ac_cv_pthread_is_default
=no
3635 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3640 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
3641 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
3644 if test $ac_cv_pthread_is_default = yes
3648 # -Kpthread, if available, provides the right #defines
3649 # and linker options to make pthread_create available
3650 # Some compilers won't report that they do not support -Kpthread,
3651 # so we need to run a program to see whether it really made the
3652 # function available.
3653 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
3654 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
3655 if test "${ac_cv_kpthread+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 if test "$cross_compiling" = yes; then
3663 cat >conftest.
$ac_ext <<_ACEOF
3664 #line $LINENO "configure"
3665 #include "confdefs.h"
3667 #include <pthread.h>
3669 void* routine(void* p){return NULL;}
3673 if(pthread_create(&p,NULL,routine,NULL)!=0)
3675 (void)pthread_detach(p);
3680 rm -f conftest
$ac_exeext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3682 (eval $ac_link) 2>&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3693 echo "$as_me: program exited with status $ac_status" >&5
3694 echo "$as_me: failed program was:" >&5
3695 cat conftest.
$ac_ext >&5
3699 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3704 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
3705 echo "${ECHO_T}$ac_cv_kpthread" >&6
3709 # checks for header files
3710 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3711 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3712 if test "${ac_cv_header_stdc+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 cat >conftest.
$ac_ext <<_ACEOF
3716 #line $LINENO "configure"
3717 #include "confdefs.h"
3724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3725 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3727 egrep -v '^ *\+' conftest.er1
>conftest.err
3729 cat conftest.err
>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev
/null
; then
3732 if test -s conftest.err
; then
3733 ac_cpp_err
=$ac_c_preproc_warn_flag
3740 if test -z "$ac_cpp_err"; then
3741 ac_cv_header_stdc
=yes
3743 echo "$as_me: failed program was:" >&5
3744 cat conftest.
$ac_ext >&5
3745 ac_cv_header_stdc
=no
3747 rm -f conftest.err conftest.
$ac_ext
3749 if test $ac_cv_header_stdc = yes; then
3750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3751 cat >conftest.
$ac_ext <<_ACEOF
3752 #line $LINENO "configure"
3753 #include "confdefs.h"
3757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3758 egrep "memchr" >/dev
/null
2>&1; then
3761 ac_cv_header_stdc
=no
3767 if test $ac_cv_header_stdc = yes; then
3768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3769 cat >conftest.
$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3771 #include "confdefs.h"
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 egrep "free" >/dev
/null
2>&1; then
3779 ac_cv_header_stdc
=no
3785 if test $ac_cv_header_stdc = yes; then
3786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3787 if test "$cross_compiling" = yes; then
3790 cat >conftest.
$ac_ext <<_ACEOF
3791 #line $LINENO "configure"
3792 #include "confdefs.h"
3794 #if ((' ' & 0x0FF) == 0x020)
3795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3798 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3799 || ('j' <= (c) && (c) <= 'r') \
3800 || ('s' <= (c) && (c) <= 'z'))
3801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3809 for (i = 0; i < 256; i++)
3810 if (XOR (islower (i), ISLOWER (i))
3811 || toupper (i) != TOUPPER (i))
3816 rm -f conftest
$ac_exeext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818 (eval $ac_link) 2>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3829 echo "$as_me: program exited with status $ac_status" >&5
3830 echo "$as_me: failed program was:" >&5
3831 cat conftest.
$ac_ext >&5
3833 ac_cv_header_stdc
=no
3835 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3839 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3840 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3841 if test $ac_cv_header_stdc = yes; then
3843 cat >>confdefs.h
<<\_ACEOF
3844 #define STDC_HEADERS 1
3886 for ac_header
in dlfcn.h fcntl.h grp.h limits.h langinfo.h \
3887 libintl.h locale.h ncurses.h poll.h pthread.h \
3888 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
3889 sys
/audioio.h sys
/file.h sys
/lock.h sys
/mkdev.h sys
/modem.h \
3890 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
3891 sys
/un.h sys
/utsname.h sys
/wait.h pty.h term.h libutil.h \
3892 sys
/resource.h netpacket
/packet.h
3894 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3896 echo "$as_me:$LINENO: checking for $ac_header" >&5
3897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3904 # Is the header compilable?
3905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3907 cat >conftest.
$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 #include "confdefs.h"
3910 $ac_includes_default
3911 #include <$ac_header>
3913 rm -f conftest.
$ac_objext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3915 (eval $ac_compile) 2>&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } &&
3919 { ac_try
='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 ac_header_compiler
=yes
3927 echo "$as_me: failed program was:" >&5
3928 cat conftest.
$ac_ext >&5
3929 ac_header_compiler
=no
3931 rm -f conftest.
$ac_objext conftest.
$ac_ext
3932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3933 echo "${ECHO_T}$ac_header_compiler" >&6
3935 # Is the header present?
3936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3938 cat >conftest.
$ac_ext <<_ACEOF
3939 #line $LINENO "configure"
3940 #include "confdefs.h"
3941 #include <$ac_header>
3943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3944 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3946 egrep -v '^ *\+' conftest.er1
>conftest.err
3948 cat conftest.err
>&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } >/dev
/null
; then
3951 if test -s conftest.err
; then
3952 ac_cpp_err
=$ac_c_preproc_warn_flag
3959 if test -z "$ac_cpp_err"; then
3960 ac_header_preproc
=yes
3962 echo "$as_me: failed program was:" >&5
3963 cat conftest.
$ac_ext >&5
3964 ac_header_preproc
=no
3966 rm -f conftest.err conftest.
$ac_ext
3967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3968 echo "${ECHO_T}$ac_header_preproc" >&6
3970 # So? What about this header?
3971 case $ac_header_compiler:$ac_header_preproc in
3973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3985 echo "$as_me:$LINENO: checking for $ac_header" >&5
3986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 eval "$as_ac_Header=$ac_header_preproc"
3992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3997 cat >>confdefs.h
<<_ACEOF
3998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4011 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4012 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4013 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4014 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 cat >conftest.
$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4021 #include <sys/types.h>
4024 #ifdef F77_DUMMY_MAIN
4028 int F77_DUMMY_MAIN() { return 1; }
4039 rm -f conftest.
$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try
='test -s conftest.$ac_objext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 eval "$as_ac_Header=yes"
4053 echo "$as_me: failed program was:" >&5
4054 cat conftest.
$ac_ext >&5
4055 eval "$as_ac_Header=no"
4057 rm -f conftest.
$ac_objext conftest.
$ac_ext
4059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4062 cat >>confdefs.h
<<_ACEOF
4063 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4066 ac_header_dirent
=$ac_hdr; break
4070 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4071 if test $ac_header_dirent = dirent.h
; then
4072 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4073 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4074 if test "${ac_cv_search_opendir+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 ac_func_search_save_LIBS
=$LIBS
4078 ac_cv_search_opendir
=no
4079 cat >conftest.
$ac_ext <<_ACEOF
4080 #line $LINENO "configure"
4081 #include "confdefs.h"
4083 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4090 #ifdef F77_DUMMY_MAIN
4094 int F77_DUMMY_MAIN() { return 1; }
4104 rm -f conftest.
$ac_objext conftest
$ac_exeext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4106 (eval $ac_link) 2>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try
='test -s conftest$ac_exeext'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; }; then
4116 ac_cv_search_opendir
="none required"
4118 echo "$as_me: failed program was:" >&5
4119 cat conftest.
$ac_ext >&5
4121 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4122 if test "$ac_cv_search_opendir" = no
; then
4123 for ac_lib
in dir
; do
4124 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4125 cat >conftest.
$ac_ext <<_ACEOF
4126 #line $LINENO "configure"
4127 #include "confdefs.h"
4129 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4136 #ifdef F77_DUMMY_MAIN
4140 int F77_DUMMY_MAIN() { return 1; }
4150 rm -f conftest.
$ac_objext conftest
$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try
='test -s conftest$ac_exeext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_cv_search_opendir
="-l$ac_lib"
4165 echo "$as_me: failed program was:" >&5
4166 cat conftest.
$ac_ext >&5
4168 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4171 LIBS
=$ac_func_search_save_LIBS
4173 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4174 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4175 if test "$ac_cv_search_opendir" != no
; then
4176 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4181 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4182 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4183 if test "${ac_cv_search_opendir+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 ac_func_search_save_LIBS
=$LIBS
4187 ac_cv_search_opendir
=no
4188 cat >conftest.
$ac_ext <<_ACEOF
4189 #line $LINENO "configure"
4190 #include "confdefs.h"
4192 /* Override any gcc2 internal prototype to avoid an error. */
4196 /* We use char because int might match the return type of a gcc2
4197 builtin and then its argument prototype would still apply. */
4199 #ifdef F77_DUMMY_MAIN
4203 int F77_DUMMY_MAIN() { return 1; }
4213 rm -f conftest.
$ac_objext conftest
$ac_exeext
4214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4215 (eval $ac_link) 2>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try
='test -s conftest$ac_exeext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 ac_cv_search_opendir
="none required"
4227 echo "$as_me: failed program was:" >&5
4228 cat conftest.
$ac_ext >&5
4230 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4231 if test "$ac_cv_search_opendir" = no
; then
4233 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4234 cat >conftest.
$ac_ext <<_ACEOF
4235 #line $LINENO "configure"
4236 #include "confdefs.h"
4238 /* Override any gcc2 internal prototype to avoid an error. */
4242 /* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4245 #ifdef F77_DUMMY_MAIN
4249 int F77_DUMMY_MAIN() { return 1; }
4259 rm -f conftest.
$ac_objext conftest
$ac_exeext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4261 (eval $ac_link) 2>&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try
='test -s conftest$ac_exeext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_cv_search_opendir
="-l$ac_lib"
4274 echo "$as_me: failed program was:" >&5
4275 cat conftest.
$ac_ext >&5
4277 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4280 LIBS
=$ac_func_search_save_LIBS
4282 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4283 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4284 if test "$ac_cv_search_opendir" != no
; then
4285 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4292 # checks for typedefs
4294 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
4295 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
4296 cat >conftest.
$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 #include "confdefs.h"
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 egrep "clock_t" >/dev
/null
2>&1; then
4308 cat >>confdefs.h
<<\_ACEOF
4309 #define clock_t long
4316 echo "$as_me:$LINENO: result: $was_it_defined" >&5
4317 echo "${ECHO_T}$was_it_defined" >&6
4319 # Check whether using makedev requires defining _OSF_SOURCE
4320 echo "$as_me:$LINENO: checking for makedev" >&5
4321 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
4322 cat >conftest.
$ac_ext <<_ACEOF
4323 #line $LINENO "configure"
4324 #include "confdefs.h"
4325 #include <sys/types.h>
4326 #ifdef F77_DUMMY_MAIN
4330 int F77_DUMMY_MAIN() { return 1; }
4340 rm -f conftest.
$ac_objext conftest
$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try
='test -s conftest$ac_exeext'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_has_makedev
=yes
4354 echo "$as_me: failed program was:" >&5
4355 cat conftest.
$ac_ext >&5
4356 ac_cv_has_makedev
=no
4358 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4359 if test "$ac_cv_has_makedev" = "no"; then
4360 # we didn't link, try if _OSF_SOURCE will allow us to link
4361 cat >conftest.
$ac_ext <<_ACEOF
4362 #line $LINENO "configure"
4363 #include "confdefs.h"
4365 #define _OSF_SOURCE 1
4366 #include <sys/types.h>
4368 #ifdef F77_DUMMY_MAIN
4372 int F77_DUMMY_MAIN() { return 1; }
4382 rm -f conftest.
$ac_objext conftest
$ac_exeext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4384 (eval $ac_link) 2>&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try
='test -s conftest$ac_exeext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_has_makedev
=yes
4396 echo "$as_me: failed program was:" >&5
4397 cat conftest.
$ac_ext >&5
4398 ac_cv_has_makedev
=no
4400 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4401 if test "$ac_cv_has_makedev" = "yes"; then
4403 cat >>confdefs.h
<<\_ACEOF
4404 #define _OSF_SOURCE 1
4409 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
4410 echo "${ECHO_T}$ac_cv_has_makedev" >&6
4411 if test "$ac_cv_has_makedev" = "yes"; then
4413 cat >>confdefs.h
<<\_ACEOF
4414 #define HAVE_MAKEDEV 1
4419 # Two defines needed to enable largefile support on various platforms
4420 # These may affect some typedefs
4422 cat >>confdefs.h
<<\_ACEOF
4423 #define _LARGEFILE_SOURCE 1
4427 cat >>confdefs.h
<<\_ACEOF
4428 #define _FILE_OFFSET_BITS 64
4432 # Add some code to confdefs.h so that the test for off_t works on SCO
4433 cat >> confdefs.h
<<\EOF
4439 # Type availability checks
4440 echo "$as_me:$LINENO: checking for mode_t" >&5
4441 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4442 if test "${ac_cv_type_mode_t+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 cat >conftest.
$ac_ext <<_ACEOF
4446 #line $LINENO "configure"
4447 #include "confdefs.h"
4448 $ac_includes_default
4449 #ifdef F77_DUMMY_MAIN
4453 int F77_DUMMY_MAIN() { return 1; }
4460 if (sizeof (mode_t))
4466 rm -f conftest.
$ac_objext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try
='test -s conftest.$ac_objext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 ac_cv_type_mode_t
=yes
4480 echo "$as_me: failed program was:" >&5
4481 cat conftest.
$ac_ext >&5
4482 ac_cv_type_mode_t
=no
4484 rm -f conftest.
$ac_objext conftest.
$ac_ext
4486 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4487 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4488 if test $ac_cv_type_mode_t = yes; then
4492 cat >>confdefs.h
<<_ACEOF
4498 echo "$as_me:$LINENO: checking for off_t" >&5
4499 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4500 if test "${ac_cv_type_off_t+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 cat >conftest.
$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 #include "confdefs.h"
4506 $ac_includes_default
4507 #ifdef F77_DUMMY_MAIN
4511 int F77_DUMMY_MAIN() { return 1; }
4524 rm -f conftest.
$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try
='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 ac_cv_type_off_t
=yes
4538 echo "$as_me: failed program was:" >&5
4539 cat conftest.
$ac_ext >&5
4542 rm -f conftest.
$ac_objext conftest.
$ac_ext
4544 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4545 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4546 if test $ac_cv_type_off_t = yes; then
4550 cat >>confdefs.h
<<_ACEOF
4556 echo "$as_me:$LINENO: checking for pid_t" >&5
4557 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4558 if test "${ac_cv_type_pid_t+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 cat >conftest.
$ac_ext <<_ACEOF
4562 #line $LINENO "configure"
4563 #include "confdefs.h"
4564 $ac_includes_default
4565 #ifdef F77_DUMMY_MAIN
4569 int F77_DUMMY_MAIN() { return 1; }
4582 rm -f conftest.
$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try
='test -s conftest.$ac_objext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 ac_cv_type_pid_t
=yes
4596 echo "$as_me: failed program was:" >&5
4597 cat conftest.
$ac_ext >&5
4600 rm -f conftest.
$ac_objext conftest.
$ac_ext
4602 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4603 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4604 if test $ac_cv_type_pid_t = yes; then
4608 cat >>confdefs.h
<<_ACEOF
4614 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4615 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4616 if test "${ac_cv_type_signal+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 cat >conftest.
$ac_ext <<_ACEOF
4620 #line $LINENO "configure"
4621 #include "confdefs.h"
4622 #include <sys/types.h>
4628 extern "C" void (*signal (int, void (*)(int)))(int);
4630 void (*signal ()) ();
4633 #ifdef F77_DUMMY_MAIN
4637 int F77_DUMMY_MAIN() { return 1; }
4647 rm -f conftest.
$ac_objext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649 (eval $ac_compile) 2>&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try
='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_type_signal
=void
4661 echo "$as_me: failed program was:" >&5
4662 cat conftest.
$ac_ext >&5
4663 ac_cv_type_signal
=int
4665 rm -f conftest.
$ac_objext conftest.
$ac_ext
4667 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4668 echo "${ECHO_T}$ac_cv_type_signal" >&6
4670 cat >>confdefs.h
<<_ACEOF
4671 #define RETSIGTYPE $ac_cv_type_signal
4675 echo "$as_me:$LINENO: checking for size_t" >&5
4676 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4677 if test "${ac_cv_type_size_t+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 cat >conftest.
$ac_ext <<_ACEOF
4681 #line $LINENO "configure"
4682 #include "confdefs.h"
4683 $ac_includes_default
4684 #ifdef F77_DUMMY_MAIN
4688 int F77_DUMMY_MAIN() { return 1; }
4695 if (sizeof (size_t))
4701 rm -f conftest.
$ac_objext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try
='test -s conftest.$ac_objext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 ac_cv_type_size_t
=yes
4715 echo "$as_me: failed program was:" >&5
4716 cat conftest.
$ac_ext >&5
4717 ac_cv_type_size_t
=no
4719 rm -f conftest.
$ac_objext conftest.
$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4722 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4723 if test $ac_cv_type_size_t = yes; then
4727 cat >>confdefs.h
<<_ACEOF
4728 #define size_t unsigned
4733 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4734 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4735 if test "${ac_cv_type_uid_t+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 cat >conftest.
$ac_ext <<_ACEOF
4739 #line $LINENO "configure"
4740 #include "confdefs.h"
4741 #include <sys/types.h>
4744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4745 egrep "uid_t" >/dev
/null
2>&1; then
4746 ac_cv_type_uid_t
=yes
4753 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4754 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4755 if test $ac_cv_type_uid_t = no
; then
4757 cat >>confdefs.h
<<\_ACEOF
4762 cat >>confdefs.h
<<\_ACEOF
4769 # Sizes of various common basic types
4770 echo "$as_me:$LINENO: checking for int" >&5
4771 echo $ECHO_N "checking for int... $ECHO_C" >&6
4772 if test "${ac_cv_type_int+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 cat >conftest.
$ac_ext <<_ACEOF
4776 #line $LINENO "configure"
4777 #include "confdefs.h"
4778 $ac_includes_default
4779 #ifdef F77_DUMMY_MAIN
4783 int F77_DUMMY_MAIN() { return 1; }
4796 rm -f conftest.
$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try
='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4810 echo "$as_me: failed program was:" >&5
4811 cat conftest.
$ac_ext >&5
4814 rm -f conftest.
$ac_objext conftest.
$ac_ext
4816 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4817 echo "${ECHO_T}$ac_cv_type_int" >&6
4819 echo "$as_me:$LINENO: checking size of int" >&5
4820 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4821 if test "${ac_cv_sizeof_int+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 if test "$ac_cv_type_int" = yes; then
4825 # The cast to unsigned long works around a bug in the HP C Compiler
4826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4828 # This bug is HP SR number 8606223364.
4829 if test "$cross_compiling" = yes; then
4830 # Depending upon the size, compute the lo and hi bounds.
4831 cat >conftest.
$ac_ext <<_ACEOF
4832 #line $LINENO "configure"
4833 #include "confdefs.h"
4834 $ac_includes_default
4835 #ifdef F77_DUMMY_MAIN
4839 int F77_DUMMY_MAIN() { return 1; }
4844 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4851 rm -f conftest.
$ac_objext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try
='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4865 cat >conftest.
$ac_ext <<_ACEOF
4866 #line $LINENO "configure"
4867 #include "confdefs.h"
4868 $ac_includes_default
4869 #ifdef F77_DUMMY_MAIN
4873 int F77_DUMMY_MAIN() { return 1; }
4878 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4885 rm -f conftest.
$ac_objext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887 (eval $ac_compile) 2>&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try
='test -s conftest.$ac_objext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_hi
=$ac_mid; break
4899 echo "$as_me: failed program was:" >&5
4900 cat conftest.
$ac_ext >&5
4901 ac_lo
=`expr $ac_mid + 1`
4902 if test $ac_lo -le $ac_mid; then
4906 ac_mid
=`expr 2 '*' $ac_mid + 1`
4908 rm -f conftest.
$ac_objext conftest.
$ac_ext
4911 echo "$as_me: failed program was:" >&5
4912 cat conftest.
$ac_ext >&5
4913 cat >conftest.
$ac_ext <<_ACEOF
4914 #line $LINENO "configure"
4915 #include "confdefs.h"
4916 $ac_includes_default
4917 #ifdef F77_DUMMY_MAIN
4921 int F77_DUMMY_MAIN() { return 1; }
4926 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4933 rm -f conftest.
$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try
='test -s conftest.$ac_objext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4947 cat >conftest.
$ac_ext <<_ACEOF
4948 #line $LINENO "configure"
4949 #include "confdefs.h"
4950 $ac_includes_default
4951 #ifdef F77_DUMMY_MAIN
4955 int F77_DUMMY_MAIN() { return 1; }
4960 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4967 rm -f conftest.
$ac_objext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4969 (eval $ac_compile) 2>&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try
='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 ac_lo
=$ac_mid; break
4981 echo "$as_me: failed program was:" >&5
4982 cat conftest.
$ac_ext >&5
4983 ac_hi
=`expr '(' $ac_mid ')' - 1`
4984 if test $ac_mid -le $ac_hi; then
4988 ac_mid
=`expr 2 '*' $ac_mid`
4990 rm -f conftest.
$ac_objext conftest.
$ac_ext
4993 echo "$as_me: failed program was:" >&5
4994 cat conftest.
$ac_ext >&5
4997 rm -f conftest.
$ac_objext conftest.
$ac_ext
4999 rm -f conftest.
$ac_objext conftest.
$ac_ext
5000 # Binary search between lo and hi bounds.
5001 while test "x$ac_lo" != "x$ac_hi"; do
5002 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5003 cat >conftest.
$ac_ext <<_ACEOF
5004 #line $LINENO "configure"
5005 #include "confdefs.h"
5006 $ac_includes_default
5007 #ifdef F77_DUMMY_MAIN
5011 int F77_DUMMY_MAIN() { return 1; }
5016 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5023 rm -f conftest.
$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try
='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5037 echo "$as_me: failed program was:" >&5
5038 cat conftest.
$ac_ext >&5
5039 ac_lo
=`expr '(' $ac_mid ')' + 1`
5041 rm -f conftest.
$ac_objext conftest.
$ac_ext
5044 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5045 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5046 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5050 if test "$cross_compiling" = yes; then
5051 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5052 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5053 { (exit 1); exit 1; }; }
5055 cat >conftest.
$ac_ext <<_ACEOF
5056 #line $LINENO "configure"
5057 #include "confdefs.h"
5058 $ac_includes_default
5059 long longval () { return (long) (sizeof (int)); }
5060 unsigned long ulongval () { return (long) (sizeof (int)); }
5063 #ifdef F77_DUMMY_MAIN
5067 int F77_DUMMY_MAIN() { return 1; }
5073 FILE *f = fopen ("conftest.val", "w");
5076 if (((long) (sizeof (int))) < 0)
5078 long i = longval ();
5079 if (i != ((long) (sizeof (int))))
5081 fprintf (f, "%ld\n", i);
5085 unsigned long i = ulongval ();
5086 if (i != ((long) (sizeof (int))))
5088 fprintf (f, "%lu\n", i);
5090 exit (ferror (f) || fclose (f) != 0);
5096 rm -f conftest
$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 ac_cv_sizeof_int
=`cat conftest.val`
5109 echo "$as_me: program exited with status $ac_status" >&5
5110 echo "$as_me: failed program was:" >&5
5111 cat conftest.
$ac_ext >&5
5113 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5114 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5115 { (exit 1); exit 1; }; }
5117 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5125 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5126 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5127 cat >>confdefs.h
<<_ACEOF
5128 #define SIZEOF_INT $ac_cv_sizeof_int
5132 echo "$as_me:$LINENO: checking for long" >&5
5133 echo $ECHO_N "checking for long... $ECHO_C" >&6
5134 if test "${ac_cv_type_long+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 cat >conftest.
$ac_ext <<_ACEOF
5138 #line $LINENO "configure"
5139 #include "confdefs.h"
5140 $ac_includes_default
5141 #ifdef F77_DUMMY_MAIN
5145 int F77_DUMMY_MAIN() { return 1; }
5158 rm -f conftest.
$ac_objext
5159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160 (eval $ac_compile) 2>&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } &&
5164 { ac_try
='test -s conftest.$ac_objext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5172 echo "$as_me: failed program was:" >&5
5173 cat conftest.
$ac_ext >&5
5176 rm -f conftest.
$ac_objext conftest.
$ac_ext
5178 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5179 echo "${ECHO_T}$ac_cv_type_long" >&6
5181 echo "$as_me:$LINENO: checking size of long" >&5
5182 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5183 if test "${ac_cv_sizeof_long+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 if test "$ac_cv_type_long" = yes; then
5187 # The cast to unsigned long works around a bug in the HP C Compiler
5188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5190 # This bug is HP SR number 8606223364.
5191 if test "$cross_compiling" = yes; then
5192 # Depending upon the size, compute the lo and hi bounds.
5193 cat >conftest.
$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5195 #include "confdefs.h"
5196 $ac_includes_default
5197 #ifdef F77_DUMMY_MAIN
5201 int F77_DUMMY_MAIN() { return 1; }
5206 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5213 rm -f conftest.
$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try
='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5227 cat >conftest.
$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5229 #include "confdefs.h"
5230 $ac_includes_default
5231 #ifdef F77_DUMMY_MAIN
5235 int F77_DUMMY_MAIN() { return 1; }
5240 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5247 rm -f conftest.
$ac_objext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249 (eval $ac_compile) 2>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try
='test -s conftest.$ac_objext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 ac_hi
=$ac_mid; break
5261 echo "$as_me: failed program was:" >&5
5262 cat conftest.
$ac_ext >&5
5263 ac_lo
=`expr $ac_mid + 1`
5264 if test $ac_lo -le $ac_mid; then
5268 ac_mid
=`expr 2 '*' $ac_mid + 1`
5270 rm -f conftest.
$ac_objext conftest.
$ac_ext
5273 echo "$as_me: failed program was:" >&5
5274 cat conftest.
$ac_ext >&5
5275 cat >conftest.
$ac_ext <<_ACEOF
5276 #line $LINENO "configure"
5277 #include "confdefs.h"
5278 $ac_includes_default
5279 #ifdef F77_DUMMY_MAIN
5283 int F77_DUMMY_MAIN() { return 1; }
5288 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5295 rm -f conftest.
$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297 (eval $ac_compile) 2>&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try
='test -s conftest.$ac_objext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5309 cat >conftest.
$ac_ext <<_ACEOF
5310 #line $LINENO "configure"
5311 #include "confdefs.h"
5312 $ac_includes_default
5313 #ifdef F77_DUMMY_MAIN
5317 int F77_DUMMY_MAIN() { return 1; }
5322 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5329 rm -f conftest.
$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try
='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_lo
=$ac_mid; break
5343 echo "$as_me: failed program was:" >&5
5344 cat conftest.
$ac_ext >&5
5345 ac_hi
=`expr '(' $ac_mid ')' - 1`
5346 if test $ac_mid -le $ac_hi; then
5350 ac_mid
=`expr 2 '*' $ac_mid`
5352 rm -f conftest.
$ac_objext conftest.
$ac_ext
5355 echo "$as_me: failed program was:" >&5
5356 cat conftest.
$ac_ext >&5
5359 rm -f conftest.
$ac_objext conftest.
$ac_ext
5361 rm -f conftest.
$ac_objext conftest.
$ac_ext
5362 # Binary search between lo and hi bounds.
5363 while test "x$ac_lo" != "x$ac_hi"; do
5364 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5365 cat >conftest.
$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 #include "confdefs.h"
5368 $ac_includes_default
5369 #ifdef F77_DUMMY_MAIN
5373 int F77_DUMMY_MAIN() { return 1; }
5378 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5385 rm -f conftest.
$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try
='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5399 echo "$as_me: failed program was:" >&5
5400 cat conftest.
$ac_ext >&5
5401 ac_lo
=`expr '(' $ac_mid ')' + 1`
5403 rm -f conftest.
$ac_objext conftest.
$ac_ext
5406 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5408 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5409 { (exit 1); exit 1; }; } ;;
5412 if test "$cross_compiling" = yes; then
5413 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5414 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5415 { (exit 1); exit 1; }; }
5417 cat >conftest.
$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5419 #include "confdefs.h"
5420 $ac_includes_default
5421 long longval () { return (long) (sizeof (long)); }
5422 unsigned long ulongval () { return (long) (sizeof (long)); }
5425 #ifdef F77_DUMMY_MAIN
5429 int F77_DUMMY_MAIN() { return 1; }
5435 FILE *f = fopen ("conftest.val", "w");
5438 if (((long) (sizeof (long))) < 0)
5440 long i = longval ();
5441 if (i != ((long) (sizeof (long))))
5443 fprintf (f, "%ld\n", i);
5447 unsigned long i = ulongval ();
5448 if (i != ((long) (sizeof (long))))
5450 fprintf (f, "%lu\n", i);
5452 exit (ferror (f) || fclose (f) != 0);
5458 rm -f conftest
$ac_exeext
5459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5460 (eval $ac_link) 2>&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5469 ac_cv_sizeof_long
=`cat conftest.val`
5471 echo "$as_me: program exited with status $ac_status" >&5
5472 echo "$as_me: failed program was:" >&5
5473 cat conftest.
$ac_ext >&5
5475 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5476 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5477 { (exit 1); exit 1; }; }
5479 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5488 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5489 cat >>confdefs.h
<<_ACEOF
5490 #define SIZEOF_LONG $ac_cv_sizeof_long
5494 echo "$as_me:$LINENO: checking for void *" >&5
5495 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5496 if test "${ac_cv_type_void_p+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 cat >conftest.
$ac_ext <<_ACEOF
5500 #line $LINENO "configure"
5501 #include "confdefs.h"
5502 $ac_includes_default
5503 #ifdef F77_DUMMY_MAIN
5507 int F77_DUMMY_MAIN() { return 1; }
5514 if (sizeof (void *))
5520 rm -f conftest.
$ac_objext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522 (eval $ac_compile) 2>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } &&
5526 { ac_try
='test -s conftest.$ac_objext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_cv_type_void_p
=yes
5534 echo "$as_me: failed program was:" >&5
5535 cat conftest.
$ac_ext >&5
5536 ac_cv_type_void_p
=no
5538 rm -f conftest.
$ac_objext conftest.
$ac_ext
5540 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5541 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5543 echo "$as_me:$LINENO: checking size of void *" >&5
5544 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5545 if test "${ac_cv_sizeof_void_p+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 if test "$ac_cv_type_void_p" = yes; then
5549 # The cast to unsigned long works around a bug in the HP C Compiler
5550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5552 # This bug is HP SR number 8606223364.
5553 if test "$cross_compiling" = yes; then
5554 # Depending upon the size, compute the lo and hi bounds.
5555 cat >conftest.
$ac_ext <<_ACEOF
5556 #line $LINENO "configure"
5557 #include "confdefs.h"
5558 $ac_includes_default
5559 #ifdef F77_DUMMY_MAIN
5563 int F77_DUMMY_MAIN() { return 1; }
5568 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5575 rm -f conftest.
$ac_objext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try
='test -s conftest.$ac_objext'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; }; then
5589 cat >conftest.
$ac_ext <<_ACEOF
5590 #line $LINENO "configure"
5591 #include "confdefs.h"
5592 $ac_includes_default
5593 #ifdef F77_DUMMY_MAIN
5597 int F77_DUMMY_MAIN() { return 1; }
5602 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5609 rm -f conftest.
$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try
='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_hi
=$ac_mid; break
5623 echo "$as_me: failed program was:" >&5
5624 cat conftest.
$ac_ext >&5
5625 ac_lo
=`expr $ac_mid + 1`
5626 if test $ac_lo -le $ac_mid; then
5630 ac_mid
=`expr 2 '*' $ac_mid + 1`
5632 rm -f conftest.
$ac_objext conftest.
$ac_ext
5635 echo "$as_me: failed program was:" >&5
5636 cat conftest.
$ac_ext >&5
5637 cat >conftest.
$ac_ext <<_ACEOF
5638 #line $LINENO "configure"
5639 #include "confdefs.h"
5640 $ac_includes_default
5641 #ifdef F77_DUMMY_MAIN
5645 int F77_DUMMY_MAIN() { return 1; }
5650 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5657 rm -f conftest.
$ac_objext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5659 (eval $ac_compile) 2>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try
='test -s conftest.$ac_objext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5671 cat >conftest.
$ac_ext <<_ACEOF
5672 #line $LINENO "configure"
5673 #include "confdefs.h"
5674 $ac_includes_default
5675 #ifdef F77_DUMMY_MAIN
5679 int F77_DUMMY_MAIN() { return 1; }
5684 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5691 rm -f conftest.
$ac_objext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693 (eval $ac_compile) 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try
='test -s conftest.$ac_objext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_lo
=$ac_mid; break
5705 echo "$as_me: failed program was:" >&5
5706 cat conftest.
$ac_ext >&5
5707 ac_hi
=`expr '(' $ac_mid ')' - 1`
5708 if test $ac_mid -le $ac_hi; then
5712 ac_mid
=`expr 2 '*' $ac_mid`
5714 rm -f conftest.
$ac_objext conftest.
$ac_ext
5717 echo "$as_me: failed program was:" >&5
5718 cat conftest.
$ac_ext >&5
5721 rm -f conftest.
$ac_objext conftest.
$ac_ext
5723 rm -f conftest.
$ac_objext conftest.
$ac_ext
5724 # Binary search between lo and hi bounds.
5725 while test "x$ac_lo" != "x$ac_hi"; do
5726 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5727 cat >conftest.
$ac_ext <<_ACEOF
5728 #line $LINENO "configure"
5729 #include "confdefs.h"
5730 $ac_includes_default
5731 #ifdef F77_DUMMY_MAIN
5735 int F77_DUMMY_MAIN() { return 1; }
5740 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5747 rm -f conftest.
$ac_objext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try
='test -s conftest.$ac_objext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5761 echo "$as_me: failed program was:" >&5
5762 cat conftest.
$ac_ext >&5
5763 ac_lo
=`expr '(' $ac_mid ')' + 1`
5765 rm -f conftest.
$ac_objext conftest.
$ac_ext
5768 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
5769 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
5770 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
5771 { (exit 1); exit 1; }; } ;;
5774 if test "$cross_compiling" = yes; then
5775 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5776 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5777 { (exit 1); exit 1; }; }
5779 cat >conftest.
$ac_ext <<_ACEOF
5780 #line $LINENO "configure"
5781 #include "confdefs.h"
5782 $ac_includes_default
5783 long longval () { return (long) (sizeof (void *)); }
5784 unsigned long ulongval () { return (long) (sizeof (void *)); }
5787 #ifdef F77_DUMMY_MAIN
5791 int F77_DUMMY_MAIN() { return 1; }
5797 FILE *f = fopen ("conftest.val", "w");
5800 if (((long) (sizeof (void *))) < 0)
5802 long i = longval ();
5803 if (i != ((long) (sizeof (void *))))
5805 fprintf (f, "%ld\n", i);
5809 unsigned long i = ulongval ();
5810 if (i != ((long) (sizeof (void *))))
5812 fprintf (f, "%lu\n", i);
5814 exit (ferror (f) || fclose (f) != 0);
5820 rm -f conftest
$ac_exeext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5822 (eval $ac_link) 2>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 ac_cv_sizeof_void_p
=`cat conftest.val`
5833 echo "$as_me: program exited with status $ac_status" >&5
5834 echo "$as_me: failed program was:" >&5
5835 cat conftest.
$ac_ext >&5
5837 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
5838 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
5839 { (exit 1); exit 1; }; }
5841 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5846 ac_cv_sizeof_void_p
=0
5849 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5850 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5851 cat >>confdefs.h
<<_ACEOF
5852 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5856 echo "$as_me:$LINENO: checking for char" >&5
5857 echo $ECHO_N "checking for char... $ECHO_C" >&6
5858 if test "${ac_cv_type_char+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 cat >conftest.
$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5863 #include "confdefs.h"
5864 $ac_includes_default
5865 #ifdef F77_DUMMY_MAIN
5869 int F77_DUMMY_MAIN() { return 1; }
5882 rm -f conftest.
$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try
='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5896 echo "$as_me: failed program was:" >&5
5897 cat conftest.
$ac_ext >&5
5900 rm -f conftest.
$ac_objext conftest.
$ac_ext
5902 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5903 echo "${ECHO_T}$ac_cv_type_char" >&6
5905 echo "$as_me:$LINENO: checking size of char" >&5
5906 echo $ECHO_N "checking size of char... $ECHO_C" >&6
5907 if test "${ac_cv_sizeof_char+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 if test "$ac_cv_type_char" = yes; then
5911 # The cast to unsigned long works around a bug in the HP C Compiler
5912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5914 # This bug is HP SR number 8606223364.
5915 if test "$cross_compiling" = yes; then
5916 # Depending upon the size, compute the lo and hi bounds.
5917 cat >conftest.
$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5919 #include "confdefs.h"
5920 $ac_includes_default
5921 #ifdef F77_DUMMY_MAIN
5925 int F77_DUMMY_MAIN() { return 1; }
5930 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5937 rm -f conftest.
$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try
='test -s conftest.$ac_objext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5951 cat >conftest.
$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5953 #include "confdefs.h"
5954 $ac_includes_default
5955 #ifdef F77_DUMMY_MAIN
5959 int F77_DUMMY_MAIN() { return 1; }
5964 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5971 rm -f conftest.
$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try
='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_hi
=$ac_mid; break
5985 echo "$as_me: failed program was:" >&5
5986 cat conftest.
$ac_ext >&5
5987 ac_lo
=`expr $ac_mid + 1`
5988 if test $ac_lo -le $ac_mid; then
5992 ac_mid
=`expr 2 '*' $ac_mid + 1`
5994 rm -f conftest.
$ac_objext conftest.
$ac_ext
5997 echo "$as_me: failed program was:" >&5
5998 cat conftest.
$ac_ext >&5
5999 cat >conftest.
$ac_ext <<_ACEOF
6000 #line $LINENO "configure"
6001 #include "confdefs.h"
6002 $ac_includes_default
6003 #ifdef F77_DUMMY_MAIN
6007 int F77_DUMMY_MAIN() { return 1; }
6012 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6019 rm -f conftest.
$ac_objext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021 (eval $ac_compile) 2>&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } &&
6025 { ac_try
='test -s conftest.$ac_objext'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6033 cat >conftest.
$ac_ext <<_ACEOF
6034 #line $LINENO "configure"
6035 #include "confdefs.h"
6036 $ac_includes_default
6037 #ifdef F77_DUMMY_MAIN
6041 int F77_DUMMY_MAIN() { return 1; }
6046 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6053 rm -f conftest.
$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try
='test -s conftest.$ac_objext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_lo
=$ac_mid; break
6067 echo "$as_me: failed program was:" >&5
6068 cat conftest.
$ac_ext >&5
6069 ac_hi
=`expr '(' $ac_mid ')' - 1`
6070 if test $ac_mid -le $ac_hi; then
6074 ac_mid
=`expr 2 '*' $ac_mid`
6076 rm -f conftest.
$ac_objext conftest.
$ac_ext
6079 echo "$as_me: failed program was:" >&5
6080 cat conftest.
$ac_ext >&5
6083 rm -f conftest.
$ac_objext conftest.
$ac_ext
6085 rm -f conftest.
$ac_objext conftest.
$ac_ext
6086 # Binary search between lo and hi bounds.
6087 while test "x$ac_lo" != "x$ac_hi"; do
6088 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6089 cat >conftest.
$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6091 #include "confdefs.h"
6092 $ac_includes_default
6093 #ifdef F77_DUMMY_MAIN
6097 int F77_DUMMY_MAIN() { return 1; }
6102 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6109 rm -f conftest.
$ac_objext
6110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111 (eval $ac_compile) 2>&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } &&
6115 { ac_try
='test -s conftest.$ac_objext'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6123 echo "$as_me: failed program was:" >&5
6124 cat conftest.
$ac_ext >&5
6125 ac_lo
=`expr '(' $ac_mid ')' + 1`
6127 rm -f conftest.
$ac_objext conftest.
$ac_ext
6130 ?
*) ac_cv_sizeof_char
=$ac_lo;;
6131 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6132 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6133 { (exit 1); exit 1; }; } ;;
6136 if test "$cross_compiling" = yes; then
6137 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6138 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6139 { (exit 1); exit 1; }; }
6141 cat >conftest.
$ac_ext <<_ACEOF
6142 #line $LINENO "configure"
6143 #include "confdefs.h"
6144 $ac_includes_default
6145 long longval () { return (long) (sizeof (char)); }
6146 unsigned long ulongval () { return (long) (sizeof (char)); }
6149 #ifdef F77_DUMMY_MAIN
6153 int F77_DUMMY_MAIN() { return 1; }
6159 FILE *f = fopen ("conftest.val", "w");
6162 if (((long) (sizeof (char))) < 0)
6164 long i = longval ();
6165 if (i != ((long) (sizeof (char))))
6167 fprintf (f, "%ld\n", i);
6171 unsigned long i = ulongval ();
6172 if (i != ((long) (sizeof (char))))
6174 fprintf (f, "%lu\n", i);
6176 exit (ferror (f) || fclose (f) != 0);
6182 rm -f conftest
$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184 (eval $ac_link) 2>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_sizeof_char
=`cat conftest.val`
6195 echo "$as_me: program exited with status $ac_status" >&5
6196 echo "$as_me: failed program was:" >&5
6197 cat conftest.
$ac_ext >&5
6199 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6200 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6201 { (exit 1); exit 1; }; }
6203 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6211 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6212 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6213 cat >>confdefs.h
<<_ACEOF
6214 #define SIZEOF_CHAR $ac_cv_sizeof_char
6218 echo "$as_me:$LINENO: checking for short" >&5
6219 echo $ECHO_N "checking for short... $ECHO_C" >&6
6220 if test "${ac_cv_type_short+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 cat >conftest.
$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6225 #include "confdefs.h"
6226 $ac_includes_default
6227 #ifdef F77_DUMMY_MAIN
6231 int F77_DUMMY_MAIN() { return 1; }
6244 rm -f conftest.
$ac_objext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try
='test -s conftest.$ac_objext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 ac_cv_type_short
=yes
6258 echo "$as_me: failed program was:" >&5
6259 cat conftest.
$ac_ext >&5
6262 rm -f conftest.
$ac_objext conftest.
$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6265 echo "${ECHO_T}$ac_cv_type_short" >&6
6267 echo "$as_me:$LINENO: checking size of short" >&5
6268 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6269 if test "${ac_cv_sizeof_short+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 if test "$ac_cv_type_short" = yes; then
6273 # The cast to unsigned long works around a bug in the HP C Compiler
6274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6276 # This bug is HP SR number 8606223364.
6277 if test "$cross_compiling" = yes; then
6278 # Depending upon the size, compute the lo and hi bounds.
6279 cat >conftest.
$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 #include "confdefs.h"
6282 $ac_includes_default
6283 #ifdef F77_DUMMY_MAIN
6287 int F77_DUMMY_MAIN() { return 1; }
6292 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6299 rm -f conftest.
$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try
='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6313 cat >conftest.
$ac_ext <<_ACEOF
6314 #line $LINENO "configure"
6315 #include "confdefs.h"
6316 $ac_includes_default
6317 #ifdef F77_DUMMY_MAIN
6321 int F77_DUMMY_MAIN() { return 1; }
6326 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6333 rm -f conftest.
$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try
='test -s conftest.$ac_objext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6345 ac_hi
=$ac_mid; break
6347 echo "$as_me: failed program was:" >&5
6348 cat conftest.
$ac_ext >&5
6349 ac_lo
=`expr $ac_mid + 1`
6350 if test $ac_lo -le $ac_mid; then
6354 ac_mid
=`expr 2 '*' $ac_mid + 1`
6356 rm -f conftest.
$ac_objext conftest.
$ac_ext
6359 echo "$as_me: failed program was:" >&5
6360 cat conftest.
$ac_ext >&5
6361 cat >conftest.
$ac_ext <<_ACEOF
6362 #line $LINENO "configure"
6363 #include "confdefs.h"
6364 $ac_includes_default
6365 #ifdef F77_DUMMY_MAIN
6369 int F77_DUMMY_MAIN() { return 1; }
6374 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6381 rm -f conftest.
$ac_objext
6382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6383 (eval $ac_compile) 2>&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try
='test -s conftest.$ac_objext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6395 cat >conftest.
$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6397 #include "confdefs.h"
6398 $ac_includes_default
6399 #ifdef F77_DUMMY_MAIN
6403 int F77_DUMMY_MAIN() { return 1; }
6408 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6415 rm -f conftest.
$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try
='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_lo
=$ac_mid; break
6429 echo "$as_me: failed program was:" >&5
6430 cat conftest.
$ac_ext >&5
6431 ac_hi
=`expr '(' $ac_mid ')' - 1`
6432 if test $ac_mid -le $ac_hi; then
6436 ac_mid
=`expr 2 '*' $ac_mid`
6438 rm -f conftest.
$ac_objext conftest.
$ac_ext
6441 echo "$as_me: failed program was:" >&5
6442 cat conftest.
$ac_ext >&5
6445 rm -f conftest.
$ac_objext conftest.
$ac_ext
6447 rm -f conftest.
$ac_objext conftest.
$ac_ext
6448 # Binary search between lo and hi bounds.
6449 while test "x$ac_lo" != "x$ac_hi"; do
6450 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6451 cat >conftest.
$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 #include "confdefs.h"
6454 $ac_includes_default
6455 #ifdef F77_DUMMY_MAIN
6459 int F77_DUMMY_MAIN() { return 1; }
6464 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6471 rm -f conftest.
$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473 (eval $ac_compile) 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try
='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.
$ac_ext >&5
6487 ac_lo
=`expr '(' $ac_mid ')' + 1`
6489 rm -f conftest.
$ac_objext conftest.
$ac_ext
6492 ?
*) ac_cv_sizeof_short
=$ac_lo;;
6493 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
6494 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
6495 { (exit 1); exit 1; }; } ;;
6498 if test "$cross_compiling" = yes; then
6499 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6500 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6501 { (exit 1); exit 1; }; }
6503 cat >conftest.
$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
6505 #include "confdefs.h"
6506 $ac_includes_default
6507 long longval () { return (long) (sizeof (short)); }
6508 unsigned long ulongval () { return (long) (sizeof (short)); }
6511 #ifdef F77_DUMMY_MAIN
6515 int F77_DUMMY_MAIN() { return 1; }
6521 FILE *f = fopen ("conftest.val", "w");
6524 if (((long) (sizeof (short))) < 0)
6526 long i = longval ();
6527 if (i != ((long) (sizeof (short))))
6529 fprintf (f, "%ld\n", i);
6533 unsigned long i = ulongval ();
6534 if (i != ((long) (sizeof (short))))
6536 fprintf (f, "%lu\n", i);
6538 exit (ferror (f) || fclose (f) != 0);
6544 rm -f conftest
$ac_exeext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6555 ac_cv_sizeof_short
=`cat conftest.val`
6557 echo "$as_me: program exited with status $ac_status" >&5
6558 echo "$as_me: failed program was:" >&5
6559 cat conftest.
$ac_ext >&5
6561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
6562 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
6563 { (exit 1); exit 1; }; }
6565 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6570 ac_cv_sizeof_short
=0
6573 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6574 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6575 cat >>confdefs.h
<<_ACEOF
6576 #define SIZEOF_SHORT $ac_cv_sizeof_short
6580 echo "$as_me:$LINENO: checking for float" >&5
6581 echo $ECHO_N "checking for float... $ECHO_C" >&6
6582 if test "${ac_cv_type_float+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 cat >conftest.
$ac_ext <<_ACEOF
6586 #line $LINENO "configure"
6587 #include "confdefs.h"
6588 $ac_includes_default
6589 #ifdef F77_DUMMY_MAIN
6593 int F77_DUMMY_MAIN() { return 1; }
6606 rm -f conftest.
$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try
='test -s conftest.$ac_objext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 ac_cv_type_float
=yes
6620 echo "$as_me: failed program was:" >&5
6621 cat conftest.
$ac_ext >&5
6624 rm -f conftest.
$ac_objext conftest.
$ac_ext
6626 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
6627 echo "${ECHO_T}$ac_cv_type_float" >&6
6629 echo "$as_me:$LINENO: checking size of float" >&5
6630 echo $ECHO_N "checking size of float... $ECHO_C" >&6
6631 if test "${ac_cv_sizeof_float+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 if test "$ac_cv_type_float" = yes; then
6635 # The cast to unsigned long works around a bug in the HP C Compiler
6636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6638 # This bug is HP SR number 8606223364.
6639 if test "$cross_compiling" = yes; then
6640 # Depending upon the size, compute the lo and hi bounds.
6641 cat >conftest.
$ac_ext <<_ACEOF
6642 #line $LINENO "configure"
6643 #include "confdefs.h"
6644 $ac_includes_default
6645 #ifdef F77_DUMMY_MAIN
6649 int F77_DUMMY_MAIN() { return 1; }
6654 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
6661 rm -f conftest.
$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try
='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6675 cat >conftest.
$ac_ext <<_ACEOF
6676 #line $LINENO "configure"
6677 #include "confdefs.h"
6678 $ac_includes_default
6679 #ifdef F77_DUMMY_MAIN
6683 int F77_DUMMY_MAIN() { return 1; }
6688 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
6695 rm -f conftest.
$ac_objext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697 (eval $ac_compile) 2>&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try
='test -s conftest.$ac_objext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_hi
=$ac_mid; break
6709 echo "$as_me: failed program was:" >&5
6710 cat conftest.
$ac_ext >&5
6711 ac_lo
=`expr $ac_mid + 1`
6712 if test $ac_lo -le $ac_mid; then
6716 ac_mid
=`expr 2 '*' $ac_mid + 1`
6718 rm -f conftest.
$ac_objext conftest.
$ac_ext
6721 echo "$as_me: failed program was:" >&5
6722 cat conftest.
$ac_ext >&5
6723 cat >conftest.
$ac_ext <<_ACEOF
6724 #line $LINENO "configure"
6725 #include "confdefs.h"
6726 $ac_includes_default
6727 #ifdef F77_DUMMY_MAIN
6731 int F77_DUMMY_MAIN() { return 1; }
6736 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
6743 rm -f conftest.
$ac_objext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6745 (eval $ac_compile) 2>&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try
='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6757 cat >conftest.
$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6759 #include "confdefs.h"
6760 $ac_includes_default
6761 #ifdef F77_DUMMY_MAIN
6765 int F77_DUMMY_MAIN() { return 1; }
6770 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
6777 rm -f conftest.
$ac_objext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779 (eval $ac_compile) 2>&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } &&
6783 { ac_try
='test -s conftest.$ac_objext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_lo
=$ac_mid; break
6791 echo "$as_me: failed program was:" >&5
6792 cat conftest.
$ac_ext >&5
6793 ac_hi
=`expr '(' $ac_mid ')' - 1`
6794 if test $ac_mid -le $ac_hi; then
6798 ac_mid
=`expr 2 '*' $ac_mid`
6800 rm -f conftest.
$ac_objext conftest.
$ac_ext
6803 echo "$as_me: failed program was:" >&5
6804 cat conftest.
$ac_ext >&5
6807 rm -f conftest.
$ac_objext conftest.
$ac_ext
6809 rm -f conftest.
$ac_objext conftest.
$ac_ext
6810 # Binary search between lo and hi bounds.
6811 while test "x$ac_lo" != "x$ac_hi"; do
6812 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6813 cat >conftest.
$ac_ext <<_ACEOF
6814 #line $LINENO "configure"
6815 #include "confdefs.h"
6816 $ac_includes_default
6817 #ifdef F77_DUMMY_MAIN
6821 int F77_DUMMY_MAIN() { return 1; }
6826 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
6833 rm -f conftest.
$ac_objext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835 (eval $ac_compile) 2>&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try
='test -s conftest.$ac_objext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6847 echo "$as_me: failed program was:" >&5
6848 cat conftest.
$ac_ext >&5
6849 ac_lo
=`expr '(' $ac_mid ')' + 1`
6851 rm -f conftest.
$ac_objext conftest.
$ac_ext
6854 ?
*) ac_cv_sizeof_float
=$ac_lo;;
6855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
6856 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
6857 { (exit 1); exit 1; }; } ;;
6860 if test "$cross_compiling" = yes; then
6861 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6862 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6863 { (exit 1); exit 1; }; }
6865 cat >conftest.
$ac_ext <<_ACEOF
6866 #line $LINENO "configure"
6867 #include "confdefs.h"
6868 $ac_includes_default
6869 long longval () { return (long) (sizeof (float)); }
6870 unsigned long ulongval () { return (long) (sizeof (float)); }
6873 #ifdef F77_DUMMY_MAIN
6877 int F77_DUMMY_MAIN() { return 1; }
6883 FILE *f = fopen ("conftest.val", "w");
6886 if (((long) (sizeof (float))) < 0)
6888 long i = longval ();
6889 if (i != ((long) (sizeof (float))))
6891 fprintf (f, "%ld\n", i);
6895 unsigned long i = ulongval ();
6896 if (i != ((long) (sizeof (float))))
6898 fprintf (f, "%lu\n", i);
6900 exit (ferror (f) || fclose (f) != 0);
6906 rm -f conftest
$ac_exeext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908 (eval $ac_link) 2>&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_cv_sizeof_float
=`cat conftest.val`
6919 echo "$as_me: program exited with status $ac_status" >&5
6920 echo "$as_me: failed program was:" >&5
6921 cat conftest.
$ac_ext >&5
6923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
6924 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
6925 { (exit 1); exit 1; }; }
6927 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6932 ac_cv_sizeof_float
=0
6935 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
6936 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
6937 cat >>confdefs.h
<<_ACEOF
6938 #define SIZEOF_FLOAT $ac_cv_sizeof_float
6942 echo "$as_me:$LINENO: checking for double" >&5
6943 echo $ECHO_N "checking for double... $ECHO_C" >&6
6944 if test "${ac_cv_type_double+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 cat >conftest.
$ac_ext <<_ACEOF
6948 #line $LINENO "configure"
6949 #include "confdefs.h"
6950 $ac_includes_default
6951 #ifdef F77_DUMMY_MAIN
6955 int F77_DUMMY_MAIN() { return 1; }
6962 if (sizeof (double))
6968 rm -f conftest.
$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try
='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_cv_type_double
=yes
6982 echo "$as_me: failed program was:" >&5
6983 cat conftest.
$ac_ext >&5
6984 ac_cv_type_double
=no
6986 rm -f conftest.
$ac_objext conftest.
$ac_ext
6988 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6989 echo "${ECHO_T}$ac_cv_type_double" >&6
6991 echo "$as_me:$LINENO: checking size of double" >&5
6992 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6993 if test "${ac_cv_sizeof_double+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 if test "$ac_cv_type_double" = yes; then
6997 # The cast to unsigned long works around a bug in the HP C Compiler
6998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7000 # This bug is HP SR number 8606223364.
7001 if test "$cross_compiling" = yes; then
7002 # Depending upon the size, compute the lo and hi bounds.
7003 cat >conftest.
$ac_ext <<_ACEOF
7004 #line $LINENO "configure"
7005 #include "confdefs.h"
7006 $ac_includes_default
7007 #ifdef F77_DUMMY_MAIN
7011 int F77_DUMMY_MAIN() { return 1; }
7016 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
7023 rm -f conftest.
$ac_objext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7025 (eval $ac_compile) 2>&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try
='test -s conftest.$ac_objext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7037 cat >conftest.
$ac_ext <<_ACEOF
7038 #line $LINENO "configure"
7039 #include "confdefs.h"
7040 $ac_includes_default
7041 #ifdef F77_DUMMY_MAIN
7045 int F77_DUMMY_MAIN() { return 1; }
7050 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7057 rm -f conftest.
$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try
='test -s conftest.$ac_objext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 ac_hi
=$ac_mid; break
7071 echo "$as_me: failed program was:" >&5
7072 cat conftest.
$ac_ext >&5
7073 ac_lo
=`expr $ac_mid + 1`
7074 if test $ac_lo -le $ac_mid; then
7078 ac_mid
=`expr 2 '*' $ac_mid + 1`
7080 rm -f conftest.
$ac_objext conftest.
$ac_ext
7083 echo "$as_me: failed program was:" >&5
7084 cat conftest.
$ac_ext >&5
7085 cat >conftest.
$ac_ext <<_ACEOF
7086 #line $LINENO "configure"
7087 #include "confdefs.h"
7088 $ac_includes_default
7089 #ifdef F77_DUMMY_MAIN
7093 int F77_DUMMY_MAIN() { return 1; }
7098 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
7105 rm -f conftest.
$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } &&
7111 { ac_try
='test -s conftest.$ac_objext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7119 cat >conftest.
$ac_ext <<_ACEOF
7120 #line $LINENO "configure"
7121 #include "confdefs.h"
7122 $ac_includes_default
7123 #ifdef F77_DUMMY_MAIN
7127 int F77_DUMMY_MAIN() { return 1; }
7132 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
7139 rm -f conftest.
$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } &&
7145 { ac_try
='test -s conftest.$ac_objext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 ac_lo
=$ac_mid; break
7153 echo "$as_me: failed program was:" >&5
7154 cat conftest.
$ac_ext >&5
7155 ac_hi
=`expr '(' $ac_mid ')' - 1`
7156 if test $ac_mid -le $ac_hi; then
7160 ac_mid
=`expr 2 '*' $ac_mid`
7162 rm -f conftest.
$ac_objext conftest.
$ac_ext
7165 echo "$as_me: failed program was:" >&5
7166 cat conftest.
$ac_ext >&5
7169 rm -f conftest.
$ac_objext conftest.
$ac_ext
7171 rm -f conftest.
$ac_objext conftest.
$ac_ext
7172 # Binary search between lo and hi bounds.
7173 while test "x$ac_lo" != "x$ac_hi"; do
7174 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7175 cat >conftest.
$ac_ext <<_ACEOF
7176 #line $LINENO "configure"
7177 #include "confdefs.h"
7178 $ac_includes_default
7179 #ifdef F77_DUMMY_MAIN
7183 int F77_DUMMY_MAIN() { return 1; }
7188 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7195 rm -f conftest.
$ac_objext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7197 (eval $ac_compile) 2>&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try
='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7209 echo "$as_me: failed program was:" >&5
7210 cat conftest.
$ac_ext >&5
7211 ac_lo
=`expr '(' $ac_mid ')' + 1`
7213 rm -f conftest.
$ac_objext conftest.
$ac_ext
7216 ?
*) ac_cv_sizeof_double
=$ac_lo;;
7217 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7218 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7219 { (exit 1); exit 1; }; } ;;
7222 if test "$cross_compiling" = yes; then
7223 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7224 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7225 { (exit 1); exit 1; }; }
7227 cat >conftest.
$ac_ext <<_ACEOF
7228 #line $LINENO "configure"
7229 #include "confdefs.h"
7230 $ac_includes_default
7231 long longval () { return (long) (sizeof (double)); }
7232 unsigned long ulongval () { return (long) (sizeof (double)); }
7235 #ifdef F77_DUMMY_MAIN
7239 int F77_DUMMY_MAIN() { return 1; }
7245 FILE *f = fopen ("conftest.val", "w");
7248 if (((long) (sizeof (double))) < 0)
7250 long i = longval ();
7251 if (i != ((long) (sizeof (double))))
7253 fprintf (f, "%ld\n", i);
7257 unsigned long i = ulongval ();
7258 if (i != ((long) (sizeof (double))))
7260 fprintf (f, "%lu\n", i);
7262 exit (ferror (f) || fclose (f) != 0);
7268 rm -f conftest
$ac_exeext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7270 (eval $ac_link) 2>&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_cv_sizeof_double
=`cat conftest.val`
7281 echo "$as_me: program exited with status $ac_status" >&5
7282 echo "$as_me: failed program was:" >&5
7283 cat conftest.
$ac_ext >&5
7285 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7286 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7287 { (exit 1); exit 1; }; }
7289 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7294 ac_cv_sizeof_double
=0
7297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7298 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
7299 cat >>confdefs.h
<<_ACEOF
7300 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7304 echo "$as_me:$LINENO: checking for fpos_t" >&5
7305 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
7306 if test "${ac_cv_type_fpos_t+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 cat >conftest.
$ac_ext <<_ACEOF
7310 #line $LINENO "configure"
7311 #include "confdefs.h"
7312 $ac_includes_default
7313 #ifdef F77_DUMMY_MAIN
7317 int F77_DUMMY_MAIN() { return 1; }
7324 if (sizeof (fpos_t))
7330 rm -f conftest.
$ac_objext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332 (eval $ac_compile) 2>&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try
='test -s conftest.$ac_objext'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7342 ac_cv_type_fpos_t
=yes
7344 echo "$as_me: failed program was:" >&5
7345 cat conftest.
$ac_ext >&5
7346 ac_cv_type_fpos_t
=no
7348 rm -f conftest.
$ac_objext conftest.
$ac_ext
7350 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
7351 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
7353 echo "$as_me:$LINENO: checking size of fpos_t" >&5
7354 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
7355 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 if test "$ac_cv_type_fpos_t" = yes; then
7359 # The cast to unsigned long works around a bug in the HP C Compiler
7360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7362 # This bug is HP SR number 8606223364.
7363 if test "$cross_compiling" = yes; then
7364 # Depending upon the size, compute the lo and hi bounds.
7365 cat >conftest.
$ac_ext <<_ACEOF
7366 #line $LINENO "configure"
7367 #include "confdefs.h"
7368 $ac_includes_default
7369 #ifdef F77_DUMMY_MAIN
7373 int F77_DUMMY_MAIN() { return 1; }
7378 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
7385 rm -f conftest.
$ac_objext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } &&
7391 { ac_try
='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7399 cat >conftest.
$ac_ext <<_ACEOF
7400 #line $LINENO "configure"
7401 #include "confdefs.h"
7402 $ac_includes_default
7403 #ifdef F77_DUMMY_MAIN
7407 int F77_DUMMY_MAIN() { return 1; }
7412 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
7419 rm -f conftest.
$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try
='test -s conftest.$ac_objext'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7431 ac_hi
=$ac_mid; break
7433 echo "$as_me: failed program was:" >&5
7434 cat conftest.
$ac_ext >&5
7435 ac_lo
=`expr $ac_mid + 1`
7436 if test $ac_lo -le $ac_mid; then
7440 ac_mid
=`expr 2 '*' $ac_mid + 1`
7442 rm -f conftest.
$ac_objext conftest.
$ac_ext
7445 echo "$as_me: failed program was:" >&5
7446 cat conftest.
$ac_ext >&5
7447 cat >conftest.
$ac_ext <<_ACEOF
7448 #line $LINENO "configure"
7449 #include "confdefs.h"
7450 $ac_includes_default
7451 #ifdef F77_DUMMY_MAIN
7455 int F77_DUMMY_MAIN() { return 1; }
7460 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
7467 rm -f conftest.
$ac_objext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469 (eval $ac_compile) 2>&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try
='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7481 cat >conftest.
$ac_ext <<_ACEOF
7482 #line $LINENO "configure"
7483 #include "confdefs.h"
7484 $ac_includes_default
7485 #ifdef F77_DUMMY_MAIN
7489 int F77_DUMMY_MAIN() { return 1; }
7494 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
7501 rm -f conftest.
$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503 (eval $ac_compile) 2>&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try
='test -s conftest.$ac_objext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 ac_lo
=$ac_mid; break
7515 echo "$as_me: failed program was:" >&5
7516 cat conftest.
$ac_ext >&5
7517 ac_hi
=`expr '(' $ac_mid ')' - 1`
7518 if test $ac_mid -le $ac_hi; then
7522 ac_mid
=`expr 2 '*' $ac_mid`
7524 rm -f conftest.
$ac_objext conftest.
$ac_ext
7527 echo "$as_me: failed program was:" >&5
7528 cat conftest.
$ac_ext >&5
7531 rm -f conftest.
$ac_objext conftest.
$ac_ext
7533 rm -f conftest.
$ac_objext conftest.
$ac_ext
7534 # Binary search between lo and hi bounds.
7535 while test "x$ac_lo" != "x$ac_hi"; do
7536 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7537 cat >conftest.
$ac_ext <<_ACEOF
7538 #line $LINENO "configure"
7539 #include "confdefs.h"
7540 $ac_includes_default
7541 #ifdef F77_DUMMY_MAIN
7545 int F77_DUMMY_MAIN() { return 1; }
7550 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
7557 rm -f conftest.
$ac_objext
7558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7559 (eval $ac_compile) 2>&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try
='test -s conftest.$ac_objext'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
7571 echo "$as_me: failed program was:" >&5
7572 cat conftest.
$ac_ext >&5
7573 ac_lo
=`expr '(' $ac_mid ')' + 1`
7575 rm -f conftest.
$ac_objext conftest.
$ac_ext
7578 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
7579 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
7580 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
7581 { (exit 1); exit 1; }; } ;;
7584 if test "$cross_compiling" = yes; then
7585 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7586 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7587 { (exit 1); exit 1; }; }
7589 cat >conftest.
$ac_ext <<_ACEOF
7590 #line $LINENO "configure"
7591 #include "confdefs.h"
7592 $ac_includes_default
7593 long longval () { return (long) (sizeof (fpos_t)); }
7594 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
7597 #ifdef F77_DUMMY_MAIN
7601 int F77_DUMMY_MAIN() { return 1; }
7607 FILE *f = fopen ("conftest.val", "w");
7610 if (((long) (sizeof (fpos_t))) < 0)
7612 long i = longval ();
7613 if (i != ((long) (sizeof (fpos_t))))
7615 fprintf (f, "%ld\n", i);
7619 unsigned long i = ulongval ();
7620 if (i != ((long) (sizeof (fpos_t))))
7622 fprintf (f, "%lu\n", i);
7624 exit (ferror (f) || fclose (f) != 0);
7630 rm -f conftest
$ac_exeext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632 (eval $ac_link) 2>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 ac_cv_sizeof_fpos_t
=`cat conftest.val`
7643 echo "$as_me: program exited with status $ac_status" >&5
7644 echo "$as_me: failed program was:" >&5
7645 cat conftest.
$ac_ext >&5
7647 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
7648 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
7649 { (exit 1); exit 1; }; }
7651 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7656 ac_cv_sizeof_fpos_t
=0
7659 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
7660 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
7661 cat >>confdefs.h
<<_ACEOF
7662 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
7667 echo "$as_me:$LINENO: checking for long long support" >&5
7668 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
7670 cat >conftest.
$ac_ext <<_ACEOF
7671 #line $LINENO "configure"
7672 #include "confdefs.h"
7674 #ifdef F77_DUMMY_MAIN
7678 int F77_DUMMY_MAIN() { return 1; }
7683 long long x; x = (long long)0;
7688 rm -f conftest.
$ac_objext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7690 (eval $ac_compile) 2>&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try
='test -s conftest.$ac_objext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7702 cat >>confdefs.h
<<\_ACEOF
7703 #define HAVE_LONG_LONG 1
7709 echo "$as_me: failed program was:" >&5
7710 cat conftest.
$ac_ext >&5
7712 rm -f conftest.
$ac_objext conftest.
$ac_ext
7713 echo "$as_me:$LINENO: result: $have_long_long" >&5
7714 echo "${ECHO_T}$have_long_long" >&6
7715 if test "$have_long_long" = yes ; then
7716 echo "$as_me:$LINENO: checking for long long" >&5
7717 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7718 if test "${ac_cv_type_long_long+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 cat >conftest.
$ac_ext <<_ACEOF
7722 #line $LINENO "configure"
7723 #include "confdefs.h"
7724 $ac_includes_default
7725 #ifdef F77_DUMMY_MAIN
7729 int F77_DUMMY_MAIN() { return 1; }
7734 if ((long long *) 0)
7736 if (sizeof (long long))
7742 rm -f conftest.
$ac_objext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7744 (eval $ac_compile) 2>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try
='test -s conftest.$ac_objext'
7749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; }; then
7754 ac_cv_type_long_long
=yes
7756 echo "$as_me: failed program was:" >&5
7757 cat conftest.
$ac_ext >&5
7758 ac_cv_type_long_long
=no
7760 rm -f conftest.
$ac_objext conftest.
$ac_ext
7762 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7763 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7765 echo "$as_me:$LINENO: checking size of long long" >&5
7766 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7767 if test "${ac_cv_sizeof_long_long+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 if test "$ac_cv_type_long_long" = yes; then
7771 # The cast to unsigned long works around a bug in the HP C Compiler
7772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7774 # This bug is HP SR number 8606223364.
7775 if test "$cross_compiling" = yes; then
7776 # Depending upon the size, compute the lo and hi bounds.
7777 cat >conftest.
$ac_ext <<_ACEOF
7778 #line $LINENO "configure"
7779 #include "confdefs.h"
7780 $ac_includes_default
7781 #ifdef F77_DUMMY_MAIN
7785 int F77_DUMMY_MAIN() { return 1; }
7790 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7797 rm -f conftest.
$ac_objext
7798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799 (eval $ac_compile) 2>&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); } &&
7803 { ac_try
='test -s conftest.$ac_objext'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7811 cat >conftest.
$ac_ext <<_ACEOF
7812 #line $LINENO "configure"
7813 #include "confdefs.h"
7814 $ac_includes_default
7815 #ifdef F77_DUMMY_MAIN
7819 int F77_DUMMY_MAIN() { return 1; }
7824 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7831 rm -f conftest.
$ac_objext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7833 (eval $ac_compile) 2>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try
='test -s conftest.$ac_objext'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 ac_hi
=$ac_mid; break
7845 echo "$as_me: failed program was:" >&5
7846 cat conftest.
$ac_ext >&5
7847 ac_lo
=`expr $ac_mid + 1`
7848 if test $ac_lo -le $ac_mid; then
7852 ac_mid
=`expr 2 '*' $ac_mid + 1`
7854 rm -f conftest.
$ac_objext conftest.
$ac_ext
7857 echo "$as_me: failed program was:" >&5
7858 cat conftest.
$ac_ext >&5
7859 cat >conftest.
$ac_ext <<_ACEOF
7860 #line $LINENO "configure"
7861 #include "confdefs.h"
7862 $ac_includes_default
7863 #ifdef F77_DUMMY_MAIN
7867 int F77_DUMMY_MAIN() { return 1; }
7872 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7879 rm -f conftest.
$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try
='test -s conftest.$ac_objext'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7893 cat >conftest.
$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7895 #include "confdefs.h"
7896 $ac_includes_default
7897 #ifdef F77_DUMMY_MAIN
7901 int F77_DUMMY_MAIN() { return 1; }
7906 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7913 rm -f conftest.
$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try
='test -s conftest.$ac_objext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 ac_lo
=$ac_mid; break
7927 echo "$as_me: failed program was:" >&5
7928 cat conftest.
$ac_ext >&5
7929 ac_hi
=`expr '(' $ac_mid ')' - 1`
7930 if test $ac_mid -le $ac_hi; then
7934 ac_mid
=`expr 2 '*' $ac_mid`
7936 rm -f conftest.
$ac_objext conftest.
$ac_ext
7939 echo "$as_me: failed program was:" >&5
7940 cat conftest.
$ac_ext >&5
7943 rm -f conftest.
$ac_objext conftest.
$ac_ext
7945 rm -f conftest.
$ac_objext conftest.
$ac_ext
7946 # Binary search between lo and hi bounds.
7947 while test "x$ac_lo" != "x$ac_hi"; do
7948 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7949 cat >conftest.
$ac_ext <<_ACEOF
7950 #line $LINENO "configure"
7951 #include "confdefs.h"
7952 $ac_includes_default
7953 #ifdef F77_DUMMY_MAIN
7957 int F77_DUMMY_MAIN() { return 1; }
7962 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7969 rm -f conftest.
$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try
='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.
$ac_ext >&5
7985 ac_lo
=`expr '(' $ac_mid ')' + 1`
7987 rm -f conftest.
$ac_objext conftest.
$ac_ext
7990 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
7991 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
7992 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
7993 { (exit 1); exit 1; }; } ;;
7996 if test "$cross_compiling" = yes; then
7997 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7998 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7999 { (exit 1); exit 1; }; }
8001 cat >conftest.
$ac_ext <<_ACEOF
8002 #line $LINENO "configure"
8003 #include "confdefs.h"
8004 $ac_includes_default
8005 long longval () { return (long) (sizeof (long long)); }
8006 unsigned long ulongval () { return (long) (sizeof (long long)); }
8009 #ifdef F77_DUMMY_MAIN
8013 int F77_DUMMY_MAIN() { return 1; }
8019 FILE *f = fopen ("conftest.val", "w");
8022 if (((long) (sizeof (long long))) < 0)
8024 long i = longval ();
8025 if (i != ((long) (sizeof (long long))))
8027 fprintf (f, "%ld\n", i);
8031 unsigned long i = ulongval ();
8032 if (i != ((long) (sizeof (long long))))
8034 fprintf (f, "%lu\n", i);
8036 exit (ferror (f) || fclose (f) != 0);
8042 rm -f conftest
$ac_exeext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044 (eval $ac_link) 2>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_cv_sizeof_long_long
=`cat conftest.val`
8055 echo "$as_me: program exited with status $ac_status" >&5
8056 echo "$as_me: failed program was:" >&5
8057 cat conftest.
$ac_ext >&5
8059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8060 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8061 { (exit 1); exit 1; }; }
8063 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8068 ac_cv_sizeof_long_long
=0
8071 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8072 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8073 cat >>confdefs.h
<<_ACEOF
8074 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8080 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
8081 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
8083 cat >conftest.
$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8085 #include "confdefs.h"
8087 #ifdef F77_DUMMY_MAIN
8091 int F77_DUMMY_MAIN() { return 1; }
8096 uintptr_t x; x = (uintptr_t)0;
8101 rm -f conftest.
$ac_objext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103 (eval $ac_compile) 2>&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try
='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8115 cat >>confdefs.h
<<\_ACEOF
8116 #define HAVE_UINTPTR_T 1
8122 echo "$as_me: failed program was:" >&5
8123 cat conftest.
$ac_ext >&5
8125 rm -f conftest.
$ac_objext conftest.
$ac_ext
8126 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
8127 echo "${ECHO_T}$have_uintptr_t" >&6
8128 if test "$have_uintptr_t" = yes ; then
8129 echo "$as_me:$LINENO: checking for uintptr_t" >&5
8130 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8131 if test "${ac_cv_type_uintptr_t+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 cat >conftest.
$ac_ext <<_ACEOF
8135 #line $LINENO "configure"
8136 #include "confdefs.h"
8137 $ac_includes_default
8138 #ifdef F77_DUMMY_MAIN
8142 int F77_DUMMY_MAIN() { return 1; }
8147 if ((uintptr_t *) 0)
8149 if (sizeof (uintptr_t))
8155 rm -f conftest.
$ac_objext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8157 (eval $ac_compile) 2>&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
8161 { ac_try
='test -s conftest.$ac_objext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 ac_cv_type_uintptr_t
=yes
8169 echo "$as_me: failed program was:" >&5
8170 cat conftest.
$ac_ext >&5
8171 ac_cv_type_uintptr_t
=no
8173 rm -f conftest.
$ac_objext conftest.
$ac_ext
8175 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8176 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8178 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
8179 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
8180 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 if test "$ac_cv_type_uintptr_t" = yes; then
8184 # The cast to unsigned long works around a bug in the HP C Compiler
8185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8187 # This bug is HP SR number 8606223364.
8188 if test "$cross_compiling" = yes; then
8189 # Depending upon the size, compute the lo and hi bounds.
8190 cat >conftest.
$ac_ext <<_ACEOF
8191 #line $LINENO "configure"
8192 #include "confdefs.h"
8193 $ac_includes_default
8194 #ifdef F77_DUMMY_MAIN
8198 int F77_DUMMY_MAIN() { return 1; }
8203 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
8210 rm -f conftest.
$ac_objext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8212 (eval $ac_compile) 2>&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try
='test -s conftest.$ac_objext'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; }; then
8224 cat >conftest.
$ac_ext <<_ACEOF
8225 #line $LINENO "configure"
8226 #include "confdefs.h"
8227 $ac_includes_default
8228 #ifdef F77_DUMMY_MAIN
8232 int F77_DUMMY_MAIN() { return 1; }
8237 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8244 rm -f conftest.
$ac_objext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8246 (eval $ac_compile) 2>&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try
='test -s conftest.$ac_objext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_hi
=$ac_mid; break
8258 echo "$as_me: failed program was:" >&5
8259 cat conftest.
$ac_ext >&5
8260 ac_lo
=`expr $ac_mid + 1`
8261 if test $ac_lo -le $ac_mid; then
8265 ac_mid
=`expr 2 '*' $ac_mid + 1`
8267 rm -f conftest.
$ac_objext conftest.
$ac_ext
8270 echo "$as_me: failed program was:" >&5
8271 cat conftest.
$ac_ext >&5
8272 cat >conftest.
$ac_ext <<_ACEOF
8273 #line $LINENO "configure"
8274 #include "confdefs.h"
8275 $ac_includes_default
8276 #ifdef F77_DUMMY_MAIN
8280 int F77_DUMMY_MAIN() { return 1; }
8285 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
8292 rm -f conftest.
$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294 (eval $ac_compile) 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try
='test -s conftest.$ac_objext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8306 cat >conftest.
$ac_ext <<_ACEOF
8307 #line $LINENO "configure"
8308 #include "confdefs.h"
8309 $ac_includes_default
8310 #ifdef F77_DUMMY_MAIN
8314 int F77_DUMMY_MAIN() { return 1; }
8319 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
8326 rm -f conftest.
$ac_objext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328 (eval $ac_compile) 2>&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try
='test -s conftest.$ac_objext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_lo
=$ac_mid; break
8340 echo "$as_me: failed program was:" >&5
8341 cat conftest.
$ac_ext >&5
8342 ac_hi
=`expr '(' $ac_mid ')' - 1`
8343 if test $ac_mid -le $ac_hi; then
8347 ac_mid
=`expr 2 '*' $ac_mid`
8349 rm -f conftest.
$ac_objext conftest.
$ac_ext
8352 echo "$as_me: failed program was:" >&5
8353 cat conftest.
$ac_ext >&5
8356 rm -f conftest.
$ac_objext conftest.
$ac_ext
8358 rm -f conftest.
$ac_objext conftest.
$ac_ext
8359 # Binary search between lo and hi bounds.
8360 while test "x$ac_lo" != "x$ac_hi"; do
8361 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8362 cat >conftest.
$ac_ext <<_ACEOF
8363 #line $LINENO "configure"
8364 #include "confdefs.h"
8365 $ac_includes_default
8366 #ifdef F77_DUMMY_MAIN
8370 int F77_DUMMY_MAIN() { return 1; }
8375 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8382 rm -f conftest.
$ac_objext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8384 (eval $ac_compile) 2>&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
8388 { ac_try
='test -s conftest.$ac_objext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8396 echo "$as_me: failed program was:" >&5
8397 cat conftest.
$ac_ext >&5
8398 ac_lo
=`expr '(' $ac_mid ')' + 1`
8400 rm -f conftest.
$ac_objext conftest.
$ac_ext
8403 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
8404 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
8405 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
8406 { (exit 1); exit 1; }; } ;;
8409 if test "$cross_compiling" = yes; then
8410 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8411 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8412 { (exit 1); exit 1; }; }
8414 cat >conftest.
$ac_ext <<_ACEOF
8415 #line $LINENO "configure"
8416 #include "confdefs.h"
8417 $ac_includes_default
8418 long longval () { return (long) (sizeof (uintptr_t)); }
8419 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
8422 #ifdef F77_DUMMY_MAIN
8426 int F77_DUMMY_MAIN() { return 1; }
8432 FILE *f = fopen ("conftest.val", "w");
8435 if (((long) (sizeof (uintptr_t))) < 0)
8437 long i = longval ();
8438 if (i != ((long) (sizeof (uintptr_t))))
8440 fprintf (f, "%ld\n", i);
8444 unsigned long i = ulongval ();
8445 if (i != ((long) (sizeof (uintptr_t))))
8447 fprintf (f, "%lu\n", i);
8449 exit (ferror (f) || fclose (f) != 0);
8455 rm -f conftest
$ac_exeext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457 (eval $ac_link) 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
8468 echo "$as_me: program exited with status $ac_status" >&5
8469 echo "$as_me: failed program was:" >&5
8470 cat conftest.
$ac_ext >&5
8472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
8473 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
8474 { (exit 1); exit 1; }; }
8476 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8481 ac_cv_sizeof_uintptr_t
=0
8484 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
8485 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
8486 cat >>confdefs.h
<<_ACEOF
8487 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8493 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
8494 echo "$as_me:$LINENO: checking size of off_t" >&5
8495 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
8496 if test "${ac_cv_sizeof_off_t+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 if test "$cross_compiling" = yes; then
8500 ac_cv_sizeof_off_t
=4
8502 cat >conftest.
$ac_ext <<_ACEOF
8503 #line $LINENO "configure"
8504 #include "confdefs.h"
8506 #include <sys/types.h>
8509 FILE *f=fopen("conftestval", "w");
8511 fprintf(f, "%d\n", sizeof(off_t));
8515 rm -f conftest
$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_sizeof_off_t
=`cat conftestval`
8528 echo "$as_me: program exited with status $ac_status" >&5
8529 echo "$as_me: failed program was:" >&5
8530 cat conftest.
$ac_ext >&5
8532 ac_cv_sizeof_off_t
=0
8534 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8540 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
8542 cat >>confdefs.h
<<_ACEOF
8543 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8547 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
8548 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
8549 if test "$have_long_long" = yes -a \
8550 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8551 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8553 cat >>confdefs.h
<<\_ACEOF
8554 #define HAVE_LARGEFILE_SUPPORT 1
8557 echo "$as_me:$LINENO: result: yes" >&5
8558 echo "${ECHO_T}yes" >&6
8560 echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6
8564 # AC_CHECK_SIZEOF() doesn't include <time.h>.
8565 echo "$as_me:$LINENO: checking size of time_t" >&5
8566 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
8567 if test "${ac_cv_sizeof_time_t+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 if test "$cross_compiling" = yes; then
8571 ac_cv_sizeof_time_t
=4
8573 cat >conftest.
$ac_ext <<_ACEOF
8574 #line $LINENO "configure"
8575 #include "confdefs.h"
8580 FILE *f=fopen("conftestval", "w");
8582 fprintf(f, "%d\n", sizeof(time_t));
8586 rm -f conftest
$ac_exeext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588 (eval $ac_link) 2>&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_cv_sizeof_time_t
=`cat conftestval`
8599 echo "$as_me: program exited with status $ac_status" >&5
8600 echo "$as_me: failed program was:" >&5
8601 cat conftest.
$ac_ext >&5
8603 ac_cv_sizeof_time_t
=0
8605 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
8611 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
8613 cat >>confdefs.h
<<_ACEOF
8614 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
8619 # if have pthread_t then define SIZEOF_PTHREAD_T
8621 if test "$ac_cv_kpthread" = "yes"
8622 then CC
="$CC -Kpthread"
8624 echo "$as_me:$LINENO: checking for pthread_t" >&5
8625 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
8627 cat >conftest.
$ac_ext <<_ACEOF
8628 #line $LINENO "configure"
8629 #include "confdefs.h"
8630 #include <pthread.h>
8631 #ifdef F77_DUMMY_MAIN
8635 int F77_DUMMY_MAIN() { return 1; }
8640 pthread_t x; x = *(pthread_t*)0;
8645 rm -f conftest.
$ac_objext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647 (eval $ac_compile) 2>&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try
='test -s conftest.$ac_objext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8659 echo "$as_me: failed program was:" >&5
8660 cat conftest.
$ac_ext >&5
8662 rm -f conftest.
$ac_objext conftest.
$ac_ext
8663 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
8664 echo "${ECHO_T}$have_pthread_t" >&6
8665 if test "$have_pthread_t" = yes ; then
8666 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
8667 echo "$as_me:$LINENO: checking size of pthread_t" >&5
8668 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
8669 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 if test "$cross_compiling" = yes; then
8673 ac_cv_sizeof_pthread_t
=4
8675 cat >conftest.
$ac_ext <<_ACEOF
8676 #line $LINENO "configure"
8677 #include "confdefs.h"
8679 #include <pthread.h>
8682 FILE *f=fopen("conftestval", "w");
8684 fprintf(f, "%d\n", sizeof(pthread_t));
8688 rm -f conftest
$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_sizeof_pthread_t
=`cat conftestval`
8701 echo "$as_me: program exited with status $ac_status" >&5
8702 echo "$as_me: failed program was:" >&5
8703 cat conftest.
$ac_ext >&5
8705 ac_cv_sizeof_pthread_t
=0
8707 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8712 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
8713 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
8715 cat >>confdefs.h
<<_ACEOF
8716 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
8722 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
8723 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
8724 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
8725 if test "${enable_toolbox_glue+set}" = set; then
8726 enableval
="$enable_toolbox_glue"
8730 if test -z "$enable_toolbox_glue"
8732 case $ac_sys_system/$ac_sys_release in
8734 enable_toolbox_glue
="yes";;
8736 enable_toolbox_glue
="no";;
8739 case "$enable_toolbox_glue" in
8741 extra_frameworks
="-framework CoreServices -framework Foundation"
8742 extra_machdep_objs
="Python/mactoolboxglue.o"
8743 extra_undefs
="-u __dummy -u _PyMac_Error"
8745 cat >>confdefs.h
<<\_ACEOF
8746 #define USE_TOOLBOX_OBJECT_GLUE 1
8752 extra_machdep_objs
=""
8756 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
8757 echo "${ECHO_T}$enable_toolbox_glue" >&6
8760 case $ac_sys_system/$ac_sys_release in
8762 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc"
8763 LIBTOOL_CRUFT
="$LIBTOOL_CRUFT $extra_frameworks"
8764 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
8765 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8767 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc"
8768 LIBTOOL_CRUFT
="$LIBTOOL_CRUFT $extra_frameworks"
8769 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
8770 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8773 echo "$as_me:$LINENO: checking for --enable-framework" >&5
8774 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
8775 if test "$enable_framework"
8777 OPT
="$OPT -fno-common -dynamic"
8778 # -F. is needed to allow linking to the framework while
8779 # in the build location.
8780 LDFLAGS
="$LDFLAGS -Wl,-F."
8782 cat >>confdefs.h
<<\_ACEOF
8783 #define WITH_NEXT_FRAMEWORK 1
8786 echo "$as_me:$LINENO: result: yes" >&5
8787 echo "${ECHO_T}yes" >&6
8789 echo "$as_me:$LINENO: result: no" >&5
8790 echo "${ECHO_T}no" >&6
8793 echo "$as_me:$LINENO: checking for dyld" >&5
8794 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
8795 case $ac_sys_system/$ac_sys_release in
8798 cat >>confdefs.h
<<\_ACEOF
8802 echo "$as_me:$LINENO: result: always on for Darwin" >&5
8803 echo "${ECHO_T}always on for Darwin" >&6
8806 echo "$as_me:$LINENO: result: no" >&5
8807 echo "${ECHO_T}no" >&6
8811 # Set info about shared libraries.
8817 # SO is the extension of shared libraries `(including the dot!)
8818 # -- usually .so, .sl on HP-UX, .dll on Cygwin
8819 echo "$as_me:$LINENO: checking SO" >&5
8820 echo $ECHO_N "checking SO... $ECHO_C" >&6
8823 case $ac_sys_system in
8829 echo "$as_me:$LINENO: result: $SO" >&5
8830 echo "${ECHO_T}$SO" >&6
8831 # LDSHARED is the ld *command* used to create shared library
8832 # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
8833 # (Shared libraries in this instance are shared modules to be loaded into
8834 # Python, as opposed to building Python itself as a shared library.)
8835 echo "$as_me:$LINENO: checking LDSHARED" >&5
8836 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
8837 if test -z "$LDSHARED"
8839 case $ac_sys_system/$ac_sys_release in
8841 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
8842 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
8845 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
8846 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
8848 IRIX
/5*) LDSHARED
="ld -shared";;
8849 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
8850 SunOS
/4*) LDSHARED
="ld";;
8852 if test "$GCC" = "yes"
8853 then LDSHARED
='$(CC) -shared'
8854 else LDSHARED
="$(CC) -G";
8856 hp
*|HP
*) LDSHARED
="ld -b";;
8857 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
8858 DYNIX
/ptx*) LDSHARED
="ld -G";;
8860 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
8861 if test "$enable_framework" ; then
8862 # Link against the framework. All externals should be defined.
8863 LDSHARED
="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
8865 # No framework. Ignore undefined symbols, assuming they come from Python
8866 LDSHARED
="$LDSHARED -undefined suppress"
8869 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
8870 if test "$enable_framework" ; then
8871 # Link against the framework. All externals should be defined.
8872 LDSHARED
="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
8874 # No framework, use the Python app as bundle-loader
8875 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
8876 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)'
8878 Linux
*|GNU
*) LDSHARED
="gcc -shared";;
8879 dgux
*) LDSHARED
="ld -G";;
8880 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
8881 OpenBSD
*|NetBSD
*|FreeBSD
*)
8882 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8884 LDSHARED
="cc -shared ${LDFLAGS}"
8886 LDSHARED
="ld -Bshareable ${LDFLAGS}"
8888 OpenUNIX
*|UnixWare
*)
8889 if test "$GCC" = "yes"
8890 then LDSHARED
="$(CC) -shared"
8891 else LDSHARED
="$(CC) -G"
8893 SCO_SV
*) LDSHARED
="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
8894 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
8895 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
8896 atheos
*) LDSHARED
="gcc -shared";;
8900 echo "$as_me:$LINENO: result: $LDSHARED" >&5
8901 echo "${ECHO_T}$LDSHARED" >&6
8902 BLDSHARED
=${BLDSHARED-$LDSHARED}
8903 # CCSHARED are the C *flags* used to create objects to go into a shared
8904 # library (module) -- this is only needed for a few systems
8905 echo "$as_me:$LINENO: checking CCSHARED" >&5
8906 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
8907 if test -z "$CCSHARED"
8909 case $ac_sys_system/$ac_sys_release in
8910 SunOS
*) if test "$GCC" = yes;
8911 then CCSHARED
="-fPIC";
8913 hp
*|HP
*) if test "$GCC" = yes;
8914 then CCSHARED
="-fPIC";
8917 Linux
*|GNU
*) CCSHARED
="-fPIC";;
8918 BSD
/OS
*/4*) CCSHARED
="-fpic";;
8919 FreeBSD
*|NetBSD
*|OpenBSD
*) CCSHARED
="-fPIC";;
8920 OpenUNIX
*|UnixWare
*)
8921 if test "$GCC" = "yes"
8922 then CCSHARED
="-fPIC"
8923 else CCSHARED
="-KPIC"
8925 SCO_SV
*) CCSHARED
="-KPIC -dy -Bdynamic";;
8926 Monterey
*) CCSHARED
="-G";;
8927 IRIX
*/6*) case $CC in
8928 *gcc
*) CCSHARED
="-shared";;
8931 atheos
*) CCSHARED
="-fPIC";;
8934 echo "$as_me:$LINENO: result: $CCSHARED" >&5
8935 echo "${ECHO_T}$CCSHARED" >&6
8936 # LINKFORSHARED are the flags passed to the $(CC) command that links
8937 # the python executable -- this is only needed for a few systems
8938 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
8939 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
8940 if test -z "$LINKFORSHARED"
8942 case $ac_sys_system/$ac_sys_release in
8943 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
8945 LINKFORSHARED
="-Wl,-E -Wl,+s";;
8946 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
8947 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
8948 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
8949 # -u libsys_s pulls in all symbols in libsys
8951 # -u __dummy makes the linker aware of the objc runtime
8952 # in System.framework; otherwise, __objcInit (referenced in
8953 # crt1.o) gets erroneously defined as common, which breaks dynamic
8954 # loading of any modules which reference it in System.framework.
8955 # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is
8956 # not used by the core itself but which needs to be in the core so
8957 # that dynamically loaded extension modules have access to it.
8958 LINKFORSHARED
="$extra_undefs -framework System"
8959 if test "$enable_framework"
8961 LINKFORSHARED
="$LINKFORSHARED -framework Python"
8963 LINKFORSHARED
="$LINKFORSHARED $extra_frameworks";;
8964 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
8965 SCO_SV
*) LINKFORSHARED
="-Bdynamic -dy -Wl,-Bexport";;
8966 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
8967 FreeBSD
*|NetBSD
*|OpenBSD
*)
8968 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8970 LINKFORSHARED
="-Wl,--export-dynamic"
8972 SunOS
/5*) case $CC in
8974 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
8976 LINKFORSHARED
="-Xlinker --export-dynamic"
8981 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
8982 echo "${ECHO_T}$LINKFORSHARED" >&6
8985 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
8986 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
8987 if test ! "$LIBRARY" = "$LDLIBRARY"
8989 case $ac_sys_system in
8991 # Cygwin needs CCSHARED when building extension DLLs
8992 # but not when building the interpreter DLL.
8993 CFLAGSFORSHARED
='';;
8995 CFLAGSFORSHARED
='$(CCSHARED)'
8998 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
8999 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
9001 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
9002 # library (with --enable-shared).
9003 # For platforms on which shared libraries are not allowed to have unresolved
9004 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
9005 # if it is not required, since it creates a dependency of the shared library
9006 # to LIBS. This, in turn, means that applications linking the shared libpython
9007 # don't need to link LIBS explicitly. The default should be only changed
9008 # on systems where this approach causes problems.
9010 echo "$as_me:$LINENO: checking SHLIBS" >&5
9011 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
9012 case "$ac_sys_system" in
9016 echo "$as_me:$LINENO: result: $SHLIBS" >&5
9017 echo "${ECHO_T}$SHLIBS" >&6
9020 # checks for libraries
9022 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9023 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9024 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 ac_check_lib_save_LIBS
=$LIBS
9029 cat >conftest.
$ac_ext <<_ACEOF
9030 #line $LINENO "configure"
9031 #include "confdefs.h"
9033 /* Override any gcc2 internal prototype to avoid an error. */
9037 /* We use char because int might match the return type of a gcc2
9038 builtin and then its argument prototype would still apply. */
9040 #ifdef F77_DUMMY_MAIN
9044 int F77_DUMMY_MAIN() { return 1; }
9054 rm -f conftest.
$ac_objext conftest
$ac_exeext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try
='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_lib_dl_dlopen
=yes
9068 echo "$as_me: failed program was:" >&5
9069 cat conftest.
$ac_ext >&5
9070 ac_cv_lib_dl_dlopen
=no
9072 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9073 LIBS
=$ac_check_lib_save_LIBS
9075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9077 if test $ac_cv_lib_dl_dlopen = yes; then
9078 cat >>confdefs.h
<<_ACEOF
9079 #define HAVE_LIBDL 1
9085 # Dynamic linking for SunOS/Solaris and SYSV
9087 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9088 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9089 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 ac_check_lib_save_LIBS
=$LIBS
9094 cat >conftest.
$ac_ext <<_ACEOF
9095 #line $LINENO "configure"
9096 #include "confdefs.h"
9098 /* Override any gcc2 internal prototype to avoid an error. */
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9105 #ifdef F77_DUMMY_MAIN
9109 int F77_DUMMY_MAIN() { return 1; }
9119 rm -f conftest.
$ac_objext conftest
$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try
='test -s conftest$ac_exeext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_lib_dld_shl_load
=yes
9133 echo "$as_me: failed program was:" >&5
9134 cat conftest.
$ac_ext >&5
9135 ac_cv_lib_dld_shl_load
=no
9137 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9138 LIBS
=$ac_check_lib_save_LIBS
9140 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9141 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9142 if test $ac_cv_lib_dld_shl_load = yes; then
9143 cat >>confdefs.h
<<_ACEOF
9144 #define HAVE_LIBDLD 1
9150 # Dynamic linking for HP-UX
9152 echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
9153 echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6
9154 if test "${ac_cv_lib_rt_sem_init+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 ac_check_lib_save_LIBS
=$LIBS
9159 cat >conftest.
$ac_ext <<_ACEOF
9160 #line $LINENO "configure"
9161 #include "confdefs.h"
9163 /* Override any gcc2 internal prototype to avoid an error. */
9167 /* We use char because int might match the return type of a gcc2
9168 builtin and then its argument prototype would still apply. */
9170 #ifdef F77_DUMMY_MAIN
9174 int F77_DUMMY_MAIN() { return 1; }
9184 rm -f conftest.
$ac_objext conftest
$ac_exeext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186 (eval $ac_link) 2>&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } &&
9190 { ac_try
='test -s conftest$ac_exeext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 ac_cv_lib_rt_sem_init
=yes
9198 echo "$as_me: failed program was:" >&5
9199 cat conftest.
$ac_ext >&5
9200 ac_cv_lib_rt_sem_init
=no
9202 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9203 LIBS
=$ac_check_lib_save_LIBS
9205 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
9206 echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6
9207 if test $ac_cv_lib_rt_sem_init = yes; then
9208 cat >>confdefs.h
<<_ACEOF
9209 #define HAVE_LIBRT 1
9215 # 'Real Time' functions on Solaris
9217 # checks for system dependent C++ extensions support
9218 case "$ac_sys_system" in
9219 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
9220 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
9221 cat >conftest.
$ac_ext <<_ACEOF
9222 #line $LINENO "configure"
9223 #include "confdefs.h"
9224 #include "/usr/lpp/xlC/include/load.h"
9225 #ifdef F77_DUMMY_MAIN
9229 int F77_DUMMY_MAIN() { return 1; }
9234 loadAndInit("", 0, "")
9239 rm -f conftest.
$ac_objext conftest
$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try
='test -s conftest$ac_exeext'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9252 cat >>confdefs.h
<<\_ACEOF
9253 #define AIX_GENUINE_CPLUSPLUS 1
9256 echo "$as_me:$LINENO: result: yes" >&5
9257 echo "${ECHO_T}yes" >&6
9259 echo "$as_me: failed program was:" >&5
9260 cat conftest.
$ac_ext >&5
9261 echo "$as_me:$LINENO: result: no" >&5
9262 echo "${ECHO_T}no" >&6
9264 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext;;
9268 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9269 # However on SGI IRIX, these exist but are broken.
9270 # BeOS' sockets are stashed in libnet.
9271 case "$ac_sys_system" in
9274 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
9275 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
9276 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 ac_check_lib_save_LIBS
=$LIBS
9281 cat >conftest.
$ac_ext <<_ACEOF
9282 #line $LINENO "configure"
9283 #include "confdefs.h"
9285 /* Override any gcc2 internal prototype to avoid an error. */
9289 /* We use char because int might match the return type of a gcc2
9290 builtin and then its argument prototype would still apply. */
9292 #ifdef F77_DUMMY_MAIN
9296 int F77_DUMMY_MAIN() { return 1; }
9306 rm -f conftest.
$ac_objext conftest
$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308 (eval $ac_link) 2>&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
9312 { ac_try
='test -s conftest$ac_exeext'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; }; then
9318 ac_cv_lib_nsl_t_open
=yes
9320 echo "$as_me: failed program was:" >&5
9321 cat conftest.
$ac_ext >&5
9322 ac_cv_lib_nsl_t_open
=no
9324 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9325 LIBS
=$ac_check_lib_save_LIBS
9327 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
9328 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
9329 if test $ac_cv_lib_nsl_t_open = yes; then
9333 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9334 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9335 if test "${ac_cv_lib_socket_socket+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 ac_check_lib_save_LIBS
=$LIBS
9339 LIBS
="-lsocket $LIBS $LIBS"
9340 cat >conftest.
$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9342 #include "confdefs.h"
9344 /* Override any gcc2 internal prototype to avoid an error. */
9348 /* We use char because int might match the return type of a gcc2
9349 builtin and then its argument prototype would still apply. */
9351 #ifdef F77_DUMMY_MAIN
9355 int F77_DUMMY_MAIN() { return 1; }
9365 rm -f conftest.
$ac_objext conftest
$ac_exeext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9367 (eval $ac_link) 2>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try
='test -s conftest$ac_exeext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_cv_lib_socket_socket
=yes
9379 echo "$as_me: failed program was:" >&5
9380 cat conftest.
$ac_ext >&5
9381 ac_cv_lib_socket_socket
=no
9383 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9384 LIBS
=$ac_check_lib_save_LIBS
9386 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9387 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9388 if test $ac_cv_lib_socket_socket = yes; then
9389 LIBS
="-lsocket $LIBS"
9394 case "$ac_sys_system" in
9396 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
9397 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
9398 if test "${ac_cv_lib_net_socket+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 ac_check_lib_save_LIBS
=$LIBS
9402 LIBS
="-lnet $LIBS $LIBS"
9403 cat >conftest.
$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 #include "confdefs.h"
9407 /* Override any gcc2 internal prototype to avoid an error. */
9411 /* We use char because int might match the return type of a gcc2
9412 builtin and then its argument prototype would still apply. */
9414 #ifdef F77_DUMMY_MAIN
9418 int F77_DUMMY_MAIN() { return 1; }
9428 rm -f conftest.
$ac_objext conftest
$ac_exeext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9430 (eval $ac_link) 2>&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } &&
9434 { ac_try
='test -s conftest$ac_exeext'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
9440 ac_cv_lib_net_socket
=yes
9442 echo "$as_me: failed program was:" >&5
9443 cat conftest.
$ac_ext >&5
9444 ac_cv_lib_net_socket
=no
9446 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9447 LIBS
=$ac_check_lib_save_LIBS
9449 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
9450 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
9451 if test $ac_cv_lib_net_socket = yes; then
9458 echo "$as_me:$LINENO: checking for --with-libs" >&5
9459 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
9461 # Check whether --with-libs or --without-libs was given.
9462 if test "${with_libs+set}" = set; then
9463 withval
="$with_libs"
9465 echo "$as_me:$LINENO: result: $withval" >&5
9466 echo "${ECHO_T}$withval" >&6
9467 LIBS
="$withval $LIBS"
9470 echo "$as_me:$LINENO: result: no" >&5
9471 echo "${ECHO_T}no" >&6
9474 # Determine if signalmodule should be used.
9477 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
9478 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
9480 # Check whether --with-signal-module or --without-signal-module was given.
9481 if test "${with_signal_module+set}" = set; then
9482 withval
="$with_signal_module"
9486 if test -z "$with_signal_module"
9487 then with_signal_module
="yes"
9489 echo "$as_me:$LINENO: result: $with_signal_module" >&5
9490 echo "${ECHO_T}$with_signal_module" >&6
9492 if test "${with_signal_module}" = "yes"; then
9493 USE_SIGNAL_MODULE
=""
9496 USE_SIGNAL_MODULE
="#"
9497 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
9500 # This is used to generate Setup.config
9502 USE_THREAD_MODULE
=""
9504 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
9505 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
9508 # Check whether --with-dec-threads or --without-dec-threads was given.
9509 if test "${with_dec_threads+set}" = set; then
9510 withval
="$with_dec_threads"
9512 echo "$as_me:$LINENO: result: $withval" >&5
9513 echo "${ECHO_T}$withval" >&6
9515 if test "${with_thread+set}" != set; then
9516 with_thread
="$withval";
9519 echo "$as_me:$LINENO: result: no" >&5
9520 echo "${ECHO_T}no" >&6
9523 # Templates for things AC_DEFINEd more than once.
9524 # For a single AC_DEFINE, no template is needed.
9532 echo "$as_me:$LINENO: checking for --with-threads" >&5
9533 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
9535 # Check whether --with-threads or --without-threads was given.
9536 if test "${with_threads+set}" = set; then
9537 withval
="$with_threads"
9541 # --with-thread is deprecated, but check for it anyway
9543 # Check whether --with-thread or --without-thread was given.
9544 if test "${with_thread+set}" = set; then
9545 withval
="$with_thread"
9547 with_threads
=$with_thread
9550 if test -z "$with_threads"
9551 then with_threads
="yes"
9553 echo "$as_me:$LINENO: result: $with_threads" >&5
9554 echo "${ECHO_T}$with_threads" >&6
9557 if test "$with_threads" = "no"
9559 USE_THREAD_MODULE
="#"
9560 elif test "$ac_cv_pthread_is_default" = yes
9562 cat >>confdefs.h
<<\_ACEOF
9563 #define WITH_THREAD 1
9566 # Defining _REENTRANT on system with POSIX threads should not hurt.
9567 cat >>confdefs.h
<<\_ACEOF
9568 #define _REENTRANT 1
9572 THREADOBJ
="Python/thread.o"
9573 elif test "$ac_cv_kpthread" = "yes"
9576 cat >>confdefs.h
<<\_ACEOF
9577 #define WITH_THREAD 1
9581 THREADOBJ
="Python/thread.o"
9583 if test ! -z "$with_threads" -a -d "$with_threads"
9584 then LDFLAGS
="$LDFLAGS -L$with_threads"
9586 if test ! -z "$withval" -a -d "$withval"
9587 then LDFLAGS
="$LDFLAGS -L$withval"
9590 # According to the POSIX spec, a pthreads implementation must
9591 # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?)
9592 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
9593 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
9594 cat >conftest.
$ac_ext <<_ACEOF
9595 #line $LINENO "configure"
9596 #include "confdefs.h"
9598 #ifdef _POSIX_THREADS
9603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9604 egrep "yes" >/dev
/null
2>&1; then
9605 unistd_defines_pthreads
=yes
9607 unistd_defines_pthreads
=no
9611 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
9612 echo "${ECHO_T}$unistd_defines_pthreads" >&6
9614 cat >>confdefs.h
<<\_ACEOF
9615 #define _REENTRANT 1
9618 if test "${ac_cv_header_cthreads_h+set}" = set; then
9619 echo "$as_me:$LINENO: checking for cthreads.h" >&5
9620 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
9621 if test "${ac_cv_header_cthreads_h+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
9625 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
9627 # Is the header compilable?
9628 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
9629 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
9630 cat >conftest.
$ac_ext <<_ACEOF
9631 #line $LINENO "configure"
9632 #include "confdefs.h"
9633 $ac_includes_default
9634 #include <cthreads.h>
9636 rm -f conftest.
$ac_objext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638 (eval $ac_compile) 2>&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try
='test -s conftest.$ac_objext'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_header_compiler
=yes
9650 echo "$as_me: failed program was:" >&5
9651 cat conftest.
$ac_ext >&5
9652 ac_header_compiler
=no
9654 rm -f conftest.
$ac_objext conftest.
$ac_ext
9655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9656 echo "${ECHO_T}$ac_header_compiler" >&6
9658 # Is the header present?
9659 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
9660 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
9661 cat >conftest.
$ac_ext <<_ACEOF
9662 #line $LINENO "configure"
9663 #include "confdefs.h"
9664 #include <cthreads.h>
9666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9667 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9669 egrep -v '^ *\+' conftest.er1
>conftest.err
9671 cat conftest.err
>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } >/dev
/null
; then
9674 if test -s conftest.err
; then
9675 ac_cpp_err
=$ac_c_preproc_warn_flag
9682 if test -z "$ac_cpp_err"; then
9683 ac_header_preproc
=yes
9685 echo "$as_me: failed program was:" >&5
9686 cat conftest.
$ac_ext >&5
9687 ac_header_preproc
=no
9689 rm -f conftest.err conftest.
$ac_ext
9690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9691 echo "${ECHO_T}$ac_header_preproc" >&6
9693 # So? What about this header?
9694 case $ac_header_compiler:$ac_header_preproc in
9696 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
9697 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
9699 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
9701 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
9702 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
9704 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
9708 echo "$as_me:$LINENO: checking for cthreads.h" >&5
9709 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
9710 if test "${ac_cv_header_cthreads_h+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 ac_cv_header_cthreads_h
=$ac_header_preproc
9715 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
9716 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
9719 if test $ac_cv_header_cthreads_h = yes; then
9720 cat >>confdefs.h
<<\_ACEOF
9721 #define WITH_THREAD 1
9724 cat >>confdefs.h
<<\_ACEOF
9729 cat >>confdefs.h
<<\_ACEOF
9730 #define HURD_C_THREADS 1
9733 LIBS
="$LIBS -lthreads"
9734 THREADOBJ
="Python/thread.o"
9737 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
9738 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
9739 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
9740 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
9744 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
9746 # Is the header compilable?
9747 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
9748 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
9749 cat >conftest.
$ac_ext <<_ACEOF
9750 #line $LINENO "configure"
9751 #include "confdefs.h"
9752 $ac_includes_default
9753 #include <mach/cthreads.h>
9755 rm -f conftest.
$ac_objext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757 (eval $ac_compile) 2>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try
='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_header_compiler
=yes
9769 echo "$as_me: failed program was:" >&5
9770 cat conftest.
$ac_ext >&5
9771 ac_header_compiler
=no
9773 rm -f conftest.
$ac_objext conftest.
$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 echo "${ECHO_T}$ac_header_compiler" >&6
9777 # Is the header present?
9778 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
9779 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
9780 cat >conftest.
$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9782 #include "confdefs.h"
9783 #include <mach/cthreads.h>
9785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9786 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9788 egrep -v '^ *\+' conftest.er1
>conftest.err
9790 cat conftest.err
>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } >/dev
/null
; then
9793 if test -s conftest.err
; then
9794 ac_cpp_err
=$ac_c_preproc_warn_flag
9801 if test -z "$ac_cpp_err"; then
9802 ac_header_preproc
=yes
9804 echo "$as_me: failed program was:" >&5
9805 cat conftest.
$ac_ext >&5
9806 ac_header_preproc
=no
9808 rm -f conftest.err conftest.
$ac_ext
9809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9810 echo "${ECHO_T}$ac_header_preproc" >&6
9812 # So? What about this header?
9813 case $ac_header_compiler:$ac_header_preproc in
9815 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
9816 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9817 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
9818 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
9820 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
9821 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
9822 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
9823 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
9825 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
9827 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
9828 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
9829 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
9834 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
9835 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
9838 if test $ac_cv_header_mach_cthreads_h = yes; then
9839 cat >>confdefs.h
<<\_ACEOF
9840 #define WITH_THREAD 1
9843 cat >>confdefs.h
<<\_ACEOF
9848 cat >>confdefs.h
<<\_ACEOF
9849 #define MACH_C_THREADS 1
9852 THREADOBJ
="Python/thread.o"
9855 echo "$as_me:$LINENO: checking for --with-pth" >&5
9856 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
9858 # Check whether --with-pth or --without-pth was given.
9859 if test "${with_pth+set}" = set; then
9862 echo "$as_me:$LINENO: result: $withval" >&5
9863 echo "${ECHO_T}$withval" >&6
9864 cat >>confdefs.h
<<\_ACEOF
9865 #define WITH_THREAD 1
9869 cat >>confdefs.h
<<\_ACEOF
9874 THREADOBJ
="Python/thread.o"
9877 echo "$as_me:$LINENO: result: no" >&5
9878 echo "${ECHO_T}no" >&6
9880 # Just looking for pthread_create in libpthread is not enough:
9881 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
9882 # So we really have to include pthread.h, and then link.
9884 LIBS
="$LIBS -lpthread"
9885 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
9886 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
9887 cat >conftest.
$ac_ext <<_ACEOF
9888 #line $LINENO "configure"
9889 #include "confdefs.h"
9890 #include <pthread.h>
9892 void * start_routine (void *arg) { exit (0); }
9893 #ifdef F77_DUMMY_MAIN
9897 int F77_DUMMY_MAIN() { return 1; }
9903 pthread_create (NULL, NULL, start_routine, NULL)
9908 rm -f conftest.
$ac_objext conftest
$ac_exeext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9910 (eval $ac_link) 2>&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try
='test -s conftest$ac_exeext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9921 echo "$as_me:$LINENO: result: yes" >&5
9922 echo "${ECHO_T}yes" >&6
9923 cat >>confdefs.h
<<\_ACEOF
9924 #define WITH_THREAD 1
9928 THREADOBJ
="Python/thread.o"
9930 echo "$as_me: failed program was:" >&5
9931 cat conftest.
$ac_ext >&5
9934 echo "$as_me:$LINENO: checking for pthread_detach" >&5
9935 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
9936 if test "${ac_cv_func_pthread_detach+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 cat >conftest.
$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9941 #include "confdefs.h"
9942 /* System header to define __stub macros and hopefully few prototypes,
9943 which can conflict with char pthread_detach (); below. */
9945 /* Override any gcc2 internal prototype to avoid an error. */
9949 /* We use char because int might match the return type of a gcc2
9950 builtin and then its argument prototype would still apply. */
9951 char pthread_detach ();
9954 #ifdef F77_DUMMY_MAIN
9958 int F77_DUMMY_MAIN() { return 1; }
9963 /* The GNU C library defines this for functions which it implements
9964 to always fail with ENOSYS. Some functions are actually named
9965 something starting with __ and the normal name is an alias. */
9966 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
9976 rm -f conftest.
$ac_objext conftest
$ac_exeext
9977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9978 (eval $ac_link) 2>&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try
='test -s conftest$ac_exeext'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_func_pthread_detach
=yes
9990 echo "$as_me: failed program was:" >&5
9991 cat conftest.
$ac_ext >&5
9992 ac_cv_func_pthread_detach
=no
9994 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9996 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
9997 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
9998 if test $ac_cv_func_pthread_detach = yes; then
9999 cat >>confdefs.h
<<\_ACEOF
10000 #define WITH_THREAD 1
10004 THREADOBJ
="Python/thread.o"
10007 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10008 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10009 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10010 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10014 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10016 # Is the header compilable?
10017 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
10018 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
10019 cat >conftest.
$ac_ext <<_ACEOF
10020 #line $LINENO "configure"
10021 #include "confdefs.h"
10022 $ac_includes_default
10023 #include <atheos/threads.h>
10025 rm -f conftest.
$ac_objext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try
='test -s conftest.$ac_objext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_header_compiler
=yes
10039 echo "$as_me: failed program was:" >&5
10040 cat conftest.
$ac_ext >&5
10041 ac_header_compiler
=no
10043 rm -f conftest.
$ac_objext conftest.
$ac_ext
10044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10045 echo "${ECHO_T}$ac_header_compiler" >&6
10047 # Is the header present?
10048 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
10049 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
10050 cat >conftest.
$ac_ext <<_ACEOF
10051 #line $LINENO "configure"
10052 #include "confdefs.h"
10053 #include <atheos/threads.h>
10055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10056 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10058 egrep -v '^ *\+' conftest.er1
>conftest.err
10060 cat conftest.err
>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } >/dev
/null
; then
10063 if test -s conftest.err
; then
10064 ac_cpp_err
=$ac_c_preproc_warn_flag
10071 if test -z "$ac_cpp_err"; then
10072 ac_header_preproc
=yes
10074 echo "$as_me: failed program was:" >&5
10075 cat conftest.
$ac_ext >&5
10076 ac_header_preproc
=no
10078 rm -f conftest.err conftest.
$ac_ext
10079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10080 echo "${ECHO_T}$ac_header_preproc" >&6
10082 # So? What about this header?
10083 case $ac_header_compiler:$ac_header_preproc in
10085 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10086 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10088 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10090 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
10091 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
10092 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
10093 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10095 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10097 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10098 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10099 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 ac_cv_header_atheos_threads_h
=$ac_header_preproc
10104 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10105 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10108 if test $ac_cv_header_atheos_threads_h = yes; then
10109 cat >>confdefs.h
<<\_ACEOF
10110 #define WITH_THREAD 1
10114 cat >>confdefs.h
<<\_ACEOF
10115 #define ATHEOS_THREADS 1
10118 THREADOBJ
="Python/thread.o"
10121 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10122 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10123 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10124 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10128 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10130 # Is the header compilable?
10131 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
10132 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
10133 cat >conftest.
$ac_ext <<_ACEOF
10134 #line $LINENO "configure"
10135 #include "confdefs.h"
10136 $ac_includes_default
10137 #include <kernel/OS.h>
10139 rm -f conftest.
$ac_objext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10141 (eval $ac_compile) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try
='test -s conftest.$ac_objext'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10151 ac_header_compiler
=yes
10153 echo "$as_me: failed program was:" >&5
10154 cat conftest.
$ac_ext >&5
10155 ac_header_compiler
=no
10157 rm -f conftest.
$ac_objext conftest.
$ac_ext
10158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10159 echo "${ECHO_T}$ac_header_compiler" >&6
10161 # Is the header present?
10162 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
10163 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
10164 cat >conftest.
$ac_ext <<_ACEOF
10165 #line $LINENO "configure"
10166 #include "confdefs.h"
10167 #include <kernel/OS.h>
10169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10170 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10172 egrep -v '^ *\+' conftest.er1
>conftest.err
10174 cat conftest.err
>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } >/dev
/null
; then
10177 if test -s conftest.err
; then
10178 ac_cpp_err
=$ac_c_preproc_warn_flag
10185 if test -z "$ac_cpp_err"; then
10186 ac_header_preproc
=yes
10188 echo "$as_me: failed program was:" >&5
10189 cat conftest.
$ac_ext >&5
10190 ac_header_preproc
=no
10192 rm -f conftest.err conftest.
$ac_ext
10193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10194 echo "${ECHO_T}$ac_header_preproc" >&6
10196 # So? What about this header?
10197 case $ac_header_compiler:$ac_header_preproc in
10199 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
10200 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10201 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10202 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10204 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
10205 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
10207 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10209 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10211 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10212 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10213 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 ac_cv_header_kernel_OS_h
=$ac_header_preproc
10218 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10219 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10222 if test $ac_cv_header_kernel_OS_h = yes; then
10223 cat >>confdefs.h
<<\_ACEOF
10224 #define WITH_THREAD 1
10228 cat >>confdefs.h
<<\_ACEOF
10229 #define BEOS_THREADS 1
10232 THREADOBJ
="Python/thread.o"
10235 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
10236 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
10237 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 ac_check_lib_save_LIBS
=$LIBS
10241 LIBS
="-lpthreads $LIBS"
10242 cat >conftest.
$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 #include "confdefs.h"
10246 /* Override any gcc2 internal prototype to avoid an error. */
10250 /* We use char because int might match the return type of a gcc2
10251 builtin and then its argument prototype would still apply. */
10252 char pthread_create ();
10253 #ifdef F77_DUMMY_MAIN
10254 # ifdef __cplusplus
10257 int F77_DUMMY_MAIN() { return 1; }
10267 rm -f conftest.
$ac_objext conftest
$ac_exeext
10268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10269 (eval $ac_link) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try
='test -s conftest$ac_exeext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_cv_lib_pthreads_pthread_create
=yes
10281 echo "$as_me: failed program was:" >&5
10282 cat conftest.
$ac_ext >&5
10283 ac_cv_lib_pthreads_pthread_create
=no
10285 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10286 LIBS
=$ac_check_lib_save_LIBS
10288 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
10289 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
10290 if test $ac_cv_lib_pthreads_pthread_create = yes; then
10291 cat >>confdefs.h
<<\_ACEOF
10292 #define WITH_THREAD 1
10296 LIBS
="$LIBS -lpthreads"
10297 THREADOBJ
="Python/thread.o"
10300 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
10301 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
10302 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 ac_check_lib_save_LIBS
=$LIBS
10307 cat >conftest.
$ac_ext <<_ACEOF
10308 #line $LINENO "configure"
10309 #include "confdefs.h"
10311 /* Override any gcc2 internal prototype to avoid an error. */
10315 /* We use char because int might match the return type of a gcc2
10316 builtin and then its argument prototype would still apply. */
10317 char pthread_create ();
10318 #ifdef F77_DUMMY_MAIN
10319 # ifdef __cplusplus
10322 int F77_DUMMY_MAIN() { return 1; }
10332 rm -f conftest.
$ac_objext conftest
$ac_exeext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334 (eval $ac_link) 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try
='test -s conftest$ac_exeext'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 ac_cv_lib_c_r_pthread_create
=yes
10346 echo "$as_me: failed program was:" >&5
10347 cat conftest.
$ac_ext >&5
10348 ac_cv_lib_c_r_pthread_create
=no
10350 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10351 LIBS
=$ac_check_lib_save_LIBS
10353 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
10354 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
10355 if test $ac_cv_lib_c_r_pthread_create = yes; then
10356 cat >>confdefs.h
<<\_ACEOF
10357 #define WITH_THREAD 1
10362 THREADOBJ
="Python/thread.o"
10365 echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5
10366 echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6
10367 if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 ac_check_lib_save_LIBS
=$LIBS
10371 LIBS
="-lthread $LIBS"
10372 cat >conftest.
$ac_ext <<_ACEOF
10373 #line $LINENO "configure"
10374 #include "confdefs.h"
10376 /* Override any gcc2 internal prototype to avoid an error. */
10380 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */
10382 char __d6_pthread_create ();
10383 #ifdef F77_DUMMY_MAIN
10384 # ifdef __cplusplus
10387 int F77_DUMMY_MAIN() { return 1; }
10392 __d6_pthread_create ();
10397 rm -f conftest.
$ac_objext conftest
$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try
='test -s conftest$ac_exeext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_lib_thread___d6_pthread_create
=yes
10411 echo "$as_me: failed program was:" >&5
10412 cat conftest.
$ac_ext >&5
10413 ac_cv_lib_thread___d6_pthread_create
=no
10415 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10416 LIBS
=$ac_check_lib_save_LIBS
10418 echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5
10419 echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6
10420 if test $ac_cv_lib_thread___d6_pthread_create = yes; then
10421 cat >>confdefs.h
<<\_ACEOF
10422 #define WITH_THREAD 1
10426 LIBS
="$LIBS -lthread"
10427 THREADOBJ
="Python/thread.o"
10430 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
10431 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
10432 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 ac_check_lib_save_LIBS
=$LIBS
10436 LIBS
="-lpthread $LIBS"
10437 cat >conftest.
$ac_ext <<_ACEOF
10438 #line $LINENO "configure"
10439 #include "confdefs.h"
10441 /* Override any gcc2 internal prototype to avoid an error. */
10445 /* We use char because int might match the return type of a gcc2
10446 builtin and then its argument prototype would still apply. */
10447 char __pthread_create_system ();
10448 #ifdef F77_DUMMY_MAIN
10449 # ifdef __cplusplus
10452 int F77_DUMMY_MAIN() { return 1; }
10457 __pthread_create_system ();
10462 rm -f conftest.
$ac_objext conftest
$ac_exeext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464 (eval $ac_link) 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try
='test -s conftest$ac_exeext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_lib_pthread___pthread_create_system
=yes
10476 echo "$as_me: failed program was:" >&5
10477 cat conftest.
$ac_ext >&5
10478 ac_cv_lib_pthread___pthread_create_system
=no
10480 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10481 LIBS
=$ac_check_lib_save_LIBS
10483 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
10484 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
10485 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
10486 cat >>confdefs.h
<<\_ACEOF
10487 #define WITH_THREAD 1
10491 LIBS
="$LIBS -lpthread"
10492 THREADOBJ
="Python/thread.o"
10495 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
10496 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
10497 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 ac_check_lib_save_LIBS
=$LIBS
10502 cat >conftest.
$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10504 #include "confdefs.h"
10506 /* Override any gcc2 internal prototype to avoid an error. */
10510 /* We use char because int might match the return type of a gcc2
10511 builtin and then its argument prototype would still apply. */
10512 char pthread_create ();
10513 #ifdef F77_DUMMY_MAIN
10514 # ifdef __cplusplus
10517 int F77_DUMMY_MAIN() { return 1; }
10527 rm -f conftest.
$ac_objext conftest
$ac_exeext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529 (eval $ac_link) 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try
='test -s conftest$ac_exeext'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 ac_cv_lib_cma_pthread_create
=yes
10541 echo "$as_me: failed program was:" >&5
10542 cat conftest.
$ac_ext >&5
10543 ac_cv_lib_cma_pthread_create
=no
10545 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10546 LIBS
=$ac_check_lib_save_LIBS
10548 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
10549 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
10550 if test $ac_cv_lib_cma_pthread_create = yes; then
10551 cat >>confdefs.h
<<\_ACEOF
10552 #define WITH_THREAD 1
10557 THREADOBJ
="Python/thread.o"
10560 USE_THREAD_MODULE
="#"
10581 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10590 if test "$posix_threads" = "yes"; then
10591 if test "$unistd_defines_pthreads" = "no"; then
10593 cat >>confdefs.h
<<\_ACEOF
10594 #define _POSIX_THREADS 1
10599 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10600 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
10601 if test "${ac_cv_pthread_system_supported+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 if test "$cross_compiling" = yes; then
10605 ac_cv_pthread_system_supported
=no
10607 cat >conftest.
$ac_ext <<_ACEOF
10608 #line $LINENO "configure"
10609 #include "confdefs.h"
10610 #include <pthread.h>
10611 void *foo(void *parm) {
10615 pthread_attr_t attr;
10617 if (pthread_attr_init(&attr)) exit(-1);
10618 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
10619 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
10623 rm -f conftest
$ac_exeext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10634 ac_cv_pthread_system_supported
=yes
10636 echo "$as_me: program exited with status $ac_status" >&5
10637 echo "$as_me: failed program was:" >&5
10638 cat conftest.
$ac_ext >&5
10639 ( exit $ac_status )
10640 ac_cv_pthread_system_supported
=no
10642 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10647 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
10648 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
10649 if test "$ac_cv_pthread_system_supported" = "yes"; then
10651 cat >>confdefs.h
<<\_ACEOF
10652 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
10657 for ac_func
in pthread_sigmask
10659 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10660 echo "$as_me:$LINENO: checking for $ac_func" >&5
10661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10662 if eval "test \"\${$as_ac_var+set}\" = set"; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 cat >conftest.
$ac_ext <<_ACEOF
10666 #line $LINENO "configure"
10667 #include "confdefs.h"
10668 /* System header to define __stub macros and hopefully few prototypes,
10669 which can conflict with char $ac_func (); below. */
10670 #include <assert.h>
10671 /* Override any gcc2 internal prototype to avoid an error. */
10675 /* We use char because int might match the return type of a gcc2
10676 builtin and then its argument prototype would still apply. */
10680 #ifdef F77_DUMMY_MAIN
10681 # ifdef __cplusplus
10684 int F77_DUMMY_MAIN() { return 1; }
10689 /* The GNU C library defines this for functions which it implements
10690 to always fail with ENOSYS. Some functions are actually named
10691 something starting with __ and the normal name is an alias. */
10692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10702 rm -f conftest.
$ac_objext conftest
$ac_exeext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10704 (eval $ac_link) 2>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try
='test -s conftest$ac_exeext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 eval "$as_ac_var=yes"
10716 echo "$as_me: failed program was:" >&5
10717 cat conftest.
$ac_ext >&5
10718 eval "$as_ac_var=no"
10720 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10724 if test `eval echo '${'$as_ac_var'}'` = yes; then
10725 cat >>confdefs.h
<<_ACEOF
10726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10734 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
10735 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
10736 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 ac_check_lib_save_LIBS
=$LIBS
10741 cat >conftest.
$ac_ext <<_ACEOF
10742 #line $LINENO "configure"
10743 #include "confdefs.h"
10745 /* Override any gcc2 internal prototype to avoid an error. */
10749 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10752 #ifdef F77_DUMMY_MAIN
10753 # ifdef __cplusplus
10756 int F77_DUMMY_MAIN() { return 1; }
10766 rm -f conftest.
$ac_objext conftest
$ac_exeext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10768 (eval $ac_link) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try
='test -s conftest$ac_exeext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_lib_mpc_usconfig
=yes
10780 echo "$as_me: failed program was:" >&5
10781 cat conftest.
$ac_ext >&5
10782 ac_cv_lib_mpc_usconfig
=no
10784 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10785 LIBS
=$ac_check_lib_save_LIBS
10787 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
10788 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
10789 if test $ac_cv_lib_mpc_usconfig = yes; then
10790 cat >>confdefs.h
<<\_ACEOF
10791 #define WITH_THREAD 1
10795 THREADOBJ
="Python/thread.o"
10796 USE_THREAD_MODULE
=""
10800 if test $posix_threads != "yes"; then
10801 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
10802 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
10803 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 ac_check_lib_save_LIBS
=$LIBS
10807 LIBS
="-lthread $LIBS"
10808 cat >conftest.
$ac_ext <<_ACEOF
10809 #line $LINENO "configure"
10810 #include "confdefs.h"
10812 /* Override any gcc2 internal prototype to avoid an error. */
10816 /* We use char because int might match the return type of a gcc2
10817 builtin and then its argument prototype would still apply. */
10818 char thr_create ();
10819 #ifdef F77_DUMMY_MAIN
10820 # ifdef __cplusplus
10823 int F77_DUMMY_MAIN() { return 1; }
10833 rm -f conftest.
$ac_objext conftest
$ac_exeext
10834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835 (eval $ac_link) 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try
='test -s conftest$ac_exeext'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 ac_cv_lib_thread_thr_create
=yes
10847 echo "$as_me: failed program was:" >&5
10848 cat conftest.
$ac_ext >&5
10849 ac_cv_lib_thread_thr_create
=no
10851 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10852 LIBS
=$ac_check_lib_save_LIBS
10854 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
10855 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
10856 if test $ac_cv_lib_thread_thr_create = yes; then
10857 cat >>confdefs.h
<<\_ACEOF
10858 #define WITH_THREAD 1
10861 LIBS
="$LIBS -lthread"
10862 THREADOBJ
="Python/thread.o"
10863 USE_THREAD_MODULE
=""
10868 if test "$USE_THREAD_MODULE" != "#"
10870 # If the above checks didn't disable threads, (at least) OSF1
10871 # needs this '-threads' argument during linking.
10872 case $ac_sys_system in
10873 OSF1
) LDLAST
=-threads;;
10878 # Check for enable-ipv6
10881 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
10882 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
10883 # Check whether --enable-ipv6 or --disable-ipv6 was given.
10884 if test "${enable_ipv6+set}" = set; then
10885 enableval
="$enable_ipv6"
10886 case "$enableval" in
10888 echo "$as_me:$LINENO: result: no" >&5
10889 echo "${ECHO_T}no" >&6
10892 *) echo "$as_me:$LINENO: result: yes" >&5
10893 echo "${ECHO_T}yes" >&6
10894 cat >>confdefs.h
<<\_ACEOF
10895 #define ENABLE_IPV6 1
10903 if test "$cross_compiling" = yes; then
10904 echo "$as_me:$LINENO: result: no" >&5
10905 echo "${ECHO_T}no" >&6
10909 cat >conftest.
$ac_ext <<_ACEOF
10910 #line $LINENO "configure"
10911 #include "confdefs.h"
10912 /* AF_INET6 available check */
10913 #include <sys/types.h>
10914 #include <sys/socket.h>
10917 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
10924 rm -f conftest
$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 echo "$as_me:$LINENO: result: yes" >&5
10936 echo "${ECHO_T}yes" >&6
10939 echo "$as_me: program exited with status $ac_status" >&5
10940 echo "$as_me: failed program was:" >&5
10941 cat conftest.
$ac_ext >&5
10942 ( exit $ac_status )
10943 echo "$as_me:$LINENO: result: no" >&5
10944 echo "${ECHO_T}no" >&6
10947 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10950 if test "$ipv6" = "yes"; then
10951 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
10952 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
10953 cat >conftest.
$ac_ext <<_ACEOF
10954 #line $LINENO "configure"
10955 #include "confdefs.h"
10956 #include <sys/types.h>
10957 #include <netinet/in.h>
10958 #ifdef F77_DUMMY_MAIN
10959 # ifdef __cplusplus
10962 int F77_DUMMY_MAIN() { return 1; }
10967 struct sockaddr_in6 x;
10973 rm -f conftest.
$ac_objext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10975 (eval $ac_compile) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try
='test -s conftest.$ac_objext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 echo "$as_me:$LINENO: result: yes" >&5
10986 echo "${ECHO_T}yes" >&6
10989 echo "$as_me: failed program was:" >&5
10990 cat conftest.
$ac_ext >&5
10991 echo "$as_me:$LINENO: result: no" >&5
10992 echo "${ECHO_T}no" >&6
10995 rm -f conftest.
$ac_objext conftest.
$ac_ext
10998 if test "$ipv6" = "yes"; then
10999 cat >>confdefs.h
<<\_ACEOF
11000 #define ENABLE_IPV6 1
11011 if test "$ipv6" = "yes"; then
11012 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
11013 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
11014 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
11018 cat >conftest.
$ac_ext <<_ACEOF
11019 #line $LINENO "configure"
11020 #include "confdefs.h"
11022 #include <netinet/in.h>
11023 #ifdef IPV6_INRIA_VERSION
11027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11028 egrep "yes" >/dev
/null
2>&1; then
11035 cat >conftest.
$ac_ext <<_ACEOF
11036 #line $LINENO "configure"
11037 #include "confdefs.h"
11039 #include <netinet/in.h>
11044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11045 egrep "yes" >/dev
/null
2>&1; then
11048 ipv6libdir
=/usr
/local
/v
6/lib
11055 cat >conftest.
$ac_ext <<_ACEOF
11056 #line $LINENO "configure"
11057 #include "confdefs.h"
11059 #include <features.h>
11060 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11065 egrep "yes" >/dev
/null
2>&1; then
11073 if test -d /usr
/inet6
; then
11076 ipv6libdir
=/usr
/inet
6/lib
11077 OPT
="-I/usr/inet6/include $OPT"
11081 if test -f /etc
/netconfig
; then
11082 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
11089 cat >conftest.
$ac_ext <<_ACEOF
11090 #line $LINENO "configure"
11091 #include "confdefs.h"
11093 #include <sys/param.h>
11094 #ifdef _TOSHIBA_INET6
11098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11099 egrep "yes" >/dev
/null
2>&1; then
11102 ipv6libdir
=/usr
/local
/v
6/lib
11108 cat >conftest.
$ac_ext <<_ACEOF
11109 #line $LINENO "configure"
11110 #include "confdefs.h"
11112 #include </usr/local/v6/include/sys/v6config.h>
11117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11118 egrep "yes" >/dev
/null
2>&1; then
11121 ipv6libdir
=/usr
/local
/v
6/lib
;
11122 OPT
="-I/usr/local/v6/include $OPT"
11128 cat >conftest.
$ac_ext <<_ACEOF
11129 #line $LINENO "configure"
11130 #include "confdefs.h"
11132 #include <sys/param.h>
11133 #ifdef _ZETA_MINAMI_INET6
11137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11138 egrep "yes" >/dev
/null
2>&1; then
11141 ipv6libdir
=/usr
/local
/v
6/lib
11147 if test "$ipv6type" != "unknown"; then
11151 echo "$as_me:$LINENO: result: $ipv6type" >&5
11152 echo "${ECHO_T}$ipv6type" >&6
11155 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11156 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
11157 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
11158 echo "using lib$ipv6lib"
11160 if test $ipv6trylibc = "yes"; then
11163 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11164 echo "You need to fetch lib$ipv6lib.a from appropriate"
11165 echo 'ipv6 kit and compile beforehand.'
11171 # Check for universal newline support
11172 echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5
11173 echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6
11175 # Check whether --with-universal-newlines or --without-universal-newlines was given.
11176 if test "${with_universal_newlines+set}" = set; then
11177 withval
="$with_universal_newlines"
11181 if test -z "$with_universal_newlines"
11182 then with_universal_newlines
="yes"
11184 if test "$with_universal_newlines" != "no"
11187 cat >>confdefs.h
<<\_ACEOF
11188 #define WITH_UNIVERSAL_NEWLINES 1
11192 echo "$as_me:$LINENO: result: $with_universal_newlines" >&5
11193 echo "${ECHO_T}$with_universal_newlines" >&6
11195 # Check for --with-doc-strings
11196 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
11197 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
11199 # Check whether --with-doc-strings or --without-doc-strings was given.
11200 if test "${with_doc_strings+set}" = set; then
11201 withval
="$with_doc_strings"
11205 if test -z "$with_doc_strings"
11206 then with_doc_strings
="yes"
11208 if test "$with_doc_strings" != "no"
11211 cat >>confdefs.h
<<\_ACEOF
11212 #define WITH_DOC_STRINGS 1
11216 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
11217 echo "${ECHO_T}$with_doc_strings" >&6
11219 # Check for Python-specific malloc support
11220 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
11221 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
11223 # Check whether --with-pymalloc or --without-pymalloc was given.
11224 if test "${with_pymalloc+set}" = set; then
11225 withval
="$with_pymalloc"
11229 if test -z "$with_pymalloc"
11230 then with_pymalloc
="yes"
11232 if test "$with_pymalloc" != "no"
11235 cat >>confdefs.h
<<\_ACEOF
11236 #define WITH_PYMALLOC 1
11240 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
11241 echo "${ECHO_T}$with_pymalloc" >&6
11243 # Check for --with-wctype-functions
11244 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
11245 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
11247 # Check whether --with-wctype-functions or --without-wctype-functions was given.
11248 if test "${with_wctype_functions+set}" = set; then
11249 withval
="$with_wctype_functions"
11251 if test "$withval" != no
11254 cat >>confdefs.h
<<\_ACEOF
11255 #define WANT_WCTYPE_FUNCTIONS 1
11258 echo "$as_me:$LINENO: result: yes" >&5
11259 echo "${ECHO_T}yes" >&6
11260 else echo "$as_me:$LINENO: result: no" >&5
11261 echo "${ECHO_T}no" >&6
11264 echo "$as_me:$LINENO: result: no" >&5
11265 echo "${ECHO_T}no" >&6
11268 # -I${DLINCLDIR} is added to the compile rule for importdl.o
11272 echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5
11273 echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6
11275 # Check whether --with-sgi-dl or --without-sgi-dl was given.
11276 if test "${with_sgi_dl+set}" = set; then
11277 withval
="$with_sgi_dl"
11279 echo "$as_me:$LINENO: result: $withval" >&5
11280 echo "${ECHO_T}$withval" >&6
11282 cat >>confdefs.h
<<\_ACEOF
11283 #define WITH_SGI_DL 1
11286 DYNLOADFILE
="dynload_dl.o"
11288 if test ! -z "$dldir" -a -d "$dldir"
11289 then LDFLAGS
="$LDFLAGS -L$dldir"
11290 else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5
11291 echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;}
11292 { (exit 1); exit 1; }; }
11295 LIBS
="$LIBS -ldl -lmld"
11297 echo "$as_me:$LINENO: result: no" >&5
11298 echo "${ECHO_T}no" >&6
11301 echo "$as_me:$LINENO: checking for --with-dl-dld" >&5
11302 echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6
11304 # Check whether --with-dl-dld or --without-dl-dld was given.
11305 if test "${with_dl_dld+set}" = set; then
11306 withval
="$with_dl_dld"
11308 echo "$as_me:$LINENO: result: $withval" >&5
11309 echo "${ECHO_T}$withval" >&6
11311 cat >>confdefs.h
<<\_ACEOF
11312 #define WITH_DL_DLD 1
11315 DYNLOADFILE
="dynload_dl.o"
11316 dldir
=`echo "$withval" | sed 's/,.*//'`
11317 dlddir
=`echo "$withval" | sed 's/.*,//'`
11318 if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
11319 then LDFLAGS
="$LDFLAGS -L$dldir -L$dlddir"
11320 else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5
11321 echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;}
11322 { (exit DLD_DIRECTORY
); exit DLD_DIRECTORY
; }; }
11325 LIBS
="$LIBS -ldl -ldld"
11327 echo "$as_me:$LINENO: result: no" >&5
11328 echo "${ECHO_T}no" >&6
11331 # the dlopen() function means we might want to use dynload_shlib.o. some
11332 # platforms, such as AIX, have dlopen(), but don't want to use it.
11334 for ac_func
in dlopen
11336 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11337 echo "$as_me:$LINENO: checking for $ac_func" >&5
11338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11339 if eval "test \"\${$as_ac_var+set}\" = set"; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 cat >conftest.
$ac_ext <<_ACEOF
11343 #line $LINENO "configure"
11344 #include "confdefs.h"
11345 /* System header to define __stub macros and hopefully few prototypes,
11346 which can conflict with char $ac_func (); below. */
11347 #include <assert.h>
11348 /* Override any gcc2 internal prototype to avoid an error. */
11352 /* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */
11357 #ifdef F77_DUMMY_MAIN
11358 # ifdef __cplusplus
11361 int F77_DUMMY_MAIN() { return 1; }
11366 /* The GNU C library defines this for functions which it implements
11367 to always fail with ENOSYS. Some functions are actually named
11368 something starting with __ and the normal name is an alias. */
11369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11379 rm -f conftest.
$ac_objext conftest
$ac_exeext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11381 (eval $ac_link) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try
='test -s conftest$ac_exeext'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }; then
11391 eval "$as_ac_var=yes"
11393 echo "$as_me: failed program was:" >&5
11394 cat conftest.
$ac_ext >&5
11395 eval "$as_ac_var=no"
11397 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11401 if test `eval echo '${'$as_ac_var'}'` = yes; then
11402 cat >>confdefs.h
<<_ACEOF
11403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11410 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11411 # loading of modules.
11413 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
11414 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
11415 if test -z "$DYNLOADFILE"
11417 case $ac_sys_system/$ac_sys_release in
11418 AIX
*) DYNLOADFILE
="dynload_aix.o";;
11419 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
11420 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
11421 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
11422 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
11424 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
11425 # out any dynamic loading
11426 if test "$ac_cv_func_dlopen" = yes
11427 then DYNLOADFILE
="dynload_shlib.o"
11428 else DYNLOADFILE
="dynload_stub.o"
11433 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
11434 echo "${ECHO_T}$DYNLOADFILE" >&6
11435 if test "$DYNLOADFILE" != "dynload_stub.o"
11438 cat >>confdefs.h
<<\_ACEOF
11439 #define HAVE_DYNAMIC_LOADING 1
11444 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
11447 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
11448 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
11449 if test -z "$MACHDEP_OBJS"
11451 MACHDEP_OBJS
=$extra_machdep_objs
11453 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
11455 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
11456 echo "${ECHO_T}MACHDEP_OBJS" >&6
11458 # checks for library functions
11537 for ac_func
in alarm chown chroot
clock confstr ctermid ctermid_r execv \
11538 fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \
11539 gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \
11540 hstrerror inet_pton
kill killpg lchown link lstat
mkfifo mknod mktime \
11541 mremap nice pathconf pause plock poll pthread_init \
11543 select setegid seteuid setgid setgroups \
11544 setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \
11545 sigaction siginterrupt sigrelse strftime strptime symlink \
11546 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
11547 truncate uname unsetenv utimes waitpid _getpty getpriority
11549 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11550 echo "$as_me:$LINENO: checking for $ac_func" >&5
11551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11552 if eval "test \"\${$as_ac_var+set}\" = set"; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 cat >conftest.
$ac_ext <<_ACEOF
11556 #line $LINENO "configure"
11557 #include "confdefs.h"
11558 /* System header to define __stub macros and hopefully few prototypes,
11559 which can conflict with char $ac_func (); below. */
11560 #include <assert.h>
11561 /* Override any gcc2 internal prototype to avoid an error. */
11565 /* We use char because int might match the return type of a gcc2
11566 builtin and then its argument prototype would still apply. */
11570 #ifdef F77_DUMMY_MAIN
11571 # ifdef __cplusplus
11574 int F77_DUMMY_MAIN() { return 1; }
11579 /* The GNU C library defines this for functions which it implements
11580 to always fail with ENOSYS. Some functions are actually named
11581 something starting with __ and the normal name is an alias. */
11582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11592 rm -f conftest.
$ac_objext conftest
$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594 (eval $ac_link) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try
='test -s conftest$ac_exeext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 eval "$as_ac_var=yes"
11606 echo "$as_me: failed program was:" >&5
11607 cat conftest.
$ac_ext >&5
11608 eval "$as_ac_var=no"
11610 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615 cat >>confdefs.h
<<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11623 # check for openpty and forkpty
11626 for ac_func
in openpty
11628 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11629 echo "$as_me:$LINENO: checking for $ac_func" >&5
11630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11631 if eval "test \"\${$as_ac_var+set}\" = set"; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 cat >conftest.
$ac_ext <<_ACEOF
11635 #line $LINENO "configure"
11636 #include "confdefs.h"
11637 /* System header to define __stub macros and hopefully few prototypes,
11638 which can conflict with char $ac_func (); below. */
11639 #include <assert.h>
11640 /* Override any gcc2 internal prototype to avoid an error. */
11644 /* We use char because int might match the return type of a gcc2
11645 builtin and then its argument prototype would still apply. */
11649 #ifdef F77_DUMMY_MAIN
11650 # ifdef __cplusplus
11653 int F77_DUMMY_MAIN() { return 1; }
11658 /* The GNU C library defines this for functions which it implements
11659 to always fail with ENOSYS. Some functions are actually named
11660 something starting with __ and the normal name is an alias. */
11661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11671 rm -f conftest.
$ac_objext conftest
$ac_exeext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673 (eval $ac_link) 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try
='test -s conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 eval "$as_ac_var=yes"
11685 echo "$as_me: failed program was:" >&5
11686 cat conftest.
$ac_ext >&5
11687 eval "$as_ac_var=no"
11689 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11693 if test `eval echo '${'$as_ac_var'}'` = yes; then
11694 cat >>confdefs.h
<<_ACEOF
11695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11699 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
11700 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
11701 if test "${ac_cv_lib_util_openpty+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 ac_check_lib_save_LIBS
=$LIBS
11705 LIBS
="-lutil $LIBS"
11706 cat >conftest.
$ac_ext <<_ACEOF
11707 #line $LINENO "configure"
11708 #include "confdefs.h"
11710 /* Override any gcc2 internal prototype to avoid an error. */
11714 /* We use char because int might match the return type of a gcc2
11715 builtin and then its argument prototype would still apply. */
11717 #ifdef F77_DUMMY_MAIN
11718 # ifdef __cplusplus
11721 int F77_DUMMY_MAIN() { return 1; }
11731 rm -f conftest.
$ac_objext conftest
$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try
='test -s conftest$ac_exeext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 ac_cv_lib_util_openpty
=yes
11745 echo "$as_me: failed program was:" >&5
11746 cat conftest.
$ac_ext >&5
11747 ac_cv_lib_util_openpty
=no
11749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11750 LIBS
=$ac_check_lib_save_LIBS
11752 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
11753 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
11754 if test $ac_cv_lib_util_openpty = yes; then
11755 cat >>confdefs.h
<<\_ACEOF
11756 #define HAVE_OPENPTY 1
11758 LIBS
="$LIBS -lutil"
11765 for ac_func
in forkpty
11767 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11768 echo "$as_me:$LINENO: checking for $ac_func" >&5
11769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11770 if eval "test \"\${$as_ac_var+set}\" = set"; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 cat >conftest.
$ac_ext <<_ACEOF
11774 #line $LINENO "configure"
11775 #include "confdefs.h"
11776 /* System header to define __stub macros and hopefully few prototypes,
11777 which can conflict with char $ac_func (); below. */
11778 #include <assert.h>
11779 /* Override any gcc2 internal prototype to avoid an error. */
11783 /* We use char because int might match the return type of a gcc2
11784 builtin and then its argument prototype would still apply. */
11788 #ifdef F77_DUMMY_MAIN
11789 # ifdef __cplusplus
11792 int F77_DUMMY_MAIN() { return 1; }
11797 /* The GNU C library defines this for functions which it implements
11798 to always fail with ENOSYS. Some functions are actually named
11799 something starting with __ and the normal name is an alias. */
11800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11810 rm -f conftest.
$ac_objext conftest
$ac_exeext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812 (eval $ac_link) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try
='test -s conftest$ac_exeext'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 eval "$as_ac_var=yes"
11824 echo "$as_me: failed program was:" >&5
11825 cat conftest.
$ac_ext >&5
11826 eval "$as_ac_var=no"
11828 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11832 if test `eval echo '${'$as_ac_var'}'` = yes; then
11833 cat >>confdefs.h
<<_ACEOF
11834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11838 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
11839 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
11840 if test "${ac_cv_lib_util_forkpty+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 ac_check_lib_save_LIBS
=$LIBS
11844 LIBS
="-lutil $LIBS"
11845 cat >conftest.
$ac_ext <<_ACEOF
11846 #line $LINENO "configure"
11847 #include "confdefs.h"
11849 /* Override any gcc2 internal prototype to avoid an error. */
11853 /* We use char because int might match the return type of a gcc2
11854 builtin and then its argument prototype would still apply. */
11856 #ifdef F77_DUMMY_MAIN
11857 # ifdef __cplusplus
11860 int F77_DUMMY_MAIN() { return 1; }
11870 rm -f conftest.
$ac_objext conftest
$ac_exeext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11872 (eval $ac_link) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } &&
11876 { ac_try
='test -s conftest$ac_exeext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_cv_lib_util_forkpty
=yes
11884 echo "$as_me: failed program was:" >&5
11885 cat conftest.
$ac_ext >&5
11886 ac_cv_lib_util_forkpty
=no
11888 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11889 LIBS
=$ac_check_lib_save_LIBS
11891 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
11892 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
11893 if test $ac_cv_lib_util_forkpty = yes; then
11894 cat >>confdefs.h
<<\_ACEOF
11895 #define HAVE_FORKPTY 1
11897 LIBS
="$LIBS -lutil"
11904 # check for long file support functions
11911 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
11913 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11914 echo "$as_me:$LINENO: checking for $ac_func" >&5
11915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11916 if eval "test \"\${$as_ac_var+set}\" = set"; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 cat >conftest.
$ac_ext <<_ACEOF
11920 #line $LINENO "configure"
11921 #include "confdefs.h"
11922 /* System header to define __stub macros and hopefully few prototypes,
11923 which can conflict with char $ac_func (); below. */
11924 #include <assert.h>
11925 /* Override any gcc2 internal prototype to avoid an error. */
11929 /* We use char because int might match the return type of a gcc2
11930 builtin and then its argument prototype would still apply. */
11934 #ifdef F77_DUMMY_MAIN
11935 # ifdef __cplusplus
11938 int F77_DUMMY_MAIN() { return 1; }
11943 /* The GNU C library defines this for functions which it implements
11944 to always fail with ENOSYS. Some functions are actually named
11945 something starting with __ and the normal name is an alias. */
11946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11956 rm -f conftest.
$ac_objext conftest
$ac_exeext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958 (eval $ac_link) 2>&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try
='test -s conftest$ac_exeext'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 eval "$as_ac_var=yes"
11970 echo "$as_me: failed program was:" >&5
11971 cat conftest.
$ac_ext >&5
11972 eval "$as_ac_var=no"
11974 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11978 if test `eval echo '${'$as_ac_var'}'` = yes; then
11979 cat >>confdefs.h
<<_ACEOF
11980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11992 for ac_func
in dup2 getcwd strdup strerror memmove
11994 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11995 echo "$as_me:$LINENO: checking for $ac_func" >&5
11996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11997 if eval "test \"\${$as_ac_var+set}\" = set"; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 cat >conftest.
$ac_ext <<_ACEOF
12001 #line $LINENO "configure"
12002 #include "confdefs.h"
12003 /* System header to define __stub macros and hopefully few prototypes,
12004 which can conflict with char $ac_func (); below. */
12005 #include <assert.h>
12006 /* Override any gcc2 internal prototype to avoid an error. */
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12015 #ifdef F77_DUMMY_MAIN
12016 # ifdef __cplusplus
12019 int F77_DUMMY_MAIN() { return 1; }
12024 /* The GNU C library defines this for functions which it implements
12025 to always fail with ENOSYS. Some functions are actually named
12026 something starting with __ and the normal name is an alias. */
12027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12037 rm -f conftest.
$ac_objext conftest
$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try
='test -s conftest$ac_exeext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 eval "$as_ac_var=yes"
12051 echo "$as_me: failed program was:" >&5
12052 cat conftest.
$ac_ext >&5
12053 eval "$as_ac_var=no"
12055 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12059 if test `eval echo '${'$as_ac_var'}'` = yes; then
12060 cat >>confdefs.h
<<_ACEOF
12061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12065 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
12071 for ac_func
in getpgrp
12073 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12074 echo "$as_me:$LINENO: checking for $ac_func" >&5
12075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12076 if eval "test \"\${$as_ac_var+set}\" = set"; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 cat >conftest.
$ac_ext <<_ACEOF
12080 #line $LINENO "configure"
12081 #include "confdefs.h"
12082 /* System header to define __stub macros and hopefully few prototypes,
12083 which can conflict with char $ac_func (); below. */
12084 #include <assert.h>
12085 /* Override any gcc2 internal prototype to avoid an error. */
12089 /* We use char because int might match the return type of a gcc2
12090 builtin and then its argument prototype would still apply. */
12094 #ifdef F77_DUMMY_MAIN
12095 # ifdef __cplusplus
12098 int F77_DUMMY_MAIN() { return 1; }
12103 /* The GNU C library defines this for functions which it implements
12104 to always fail with ENOSYS. Some functions are actually named
12105 something starting with __ and the normal name is an alias. */
12106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12116 rm -f conftest.
$ac_objext conftest
$ac_exeext
12117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12118 (eval $ac_link) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try
='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 eval "$as_ac_var=yes"
12130 echo "$as_me: failed program was:" >&5
12131 cat conftest.
$ac_ext >&5
12132 eval "$as_ac_var=no"
12134 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12138 if test `eval echo '${'$as_ac_var'}'` = yes; then
12139 cat >>confdefs.h
<<_ACEOF
12140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12142 cat >conftest.
$ac_ext <<_ACEOF
12143 #line $LINENO "configure"
12144 #include "confdefs.h"
12145 #include <unistd.h>
12146 #ifdef F77_DUMMY_MAIN
12147 # ifdef __cplusplus
12150 int F77_DUMMY_MAIN() { return 1; }
12160 rm -f conftest.
$ac_objext
12161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12162 (eval $ac_compile) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try
='test -s conftest.$ac_objext'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12173 cat >>confdefs.h
<<\_ACEOF
12174 #define GETPGRP_HAVE_ARG 1
12179 echo "$as_me: failed program was:" >&5
12180 cat conftest.
$ac_ext >&5
12182 rm -f conftest.
$ac_objext conftest.
$ac_ext
12187 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
12188 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
12189 if test "${ac_cv_func_setpgrp_void+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 if test "$cross_compiling" = yes; then
12193 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
12194 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
12195 { (exit 1); exit 1; }; }
12197 cat >conftest.
$ac_ext <<_ACEOF
12198 #line $LINENO "configure"
12199 #include "confdefs.h"
12201 # include <unistd.h>
12204 #ifdef F77_DUMMY_MAIN
12205 # ifdef __cplusplus
12208 int F77_DUMMY_MAIN() { return 1; }
12213 /* If this system has a BSD-style setpgrp which takes arguments,
12214 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12215 exit successfully. */
12216 exit (setpgrp (1,1) == -1 ? 0 : 1);
12221 rm -f conftest
$ac_exeext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223 (eval $ac_link) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_func_setpgrp_void
=no
12234 echo "$as_me: program exited with status $ac_status" >&5
12235 echo "$as_me: failed program was:" >&5
12236 cat conftest.
$ac_ext >&5
12237 ( exit $ac_status )
12238 ac_cv_func_setpgrp_void
=yes
12240 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12243 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
12244 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
12245 if test $ac_cv_func_setpgrp_void = yes; then
12247 cat >>confdefs.h
<<\_ACEOF
12248 #define SETPGRP_VOID 1
12254 for ac_func
in gettimeofday
12256 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12257 echo "$as_me:$LINENO: checking for $ac_func" >&5
12258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12259 if eval "test \"\${$as_ac_var+set}\" = set"; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 cat >conftest.
$ac_ext <<_ACEOF
12263 #line $LINENO "configure"
12264 #include "confdefs.h"
12265 /* System header to define __stub macros and hopefully few prototypes,
12266 which can conflict with char $ac_func (); below. */
12267 #include <assert.h>
12268 /* Override any gcc2 internal prototype to avoid an error. */
12272 /* We use char because int might match the return type of a gcc2
12273 builtin and then its argument prototype would still apply. */
12277 #ifdef F77_DUMMY_MAIN
12278 # ifdef __cplusplus
12281 int F77_DUMMY_MAIN() { return 1; }
12286 /* The GNU C library defines this for functions which it implements
12287 to always fail with ENOSYS. Some functions are actually named
12288 something starting with __ and the normal name is an alias. */
12289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12299 rm -f conftest.
$ac_objext conftest
$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try
='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 eval "$as_ac_var=yes"
12313 echo "$as_me: failed program was:" >&5
12314 cat conftest.
$ac_ext >&5
12315 eval "$as_ac_var=no"
12317 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12321 if test `eval echo '${'$as_ac_var'}'` = yes; then
12322 cat >>confdefs.h
<<_ACEOF
12323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12325 cat >conftest.
$ac_ext <<_ACEOF
12326 #line $LINENO "configure"
12327 #include "confdefs.h"
12328 #include <sys/time.h>
12329 #ifdef F77_DUMMY_MAIN
12330 # ifdef __cplusplus
12333 int F77_DUMMY_MAIN() { return 1; }
12338 gettimeofday((struct timeval*)0,(struct timezone*)0);
12343 rm -f conftest.
$ac_objext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345 (eval $ac_compile) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try
='test -s conftest.$ac_objext'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12357 echo "$as_me: failed program was:" >&5
12358 cat conftest.
$ac_ext >&5
12360 cat >>confdefs.h
<<\_ACEOF
12361 #define GETTIMEOFDAY_NO_TZ 1
12366 rm -f conftest.
$ac_objext conftest.
$ac_ext
12373 # On OSF/1 V5.1, getaddrinfo is available, but a define
12374 # for [no]getaddrinfo in netdb.h.
12375 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
12376 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
12377 cat >conftest.
$ac_ext <<_ACEOF
12378 #line $LINENO "configure"
12379 #include "confdefs.h"
12381 #include <sys/types.h>
12382 #include <sys/socket.h>
12386 #ifdef F77_DUMMY_MAIN
12387 # ifdef __cplusplus
12390 int F77_DUMMY_MAIN() { return 1; }
12396 getaddrinfo(NULL, NULL, NULL, NULL);
12402 rm -f conftest.
$ac_objext conftest
$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try
='test -s conftest$ac_exeext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12415 echo "$as_me:$LINENO: result: yes" >&5
12416 echo "${ECHO_T}yes" >&6
12417 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
12418 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
12419 if test "$cross_compiling" = yes; then
12420 echo "$as_me:$LINENO: result: buggy" >&5
12421 echo "${ECHO_T}buggy" >&6
12422 buggygetaddrinfo
=yes
12424 cat >conftest.
$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12426 #include "confdefs.h"
12428 #include <sys/types.h>
12430 #include <string.h>
12431 #include <sys/socket.h>
12432 #include <netinet/in.h>
12436 int passive, gaierr, inet4 = 0, inet6 = 0;
12437 struct addrinfo hints, *ai, *aitop;
12438 char straddr[INET6_ADDRSTRLEN], strport[16];
12440 for (passive = 0; passive <= 1; passive++) {
12441 memset(&hints, 0, sizeof(hints));
12442 hints.ai_family = AF_UNSPEC;
12443 hints.ai_flags = passive ? AI_PASSIVE : 0;
12444 hints.ai_socktype = SOCK_STREAM;
12445 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
12446 (void)gai_strerror(gaierr);
12449 for (ai = aitop; ai; ai = ai->ai_next) {
12450 if (ai->ai_addr == NULL ||
12451 ai->ai_addrlen == 0 ||
12452 getnameinfo(ai->ai_addr, ai->ai_addrlen,
12453 straddr, sizeof(straddr), strport, sizeof(strport),
12454 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
12457 switch (ai->ai_family) {
12459 if (strcmp(strport, "54321") != 0) {
12463 if (strcmp(straddr, "0.0.0.0") != 0) {
12467 if (strcmp(straddr, "127.0.0.1") != 0) {
12474 if (strcmp(strport, "54321") != 0) {
12478 if (strcmp(straddr, "::") != 0) {
12482 if (strcmp(straddr, "::1") != 0) {
12492 /* another family support? */
12498 if (!(inet4 == 0 || inet4 == 2))
12500 if (!(inet6 == 0 || inet6 == 2))
12504 freeaddrinfo(aitop);
12509 freeaddrinfo(aitop);
12514 rm -f conftest
$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516 (eval $ac_link) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 echo "$as_me:$LINENO: result: good" >&5
12526 echo "${ECHO_T}good" >&6
12527 buggygetaddrinfo
=no
12529 echo "$as_me: program exited with status $ac_status" >&5
12530 echo "$as_me: failed program was:" >&5
12531 cat conftest.
$ac_ext >&5
12532 ( exit $ac_status )
12533 echo "$as_me:$LINENO: result: buggy" >&5
12534 echo "${ECHO_T}buggy" >&6
12535 buggygetaddrinfo
=yes
12537 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12540 echo "$as_me: failed program was:" >&5
12541 cat conftest.
$ac_ext >&5
12543 echo "$as_me:$LINENO: result: no" >&5
12544 echo "${ECHO_T}no" >&6
12545 buggygetaddrinfo
=yes
12548 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12550 if test "$buggygetaddrinfo" = "yes"; then
12551 if test "$ipv6" = "yes"; then
12552 echo 'Fatal: You must get working getaddrinfo() function.'
12553 echo ' or you can specify "--disable-ipv6"'.
12558 cat >>confdefs.h
<<\_ACEOF
12559 #define HAVE_GETADDRINFO 1
12564 for ac_func
in getnameinfo
12566 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12567 echo "$as_me:$LINENO: checking for $ac_func" >&5
12568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12569 if eval "test \"\${$as_ac_var+set}\" = set"; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 cat >conftest.
$ac_ext <<_ACEOF
12573 #line $LINENO "configure"
12574 #include "confdefs.h"
12575 /* System header to define __stub macros and hopefully few prototypes,
12576 which can conflict with char $ac_func (); below. */
12577 #include <assert.h>
12578 /* Override any gcc2 internal prototype to avoid an error. */
12582 /* We use char because int might match the return type of a gcc2
12583 builtin and then its argument prototype would still apply. */
12587 #ifdef F77_DUMMY_MAIN
12588 # ifdef __cplusplus
12591 int F77_DUMMY_MAIN() { return 1; }
12596 /* The GNU C library defines this for functions which it implements
12597 to always fail with ENOSYS. Some functions are actually named
12598 something starting with __ and the normal name is an alias. */
12599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12609 rm -f conftest.
$ac_objext conftest
$ac_exeext
12610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12611 (eval $ac_link) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
12615 { ac_try
='test -s conftest$ac_exeext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 eval "$as_ac_var=yes"
12623 echo "$as_me: failed program was:" >&5
12624 cat conftest.
$ac_ext >&5
12625 eval "$as_ac_var=no"
12627 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12631 if test `eval echo '${'$as_ac_var'}'` = yes; then
12632 cat >>confdefs.h
<<_ACEOF
12633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12640 # checks for structures
12641 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12642 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12643 if test "${ac_cv_header_time+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 cat >conftest.
$ac_ext <<_ACEOF
12647 #line $LINENO "configure"
12648 #include "confdefs.h"
12649 #include <sys/types.h>
12650 #include <sys/time.h>
12653 #ifdef F77_DUMMY_MAIN
12654 # ifdef __cplusplus
12657 int F77_DUMMY_MAIN() { return 1; }
12662 if ((struct tm *) 0)
12668 rm -f conftest.
$ac_objext
12669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12670 (eval $ac_compile) 2>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try
='test -s conftest.$ac_objext'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12680 ac_cv_header_time
=yes
12682 echo "$as_me: failed program was:" >&5
12683 cat conftest.
$ac_ext >&5
12684 ac_cv_header_time
=no
12686 rm -f conftest.
$ac_objext conftest.
$ac_ext
12688 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12689 echo "${ECHO_T}$ac_cv_header_time" >&6
12690 if test $ac_cv_header_time = yes; then
12692 cat >>confdefs.h
<<\_ACEOF
12693 #define TIME_WITH_SYS_TIME 1
12698 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12699 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12700 if test "${ac_cv_struct_tm+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 cat >conftest.
$ac_ext <<_ACEOF
12704 #line $LINENO "configure"
12705 #include "confdefs.h"
12706 #include <sys/types.h>
12709 #ifdef F77_DUMMY_MAIN
12710 # ifdef __cplusplus
12713 int F77_DUMMY_MAIN() { return 1; }
12718 struct tm *tp; tp->tm_sec;
12723 rm -f conftest.
$ac_objext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725 (eval $ac_compile) 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try
='test -s conftest.$ac_objext'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 ac_cv_struct_tm
=time.h
12737 echo "$as_me: failed program was:" >&5
12738 cat conftest.
$ac_ext >&5
12739 ac_cv_struct_tm
=sys
/time.h
12741 rm -f conftest.
$ac_objext conftest.
$ac_ext
12743 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12744 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12745 if test $ac_cv_struct_tm = sys
/time.h
; then
12747 cat >>confdefs.h
<<\_ACEOF
12748 #define TM_IN_SYS_TIME 1
12753 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12754 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12755 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12758 cat >conftest.
$ac_ext <<_ACEOF
12759 #line $LINENO "configure"
12760 #include "confdefs.h"
12761 #include <sys/types.h>
12762 #include <$ac_cv_struct_tm>
12765 #ifdef F77_DUMMY_MAIN
12766 # ifdef __cplusplus
12769 int F77_DUMMY_MAIN() { return 1; }
12774 static struct tm ac_aggr;
12775 if (ac_aggr.tm_zone)
12781 rm -f conftest.
$ac_objext
12782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12783 (eval $ac_compile) 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try
='test -s conftest.$ac_objext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 ac_cv_member_struct_tm_tm_zone
=yes
12795 echo "$as_me: failed program was:" >&5
12796 cat conftest.
$ac_ext >&5
12797 ac_cv_member_struct_tm_tm_zone
=no
12799 rm -f conftest.
$ac_objext conftest.
$ac_ext
12801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12802 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12803 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12805 cat >>confdefs.h
<<_ACEOF
12806 #define HAVE_STRUCT_TM_TM_ZONE 1
12812 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12814 cat >>confdefs.h
<<\_ACEOF
12815 #define HAVE_TM_ZONE 1
12819 echo "$as_me:$LINENO: checking for tzname" >&5
12820 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12821 if test "${ac_cv_var_tzname+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 cat >conftest.
$ac_ext <<_ACEOF
12825 #line $LINENO "configure"
12826 #include "confdefs.h"
12828 #ifndef tzname /* For SGI. */
12829 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12832 #ifdef F77_DUMMY_MAIN
12833 # ifdef __cplusplus
12836 int F77_DUMMY_MAIN() { return 1; }
12846 rm -f conftest.
$ac_objext conftest
$ac_exeext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try
='test -s conftest$ac_exeext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_cv_var_tzname
=yes
12860 echo "$as_me: failed program was:" >&5
12861 cat conftest.
$ac_ext >&5
12862 ac_cv_var_tzname
=no
12864 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12866 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12867 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12868 if test $ac_cv_var_tzname = yes; then
12870 cat >>confdefs.h
<<\_ACEOF
12871 #define HAVE_TZNAME 1
12878 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12879 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12880 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 cat >conftest.
$ac_ext <<_ACEOF
12884 #line $LINENO "configure"
12885 #include "confdefs.h"
12886 $ac_includes_default
12887 #ifdef F77_DUMMY_MAIN
12888 # ifdef __cplusplus
12891 int F77_DUMMY_MAIN() { return 1; }
12896 static struct stat ac_aggr;
12897 if (ac_aggr.st_rdev)
12903 rm -f conftest.
$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905 (eval $ac_compile) 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try
='test -s conftest.$ac_objext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_cv_member_struct_stat_st_rdev
=yes
12917 echo "$as_me: failed program was:" >&5
12918 cat conftest.
$ac_ext >&5
12919 ac_cv_member_struct_stat_st_rdev
=no
12921 rm -f conftest.
$ac_objext conftest.
$ac_ext
12923 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12924 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12925 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12927 cat >>confdefs.h
<<_ACEOF
12928 #define HAVE_STRUCT_STAT_ST_RDEV 1
12932 cat >>confdefs.h
<<\_ACEOF
12933 #define HAVE_ST_RDEV 1
12940 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12941 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12942 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 cat >conftest.
$ac_ext <<_ACEOF
12946 #line $LINENO "configure"
12947 #include "confdefs.h"
12948 $ac_includes_default
12949 #ifdef F77_DUMMY_MAIN
12950 # ifdef __cplusplus
12953 int F77_DUMMY_MAIN() { return 1; }
12958 static struct stat ac_aggr;
12959 if (ac_aggr.st_blksize)
12965 rm -f conftest.
$ac_objext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try
='test -s conftest.$ac_objext'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 ac_cv_member_struct_stat_st_blksize
=yes
12979 echo "$as_me: failed program was:" >&5
12980 cat conftest.
$ac_ext >&5
12981 ac_cv_member_struct_stat_st_blksize
=no
12983 rm -f conftest.
$ac_objext conftest.
$ac_ext
12985 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12986 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12987 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12989 cat >>confdefs.h
<<_ACEOF
12990 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12994 cat >>confdefs.h
<<\_ACEOF
12995 #define HAVE_ST_BLKSIZE 1
13001 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13002 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13003 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 cat >conftest.
$ac_ext <<_ACEOF
13007 #line $LINENO "configure"
13008 #include "confdefs.h"
13009 $ac_includes_default
13010 #ifdef F77_DUMMY_MAIN
13011 # ifdef __cplusplus
13014 int F77_DUMMY_MAIN() { return 1; }
13019 static struct stat ac_aggr;
13020 if (ac_aggr.st_blocks)
13026 rm -f conftest.
$ac_objext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028 (eval $ac_compile) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try
='test -s conftest.$ac_objext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_cv_member_struct_stat_st_blocks
=yes
13040 echo "$as_me: failed program was:" >&5
13041 cat conftest.
$ac_ext >&5
13042 ac_cv_member_struct_stat_st_blocks
=no
13044 rm -f conftest.
$ac_objext conftest.
$ac_ext
13046 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13047 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13048 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13050 cat >>confdefs.h
<<_ACEOF
13051 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13055 cat >>confdefs.h
<<\_ACEOF
13056 #define HAVE_ST_BLOCKS 1
13060 LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
13065 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
13066 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
13067 if test "${ac_cv_header_time_altzone+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 cat >conftest.
$ac_ext <<_ACEOF
13071 #line $LINENO "configure"
13072 #include "confdefs.h"
13074 #ifdef F77_DUMMY_MAIN
13075 # ifdef __cplusplus
13078 int F77_DUMMY_MAIN() { return 1; }
13088 rm -f conftest.
$ac_objext
13089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13090 (eval $ac_compile) 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } &&
13094 { ac_try
='test -s conftest.$ac_objext'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }; then
13100 ac_cv_header_time_altzone
=yes
13102 echo "$as_me: failed program was:" >&5
13103 cat conftest.
$ac_ext >&5
13104 ac_cv_header_time_altzone
=no
13106 rm -f conftest.
$ac_objext conftest.
$ac_ext
13109 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
13110 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
13111 if test $ac_cv_header_time_altzone = yes; then
13113 cat >>confdefs.h
<<\_ACEOF
13114 #define HAVE_ALTZONE 1
13120 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13121 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
13122 cat >conftest.
$ac_ext <<_ACEOF
13123 #line $LINENO "configure"
13124 #include "confdefs.h"
13126 #include <sys/types.h>
13127 #include <sys/select.h>
13128 #include <sys/time.h>
13130 #ifdef F77_DUMMY_MAIN
13131 # ifdef __cplusplus
13134 int F77_DUMMY_MAIN() { return 1; }
13144 rm -f conftest.
$ac_objext
13145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13146 (eval $ac_compile) 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } &&
13150 { ac_try
='test -s conftest.$ac_objext'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13158 cat >>confdefs.h
<<\_ACEOF
13159 #define SYS_SELECT_WITH_SYS_TIME 1
13165 echo "$as_me: failed program was:" >&5
13166 cat conftest.
$ac_ext >&5
13168 rm -f conftest.
$ac_objext conftest.
$ac_ext
13169 echo "$as_me:$LINENO: result: $was_it_defined" >&5
13170 echo "${ECHO_T}$was_it_defined" >&6
13172 echo "$as_me:$LINENO: checking for addrinfo" >&5
13173 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
13174 if test "${ac_cv_struct_addrinfo+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 cat >conftest.
$ac_ext <<_ACEOF
13178 #line $LINENO "configure"
13179 #include "confdefs.h"
13181 # include <netdb.h>
13182 #ifdef F77_DUMMY_MAIN
13183 # ifdef __cplusplus
13186 int F77_DUMMY_MAIN() { return 1; }
13196 rm -f conftest.
$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try
='test -s conftest.$ac_objext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_struct_addrinfo
=yes
13210 echo "$as_me: failed program was:" >&5
13211 cat conftest.
$ac_ext >&5
13212 ac_cv_struct_addrinfo
=no
13214 rm -f conftest.
$ac_objext conftest.
$ac_ext
13217 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
13218 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
13219 if test $ac_cv_struct_addrinfo = yes; then
13221 cat >>confdefs.h
<<\_ACEOF
13222 #define HAVE_ADDRINFO 1
13227 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
13228 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
13229 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 cat >conftest.
$ac_ext <<_ACEOF
13233 #line $LINENO "configure"
13234 #include "confdefs.h"
13236 # include <sys/types.h>
13237 # include <sys/socket.h>
13238 #ifdef F77_DUMMY_MAIN
13239 # ifdef __cplusplus
13242 int F77_DUMMY_MAIN() { return 1; }
13247 struct sockaddr_storage s
13252 rm -f conftest.
$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try
='test -s conftest.$ac_objext'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 ac_cv_struct_sockaddr_storage
=yes
13266 echo "$as_me: failed program was:" >&5
13267 cat conftest.
$ac_ext >&5
13268 ac_cv_struct_sockaddr_storage
=no
13270 rm -f conftest.
$ac_objext conftest.
$ac_ext
13273 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
13274 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
13275 if test $ac_cv_struct_sockaddr_storage = yes; then
13277 cat >>confdefs.h
<<\_ACEOF
13278 #define HAVE_SOCKADDR_STORAGE 1
13283 # checks for compiler characteristics
13286 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
13287 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
13288 if test "${ac_cv_c_char_unsigned+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 cat >conftest.
$ac_ext <<_ACEOF
13292 #line $LINENO "configure"
13293 #include "confdefs.h"
13294 $ac_includes_default
13295 #ifdef F77_DUMMY_MAIN
13296 # ifdef __cplusplus
13299 int F77_DUMMY_MAIN() { return 1; }
13304 static int test_array [1 - 2 * !(((char) -1) < 0)];
13311 rm -f conftest.
$ac_objext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313 (eval $ac_compile) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try
='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 ac_cv_c_char_unsigned
=no
13325 echo "$as_me: failed program was:" >&5
13326 cat conftest.
$ac_ext >&5
13327 ac_cv_c_char_unsigned
=yes
13329 rm -f conftest.
$ac_objext conftest.
$ac_ext
13331 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
13332 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
13333 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
13334 cat >>confdefs.h
<<\_ACEOF
13335 #define __CHAR_UNSIGNED__ 1
13340 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
13341 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13342 if test "${ac_cv_prog_cc_stdc+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 ac_cv_prog_cc_stdc
=no
13347 cat >conftest.
$ac_ext <<_ACEOF
13348 #line $LINENO "configure"
13349 #include "confdefs.h"
13350 #include <stdarg.h>
13352 #include <sys/types.h>
13353 #include <sys/stat.h>
13354 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13355 struct buf { int x; };
13356 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13357 static char *e (p, i)
13363 static char *f (char * (*g) (char **, int), char **p, ...)
13368 s = g (p, va_arg (v,int));
13372 int test (int i, double x);
13373 struct s1 {int (*f) (int a);};
13374 struct s2 {int (*f) (double a);};
13375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13378 #ifdef F77_DUMMY_MAIN
13379 # ifdef __cplusplus
13382 int F77_DUMMY_MAIN() { return 1; }
13387 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13392 # Don't try gcc -ansi; that turns off useful extensions and
13393 # breaks some systems' header files.
13394 # AIX -qlanglvl=ansi
13395 # Ultrix and OSF/1 -std1
13396 # HP-UX 10.20 and later -Ae
13397 # HP-UX older versions -Aa -D_HPUX_SOURCE
13398 # SVR4 -Xc -D__EXTENSIONS__
13399 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13401 CC
="$ac_save_CC $ac_arg"
13402 rm -f conftest.
$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404 (eval $ac_compile) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try
='test -s conftest.$ac_objext'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
13414 ac_cv_prog_cc_stdc
=$ac_arg
13417 echo "$as_me: failed program was:" >&5
13418 cat conftest.
$ac_ext >&5
13420 rm -f conftest.
$ac_objext
13422 rm -f conftest.
$ac_ext conftest.
$ac_objext
13427 case "x$ac_cv_prog_cc_stdc" in
13429 echo "$as_me:$LINENO: result: none needed" >&5
13430 echo "${ECHO_T}none needed" >&6 ;;
13432 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
13433 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13434 CC
="$CC $ac_cv_prog_cc_stdc" ;;
13437 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13438 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13439 if test "${ac_cv_c_const+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 cat >conftest.
$ac_ext <<_ACEOF
13443 #line $LINENO "configure"
13444 #include "confdefs.h"
13446 #ifdef F77_DUMMY_MAIN
13447 # ifdef __cplusplus
13450 int F77_DUMMY_MAIN() { return 1; }
13455 /* FIXME: Include the comments suggested by Paul. */
13456 #ifndef __cplusplus
13457 /* Ultrix mips cc rejects this. */
13458 typedef int charset[2];
13460 /* SunOS 4.1.1 cc rejects this. */
13461 char const *const *ccp;
13463 /* NEC SVR4.0.2 mips cc rejects this. */
13464 struct point {int x, y;};
13465 static struct point const zero = {0,0};
13466 /* AIX XL C 1.02.0.0 rejects this.
13467 It does not let you subtract one const X* pointer from another in
13468 an arm of an if-expression whose if-part is not a constant
13470 const char *g = "string";
13471 ccp = &g + (g ? g-g : 0);
13472 /* HPUX 7.0 cc rejects these. */
13475 ccp = (char const *const *) p;
13476 { /* SCO 3.2v4 cc rejects this. */
13478 char const *s = 0 ? (char *) 0 : (char const *) 0;
13482 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13483 int x[] = {25, 17};
13484 const int *foo = &x[0];
13487 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13488 typedef const int *iptr;
13492 { /* AIX XL C 1.02.0.0 rejects this saying
13493 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13494 struct s { int j; const int *ap[3]; };
13495 struct s *b; b->j = 5;
13497 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13498 const int foo = 10;
13506 rm -f conftest.
$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try
='test -s conftest.$ac_objext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13520 echo "$as_me: failed program was:" >&5
13521 cat conftest.
$ac_ext >&5
13524 rm -f conftest.
$ac_objext conftest.
$ac_ext
13526 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13527 echo "${ECHO_T}$ac_cv_c_const" >&6
13528 if test $ac_cv_c_const = no
; then
13530 cat >>confdefs.h
<<\_ACEOF
13538 echo "$as_me:$LINENO: checking for working volatile" >&5
13539 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
13540 cat >conftest.
$ac_ext <<_ACEOF
13541 #line $LINENO "configure"
13542 #include "confdefs.h"
13544 #ifdef F77_DUMMY_MAIN
13545 # ifdef __cplusplus
13548 int F77_DUMMY_MAIN() { return 1; }
13553 volatile int x; x = 0;
13558 rm -f conftest.
$ac_objext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560 (eval $ac_compile) 2>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try
='test -s conftest.$ac_objext'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13572 echo "$as_me: failed program was:" >&5
13573 cat conftest.
$ac_ext >&5
13575 cat >>confdefs.h
<<\_ACEOF
13581 rm -f conftest.
$ac_objext conftest.
$ac_ext
13582 echo "$as_me:$LINENO: result: $works" >&5
13583 echo "${ECHO_T}$works" >&6
13586 echo "$as_me:$LINENO: checking for working signed char" >&5
13587 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
13588 cat >conftest.
$ac_ext <<_ACEOF
13589 #line $LINENO "configure"
13590 #include "confdefs.h"
13592 #ifdef F77_DUMMY_MAIN
13593 # ifdef __cplusplus
13596 int F77_DUMMY_MAIN() { return 1; }
13606 rm -f conftest.
$ac_objext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13608 (eval $ac_compile) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try
='test -s conftest.$ac_objext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13620 echo "$as_me: failed program was:" >&5
13621 cat conftest.
$ac_ext >&5
13623 cat >>confdefs.h
<<\_ACEOF
13629 rm -f conftest.
$ac_objext conftest.
$ac_ext
13630 echo "$as_me:$LINENO: result: $works" >&5
13631 echo "${ECHO_T}$works" >&6
13634 echo "$as_me:$LINENO: checking for prototypes" >&5
13635 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
13636 cat >conftest.
$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13638 #include "confdefs.h"
13639 int foo(int x) { return 0; }
13640 #ifdef F77_DUMMY_MAIN
13641 # ifdef __cplusplus
13644 int F77_DUMMY_MAIN() { return 1; }
13654 rm -f conftest.
$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try
='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13668 cat >>confdefs.h
<<\_ACEOF
13669 #define HAVE_PROTOTYPES 1
13672 have_prototypes
=yes
13675 echo "$as_me: failed program was:" >&5
13676 cat conftest.
$ac_ext >&5
13678 rm -f conftest.
$ac_objext conftest.
$ac_ext
13679 echo "$as_me:$LINENO: result: $have_prototypes" >&5
13680 echo "${ECHO_T}$have_prototypes" >&6
13683 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
13684 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
13685 cat >conftest.
$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13689 #include <stdarg.h>
13690 int foo(int x, ...) {
13694 va_arg(va, char *);
13695 va_arg(va, double);
13699 #ifdef F77_DUMMY_MAIN
13700 # ifdef __cplusplus
13703 int F77_DUMMY_MAIN() { return 1; }
13708 return foo(10, "", 3.14);
13713 rm -f conftest.
$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try
='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13727 cat >>confdefs.h
<<\_ACEOF
13728 #define HAVE_STDARG_PROTOTYPES 1
13734 echo "$as_me: failed program was:" >&5
13735 cat conftest.
$ac_ext >&5
13737 rm -f conftest.
$ac_objext conftest.
$ac_ext
13738 echo "$as_me:$LINENO: result: $works" >&5
13739 echo "${ECHO_T}$works" >&6
13741 if test "$have_prototypes" = yes; then
13743 echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5
13744 echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6
13745 cat >conftest.
$ac_ext <<_ACEOF
13746 #line $LINENO "configure"
13747 #include "confdefs.h"
13748 #include <unistd.h>
13749 #ifdef F77_DUMMY_MAIN
13750 # ifdef __cplusplus
13753 int F77_DUMMY_MAIN() { return 1; }
13758 char **t;execve("@",t,t);
13763 rm -f conftest.
$ac_objext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765 (eval $ac_compile) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } &&
13769 { ac_try
='test -s conftest.$ac_objext'
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13777 echo "$as_me: failed program was:" >&5
13778 cat conftest.
$ac_ext >&5
13780 cat >>confdefs.h
<<\_ACEOF
13781 #define BAD_EXEC_PROTOTYPES 1
13787 rm -f conftest.
$ac_objext conftest.
$ac_ext
13788 echo "$as_me:$LINENO: result: $bad_prototypes" >&5
13789 echo "${ECHO_T}$bad_prototypes" >&6
13792 # check if sockaddr has sa_len member
13793 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
13794 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
13795 cat >conftest.
$ac_ext <<_ACEOF
13796 #line $LINENO "configure"
13797 #include "confdefs.h"
13798 #include <sys/types.h>
13799 #include <sys/socket.h>
13800 #ifdef F77_DUMMY_MAIN
13801 # ifdef __cplusplus
13804 int F77_DUMMY_MAIN() { return 1; }
13815 rm -f conftest.
$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try
='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 echo "$as_me:$LINENO: result: yes" >&5
13828 echo "${ECHO_T}yes" >&6
13830 cat >>confdefs.h
<<\_ACEOF
13831 #define HAVE_SOCKADDR_SA_LEN 1
13835 echo "$as_me: failed program was:" >&5
13836 cat conftest.
$ac_ext >&5
13837 echo "$as_me:$LINENO: result: no" >&5
13838 echo "${ECHO_T}no" >&6
13840 rm -f conftest.
$ac_objext conftest.
$ac_ext
13842 va_list_is_array
=no
13843 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
13844 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
13845 cat >conftest.
$ac_ext <<_ACEOF
13846 #line $LINENO "configure"
13847 #include "confdefs.h"
13849 #ifdef HAVE_STDARG_PROTOTYPES
13850 #include <stdarg.h>
13852 #include <varargs.h>
13855 #ifdef F77_DUMMY_MAIN
13856 # ifdef __cplusplus
13859 int F77_DUMMY_MAIN() { return 1; }
13864 va_list list1, list2; list1 = list2;
13869 rm -f conftest.
$ac_objext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13871 (eval $ac_compile) 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try
='test -s conftest.$ac_objext'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13883 echo "$as_me: failed program was:" >&5
13884 cat conftest.
$ac_ext >&5
13887 cat >>confdefs.h
<<\_ACEOF
13888 #define VA_LIST_IS_ARRAY 1
13891 va_list_is_array
=yes
13894 rm -f conftest.
$ac_objext conftest.
$ac_ext
13895 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
13896 echo "${ECHO_T}$va_list_is_array" >&6
13898 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
13902 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
13903 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
13904 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 cat >conftest.
$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13909 #include "confdefs.h"
13910 /* System header to define __stub macros and hopefully few prototypes,
13911 which can conflict with char gethostbyname_r (); below. */
13912 #include <assert.h>
13913 /* Override any gcc2 internal prototype to avoid an error. */
13917 /* We use char because int might match the return type of a gcc2
13918 builtin and then its argument prototype would still apply. */
13919 char gethostbyname_r ();
13922 #ifdef F77_DUMMY_MAIN
13923 # ifdef __cplusplus
13926 int F77_DUMMY_MAIN() { return 1; }
13931 /* The GNU C library defines this for functions which it implements
13932 to always fail with ENOSYS. Some functions are actually named
13933 something starting with __ and the normal name is an alias. */
13934 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
13937 f = gethostbyname_r;
13944 rm -f conftest.
$ac_objext conftest
$ac_exeext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946 (eval $ac_link) 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try
='test -s conftest$ac_exeext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_cv_func_gethostbyname_r
=yes
13958 echo "$as_me: failed program was:" >&5
13959 cat conftest.
$ac_ext >&5
13960 ac_cv_func_gethostbyname_r
=no
13962 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13964 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
13965 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
13966 if test $ac_cv_func_gethostbyname_r = yes; then
13968 cat >>confdefs.h
<<\_ACEOF
13969 #define HAVE_GETHOSTBYNAME_R 1
13972 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
13973 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
13975 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13976 cat >conftest.
$ac_ext <<_ACEOF
13977 #line $LINENO "configure"
13978 #include "confdefs.h"
13980 # include <netdb.h>
13982 #ifdef F77_DUMMY_MAIN
13983 # ifdef __cplusplus
13986 int F77_DUMMY_MAIN() { return 1; }
13993 struct hostent *he, *res;
13998 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
14004 rm -f conftest.
$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try
='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14017 cat >>confdefs.h
<<\_ACEOF
14018 #define HAVE_GETHOSTBYNAME_R 1
14022 cat >>confdefs.h
<<\_ACEOF
14023 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
14026 echo "$as_me:$LINENO: result: yes" >&5
14027 echo "${ECHO_T}yes" >&6
14030 echo "$as_me: failed program was:" >&5
14031 cat conftest.
$ac_ext >&5
14033 echo "$as_me:$LINENO: result: no" >&5
14034 echo "${ECHO_T}no" >&6
14035 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
14036 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
14037 cat >conftest.
$ac_ext <<_ACEOF
14038 #line $LINENO "configure"
14039 #include "confdefs.h"
14041 # include <netdb.h>
14043 #ifdef F77_DUMMY_MAIN
14044 # ifdef __cplusplus
14047 int F77_DUMMY_MAIN() { return 1; }
14054 struct hostent *he;
14059 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
14065 rm -f conftest.
$ac_objext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14067 (eval $ac_compile) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } &&
14071 { ac_try
='test -s conftest.$ac_objext'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14078 cat >>confdefs.h
<<\_ACEOF
14079 #define HAVE_GETHOSTBYNAME_R 1
14083 cat >>confdefs.h
<<\_ACEOF
14084 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
14087 echo "$as_me:$LINENO: result: yes" >&5
14088 echo "${ECHO_T}yes" >&6
14091 echo "$as_me: failed program was:" >&5
14092 cat conftest.
$ac_ext >&5
14094 echo "$as_me:$LINENO: result: no" >&5
14095 echo "${ECHO_T}no" >&6
14096 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
14097 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
14098 cat >conftest.
$ac_ext <<_ACEOF
14099 #line $LINENO "configure"
14100 #include "confdefs.h"
14102 # include <netdb.h>
14104 #ifdef F77_DUMMY_MAIN
14105 # ifdef __cplusplus
14108 int F77_DUMMY_MAIN() { return 1; }
14115 struct hostent *he;
14116 struct hostent_data data;
14118 (void) gethostbyname_r(name, he, &data);
14124 rm -f conftest.
$ac_objext
14125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
14130 { ac_try
='test -s conftest.$ac_objext'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14137 cat >>confdefs.h
<<\_ACEOF
14138 #define HAVE_GETHOSTBYNAME_R 1
14142 cat >>confdefs.h
<<\_ACEOF
14143 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
14146 echo "$as_me:$LINENO: result: yes" >&5
14147 echo "${ECHO_T}yes" >&6
14150 echo "$as_me: failed program was:" >&5
14151 cat conftest.
$ac_ext >&5
14153 echo "$as_me:$LINENO: result: no" >&5
14154 echo "${ECHO_T}no" >&6
14157 rm -f conftest.
$ac_objext conftest.
$ac_ext
14160 rm -f conftest.
$ac_objext conftest.
$ac_ext
14163 rm -f conftest.
$ac_objext conftest.
$ac_ext
14169 for ac_func
in gethostbyname
14171 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14172 echo "$as_me:$LINENO: checking for $ac_func" >&5
14173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14174 if eval "test \"\${$as_ac_var+set}\" = set"; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14177 cat >conftest.
$ac_ext <<_ACEOF
14178 #line $LINENO "configure"
14179 #include "confdefs.h"
14180 /* System header to define __stub macros and hopefully few prototypes,
14181 which can conflict with char $ac_func (); below. */
14182 #include <assert.h>
14183 /* Override any gcc2 internal prototype to avoid an error. */
14187 /* We use char because int might match the return type of a gcc2
14188 builtin and then its argument prototype would still apply. */
14192 #ifdef F77_DUMMY_MAIN
14193 # ifdef __cplusplus
14196 int F77_DUMMY_MAIN() { return 1; }
14201 /* The GNU C library defines this for functions which it implements
14202 to always fail with ENOSYS. Some functions are actually named
14203 something starting with __ and the normal name is an alias. */
14204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14214 rm -f conftest.
$ac_objext conftest
$ac_exeext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14216 (eval $ac_link) 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try
='test -s conftest$ac_exeext'
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 eval "$as_ac_var=yes"
14228 echo "$as_me: failed program was:" >&5
14229 cat conftest.
$ac_ext >&5
14230 eval "$as_ac_var=no"
14232 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14236 if test `eval echo '${'$as_ac_var'}'` = yes; then
14237 cat >>confdefs.h
<<_ACEOF
14238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14253 # checks for system services
14256 # Linux requires this for correct f.p. operations
14257 echo "$as_me:$LINENO: checking for __fpu_control" >&5
14258 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
14259 if test "${ac_cv_func___fpu_control+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 cat >conftest.
$ac_ext <<_ACEOF
14263 #line $LINENO "configure"
14264 #include "confdefs.h"
14265 /* System header to define __stub macros and hopefully few prototypes,
14266 which can conflict with char __fpu_control (); below. */
14267 #include <assert.h>
14268 /* Override any gcc2 internal prototype to avoid an error. */
14272 /* We use char because int might match the return type of a gcc2
14273 builtin and then its argument prototype would still apply. */
14274 char __fpu_control ();
14277 #ifdef F77_DUMMY_MAIN
14278 # ifdef __cplusplus
14281 int F77_DUMMY_MAIN() { return 1; }
14286 /* The GNU C library defines this for functions which it implements
14287 to always fail with ENOSYS. Some functions are actually named
14288 something starting with __ and the normal name is an alias. */
14289 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
14299 rm -f conftest.
$ac_objext conftest
$ac_exeext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14301 (eval $ac_link) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try
='test -s conftest$ac_exeext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 ac_cv_func___fpu_control
=yes
14313 echo "$as_me: failed program was:" >&5
14314 cat conftest.
$ac_ext >&5
14315 ac_cv_func___fpu_control
=no
14317 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14319 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
14320 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
14321 if test $ac_cv_func___fpu_control = yes; then
14325 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
14326 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
14327 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 ac_check_lib_save_LIBS
=$LIBS
14331 LIBS
="-lieee $LIBS"
14332 cat >conftest.
$ac_ext <<_ACEOF
14333 #line $LINENO "configure"
14334 #include "confdefs.h"
14336 /* Override any gcc2 internal prototype to avoid an error. */
14340 /* We use char because int might match the return type of a gcc2
14341 builtin and then its argument prototype would still apply. */
14342 char __fpu_control ();
14343 #ifdef F77_DUMMY_MAIN
14344 # ifdef __cplusplus
14347 int F77_DUMMY_MAIN() { return 1; }
14357 rm -f conftest.
$ac_objext conftest
$ac_exeext
14358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14359 (eval $ac_link) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } &&
14363 { ac_try
='test -s conftest$ac_exeext'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_lib_ieee___fpu_control
=yes
14371 echo "$as_me: failed program was:" >&5
14372 cat conftest.
$ac_ext >&5
14373 ac_cv_lib_ieee___fpu_control
=no
14375 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14376 LIBS
=$ac_check_lib_save_LIBS
14378 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
14379 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
14380 if test $ac_cv_lib_ieee___fpu_control = yes; then
14381 cat >>confdefs.h
<<_ACEOF
14382 #define HAVE_LIBIEEE 1
14385 LIBS
="-lieee $LIBS"
14393 # Check for --with-fpectl
14394 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
14395 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
14397 # Check whether --with-fpectl or --without-fpectl was given.
14398 if test "${with_fpectl+set}" = set; then
14399 withval
="$with_fpectl"
14401 if test "$withval" != no
14404 cat >>confdefs.h
<<\_ACEOF
14405 #define WANT_SIGFPE_HANDLER 1
14408 echo "$as_me:$LINENO: result: yes" >&5
14409 echo "${ECHO_T}yes" >&6
14410 else echo "$as_me:$LINENO: result: no" >&5
14411 echo "${ECHO_T}no" >&6
14414 echo "$as_me:$LINENO: result: no" >&5
14415 echo "${ECHO_T}no" >&6
14418 # check for --with-libm=...
14420 case $ac_sys_system in
14425 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
14426 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
14428 # Check whether --with-libm or --without-libm was given.
14429 if test "${with_libm+set}" = set; then
14430 withval
="$with_libm"
14432 if test "$withval" = no
14434 echo "$as_me:$LINENO: result: force LIBM empty" >&5
14435 echo "${ECHO_T}force LIBM empty" >&6
14436 elif test "$withval" != yes
14438 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
14439 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
14440 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
14441 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
14442 { (exit 1); exit 1; }; }
14445 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
14446 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
14449 # check for --with-libc=...
14451 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
14452 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
14454 # Check whether --with-libc or --without-libc was given.
14455 if test "${with_libc+set}" = set; then
14456 withval
="$with_libc"
14458 if test "$withval" = no
14460 echo "$as_me:$LINENO: result: force LIBC empty" >&5
14461 echo "${ECHO_T}force LIBC empty" >&6
14462 elif test "$withval" != yes
14464 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
14465 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
14466 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
14467 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
14468 { (exit 1); exit 1; }; }
14471 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
14472 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
14475 # check for hypot() in math library
14479 for ac_func
in hypot
14481 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14482 echo "$as_me:$LINENO: checking for $ac_func" >&5
14483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14484 if eval "test \"\${$as_ac_var+set}\" = set"; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 cat >conftest.
$ac_ext <<_ACEOF
14488 #line $LINENO "configure"
14489 #include "confdefs.h"
14490 /* System header to define __stub macros and hopefully few prototypes,
14491 which can conflict with char $ac_func (); below. */
14492 #include <assert.h>
14493 /* Override any gcc2 internal prototype to avoid an error. */
14497 /* We use char because int might match the return type of a gcc2
14498 builtin and then its argument prototype would still apply. */
14502 #ifdef F77_DUMMY_MAIN
14503 # ifdef __cplusplus
14506 int F77_DUMMY_MAIN() { return 1; }
14511 /* The GNU C library defines this for functions which it implements
14512 to always fail with ENOSYS. Some functions are actually named
14513 something starting with __ and the normal name is an alias. */
14514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14524 rm -f conftest.
$ac_objext conftest
$ac_exeext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14526 (eval $ac_link) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try
='test -s conftest$ac_exeext'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14536 eval "$as_ac_var=yes"
14538 echo "$as_me: failed program was:" >&5
14539 cat conftest.
$ac_ext >&5
14540 eval "$as_ac_var=no"
14542 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14546 if test `eval echo '${'$as_ac_var'}'` = yes; then
14547 cat >>confdefs.h
<<_ACEOF
14548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14552 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14559 # check whether malloc(0) returns NULL or not
14560 echo "$as_me:$LINENO: checking what malloc(0) returns" >&5
14561 echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6
14562 if test "${ac_cv_malloc_zero+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 if test "$cross_compiling" = yes; then
14566 ac_cv_malloc_zero
=nonnull
14568 cat >conftest.
$ac_ext <<_ACEOF
14569 #line $LINENO "configure"
14570 #include "confdefs.h"
14573 #include <stdlib.h>
14575 char *malloc(), *realloc();
14581 if (p == NULL) exit(1);
14583 if (p == NULL) exit(1);
14588 rm -f conftest
$ac_exeext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14590 (eval $ac_link) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595 (eval $ac_try) 2>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; }; then
14599 ac_cv_malloc_zero
=nonnull
14601 echo "$as_me: program exited with status $ac_status" >&5
14602 echo "$as_me: failed program was:" >&5
14603 cat conftest.
$ac_ext >&5
14604 ( exit $ac_status )
14605 ac_cv_malloc_zero
=null
14607 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14610 # XXX arm cross-compile?
14611 echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5
14612 echo "${ECHO_T}$ac_cv_malloc_zero" >&6
14613 if test "$ac_cv_malloc_zero" = null
14616 cat >>confdefs.h
<<\_ACEOF
14617 #define MALLOC_ZERO_RETURNS_NULL 1
14622 # check for wchar.h
14623 if test "${ac_cv_header_wchar_h+set}" = set; then
14624 echo "$as_me:$LINENO: checking for wchar.h" >&5
14625 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
14626 if test "${ac_cv_header_wchar_h+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14629 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
14630 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
14632 # Is the header compilable?
14633 echo "$as_me:$LINENO: checking wchar.h usability" >&5
14634 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
14635 cat >conftest.
$ac_ext <<_ACEOF
14636 #line $LINENO "configure"
14637 #include "confdefs.h"
14638 $ac_includes_default
14641 rm -f conftest.
$ac_objext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14643 (eval $ac_compile) 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try
='test -s conftest.$ac_objext'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
14653 ac_header_compiler
=yes
14655 echo "$as_me: failed program was:" >&5
14656 cat conftest.
$ac_ext >&5
14657 ac_header_compiler
=no
14659 rm -f conftest.
$ac_objext conftest.
$ac_ext
14660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14661 echo "${ECHO_T}$ac_header_compiler" >&6
14663 # Is the header present?
14664 echo "$as_me:$LINENO: checking wchar.h presence" >&5
14665 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
14666 cat >conftest.
$ac_ext <<_ACEOF
14667 #line $LINENO "configure"
14668 #include "confdefs.h"
14671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14672 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14674 egrep -v '^ *\+' conftest.er1
>conftest.err
14676 cat conftest.err
>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } >/dev
/null
; then
14679 if test -s conftest.err
; then
14680 ac_cpp_err
=$ac_c_preproc_warn_flag
14687 if test -z "$ac_cpp_err"; then
14688 ac_header_preproc
=yes
14690 echo "$as_me: failed program was:" >&5
14691 cat conftest.
$ac_ext >&5
14692 ac_header_preproc
=no
14694 rm -f conftest.err conftest.
$ac_ext
14695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14696 echo "${ECHO_T}$ac_header_preproc" >&6
14698 # So? What about this header?
14699 case $ac_header_compiler:$ac_header_preproc in
14701 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
14702 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
14704 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
14706 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
14707 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
14709 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
14711 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
14713 echo "$as_me:$LINENO: checking for wchar.h" >&5
14714 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
14715 if test "${ac_cv_header_wchar_h+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 ac_cv_header_wchar_h
=$ac_header_preproc
14720 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
14721 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
14724 if test $ac_cv_header_wchar_h = yes; then
14727 cat >>confdefs.h
<<\_ACEOF
14728 #define HAVE_WCHAR_H 1
14740 # determine wchar_t size
14741 if test "$wchar_h" = yes
14743 echo "$as_me:$LINENO: checking for wchar_t" >&5
14744 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14745 if test "${ac_cv_type_wchar_t+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 cat >conftest.
$ac_ext <<_ACEOF
14749 #line $LINENO "configure"
14750 #include "confdefs.h"
14753 #ifdef F77_DUMMY_MAIN
14754 # ifdef __cplusplus
14757 int F77_DUMMY_MAIN() { return 1; }
14764 if (sizeof (wchar_t))
14770 rm -f conftest.
$ac_objext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14772 (eval $ac_compile) 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try
='test -s conftest.$ac_objext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_type_wchar_t
=yes
14784 echo "$as_me: failed program was:" >&5
14785 cat conftest.
$ac_ext >&5
14786 ac_cv_type_wchar_t
=no
14788 rm -f conftest.
$ac_objext conftest.
$ac_ext
14790 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
14791 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
14793 echo "$as_me:$LINENO: checking size of wchar_t" >&5
14794 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
14795 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 if test "$ac_cv_type_wchar_t" = yes; then
14799 # The cast to unsigned long works around a bug in the HP C Compiler
14800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14802 # This bug is HP SR number 8606223364.
14803 if test "$cross_compiling" = yes; then
14804 # Depending upon the size, compute the lo and hi bounds.
14805 cat >conftest.
$ac_ext <<_ACEOF
14806 #line $LINENO "configure"
14807 #include "confdefs.h"
14810 #ifdef F77_DUMMY_MAIN
14811 # ifdef __cplusplus
14814 int F77_DUMMY_MAIN() { return 1; }
14819 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
14826 rm -f conftest.
$ac_objext
14827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14828 (eval $ac_compile) 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try
='test -s conftest.$ac_objext'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }; then
14840 cat >conftest.
$ac_ext <<_ACEOF
14841 #line $LINENO "configure"
14842 #include "confdefs.h"
14845 #ifdef F77_DUMMY_MAIN
14846 # ifdef __cplusplus
14849 int F77_DUMMY_MAIN() { return 1; }
14854 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
14861 rm -f conftest.
$ac_objext
14862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14863 (eval $ac_compile) 2>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try
='test -s conftest.$ac_objext'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 ac_hi
=$ac_mid; break
14875 echo "$as_me: failed program was:" >&5
14876 cat conftest.
$ac_ext >&5
14877 ac_lo
=`expr $ac_mid + 1`
14878 if test $ac_lo -le $ac_mid; then
14882 ac_mid
=`expr 2 '*' $ac_mid + 1`
14884 rm -f conftest.
$ac_objext conftest.
$ac_ext
14887 echo "$as_me: failed program was:" >&5
14888 cat conftest.
$ac_ext >&5
14889 cat >conftest.
$ac_ext <<_ACEOF
14890 #line $LINENO "configure"
14891 #include "confdefs.h"
14894 #ifdef F77_DUMMY_MAIN
14895 # ifdef __cplusplus
14898 int F77_DUMMY_MAIN() { return 1; }
14903 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
14910 rm -f conftest.
$ac_objext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14912 (eval $ac_compile) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try
='test -s conftest.$ac_objext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14924 cat >conftest.
$ac_ext <<_ACEOF
14925 #line $LINENO "configure"
14926 #include "confdefs.h"
14929 #ifdef F77_DUMMY_MAIN
14930 # ifdef __cplusplus
14933 int F77_DUMMY_MAIN() { return 1; }
14938 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
14945 rm -f conftest.
$ac_objext
14946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14947 (eval $ac_compile) 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try
='test -s conftest.$ac_objext'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 ac_lo
=$ac_mid; break
14959 echo "$as_me: failed program was:" >&5
14960 cat conftest.
$ac_ext >&5
14961 ac_hi
=`expr '(' $ac_mid ')' - 1`
14962 if test $ac_mid -le $ac_hi; then
14966 ac_mid
=`expr 2 '*' $ac_mid`
14968 rm -f conftest.
$ac_objext conftest.
$ac_ext
14971 echo "$as_me: failed program was:" >&5
14972 cat conftest.
$ac_ext >&5
14975 rm -f conftest.
$ac_objext conftest.
$ac_ext
14977 rm -f conftest.
$ac_objext conftest.
$ac_ext
14978 # Binary search between lo and hi bounds.
14979 while test "x$ac_lo" != "x$ac_hi"; do
14980 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14981 cat >conftest.
$ac_ext <<_ACEOF
14982 #line $LINENO "configure"
14983 #include "confdefs.h"
14986 #ifdef F77_DUMMY_MAIN
14987 # ifdef __cplusplus
14990 int F77_DUMMY_MAIN() { return 1; }
14995 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
15002 rm -f conftest.
$ac_objext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004 (eval $ac_compile) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
15008 { ac_try
='test -s conftest.$ac_objext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15016 echo "$as_me: failed program was:" >&5
15017 cat conftest.
$ac_ext >&5
15018 ac_lo
=`expr '(' $ac_mid ')' + 1`
15020 rm -f conftest.
$ac_objext conftest.
$ac_ext
15023 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
15024 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
15025 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
15026 { (exit 1); exit 1; }; } ;;
15029 if test "$cross_compiling" = yes; then
15030 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15031 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15032 { (exit 1); exit 1; }; }
15034 cat >conftest.
$ac_ext <<_ACEOF
15035 #line $LINENO "configure"
15036 #include "confdefs.h"
15039 long longval () { return (long) (sizeof (wchar_t)); }
15040 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
15042 #include <stdlib.h>
15043 #ifdef F77_DUMMY_MAIN
15044 # ifdef __cplusplus
15047 int F77_DUMMY_MAIN() { return 1; }
15053 FILE *f = fopen ("conftest.val", "w");
15056 if (((long) (sizeof (wchar_t))) < 0)
15058 long i = longval ();
15059 if (i != ((long) (sizeof (wchar_t))))
15061 fprintf (f, "%ld\n", i);
15065 unsigned long i = ulongval ();
15066 if (i != ((long) (sizeof (wchar_t))))
15068 fprintf (f, "%lu\n", i);
15070 exit (ferror (f) || fclose (f) != 0);
15076 rm -f conftest
$ac_exeext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15078 (eval $ac_link) 2>&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_cv_sizeof_wchar_t
=`cat conftest.val`
15089 echo "$as_me: program exited with status $ac_status" >&5
15090 echo "$as_me: failed program was:" >&5
15091 cat conftest.
$ac_ext >&5
15092 ( exit $ac_status )
15093 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
15094 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
15095 { (exit 1); exit 1; }; }
15097 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15102 ac_cv_sizeof_wchar_t
=0
15105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
15106 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
15107 cat >>confdefs.h
<<_ACEOF
15108 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
15114 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
15115 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
15116 # Check whether --enable-unicode or --disable-unicode was given.
15117 if test "${enable_unicode+set}" = set; then
15118 enableval
="$enable_unicode"
15124 if test $enable_unicode = yes
15126 # Without any arguments, Py_UNICODE defaults to two-byte mode
15127 enable_unicode
="ucs2"
15132 case "$enable_unicode" in
15133 ucs2
) unicode_size
="2"
15134 cat >>confdefs.h
<<\_ACEOF
15135 #define Py_UNICODE_SIZE 2
15139 ucs4
) unicode_size
="4"
15140 cat >>confdefs.h
<<\_ACEOF
15141 #define Py_UNICODE_SIZE 4
15151 if test "$enable_unicode" = "no"
15154 echo "$as_me:$LINENO: result: not used" >&5
15155 echo "${ECHO_T}not used" >&6
15157 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
15159 cat >>confdefs.h
<<\_ACEOF
15160 #define Py_USING_UNICODE 1
15163 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t"
15165 PY_UNICODE_TYPE
="wchar_t"
15167 cat >>confdefs.h
<<\_ACEOF
15168 #define HAVE_USABLE_WCHAR_T 1
15171 cat >>confdefs.h
<<\_ACEOF
15172 #define PY_UNICODE_TYPE wchar_t
15175 elif test "$ac_cv_sizeof_short" = "$unicode_size"
15177 PY_UNICODE_TYPE
="unsigned short"
15178 cat >>confdefs.h
<<\_ACEOF
15179 #define PY_UNICODE_TYPE unsigned short
15182 elif test "$ac_cv_sizeof_long" = "$unicode_size"
15184 PY_UNICODE_TYPE
="unsigned long"
15185 cat >>confdefs.h
<<\_ACEOF
15186 #define PY_UNICODE_TYPE unsigned long
15190 PY_UNICODE_TYPE
="no type found"
15192 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
15193 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
15196 # check for endianness
15197 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15198 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15199 if test "${ac_cv_c_bigendian+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 # See if sys/param.h defines the BYTE_ORDER macro.
15203 cat >conftest.
$ac_ext <<_ACEOF
15204 #line $LINENO "configure"
15205 #include "confdefs.h"
15206 #include <sys/types.h>
15207 #include <sys/param.h>
15209 #ifdef F77_DUMMY_MAIN
15210 # ifdef __cplusplus
15213 int F77_DUMMY_MAIN() { return 1; }
15218 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15219 bogus endian macros
15226 rm -f conftest.
$ac_objext
15227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15228 (eval $ac_compile) 2>&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try
='test -s conftest.$ac_objext'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15238 # It does; now see whether it defined to BIG_ENDIAN or not.
15239 cat >conftest.
$ac_ext <<_ACEOF
15240 #line $LINENO "configure"
15241 #include "confdefs.h"
15242 #include <sys/types.h>
15243 #include <sys/param.h>
15245 #ifdef F77_DUMMY_MAIN
15246 # ifdef __cplusplus
15249 int F77_DUMMY_MAIN() { return 1; }
15254 #if BYTE_ORDER != BIG_ENDIAN
15262 rm -f conftest.
$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264 (eval $ac_compile) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try
='test -s conftest.$ac_objext'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_cv_c_bigendian
=yes
15276 echo "$as_me: failed program was:" >&5
15277 cat conftest.
$ac_ext >&5
15278 ac_cv_c_bigendian
=no
15280 rm -f conftest.
$ac_objext conftest.
$ac_ext
15282 echo "$as_me: failed program was:" >&5
15283 cat conftest.
$ac_ext >&5
15284 # It does not; compile a test program.
15285 if test "$cross_compiling" = yes; then
15286 # try to guess the endianess by grep'ing values into an object file
15287 ac_cv_c_bigendian
=unknown
15288 cat >conftest.
$ac_ext <<_ACEOF
15289 #line $LINENO "configure"
15290 #include "confdefs.h"
15291 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15292 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15293 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15294 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15295 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15296 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15297 #ifdef F77_DUMMY_MAIN
15298 # ifdef __cplusplus
15301 int F77_DUMMY_MAIN() { return 1; }
15306 _ascii (); _ebcdic ();
15311 rm -f conftest.
$ac_objext
15312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15313 (eval $ac_compile) 2>&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
15317 { ac_try
='test -s conftest.$ac_objext'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; }; then
15323 if fgrep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15324 ac_cv_c_bigendian
=yes
15326 if fgrep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15327 if test "$ac_cv_c_bigendian" = unknown
; then
15328 ac_cv_c_bigendian
=no
15330 # finding both strings is unlikely to happen, but who knows?
15331 ac_cv_c_bigendian
=unknown
15335 echo "$as_me: failed program was:" >&5
15336 cat conftest.
$ac_ext >&5
15338 rm -f conftest.
$ac_objext conftest.
$ac_ext
15340 cat >conftest.
$ac_ext <<_ACEOF
15341 #line $LINENO "configure"
15342 #include "confdefs.h"
15346 /* Are we little or big endian? From Harbison&Steele. */
15350 char c[sizeof (long)];
15353 exit (u.c[sizeof (long) - 1] == 1);
15356 rm -f conftest
$ac_exeext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15358 (eval $ac_link) 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 ac_cv_c_bigendian
=no
15369 echo "$as_me: program exited with status $ac_status" >&5
15370 echo "$as_me: failed program was:" >&5
15371 cat conftest.
$ac_ext >&5
15372 ( exit $ac_status )
15373 ac_cv_c_bigendian
=yes
15375 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15378 rm -f conftest.
$ac_objext conftest.
$ac_ext
15380 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15381 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15382 case $ac_cv_c_bigendian in
15385 cat >>confdefs.h
<<\_ACEOF
15386 #define WORDS_BIGENDIAN 1
15392 { { echo "$as_me:$LINENO: error: unknown endianess
15393 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15394 echo "$as_me: error: unknown endianess
15395 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15396 { (exit 1); exit 1; }; } ;;
15400 # Check whether right shifting a negative integer extends the sign bit
15401 # or fills with zeros (like the Cray J90, according to Tim Peters).
15402 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
15403 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
15404 if test "${ac_cv_rshift_extends_sign+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 if test "$cross_compiling" = yes; then
15409 ac_cv_rshift_extends_sign
=yes
15411 cat >conftest.
$ac_ext <<_ACEOF
15412 #line $LINENO "configure"
15413 #include "confdefs.h"
15417 exit(((-1)>>3 == -1) ? 0 : 1);
15421 rm -f conftest
$ac_exeext
15422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15423 (eval $ac_link) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_cv_rshift_extends_sign
=yes
15434 echo "$as_me: program exited with status $ac_status" >&5
15435 echo "$as_me: failed program was:" >&5
15436 cat conftest.
$ac_ext >&5
15437 ( exit $ac_status )
15438 ac_cv_rshift_extends_sign
=no
15440 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15444 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
15445 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
15446 if test "$ac_cv_rshift_extends_sign" = no
15449 cat >>confdefs.h
<<\_ACEOF
15450 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
15455 # check for getc_unlocked and related locking functions
15456 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
15457 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
15458 if test "${ac_cv_have_getc_unlocked+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 cat >conftest.
$ac_ext <<_ACEOF
15463 #line $LINENO "configure"
15464 #include "confdefs.h"
15466 #ifdef F77_DUMMY_MAIN
15467 # ifdef __cplusplus
15470 int F77_DUMMY_MAIN() { return 1; }
15476 FILE *f = fopen("/dev/null", "r");
15485 rm -f conftest.
$ac_objext conftest
$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try
='test -s conftest$ac_exeext'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; }; then
15497 ac_cv_have_getc_unlocked
=yes
15499 echo "$as_me: failed program was:" >&5
15500 cat conftest.
$ac_ext >&5
15501 ac_cv_have_getc_unlocked
=no
15503 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15506 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
15507 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
15508 if test "$ac_cv_have_getc_unlocked" = yes
15511 cat >>confdefs.h
<<\_ACEOF
15512 #define HAVE_GETC_UNLOCKED 1
15517 # check for readline 4.0
15518 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
15519 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
15520 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 ac_check_lib_save_LIBS
=$LIBS
15524 LIBS
="-lreadline -ltermcap $LIBS"
15525 cat >conftest.
$ac_ext <<_ACEOF
15526 #line $LINENO "configure"
15527 #include "confdefs.h"
15529 /* Override any gcc2 internal prototype to avoid an error. */
15533 /* We use char because int might match the return type of a gcc2
15534 builtin and then its argument prototype would still apply. */
15535 char rl_pre_input_hook ();
15536 #ifdef F77_DUMMY_MAIN
15537 # ifdef __cplusplus
15540 int F77_DUMMY_MAIN() { return 1; }
15545 rl_pre_input_hook ();
15550 rm -f conftest.
$ac_objext conftest
$ac_exeext
15551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15552 (eval $ac_link) 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try
='test -s conftest$ac_exeext'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; }; then
15562 ac_cv_lib_readline_rl_pre_input_hook
=yes
15564 echo "$as_me: failed program was:" >&5
15565 cat conftest.
$ac_ext >&5
15566 ac_cv_lib_readline_rl_pre_input_hook
=no
15568 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15569 LIBS
=$ac_check_lib_save_LIBS
15571 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
15572 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
15573 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
15575 cat >>confdefs.h
<<\_ACEOF
15576 #define HAVE_RL_PRE_INPUT_HOOK 1
15582 # check for readline 4.2
15583 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
15584 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
15585 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 ac_check_lib_save_LIBS
=$LIBS
15589 LIBS
="-lreadline -ltermcap $LIBS"
15590 cat >conftest.
$ac_ext <<_ACEOF
15591 #line $LINENO "configure"
15592 #include "confdefs.h"
15594 /* Override any gcc2 internal prototype to avoid an error. */
15598 /* We use char because int might match the return type of a gcc2
15599 builtin and then its argument prototype would still apply. */
15600 char rl_completion_matches ();
15601 #ifdef F77_DUMMY_MAIN
15602 # ifdef __cplusplus
15605 int F77_DUMMY_MAIN() { return 1; }
15610 rl_completion_matches ();
15615 rm -f conftest.
$ac_objext conftest
$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617 (eval $ac_link) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try
='test -s conftest$ac_exeext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 ac_cv_lib_readline_rl_completion_matches
=yes
15629 echo "$as_me: failed program was:" >&5
15630 cat conftest.
$ac_ext >&5
15631 ac_cv_lib_readline_rl_completion_matches
=no
15633 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15634 LIBS
=$ac_check_lib_save_LIBS
15636 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
15637 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
15638 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
15640 cat >>confdefs.h
<<\_ACEOF
15641 #define HAVE_RL_COMPLETION_MATCHES 1
15647 echo "$as_me:$LINENO: checking for broken nice()" >&5
15648 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
15649 if test "${ac_cv_broken_nice+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 if test "$cross_compiling" = yes; then
15654 ac_cv_broken_nice
=no
15656 cat >conftest.
$ac_ext <<_ACEOF
15657 #line $LINENO "configure"
15658 #include "confdefs.h"
15662 int val1 = nice(1);
15663 if (val1 != -1 && val1 == nice(2))
15669 rm -f conftest
$ac_exeext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15671 (eval $ac_link) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15680 ac_cv_broken_nice
=yes
15682 echo "$as_me: program exited with status $ac_status" >&5
15683 echo "$as_me: failed program was:" >&5
15684 cat conftest.
$ac_ext >&5
15685 ( exit $ac_status )
15686 ac_cv_broken_nice
=no
15688 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15692 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
15693 echo "${ECHO_T}$ac_cv_broken_nice" >&6
15694 if test "$ac_cv_broken_nice" = yes
15697 cat >>confdefs.h
<<\_ACEOF
15698 #define HAVE_BROKEN_NICE 1
15703 # Look for subsecond timestamps in struct stat
15704 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
15705 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
15706 if test "${ac_cv_stat_tv_nsec+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 cat >conftest.
$ac_ext <<_ACEOF
15710 #line $LINENO "configure"
15711 #include "confdefs.h"
15712 #include <sys/stat.h>
15713 #ifdef F77_DUMMY_MAIN
15714 # ifdef __cplusplus
15717 int F77_DUMMY_MAIN() { return 1; }
15724 st.st_mtim.tv_nsec = 1;
15730 rm -f conftest.
$ac_objext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732 (eval $ac_compile) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try
='test -s conftest.$ac_objext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_cv_stat_tv_nsec
=yes
15744 echo "$as_me: failed program was:" >&5
15745 cat conftest.
$ac_ext >&5
15746 ac_cv_stat_tv_nsec
=no
15748 rm -f conftest.
$ac_objext conftest.
$ac_ext
15751 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
15752 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
15753 if test "$ac_cv_stat_tv_nsec" = yes
15756 cat >>confdefs.h
<<\_ACEOF
15757 #define HAVE_STAT_TV_NSEC 1
15762 # On HP/UX 11.0, mvwdelch is a block with a return statement
15763 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
15764 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
15765 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 cat >conftest.
$ac_ext <<_ACEOF
15769 #line $LINENO "configure"
15770 #include "confdefs.h"
15771 #include <curses.h>
15772 #ifdef F77_DUMMY_MAIN
15773 # ifdef __cplusplus
15776 int F77_DUMMY_MAIN() { return 1; }
15783 rtn = mvwdelch(0,0,0);
15789 rm -f conftest.
$ac_objext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try
='test -s conftest.$ac_objext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 ac_cv_mvwdelch_is_expression
=yes
15803 echo "$as_me: failed program was:" >&5
15804 cat conftest.
$ac_ext >&5
15805 ac_cv_mvwdelch_is_expression
=no
15807 rm -f conftest.
$ac_objext conftest.
$ac_ext
15810 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
15811 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
15813 if test "$ac_cv_mvwdelch_is_expression" = yes
15816 cat >>confdefs.h
<<\_ACEOF
15817 #define MVWDELCH_IS_EXPRESSION 1
15822 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
15823 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
15824 if test "${ac_cv_window_has_flags+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 cat >conftest.
$ac_ext <<_ACEOF
15828 #line $LINENO "configure"
15829 #include "confdefs.h"
15830 #include <curses.h>
15831 #ifdef F77_DUMMY_MAIN
15832 # ifdef __cplusplus
15835 int F77_DUMMY_MAIN() { return 1; }
15848 rm -f conftest.
$ac_objext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850 (eval $ac_compile) 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try
='test -s conftest.$ac_objext'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 ac_cv_window_has_flags
=yes
15862 echo "$as_me: failed program was:" >&5
15863 cat conftest.
$ac_ext >&5
15864 ac_cv_window_has_flags
=no
15866 rm -f conftest.
$ac_objext conftest.
$ac_ext
15869 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
15870 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
15873 if test "$ac_cv_window_has_flags" = yes
15876 cat >>confdefs.h
<<\_ACEOF
15877 #define WINDOW_HAS_FLAGS 1
15882 # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
15883 # Add sys/socket.h to confdefs.h
15884 cat >> confdefs.h
<<\EOF
15885 #ifdef HAVE_SYS_SOCKET_H
15886 #include <sys/socket.h>
15889 echo "$as_me:$LINENO: checking for socklen_t" >&5
15890 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
15891 if test "${ac_cv_type_socklen_t+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 cat >conftest.
$ac_ext <<_ACEOF
15895 #line $LINENO "configure"
15896 #include "confdefs.h"
15897 $ac_includes_default
15898 #ifdef F77_DUMMY_MAIN
15899 # ifdef __cplusplus
15902 int F77_DUMMY_MAIN() { return 1; }
15907 if ((socklen_t *) 0)
15909 if (sizeof (socklen_t))
15915 rm -f conftest.
$ac_objext
15916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15917 (eval $ac_compile) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try
='test -s conftest.$ac_objext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 ac_cv_type_socklen_t
=yes
15929 echo "$as_me: failed program was:" >&5
15930 cat conftest.
$ac_ext >&5
15931 ac_cv_type_socklen_t
=no
15933 rm -f conftest.
$ac_objext conftest.
$ac_ext
15935 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15936 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
15937 if test $ac_cv_type_socklen_t = yes; then
15941 cat >>confdefs.h
<<_ACEOF
15942 #define socklen_t int
15948 #AC_MSG_CHECKING(for Modules/Setup)
15949 #if test ! -f Modules/Setup ; then
15950 # if test ! -d Modules ; then
15953 # cp "$srcdir/Modules/Setup.dist" Modules/Setup
15954 # AC_MSG_RESULT(creating)
15956 # AC_MSG_RESULT(already exists)
15961 for h
in `(cd $srcdir;echo Python/thread_*.h)`
15963 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
15967 SRCDIRS
="Parser Grammar Objects Python Modules Mac Mac/Python"
15968 echo "$as_me:$LINENO: checking for build directories" >&5
15969 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
15970 for dir
in $SRCDIRS; do
15971 if test ! -d $dir; then
15975 echo "$as_me:$LINENO: result: done" >&5
15976 echo "${ECHO_T}done" >&6
15978 # generate output files
15979 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
15980 cat >confcache
<<\_ACEOF
15981 # This file is a shell script that caches the results of configure
15982 # tests run on this system so they can be shared between configure
15983 # scripts and configure runs, see configure's option --config-cache.
15984 # It is not useful on other systems. If it contains results you don't
15985 # want to keep, you may remove or edit it.
15987 # config.status only pays attention to the cache file if you give it
15988 # the --recheck option to rerun configure.
15990 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15991 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15992 # following values.
15996 # The following way of writing the cache mishandles newlines in values,
15997 # but we know of no workaround that is simple, portable, and efficient.
15998 # So, don't put newlines in cache variables' values.
15999 # Ultrix sh set writes to stderr and can't be redirected directly,
16000 # and sets the high bit in the cache file unless we assign to the vars.
16003 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16005 # `set' does not quote correctly, so add quotes (double-quote
16006 # substitution turns \\\\ into \\, and sed turns \\ into \).
16009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16012 # `set' quotes correctly as required by POSIX, so do not add quotes.
16014 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16023 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16025 if cmp -s $cache_file confcache
; then :; else
16026 if test -w $cache_file; then
16027 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16028 cat confcache
>$cache_file
16030 echo "not updating unwritable cache $cache_file"
16035 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16036 # Let make expand exec_prefix.
16037 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16039 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16040 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16041 # trailing colons and then remove the whole line if VPATH becomes empty
16042 # (actually we leave an empty line to preserve line numbers).
16043 if test "x$srcdir" = x.
; then
16044 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16045 s/:*\$(srcdir):*/:/;
16046 s/:*\${srcdir}:*/:/;
16048 s/^\([^=]*=[ ]*\):*/\1/;
16054 DEFS
=-DHAVE_CONFIG_H
16057 : ${CONFIG_STATUS=./config.status}
16058 ac_clean_files_save
=$ac_clean_files
16059 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16062 cat >$CONFIG_STATUS <<_ACEOF
16064 # Generated by $as_me.
16065 # Run this file to recreate the current configuration.
16066 # Compiler output produced by configure, useful for debugging
16067 # configure, is in config.log if it exists.
16070 SHELL=\${CONFIG_SHELL-$SHELL}
16073 cat >>$CONFIG_STATUS <<\_ACEOF
16075 ## --------------------- ##
16076 ## M4sh Initialization. ##
16077 ## --------------------- ##
16079 # Be Bourne compatible
16080 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16083 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16088 # Support unset when possible.
16089 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
16095 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
16096 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
16097 { LANG
=C
; export LANG
; }
16098 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16099 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
16100 { LC_ALL
=C
; export LC_ALL
; }
16101 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16102 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
16103 { LC_TIME
=C
; export LC_TIME
; }
16104 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16105 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
16106 { LC_CTYPE
=C
; export LC_CTYPE
; }
16107 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16108 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
16109 { LANGUAGE
=C
; export LANGUAGE
; }
16110 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16111 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
16112 { LC_COLLATE
=C
; export LC_COLLATE
; }
16113 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16114 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
16115 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
16116 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16117 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
16118 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
16121 # Name of the executable.
16122 as_me
=`(basename "$0") 2>/dev/null ||
16123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16124 X"$0" : 'X\(//\)$' \| \
16125 X"$0" : 'X\(/\)$' \| \
16126 . : '\(.\)' 2>/dev/null ||
16128 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16129 /^X\/\(\/\/\)$/{ s//\1/; q; }
16130 /^X\/\(\/\).*/{ s//\1/; q; }
16133 # PATH needs CR, and LINENO needs CR and PATH.
16134 # Avoid depending upon Character Ranges.
16135 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16136 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16137 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16138 as_cr_digits
='0123456789'
16139 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16141 # The user is always right.
16142 if test "${PATH_SEPARATOR+set}" != set; then
16143 echo "#! /bin/sh" >conftest.sh
16144 echo "exit 0" >>conftest.sh
16145 chmod +x conftest.sh
16146 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
16155 as_lineno_1
=$LINENO
16156 as_lineno_2
=$LINENO
16157 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16158 test "x$as_lineno_1" != "x$as_lineno_2" &&
16159 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16160 # Find who we are. Look in the path if we contain no path at all
16163 *[\\/]* ) as_myself
=$0 ;;
16164 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16165 for as_dir
in $PATH
16168 test -z "$as_dir" && as_dir
=.
16169 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16174 # We did not find ourselves, most probably we were run as `sh COMMAND'
16175 # in which case we are not to be found in the path.
16176 if test "x$as_myself" = x
; then
16179 if test ! -f "$as_myself"; then
16180 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16181 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16182 { (exit 1); exit 1; }; }
16184 case $CONFIG_SHELL in
16186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16187 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16190 test -z "$as_dir" && as_dir
=.
16191 for as_base
in sh bash ksh sh5
; do
16194 if ("$as_dir/$as_base" -c '
16195 as_lineno_1=$LINENO
16196 as_lineno_2=$LINENO
16197 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16198 test "x$as_lineno_1" != "x$as_lineno_2" &&
16199 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16200 CONFIG_SHELL
=$as_dir/$as_base
16201 export CONFIG_SHELL
16202 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16210 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16211 # uniformly replaced by the line number. The first 'sed' inserts a
16212 # line-number line before each line; the second 'sed' does the real
16213 # work. The second script uses 'N' to pair each line-number line
16214 # with the numbered line, and appends trailing '-' during
16215 # substitution so that $LINENO is not a special case at line end.
16216 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16217 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16218 sed '=' <$as_myself |
16223 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16226 s,^['$as_cr_digits']*\n,,
16227 ' >$as_me.lineno
&&
16228 chmod +x
$as_me.lineno ||
16229 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16230 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16231 { (exit 1); exit 1; }; }
16233 # Don't try to exec as it changes $[0], causing all sort of problems
16234 # (the dirname of $[0] is not the place where we might find the
16235 # original and so on. Autoconf is especially sensible to this).
16237 # Exit status is that of the last command.
16242 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16243 *c
*,-n*) ECHO_N
= ECHO_C
='
16245 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16246 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16249 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16255 rm -f conf$$ conf$$.exe conf$$.
file
16257 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16258 # We could just check for DJGPP; but this test a) works b) is more generic
16259 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16260 if test -f conf$$.exe
; then
16261 # Don't use ln at all; we don't have any links
16266 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16271 rm -f conf$$ conf$$.exe conf$$.
file
16273 as_executable_p
="test -f"
16275 # Sed expression to map a string onto a valid CPP name.
16276 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16278 # Sed expression to map a string onto a valid variable name.
16279 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16283 # We need space, tab and new line, in precisely that order.
16289 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
16293 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16294 # report actual input values of CONFIG_FILES etc. instead of their
16295 # values after options handling. Logging --version etc. is OK.
16299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16300 ## Running $as_me. ##
16305 This file was extended by $as_me, which was
16306 generated by GNU Autoconf 2.53. Invocation command line was
16308 CONFIG_FILES = $CONFIG_FILES
16309 CONFIG_HEADERS = $CONFIG_HEADERS
16310 CONFIG_LINKS = $CONFIG_LINKS
16311 CONFIG_COMMANDS = $CONFIG_COMMANDS
16315 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16319 # Files that config.status was made for.
16320 if test -n "$ac_config_files"; then
16321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16324 if test -n "$ac_config_headers"; then
16325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16328 if test -n "$ac_config_links"; then
16329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16332 if test -n "$ac_config_commands"; then
16333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16336 cat >>$CONFIG_STATUS <<\_ACEOF
16339 \`$as_me' instantiates files from templates according to the
16340 current configuration.
16342 Usage: $0 [OPTIONS] [FILE]...
16344 -h, --help print this help, then exit
16345 -V, --version print version number, then exit
16346 -d, --debug don't remove temporary files
16347 --recheck update $as_me by reconfiguring in the same conditions
16348 --file=FILE[:TEMPLATE]
16349 instantiate the configuration file FILE
16350 --header=FILE[:TEMPLATE]
16351 instantiate the configuration header FILE
16353 Configuration files:
16356 Configuration headers:
16359 Report bugs to <bug-autoconf@gnu.org>."
16362 cat >>$CONFIG_STATUS <<_ACEOF
16365 configured by $0, generated by GNU Autoconf 2.53,
16366 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16368 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16369 Free Software Foundation, Inc.
16370 This config.status script is free software; the Free Software Foundation
16371 gives unlimited permission to copy, distribute and modify it."
16376 cat >>$CONFIG_STATUS <<\_ACEOF
16377 # If no file are specified by the user, then we need to provide default
16378 # value. By we need to know if files were specified by the user.
16384 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16385 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16387 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
16391 *) # This is not an option, so the user has probably given explicit
16393 ac_need_defaults
=false
;;
16397 # Handling of the options.
16399 cat >>$CONFIG_STATUS <<_ACEOF
16400 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16401 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16402 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16404 cat >>$CONFIG_STATUS <<\_ACEOF
16405 --version |
--vers* |
-V )
16406 echo "$ac_cs_version"; exit 0 ;;
16408 # Conflict between --help and --header
16409 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16410 Try \`$0 --help' for more information." >&5
16411 echo "$as_me: error: ambiguous option: $1
16412 Try \`$0 --help' for more information." >&2;}
16413 { (exit 1); exit 1; }; };;
16414 --help |
--hel |
-h )
16415 echo "$ac_cs_usage"; exit 0 ;;
16416 --debug |
--d* |
-d )
16418 --file |
--fil |
--fi |
--f )
16420 CONFIG_FILES
="$CONFIG_FILES $1"
16421 ac_need_defaults
=false
;;
16422 --header |
--heade |
--head |
--hea )
16424 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
16425 ac_need_defaults
=false
;;
16427 # This is an error.
16428 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16429 Try \`$0 --help' for more information." >&5
16430 echo "$as_me: error: unrecognized option: $1
16431 Try \`$0 --help' for more information." >&2;}
16432 { (exit 1); exit 1; }; } ;;
16434 *) ac_config_targets
="$ac_config_targets $1" ;;
16446 cat >>$CONFIG_STATUS <<\_ACEOF
16447 for ac_config_target
in $ac_config_targets
16449 case "$ac_config_target" in
16450 # Handling of arguments.
16451 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
16452 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
16453 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
16454 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16455 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16456 { (exit 1); exit 1; }; };;
16460 # If the user did not use the arguments to specify the items to instantiate,
16461 # then the envvar interface is used. Set only those that are not.
16462 # We use the long form for the default assignment because of an extremely
16463 # bizarre bug on SunOS 4.1.3.
16464 if $ac_need_defaults; then
16465 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16466 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16469 # Create a temporary directory, and hook for its removal unless debugging.
16472 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16473 trap '{ (exit 1); exit 1; }' 1 2 13 15
16476 # Create a (secure) tmp directory for tmp files.
16479 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16480 test -n "$tmp" && test -d "$tmp"
16483 tmp
=$TMPDIR/cs$$
-$RANDOM
16484 (umask 077 && mkdir
$tmp)
16487 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16488 { (exit 1); exit 1; }
16493 cat >>$CONFIG_STATUS <<_ACEOF
16496 # CONFIG_FILES section.
16499 # No need to generate the scripts if there are no CONFIG_FILES.
16500 # This happens for instance when ./config.status config.h
16501 if test -n "\$CONFIG_FILES"; then
16502 # Protect against being on the right side of a sed subst in config.status.
16503 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16504 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16505 s,@SHELL@,$SHELL,;t t
16506 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16507 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16508 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16509 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16510 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16511 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16512 s,@exec_prefix@,$exec_prefix,;t t
16513 s,@prefix@,$prefix,;t t
16514 s,@program_transform_name@,$program_transform_name,;t t
16515 s,@bindir@,$bindir,;t t
16516 s,@sbindir@,$sbindir,;t t
16517 s,@libexecdir@,$libexecdir,;t t
16518 s,@datadir@,$datadir,;t t
16519 s,@sysconfdir@,$sysconfdir,;t t
16520 s,@sharedstatedir@,$sharedstatedir,;t t
16521 s,@localstatedir@,$localstatedir,;t t
16522 s,@libdir@,$libdir,;t t
16523 s,@includedir@,$includedir,;t t
16524 s,@oldincludedir@,$oldincludedir,;t t
16525 s,@infodir@,$infodir,;t t
16526 s,@mandir@,$mandir,;t t
16527 s,@build_alias@,$build_alias,;t t
16528 s,@host_alias@,$host_alias,;t t
16529 s,@target_alias@,$target_alias,;t t
16530 s,@DEFS@,$DEFS,;t t
16531 s,@ECHO_C@,$ECHO_C,;t t
16532 s,@ECHO_N@,$ECHO_N,;t t
16533 s,@ECHO_T@,$ECHO_T,;t t
16534 s,@LIBS@,$LIBS,;t t
16535 s,@VERSION@,$VERSION,;t t
16536 s,@SOVERSION@,$SOVERSION,;t t
16537 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
16538 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
16539 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
16540 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
16541 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
16542 s,@MACHDEP@,$MACHDEP,;t t
16543 s,@SGI_ABI@,$SGI_ABI,;t t
16545 s,@MAINOBJ@,$MAINOBJ,;t t
16546 s,@EXEEXT@,$EXEEXT,;t t
16548 s,@CFLAGS@,$CFLAGS,;t t
16549 s,@LDFLAGS@,$LDFLAGS,;t t
16550 s,@CPPFLAGS@,$CPPFLAGS,;t t
16551 s,@ac_ct_CC@,$ac_ct_CC,;t t
16552 s,@OBJEXT@,$OBJEXT,;t t
16554 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
16555 s,@LIBRARY@,$LIBRARY,;t t
16556 s,@LDLIBRARY@,$LDLIBRARY,;t t
16557 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
16558 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
16559 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
16560 s,@INSTSONAME@,$INSTSONAME,;t t
16561 s,@RUNSHARED@,$RUNSHARED,;t t
16562 s,@LINKCC@,$LINKCC,;t t
16563 s,@RANLIB@,$RANLIB,;t t
16564 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16566 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16567 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16568 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16571 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
16573 s,@LDSHARED@,$LDSHARED,;t t
16574 s,@BLDSHARED@,$BLDSHARED,;t t
16575 s,@CCSHARED@,$CCSHARED,;t t
16576 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
16577 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
16578 s,@SHLIBS@,$SHLIBS,;t t
16579 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
16580 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
16581 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
16582 s,@LDLAST@,$LDLAST,;t t
16583 s,@THREADOBJ@,$THREADOBJ,;t t
16584 s,@DLINCLDIR@,$DLINCLDIR,;t t
16585 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
16586 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
16587 s,@LIBOBJS@,$LIBOBJS,;t t
16588 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
16589 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
16590 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
16591 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
16592 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
16593 s,@LIBM@,$LIBM,;t t
16594 s,@LIBC@,$LIBC,;t t
16595 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
16596 s,@THREADHEADERS@,$THREADHEADERS,;t t
16597 s,@SRCDIRS@,$SRCDIRS,;t t
16602 cat >>$CONFIG_STATUS <<\_ACEOF
16603 # Split the substitutions into bite-sized pieces for seds with
16604 # small command number limits, like on Digital OSF/1 and HP-UX.
16605 ac_max_sed_lines
=48
16606 ac_sed_frag
=1 # Number of current file.
16607 ac_beg
=1 # First line for current file.
16608 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16611 while $ac_more_lines; do
16612 if test $ac_beg -gt 1; then
16613 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16615 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16617 if test ! -s $tmp/subs.frag
; then
16618 ac_more_lines
=false
16620 # The purpose of the label and of the branching condition is to
16621 # speed up the sed processing (if there are no `@' at all, there
16622 # is no need to browse any of the substitutions).
16623 # These are the two extra sed commands mentioned above.
16625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16626 if test -z "$ac_sed_cmds"; then
16627 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16629 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16631 ac_sed_frag
=`expr $ac_sed_frag + 1`
16633 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16636 if test -z "$ac_sed_cmds"; then
16639 fi # test -n "$CONFIG_FILES"
16642 cat >>$CONFIG_STATUS <<\_ACEOF
16643 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16644 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16646 - |
*:- |
*:-:* ) # input from stdin
16648 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16649 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16650 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16651 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16652 * ) ac_file_in
=$ac_file.
in ;;
16655 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16656 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16658 X"$ac_file" : 'X\(//\)[^/]' \| \
16659 X"$ac_file" : 'X\(//\)$' \| \
16660 X"$ac_file" : 'X\(/\)' \| \
16661 . : '\(.\)' 2>/dev/null ||
16663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16665 /^X\(\/\/\)$/{ s//\1/; q; }
16666 /^X\(\/\).*/{ s//\1/; q; }
16668 { case "$ac_dir" in
16669 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
16673 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16674 case $as_mkdir_dir in
16675 # Skip DOS drivespec
16676 ?
:) as_incr_dir
=$as_mkdir_dir ;;
16678 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
16679 test -d "$as_incr_dir" ||
16680 mkdir
"$as_incr_dir" ||
16681 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16682 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16683 { (exit 1); exit 1; }; }
16690 if test "$ac_dir" != .
; then
16691 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16692 # A "../" for each directory in $ac_dir_suffix.
16693 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16695 ac_dir_suffix
= ac_top_builddir
=
16699 .
) # No --srcdir option. We are building in place.
16701 if test -z "$ac_top_builddir"; then
16704 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16706 [\\/]* | ?
:[\\/]* ) # Absolute path.
16707 ac_srcdir
=$srcdir$ac_dir_suffix;
16708 ac_top_srcdir
=$srcdir ;;
16709 *) # Relative path.
16710 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16711 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16713 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16715 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
16716 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16717 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16718 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16722 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16723 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
16726 if test x
"$ac_file" != x-
; then
16727 { echo "$as_me:$LINENO: creating $ac_file" >&5
16728 echo "$as_me: creating $ac_file" >&6;}
16731 # Let's still pretend it is `configure' which instantiates (i.e., don't
16732 # use $as_me), people would be surprised to read:
16733 # /* config.h. Generated by config.status. */
16734 if test x
"$ac_file" = x-
; then
16737 configure_input
="$ac_file. "
16739 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16740 sed 's,.*/,,'` by configure."
16742 # First look for the input files in the build tree, otherwise in the
16744 ac_file_inputs
=`IFS=:
16745 for f in $ac_file_in; do
16747 -) echo $tmp/stdin ;;
16749 # Absolute (can't be DOS-style, as IFS=:)
16750 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16751 echo "$as_me: error: cannot find input file: $f" >&2;}
16752 { (exit 1); exit 1; }; }
16755 if test -f "$f"; then
16758 elif test -f "$srcdir/$f"; then
16763 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16764 echo "$as_me: error: cannot find input file: $f" >&2;}
16765 { (exit 1); exit 1; }; }
16768 done` ||
{ (exit 1); exit 1; }
16770 cat >>$CONFIG_STATUS <<_ACEOF
16774 cat >>$CONFIG_STATUS <<\_ACEOF
16776 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16777 s
,@configure_input@
,$configure_input,;t t
16778 s
,@srcdir@
,$ac_srcdir,;t t
16779 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16780 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16781 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16782 s
,@builddir@
,$ac_builddir,;t t
16783 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16784 s
,@top_builddir@
,$ac_top_builddir,;t t
16785 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16786 s
,@INSTALL@
,$ac_INSTALL,;t t
16787 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16789 if test x"$ac_file" != x-; then
16790 mv $tmp/out $ac_file
16798 cat >>$CONFIG_STATUS <<\_ACEOF
16801 # CONFIG_HEADER section.
16804 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16805 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16807 # ac_d sets the value in "#define NAME VALUE" lines.
16808 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16809 ac_dB
='[ ].*$,\1#\2'
16812 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16813 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16814 ac_uB
='$,\1#\2define\3'
16818 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16821 - |
*:- |
*:-:* ) # input from stdin
16823 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16824 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16825 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16826 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16827 * ) ac_file_in
=$ac_file.
in ;;
16830 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16831 echo "$as_me: creating $ac_file" >&6;}
16833 # First look for the input files in the build tree, otherwise in the
16835 ac_file_inputs
=`IFS=:
16836 for f in $ac_file_in; do
16838 -) echo $tmp/stdin ;;
16840 # Absolute (can't be DOS-style, as IFS=:)
16841 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16842 echo "$as_me: error: cannot find input file: $f" >&2;}
16843 { (exit 1); exit 1; }; }
16846 if test -f "$f"; then
16849 elif test -f "$srcdir/$f"; then
16854 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16855 echo "$as_me: error: cannot find input file: $f" >&2;}
16856 { (exit 1); exit 1; }; }
16859 done` ||
{ (exit 1); exit 1; }
16860 # Remove the trailing spaces.
16861 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16865 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16866 # `conftest.undefs', that substitutes the proper values into
16867 # config.h.in to produce config.h. The first handles `#define'
16868 # templates, and the second `#undef' templates.
16869 # And first: Protect against being on the right side of a sed subst in
16870 # config.status. Protect against being in an unquoted here document
16871 # in config.status.
16872 rm -f conftest.defines conftest.undefs
16873 # Using a here document instead of a string reduces the quoting nightmare.
16874 # Putting comments in sed scripts is not portable.
16876 # `end' is used to avoid that the second main sed command (meant for
16877 # 0-ary CPP macros) applies to n-ary macro definitions.
16878 # See the Autoconf documentation for `clear'.
16879 cat >confdef2sed.
sed <<\_ACEOF
16884 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16886 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16889 # If some macros were called several times there might be several times
16890 # the same #defines, which is useless. Nevertheless, we may not want to
16891 # sort them, since we want the *last* AC-DEFINE to be honored.
16892 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16893 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16894 rm -f confdef2sed.sed
16896 # This sed command replaces #undef with comments. This is necessary, for
16897 # example, in the case of _POSIX_SOURCE, which is predefined and required
16898 # on some systems where configure will not decide to define it.
16899 cat >>conftest.undefs <<\_ACEOF
16900 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16903 # Break up conftest.defines because some shells have a limit on the size
16904 # of here documents, and old seds have small limits too (100 cmds).
16905 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16906 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16907 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16908 echo ' :' >>$CONFIG_STATUS
16909 rm -f conftest.tail
16910 while grep . conftest.defines >/dev/null
16912 # Write a limited-size here document to $tmp/defines.sed.
16913 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16914 # Speed up: don't consider the non `#define' lines.
16915 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16916 # Work around the forget-to-reset-the-flag bug.
16917 echo 't clr' >>$CONFIG_STATUS
16918 echo ': clr' >>$CONFIG_STATUS
16919 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16921 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16923 mv $tmp/out $tmp/in
16925 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16926 rm -f conftest.defines
16927 mv conftest.
tail conftest.defines
16929 rm -f conftest.defines
16930 echo ' fi # egrep' >>$CONFIG_STATUS
16931 echo >>$CONFIG_STATUS
16933 # Break up conftest.undefs because some shells have a limit on the size
16934 # of here documents, and old seds have small limits too (100 cmds).
16935 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16936 rm -f conftest.
tail
16937 while grep . conftest.undefs
>/dev
/null
16939 # Write a limited-size here document to $tmp/undefs.sed.
16940 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16941 # Speed up: don't consider the non
`#undef'
16942 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16943 # Work around the forget-to-reset-the-flag bug.
16944 echo 't clr' >>$CONFIG_STATUS
16945 echo ': clr' >>$CONFIG_STATUS
16946 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16948 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16950 mv $tmp/out $tmp/in
16952 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16953 rm -f conftest.undefs
16954 mv conftest.tail conftest.undefs
16956 rm -f conftest.undefs
16958 cat >>$CONFIG_STATUS <<\_ACEOF
16959 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16960 # use $as_me), people would be surprised to read:
16961 # /* config.h. Generated by config.status. */
16962 if test x
"$ac_file" = x-
; then
16963 echo "/* Generated by configure. */" >$tmp/config.h
16965 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16967 cat $tmp/in >>$tmp/config.h
16969 if test x
"$ac_file" != x-
; then
16970 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
16971 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16972 echo "$as_me: $ac_file is unchanged" >&6;}
16974 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16976 X"$ac_file" : 'X\(//\)[^/]' \| \
16977 X"$ac_file" : 'X\(//\)$' \| \
16978 X"$ac_file" : 'X\(/\)' \| \
16979 . : '\(.\)' 2>/dev/null ||
16981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16983 /^X\(\/\/\)$/{ s//\1/; q; }
16984 /^X\(\/\).*/{ s//\1/; q; }
16986 { case "$ac_dir" in
16987 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
16991 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16992 case $as_mkdir_dir in
16993 # Skip DOS drivespec
16994 ?
:) as_incr_dir
=$as_mkdir_dir ;;
16996 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
16997 test -d "$as_incr_dir" ||
16998 mkdir
"$as_incr_dir" ||
16999 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17000 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17001 { (exit 1); exit 1; }; }
17007 mv $tmp/config.h
$ac_file
17011 rm -f $tmp/config.h
17016 cat >>$CONFIG_STATUS <<\_ACEOF
17018 { (exit 0); exit 0; }
17020 chmod +x
$CONFIG_STATUS
17021 ac_clean_files
=$ac_clean_files_save
17024 # configure is writing to config.log, and then calls config.status.
17025 # config.status does its own redirection, appending to config.log.
17026 # Unfortunately, on DOS this fails, as config.log is still kept open
17027 # by configure, so config.status won't be able to write to it; its
17028 # output is simply discarded. So we exec the FD to /dev/null,
17029 # effectively closing config.log, so it can be properly (re)opened and
17030 # appended to by config.status. When coming back to configure, we
17031 # need to make the FD available again.
17032 if test "$no_create" != yes; then
17035 $SHELL $CONFIG_STATUS || ac_cs_success
=false
17037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17038 # would make configure fail if this is the last instruction.
17039 $ac_cs_success ||
{ (exit 1); exit 1; }
17043 echo "creating Setup"
17044 if test ! -f Modules
/Setup
17046 cp $srcdir/Modules
/Setup.dist Modules
/Setup
17049 echo "creating Setup.local"
17050 if test ! -f Modules
/Setup.
local
17052 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
17055 echo "creating Makefile"
17056 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
17057 -s Modules Modules
/Setup.config \
17058 Modules
/Setup.
local Modules
/Setup
17059 mv config.c Modules