2 # From configure.in Revision: 1.400 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for python 2.3.
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.
256 PACKAGE_NAME
='python'
257 PACKAGE_TARNAME
='python'
258 PACKAGE_VERSION
='2.3'
259 PACKAGE_STRING
='python 2.3'
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 python 2.3 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
820 case $ac_init_help in
821 short | recursive
) echo "Configuration of python 2.3:";;
826 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
827 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
828 --enable-framework[=INSTALLDIR
]
829 Build
(MacOSX|Darwin
) framework
830 --enable-shared disable
/enable building shared python library
831 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
832 --enable-ipv6 Enable ipv6
(with ipv4
) support
833 --disable-ipv6 Disable ipv6 support
834 --enable-unicode[=ucs
[24]]
835 Enable Unicode
strings (default is
yes)
838 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
839 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
840 --without-gcc never use gcc
841 --with-cxx=<compiler
> enable C
++ support
842 --with-suffix=.exe
set executable suffix
843 --with-pydebug build with Py_DEBUG defined
844 --with-libs='lib1 ...' link against additional libs
845 --with-signal-module disable
/enable signal module
846 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
847 --with(out
)-threads[=DIRECTORY
]
848 disable
/enable thread support
849 --with(out
)-thread[=DIRECTORY
]
850 deprecated
; use
--with(out
)-threads
851 --with-pth use GNU pth threading libraries
852 --with(out
)-universal-newlines
853 disable
/enable foreign newlines
854 --with(out
)-doc-strings disable
/enable documentation
strings
855 --with(out
)-pymalloc disable
/enable specialized mallocs
856 --with-wctype-functions use wctype.h functions
857 --with-sgi-dl=DIRECTORY IRIX
4 dynamic linking
858 --with-dl-dld=DL_DIR GNU dynamic linking
859 --with-fpectl enable SIGFPE catching
860 --with-libm=STRING math library
861 --with-libc=STRING C library
863 Some influential environment variables
:
864 CC C compiler
command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
867 nonstandard directory
<lib dir
>
868 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
869 headers
in a nonstandard directory
<include dir
>
872 Use these variables to override the choices made by
`configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
890 ac_dir_suffix= ac_top_builddir=
894 .) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
911 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
912 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
913 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f $ac_srcdir/configure.gnu; then
919 $SHELL $ac_srcdir/configure.gnu --help=recursive
920 elif test -f $ac_srcdir/configure; then
922 $SHELL $ac_srcdir/configure --help=recursive
923 elif test -f $ac_srcdir/configure.ac ||
924 test -f $ac_srcdir/configure.in; then
928 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
934 test -n "$ac_init_help" && exit 0
935 if $ac_init_version; then
938 generated by GNU Autoconf 2.53
940 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
941 Free Software Foundation, Inc.
942 This configure script is free software; the Free Software Foundation
943 gives unlimited permission to copy, distribute and modify it.
949 This file contains any messages produced by compilers while
950 running configure, to aid debugging if configure makes a mistake.
952 It was created by python $as_me 2.3, which was
953 generated by GNU Autoconf 2.53. Invocation command line was
964 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
965 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
966 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
967 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
968 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
970 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
971 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
973 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
974 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
975 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
976 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
977 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
978 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
979 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987 test -z "$as_dir" && as_dir=.
1003 # Keep a trace of the command line.
1004 # Strip out --no-create and --no-recursion so they do not pile up.
1005 # Also quote any args containing shell meta-characters.
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n ) continue ;;
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1019 case " $ac_configure_args " in
1020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1021 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1024 # Get rid of the leading space.
1027 # When interrupted or exit'd, cleanup temporary files, and complete
1028 # config.log. We remove comments because anyway the quotes in there
1029 # would cause problems or look ugly.
1030 # WARNING: Be sure not to use single quotes in there, as some shells,
1031 # such as our DU 5.0 friend, will then `close
' the trap.
1032 trap 'exit_status
=$?
1033 # Save into config.log some information that might help in debugging.
1037 ## ---------------- ##
1038 ## Cache variables. ##
1039 ## ---------------- ##
1042 # The following way of writing the cache mishandles newlines in values,
1045 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1048 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1053 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1058 if test -s confdefs.h
; then
1065 sed "/^$/d" confdefs.h
1068 test "$ac_signal" != 0 &&
1069 echo "$as_me: caught signal $ac_signal"
1070 echo "$as_me: exit $exit_status"
1072 rm -f core core.
* *.core
&&
1073 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1076 for ac_signal in 1 2 13 15; do
1077 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1082 rm -rf conftest* confdefs.h
1083 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1086 # Predefined preprocessor variables.
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_NAME "$PACKAGE_NAME"
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1103 cat >>confdefs.h <<_ACEOF
1104 #define PACKAGE_STRING "$PACKAGE_STRING"
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1113 # Let the site file select an alternate cache file if it wants to.
1114 # Prefer explicitly selected file to automatically selected ones.
1115 if test -z "$CONFIG_SITE"; then
1116 if test "x$prefix" != xNONE; then
1117 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1119 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1122 for ac_site_file in $CONFIG_SITE; do
1123 if test -r "$ac_site_file"; then
1124 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1125 echo "$as_me: loading site script $ac_site_file" >&6;}
1126 sed 's
/^
/|
/' "$ac_site_file" >&5
1131 if test -r "$cache_file"; then
1132 # Some versions of bash will fail to source /dev/null (special
1133 # files actually), so we avoid doing that.
1134 if test -f "$cache_file"; then
1135 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1136 echo "$as_me: loading cache $cache_file" >&6;}
1138 [\\/]* | ?:[\\/]* ) . $cache_file;;
1139 *) . ./$cache_file;;
1143 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1144 echo "$as_me: creating cache $cache_file" >&6;}
1148 # Check that the precious variables saved in the cache have kept the same
1150 ac_cache_corrupted=false
1151 for ac_var in `(set) 2>&1 |
1152 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1153 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1154 eval ac_new_set=\$ac_env_${ac_var}_set
1155 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1156 eval ac_new_val="\$ac_env_${ac_var}_value"
1157 case $ac_old_set,$ac_new_set in
1159 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1160 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1161 ac_cache_corrupted=: ;;
1163 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1164 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1165 ac_cache_corrupted=: ;;
1168 if test "x$ac_old_val" != "x$ac_new_val"; then
1169 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1170 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1171 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1172 echo "$as_me: former value: $ac_old_val" >&2;}
1173 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1174 echo "$as_me: current value: $ac_new_val" >&2;}
1175 ac_cache_corrupted=:
1178 # Pass precious variables to config.status.
1179 if test "$ac_new_set" = set; then
1181 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1182 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1183 *) ac_arg=$ac_var=$ac_new_val ;;
1185 case " $ac_configure_args " in
1186 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1187 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1191 if $ac_cache_corrupted; then
1192 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1193 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1194 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1195 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1196 { (exit 1); exit 1; }; }
1200 ac_cpp='$CPP $CPPFLAGS'
1201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1202 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1231 ac_config_headers="$ac_config_headers pyconfig.h"
1234 # This is for stuff that absolutely must end up in pyconfig.h.
1235 # Please use pyport.h instead, if possible.
1247 # The later defininition of _XOPEN_SOURCE disables certain features
1248 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1250 cat >>confdefs.h <<\_ACEOF
1251 #define _GNU_SOURCE 1
1255 define_xopen_source=yes
1257 # Arguments passed to configure.
1259 CONFIG_ARGS="$ac_configure_args"
1261 # Check whether --enable-framework or --disable-framework was given.
1262 if test "${enable_framework+set}" = set; then
1263 enableval="$enable_framework"
1267 enableval=/Library/Frameworks
1272 PYTHONFRAMEWORKDIR=no-framework
1273 PYTHONFRAMEWORKPREFIX=
1274 PYTHONFRAMEWORKINSTALLDIR=
1278 PYTHONFRAMEWORK=Python
1279 PYTHONFRAMEWORKDIR=Python.framework
1280 PYTHONFRAMEWORKPREFIX=$enableval
1281 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1282 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1288 PYTHONFRAMEWORKDIR=no-framework
1289 PYTHONFRAMEWORKPREFIX=
1290 PYTHONFRAMEWORKINSTALLDIR=
1300 ## AC_HELP_STRING(--with-dyld,
1301 ## Use (OpenStep|Rhapsody) dynamic linker))
1303 # Set name for machine-dependent library files
1305 echo "$as_me:$LINENO: checking MACHDEP" >&5
1306 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1307 if test -z "$MACHDEP"
1309 ac_sys_system=`uname -s`
1310 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1311 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1312 ac_sys_release=`uname -v`
1314 ac_sys_release=`uname -r`
1316 ac_md_system=`echo $ac_sys_system |
1317 tr -d '/ ' | tr '[A-Z
]' '[a-z
]'`
1318 ac_md_release=`echo $ac_sys_release |
1319 tr -d '/ ' | sed 's
/^
[A-Z
]\.
//' | sed 's
/\..
*//'`
1320 MACHDEP="$ac_md_system$ac_md_release"
1323 cygwin*) MACHDEP="cygwin";;
1324 darwin*) MACHDEP="darwin";;
1325 atheos*) MACHDEP="atheos";;
1326 '') MACHDEP="unknown";;
1330 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1331 # disable features if it is defined, without any means to access these
1332 # features as extensions. For these systems, we skip the definition of
1333 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1334 # some feature, make sure there is no alternative way to access this
1335 # feature. Also, when using wildcards, make sure you have verified the
1336 # need for not defining _XOPEN_SOURCE on all systems matching the
1337 # wildcard, and that the wildcard does not include future systems
1338 # (which may remove their limitations).
1339 case $ac_sys_system/$ac_sys_release in
1340 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1341 # even though select is a POSIX function. Reported by J. Ribbens.
1342 OpenBSD/2.* | OpenBSD/3.[012])
1343 define_xopen_source=no;;
1344 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1345 # of union __?sigval. Reported by Stuart Bishop.
1347 define_xopen_source=no;;
1350 if test $define_xopen_source = yes
1353 cat >>confdefs.h <<\_ACEOF
1354 #define _XOPEN_SOURCE 600
1358 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1359 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1360 # several APIs are not declared. Since this is also needed in some
1361 # cases for HP-UX, we define it globally.
1364 cat >>confdefs.h <<\_ACEOF
1365 #define _XOPEN_SOURCE_EXTENDED 1
1369 cat >>confdefs.h <<\_ACEOF
1370 #define _POSIX_C_SOURCE 200112L
1377 # SGI compilers allow the specification of the both the ABI and the
1378 # ISA on the command line. Depending on the values of these switches,
1379 # different and often incompatable code will be generated.
1381 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1382 # thus supply support for various ABI/ISA combinations. The MACHDEP
1383 # variable is also adjusted.
1386 if test ! -z "$SGI_ABI"
1389 LDFLAGS="$SGI_ABI $LDFLAGS"
1390 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's
/ *//g
'`
1392 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1393 echo "${ECHO_T}$MACHDEP" >&6
1395 # And add extra plat-mac for darwin
1398 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1399 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1400 if test -z "$EXTRAPLATDIR"
1404 EXTRAPLATDIR="\$(PLATMACDIRS)"
1405 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1413 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1414 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1416 # checks for alternative programs
1418 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1419 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1420 # just to get things to compile and link. Users are free to override OPT
1421 # when running configure or make. The build should not break if they do.
1422 # BASECFLAGS should generally not be messed with, however.
1424 # XXX shouldn't some
/most
/all of this code be merged with the stuff later
1425 # on that fiddles with OPT and BASECFLAGS?
1426 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1427 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1429 # Check whether --with-gcc or --without-gcc was given.
1430 if test "${with_gcc+set}" = set; then
1439 without_gcc
=$withval;;
1443 case $ac_sys_system in
1447 case $BE_HOST_CPU in
1451 BASECFLAGS
="$BASECFLAGS -export pragma"
1453 LDFLAGS
="$LDFLAGS -nodup"
1461 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1462 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1463 { (exit 1); exit 1; }; }
1466 AR
="\$(srcdir)/Modules/ar_beos"
1475 echo "$as_me:$LINENO: result: $without_gcc" >&5
1476 echo "${ECHO_T}$without_gcc" >&6
1481 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1482 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1484 # Check whether --with-cxx or --without-cxx was given.
1485 if test "${with_cxx+set}" = set; then
1502 echo "$as_me:$LINENO: result: $with_cxx" >&5
1503 echo "${ECHO_T}$with_cxx" >&6
1505 if test "$with_cxx" = "yes"
1507 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1508 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1509 { (exit 1); exit 1; }; }
1515 if test "$check_cxx" = "yes"
1517 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1519 # Extract the first word of "$ac_prog", so it can be a program name with args.
1520 set dummy
$ac_prog; ac_word
=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_CXX+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 if test -n "$CXX"; then
1527 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1533 test -z "$as_dir" && as_dir
=.
1534 for ac_exec_ext
in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CXX
="$ac_prog"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546 if test -n "$CXX"; then
1547 echo "$as_me:$LINENO: result: $CXX" >&5
1548 echo "${ECHO_T}$CXX" >&6
1550 echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1554 test -n "$CXX" && break
1556 test -n "$CXX" || CXX
="notfound"
1558 if test "$CXX" = "notfound"
1563 ac_cpp
='$CXXCPP $CPPFLAGS'
1564 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1565 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1566 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1567 cat >conftest.
$ac_ext <<_ACEOF
1568 #line $LINENO "configure"
1569 #include "confdefs.h"
1571 #ifdef F77_DUMMY_MAIN
1575 int F77_DUMMY_MAIN() { return 1; }
1585 ac_clean_files_save
=$ac_clean_files
1586 ac_clean_files
="$ac_clean_files a.out a.exe"
1587 # Try to create an executable without -o first, disregard a.out.
1588 # It will help us diagnose broken compilers, and finding out an intuition
1590 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1591 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1592 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1593 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1594 (eval $ac_link_default) 2>&5
1596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1597 (exit $ac_status); }; then
1598 # Find the output, starting from the most likely. This scheme is
1599 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1602 # Be careful to initialize this variable, since it used to be cached.
1603 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1605 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1606 ls a.out conftest 2>/dev/null;
1607 ls a.* conftest.* 2>/dev/null`; do
1609 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
1610 a.out
) # We found the default executable, but exeext='' is most
1613 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1614 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1621 echo "$as_me: failed program was:" >&5
1622 cat conftest.
$ac_ext >&5
1623 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1624 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1625 { (exit 77); exit 77; }; }
1628 ac_exeext
=$ac_cv_exeext
1629 echo "$as_me:$LINENO: result: $ac_file" >&5
1630 echo "${ECHO_T}$ac_file" >&6
1632 # Check the compiler produces executables we can run. If not, either
1633 # the compiler is broken, or we cross compile.
1634 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1635 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1636 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1637 # If not cross compiling, check that we can run a simple program.
1638 if test "$cross_compiling" != yes; then
1639 if { ac_try
='./$ac_file'
1640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1644 (exit $ac_status); }; }; then
1647 if test "$cross_compiling" = maybe
; then
1650 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1651 If you meant to cross compile, use \`--host'." >&5
1652 echo "$as_me: error: cannot run C++ compiled programs.
1653 If you meant to cross compile, use \`--host'." >&2;}
1654 { (exit 1); exit 1; }; }
1658 echo "$as_me:$LINENO: result: yes" >&5
1659 echo "${ECHO_T}yes" >&6
1661 rm -f a.out a.exe conftest
$ac_cv_exeext
1662 ac_clean_files
=$ac_clean_files_save
1663 # Check the compiler produces executables we can run. If not, either
1664 # the compiler is broken, or we cross compile.
1665 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1666 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1667 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1668 echo "${ECHO_T}$cross_compiling" >&6
1670 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1671 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1673 (eval $ac_link) 2>&5
1675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1676 (exit $ac_status); }; then
1677 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1678 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1679 # work properly (i.e., refer to `conftest.exe'), while it won't with
1681 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1683 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1684 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1691 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1692 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1693 { (exit 1); exit 1; }; }
1696 rm -f conftest
$ac_cv_exeext
1697 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1698 echo "${ECHO_T}$ac_cv_exeext" >&6
1700 rm -f conftest.
$ac_ext
1701 EXEEXT
=$ac_cv_exeext
1705 ac_cpp
='$CPP $CPPFLAGS'
1706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1715 # If the user switches compilers, we can't believe the cache
1716 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1718 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1719 (it is also a good idea to do 'make clean' before compiling)" >&5
1720 echo "$as_me: error: cached CC is different -- throw away $cache_file
1721 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1722 { (exit 1); exit 1; }; }
1726 ac_cpp
='$CPP $CPPFLAGS'
1727 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1728 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1729 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1730 if test -n "$ac_tool_prefix"; then
1731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1732 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1733 echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735 if test "${ac_cv_prog_CC+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 if test -n "$CC"; then
1739 ac_cv_prog_CC
="$CC" # Let the user override the test.
1741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1745 test -z "$as_dir" && as_dir
=.
1746 for ac_exec_ext
in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 if test -n "$CC"; then
1759 echo "$as_me:$LINENO: result: $CC" >&5
1760 echo "${ECHO_T}$CC" >&6
1762 echo "$as_me:$LINENO: result: no" >&5
1763 echo "${ECHO_T}no" >&6
1767 if test -z "$ac_cv_prog_CC"; then
1769 # Extract the first word of "gcc", so it can be a program name with args.
1770 set dummy gcc
; ac_word
=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 if test -n "$ac_ct_CC"; then
1777 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir
=.
1784 for ac_exec_ext
in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_ac_ct_CC
="gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1796 if test -n "$ac_ct_CC"; then
1797 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1798 echo "${ECHO_T}$ac_ct_CC" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1809 if test -z "$CC"; then
1810 if test -n "$ac_tool_prefix"; then
1811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1812 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1813 echo "$as_me:$LINENO: checking for $ac_word" >&5
1814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815 if test "${ac_cv_prog_CC+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 if test -n "$CC"; then
1819 ac_cv_prog_CC
="$CC" # Let the user override the test.
1821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1825 test -z "$as_dir" && as_dir
=.
1826 for ac_exec_ext
in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838 if test -n "$CC"; then
1839 echo "$as_me:$LINENO: result: $CC" >&5
1840 echo "${ECHO_T}$CC" >&6
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1847 if test -z "$ac_cv_prog_CC"; then
1849 # Extract the first word of "cc", so it can be a program name with args.
1850 set dummy cc
; ac_word
=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 if test -n "$ac_ct_CC"; then
1857 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir
=.
1864 for ac_exec_ext
in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_ac_ct_CC
="cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1876 if test -n "$ac_ct_CC"; then
1877 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1878 echo "${ECHO_T}$ac_ct_CC" >&6
1880 echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1890 if test -z "$CC"; then
1891 # Extract the first word of "cc", so it can be a program name with args.
1892 set dummy cc
; ac_word
=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_CC+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$CC"; then
1899 ac_cv_prog_CC
="$CC" # Let the user override the test.
1902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1906 test -z "$as_dir" && as_dir
=.
1907 for ac_exec_ext
in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1910 ac_prog_rejected
=yes
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 if test $ac_prog_rejected = yes; then
1921 # We found a bogon in the path, so make sure we never use it.
1922 set dummy
$ac_cv_prog_CC
1924 if test $# != 0; then
1925 # We chose a different compiler from the bogus one.
1926 # However, it has the same basename, so the bogon will be chosen
1927 # first if we set CC to just the basename; use the full file name.
1929 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1937 if test -n "$CC"; then
1938 echo "$as_me:$LINENO: result: $CC" >&5
1939 echo "${ECHO_T}$CC" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1946 if test -z "$CC"; then
1947 if test -n "$ac_tool_prefix"; then
1950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1951 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC
="$CC" # Let the user override the test.
1960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir
=.
1965 for ac_exec_ext
in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 if test -n "$CC"; then
1978 echo "$as_me:$LINENO: result: $CC" >&5
1979 echo "${ECHO_T}$CC" >&6
1981 echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1985 test -n "$CC" && break
1988 if test -z "$CC"; then
1992 # Extract the first word of "$ac_prog", so it can be a program name with args.
1993 set dummy
$ac_prog; ac_word
=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 if test -n "$ac_ct_CC"; then
2000 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir
=.
2007 for ac_exec_ext
in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 ac_cv_prog_ac_ct_CC
="$ac_prog"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2019 if test -n "$ac_ct_CC"; then
2020 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2021 echo "${ECHO_T}$ac_ct_CC" >&6
2023 echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2027 test -n "$ac_ct_CC" && break
2036 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2037 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2038 { (exit 1); exit 1; }; }
2040 # Provide some information about the compiler.
2041 echo "$as_me:$LINENO:" \
2042 "checking for C compiler version" >&5
2043 ac_compiler
=`set X $ac_compile; echo $2`
2044 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2045 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2050 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }
2054 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2055 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }
2060 cat >conftest.
$ac_ext <<_ACEOF
2061 #line $LINENO "configure"
2062 #include "confdefs.h"
2064 #ifdef F77_DUMMY_MAIN
2068 int F77_DUMMY_MAIN() { return 1; }
2078 ac_clean_files_save
=$ac_clean_files
2079 ac_clean_files
="$ac_clean_files a.out a.exe"
2080 # Try to create an executable without -o first, disregard a.out.
2081 # It will help us diagnose broken compilers, and finding out an intuition
2083 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2084 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2085 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2087 (eval $ac_link_default) 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; then
2091 # Find the output, starting from the most likely. This scheme is
2092 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2095 # Be careful to initialize this variable, since it used to be cached.
2096 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2098 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2099 ls a.out conftest 2>/dev/null;
2100 ls a.* conftest.* 2>/dev/null`; do
2102 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
2103 a.out
) # We found the default executable, but exeext='' is most
2106 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2114 echo "$as_me: failed program was:" >&5
2115 cat conftest.
$ac_ext >&5
2116 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2117 echo "$as_me: error: C compiler cannot create executables" >&2;}
2118 { (exit 77); exit 77; }; }
2121 ac_exeext
=$ac_cv_exeext
2122 echo "$as_me:$LINENO: result: $ac_file" >&5
2123 echo "${ECHO_T}$ac_file" >&6
2125 # Check the compiler produces executables we can run. If not, either
2126 # the compiler is broken, or we cross compile.
2127 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2128 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2129 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2130 # If not cross compiling, check that we can run a simple program.
2131 if test "$cross_compiling" != yes; then
2132 if { ac_try
='./$ac_file'
2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; }; then
2140 if test "$cross_compiling" = maybe
; then
2143 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2144 If you meant to cross compile, use \`--host'." >&5
2145 echo "$as_me: error: cannot run C compiled programs.
2146 If you meant to cross compile, use \`--host'." >&2;}
2147 { (exit 1); exit 1; }; }
2151 echo "$as_me:$LINENO: result: yes" >&5
2152 echo "${ECHO_T}yes" >&6
2154 rm -f a.out a.exe conftest
$ac_cv_exeext
2155 ac_clean_files
=$ac_clean_files_save
2156 # Check the compiler produces executables we can run. If not, either
2157 # the compiler is broken, or we cross compile.
2158 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2159 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2160 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2161 echo "${ECHO_T}$cross_compiling" >&6
2163 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2164 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2166 (eval $ac_link) 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2171 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2172 # work properly (i.e., refer to `conftest.exe'), while it won't with
2174 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2176 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2177 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2185 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2186 { (exit 1); exit 1; }; }
2189 rm -f conftest
$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2191 echo "${ECHO_T}$ac_cv_exeext" >&6
2193 rm -f conftest.
$ac_ext
2194 EXEEXT
=$ac_cv_exeext
2196 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2197 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2198 if test "${ac_cv_objext+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 cat >conftest.
$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2203 #include "confdefs.h"
2205 #ifdef F77_DUMMY_MAIN
2209 int F77_DUMMY_MAIN() { return 1; }
2219 rm -f conftest.o conftest.obj
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; then
2225 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2227 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2228 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2233 echo "$as_me: failed program was:" >&5
2234 cat conftest.
$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2236 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2237 { (exit 1); exit 1; }; }
2240 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2242 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6
2244 OBJEXT
=$ac_cv_objext
2246 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2248 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.
$ac_ext <<_ACEOF
2252 #line $LINENO "configure"
2253 #include "confdefs.h"
2255 #ifdef F77_DUMMY_MAIN
2259 int F77_DUMMY_MAIN() { return 1; }
2272 rm -f conftest.
$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try
='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2286 echo "$as_me: failed program was:" >&5
2287 cat conftest.
$ac_ext >&5
2290 rm -f conftest.
$ac_objext conftest.
$ac_ext
2291 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2294 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2295 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2296 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2297 ac_test_CFLAGS
=${CFLAGS+set}
2298 ac_save_CFLAGS
=$CFLAGS
2300 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2301 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cc_g+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.
$ac_ext <<_ACEOF
2306 #line $LINENO "configure"
2307 #include "confdefs.h"
2309 #ifdef F77_DUMMY_MAIN
2313 int F77_DUMMY_MAIN() { return 1; }
2323 rm -f conftest.
$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try
='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2337 echo "$as_me: failed program was:" >&5
2338 cat conftest.
$ac_ext >&5
2341 rm -f conftest.
$ac_objext conftest.
$ac_ext
2343 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2345 if test "$ac_test_CFLAGS" = set; then
2346 CFLAGS
=$ac_save_CFLAGS
2347 elif test $ac_cv_prog_cc_g = yes; then
2348 if test "$GCC" = yes; then
2354 if test "$GCC" = yes; then
2360 # Some people use a C++ compiler to compile C. Since we use `exit',
2361 # in C++ we need to declare it. In case someone uses the same compiler
2362 # for both compiling C and C++ we need to have the C++ compiler decide
2363 # the declaration of exit, since it's the most demanding environment.
2364 cat >conftest.
$ac_ext <<_ACEOF
2369 rm -f conftest.
$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try
='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2381 for ac_declaration
in \
2383 '#include <stdlib.h>' \
2384 'extern "C" void std::exit (int) throw (); using std::exit;' \
2385 'extern "C" void std::exit (int); using std::exit;' \
2386 'extern "C" void exit (int) throw ();' \
2387 'extern "C" void exit (int);' \
2390 cat >conftest.
$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 #include "confdefs.h"
2395 #ifdef F77_DUMMY_MAIN
2399 int F77_DUMMY_MAIN() { return 1; }
2409 rm -f conftest.
$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try
='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 cat conftest.
$ac_ext >&5
2427 rm -f conftest.
$ac_objext conftest.
$ac_ext
2428 cat >conftest.
$ac_ext <<_ACEOF
2429 #line $LINENO "configure"
2430 #include "confdefs.h"
2432 #ifdef F77_DUMMY_MAIN
2436 int F77_DUMMY_MAIN() { return 1; }
2446 rm -f conftest.
$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try
='test -s conftest.$ac_objext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2460 echo "$as_me: failed program was:" >&5
2461 cat conftest.
$ac_ext >&5
2463 rm -f conftest.
$ac_objext conftest.
$ac_ext
2466 if test -n "$ac_declaration"; then
2467 echo '#ifdef __cplusplus' >>confdefs.h
2468 echo $ac_declaration >>confdefs.h
2469 echo '#endif' >>confdefs.h
2473 echo "$as_me: failed program was:" >&5
2474 cat conftest.
$ac_ext >&5
2476 rm -f conftest.
$ac_objext conftest.
$ac_ext
2478 ac_cpp
='$CPP $CPPFLAGS'
2479 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2484 # checks for UNIX variants that set C preprocessor variables
2487 ac_cpp
='$CPP $CPPFLAGS'
2488 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2491 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2492 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2493 # On Suns, sometimes $CPP names a directory.
2494 if test -n "$CPP" && test -d "$CPP"; then
2497 if test -z "$CPP"; then
2498 if test "${ac_cv_prog_CPP+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 # Double quotes because CPP needs to be expanded
2502 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2505 for ac_c_preproc_warn_flag
in '' yes
2507 # Use a header file that comes with gcc, so configuring glibc
2508 # with a fresh cross-compiler works.
2509 # On the NeXT, cc -E runs the code through the compiler's parser,
2510 # not just through cpp. "Syntax error" is here to catch this case.
2511 cat >conftest.
$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 #include "confdefs.h"
2517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2518 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2520 egrep -v '^ *\+' conftest.er1
>conftest.err
2522 cat conftest.err
>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } >/dev
/null
; then
2525 if test -s conftest.err
; then
2526 ac_cpp_err
=$ac_c_preproc_warn_flag
2533 if test -z "$ac_cpp_err"; then
2536 echo "$as_me: failed program was:" >&5
2537 cat conftest.
$ac_ext >&5
2538 # Broken: fails on valid input.
2541 rm -f conftest.err conftest.
$ac_ext
2543 # OK, works on sane cases. Now check whether non-existent headers
2544 # can be detected and how.
2545 cat >conftest.
$ac_ext <<_ACEOF
2546 #line $LINENO "configure"
2547 #include "confdefs.h"
2548 #include <ac_nonexistent.h>
2550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2551 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2553 egrep -v '^ *\+' conftest.er1
>conftest.err
2555 cat conftest.err
>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } >/dev
/null
; then
2558 if test -s conftest.err
; then
2559 ac_cpp_err
=$ac_c_preproc_warn_flag
2566 if test -z "$ac_cpp_err"; then
2567 # Broken: success on invalid input.
2570 echo "$as_me: failed program was:" >&5
2571 cat conftest.
$ac_ext >&5
2572 # Passes both tests.
2576 rm -f conftest.err conftest.
$ac_ext
2579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2580 rm -f conftest.err conftest.
$ac_ext
2581 if $ac_preproc_ok; then
2593 echo "$as_me:$LINENO: result: $CPP" >&5
2594 echo "${ECHO_T}$CPP" >&6
2596 for ac_c_preproc_warn_flag
in '' yes
2598 # Use a header file that comes with gcc, so configuring glibc
2599 # with a fresh cross-compiler works.
2600 # On the NeXT, cc -E runs the code through the compiler's parser,
2601 # not just through cpp. "Syntax error" is here to catch this case.
2602 cat >conftest.
$ac_ext <<_ACEOF
2603 #line $LINENO "configure"
2604 #include "confdefs.h"
2608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2609 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2611 egrep -v '^ *\+' conftest.er1
>conftest.err
2613 cat conftest.err
>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } >/dev
/null
; then
2616 if test -s conftest.err
; then
2617 ac_cpp_err
=$ac_c_preproc_warn_flag
2624 if test -z "$ac_cpp_err"; then
2627 echo "$as_me: failed program was:" >&5
2628 cat conftest.
$ac_ext >&5
2629 # Broken: fails on valid input.
2632 rm -f conftest.err conftest.
$ac_ext
2634 # OK, works on sane cases. Now check whether non-existent headers
2635 # can be detected and how.
2636 cat >conftest.
$ac_ext <<_ACEOF
2637 #line $LINENO "configure"
2638 #include "confdefs.h"
2639 #include <ac_nonexistent.h>
2641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2642 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2644 egrep -v '^ *\+' conftest.er1
>conftest.err
2646 cat conftest.err
>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } >/dev
/null
; then
2649 if test -s conftest.err
; then
2650 ac_cpp_err
=$ac_c_preproc_warn_flag
2657 if test -z "$ac_cpp_err"; then
2658 # Broken: success on invalid input.
2661 echo "$as_me: failed program was:" >&5
2662 cat conftest.
$ac_ext >&5
2663 # Passes both tests.
2667 rm -f conftest.err conftest.
$ac_ext
2670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2671 rm -f conftest.err conftest.
$ac_ext
2672 if $ac_preproc_ok; then
2675 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2676 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2677 { (exit 1); exit 1; }; }
2681 ac_cpp
='$CPP $CPPFLAGS'
2682 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2688 echo "$as_me:$LINENO: checking for AIX" >&5
2689 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2690 cat >conftest.
$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2692 #include "confdefs.h"
2698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2699 egrep "yes" >/dev
/null
2>&1; then
2700 echo "$as_me:$LINENO: result: yes" >&5
2701 echo "${ECHO_T}yes" >&6
2702 cat >>confdefs.h
<<\_ACEOF
2703 #define _ALL_SOURCE 1
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2713 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2714 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2715 if test "${ac_cv_header_stdc+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 cat >conftest.
$ac_ext <<_ACEOF
2719 #line $LINENO "configure"
2720 #include "confdefs.h"
2727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2730 egrep -v '^ *\+' conftest.er1
>conftest.err
2732 cat conftest.err
>&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } >/dev
/null
; then
2735 if test -s conftest.err
; then
2736 ac_cpp_err
=$ac_c_preproc_warn_flag
2743 if test -z "$ac_cpp_err"; then
2744 ac_cv_header_stdc
=yes
2746 echo "$as_me: failed program was:" >&5
2747 cat conftest.
$ac_ext >&5
2748 ac_cv_header_stdc
=no
2750 rm -f conftest.err conftest.
$ac_ext
2752 if test $ac_cv_header_stdc = yes; then
2753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2754 cat >conftest.
$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 #include "confdefs.h"
2760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2761 egrep "memchr" >/dev
/null
2>&1; then
2764 ac_cv_header_stdc
=no
2770 if test $ac_cv_header_stdc = yes; then
2771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2772 cat >conftest.
$ac_ext <<_ACEOF
2773 #line $LINENO "configure"
2774 #include "confdefs.h"
2778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2779 egrep "free" >/dev
/null
2>&1; then
2782 ac_cv_header_stdc
=no
2788 if test $ac_cv_header_stdc = yes; then
2789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2790 if test "$cross_compiling" = yes; then
2793 cat >conftest.
$ac_ext <<_ACEOF
2794 #line $LINENO "configure"
2795 #include "confdefs.h"
2797 #if ((' ' & 0x0FF) == 0x020)
2798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2801 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2802 || ('j' <= (c) && (c) <= 'r') \
2803 || ('s' <= (c) && (c) <= 'z'))
2804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2812 for (i = 0; i < 256; i++)
2813 if (XOR (islower (i), ISLOWER (i))
2814 || toupper (i) != TOUPPER (i))
2819 rm -f conftest
$ac_exeext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2821 (eval $ac_link) 2>&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2832 echo "$as_me: program exited with status $ac_status" >&5
2833 echo "$as_me: failed program was:" >&5
2834 cat conftest.
$ac_ext >&5
2836 ac_cv_header_stdc
=no
2838 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2842 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2843 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2844 if test $ac_cv_header_stdc = yes; then
2846 cat >>confdefs.h
<<\_ACEOF
2847 #define STDC_HEADERS 1
2852 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2862 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2863 inttypes.h stdint.h unistd.h
2865 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2866 echo "$as_me:$LINENO: checking for $ac_header" >&5
2867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 cat >conftest.
$ac_ext <<_ACEOF
2872 #line $LINENO "configure"
2873 #include "confdefs.h"
2874 $ac_includes_default
2876 #include <$ac_header>
2878 rm -f conftest.
$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try
='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 eval "$as_ac_Header=yes"
2892 echo "$as_me: failed program was:" >&5
2893 cat conftest.
$ac_ext >&5
2894 eval "$as_ac_Header=no"
2896 rm -f conftest.
$ac_objext conftest.
$ac_ext
2898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2901 cat >>confdefs.h
<<_ACEOF
2902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2910 if test "${ac_cv_header_minix_config_h+set}" = set; then
2911 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2912 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2913 if test "${ac_cv_header_minix_config_h+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2917 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2919 # Is the header compilable?
2920 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2921 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2922 cat >conftest.
$ac_ext <<_ACEOF
2923 #line $LINENO "configure"
2924 #include "confdefs.h"
2925 $ac_includes_default
2926 #include <minix/config.h>
2928 rm -f conftest.
$ac_objext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try
='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_header_compiler
=yes
2942 echo "$as_me: failed program was:" >&5
2943 cat conftest.
$ac_ext >&5
2944 ac_header_compiler
=no
2946 rm -f conftest.
$ac_objext conftest.
$ac_ext
2947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2948 echo "${ECHO_T}$ac_header_compiler" >&6
2950 # Is the header present?
2951 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2952 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2953 cat >conftest.
$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2955 #include "confdefs.h"
2956 #include <minix/config.h>
2958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2959 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2961 egrep -v '^ *\+' conftest.er1
>conftest.err
2963 cat conftest.err
>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } >/dev
/null
; then
2966 if test -s conftest.err
; then
2967 ac_cpp_err
=$ac_c_preproc_warn_flag
2974 if test -z "$ac_cpp_err"; then
2975 ac_header_preproc
=yes
2977 echo "$as_me: failed program was:" >&5
2978 cat conftest.
$ac_ext >&5
2979 ac_header_preproc
=no
2981 rm -f conftest.err conftest.
$ac_ext
2982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2983 echo "${ECHO_T}$ac_header_preproc" >&6
2985 # So? What about this header?
2986 case $ac_header_compiler:$ac_header_preproc in
2988 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2989 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2990 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2991 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2993 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2994 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2995 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2996 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2997 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2998 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3000 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3001 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3002 if test "${ac_cv_header_minix_config_h+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 ac_cv_header_minix_config_h
=$ac_header_preproc
3007 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3008 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3011 if test $ac_cv_header_minix_config_h = yes; then
3018 if test "$MINIX" = yes; then
3020 cat >>confdefs.h
<<\_ACEOF
3021 #define _POSIX_SOURCE 1
3025 cat >>confdefs.h
<<\_ACEOF
3026 #define _POSIX_1_SOURCE 2
3030 cat >>confdefs.h
<<\_ACEOF
3037 # Check for unsupported systems
3038 case $ac_sys_system/$ac_sys_release in
3039 SunOS
/4*|DYNIX
/*|dgux
*/*|IRIX
/4*|Linux
*/1*)
3040 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3041 echo See README
for details.
3045 if test "$MINIX" = yes; then
3046 echo This system \
(MINIX\
) is no longer supported.
3047 echo Read README
for details.
3052 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3053 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3055 # Check whether --with-suffix or --without-suffix was given.
3056 if test "${with_suffix+set}" = set; then
3057 withval
="$with_suffix"
3062 *) EXEEXT
=$withval;;
3065 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3066 echo "${ECHO_T}$EXEEXT" >&6
3068 # Test whether we're running on a non-case-sensitive system, in which
3069 # case we give a warning if no ext is given
3071 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3072 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3073 if test ! -d CaseSensitiveTestDir
; then
3074 mkdir CaseSensitiveTestDir
3077 if test -d casesensitivetestdir
3079 echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6
3083 echo "$as_me:$LINENO: result: no" >&5
3084 echo "${ECHO_T}no" >&6
3087 rmdir CaseSensitiveTestDir
3092 gcc
) CC
="$CC -D_HAVE_BSDI";;
3096 case $ac_sys_system in
3099 cc|
*/cc
) CC
="$CC -Ae";;
3103 cc
) CC
="$CC -Wl,-Bexport";;
3106 # Some functions have a prototype only with that define, e.g. confstr
3108 cat >>confdefs.h
<<\_ACEOF
3109 #define __EXTENSIONS__ 1
3117 echo "$as_me:$LINENO: checking LIBRARY" >&5
3118 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3119 if test -z "$LIBRARY"
3121 LIBRARY
='libpython$(VERSION).a'
3123 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3124 echo "${ECHO_T}$LIBRARY" >&6
3126 # LDLIBRARY is the name of the library to link against (as opposed to the
3127 # name of the library into which to insert object files). BLDLIBRARY is also
3128 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3129 # is blank as the main program is not linked directly against LDLIBRARY.
3130 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3131 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3132 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3133 # DLLLIBRARY is the shared (i.e., DLL) library.
3135 # RUNSHARED is used to run shared python without installed libraries
3137 # INSTSONAME is the name of the shared library that will be use to install
3138 # on the system - some systems like version suffix, others don't
3145 LDLIBRARY
="$LIBRARY"
3146 BLDLIBRARY
='$(LDLIBRARY)'
3147 INSTSONAME
='$(LDLIBRARY)'
3152 # LINKCC is the command that links the python executable -- default is $(CC).
3153 # If CXX is set, and if it is needed to link a main function that was
3154 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3155 # python might then depend on the C++ runtime
3156 # This is altered for AIX in order to build the export list before
3159 echo "$as_me:$LINENO: checking LINKCC" >&5
3160 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3161 if test -z "$LINKCC"
3163 if test -z "$CXX"; then
3164 LINKCC
="\$(PURIFY) \$(CC)"
3166 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
3167 $CXX -c conftest.
$ac_ext 2>&5
3168 if $CC -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
3169 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3171 LINKCC
="\$(PURIFY) \$(CC)"
3173 LINKCC
="\$(PURIFY) \$(CXX)"
3177 case $ac_sys_system in
3180 if test $ac_sys_release -ge 5 -o \
3181 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3184 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3186 LINKCC
="LD_RUN_PATH=$libdir $LINKCC";;
3188 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3191 echo "$as_me:$LINENO: result: $LINKCC" >&5
3192 echo "${ECHO_T}$LINKCC" >&6
3194 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3195 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3196 # Check whether --enable-shared or --disable-shared was given.
3197 if test "${enable_shared+set}" = set; then
3198 enableval
="$enable_shared"
3202 if test -z "$enable_shared"
3204 case $ac_sys_system in
3206 enable_shared
="yes";;
3208 enable_shared
="no";;
3211 echo "$as_me:$LINENO: result: $enable_shared" >&5
3212 echo "${ECHO_T}$enable_shared" >&6
3215 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3216 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3218 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3219 # library that we build, but we do not want to link against it (we
3220 # will find it with a -framework option). For this reason there is an
3221 # extra variable BLDLIBRARY against which Python and the extension
3222 # modules are linked, BLDLIBRARY. This is normally the same as
3223 # LDLIBRARY, but empty for MacOSX framework builds.
3224 if test "$enable_framework"
3226 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3227 LDLIBRARYDIR
='$(PYTHONFRAMEWORKDIR)'
3230 BLDLIBRARY
='$(LDLIBRARY)'
3233 # Other platforms follow
3234 if test $enable_shared = "yes"; then
3236 cat >>confdefs.h
<<\_ACEOF
3237 #define Py_ENABLE_SHARED 1
3240 case $ac_sys_system in
3242 LDLIBRARY
='libpython$(VERSION).so'
3245 LDLIBRARY
='libpython$(VERSION).dll.a'
3246 DLLLIBRARY
='libpython$(VERSION).dll'
3249 LDLIBRARY
='libpython$(VERSION).so'
3250 BLDLIBRARY
='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)'
3251 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3254 LDLIBRARY
='libpython$(VERSION).so'
3255 BLDLIBRARY
='-L. -lpython$(VERSION)'
3256 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3257 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3260 LDLIBRARY
='libpython$(VERSION).sl'
3261 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3262 RUNSHARED
=SHLIB_PATH
=`pwd`:$SHLIB_PATH
3265 LDLIBRARY
='libpython$(VERSION).so'
3266 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3267 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3270 LDLIBRARY
='libpython$(VERSION).so'
3271 BLDLIBRARY
='-L. -lpython$(VERSION)'
3272 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3275 # DG/UX requires some fancy ld contortions to produce a .so from an .a
3278 LDLIBRARY
='libpython$(VERSION).so'
3279 BASECFLAGS
="$BASECFLAGS -pic"
3284 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3285 echo "${ECHO_T}$LDLIBRARY" >&6
3287 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3289 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_RANLIB+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 if test -n "$RANLIB"; then
3296 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir
=.
3303 for ac_exec_ext
in '' $ac_executable_extensions; do
3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 RANLIB
=$ac_cv_prog_RANLIB
3315 if test -n "$RANLIB"; then
3316 echo "$as_me:$LINENO: result: $RANLIB" >&5
3317 echo "${ECHO_T}$RANLIB" >&6
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3324 if test -z "$ac_cv_prog_RANLIB"; then
3325 ac_ct_RANLIB
=$RANLIB
3326 # Extract the first word of "ranlib", so it can be a program name with args.
3327 set dummy ranlib
; ac_word
=$2
3328 echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 if test -n "$ac_ct_RANLIB"; then
3334 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir
=.
3341 for ac_exec_ext
in '' $ac_executable_extensions; do
3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3353 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3354 if test -n "$ac_ct_RANLIB"; then
3355 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3356 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3358 echo "$as_me:$LINENO: result: no" >&5
3359 echo "${ECHO_T}no" >&6
3362 RANLIB
=$ac_ct_RANLIB
3364 RANLIB
="$ac_cv_prog_RANLIB"
3368 for ac_prog
in ar aal
3370 # Extract the first word of "$ac_prog", so it can be a program name with args.
3371 set dummy
$ac_prog; ac_word
=$2
3372 echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3374 if test "${ac_cv_prog_AR+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 if test -n "$AR"; then
3378 ac_cv_prog_AR
="$AR" # Let the user override the test.
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_exec_ext
in '' $ac_executable_extensions; do
3386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_AR
="$ac_prog"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 if test -n "$AR"; then
3398 echo "$as_me:$LINENO: result: $AR" >&5
3399 echo "${ECHO_T}$AR" >&6
3401 echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3405 test -n "$AR" && break
3407 test -n "$AR" || AR
="ar"
3412 # install -d does not work on BSDI or HP-UX
3413 if test -z "$INSTALL"
3415 INSTALL
="${srcdir}/install-sh -c"
3419 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3420 if test -f $ac_dir/install-sh
; then
3422 ac_install_sh
="$ac_aux_dir/install-sh -c"
3424 elif test -f $ac_dir/install.sh
; then
3426 ac_install_sh
="$ac_aux_dir/install.sh -c"
3428 elif test -f $ac_dir/shtool
; then
3430 ac_install_sh
="$ac_aux_dir/shtool install -c"
3434 if test -z "$ac_aux_dir"; then
3435 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3436 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3437 { (exit 1); exit 1; }; }
3439 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3440 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3441 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3443 # Find a good install program. We prefer a C program (faster),
3444 # so one script is as good as another. But avoid the broken or
3445 # incompatible versions:
3446 # SysV /etc/install, /usr/sbin/install
3447 # SunOS /usr/etc/install
3448 # IRIX /sbin/install
3450 # AmigaOS /C/install, which installs bootblocks on floppy discs
3451 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3452 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3454 # ./install, which can be erroneously created by make from ./install.sh.
3455 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3456 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3457 if test -z "$INSTALL"; then
3458 if test "${ac_cv_path_install+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir
=.
3466 # Account for people who put trailing slashes in PATH elements.
3468 .
/ | .
// |
/cC
/* | \
3469 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3472 # OSF1 and SCO ODT 3.0 have their own names for install.
3473 # Don't use installbsd from OSF since it installs stuff as root
3475 for ac_prog
in ginstall scoinst
install; do
3476 for ac_exec_ext
in '' $ac_executable_extensions; do
3477 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3478 if test $ac_prog = install &&
3479 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3480 # AIX install. It has an incompatible calling convention.
3482 elif test $ac_prog = install &&
3483 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3484 # program-specific install script used by HP pwplus--don't use.
3487 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3499 if test "${ac_cv_path_install+set}" = set; then
3500 INSTALL
=$ac_cv_path_install
3502 # As a last resort, use the slow shell script. We don't cache a
3503 # path for INSTALL within a source directory, because that will
3504 # break other packages using the cache if that directory is
3505 # removed, or if the path is relative.
3506 INSTALL
=$ac_install_sh
3509 echo "$as_me:$LINENO: result: $INSTALL" >&5
3510 echo "${ECHO_T}$INSTALL" >&6
3512 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3513 # It thinks the first close brace ends the variable substitution.
3514 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3518 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3521 # Not every filesystem supports hard links
3523 if test -z "$LN" ; then
3524 case $ac_sys_system in
3526 CYGWIN
*) LN
="ln -s";;
3527 atheos
*) LN
="ln -s";;
3532 # Check for --with-pydebug
3533 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3534 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3536 # Check whether --with-pydebug or --without-pydebug was given.
3537 if test "${with_pydebug+set}" = set; then
3538 withval
="$with_pydebug"
3540 if test "$withval" != no
3543 cat >>confdefs.h
<<\_ACEOF
3547 echo "$as_me:$LINENO: result: yes" >&5
3548 echo "${ECHO_T}yes" >&6;
3550 else echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3554 echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6
3558 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3559 # merged with this chunk of code?
3561 # Optimizer/debugger flags
3562 # ------------------------
3563 # (The following bit of code is complicated enough - please keep things
3564 # indented properly. Just pretend you're editing Python code. ;-)
3566 # There are two parallel sets of case statements below, one that checks to
3567 # see if OPT was set and one that does BASECFLAGS setting based upon
3568 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3571 # tweak OPT based on compiler and platform, only if the user didn't set
3572 # it on the command line
3578 case $ac_cv_prog_cc_g in
3580 if test "$Py_DEBUG" = 'true' ; then
3581 # Optimization messes up debuggers, so turn it off for
3583 OPT
="-g -Wall -Wstrict-prototypes"
3585 OPT
="-g -O3 -Wall -Wstrict-prototypes"
3589 OPT
="-O3 -Wall -Wstrict-prototypes"
3592 case $ac_sys_system in
3593 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3603 # The current (beta) Monterey compiler dies with optimizations
3604 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3605 case $ac_sys_system in
3614 # tweak BASECFLAGS based on compiler and platform
3617 case $ac_sys_system in
3619 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3621 # is there any other compiler on Darwin besides gcc?
3623 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp"
3629 case $ac_sys_system in
3630 OpenUNIX
*|UnixWare
*)
3631 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3634 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3640 if test "$Py_DEBUG" = 'true'; then
3646 if test "$ac_arch_flags"
3648 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3651 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3652 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3653 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 CC
="$CC -OPT:Olimit=0"
3658 if test "$cross_compiling" = yes; then
3659 ac_cv_opt_olimit_ok
=no
3661 cat >conftest.
$ac_ext <<_ACEOF
3662 #line $LINENO "configure"
3663 #include "confdefs.h"
3664 int main() { return 0; }
3666 rm -f conftest
$ac_exeext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3668 (eval $ac_link) 2>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_opt_olimit_ok
=yes
3679 echo "$as_me: program exited with status $ac_status" >&5
3680 echo "$as_me: failed program was:" >&5
3681 cat conftest.
$ac_ext >&5
3683 ac_cv_opt_olimit_ok
=no
3685 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3690 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3691 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3692 if test $ac_cv_opt_olimit_ok = yes; then
3693 case $ac_sys_system in
3694 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3695 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3700 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3704 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3705 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3706 if test "${ac_cv_olimit_ok+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 CC
="$CC -Olimit 1500"
3711 if test "$cross_compiling" = yes; then
3714 cat >conftest.
$ac_ext <<_ACEOF
3715 #line $LINENO "configure"
3716 #include "confdefs.h"
3717 int main() { return 0; }
3719 rm -f conftest
$ac_exeext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3721 (eval $ac_link) 2>&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3732 echo "$as_me: program exited with status $ac_status" >&5
3733 echo "$as_me: failed program was:" >&5
3734 cat conftest.
$ac_ext >&5
3738 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3743 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
3744 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
3745 if test $ac_cv_olimit_ok = yes; then
3746 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
3750 # On some compilers, pthreads are available without further options
3751 # (e.g. MacOS X). On some of these systems, the compiler will not
3752 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
3753 # So we have to see first whether pthreads are available without
3754 # options before we can check whether -Kpthread improves anything.
3755 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
3756 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
3757 if test "${ac_cv_pthread_is_default+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test "$cross_compiling" = yes; then
3761 ac_cv_pthread_is_default
=no
3763 cat >conftest.
$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3765 #include "confdefs.h"
3767 #include <pthread.h>
3769 void* routine(void* p){return NULL;}
3773 if(pthread_create(&p,NULL,routine,NULL)!=0)
3775 (void)pthread_detach(p);
3780 rm -f conftest
$ac_exeext
3781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3782 (eval $ac_link) 2>&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 ac_cv_pthread_is_default
=yes
3793 echo "$as_me: program exited with status $ac_status" >&5
3794 echo "$as_me: failed program was:" >&5
3795 cat conftest.
$ac_ext >&5
3797 ac_cv_pthread_is_default
=no
3799 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3804 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
3805 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
3808 if test $ac_cv_pthread_is_default = yes
3812 # -Kpthread, if available, provides the right #defines
3813 # and linker options to make pthread_create available
3814 # Some compilers won't report that they do not support -Kpthread,
3815 # so we need to run a program to see whether it really made the
3816 # function available.
3817 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
3818 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
3819 if test "${ac_cv_kpthread+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 if test "$cross_compiling" = yes; then
3827 cat >conftest.
$ac_ext <<_ACEOF
3828 #line $LINENO "configure"
3829 #include "confdefs.h"
3831 #include <pthread.h>
3833 void* routine(void* p){return NULL;}
3837 if(pthread_create(&p,NULL,routine,NULL)!=0)
3839 (void)pthread_detach(p);
3844 rm -f conftest
$ac_exeext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; }; then
3857 echo "$as_me: program exited with status $ac_status" >&5
3858 echo "$as_me: failed program was:" >&5
3859 cat conftest.
$ac_ext >&5
3863 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3868 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
3869 echo "${ECHO_T}$ac_cv_kpthread" >&6
3873 # checks for header files
3874 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3875 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3876 if test "${ac_cv_header_stdc+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 cat >conftest.
$ac_ext <<_ACEOF
3880 #line $LINENO "configure"
3881 #include "confdefs.h"
3888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3891 egrep -v '^ *\+' conftest.er1
>conftest.err
3893 cat conftest.err
>&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } >/dev
/null
; then
3896 if test -s conftest.err
; then
3897 ac_cpp_err
=$ac_c_preproc_warn_flag
3904 if test -z "$ac_cpp_err"; then
3905 ac_cv_header_stdc
=yes
3907 echo "$as_me: failed program was:" >&5
3908 cat conftest.
$ac_ext >&5
3909 ac_cv_header_stdc
=no
3911 rm -f conftest.err conftest.
$ac_ext
3913 if test $ac_cv_header_stdc = yes; then
3914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3915 cat >conftest.
$ac_ext <<_ACEOF
3916 #line $LINENO "configure"
3917 #include "confdefs.h"
3921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3922 egrep "memchr" >/dev
/null
2>&1; then
3925 ac_cv_header_stdc
=no
3931 if test $ac_cv_header_stdc = yes; then
3932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3933 cat >conftest.
$ac_ext <<_ACEOF
3934 #line $LINENO "configure"
3935 #include "confdefs.h"
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 egrep "free" >/dev
/null
2>&1; then
3943 ac_cv_header_stdc
=no
3949 if test $ac_cv_header_stdc = yes; then
3950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3951 if test "$cross_compiling" = yes; then
3954 cat >conftest.
$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3956 #include "confdefs.h"
3958 #if ((' ' & 0x0FF) == 0x020)
3959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3962 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3963 || ('j' <= (c) && (c) <= 'r') \
3964 || ('s' <= (c) && (c) <= 'z'))
3965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3973 for (i = 0; i < 256; i++)
3974 if (XOR (islower (i), ISLOWER (i))
3975 || toupper (i) != TOUPPER (i))
3980 rm -f conftest
$ac_exeext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3982 (eval $ac_link) 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3993 echo "$as_me: program exited with status $ac_status" >&5
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3997 ac_cv_header_stdc
=no
3999 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4003 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4004 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4005 if test $ac_cv_header_stdc = yes; then
4007 cat >>confdefs.h
<<\_ACEOF
4008 #define STDC_HEADERS 1
4052 for ac_header
in dlfcn.h fcntl.h grp.h limits.h langinfo.h \
4053 libintl.h locale.h ncurses.h poll.h pthread.h \
4054 signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \
4056 sys
/audioio.h sys
/file.h sys
/lock.h sys
/mkdev.h sys
/modem.h \
4057 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
4058 sys
/un.h sys
/utsname.h sys
/wait.h pty.h term.h libutil.h \
4059 sys
/resource.h netpacket
/packet.h sysexits.h
4061 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4063 echo "$as_me:$LINENO: checking for $ac_header" >&5
4064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4071 # Is the header compilable?
4072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4074 cat >conftest.
$ac_ext <<_ACEOF
4075 #line $LINENO "configure"
4076 #include "confdefs.h"
4077 $ac_includes_default
4078 #include <$ac_header>
4080 rm -f conftest.
$ac_objext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try
='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_header_compiler
=yes
4094 echo "$as_me: failed program was:" >&5
4095 cat conftest.
$ac_ext >&5
4096 ac_header_compiler
=no
4098 rm -f conftest.
$ac_objext conftest.
$ac_ext
4099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4100 echo "${ECHO_T}$ac_header_compiler" >&6
4102 # Is the header present?
4103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4105 cat >conftest.
$ac_ext <<_ACEOF
4106 #line $LINENO "configure"
4107 #include "confdefs.h"
4108 #include <$ac_header>
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4113 egrep -v '^ *\+' conftest.er1
>conftest.err
4115 cat conftest.err
>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev
/null
; then
4118 if test -s conftest.err
; then
4119 ac_cpp_err
=$ac_c_preproc_warn_flag
4126 if test -z "$ac_cpp_err"; then
4127 ac_header_preproc
=yes
4129 echo "$as_me: failed program was:" >&5
4130 cat conftest.
$ac_ext >&5
4131 ac_header_preproc
=no
4133 rm -f conftest.err conftest.
$ac_ext
4134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4135 echo "${ECHO_T}$ac_header_preproc" >&6
4137 # So? What about this header?
4138 case $ac_header_compiler:$ac_header_preproc in
4140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4152 echo "$as_me:$LINENO: checking for $ac_header" >&5
4153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 eval "$as_ac_Header=$ac_header_preproc"
4159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4164 cat >>confdefs.h
<<_ACEOF
4165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4178 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4179 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4180 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4181 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 cat >conftest.
$ac_ext <<_ACEOF
4186 #line $LINENO "configure"
4187 #include "confdefs.h"
4188 #include <sys/types.h>
4191 #ifdef F77_DUMMY_MAIN
4195 int F77_DUMMY_MAIN() { return 1; }
4206 rm -f conftest.
$ac_objext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try
='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 eval "$as_ac_Header=yes"
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.
$ac_ext >&5
4222 eval "$as_ac_Header=no"
4224 rm -f conftest.
$ac_objext conftest.
$ac_ext
4226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4229 cat >>confdefs.h
<<_ACEOF
4230 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4233 ac_header_dirent
=$ac_hdr; break
4237 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4238 if test $ac_header_dirent = dirent.h
; then
4239 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4240 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4241 if test "${ac_cv_search_opendir+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 ac_func_search_save_LIBS
=$LIBS
4245 ac_cv_search_opendir
=no
4246 cat >conftest.
$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4248 #include "confdefs.h"
4250 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4257 #ifdef F77_DUMMY_MAIN
4261 int F77_DUMMY_MAIN() { return 1; }
4271 rm -f conftest.
$ac_objext conftest
$ac_exeext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273 (eval $ac_link) 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try
='test -s conftest$ac_exeext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_search_opendir
="none required"
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4288 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4289 if test "$ac_cv_search_opendir" = no
; then
4290 for ac_lib
in dir
; do
4291 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4292 cat >conftest.
$ac_ext <<_ACEOF
4293 #line $LINENO "configure"
4294 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4300 /* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */
4303 #ifdef F77_DUMMY_MAIN
4307 int F77_DUMMY_MAIN() { return 1; }
4317 rm -f conftest.
$ac_objext conftest
$ac_exeext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319 (eval $ac_link) 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try
='test -s conftest$ac_exeext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_cv_search_opendir
="-l$ac_lib"
4332 echo "$as_me: failed program was:" >&5
4333 cat conftest.
$ac_ext >&5
4335 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4338 LIBS
=$ac_func_search_save_LIBS
4340 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4341 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4342 if test "$ac_cv_search_opendir" != no
; then
4343 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4348 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4350 if test "${ac_cv_search_opendir+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 ac_func_search_save_LIBS
=$LIBS
4354 ac_cv_search_opendir
=no
4355 cat >conftest.
$ac_ext <<_ACEOF
4356 #line $LINENO "configure"
4357 #include "confdefs.h"
4359 /* Override any gcc2 internal prototype to avoid an error. */
4363 /* We use char because int might match the return type of a gcc2
4364 builtin and then its argument prototype would still apply. */
4366 #ifdef F77_DUMMY_MAIN
4370 int F77_DUMMY_MAIN() { return 1; }
4380 rm -f conftest.
$ac_objext conftest
$ac_exeext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4382 (eval $ac_link) 2>&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try
='test -s conftest$ac_exeext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_search_opendir
="none required"
4394 echo "$as_me: failed program was:" >&5
4395 cat conftest.
$ac_ext >&5
4397 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4398 if test "$ac_cv_search_opendir" = no
; then
4400 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4401 cat >conftest.
$ac_ext <<_ACEOF
4402 #line $LINENO "configure"
4403 #include "confdefs.h"
4405 /* Override any gcc2 internal prototype to avoid an error. */
4409 /* We use char because int might match the return type of a gcc2
4410 builtin and then its argument prototype would still apply. */
4412 #ifdef F77_DUMMY_MAIN
4416 int F77_DUMMY_MAIN() { return 1; }
4426 rm -f conftest.
$ac_objext conftest
$ac_exeext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428 (eval $ac_link) 2>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } &&
4432 { ac_try
='test -s conftest$ac_exeext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_cv_search_opendir
="-l$ac_lib"
4441 echo "$as_me: failed program was:" >&5
4442 cat conftest.
$ac_ext >&5
4444 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4447 LIBS
=$ac_func_search_save_LIBS
4449 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4450 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4451 if test "$ac_cv_search_opendir" != no
; then
4452 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4458 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4459 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
4460 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 cat >conftest.
$ac_ext <<_ACEOF
4464 #line $LINENO "configure"
4465 #include "confdefs.h"
4466 #include <sys/types.h>
4467 #ifdef F77_DUMMY_MAIN
4471 int F77_DUMMY_MAIN() { return 1; }
4476 return makedev(0, 0);
4481 rm -f conftest.
$ac_objext conftest
$ac_exeext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4483 (eval $ac_link) 2>&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try
='test -s conftest$ac_exeext'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 ac_cv_header_sys_types_h_makedev
=yes
4495 echo "$as_me: failed program was:" >&5
4496 cat conftest.
$ac_ext >&5
4497 ac_cv_header_sys_types_h_makedev
=no
4499 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4503 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
4505 if test $ac_cv_header_sys_types_h_makedev = no
; then
4506 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4507 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4508 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4509 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4513 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4515 # Is the header compilable?
4516 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4517 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
4518 cat >conftest.
$ac_ext <<_ACEOF
4519 #line $LINENO "configure"
4520 #include "confdefs.h"
4521 $ac_includes_default
4522 #include <sys/mkdev.h>
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_header_compiler
=yes
4538 echo "$as_me: failed program was:" >&5
4539 cat conftest.
$ac_ext >&5
4540 ac_header_compiler
=no
4542 rm -f conftest.
$ac_objext conftest.
$ac_ext
4543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4544 echo "${ECHO_T}$ac_header_compiler" >&6
4546 # Is the header present?
4547 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4548 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
4549 cat >conftest.
$ac_ext <<_ACEOF
4550 #line $LINENO "configure"
4551 #include "confdefs.h"
4552 #include <sys/mkdev.h>
4554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4555 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4557 egrep -v '^ *\+' conftest.er1
>conftest.err
4559 cat conftest.err
>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } >/dev
/null
; then
4562 if test -s conftest.err
; then
4563 ac_cpp_err
=$ac_c_preproc_warn_flag
4570 if test -z "$ac_cpp_err"; then
4571 ac_header_preproc
=yes
4573 echo "$as_me: failed program was:" >&5
4574 cat conftest.
$ac_ext >&5
4575 ac_header_preproc
=no
4577 rm -f conftest.err conftest.
$ac_ext
4578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4579 echo "${ECHO_T}$ac_header_preproc" >&6
4581 # So? What about this header?
4582 case $ac_header_compiler:$ac_header_preproc in
4584 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4585 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4587 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
4589 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4590 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4591 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4592 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4594 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
4596 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4597 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4598 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
4603 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4604 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4607 if test $ac_cv_header_sys_mkdev_h = yes; then
4609 cat >>confdefs.h
<<\_ACEOF
4610 #define MAJOR_IN_MKDEV 1
4617 if test $ac_cv_header_sys_mkdev_h = no
; then
4618 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4619 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4620 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4621 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4625 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4627 # Is the header compilable?
4628 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4629 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
4630 cat >conftest.
$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4632 #include "confdefs.h"
4633 $ac_includes_default
4634 #include <sys/sysmacros.h>
4636 rm -f conftest.
$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } &&
4642 { ac_try
='test -s conftest.$ac_objext'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 ac_header_compiler
=yes
4650 echo "$as_me: failed program was:" >&5
4651 cat conftest.
$ac_ext >&5
4652 ac_header_compiler
=no
4654 rm -f conftest.
$ac_objext conftest.
$ac_ext
4655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4656 echo "${ECHO_T}$ac_header_compiler" >&6
4658 # Is the header present?
4659 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4660 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
4661 cat >conftest.
$ac_ext <<_ACEOF
4662 #line $LINENO "configure"
4663 #include "confdefs.h"
4664 #include <sys/sysmacros.h>
4666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4667 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4669 egrep -v '^ *\+' conftest.er1
>conftest.err
4671 cat conftest.err
>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev
/null
; then
4674 if test -s conftest.err
; then
4675 ac_cpp_err
=$ac_c_preproc_warn_flag
4682 if test -z "$ac_cpp_err"; then
4683 ac_header_preproc
=yes
4685 echo "$as_me: failed program was:" >&5
4686 cat conftest.
$ac_ext >&5
4687 ac_header_preproc
=no
4689 rm -f conftest.err conftest.
$ac_ext
4690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4691 echo "${ECHO_T}$ac_header_preproc" >&6
4693 # So? What about this header?
4694 case $ac_header_compiler:$ac_header_preproc in
4696 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4697 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4699 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
4701 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4702 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4703 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4704 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4705 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4706 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
4708 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4709 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4710 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
4715 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4716 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4719 if test $ac_cv_header_sys_sysmacros_h = yes; then
4721 cat >>confdefs.h
<<\_ACEOF
4722 #define MAJOR_IN_SYSMACROS 1
4732 # checks for typedefs
4734 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
4735 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
4736 cat >conftest.
$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4738 #include "confdefs.h"
4742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4743 egrep "clock_t" >/dev
/null
2>&1; then
4748 cat >>confdefs.h
<<\_ACEOF
4749 #define clock_t long
4756 echo "$as_me:$LINENO: result: $was_it_defined" >&5
4757 echo "${ECHO_T}$was_it_defined" >&6
4759 # Check whether using makedev requires defining _OSF_SOURCE
4760 echo "$as_me:$LINENO: checking for makedev" >&5
4761 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
4762 cat >conftest.
$ac_ext <<_ACEOF
4763 #line $LINENO "configure"
4764 #include "confdefs.h"
4765 #include <sys/types.h>
4766 #ifdef F77_DUMMY_MAIN
4770 int F77_DUMMY_MAIN() { return 1; }
4780 rm -f conftest.
$ac_objext conftest
$ac_exeext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4782 (eval $ac_link) 2>&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try
='test -s conftest$ac_exeext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_cv_has_makedev
=yes
4794 echo "$as_me: failed program was:" >&5
4795 cat conftest.
$ac_ext >&5
4796 ac_cv_has_makedev
=no
4798 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4799 if test "$ac_cv_has_makedev" = "no"; then
4800 # we didn't link, try if _OSF_SOURCE will allow us to link
4801 cat >conftest.
$ac_ext <<_ACEOF
4802 #line $LINENO "configure"
4803 #include "confdefs.h"
4805 #define _OSF_SOURCE 1
4806 #include <sys/types.h>
4808 #ifdef F77_DUMMY_MAIN
4812 int F77_DUMMY_MAIN() { return 1; }
4822 rm -f conftest.
$ac_objext conftest
$ac_exeext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4824 (eval $ac_link) 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
4828 { ac_try
='test -s conftest$ac_exeext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 ac_cv_has_makedev
=yes
4836 echo "$as_me: failed program was:" >&5
4837 cat conftest.
$ac_ext >&5
4838 ac_cv_has_makedev
=no
4840 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4841 if test "$ac_cv_has_makedev" = "yes"; then
4843 cat >>confdefs.h
<<\_ACEOF
4844 #define _OSF_SOURCE 1
4849 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
4850 echo "${ECHO_T}$ac_cv_has_makedev" >&6
4851 if test "$ac_cv_has_makedev" = "yes"; then
4853 cat >>confdefs.h
<<\_ACEOF
4854 #define HAVE_MAKEDEV 1
4859 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
4860 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
4861 # defined, but the compiler does not support pragma redefine_extname,
4862 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
4863 # structures (such as rlimit64) without declaring them. As a
4864 # work-around, disable LFS on such configurations
4867 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
4868 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
4869 cat >conftest.
$ac_ext <<_ACEOF
4870 #line $LINENO "configure"
4871 #include "confdefs.h"
4873 #define _LARGEFILE_SOURCE 1
4874 #define _FILE_OFFSET_BITS 64
4875 #include <sys/resource.h>
4877 #ifdef F77_DUMMY_MAIN
4881 int F77_DUMMY_MAIN() { return 1; }
4891 rm -f conftest.
$ac_objext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try
='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4905 echo "$as_me: failed program was:" >&5
4906 cat conftest.
$ac_ext >&5
4909 rm -f conftest.
$ac_objext conftest.
$ac_ext
4910 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
4911 echo "${ECHO_T}$sol_lfs_bug" >&6
4912 if test "$sol_lfs_bug" = "yes"; then
4916 if test "$use_lfs" = "yes"; then
4917 # Two defines needed to enable largefile support on various platforms
4918 # These may affect some typedefs
4920 cat >>confdefs.h
<<\_ACEOF
4921 #define _LARGEFILE_SOURCE 1
4925 cat >>confdefs.h
<<\_ACEOF
4926 #define _FILE_OFFSET_BITS 64
4931 # Add some code to confdefs.h so that the test for off_t works on SCO
4932 cat >> confdefs.h
<<\EOF
4938 # Type availability checks
4939 echo "$as_me:$LINENO: checking for mode_t" >&5
4940 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4941 if test "${ac_cv_type_mode_t+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 cat >conftest.
$ac_ext <<_ACEOF
4945 #line $LINENO "configure"
4946 #include "confdefs.h"
4947 $ac_includes_default
4948 #ifdef F77_DUMMY_MAIN
4952 int F77_DUMMY_MAIN() { return 1; }
4959 if (sizeof (mode_t))
4965 rm -f conftest.
$ac_objext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try
='test -s conftest.$ac_objext'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 ac_cv_type_mode_t
=yes
4979 echo "$as_me: failed program was:" >&5
4980 cat conftest.
$ac_ext >&5
4981 ac_cv_type_mode_t
=no
4983 rm -f conftest.
$ac_objext conftest.
$ac_ext
4985 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4986 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4987 if test $ac_cv_type_mode_t = yes; then
4991 cat >>confdefs.h
<<_ACEOF
4997 echo "$as_me:$LINENO: checking for off_t" >&5
4998 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4999 if test "${ac_cv_type_off_t+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 cat >conftest.
$ac_ext <<_ACEOF
5003 #line $LINENO "configure"
5004 #include "confdefs.h"
5005 $ac_includes_default
5006 #ifdef F77_DUMMY_MAIN
5010 int F77_DUMMY_MAIN() { return 1; }
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
5035 ac_cv_type_off_t
=yes
5037 echo "$as_me: failed program was:" >&5
5038 cat conftest.
$ac_ext >&5
5041 rm -f conftest.
$ac_objext conftest.
$ac_ext
5043 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5044 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5045 if test $ac_cv_type_off_t = yes; then
5049 cat >>confdefs.h
<<_ACEOF
5055 echo "$as_me:$LINENO: checking for pid_t" >&5
5056 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5057 if test "${ac_cv_type_pid_t+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 cat >conftest.
$ac_ext <<_ACEOF
5061 #line $LINENO "configure"
5062 #include "confdefs.h"
5063 $ac_includes_default
5064 #ifdef F77_DUMMY_MAIN
5068 int F77_DUMMY_MAIN() { return 1; }
5081 rm -f conftest.
$ac_objext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5083 (eval $ac_compile) 2>&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try
='test -s conftest.$ac_objext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 ac_cv_type_pid_t
=yes
5095 echo "$as_me: failed program was:" >&5
5096 cat conftest.
$ac_ext >&5
5099 rm -f conftest.
$ac_objext conftest.
$ac_ext
5101 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5102 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5103 if test $ac_cv_type_pid_t = yes; then
5107 cat >>confdefs.h
<<_ACEOF
5113 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5114 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5115 if test "${ac_cv_type_signal+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 cat >conftest.
$ac_ext <<_ACEOF
5119 #line $LINENO "configure"
5120 #include "confdefs.h"
5121 #include <sys/types.h>
5127 extern "C" void (*signal (int, void (*)(int)))(int);
5129 void (*signal ()) ();
5132 #ifdef F77_DUMMY_MAIN
5136 int F77_DUMMY_MAIN() { return 1; }
5146 rm -f conftest.
$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
5152 { ac_try
='test -s conftest.$ac_objext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_cv_type_signal
=void
5160 echo "$as_me: failed program was:" >&5
5161 cat conftest.
$ac_ext >&5
5162 ac_cv_type_signal
=int
5164 rm -f conftest.
$ac_objext conftest.
$ac_ext
5166 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5167 echo "${ECHO_T}$ac_cv_type_signal" >&6
5169 cat >>confdefs.h
<<_ACEOF
5170 #define RETSIGTYPE $ac_cv_type_signal
5174 echo "$as_me:$LINENO: checking for size_t" >&5
5175 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5176 if test "${ac_cv_type_size_t+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 cat >conftest.
$ac_ext <<_ACEOF
5180 #line $LINENO "configure"
5181 #include "confdefs.h"
5182 $ac_includes_default
5183 #ifdef F77_DUMMY_MAIN
5187 int F77_DUMMY_MAIN() { return 1; }
5194 if (sizeof (size_t))
5200 rm -f conftest.
$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202 (eval $ac_compile) 2>&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try
='test -s conftest.$ac_objext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 ac_cv_type_size_t
=yes
5214 echo "$as_me: failed program was:" >&5
5215 cat conftest.
$ac_ext >&5
5216 ac_cv_type_size_t
=no
5218 rm -f conftest.
$ac_objext conftest.
$ac_ext
5220 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5221 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5222 if test $ac_cv_type_size_t = yes; then
5226 cat >>confdefs.h
<<_ACEOF
5227 #define size_t unsigned
5232 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5233 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5234 if test "${ac_cv_type_uid_t+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 cat >conftest.
$ac_ext <<_ACEOF
5238 #line $LINENO "configure"
5239 #include "confdefs.h"
5240 #include <sys/types.h>
5243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5244 egrep "uid_t" >/dev
/null
2>&1; then
5245 ac_cv_type_uid_t
=yes
5252 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5253 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5254 if test $ac_cv_type_uid_t = no
; then
5256 cat >>confdefs.h
<<\_ACEOF
5261 cat >>confdefs.h
<<\_ACEOF
5268 # Sizes of various common basic types
5269 echo "$as_me:$LINENO: checking for int" >&5
5270 echo $ECHO_N "checking for int... $ECHO_C" >&6
5271 if test "${ac_cv_type_int+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 cat >conftest.
$ac_ext <<_ACEOF
5275 #line $LINENO "configure"
5276 #include "confdefs.h"
5277 $ac_includes_default
5278 #ifdef F77_DUMMY_MAIN
5282 int F77_DUMMY_MAIN() { return 1; }
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 echo "$as_me: failed program was:" >&5
5310 cat conftest.
$ac_ext >&5
5313 rm -f conftest.
$ac_objext conftest.
$ac_ext
5315 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5316 echo "${ECHO_T}$ac_cv_type_int" >&6
5318 echo "$as_me:$LINENO: checking size of int" >&5
5319 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5320 if test "${ac_cv_sizeof_int+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 if test "$ac_cv_type_int" = yes; then
5324 # The cast to unsigned long works around a bug in the HP C Compiler
5325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5327 # This bug is HP SR number 8606223364.
5328 if test "$cross_compiling" = yes; then
5329 # Depending upon the size, compute the lo and hi bounds.
5330 cat >conftest.
$ac_ext <<_ACEOF
5331 #line $LINENO "configure"
5332 #include "confdefs.h"
5333 $ac_includes_default
5334 #ifdef F77_DUMMY_MAIN
5338 int F77_DUMMY_MAIN() { return 1; }
5343 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5350 rm -f conftest.
$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try
='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5364 cat >conftest.
$ac_ext <<_ACEOF
5365 #line $LINENO "configure"
5366 #include "confdefs.h"
5367 $ac_includes_default
5368 #ifdef F77_DUMMY_MAIN
5372 int F77_DUMMY_MAIN() { return 1; }
5377 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5384 rm -f conftest.
$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try
='test -s conftest.$ac_objext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5396 ac_hi
=$ac_mid; break
5398 echo "$as_me: failed program was:" >&5
5399 cat conftest.
$ac_ext >&5
5400 ac_lo
=`expr $ac_mid + 1`
5401 if test $ac_lo -le $ac_mid; then
5405 ac_mid
=`expr 2 '*' $ac_mid + 1`
5407 rm -f conftest.
$ac_objext conftest.
$ac_ext
5410 echo "$as_me: failed program was:" >&5
5411 cat conftest.
$ac_ext >&5
5412 cat >conftest.
$ac_ext <<_ACEOF
5413 #line $LINENO "configure"
5414 #include "confdefs.h"
5415 $ac_includes_default
5416 #ifdef F77_DUMMY_MAIN
5420 int F77_DUMMY_MAIN() { return 1; }
5425 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5432 rm -f conftest.
$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try
='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5446 cat >conftest.
$ac_ext <<_ACEOF
5447 #line $LINENO "configure"
5448 #include "confdefs.h"
5449 $ac_includes_default
5450 #ifdef F77_DUMMY_MAIN
5454 int F77_DUMMY_MAIN() { return 1; }
5459 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5466 rm -f conftest.
$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try
='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_lo
=$ac_mid; break
5480 echo "$as_me: failed program was:" >&5
5481 cat conftest.
$ac_ext >&5
5482 ac_hi
=`expr '(' $ac_mid ')' - 1`
5483 if test $ac_mid -le $ac_hi; then
5487 ac_mid
=`expr 2 '*' $ac_mid`
5489 rm -f conftest.
$ac_objext conftest.
$ac_ext
5492 echo "$as_me: failed program was:" >&5
5493 cat conftest.
$ac_ext >&5
5496 rm -f conftest.
$ac_objext conftest.
$ac_ext
5498 rm -f conftest.
$ac_objext conftest.
$ac_ext
5499 # Binary search between lo and hi bounds.
5500 while test "x$ac_lo" != "x$ac_hi"; do
5501 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5502 cat >conftest.
$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 #include "confdefs.h"
5505 $ac_includes_default
5506 #ifdef F77_DUMMY_MAIN
5510 int F77_DUMMY_MAIN() { return 1; }
5515 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5522 rm -f conftest.
$ac_objext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try
='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5536 echo "$as_me: failed program was:" >&5
5537 cat conftest.
$ac_ext >&5
5538 ac_lo
=`expr '(' $ac_mid ')' + 1`
5540 rm -f conftest.
$ac_objext conftest.
$ac_ext
5543 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5544 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5545 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5546 { (exit 1); exit 1; }; } ;;
5549 if test "$cross_compiling" = yes; then
5550 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5551 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5552 { (exit 1); exit 1; }; }
5554 cat >conftest.
$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5556 #include "confdefs.h"
5557 $ac_includes_default
5558 long longval () { return (long) (sizeof (int)); }
5559 unsigned long ulongval () { return (long) (sizeof (int)); }
5562 #ifdef F77_DUMMY_MAIN
5566 int F77_DUMMY_MAIN() { return 1; }
5572 FILE *f = fopen ("conftest.val", "w");
5575 if (((long) (sizeof (int))) < 0)
5577 long i = longval ();
5578 if (i != ((long) (sizeof (int))))
5580 fprintf (f, "%ld\n", i);
5584 unsigned long i = ulongval ();
5585 if (i != ((long) (sizeof (int))))
5587 fprintf (f, "%lu\n", i);
5589 exit (ferror (f) || fclose (f) != 0);
5595 rm -f conftest
$ac_exeext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597 (eval $ac_link) 2>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_sizeof_int
=`cat conftest.val`
5608 echo "$as_me: program exited with status $ac_status" >&5
5609 echo "$as_me: failed program was:" >&5
5610 cat conftest.
$ac_ext >&5
5612 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5613 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5614 { (exit 1); exit 1; }; }
5616 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5624 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5625 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5626 cat >>confdefs.h
<<_ACEOF
5627 #define SIZEOF_INT $ac_cv_sizeof_int
5631 echo "$as_me:$LINENO: checking for long" >&5
5632 echo $ECHO_N "checking for long... $ECHO_C" >&6
5633 if test "${ac_cv_type_long+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 cat >conftest.
$ac_ext <<_ACEOF
5637 #line $LINENO "configure"
5638 #include "confdefs.h"
5639 $ac_includes_default
5640 #ifdef F77_DUMMY_MAIN
5644 int F77_DUMMY_MAIN() { return 1; }
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 echo "$as_me: failed program was:" >&5
5672 cat conftest.
$ac_ext >&5
5675 rm -f conftest.
$ac_objext conftest.
$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5678 echo "${ECHO_T}$ac_cv_type_long" >&6
5680 echo "$as_me:$LINENO: checking size of long" >&5
5681 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5682 if test "${ac_cv_sizeof_long+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 if test "$ac_cv_type_long" = yes; then
5686 # The cast to unsigned long works around a bug in the HP C Compiler
5687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5689 # This bug is HP SR number 8606223364.
5690 if test "$cross_compiling" = yes; then
5691 # Depending upon the size, compute the lo and hi bounds.
5692 cat >conftest.
$ac_ext <<_ACEOF
5693 #line $LINENO "configure"
5694 #include "confdefs.h"
5695 $ac_includes_default
5696 #ifdef F77_DUMMY_MAIN
5700 int F77_DUMMY_MAIN() { return 1; }
5705 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5712 rm -f conftest.
$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try
='test -s conftest.$ac_objext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5726 cat >conftest.
$ac_ext <<_ACEOF
5727 #line $LINENO "configure"
5728 #include "confdefs.h"
5729 $ac_includes_default
5730 #ifdef F77_DUMMY_MAIN
5734 int F77_DUMMY_MAIN() { return 1; }
5739 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5746 rm -f conftest.
$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try
='test -s conftest.$ac_objext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_hi
=$ac_mid; break
5760 echo "$as_me: failed program was:" >&5
5761 cat conftest.
$ac_ext >&5
5762 ac_lo
=`expr $ac_mid + 1`
5763 if test $ac_lo -le $ac_mid; then
5767 ac_mid
=`expr 2 '*' $ac_mid + 1`
5769 rm -f conftest.
$ac_objext conftest.
$ac_ext
5772 echo "$as_me: failed program was:" >&5
5773 cat conftest.
$ac_ext >&5
5774 cat >conftest.
$ac_ext <<_ACEOF
5775 #line $LINENO "configure"
5776 #include "confdefs.h"
5777 $ac_includes_default
5778 #ifdef F77_DUMMY_MAIN
5782 int F77_DUMMY_MAIN() { return 1; }
5787 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5794 rm -f conftest.
$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796 (eval $ac_compile) 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try
='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5808 cat >conftest.
$ac_ext <<_ACEOF
5809 #line $LINENO "configure"
5810 #include "confdefs.h"
5811 $ac_includes_default
5812 #ifdef F77_DUMMY_MAIN
5816 int F77_DUMMY_MAIN() { return 1; }
5821 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5828 rm -f conftest.
$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830 (eval $ac_compile) 2>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try
='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 ac_lo
=$ac_mid; break
5842 echo "$as_me: failed program was:" >&5
5843 cat conftest.
$ac_ext >&5
5844 ac_hi
=`expr '(' $ac_mid ')' - 1`
5845 if test $ac_mid -le $ac_hi; then
5849 ac_mid
=`expr 2 '*' $ac_mid`
5851 rm -f conftest.
$ac_objext conftest.
$ac_ext
5854 echo "$as_me: failed program was:" >&5
5855 cat conftest.
$ac_ext >&5
5858 rm -f conftest.
$ac_objext conftest.
$ac_ext
5860 rm -f conftest.
$ac_objext conftest.
$ac_ext
5861 # Binary search between lo and hi bounds.
5862 while test "x$ac_lo" != "x$ac_hi"; do
5863 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5864 cat >conftest.
$ac_ext <<_ACEOF
5865 #line $LINENO "configure"
5866 #include "confdefs.h"
5867 $ac_includes_default
5868 #ifdef F77_DUMMY_MAIN
5872 int F77_DUMMY_MAIN() { return 1; }
5877 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5884 rm -f conftest.
$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886 (eval $ac_compile) 2>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try
='test -s conftest.$ac_objext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5898 echo "$as_me: failed program was:" >&5
5899 cat conftest.
$ac_ext >&5
5900 ac_lo
=`expr '(' $ac_mid ')' + 1`
5902 rm -f conftest.
$ac_objext conftest.
$ac_ext
5905 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5906 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5907 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5908 { (exit 1); exit 1; }; } ;;
5911 if test "$cross_compiling" = yes; then
5912 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5913 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5914 { (exit 1); exit 1; }; }
5916 cat >conftest.
$ac_ext <<_ACEOF
5917 #line $LINENO "configure"
5918 #include "confdefs.h"
5919 $ac_includes_default
5920 long longval () { return (long) (sizeof (long)); }
5921 unsigned long ulongval () { return (long) (sizeof (long)); }
5924 #ifdef F77_DUMMY_MAIN
5928 int F77_DUMMY_MAIN() { return 1; }
5934 FILE *f = fopen ("conftest.val", "w");
5937 if (((long) (sizeof (long))) < 0)
5939 long i = longval ();
5940 if (i != ((long) (sizeof (long))))
5942 fprintf (f, "%ld\n", i);
5946 unsigned long i = ulongval ();
5947 if (i != ((long) (sizeof (long))))
5949 fprintf (f, "%lu\n", i);
5951 exit (ferror (f) || fclose (f) != 0);
5957 rm -f conftest
$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959 (eval $ac_link) 2>&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_sizeof_long
=`cat conftest.val`
5970 echo "$as_me: program exited with status $ac_status" >&5
5971 echo "$as_me: failed program was:" >&5
5972 cat conftest.
$ac_ext >&5
5974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5975 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5976 { (exit 1); exit 1; }; }
5978 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5986 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5987 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5988 cat >>confdefs.h
<<_ACEOF
5989 #define SIZEOF_LONG $ac_cv_sizeof_long
5993 echo "$as_me:$LINENO: checking for void *" >&5
5994 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5995 if test "${ac_cv_type_void_p+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 cat >conftest.
$ac_ext <<_ACEOF
5999 #line $LINENO "configure"
6000 #include "confdefs.h"
6001 $ac_includes_default
6002 #ifdef F77_DUMMY_MAIN
6006 int F77_DUMMY_MAIN() { return 1; }
6013 if (sizeof (void *))
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
6031 ac_cv_type_void_p
=yes
6033 echo "$as_me: failed program was:" >&5
6034 cat conftest.
$ac_ext >&5
6035 ac_cv_type_void_p
=no
6037 rm -f conftest.
$ac_objext conftest.
$ac_ext
6039 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6040 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6042 echo "$as_me:$LINENO: checking size of void *" >&5
6043 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6044 if test "${ac_cv_sizeof_void_p+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 if test "$ac_cv_type_void_p" = yes; then
6048 # The cast to unsigned long works around a bug in the HP C Compiler
6049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6051 # This bug is HP SR number 8606223364.
6052 if test "$cross_compiling" = yes; then
6053 # Depending upon the size, compute the lo and hi bounds.
6054 cat >conftest.
$ac_ext <<_ACEOF
6055 #line $LINENO "configure"
6056 #include "confdefs.h"
6057 $ac_includes_default
6058 #ifdef F77_DUMMY_MAIN
6062 int F77_DUMMY_MAIN() { return 1; }
6067 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6074 rm -f conftest.
$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try
='test -s conftest.$ac_objext'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6088 cat >conftest.
$ac_ext <<_ACEOF
6089 #line $LINENO "configure"
6090 #include "confdefs.h"
6091 $ac_includes_default
6092 #ifdef F77_DUMMY_MAIN
6096 int F77_DUMMY_MAIN() { return 1; }
6101 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6108 rm -f conftest.
$ac_objext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try
='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_hi
=$ac_mid; break
6122 echo "$as_me: failed program was:" >&5
6123 cat conftest.
$ac_ext >&5
6124 ac_lo
=`expr $ac_mid + 1`
6125 if test $ac_lo -le $ac_mid; then
6129 ac_mid
=`expr 2 '*' $ac_mid + 1`
6131 rm -f conftest.
$ac_objext conftest.
$ac_ext
6134 echo "$as_me: failed program was:" >&5
6135 cat conftest.
$ac_ext >&5
6136 cat >conftest.
$ac_ext <<_ACEOF
6137 #line $LINENO "configure"
6138 #include "confdefs.h"
6139 $ac_includes_default
6140 #ifdef F77_DUMMY_MAIN
6144 int F77_DUMMY_MAIN() { return 1; }
6149 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6156 rm -f conftest.
$ac_objext
6157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6158 (eval $ac_compile) 2>&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try
='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6170 cat >conftest.
$ac_ext <<_ACEOF
6171 #line $LINENO "configure"
6172 #include "confdefs.h"
6173 $ac_includes_default
6174 #ifdef F77_DUMMY_MAIN
6178 int F77_DUMMY_MAIN() { return 1; }
6183 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6190 rm -f conftest.
$ac_objext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6192 (eval $ac_compile) 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try
='test -s conftest.$ac_objext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_lo
=$ac_mid; break
6204 echo "$as_me: failed program was:" >&5
6205 cat conftest.
$ac_ext >&5
6206 ac_hi
=`expr '(' $ac_mid ')' - 1`
6207 if test $ac_mid -le $ac_hi; then
6211 ac_mid
=`expr 2 '*' $ac_mid`
6213 rm -f conftest.
$ac_objext conftest.
$ac_ext
6216 echo "$as_me: failed program was:" >&5
6217 cat conftest.
$ac_ext >&5
6220 rm -f conftest.
$ac_objext conftest.
$ac_ext
6222 rm -f conftest.
$ac_objext conftest.
$ac_ext
6223 # Binary search between lo and hi bounds.
6224 while test "x$ac_lo" != "x$ac_hi"; do
6225 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6226 cat >conftest.
$ac_ext <<_ACEOF
6227 #line $LINENO "configure"
6228 #include "confdefs.h"
6229 $ac_includes_default
6230 #ifdef F77_DUMMY_MAIN
6234 int F77_DUMMY_MAIN() { return 1; }
6239 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6246 rm -f conftest.
$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try
='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6260 echo "$as_me: failed program was:" >&5
6261 cat conftest.
$ac_ext >&5
6262 ac_lo
=`expr '(' $ac_mid ')' + 1`
6264 rm -f conftest.
$ac_objext conftest.
$ac_ext
6267 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
6268 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
6269 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
6270 { (exit 1); exit 1; }; } ;;
6273 if test "$cross_compiling" = yes; then
6274 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6275 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6276 { (exit 1); exit 1; }; }
6278 cat >conftest.
$ac_ext <<_ACEOF
6279 #line $LINENO "configure"
6280 #include "confdefs.h"
6281 $ac_includes_default
6282 long longval () { return (long) (sizeof (void *)); }
6283 unsigned long ulongval () { return (long) (sizeof (void *)); }
6286 #ifdef F77_DUMMY_MAIN
6290 int F77_DUMMY_MAIN() { return 1; }
6296 FILE *f = fopen ("conftest.val", "w");
6299 if (((long) (sizeof (void *))) < 0)
6301 long i = longval ();
6302 if (i != ((long) (sizeof (void *))))
6304 fprintf (f, "%ld\n", i);
6308 unsigned long i = ulongval ();
6309 if (i != ((long) (sizeof (void *))))
6311 fprintf (f, "%lu\n", i);
6313 exit (ferror (f) || fclose (f) != 0);
6319 rm -f conftest
$ac_exeext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321 (eval $ac_link) 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 ac_cv_sizeof_void_p
=`cat conftest.val`
6332 echo "$as_me: program exited with status $ac_status" >&5
6333 echo "$as_me: failed program was:" >&5
6334 cat conftest.
$ac_ext >&5
6336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
6337 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
6338 { (exit 1); exit 1; }; }
6340 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6345 ac_cv_sizeof_void_p
=0
6348 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6349 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6350 cat >>confdefs.h
<<_ACEOF
6351 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6355 echo "$as_me:$LINENO: checking for char" >&5
6356 echo $ECHO_N "checking for char... $ECHO_C" >&6
6357 if test "${ac_cv_type_char+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 cat >conftest.
$ac_ext <<_ACEOF
6361 #line $LINENO "configure"
6362 #include "confdefs.h"
6363 $ac_includes_default
6364 #ifdef F77_DUMMY_MAIN
6368 int F77_DUMMY_MAIN() { return 1; }
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 echo "$as_me: failed program was:" >&5
6396 cat conftest.
$ac_ext >&5
6399 rm -f conftest.
$ac_objext conftest.
$ac_ext
6401 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6402 echo "${ECHO_T}$ac_cv_type_char" >&6
6404 echo "$as_me:$LINENO: checking size of char" >&5
6405 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6406 if test "${ac_cv_sizeof_char+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 if test "$ac_cv_type_char" = yes; then
6410 # The cast to unsigned long works around a bug in the HP C Compiler
6411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6413 # This bug is HP SR number 8606223364.
6414 if test "$cross_compiling" = yes; then
6415 # Depending upon the size, compute the lo and hi bounds.
6416 cat >conftest.
$ac_ext <<_ACEOF
6417 #line $LINENO "configure"
6418 #include "confdefs.h"
6419 $ac_includes_default
6420 #ifdef F77_DUMMY_MAIN
6424 int F77_DUMMY_MAIN() { return 1; }
6429 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6436 rm -f conftest.
$ac_objext
6437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438 (eval $ac_compile) 2>&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try
='test -s conftest.$ac_objext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6450 cat >conftest.
$ac_ext <<_ACEOF
6451 #line $LINENO "configure"
6452 #include "confdefs.h"
6453 $ac_includes_default
6454 #ifdef F77_DUMMY_MAIN
6458 int F77_DUMMY_MAIN() { return 1; }
6463 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6470 rm -f conftest.
$ac_objext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6472 (eval $ac_compile) 2>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try
='test -s conftest.$ac_objext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_hi
=$ac_mid; break
6484 echo "$as_me: failed program was:" >&5
6485 cat conftest.
$ac_ext >&5
6486 ac_lo
=`expr $ac_mid + 1`
6487 if test $ac_lo -le $ac_mid; then
6491 ac_mid
=`expr 2 '*' $ac_mid + 1`
6493 rm -f conftest.
$ac_objext conftest.
$ac_ext
6496 echo "$as_me: failed program was:" >&5
6497 cat conftest.
$ac_ext >&5
6498 cat >conftest.
$ac_ext <<_ACEOF
6499 #line $LINENO "configure"
6500 #include "confdefs.h"
6501 $ac_includes_default
6502 #ifdef F77_DUMMY_MAIN
6506 int F77_DUMMY_MAIN() { return 1; }
6511 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6518 rm -f conftest.
$ac_objext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520 (eval $ac_compile) 2>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try
='test -s conftest.$ac_objext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6532 cat >conftest.
$ac_ext <<_ACEOF
6533 #line $LINENO "configure"
6534 #include "confdefs.h"
6535 $ac_includes_default
6536 #ifdef F77_DUMMY_MAIN
6540 int F77_DUMMY_MAIN() { return 1; }
6545 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6552 rm -f conftest.
$ac_objext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try
='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_lo
=$ac_mid; break
6566 echo "$as_me: failed program was:" >&5
6567 cat conftest.
$ac_ext >&5
6568 ac_hi
=`expr '(' $ac_mid ')' - 1`
6569 if test $ac_mid -le $ac_hi; then
6573 ac_mid
=`expr 2 '*' $ac_mid`
6575 rm -f conftest.
$ac_objext conftest.
$ac_ext
6578 echo "$as_me: failed program was:" >&5
6579 cat conftest.
$ac_ext >&5
6582 rm -f conftest.
$ac_objext conftest.
$ac_ext
6584 rm -f conftest.
$ac_objext conftest.
$ac_ext
6585 # Binary search between lo and hi bounds.
6586 while test "x$ac_lo" != "x$ac_hi"; do
6587 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6588 cat >conftest.
$ac_ext <<_ACEOF
6589 #line $LINENO "configure"
6590 #include "confdefs.h"
6591 $ac_includes_default
6592 #ifdef F77_DUMMY_MAIN
6596 int F77_DUMMY_MAIN() { return 1; }
6601 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6608 rm -f conftest.
$ac_objext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610 (eval $ac_compile) 2>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try
='test -s conftest.$ac_objext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6622 echo "$as_me: failed program was:" >&5
6623 cat conftest.
$ac_ext >&5
6624 ac_lo
=`expr '(' $ac_mid ')' + 1`
6626 rm -f conftest.
$ac_objext conftest.
$ac_ext
6629 ?
*) ac_cv_sizeof_char
=$ac_lo;;
6630 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6631 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6632 { (exit 1); exit 1; }; } ;;
6635 if test "$cross_compiling" = yes; then
6636 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6637 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6638 { (exit 1); exit 1; }; }
6640 cat >conftest.
$ac_ext <<_ACEOF
6641 #line $LINENO "configure"
6642 #include "confdefs.h"
6643 $ac_includes_default
6644 long longval () { return (long) (sizeof (char)); }
6645 unsigned long ulongval () { return (long) (sizeof (char)); }
6648 #ifdef F77_DUMMY_MAIN
6652 int F77_DUMMY_MAIN() { return 1; }
6658 FILE *f = fopen ("conftest.val", "w");
6661 if (((long) (sizeof (char))) < 0)
6663 long i = longval ();
6664 if (i != ((long) (sizeof (char))))
6666 fprintf (f, "%ld\n", i);
6670 unsigned long i = ulongval ();
6671 if (i != ((long) (sizeof (char))))
6673 fprintf (f, "%lu\n", i);
6675 exit (ferror (f) || fclose (f) != 0);
6681 rm -f conftest
$ac_exeext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6683 (eval $ac_link) 2>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 ac_cv_sizeof_char
=`cat conftest.val`
6694 echo "$as_me: program exited with status $ac_status" >&5
6695 echo "$as_me: failed program was:" >&5
6696 cat conftest.
$ac_ext >&5
6698 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6699 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6700 { (exit 1); exit 1; }; }
6702 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6710 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6711 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6712 cat >>confdefs.h
<<_ACEOF
6713 #define SIZEOF_CHAR $ac_cv_sizeof_char
6717 echo "$as_me:$LINENO: checking for short" >&5
6718 echo $ECHO_N "checking for short... $ECHO_C" >&6
6719 if test "${ac_cv_type_short+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 cat >conftest.
$ac_ext <<_ACEOF
6723 #line $LINENO "configure"
6724 #include "confdefs.h"
6725 $ac_includes_default
6726 #ifdef F77_DUMMY_MAIN
6730 int F77_DUMMY_MAIN() { return 1; }
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
6755 ac_cv_type_short
=yes
6757 echo "$as_me: failed program was:" >&5
6758 cat conftest.
$ac_ext >&5
6761 rm -f conftest.
$ac_objext conftest.
$ac_ext
6763 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6764 echo "${ECHO_T}$ac_cv_type_short" >&6
6766 echo "$as_me:$LINENO: checking size of short" >&5
6767 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6768 if test "${ac_cv_sizeof_short+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 if test "$ac_cv_type_short" = yes; then
6772 # The cast to unsigned long works around a bug in the HP C Compiler
6773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6775 # This bug is HP SR number 8606223364.
6776 if test "$cross_compiling" = yes; then
6777 # Depending upon the size, compute the lo and hi bounds.
6778 cat >conftest.
$ac_ext <<_ACEOF
6779 #line $LINENO "configure"
6780 #include "confdefs.h"
6781 $ac_includes_default
6782 #ifdef F77_DUMMY_MAIN
6786 int F77_DUMMY_MAIN() { return 1; }
6791 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6798 rm -f conftest.
$ac_objext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 (eval $ac_compile) 2>&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } &&
6804 { ac_try
='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6812 cat >conftest.
$ac_ext <<_ACEOF
6813 #line $LINENO "configure"
6814 #include "confdefs.h"
6815 $ac_includes_default
6816 #ifdef F77_DUMMY_MAIN
6820 int F77_DUMMY_MAIN() { return 1; }
6825 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6832 rm -f conftest.
$ac_objext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try
='test -s conftest.$ac_objext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 ac_hi
=$ac_mid; break
6846 echo "$as_me: failed program was:" >&5
6847 cat conftest.
$ac_ext >&5
6848 ac_lo
=`expr $ac_mid + 1`
6849 if test $ac_lo -le $ac_mid; then
6853 ac_mid
=`expr 2 '*' $ac_mid + 1`
6855 rm -f conftest.
$ac_objext conftest.
$ac_ext
6858 echo "$as_me: failed program was:" >&5
6859 cat conftest.
$ac_ext >&5
6860 cat >conftest.
$ac_ext <<_ACEOF
6861 #line $LINENO "configure"
6862 #include "confdefs.h"
6863 $ac_includes_default
6864 #ifdef F77_DUMMY_MAIN
6868 int F77_DUMMY_MAIN() { return 1; }
6873 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6880 rm -f conftest.
$ac_objext
6881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6882 (eval $ac_compile) 2>&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try
='test -s conftest.$ac_objext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6894 cat >conftest.
$ac_ext <<_ACEOF
6895 #line $LINENO "configure"
6896 #include "confdefs.h"
6897 $ac_includes_default
6898 #ifdef F77_DUMMY_MAIN
6902 int F77_DUMMY_MAIN() { return 1; }
6907 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6914 rm -f conftest.
$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try
='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_lo
=$ac_mid; break
6928 echo "$as_me: failed program was:" >&5
6929 cat conftest.
$ac_ext >&5
6930 ac_hi
=`expr '(' $ac_mid ')' - 1`
6931 if test $ac_mid -le $ac_hi; then
6935 ac_mid
=`expr 2 '*' $ac_mid`
6937 rm -f conftest.
$ac_objext conftest.
$ac_ext
6940 echo "$as_me: failed program was:" >&5
6941 cat conftest.
$ac_ext >&5
6944 rm -f conftest.
$ac_objext conftest.
$ac_ext
6946 rm -f conftest.
$ac_objext conftest.
$ac_ext
6947 # Binary search between lo and hi bounds.
6948 while test "x$ac_lo" != "x$ac_hi"; do
6949 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6950 cat >conftest.
$ac_ext <<_ACEOF
6951 #line $LINENO "configure"
6952 #include "confdefs.h"
6953 $ac_includes_default
6954 #ifdef F77_DUMMY_MAIN
6958 int F77_DUMMY_MAIN() { return 1; }
6963 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6970 rm -f conftest.
$ac_objext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try
='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6984 echo "$as_me: failed program was:" >&5
6985 cat conftest.
$ac_ext >&5
6986 ac_lo
=`expr '(' $ac_mid ')' + 1`
6988 rm -f conftest.
$ac_objext conftest.
$ac_ext
6991 ?
*) ac_cv_sizeof_short
=$ac_lo;;
6992 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
6993 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
6994 { (exit 1); exit 1; }; } ;;
6997 if test "$cross_compiling" = yes; then
6998 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6999 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7000 { (exit 1); exit 1; }; }
7002 cat >conftest.
$ac_ext <<_ACEOF
7003 #line $LINENO "configure"
7004 #include "confdefs.h"
7005 $ac_includes_default
7006 long longval () { return (long) (sizeof (short)); }
7007 unsigned long ulongval () { return (long) (sizeof (short)); }
7010 #ifdef F77_DUMMY_MAIN
7014 int F77_DUMMY_MAIN() { return 1; }
7020 FILE *f = fopen ("conftest.val", "w");
7023 if (((long) (sizeof (short))) < 0)
7025 long i = longval ();
7026 if (i != ((long) (sizeof (short))))
7028 fprintf (f, "%ld\n", i);
7032 unsigned long i = ulongval ();
7033 if (i != ((long) (sizeof (short))))
7035 fprintf (f, "%lu\n", i);
7037 exit (ferror (f) || fclose (f) != 0);
7043 rm -f conftest
$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045 (eval $ac_link) 2>&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
7054 ac_cv_sizeof_short
=`cat conftest.val`
7056 echo "$as_me: program exited with status $ac_status" >&5
7057 echo "$as_me: failed program was:" >&5
7058 cat conftest.
$ac_ext >&5
7060 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7061 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7062 { (exit 1); exit 1; }; }
7064 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7069 ac_cv_sizeof_short
=0
7072 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7073 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7074 cat >>confdefs.h
<<_ACEOF
7075 #define SIZEOF_SHORT $ac_cv_sizeof_short
7079 echo "$as_me:$LINENO: checking for float" >&5
7080 echo $ECHO_N "checking for float... $ECHO_C" >&6
7081 if test "${ac_cv_type_float+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 cat >conftest.
$ac_ext <<_ACEOF
7085 #line $LINENO "configure"
7086 #include "confdefs.h"
7087 $ac_includes_default
7088 #ifdef F77_DUMMY_MAIN
7092 int F77_DUMMY_MAIN() { return 1; }
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
7117 ac_cv_type_float
=yes
7119 echo "$as_me: failed program was:" >&5
7120 cat conftest.
$ac_ext >&5
7123 rm -f conftest.
$ac_objext conftest.
$ac_ext
7125 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7126 echo "${ECHO_T}$ac_cv_type_float" >&6
7128 echo "$as_me:$LINENO: checking size of float" >&5
7129 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7130 if test "${ac_cv_sizeof_float+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 if test "$ac_cv_type_float" = yes; then
7134 # The cast to unsigned long works around a bug in the HP C Compiler
7135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7137 # This bug is HP SR number 8606223364.
7138 if test "$cross_compiling" = yes; then
7139 # Depending upon the size, compute the lo and hi bounds.
7140 cat >conftest.
$ac_ext <<_ACEOF
7141 #line $LINENO "configure"
7142 #include "confdefs.h"
7143 $ac_includes_default
7144 #ifdef F77_DUMMY_MAIN
7148 int F77_DUMMY_MAIN() { return 1; }
7153 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7160 rm -f conftest.
$ac_objext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try
='test -s conftest.$ac_objext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7174 cat >conftest.
$ac_ext <<_ACEOF
7175 #line $LINENO "configure"
7176 #include "confdefs.h"
7177 $ac_includes_default
7178 #ifdef F77_DUMMY_MAIN
7182 int F77_DUMMY_MAIN() { return 1; }
7187 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7194 rm -f conftest.
$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try
='test -s conftest.$ac_objext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 ac_hi
=$ac_mid; break
7208 echo "$as_me: failed program was:" >&5
7209 cat conftest.
$ac_ext >&5
7210 ac_lo
=`expr $ac_mid + 1`
7211 if test $ac_lo -le $ac_mid; then
7215 ac_mid
=`expr 2 '*' $ac_mid + 1`
7217 rm -f conftest.
$ac_objext conftest.
$ac_ext
7220 echo "$as_me: failed program was:" >&5
7221 cat conftest.
$ac_ext >&5
7222 cat >conftest.
$ac_ext <<_ACEOF
7223 #line $LINENO "configure"
7224 #include "confdefs.h"
7225 $ac_includes_default
7226 #ifdef F77_DUMMY_MAIN
7230 int F77_DUMMY_MAIN() { return 1; }
7235 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
7242 rm -f conftest.
$ac_objext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244 (eval $ac_compile) 2>&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
7248 { ac_try
='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7256 cat >conftest.
$ac_ext <<_ACEOF
7257 #line $LINENO "configure"
7258 #include "confdefs.h"
7259 $ac_includes_default
7260 #ifdef F77_DUMMY_MAIN
7264 int F77_DUMMY_MAIN() { return 1; }
7269 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
7276 rm -f conftest.
$ac_objext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278 (eval $ac_compile) 2>&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try
='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_lo
=$ac_mid; break
7290 echo "$as_me: failed program was:" >&5
7291 cat conftest.
$ac_ext >&5
7292 ac_hi
=`expr '(' $ac_mid ')' - 1`
7293 if test $ac_mid -le $ac_hi; then
7297 ac_mid
=`expr 2 '*' $ac_mid`
7299 rm -f conftest.
$ac_objext conftest.
$ac_ext
7302 echo "$as_me: failed program was:" >&5
7303 cat conftest.
$ac_ext >&5
7306 rm -f conftest.
$ac_objext conftest.
$ac_ext
7308 rm -f conftest.
$ac_objext conftest.
$ac_ext
7309 # Binary search between lo and hi bounds.
7310 while test "x$ac_lo" != "x$ac_hi"; do
7311 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7312 cat >conftest.
$ac_ext <<_ACEOF
7313 #line $LINENO "configure"
7314 #include "confdefs.h"
7315 $ac_includes_default
7316 #ifdef F77_DUMMY_MAIN
7320 int F77_DUMMY_MAIN() { return 1; }
7325 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7332 rm -f conftest.
$ac_objext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334 (eval $ac_compile) 2>&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try
='test -s conftest.$ac_objext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7346 echo "$as_me: failed program was:" >&5
7347 cat conftest.
$ac_ext >&5
7348 ac_lo
=`expr '(' $ac_mid ')' + 1`
7350 rm -f conftest.
$ac_objext conftest.
$ac_ext
7353 ?
*) ac_cv_sizeof_float
=$ac_lo;;
7354 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
7355 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
7356 { (exit 1); exit 1; }; } ;;
7359 if test "$cross_compiling" = yes; then
7360 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7361 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7362 { (exit 1); exit 1; }; }
7364 cat >conftest.
$ac_ext <<_ACEOF
7365 #line $LINENO "configure"
7366 #include "confdefs.h"
7367 $ac_includes_default
7368 long longval () { return (long) (sizeof (float)); }
7369 unsigned long ulongval () { return (long) (sizeof (float)); }
7372 #ifdef F77_DUMMY_MAIN
7376 int F77_DUMMY_MAIN() { return 1; }
7382 FILE *f = fopen ("conftest.val", "w");
7385 if (((long) (sizeof (float))) < 0)
7387 long i = longval ();
7388 if (i != ((long) (sizeof (float))))
7390 fprintf (f, "%ld\n", i);
7394 unsigned long i = ulongval ();
7395 if (i != ((long) (sizeof (float))))
7397 fprintf (f, "%lu\n", i);
7399 exit (ferror (f) || fclose (f) != 0);
7405 rm -f conftest
$ac_exeext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407 (eval $ac_link) 2>&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_cv_sizeof_float
=`cat conftest.val`
7418 echo "$as_me: program exited with status $ac_status" >&5
7419 echo "$as_me: failed program was:" >&5
7420 cat conftest.
$ac_ext >&5
7422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
7423 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
7424 { (exit 1); exit 1; }; }
7426 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7431 ac_cv_sizeof_float
=0
7434 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
7435 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
7436 cat >>confdefs.h
<<_ACEOF
7437 #define SIZEOF_FLOAT $ac_cv_sizeof_float
7441 echo "$as_me:$LINENO: checking for double" >&5
7442 echo $ECHO_N "checking for double... $ECHO_C" >&6
7443 if test "${ac_cv_type_double+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 cat >conftest.
$ac_ext <<_ACEOF
7447 #line $LINENO "configure"
7448 #include "confdefs.h"
7449 $ac_includes_default
7450 #ifdef F77_DUMMY_MAIN
7454 int F77_DUMMY_MAIN() { return 1; }
7461 if (sizeof (double))
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
7479 ac_cv_type_double
=yes
7481 echo "$as_me: failed program was:" >&5
7482 cat conftest.
$ac_ext >&5
7483 ac_cv_type_double
=no
7485 rm -f conftest.
$ac_objext conftest.
$ac_ext
7487 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
7488 echo "${ECHO_T}$ac_cv_type_double" >&6
7490 echo "$as_me:$LINENO: checking size of double" >&5
7491 echo $ECHO_N "checking size of double... $ECHO_C" >&6
7492 if test "${ac_cv_sizeof_double+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 if test "$ac_cv_type_double" = yes; then
7496 # The cast to unsigned long works around a bug in the HP C Compiler
7497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7499 # This bug is HP SR number 8606223364.
7500 if test "$cross_compiling" = yes; then
7501 # Depending upon the size, compute the lo and hi bounds.
7502 cat >conftest.
$ac_ext <<_ACEOF
7503 #line $LINENO "configure"
7504 #include "confdefs.h"
7505 $ac_includes_default
7506 #ifdef F77_DUMMY_MAIN
7510 int F77_DUMMY_MAIN() { return 1; }
7515 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
7522 rm -f conftest.
$ac_objext
7523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7524 (eval $ac_compile) 2>&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try
='test -s conftest.$ac_objext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7536 cat >conftest.
$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7538 #include "confdefs.h"
7539 $ac_includes_default
7540 #ifdef F77_DUMMY_MAIN
7544 int F77_DUMMY_MAIN() { return 1; }
7549 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7556 rm -f conftest.
$ac_objext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558 (eval $ac_compile) 2>&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try
='test -s conftest.$ac_objext'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then
7568 ac_hi
=$ac_mid; break
7570 echo "$as_me: failed program was:" >&5
7571 cat conftest.
$ac_ext >&5
7572 ac_lo
=`expr $ac_mid + 1`
7573 if test $ac_lo -le $ac_mid; then
7577 ac_mid
=`expr 2 '*' $ac_mid + 1`
7579 rm -f conftest.
$ac_objext conftest.
$ac_ext
7582 echo "$as_me: failed program was:" >&5
7583 cat conftest.
$ac_ext >&5
7584 cat >conftest.
$ac_ext <<_ACEOF
7585 #line $LINENO "configure"
7586 #include "confdefs.h"
7587 $ac_includes_default
7588 #ifdef F77_DUMMY_MAIN
7592 int F77_DUMMY_MAIN() { return 1; }
7597 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
7604 rm -f conftest.
$ac_objext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606 (eval $ac_compile) 2>&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try
='test -s conftest.$ac_objext'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; }; then
7618 cat >conftest.
$ac_ext <<_ACEOF
7619 #line $LINENO "configure"
7620 #include "confdefs.h"
7621 $ac_includes_default
7622 #ifdef F77_DUMMY_MAIN
7626 int F77_DUMMY_MAIN() { return 1; }
7631 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
7638 rm -f conftest.
$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try
='test -s conftest.$ac_objext'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 ac_lo
=$ac_mid; break
7652 echo "$as_me: failed program was:" >&5
7653 cat conftest.
$ac_ext >&5
7654 ac_hi
=`expr '(' $ac_mid ')' - 1`
7655 if test $ac_mid -le $ac_hi; then
7659 ac_mid
=`expr 2 '*' $ac_mid`
7661 rm -f conftest.
$ac_objext conftest.
$ac_ext
7664 echo "$as_me: failed program was:" >&5
7665 cat conftest.
$ac_ext >&5
7668 rm -f conftest.
$ac_objext conftest.
$ac_ext
7670 rm -f conftest.
$ac_objext conftest.
$ac_ext
7671 # Binary search between lo and hi bounds.
7672 while test "x$ac_lo" != "x$ac_hi"; do
7673 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7674 cat >conftest.
$ac_ext <<_ACEOF
7675 #line $LINENO "configure"
7676 #include "confdefs.h"
7677 $ac_includes_default
7678 #ifdef F77_DUMMY_MAIN
7682 int F77_DUMMY_MAIN() { return 1; }
7687 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7694 rm -f conftest.
$ac_objext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7696 (eval $ac_compile) 2>&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try
='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7708 echo "$as_me: failed program was:" >&5
7709 cat conftest.
$ac_ext >&5
7710 ac_lo
=`expr '(' $ac_mid ')' + 1`
7712 rm -f conftest.
$ac_objext conftest.
$ac_ext
7715 ?
*) ac_cv_sizeof_double
=$ac_lo;;
7716 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7717 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7718 { (exit 1); exit 1; }; } ;;
7721 if test "$cross_compiling" = yes; then
7722 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7723 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7724 { (exit 1); exit 1; }; }
7726 cat >conftest.
$ac_ext <<_ACEOF
7727 #line $LINENO "configure"
7728 #include "confdefs.h"
7729 $ac_includes_default
7730 long longval () { return (long) (sizeof (double)); }
7731 unsigned long ulongval () { return (long) (sizeof (double)); }
7734 #ifdef F77_DUMMY_MAIN
7738 int F77_DUMMY_MAIN() { return 1; }
7744 FILE *f = fopen ("conftest.val", "w");
7747 if (((long) (sizeof (double))) < 0)
7749 long i = longval ();
7750 if (i != ((long) (sizeof (double))))
7752 fprintf (f, "%ld\n", i);
7756 unsigned long i = ulongval ();
7757 if (i != ((long) (sizeof (double))))
7759 fprintf (f, "%lu\n", i);
7761 exit (ferror (f) || fclose (f) != 0);
7767 rm -f conftest
$ac_exeext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769 (eval $ac_link) 2>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 ac_cv_sizeof_double
=`cat conftest.val`
7780 echo "$as_me: program exited with status $ac_status" >&5
7781 echo "$as_me: failed program was:" >&5
7782 cat conftest.
$ac_ext >&5
7784 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7785 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7786 { (exit 1); exit 1; }; }
7788 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7793 ac_cv_sizeof_double
=0
7796 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7797 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
7798 cat >>confdefs.h
<<_ACEOF
7799 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7803 echo "$as_me:$LINENO: checking for fpos_t" >&5
7804 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
7805 if test "${ac_cv_type_fpos_t+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 cat >conftest.
$ac_ext <<_ACEOF
7809 #line $LINENO "configure"
7810 #include "confdefs.h"
7811 $ac_includes_default
7812 #ifdef F77_DUMMY_MAIN
7816 int F77_DUMMY_MAIN() { return 1; }
7823 if (sizeof (fpos_t))
7829 rm -f conftest.
$ac_objext
7830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7831 (eval $ac_compile) 2>&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try
='test -s conftest.$ac_objext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_cv_type_fpos_t
=yes
7843 echo "$as_me: failed program was:" >&5
7844 cat conftest.
$ac_ext >&5
7845 ac_cv_type_fpos_t
=no
7847 rm -f conftest.
$ac_objext conftest.
$ac_ext
7849 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
7850 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
7852 echo "$as_me:$LINENO: checking size of fpos_t" >&5
7853 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
7854 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 if test "$ac_cv_type_fpos_t" = yes; then
7858 # The cast to unsigned long works around a bug in the HP C Compiler
7859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7861 # This bug is HP SR number 8606223364.
7862 if test "$cross_compiling" = yes; then
7863 # Depending upon the size, compute the lo and hi bounds.
7864 cat >conftest.
$ac_ext <<_ACEOF
7865 #line $LINENO "configure"
7866 #include "confdefs.h"
7867 $ac_includes_default
7868 #ifdef F77_DUMMY_MAIN
7872 int F77_DUMMY_MAIN() { return 1; }
7877 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
7884 rm -f conftest.
$ac_objext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7886 (eval $ac_compile) 2>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try
='test -s conftest.$ac_objext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7898 cat >conftest.
$ac_ext <<_ACEOF
7899 #line $LINENO "configure"
7900 #include "confdefs.h"
7901 $ac_includes_default
7902 #ifdef F77_DUMMY_MAIN
7906 int F77_DUMMY_MAIN() { return 1; }
7911 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
7918 rm -f conftest.
$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try
='test -s conftest.$ac_objext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_hi
=$ac_mid; break
7932 echo "$as_me: failed program was:" >&5
7933 cat conftest.
$ac_ext >&5
7934 ac_lo
=`expr $ac_mid + 1`
7935 if test $ac_lo -le $ac_mid; then
7939 ac_mid
=`expr 2 '*' $ac_mid + 1`
7941 rm -f conftest.
$ac_objext conftest.
$ac_ext
7944 echo "$as_me: failed program was:" >&5
7945 cat conftest.
$ac_ext >&5
7946 cat >conftest.
$ac_ext <<_ACEOF
7947 #line $LINENO "configure"
7948 #include "confdefs.h"
7949 $ac_includes_default
7950 #ifdef F77_DUMMY_MAIN
7954 int F77_DUMMY_MAIN() { return 1; }
7959 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
7966 rm -f conftest.
$ac_objext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7968 (eval $ac_compile) 2>&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try
='test -s conftest.$ac_objext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7980 cat >conftest.
$ac_ext <<_ACEOF
7981 #line $LINENO "configure"
7982 #include "confdefs.h"
7983 $ac_includes_default
7984 #ifdef F77_DUMMY_MAIN
7988 int F77_DUMMY_MAIN() { return 1; }
7993 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8000 rm -f conftest.
$ac_objext
8001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8002 (eval $ac_compile) 2>&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try
='test -s conftest.$ac_objext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 ac_lo
=$ac_mid; break
8014 echo "$as_me: failed program was:" >&5
8015 cat conftest.
$ac_ext >&5
8016 ac_hi
=`expr '(' $ac_mid ')' - 1`
8017 if test $ac_mid -le $ac_hi; then
8021 ac_mid
=`expr 2 '*' $ac_mid`
8023 rm -f conftest.
$ac_objext conftest.
$ac_ext
8026 echo "$as_me: failed program was:" >&5
8027 cat conftest.
$ac_ext >&5
8030 rm -f conftest.
$ac_objext conftest.
$ac_ext
8032 rm -f conftest.
$ac_objext conftest.
$ac_ext
8033 # Binary search between lo and hi bounds.
8034 while test "x$ac_lo" != "x$ac_hi"; do
8035 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8036 cat >conftest.
$ac_ext <<_ACEOF
8037 #line $LINENO "configure"
8038 #include "confdefs.h"
8039 $ac_includes_default
8040 #ifdef F77_DUMMY_MAIN
8044 int F77_DUMMY_MAIN() { return 1; }
8049 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8056 rm -f conftest.
$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try
='test -s conftest.$ac_objext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8070 echo "$as_me: failed program was:" >&5
8071 cat conftest.
$ac_ext >&5
8072 ac_lo
=`expr '(' $ac_mid ')' + 1`
8074 rm -f conftest.
$ac_objext conftest.
$ac_ext
8077 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
8078 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
8079 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
8080 { (exit 1); exit 1; }; } ;;
8083 if test "$cross_compiling" = yes; then
8084 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8085 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8086 { (exit 1); exit 1; }; }
8088 cat >conftest.
$ac_ext <<_ACEOF
8089 #line $LINENO "configure"
8090 #include "confdefs.h"
8091 $ac_includes_default
8092 long longval () { return (long) (sizeof (fpos_t)); }
8093 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
8096 #ifdef F77_DUMMY_MAIN
8100 int F77_DUMMY_MAIN() { return 1; }
8106 FILE *f = fopen ("conftest.val", "w");
8109 if (((long) (sizeof (fpos_t))) < 0)
8111 long i = longval ();
8112 if (i != ((long) (sizeof (fpos_t))))
8114 fprintf (f, "%ld\n", i);
8118 unsigned long i = ulongval ();
8119 if (i != ((long) (sizeof (fpos_t))))
8121 fprintf (f, "%lu\n", i);
8123 exit (ferror (f) || fclose (f) != 0);
8129 rm -f conftest
$ac_exeext
8130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8131 (eval $ac_link) 2>&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_cv_sizeof_fpos_t
=`cat conftest.val`
8142 echo "$as_me: program exited with status $ac_status" >&5
8143 echo "$as_me: failed program was:" >&5
8144 cat conftest.
$ac_ext >&5
8146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
8147 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
8148 { (exit 1); exit 1; }; }
8150 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8155 ac_cv_sizeof_fpos_t
=0
8158 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
8159 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
8160 cat >>confdefs.h
<<_ACEOF
8161 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8166 echo "$as_me:$LINENO: checking for long long support" >&5
8167 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
8169 cat >conftest.
$ac_ext <<_ACEOF
8170 #line $LINENO "configure"
8171 #include "confdefs.h"
8173 #ifdef F77_DUMMY_MAIN
8177 int F77_DUMMY_MAIN() { return 1; }
8182 long long x; x = (long long)0;
8187 rm -f conftest.
$ac_objext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189 (eval $ac_compile) 2>&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try
='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8201 cat >>confdefs.h
<<\_ACEOF
8202 #define HAVE_LONG_LONG 1
8208 echo "$as_me: failed program was:" >&5
8209 cat conftest.
$ac_ext >&5
8211 rm -f conftest.
$ac_objext conftest.
$ac_ext
8212 echo "$as_me:$LINENO: result: $have_long_long" >&5
8213 echo "${ECHO_T}$have_long_long" >&6
8214 if test "$have_long_long" = yes ; then
8215 echo "$as_me:$LINENO: checking for long long" >&5
8216 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8217 if test "${ac_cv_type_long_long+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 cat >conftest.
$ac_ext <<_ACEOF
8221 #line $LINENO "configure"
8222 #include "confdefs.h"
8223 $ac_includes_default
8224 #ifdef F77_DUMMY_MAIN
8228 int F77_DUMMY_MAIN() { return 1; }
8233 if ((long long *) 0)
8235 if (sizeof (long long))
8241 rm -f conftest.
$ac_objext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8243 (eval $ac_compile) 2>&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try
='test -s conftest.$ac_objext'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_cv_type_long_long
=yes
8255 echo "$as_me: failed program was:" >&5
8256 cat conftest.
$ac_ext >&5
8257 ac_cv_type_long_long
=no
8259 rm -f conftest.
$ac_objext conftest.
$ac_ext
8261 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8262 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8264 echo "$as_me:$LINENO: checking size of long long" >&5
8265 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8266 if test "${ac_cv_sizeof_long_long+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 if test "$ac_cv_type_long_long" = yes; then
8270 # The cast to unsigned long works around a bug in the HP C Compiler
8271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8273 # This bug is HP SR number 8606223364.
8274 if test "$cross_compiling" = yes; then
8275 # Depending upon the size, compute the lo and hi bounds.
8276 cat >conftest.
$ac_ext <<_ACEOF
8277 #line $LINENO "configure"
8278 #include "confdefs.h"
8279 $ac_includes_default
8280 #ifdef F77_DUMMY_MAIN
8284 int F77_DUMMY_MAIN() { return 1; }
8289 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8296 rm -f conftest.
$ac_objext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try
='test -s conftest.$ac_objext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8310 cat >conftest.
$ac_ext <<_ACEOF
8311 #line $LINENO "configure"
8312 #include "confdefs.h"
8313 $ac_includes_default
8314 #ifdef F77_DUMMY_MAIN
8318 int F77_DUMMY_MAIN() { return 1; }
8323 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8330 rm -f conftest.
$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332 (eval $ac_compile) 2>&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try
='test -s conftest.$ac_objext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_hi
=$ac_mid; break
8344 echo "$as_me: failed program was:" >&5
8345 cat conftest.
$ac_ext >&5
8346 ac_lo
=`expr $ac_mid + 1`
8347 if test $ac_lo -le $ac_mid; then
8351 ac_mid
=`expr 2 '*' $ac_mid + 1`
8353 rm -f conftest.
$ac_objext conftest.
$ac_ext
8356 echo "$as_me: failed program was:" >&5
8357 cat conftest.
$ac_ext >&5
8358 cat >conftest.
$ac_ext <<_ACEOF
8359 #line $LINENO "configure"
8360 #include "confdefs.h"
8361 $ac_includes_default
8362 #ifdef F77_DUMMY_MAIN
8366 int F77_DUMMY_MAIN() { return 1; }
8371 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8378 rm -f conftest.
$ac_objext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8380 (eval $ac_compile) 2>&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try
='test -s conftest.$ac_objext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8392 cat >conftest.
$ac_ext <<_ACEOF
8393 #line $LINENO "configure"
8394 #include "confdefs.h"
8395 $ac_includes_default
8396 #ifdef F77_DUMMY_MAIN
8400 int F77_DUMMY_MAIN() { return 1; }
8405 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8412 rm -f conftest.
$ac_objext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8414 (eval $ac_compile) 2>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try
='test -s conftest.$ac_objext'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; }; then
8424 ac_lo
=$ac_mid; break
8426 echo "$as_me: failed program was:" >&5
8427 cat conftest.
$ac_ext >&5
8428 ac_hi
=`expr '(' $ac_mid ')' - 1`
8429 if test $ac_mid -le $ac_hi; then
8433 ac_mid
=`expr 2 '*' $ac_mid`
8435 rm -f conftest.
$ac_objext conftest.
$ac_ext
8438 echo "$as_me: failed program was:" >&5
8439 cat conftest.
$ac_ext >&5
8442 rm -f conftest.
$ac_objext conftest.
$ac_ext
8444 rm -f conftest.
$ac_objext conftest.
$ac_ext
8445 # Binary search between lo and hi bounds.
8446 while test "x$ac_lo" != "x$ac_hi"; do
8447 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8448 cat >conftest.
$ac_ext <<_ACEOF
8449 #line $LINENO "configure"
8450 #include "confdefs.h"
8451 $ac_includes_default
8452 #ifdef F77_DUMMY_MAIN
8456 int F77_DUMMY_MAIN() { return 1; }
8461 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8468 rm -f conftest.
$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } &&
8474 { ac_try
='test -s conftest.$ac_objext'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8482 echo "$as_me: failed program was:" >&5
8483 cat conftest.
$ac_ext >&5
8484 ac_lo
=`expr '(' $ac_mid ')' + 1`
8486 rm -f conftest.
$ac_objext conftest.
$ac_ext
8489 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
8490 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8491 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8492 { (exit 1); exit 1; }; } ;;
8495 if test "$cross_compiling" = yes; then
8496 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8497 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8498 { (exit 1); exit 1; }; }
8500 cat >conftest.
$ac_ext <<_ACEOF
8501 #line $LINENO "configure"
8502 #include "confdefs.h"
8503 $ac_includes_default
8504 long longval () { return (long) (sizeof (long long)); }
8505 unsigned long ulongval () { return (long) (sizeof (long long)); }
8508 #ifdef F77_DUMMY_MAIN
8512 int F77_DUMMY_MAIN() { return 1; }
8518 FILE *f = fopen ("conftest.val", "w");
8521 if (((long) (sizeof (long long))) < 0)
8523 long i = longval ();
8524 if (i != ((long) (sizeof (long long))))
8526 fprintf (f, "%ld\n", i);
8530 unsigned long i = ulongval ();
8531 if (i != ((long) (sizeof (long long))))
8533 fprintf (f, "%lu\n", i);
8535 exit (ferror (f) || fclose (f) != 0);
8541 rm -f conftest
$ac_exeext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543 (eval $ac_link) 2>&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 ac_cv_sizeof_long_long
=`cat conftest.val`
8554 echo "$as_me: program exited with status $ac_status" >&5
8555 echo "$as_me: failed program was:" >&5
8556 cat conftest.
$ac_ext >&5
8558 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8559 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8560 { (exit 1); exit 1; }; }
8562 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8567 ac_cv_sizeof_long_long
=0
8570 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8571 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8572 cat >>confdefs.h
<<_ACEOF
8573 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8579 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
8580 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
8582 cat >conftest.
$ac_ext <<_ACEOF
8583 #line $LINENO "configure"
8584 #include "confdefs.h"
8586 #ifdef F77_DUMMY_MAIN
8590 int F77_DUMMY_MAIN() { return 1; }
8595 uintptr_t x; x = (uintptr_t)0;
8600 rm -f conftest.
$ac_objext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8602 (eval $ac_compile) 2>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try
='test -s conftest.$ac_objext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8614 cat >>confdefs.h
<<\_ACEOF
8615 #define HAVE_UINTPTR_T 1
8621 echo "$as_me: failed program was:" >&5
8622 cat conftest.
$ac_ext >&5
8624 rm -f conftest.
$ac_objext conftest.
$ac_ext
8625 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
8626 echo "${ECHO_T}$have_uintptr_t" >&6
8627 if test "$have_uintptr_t" = yes ; then
8628 echo "$as_me:$LINENO: checking for uintptr_t" >&5
8629 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8630 if test "${ac_cv_type_uintptr_t+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 cat >conftest.
$ac_ext <<_ACEOF
8634 #line $LINENO "configure"
8635 #include "confdefs.h"
8636 $ac_includes_default
8637 #ifdef F77_DUMMY_MAIN
8641 int F77_DUMMY_MAIN() { return 1; }
8646 if ((uintptr_t *) 0)
8648 if (sizeof (uintptr_t))
8654 rm -f conftest.
$ac_objext
8655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8656 (eval $ac_compile) 2>&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try
='test -s conftest.$ac_objext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_type_uintptr_t
=yes
8668 echo "$as_me: failed program was:" >&5
8669 cat conftest.
$ac_ext >&5
8670 ac_cv_type_uintptr_t
=no
8672 rm -f conftest.
$ac_objext conftest.
$ac_ext
8674 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8675 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8677 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
8678 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
8679 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 if test "$ac_cv_type_uintptr_t" = yes; then
8683 # The cast to unsigned long works around a bug in the HP C Compiler
8684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8686 # This bug is HP SR number 8606223364.
8687 if test "$cross_compiling" = yes; then
8688 # Depending upon the size, compute the lo and hi bounds.
8689 cat >conftest.
$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8691 #include "confdefs.h"
8692 $ac_includes_default
8693 #ifdef F77_DUMMY_MAIN
8697 int F77_DUMMY_MAIN() { return 1; }
8702 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
8709 rm -f conftest.
$ac_objext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711 (eval $ac_compile) 2>&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try
='test -s conftest.$ac_objext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8723 cat >conftest.
$ac_ext <<_ACEOF
8724 #line $LINENO "configure"
8725 #include "confdefs.h"
8726 $ac_includes_default
8727 #ifdef F77_DUMMY_MAIN
8731 int F77_DUMMY_MAIN() { return 1; }
8736 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8743 rm -f conftest.
$ac_objext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8745 (eval $ac_compile) 2>&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try
='test -s conftest.$ac_objext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 ac_hi
=$ac_mid; break
8757 echo "$as_me: failed program was:" >&5
8758 cat conftest.
$ac_ext >&5
8759 ac_lo
=`expr $ac_mid + 1`
8760 if test $ac_lo -le $ac_mid; then
8764 ac_mid
=`expr 2 '*' $ac_mid + 1`
8766 rm -f conftest.
$ac_objext conftest.
$ac_ext
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.
$ac_ext >&5
8771 cat >conftest.
$ac_ext <<_ACEOF
8772 #line $LINENO "configure"
8773 #include "confdefs.h"
8774 $ac_includes_default
8775 #ifdef F77_DUMMY_MAIN
8779 int F77_DUMMY_MAIN() { return 1; }
8784 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
8791 rm -f conftest.
$ac_objext
8792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8793 (eval $ac_compile) 2>&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try
='test -s conftest.$ac_objext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8805 cat >conftest.
$ac_ext <<_ACEOF
8806 #line $LINENO "configure"
8807 #include "confdefs.h"
8808 $ac_includes_default
8809 #ifdef F77_DUMMY_MAIN
8813 int F77_DUMMY_MAIN() { return 1; }
8818 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
8825 rm -f conftest.
$ac_objext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8827 (eval $ac_compile) 2>&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try
='test -s conftest.$ac_objext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_lo
=$ac_mid; break
8839 echo "$as_me: failed program was:" >&5
8840 cat conftest.
$ac_ext >&5
8841 ac_hi
=`expr '(' $ac_mid ')' - 1`
8842 if test $ac_mid -le $ac_hi; then
8846 ac_mid
=`expr 2 '*' $ac_mid`
8848 rm -f conftest.
$ac_objext conftest.
$ac_ext
8851 echo "$as_me: failed program was:" >&5
8852 cat conftest.
$ac_ext >&5
8855 rm -f conftest.
$ac_objext conftest.
$ac_ext
8857 rm -f conftest.
$ac_objext conftest.
$ac_ext
8858 # Binary search between lo and hi bounds.
8859 while test "x$ac_lo" != "x$ac_hi"; do
8860 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8861 cat >conftest.
$ac_ext <<_ACEOF
8862 #line $LINENO "configure"
8863 #include "confdefs.h"
8864 $ac_includes_default
8865 #ifdef F77_DUMMY_MAIN
8869 int F77_DUMMY_MAIN() { return 1; }
8874 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8881 rm -f conftest.
$ac_objext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8883 (eval $ac_compile) 2>&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } &&
8887 { ac_try
='test -s conftest.$ac_objext'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8895 echo "$as_me: failed program was:" >&5
8896 cat conftest.
$ac_ext >&5
8897 ac_lo
=`expr '(' $ac_mid ')' + 1`
8899 rm -f conftest.
$ac_objext conftest.
$ac_ext
8902 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
8903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
8904 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
8905 { (exit 1); exit 1; }; } ;;
8908 if test "$cross_compiling" = yes; then
8909 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8910 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8911 { (exit 1); exit 1; }; }
8913 cat >conftest.
$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8915 #include "confdefs.h"
8916 $ac_includes_default
8917 long longval () { return (long) (sizeof (uintptr_t)); }
8918 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
8921 #ifdef F77_DUMMY_MAIN
8925 int F77_DUMMY_MAIN() { return 1; }
8931 FILE *f = fopen ("conftest.val", "w");
8934 if (((long) (sizeof (uintptr_t))) < 0)
8936 long i = longval ();
8937 if (i != ((long) (sizeof (uintptr_t))))
8939 fprintf (f, "%ld\n", i);
8943 unsigned long i = ulongval ();
8944 if (i != ((long) (sizeof (uintptr_t))))
8946 fprintf (f, "%lu\n", i);
8948 exit (ferror (f) || fclose (f) != 0);
8954 rm -f conftest
$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
8967 echo "$as_me: program exited with status $ac_status" >&5
8968 echo "$as_me: failed program was:" >&5
8969 cat conftest.
$ac_ext >&5
8971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
8972 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
8973 { (exit 1); exit 1; }; }
8975 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8980 ac_cv_sizeof_uintptr_t
=0
8983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
8984 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
8985 cat >>confdefs.h
<<_ACEOF
8986 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8992 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
8993 echo "$as_me:$LINENO: checking size of off_t" >&5
8994 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
8995 if test "${ac_cv_sizeof_off_t+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 if test "$cross_compiling" = yes; then
8999 ac_cv_sizeof_off_t
=4
9001 cat >conftest.
$ac_ext <<_ACEOF
9002 #line $LINENO "configure"
9003 #include "confdefs.h"
9005 #include <sys/types.h>
9008 FILE *f=fopen("conftestval", "w");
9010 fprintf(f, "%d\n", sizeof(off_t));
9014 rm -f conftest
$ac_exeext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9016 (eval $ac_link) 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_cv_sizeof_off_t
=`cat conftestval`
9027 echo "$as_me: program exited with status $ac_status" >&5
9028 echo "$as_me: failed program was:" >&5
9029 cat conftest.
$ac_ext >&5
9031 ac_cv_sizeof_off_t
=0
9033 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9038 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9039 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
9041 cat >>confdefs.h
<<_ACEOF
9042 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9046 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
9047 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
9048 if test "$have_long_long" = yes -a \
9049 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
9050 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
9052 cat >>confdefs.h
<<\_ACEOF
9053 #define HAVE_LARGEFILE_SUPPORT 1
9056 echo "$as_me:$LINENO: result: yes" >&5
9057 echo "${ECHO_T}yes" >&6
9059 echo "$as_me:$LINENO: result: no" >&5
9060 echo "${ECHO_T}no" >&6
9063 # AC_CHECK_SIZEOF() doesn't include <time.h>.
9064 echo "$as_me:$LINENO: checking size of time_t" >&5
9065 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
9066 if test "${ac_cv_sizeof_time_t+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 if test "$cross_compiling" = yes; then
9070 ac_cv_sizeof_time_t
=4
9072 cat >conftest.
$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9074 #include "confdefs.h"
9079 FILE *f=fopen("conftestval", "w");
9081 fprintf(f, "%d\n", sizeof(time_t));
9085 rm -f conftest
$ac_exeext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087 (eval $ac_link) 2>&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 ac_cv_sizeof_time_t
=`cat conftestval`
9098 echo "$as_me: program exited with status $ac_status" >&5
9099 echo "$as_me: failed program was:" >&5
9100 cat conftest.
$ac_ext >&5
9102 ac_cv_sizeof_time_t
=0
9104 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9109 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
9110 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
9112 cat >>confdefs.h
<<_ACEOF
9113 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9118 # if have pthread_t then define SIZEOF_PTHREAD_T
9120 if test "$ac_cv_kpthread" = "yes"
9121 then CC
="$CC -Kpthread"
9123 echo "$as_me:$LINENO: checking for pthread_t" >&5
9124 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
9126 cat >conftest.
$ac_ext <<_ACEOF
9127 #line $LINENO "configure"
9128 #include "confdefs.h"
9129 #include <pthread.h>
9130 #ifdef F77_DUMMY_MAIN
9134 int F77_DUMMY_MAIN() { return 1; }
9139 pthread_t x; x = *(pthread_t*)0;
9144 rm -f conftest.
$ac_objext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9146 (eval $ac_compile) 2>&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } &&
9150 { ac_try
='test -s conftest.$ac_objext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9158 echo "$as_me: failed program was:" >&5
9159 cat conftest.
$ac_ext >&5
9161 rm -f conftest.
$ac_objext conftest.
$ac_ext
9162 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
9163 echo "${ECHO_T}$have_pthread_t" >&6
9164 if test "$have_pthread_t" = yes ; then
9165 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
9166 echo "$as_me:$LINENO: checking size of pthread_t" >&5
9167 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
9168 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 if test "$cross_compiling" = yes; then
9172 ac_cv_sizeof_pthread_t
=4
9174 cat >conftest.
$ac_ext <<_ACEOF
9175 #line $LINENO "configure"
9176 #include "confdefs.h"
9178 #include <pthread.h>
9181 FILE *f=fopen("conftestval", "w");
9183 fprintf(f, "%d\n", sizeof(pthread_t));
9187 rm -f conftest
$ac_exeext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189 (eval $ac_link) 2>&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_cv_sizeof_pthread_t
=`cat conftestval`
9200 echo "$as_me: program exited with status $ac_status" >&5
9201 echo "$as_me: failed program was:" >&5
9202 cat conftest.
$ac_ext >&5
9204 ac_cv_sizeof_pthread_t
=0
9206 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9211 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
9212 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
9214 cat >>confdefs.h
<<_ACEOF
9215 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
9221 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
9222 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
9223 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
9224 if test "${enable_toolbox_glue+set}" = set; then
9225 enableval
="$enable_toolbox_glue"
9229 if test -z "$enable_toolbox_glue"
9231 case $ac_sys_system/$ac_sys_release in
9233 enable_toolbox_glue
="yes";;
9235 enable_toolbox_glue
="no";;
9238 case "$enable_toolbox_glue" in
9240 extra_frameworks
="-framework CoreServices -framework Foundation"
9241 extra_machdep_objs
="Python/mactoolboxglue.o"
9242 extra_undefs
="-u __dummy -u _PyMac_Error"
9244 cat >>confdefs.h
<<\_ACEOF
9245 #define USE_TOOLBOX_OBJECT_GLUE 1
9251 extra_machdep_objs
=""
9255 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
9256 echo "${ECHO_T}$enable_toolbox_glue" >&6
9259 case $ac_sys_system/$ac_sys_release in
9261 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc"
9262 LIBTOOL_CRUFT
="$LIBTOOL_CRUFT $extra_frameworks"
9263 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
9264 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9266 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc"
9267 LIBTOOL_CRUFT
="$LIBTOOL_CRUFT $extra_frameworks"
9268 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
9269 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9272 echo "$as_me:$LINENO: checking for --enable-framework" >&5
9273 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
9274 if test "$enable_framework"
9276 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
9277 # -F. is needed to allow linking to the framework while
9278 # in the build location.
9279 LDFLAGS
="$LDFLAGS -Wl,-F."
9281 cat >>confdefs.h
<<\_ACEOF
9282 #define WITH_NEXT_FRAMEWORK 1
9285 echo "$as_me:$LINENO: result: yes" >&5
9286 echo "${ECHO_T}yes" >&6
9288 echo "$as_me:$LINENO: result: no" >&5
9289 echo "${ECHO_T}no" >&6
9292 echo "$as_me:$LINENO: checking for dyld" >&5
9293 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
9294 case $ac_sys_system/$ac_sys_release in
9297 cat >>confdefs.h
<<\_ACEOF
9301 echo "$as_me:$LINENO: result: always on for Darwin" >&5
9302 echo "${ECHO_T}always on for Darwin" >&6
9305 echo "$as_me:$LINENO: result: no" >&5
9306 echo "${ECHO_T}no" >&6
9310 # Set info about shared libraries.
9316 # SO is the extension of shared libraries `(including the dot!)
9317 # -- usually .so, .sl on HP-UX, .dll on Cygwin
9318 echo "$as_me:$LINENO: checking SO" >&5
9319 echo $ECHO_N "checking SO... $ECHO_C" >&6
9322 case $ac_sys_system in
9328 echo "$as_me:$LINENO: result: $SO" >&5
9329 echo "${ECHO_T}$SO" >&6
9330 # LDSHARED is the ld *command* used to create shared library
9331 # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
9332 # (Shared libraries in this instance are shared modules to be loaded into
9333 # Python, as opposed to building Python itself as a shared library.)
9334 echo "$as_me:$LINENO: checking LDSHARED" >&5
9335 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
9336 if test -z "$LDSHARED"
9338 case $ac_sys_system/$ac_sys_release in
9340 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9341 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
9344 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
9345 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
9347 IRIX
/5*) LDSHARED
="ld -shared";;
9348 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
9349 SunOS
/4*) LDSHARED
="ld";;
9351 if test "$GCC" = "yes"
9352 then LDSHARED
='$(CC) -shared'
9353 else LDSHARED
='$(CC) -G';
9355 hp
*|HP
*) LDSHARED
="ld -b";;
9356 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
9357 DYNIX
/ptx*) LDSHARED
="ld -G";;
9359 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
9360 if test "$enable_framework" ; then
9361 # Link against the framework. All externals should be defined.
9362 LDSHARED
="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
9364 # No framework. Ignore undefined symbols, assuming they come from Python
9365 LDSHARED
="$LDSHARED -undefined suppress"
9368 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
9369 if test "$enable_framework" ; then
9370 # Link against the framework. All externals should be defined.
9371 LDSHARED
="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
9373 # No framework, use the Python app as bundle-loader
9374 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9375 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9377 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
9378 dgux
*) LDSHARED
="ld -G";;
9379 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
9381 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9383 LDSHARED
="cc -shared ${LDFLAGS}"
9385 LDSHARED
="ld -Bshareable ${LDFLAGS}"
9387 NetBSD
*) LDSHARED
="cc -shared ${LDFLAGS}";;
9388 OpenUNIX
*|UnixWare
*)
9389 if test "$GCC" = "yes"
9390 then LDSHARED
='$(CC) -shared'
9391 else LDSHARED
='$(CC) -G'
9393 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
9394 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
9395 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
9396 atheos
*) LDSHARED
="gcc -shared";;
9400 echo "$as_me:$LINENO: result: $LDSHARED" >&5
9401 echo "${ECHO_T}$LDSHARED" >&6
9402 BLDSHARED
=${BLDSHARED-$LDSHARED}
9403 # CCSHARED are the C *flags* used to create objects to go into a shared
9404 # library (module) -- this is only needed for a few systems
9405 echo "$as_me:$LINENO: checking CCSHARED" >&5
9406 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
9407 if test -z "$CCSHARED"
9409 case $ac_sys_system/$ac_sys_release in
9410 SunOS
*) if test "$GCC" = yes;
9411 then CCSHARED
="-fPIC";
9413 hp
*|HP
*) if test "$GCC" = yes;
9414 then CCSHARED
="-fPIC";
9417 Linux
*|GNU
*) CCSHARED
="-fPIC";;
9418 BSD
/OS
*/4*) CCSHARED
="-fpic";;
9419 FreeBSD
*|NetBSD
*|OpenBSD
*) CCSHARED
="-fPIC";;
9420 OpenUNIX
*|UnixWare
*)
9421 if test "$GCC" = "yes"
9422 then CCSHARED
="-fPIC"
9423 else CCSHARED
="-KPIC"
9426 if test "$GCC" = "yes"
9427 then CCSHARED
="-fPIC"
9428 else CCSHARED
="-Kpic -belf"
9430 Monterey
*) CCSHARED
="-G";;
9431 IRIX
*/6*) case $CC in
9432 *gcc
*) CCSHARED
="-shared";;
9435 atheos
*) CCSHARED
="-fPIC";;
9438 echo "$as_me:$LINENO: result: $CCSHARED" >&5
9439 echo "${ECHO_T}$CCSHARED" >&6
9440 # LINKFORSHARED are the flags passed to the $(CC) command that links
9441 # the python executable -- this is only needed for a few systems
9442 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
9443 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
9444 if test -z "$LINKFORSHARED"
9446 case $ac_sys_system/$ac_sys_release in
9447 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
9449 LINKFORSHARED
="-Wl,-E -Wl,+s";;
9450 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9451 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
9452 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
9453 # -u libsys_s pulls in all symbols in libsys
9455 # -u __dummy makes the linker aware of the objc runtime
9456 # in System.framework; otherwise, __objcInit (referenced in
9457 # crt1.o) gets erroneously defined as common, which breaks dynamic
9458 # loading of any modules which reference it in System.framework.
9459 # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is
9460 # not used by the core itself but which needs to be in the core so
9461 # that dynamically loaded extension modules have access to it.
9462 # -prebind is no longer used, because it actually seems to give a
9463 # slowdown in stead of a speedup, maybe due to the large number of
9464 # dynamic loads Python does.
9465 LINKFORSHARED
="$extra_undefs -framework System"
9466 if test "$enable_framework"
9468 LINKFORSHARED
="$LINKFORSHARED -framework Python"
9470 LINKFORSHARED
="$LINKFORSHARED $extra_frameworks";;
9471 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
9472 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
9473 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
9474 FreeBSD
*|NetBSD
*|OpenBSD
*)
9475 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9477 LINKFORSHARED
="-Wl,--export-dynamic"
9479 SunOS
/5*) case $CC in
9481 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
9483 LINKFORSHARED
="-Xlinker --export-dynamic"
9488 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
9489 echo "${ECHO_T}$LINKFORSHARED" >&6
9492 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
9493 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
9494 if test ! "$LIBRARY" = "$LDLIBRARY"
9496 case $ac_sys_system in
9498 # Cygwin needs CCSHARED when building extension DLLs
9499 # but not when building the interpreter DLL.
9500 CFLAGSFORSHARED
='';;
9502 CFLAGSFORSHARED
='$(CCSHARED)'
9505 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
9506 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
9508 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
9509 # library (with --enable-shared).
9510 # For platforms on which shared libraries are not allowed to have unresolved
9511 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
9512 # if it is not required, since it creates a dependency of the shared library
9513 # to LIBS. This, in turn, means that applications linking the shared libpython
9514 # don't need to link LIBS explicitly. The default should be only changed
9515 # on systems where this approach causes problems.
9517 echo "$as_me:$LINENO: checking SHLIBS" >&5
9518 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
9519 case "$ac_sys_system" in
9523 echo "$as_me:$LINENO: result: $SHLIBS" >&5
9524 echo "${ECHO_T}$SHLIBS" >&6
9527 # checks for libraries
9529 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9530 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9531 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 ac_check_lib_save_LIBS
=$LIBS
9536 cat >conftest.
$ac_ext <<_ACEOF
9537 #line $LINENO "configure"
9538 #include "confdefs.h"
9540 /* Override any gcc2 internal prototype to avoid an error. */
9544 /* We use char because int might match the return type of a gcc2
9545 builtin and then its argument prototype would still apply. */
9547 #ifdef F77_DUMMY_MAIN
9551 int F77_DUMMY_MAIN() { return 1; }
9561 rm -f conftest.
$ac_objext conftest
$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } &&
9567 { ac_try
='test -s conftest$ac_exeext'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; }; then
9573 ac_cv_lib_dl_dlopen
=yes
9575 echo "$as_me: failed program was:" >&5
9576 cat conftest.
$ac_ext >&5
9577 ac_cv_lib_dl_dlopen
=no
9579 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9580 LIBS
=$ac_check_lib_save_LIBS
9582 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9583 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9584 if test $ac_cv_lib_dl_dlopen = yes; then
9585 cat >>confdefs.h
<<_ACEOF
9586 #define HAVE_LIBDL 1
9592 # Dynamic linking for SunOS/Solaris and SYSV
9594 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9595 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9596 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 ac_check_lib_save_LIBS
=$LIBS
9601 cat >conftest.
$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 #include "confdefs.h"
9605 /* Override any gcc2 internal prototype to avoid an error. */
9609 /* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9612 #ifdef F77_DUMMY_MAIN
9616 int F77_DUMMY_MAIN() { return 1; }
9626 rm -f conftest.
$ac_objext conftest
$ac_exeext
9627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628 (eval $ac_link) 2>&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try
='test -s conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_lib_dld_shl_load
=yes
9640 echo "$as_me: failed program was:" >&5
9641 cat conftest.
$ac_ext >&5
9642 ac_cv_lib_dld_shl_load
=no
9644 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9645 LIBS
=$ac_check_lib_save_LIBS
9647 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9648 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9649 if test $ac_cv_lib_dld_shl_load = yes; then
9650 cat >>confdefs.h
<<_ACEOF
9651 #define HAVE_LIBDLD 1
9657 # Dynamic linking for HP-UX
9658 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
9659 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
9660 if test "${ac_cv_search_sem_init+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 ac_func_search_save_LIBS
=$LIBS
9664 ac_cv_search_sem_init
=no
9665 cat >conftest.
$ac_ext <<_ACEOF
9666 #line $LINENO "configure"
9667 #include "confdefs.h"
9669 /* Override any gcc2 internal prototype to avoid an error. */
9673 /* We use char because int might match the return type of a gcc2
9674 builtin and then its argument prototype would still apply. */
9676 #ifdef F77_DUMMY_MAIN
9680 int F77_DUMMY_MAIN() { return 1; }
9690 rm -f conftest.
$ac_objext conftest
$ac_exeext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692 (eval $ac_link) 2>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try
='test -s conftest$ac_exeext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 ac_cv_search_sem_init
="none required"
9704 echo "$as_me: failed program was:" >&5
9705 cat conftest.
$ac_ext >&5
9707 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9708 if test "$ac_cv_search_sem_init" = no
; then
9709 for ac_lib
in rt posix4
; do
9710 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9711 cat >conftest.
$ac_ext <<_ACEOF
9712 #line $LINENO "configure"
9713 #include "confdefs.h"
9715 /* Override any gcc2 internal prototype to avoid an error. */
9719 /* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9722 #ifdef F77_DUMMY_MAIN
9726 int F77_DUMMY_MAIN() { return 1; }
9736 rm -f conftest.
$ac_objext conftest
$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738 (eval $ac_link) 2>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try
='test -s conftest$ac_exeext'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748 ac_cv_search_sem_init
="-l$ac_lib"
9751 echo "$as_me: failed program was:" >&5
9752 cat conftest.
$ac_ext >&5
9754 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9757 LIBS
=$ac_func_search_save_LIBS
9759 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
9760 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
9761 if test "$ac_cv_search_sem_init" != no
; then
9762 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
9765 # 'Real Time' functions on Solaris,
9766 # posix4 on Solaris 2.6
9768 # checks for system dependent C++ extensions support
9769 case "$ac_sys_system" in
9770 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
9771 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
9772 cat >conftest.
$ac_ext <<_ACEOF
9773 #line $LINENO "configure"
9774 #include "confdefs.h"
9775 #include "/usr/lpp/xlC/include/load.h"
9776 #ifdef F77_DUMMY_MAIN
9780 int F77_DUMMY_MAIN() { return 1; }
9785 loadAndInit("", 0, "")
9790 rm -f conftest.
$ac_objext conftest
$ac_exeext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792 (eval $ac_link) 2>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try
='test -s conftest$ac_exeext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9803 cat >>confdefs.h
<<\_ACEOF
9804 #define AIX_GENUINE_CPLUSPLUS 1
9807 echo "$as_me:$LINENO: result: yes" >&5
9808 echo "${ECHO_T}yes" >&6
9810 echo "$as_me: failed program was:" >&5
9811 cat conftest.
$ac_ext >&5
9812 echo "$as_me:$LINENO: result: no" >&5
9813 echo "${ECHO_T}no" >&6
9815 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext;;
9819 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9820 # However on SGI IRIX 4, these exist but are broken.
9821 # BeOS' sockets are stashed in libnet.
9822 case "$ac_sys_system" in
9825 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
9826 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
9827 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 ac_check_lib_save_LIBS
=$LIBS
9832 cat >conftest.
$ac_ext <<_ACEOF
9833 #line $LINENO "configure"
9834 #include "confdefs.h"
9836 /* Override any gcc2 internal prototype to avoid an error. */
9840 /* We use char because int might match the return type of a gcc2
9841 builtin and then its argument prototype would still apply. */
9843 #ifdef F77_DUMMY_MAIN
9847 int F77_DUMMY_MAIN() { return 1; }
9857 rm -f conftest.
$ac_objext conftest
$ac_exeext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859 (eval $ac_link) 2>&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try
='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_cv_lib_nsl_t_open
=yes
9871 echo "$as_me: failed program was:" >&5
9872 cat conftest.
$ac_ext >&5
9873 ac_cv_lib_nsl_t_open
=no
9875 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9876 LIBS
=$ac_check_lib_save_LIBS
9878 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
9879 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
9880 if test $ac_cv_lib_nsl_t_open = yes; then
9884 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9885 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9886 if test "${ac_cv_lib_socket_socket+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 ac_check_lib_save_LIBS
=$LIBS
9890 LIBS
="-lsocket $LIBS $LIBS"
9891 cat >conftest.
$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9893 #include "confdefs.h"
9895 /* Override any gcc2 internal prototype to avoid an error. */
9899 /* We use char because int might match the return type of a gcc2
9900 builtin and then its argument prototype would still apply. */
9902 #ifdef F77_DUMMY_MAIN
9906 int F77_DUMMY_MAIN() { return 1; }
9916 rm -f conftest.
$ac_objext conftest
$ac_exeext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9918 (eval $ac_link) 2>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try
='test -s conftest$ac_exeext'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_cv_lib_socket_socket
=yes
9930 echo "$as_me: failed program was:" >&5
9931 cat conftest.
$ac_ext >&5
9932 ac_cv_lib_socket_socket
=no
9934 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9935 LIBS
=$ac_check_lib_save_LIBS
9937 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9938 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9939 if test $ac_cv_lib_socket_socket = yes; then
9940 LIBS
="-lsocket $LIBS"
9945 case "$ac_sys_system" in
9947 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
9948 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
9949 if test "${ac_cv_lib_net_socket+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 ac_check_lib_save_LIBS
=$LIBS
9953 LIBS
="-lnet $LIBS $LIBS"
9954 cat >conftest.
$ac_ext <<_ACEOF
9955 #line $LINENO "configure"
9956 #include "confdefs.h"
9958 /* Override any gcc2 internal prototype to avoid an error. */
9962 /* We use char because int might match the return type of a gcc2
9963 builtin and then its argument prototype would still apply. */
9965 #ifdef F77_DUMMY_MAIN
9969 int F77_DUMMY_MAIN() { return 1; }
9979 rm -f conftest.
$ac_objext conftest
$ac_exeext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9981 (eval $ac_link) 2>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try
='test -s conftest$ac_exeext'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; }; then
9991 ac_cv_lib_net_socket
=yes
9993 echo "$as_me: failed program was:" >&5
9994 cat conftest.
$ac_ext >&5
9995 ac_cv_lib_net_socket
=no
9997 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9998 LIBS
=$ac_check_lib_save_LIBS
10000 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
10001 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
10002 if test $ac_cv_lib_net_socket = yes; then
10009 echo "$as_me:$LINENO: checking for --with-libs" >&5
10010 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
10012 # Check whether --with-libs or --without-libs was given.
10013 if test "${with_libs+set}" = set; then
10014 withval
="$with_libs"
10016 echo "$as_me:$LINENO: result: $withval" >&5
10017 echo "${ECHO_T}$withval" >&6
10018 LIBS
="$withval $LIBS"
10021 echo "$as_me:$LINENO: result: no" >&5
10022 echo "${ECHO_T}no" >&6
10025 # Determine if signalmodule should be used.
10028 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
10029 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
10031 # Check whether --with-signal-module or --without-signal-module was given.
10032 if test "${with_signal_module+set}" = set; then
10033 withval
="$with_signal_module"
10037 if test -z "$with_signal_module"
10038 then with_signal_module
="yes"
10040 echo "$as_me:$LINENO: result: $with_signal_module" >&5
10041 echo "${ECHO_T}$with_signal_module" >&6
10043 if test "${with_signal_module}" = "yes"; then
10044 USE_SIGNAL_MODULE
=""
10047 USE_SIGNAL_MODULE
="#"
10048 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
10051 # This is used to generate Setup.config
10053 USE_THREAD_MODULE
=""
10055 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
10056 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
10059 # Check whether --with-dec-threads or --without-dec-threads was given.
10060 if test "${with_dec_threads+set}" = set; then
10061 withval
="$with_dec_threads"
10063 echo "$as_me:$LINENO: result: $withval" >&5
10064 echo "${ECHO_T}$withval" >&6
10066 if test "${with_thread+set}" != set; then
10067 with_thread
="$withval";
10070 echo "$as_me:$LINENO: result: no" >&5
10071 echo "${ECHO_T}no" >&6
10074 # Templates for things AC_DEFINEd more than once.
10075 # For a single AC_DEFINE, no template is needed.
10083 echo "$as_me:$LINENO: checking for --with-threads" >&5
10084 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
10086 # Check whether --with-threads or --without-threads was given.
10087 if test "${with_threads+set}" = set; then
10088 withval
="$with_threads"
10092 # --with-thread is deprecated, but check for it anyway
10094 # Check whether --with-thread or --without-thread was given.
10095 if test "${with_thread+set}" = set; then
10096 withval
="$with_thread"
10097 with_threads
=$with_thread
10100 if test -z "$with_threads"
10101 then with_threads
="yes"
10103 echo "$as_me:$LINENO: result: $with_threads" >&5
10104 echo "${ECHO_T}$with_threads" >&6
10107 if test "$with_threads" = "no"
10109 USE_THREAD_MODULE
="#"
10110 elif test "$ac_cv_pthread_is_default" = yes
10112 cat >>confdefs.h
<<\_ACEOF
10113 #define WITH_THREAD 1
10116 # Defining _REENTRANT on system with POSIX threads should not hurt.
10117 cat >>confdefs.h
<<\_ACEOF
10118 #define _REENTRANT 1
10122 THREADOBJ
="Python/thread.o"
10123 elif test "$ac_cv_kpthread" = "yes"
10126 cat >>confdefs.h
<<\_ACEOF
10127 #define WITH_THREAD 1
10131 THREADOBJ
="Python/thread.o"
10133 if test ! -z "$with_threads" -a -d "$with_threads"
10134 then LDFLAGS
="$LDFLAGS -L$with_threads"
10136 if test ! -z "$withval" -a -d "$withval"
10137 then LDFLAGS
="$LDFLAGS -L$withval"
10140 # According to the POSIX spec, a pthreads implementation must
10141 # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?)
10142 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
10143 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
10144 cat >conftest.
$ac_ext <<_ACEOF
10145 #line $LINENO "configure"
10146 #include "confdefs.h"
10148 #include <unistd.h>
10149 #ifdef _POSIX_THREADS
10154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10155 egrep "yes" >/dev
/null
2>&1; then
10156 unistd_defines_pthreads
=yes
10158 unistd_defines_pthreads
=no
10162 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
10163 echo "${ECHO_T}$unistd_defines_pthreads" >&6
10165 cat >>confdefs.h
<<\_ACEOF
10166 #define _REENTRANT 1
10169 if test "${ac_cv_header_cthreads_h+set}" = set; then
10170 echo "$as_me:$LINENO: checking for cthreads.h" >&5
10171 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
10172 if test "${ac_cv_header_cthreads_h+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
10176 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
10178 # Is the header compilable?
10179 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
10180 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
10181 cat >conftest.
$ac_ext <<_ACEOF
10182 #line $LINENO "configure"
10183 #include "confdefs.h"
10184 $ac_includes_default
10185 #include <cthreads.h>
10187 rm -f conftest.
$ac_objext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189 (eval $ac_compile) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try
='test -s conftest.$ac_objext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_header_compiler
=yes
10201 echo "$as_me: failed program was:" >&5
10202 cat conftest.
$ac_ext >&5
10203 ac_header_compiler
=no
10205 rm -f conftest.
$ac_objext conftest.
$ac_ext
10206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10207 echo "${ECHO_T}$ac_header_compiler" >&6
10209 # Is the header present?
10210 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
10211 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
10212 cat >conftest.
$ac_ext <<_ACEOF
10213 #line $LINENO "configure"
10214 #include "confdefs.h"
10215 #include <cthreads.h>
10217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10218 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10220 egrep -v '^ *\+' conftest.er1
>conftest.err
10222 cat conftest.err
>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } >/dev
/null
; then
10225 if test -s conftest.err
; then
10226 ac_cpp_err
=$ac_c_preproc_warn_flag
10233 if test -z "$ac_cpp_err"; then
10234 ac_header_preproc
=yes
10236 echo "$as_me: failed program was:" >&5
10237 cat conftest.
$ac_ext >&5
10238 ac_header_preproc
=no
10240 rm -f conftest.err conftest.
$ac_ext
10241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10242 echo "${ECHO_T}$ac_header_preproc" >&6
10244 # So? What about this header?
10245 case $ac_header_compiler:$ac_header_preproc in
10247 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10248 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
10250 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
10252 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
10253 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
10255 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
10257 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
10259 echo "$as_me:$LINENO: checking for cthreads.h" >&5
10260 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
10261 if test "${ac_cv_header_cthreads_h+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 ac_cv_header_cthreads_h
=$ac_header_preproc
10266 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
10267 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
10270 if test $ac_cv_header_cthreads_h = yes; then
10271 cat >>confdefs.h
<<\_ACEOF
10272 #define WITH_THREAD 1
10275 cat >>confdefs.h
<<\_ACEOF
10276 #define C_THREADS 1
10280 cat >>confdefs.h
<<\_ACEOF
10281 #define HURD_C_THREADS 1
10284 LIBS
="$LIBS -lthreads"
10285 THREADOBJ
="Python/thread.o"
10288 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10289 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
10290 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
10291 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
10295 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
10297 # Is the header compilable?
10298 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
10299 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
10300 cat >conftest.
$ac_ext <<_ACEOF
10301 #line $LINENO "configure"
10302 #include "confdefs.h"
10303 $ac_includes_default
10304 #include <mach/cthreads.h>
10306 rm -f conftest.
$ac_objext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10308 (eval $ac_compile) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try
='test -s conftest.$ac_objext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_header_compiler
=yes
10320 echo "$as_me: failed program was:" >&5
10321 cat conftest.
$ac_ext >&5
10322 ac_header_compiler
=no
10324 rm -f conftest.
$ac_objext conftest.
$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326 echo "${ECHO_T}$ac_header_compiler" >&6
10328 # Is the header present?
10329 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
10330 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
10331 cat >conftest.
$ac_ext <<_ACEOF
10332 #line $LINENO "configure"
10333 #include "confdefs.h"
10334 #include <mach/cthreads.h>
10336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10337 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10339 egrep -v '^ *\+' conftest.er1
>conftest.err
10341 cat conftest.err
>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } >/dev
/null
; then
10344 if test -s conftest.err
; then
10345 ac_cpp_err
=$ac_c_preproc_warn_flag
10352 if test -z "$ac_cpp_err"; then
10353 ac_header_preproc
=yes
10355 echo "$as_me: failed program was:" >&5
10356 cat conftest.
$ac_ext >&5
10357 ac_header_preproc
=no
10359 rm -f conftest.err conftest.
$ac_ext
10360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10361 echo "${ECHO_T}$ac_header_preproc" >&6
10363 # So? What about this header?
10364 case $ac_header_compiler:$ac_header_preproc in
10366 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10367 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10368 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
10369 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
10371 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
10372 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
10374 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
10376 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
10378 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
10379 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
10380 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
10385 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
10386 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
10389 if test $ac_cv_header_mach_cthreads_h = yes; then
10390 cat >>confdefs.h
<<\_ACEOF
10391 #define WITH_THREAD 1
10394 cat >>confdefs.h
<<\_ACEOF
10395 #define C_THREADS 1
10399 cat >>confdefs.h
<<\_ACEOF
10400 #define MACH_C_THREADS 1
10403 THREADOBJ
="Python/thread.o"
10406 echo "$as_me:$LINENO: checking for --with-pth" >&5
10407 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
10409 # Check whether --with-pth or --without-pth was given.
10410 if test "${with_pth+set}" = set; then
10411 withval
="$with_pth"
10412 echo "$as_me:$LINENO: result: $withval" >&5
10413 echo "${ECHO_T}$withval" >&6
10414 cat >>confdefs.h
<<\_ACEOF
10415 #define WITH_THREAD 1
10419 cat >>confdefs.h
<<\_ACEOF
10424 THREADOBJ
="Python/thread.o"
10426 echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6
10429 # Just looking for pthread_create in libpthread is not enough:
10430 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
10431 # So we really have to include pthread.h, and then link.
10433 LIBS
="$LIBS -lpthread"
10434 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
10435 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
10436 cat >conftest.
$ac_ext <<_ACEOF
10437 #line $LINENO "configure"
10438 #include "confdefs.h"
10439 #include <pthread.h>
10441 void * start_routine (void *arg) { exit (0); }
10442 #ifdef F77_DUMMY_MAIN
10443 # ifdef __cplusplus
10446 int F77_DUMMY_MAIN() { return 1; }
10452 pthread_create (NULL, NULL, start_routine, NULL)
10457 rm -f conftest.
$ac_objext conftest
$ac_exeext
10458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10459 (eval $ac_link) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try
='test -s conftest$ac_exeext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10470 echo "$as_me:$LINENO: result: yes" >&5
10471 echo "${ECHO_T}yes" >&6
10472 cat >>confdefs.h
<<\_ACEOF
10473 #define WITH_THREAD 1
10477 THREADOBJ
="Python/thread.o"
10479 echo "$as_me: failed program was:" >&5
10480 cat conftest.
$ac_ext >&5
10483 echo "$as_me:$LINENO: checking for pthread_detach" >&5
10484 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
10485 if test "${ac_cv_func_pthread_detach+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 cat >conftest.
$ac_ext <<_ACEOF
10489 #line $LINENO "configure"
10490 #include "confdefs.h"
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char pthread_detach (); below. */
10493 #include <assert.h>
10494 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10500 char pthread_detach ();
10503 #ifdef F77_DUMMY_MAIN
10504 # ifdef __cplusplus
10507 int F77_DUMMY_MAIN() { return 1; }
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
10518 f = pthread_detach;
10525 rm -f conftest.
$ac_objext conftest
$ac_exeext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527 (eval $ac_link) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try
='test -s conftest$ac_exeext'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 ac_cv_func_pthread_detach
=yes
10539 echo "$as_me: failed program was:" >&5
10540 cat conftest.
$ac_ext >&5
10541 ac_cv_func_pthread_detach
=no
10543 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10545 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
10546 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
10547 if test $ac_cv_func_pthread_detach = yes; then
10548 cat >>confdefs.h
<<\_ACEOF
10549 #define WITH_THREAD 1
10553 THREADOBJ
="Python/thread.o"
10556 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10557 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10558 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10559 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10563 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10565 # Is the header compilable?
10566 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
10567 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
10568 cat >conftest.
$ac_ext <<_ACEOF
10569 #line $LINENO "configure"
10570 #include "confdefs.h"
10571 $ac_includes_default
10572 #include <atheos/threads.h>
10574 rm -f conftest.
$ac_objext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10576 (eval $ac_compile) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try
='test -s conftest.$ac_objext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 ac_header_compiler
=yes
10588 echo "$as_me: failed program was:" >&5
10589 cat conftest.
$ac_ext >&5
10590 ac_header_compiler
=no
10592 rm -f conftest.
$ac_objext conftest.
$ac_ext
10593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10594 echo "${ECHO_T}$ac_header_compiler" >&6
10596 # Is the header present?
10597 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
10598 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
10599 cat >conftest.
$ac_ext <<_ACEOF
10600 #line $LINENO "configure"
10601 #include "confdefs.h"
10602 #include <atheos/threads.h>
10604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10605 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10607 egrep -v '^ *\+' conftest.er1
>conftest.err
10609 cat conftest.err
>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } >/dev
/null
; then
10612 if test -s conftest.err
; then
10613 ac_cpp_err
=$ac_c_preproc_warn_flag
10620 if test -z "$ac_cpp_err"; then
10621 ac_header_preproc
=yes
10623 echo "$as_me: failed program was:" >&5
10624 cat conftest.
$ac_ext >&5
10625 ac_header_preproc
=no
10627 rm -f conftest.err conftest.
$ac_ext
10628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10629 echo "${ECHO_T}$ac_header_preproc" >&6
10631 # So? What about this header?
10632 case $ac_header_compiler:$ac_header_preproc in
10634 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10635 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10636 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10637 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10639 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
10640 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
10642 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10644 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10646 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10647 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10648 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 ac_cv_header_atheos_threads_h
=$ac_header_preproc
10653 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10654 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10657 if test $ac_cv_header_atheos_threads_h = yes; then
10658 cat >>confdefs.h
<<\_ACEOF
10659 #define WITH_THREAD 1
10663 cat >>confdefs.h
<<\_ACEOF
10664 #define ATHEOS_THREADS 1
10667 THREADOBJ
="Python/thread.o"
10670 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10671 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10672 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10673 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10677 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10679 # Is the header compilable?
10680 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
10681 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
10682 cat >conftest.
$ac_ext <<_ACEOF
10683 #line $LINENO "configure"
10684 #include "confdefs.h"
10685 $ac_includes_default
10686 #include <kernel/OS.h>
10688 rm -f conftest.
$ac_objext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10690 (eval $ac_compile) 2>&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } &&
10694 { ac_try
='test -s conftest.$ac_objext'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; }; then
10700 ac_header_compiler
=yes
10702 echo "$as_me: failed program was:" >&5
10703 cat conftest.
$ac_ext >&5
10704 ac_header_compiler
=no
10706 rm -f conftest.
$ac_objext conftest.
$ac_ext
10707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10708 echo "${ECHO_T}$ac_header_compiler" >&6
10710 # Is the header present?
10711 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
10712 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
10713 cat >conftest.
$ac_ext <<_ACEOF
10714 #line $LINENO "configure"
10715 #include "confdefs.h"
10716 #include <kernel/OS.h>
10718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10719 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10721 egrep -v '^ *\+' conftest.er1
>conftest.err
10723 cat conftest.err
>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } >/dev
/null
; then
10726 if test -s conftest.err
; then
10727 ac_cpp_err
=$ac_c_preproc_warn_flag
10734 if test -z "$ac_cpp_err"; then
10735 ac_header_preproc
=yes
10737 echo "$as_me: failed program was:" >&5
10738 cat conftest.
$ac_ext >&5
10739 ac_header_preproc
=no
10741 rm -f conftest.err conftest.
$ac_ext
10742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10743 echo "${ECHO_T}$ac_header_preproc" >&6
10745 # So? What about this header?
10746 case $ac_header_compiler:$ac_header_preproc in
10748 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
10749 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10751 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10753 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
10754 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
10755 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
10756 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10758 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10760 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10761 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10762 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 ac_cv_header_kernel_OS_h
=$ac_header_preproc
10767 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10768 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10771 if test $ac_cv_header_kernel_OS_h = yes; then
10772 cat >>confdefs.h
<<\_ACEOF
10773 #define WITH_THREAD 1
10777 cat >>confdefs.h
<<\_ACEOF
10778 #define BEOS_THREADS 1
10781 THREADOBJ
="Python/thread.o"
10784 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
10785 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
10786 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 ac_check_lib_save_LIBS
=$LIBS
10790 LIBS
="-lpthreads $LIBS"
10791 cat >conftest.
$ac_ext <<_ACEOF
10792 #line $LINENO "configure"
10793 #include "confdefs.h"
10795 /* Override any gcc2 internal prototype to avoid an error. */
10799 /* We use char because int might match the return type of a gcc2
10800 builtin and then its argument prototype would still apply. */
10801 char pthread_create ();
10802 #ifdef F77_DUMMY_MAIN
10803 # ifdef __cplusplus
10806 int F77_DUMMY_MAIN() { return 1; }
10816 rm -f conftest.
$ac_objext conftest
$ac_exeext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10818 (eval $ac_link) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
10822 { ac_try
='test -s conftest$ac_exeext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 ac_cv_lib_pthreads_pthread_create
=yes
10830 echo "$as_me: failed program was:" >&5
10831 cat conftest.
$ac_ext >&5
10832 ac_cv_lib_pthreads_pthread_create
=no
10834 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10835 LIBS
=$ac_check_lib_save_LIBS
10837 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
10838 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
10839 if test $ac_cv_lib_pthreads_pthread_create = yes; then
10840 cat >>confdefs.h
<<\_ACEOF
10841 #define WITH_THREAD 1
10845 LIBS
="$LIBS -lpthreads"
10846 THREADOBJ
="Python/thread.o"
10849 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
10850 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
10851 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 ac_check_lib_save_LIBS
=$LIBS
10856 cat >conftest.
$ac_ext <<_ACEOF
10857 #line $LINENO "configure"
10858 #include "confdefs.h"
10860 /* Override any gcc2 internal prototype to avoid an error. */
10864 /* We use char because int might match the return type of a gcc2
10865 builtin and then its argument prototype would still apply. */
10866 char pthread_create ();
10867 #ifdef F77_DUMMY_MAIN
10868 # ifdef __cplusplus
10871 int F77_DUMMY_MAIN() { return 1; }
10881 rm -f conftest.
$ac_objext conftest
$ac_exeext
10882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10883 (eval $ac_link) 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try
='test -s conftest$ac_exeext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 ac_cv_lib_c_r_pthread_create
=yes
10895 echo "$as_me: failed program was:" >&5
10896 cat conftest.
$ac_ext >&5
10897 ac_cv_lib_c_r_pthread_create
=no
10899 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10900 LIBS
=$ac_check_lib_save_LIBS
10902 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
10903 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
10904 if test $ac_cv_lib_c_r_pthread_create = yes; then
10905 cat >>confdefs.h
<<\_ACEOF
10906 #define WITH_THREAD 1
10911 THREADOBJ
="Python/thread.o"
10914 echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5
10915 echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6
10916 if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 ac_check_lib_save_LIBS
=$LIBS
10920 LIBS
="-lthread $LIBS"
10921 cat >conftest.
$ac_ext <<_ACEOF
10922 #line $LINENO "configure"
10923 #include "confdefs.h"
10925 /* Override any gcc2 internal prototype to avoid an error. */
10929 /* We use char because int might match the return type of a gcc2
10930 builtin and then its argument prototype would still apply. */
10931 char __d6_pthread_create ();
10932 #ifdef F77_DUMMY_MAIN
10933 # ifdef __cplusplus
10936 int F77_DUMMY_MAIN() { return 1; }
10941 __d6_pthread_create ();
10946 rm -f conftest.
$ac_objext conftest
$ac_exeext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10948 (eval $ac_link) 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
10952 { ac_try
='test -s conftest$ac_exeext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_cv_lib_thread___d6_pthread_create
=yes
10960 echo "$as_me: failed program was:" >&5
10961 cat conftest.
$ac_ext >&5
10962 ac_cv_lib_thread___d6_pthread_create
=no
10964 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10965 LIBS
=$ac_check_lib_save_LIBS
10967 echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5
10968 echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6
10969 if test $ac_cv_lib_thread___d6_pthread_create = yes; then
10970 cat >>confdefs.h
<<\_ACEOF
10971 #define WITH_THREAD 1
10974 echo Systems with __d6_pthread_create are not supported anymore.
10978 LIBS
="$LIBS -lthread"
10979 THREADOBJ
="Python/thread.o"
10982 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
10983 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
10984 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 ac_check_lib_save_LIBS
=$LIBS
10988 LIBS
="-lpthread $LIBS"
10989 cat >conftest.
$ac_ext <<_ACEOF
10990 #line $LINENO "configure"
10991 #include "confdefs.h"
10993 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
10999 char __pthread_create_system ();
11000 #ifdef F77_DUMMY_MAIN
11001 # ifdef __cplusplus
11004 int F77_DUMMY_MAIN() { return 1; }
11009 __pthread_create_system ();
11014 rm -f conftest.
$ac_objext conftest
$ac_exeext
11015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11016 (eval $ac_link) 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try
='test -s conftest$ac_exeext'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; }; then
11026 ac_cv_lib_pthread___pthread_create_system
=yes
11028 echo "$as_me: failed program was:" >&5
11029 cat conftest.
$ac_ext >&5
11030 ac_cv_lib_pthread___pthread_create_system
=no
11032 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11033 LIBS
=$ac_check_lib_save_LIBS
11035 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
11036 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
11037 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
11038 cat >>confdefs.h
<<\_ACEOF
11039 #define WITH_THREAD 1
11043 LIBS
="$LIBS -lpthread"
11044 THREADOBJ
="Python/thread.o"
11047 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
11048 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
11049 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 ac_check_lib_save_LIBS
=$LIBS
11054 cat >conftest.
$ac_ext <<_ACEOF
11055 #line $LINENO "configure"
11056 #include "confdefs.h"
11058 /* Override any gcc2 internal prototype to avoid an error. */
11062 /* We use char because int might match the return type of a gcc2
11063 builtin and then its argument prototype would still apply. */
11064 char pthread_create ();
11065 #ifdef F77_DUMMY_MAIN
11066 # ifdef __cplusplus
11069 int F77_DUMMY_MAIN() { return 1; }
11079 rm -f conftest.
$ac_objext conftest
$ac_exeext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } &&
11085 { ac_try
='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_cv_lib_cma_pthread_create
=yes
11093 echo "$as_me: failed program was:" >&5
11094 cat conftest.
$ac_ext >&5
11095 ac_cv_lib_cma_pthread_create
=no
11097 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11098 LIBS
=$ac_check_lib_save_LIBS
11100 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
11101 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
11102 if test $ac_cv_lib_cma_pthread_create = yes; then
11103 cat >>confdefs.h
<<\_ACEOF
11104 #define WITH_THREAD 1
11109 THREADOBJ
="Python/thread.o"
11112 USE_THREAD_MODULE
="#"
11133 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11142 if test "$posix_threads" = "yes"; then
11143 if test "$unistd_defines_pthreads" = "no"; then
11145 cat >>confdefs.h
<<\_ACEOF
11146 #define _POSIX_THREADS 1
11151 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
11152 case $ac_sys_system/$ac_sys_release in
11154 cat >>confdefs.h
<<\_ACEOF
11155 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
11160 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
11161 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
11162 if test "${ac_cv_pthread_system_supported+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 if test "$cross_compiling" = yes; then
11166 ac_cv_pthread_system_supported
=no
11168 cat >conftest.
$ac_ext <<_ACEOF
11169 #line $LINENO "configure"
11170 #include "confdefs.h"
11171 #include <pthread.h>
11172 void *foo(void *parm) {
11176 pthread_attr_t attr;
11178 if (pthread_attr_init(&attr)) exit(-1);
11179 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
11180 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
11184 rm -f conftest
$ac_exeext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_pthread_system_supported
=yes
11197 echo "$as_me: program exited with status $ac_status" >&5
11198 echo "$as_me: failed program was:" >&5
11199 cat conftest.
$ac_ext >&5
11200 ( exit $ac_status )
11201 ac_cv_pthread_system_supported
=no
11203 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11208 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
11209 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
11210 if test "$ac_cv_pthread_system_supported" = "yes"; then
11212 cat >>confdefs.h
<<\_ACEOF
11213 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
11218 for ac_func
in pthread_sigmask
11220 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221 echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11223 if eval "test \"\${$as_ac_var+set}\" = set"; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 cat >conftest.
$ac_ext <<_ACEOF
11227 #line $LINENO "configure"
11228 #include "confdefs.h"
11229 /* System header to define __stub macros and hopefully few prototypes,
11230 which can conflict with char $ac_func (); below. */
11231 #include <assert.h>
11232 /* Override any gcc2 internal prototype to avoid an error. */
11236 /* We use char because int might match the return type of a gcc2
11237 builtin and then its argument prototype would still apply. */
11241 #ifdef F77_DUMMY_MAIN
11242 # ifdef __cplusplus
11245 int F77_DUMMY_MAIN() { return 1; }
11250 /* The GNU C library defines this for functions which it implements
11251 to always fail with ENOSYS. Some functions are actually named
11252 something starting with __ and the normal name is an alias. */
11253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11263 rm -f conftest.
$ac_objext conftest
$ac_exeext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11265 (eval $ac_link) 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try
='test -s conftest$ac_exeext'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 eval "$as_ac_var=yes"
11277 echo "$as_me: failed program was:" >&5
11278 cat conftest.
$ac_ext >&5
11279 eval "$as_ac_var=no"
11281 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11285 if test `eval echo '${'$as_ac_var'}'` = yes; then
11286 cat >>confdefs.h
<<_ACEOF
11287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11295 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
11296 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
11297 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 ac_check_lib_save_LIBS
=$LIBS
11302 cat >conftest.
$ac_ext <<_ACEOF
11303 #line $LINENO "configure"
11304 #include "confdefs.h"
11306 /* Override any gcc2 internal prototype to avoid an error. */
11310 /* We use char because int might match the return type of a gcc2
11311 builtin and then its argument prototype would still apply. */
11313 #ifdef F77_DUMMY_MAIN
11314 # ifdef __cplusplus
11317 int F77_DUMMY_MAIN() { return 1; }
11327 rm -f conftest.
$ac_objext conftest
$ac_exeext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11329 (eval $ac_link) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try
='test -s conftest$ac_exeext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_cv_lib_mpc_usconfig
=yes
11341 echo "$as_me: failed program was:" >&5
11342 cat conftest.
$ac_ext >&5
11343 ac_cv_lib_mpc_usconfig
=no
11345 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11346 LIBS
=$ac_check_lib_save_LIBS
11348 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
11349 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
11350 if test $ac_cv_lib_mpc_usconfig = yes; then
11351 cat >>confdefs.h
<<\_ACEOF
11352 #define WITH_THREAD 1
11356 THREADOBJ
="Python/thread.o"
11357 USE_THREAD_MODULE
=""
11361 if test "$posix_threads" != "yes"; then
11362 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
11363 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
11364 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 ac_check_lib_save_LIBS
=$LIBS
11368 LIBS
="-lthread $LIBS"
11369 cat >conftest.
$ac_ext <<_ACEOF
11370 #line $LINENO "configure"
11371 #include "confdefs.h"
11373 /* Override any gcc2 internal prototype to avoid an error. */
11377 /* We use char because int might match the return type of a gcc2
11378 builtin and then its argument prototype would still apply. */
11379 char thr_create ();
11380 #ifdef F77_DUMMY_MAIN
11381 # ifdef __cplusplus
11384 int F77_DUMMY_MAIN() { return 1; }
11394 rm -f conftest.
$ac_objext conftest
$ac_exeext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try
='test -s conftest$ac_exeext'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 ac_cv_lib_thread_thr_create
=yes
11408 echo "$as_me: failed program was:" >&5
11409 cat conftest.
$ac_ext >&5
11410 ac_cv_lib_thread_thr_create
=no
11412 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11413 LIBS
=$ac_check_lib_save_LIBS
11415 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
11416 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
11417 if test $ac_cv_lib_thread_thr_create = yes; then
11418 cat >>confdefs.h
<<\_ACEOF
11419 #define WITH_THREAD 1
11422 LIBS
="$LIBS -lthread"
11423 THREADOBJ
="Python/thread.o"
11424 USE_THREAD_MODULE
=""
11429 if test "$USE_THREAD_MODULE" != "#"
11431 # If the above checks didn't disable threads, (at least) OSF1
11432 # needs this '-threads' argument during linking.
11433 case $ac_sys_system in
11434 OSF1
) LDLAST
=-threads;;
11438 if test "$posix_threads" = yes -a \
11439 "$ac_sys_system" = "SunOS" -a \
11440 "$ac_sys_release" = "5.6"; then
11442 cat >>confdefs.h
<<\_ACEOF
11443 #define HAVE_PTHREAD_DESTRUCTOR 1
11450 # Check for enable-ipv6
11453 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
11454 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
11455 # Check whether --enable-ipv6 or --disable-ipv6 was given.
11456 if test "${enable_ipv6+set}" = set; then
11457 enableval
="$enable_ipv6"
11458 case "$enableval" in
11460 echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6
11464 *) echo "$as_me:$LINENO: result: yes" >&5
11465 echo "${ECHO_T}yes" >&6
11466 cat >>confdefs.h
<<\_ACEOF
11467 #define ENABLE_IPV6 1
11475 if test "$cross_compiling" = yes; then
11476 echo "$as_me:$LINENO: result: no" >&5
11477 echo "${ECHO_T}no" >&6
11481 cat >conftest.
$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11483 #include "confdefs.h"
11484 /* AF_INET6 available check */
11485 #include <sys/types.h>
11486 #include <sys/socket.h>
11489 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
11496 rm -f conftest
$ac_exeext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498 (eval $ac_link) 2>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 echo "$as_me:$LINENO: result: yes" >&5
11508 echo "${ECHO_T}yes" >&6
11511 echo "$as_me: program exited with status $ac_status" >&5
11512 echo "$as_me: failed program was:" >&5
11513 cat conftest.
$ac_ext >&5
11514 ( exit $ac_status )
11515 echo "$as_me:$LINENO: result: no" >&5
11516 echo "${ECHO_T}no" >&6
11519 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11522 if test "$ipv6" = "yes"; then
11523 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
11524 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
11525 cat >conftest.
$ac_ext <<_ACEOF
11526 #line $LINENO "configure"
11527 #include "confdefs.h"
11528 #include <sys/types.h>
11529 #include <netinet/in.h>
11530 #ifdef F77_DUMMY_MAIN
11531 # ifdef __cplusplus
11534 int F77_DUMMY_MAIN() { return 1; }
11539 struct sockaddr_in6 x;
11545 rm -f conftest.
$ac_objext
11546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547 (eval $ac_compile) 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } &&
11551 { ac_try
='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 echo "$as_me:$LINENO: result: yes" >&5
11558 echo "${ECHO_T}yes" >&6
11561 echo "$as_me: failed program was:" >&5
11562 cat conftest.
$ac_ext >&5
11563 echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6
11567 rm -f conftest.
$ac_objext conftest.
$ac_ext
11570 if test "$ipv6" = "yes"; then
11571 cat >>confdefs.h
<<\_ACEOF
11572 #define ENABLE_IPV6 1
11583 if test "$ipv6" = "yes"; then
11584 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
11585 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
11586 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
11590 cat >conftest.
$ac_ext <<_ACEOF
11591 #line $LINENO "configure"
11592 #include "confdefs.h"
11594 #include <netinet/in.h>
11595 #ifdef IPV6_INRIA_VERSION
11599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11600 egrep "yes" >/dev
/null
2>&1; then
11607 cat >conftest.
$ac_ext <<_ACEOF
11608 #line $LINENO "configure"
11609 #include "confdefs.h"
11611 #include <netinet/in.h>
11616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11617 egrep "yes" >/dev
/null
2>&1; then
11620 ipv6libdir
=/usr
/local
/v
6/lib
11627 cat >conftest.
$ac_ext <<_ACEOF
11628 #line $LINENO "configure"
11629 #include "confdefs.h"
11631 #include <features.h>
11632 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11637 egrep "yes" >/dev
/null
2>&1; then
11645 if test -d /usr
/inet6
; then
11648 ipv6libdir
=/usr
/inet
6/lib
11649 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
11653 if test -f /etc
/netconfig
; then
11654 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
11661 cat >conftest.
$ac_ext <<_ACEOF
11662 #line $LINENO "configure"
11663 #include "confdefs.h"
11665 #include <sys/param.h>
11666 #ifdef _TOSHIBA_INET6
11670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11671 egrep "yes" >/dev
/null
2>&1; then
11674 ipv6libdir
=/usr
/local
/v
6/lib
11680 cat >conftest.
$ac_ext <<_ACEOF
11681 #line $LINENO "configure"
11682 #include "confdefs.h"
11684 #include </usr/local/v6/include/sys/v6config.h>
11689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11690 egrep "yes" >/dev
/null
2>&1; then
11693 ipv6libdir
=/usr
/local
/v
6/lib
;
11694 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
11700 cat >conftest.
$ac_ext <<_ACEOF
11701 #line $LINENO "configure"
11702 #include "confdefs.h"
11704 #include <sys/param.h>
11705 #ifdef _ZETA_MINAMI_INET6
11709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11710 egrep "yes" >/dev
/null
2>&1; then
11713 ipv6libdir
=/usr
/local
/v
6/lib
11719 if test "$ipv6type" != "unknown"; then
11723 echo "$as_me:$LINENO: result: $ipv6type" >&5
11724 echo "${ECHO_T}$ipv6type" >&6
11727 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11728 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
11729 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
11730 echo "using lib$ipv6lib"
11732 if test $ipv6trylibc = "yes"; then
11735 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11736 echo "You need to fetch lib$ipv6lib.a from appropriate"
11737 echo 'ipv6 kit and compile beforehand.'
11743 # Check for universal newline support
11744 echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5
11745 echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6
11747 # Check whether --with-universal-newlines or --without-universal-newlines was given.
11748 if test "${with_universal_newlines+set}" = set; then
11749 withval
="$with_universal_newlines"
11753 if test -z "$with_universal_newlines"
11754 then with_universal_newlines
="yes"
11756 if test "$with_universal_newlines" = "no"
11758 echo --without-universal-newlines is unsupported
, see README
11762 cat >>confdefs.h
<<\_ACEOF
11763 #define WITH_UNIVERSAL_NEWLINES 1
11767 echo "$as_me:$LINENO: result: $with_universal_newlines" >&5
11768 echo "${ECHO_T}$with_universal_newlines" >&6
11770 # Check for --with-doc-strings
11771 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
11772 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
11774 # Check whether --with-doc-strings or --without-doc-strings was given.
11775 if test "${with_doc_strings+set}" = set; then
11776 withval
="$with_doc_strings"
11780 if test -z "$with_doc_strings"
11781 then with_doc_strings
="yes"
11783 if test "$with_doc_strings" != "no"
11786 cat >>confdefs.h
<<\_ACEOF
11787 #define WITH_DOC_STRINGS 1
11791 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
11792 echo "${ECHO_T}$with_doc_strings" >&6
11794 # Check for Python-specific malloc support
11795 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
11796 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
11798 # Check whether --with-pymalloc or --without-pymalloc was given.
11799 if test "${with_pymalloc+set}" = set; then
11800 withval
="$with_pymalloc"
11804 if test -z "$with_pymalloc"
11805 then with_pymalloc
="yes"
11807 if test "$with_pymalloc" != "no"
11810 cat >>confdefs.h
<<\_ACEOF
11811 #define WITH_PYMALLOC 1
11815 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
11816 echo "${ECHO_T}$with_pymalloc" >&6
11818 # Check for --with-wctype-functions
11819 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
11820 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
11822 # Check whether --with-wctype-functions or --without-wctype-functions was given.
11823 if test "${with_wctype_functions+set}" = set; then
11824 withval
="$with_wctype_functions"
11826 if test "$withval" != no
11829 cat >>confdefs.h
<<\_ACEOF
11830 #define WANT_WCTYPE_FUNCTIONS 1
11833 echo "$as_me:$LINENO: result: yes" >&5
11834 echo "${ECHO_T}yes" >&6
11835 else echo "$as_me:$LINENO: result: no" >&5
11836 echo "${ECHO_T}no" >&6
11839 echo "$as_me:$LINENO: result: no" >&5
11840 echo "${ECHO_T}no" >&6
11843 # -I${DLINCLDIR} is added to the compile rule for importdl.o
11847 echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5
11848 echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6
11850 # Check whether --with-sgi-dl or --without-sgi-dl was given.
11851 if test "${with_sgi_dl+set}" = set; then
11852 withval
="$with_sgi_dl"
11854 echo "$as_me:$LINENO: result: $withval" >&5
11855 echo "${ECHO_T}$withval" >&6
11856 echo --with-sgi-dl is unsupported
, see README
11859 cat >>confdefs.h
<<\_ACEOF
11860 #define WITH_SGI_DL 1
11863 DYNLOADFILE
="dynload_dl.o"
11865 if test ! -z "$dldir" -a -d "$dldir"
11866 then LDFLAGS
="$LDFLAGS -L$dldir"
11867 else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5
11868 echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;}
11869 { (exit 1); exit 1; }; }
11872 LIBS
="$LIBS -ldl -lmld"
11874 echo "$as_me:$LINENO: result: no" >&5
11875 echo "${ECHO_T}no" >&6
11878 echo "$as_me:$LINENO: checking for --with-dl-dld" >&5
11879 echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6
11881 # Check whether --with-dl-dld or --without-dl-dld was given.
11882 if test "${with_dl_dld+set}" = set; then
11883 withval
="$with_dl_dld"
11885 echo "$as_me:$LINENO: result: $withval" >&5
11886 echo "${ECHO_T}$withval" >&6
11887 echo --with-dl-dld is unsupported
, see README
11890 cat >>confdefs.h
<<\_ACEOF
11891 #define WITH_DL_DLD 1
11894 DYNLOADFILE
="dynload_dl.o"
11895 dldir
=`echo "$withval" | sed 's/,.*//'`
11896 dlddir
=`echo "$withval" | sed 's/.*,//'`
11897 if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
11898 then LDFLAGS
="$LDFLAGS -L$dldir -L$dlddir"
11899 else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5
11900 echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;}
11901 { (exit 1); exit 1; }; }
11904 LIBS
="$LIBS -ldl -ldld"
11906 echo "$as_me:$LINENO: result: no" >&5
11907 echo "${ECHO_T}no" >&6
11910 # the dlopen() function means we might want to use dynload_shlib.o. some
11911 # platforms, such as AIX, have dlopen(), but don't want to use it.
11913 for ac_func
in dlopen
11915 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11916 echo "$as_me:$LINENO: checking for $ac_func" >&5
11917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11918 if eval "test \"\${$as_ac_var+set}\" = set"; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 cat >conftest.
$ac_ext <<_ACEOF
11922 #line $LINENO "configure"
11923 #include "confdefs.h"
11924 /* System header to define __stub macros and hopefully few prototypes,
11925 which can conflict with char $ac_func (); below. */
11926 #include <assert.h>
11927 /* Override any gcc2 internal prototype to avoid an error. */
11931 /* We use char because int might match the return type of a gcc2
11932 builtin and then its argument prototype would still apply. */
11936 #ifdef F77_DUMMY_MAIN
11937 # ifdef __cplusplus
11940 int F77_DUMMY_MAIN() { return 1; }
11945 /* The GNU C library defines this for functions which it implements
11946 to always fail with ENOSYS. Some functions are actually named
11947 something starting with __ and the normal name is an alias. */
11948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11958 rm -f conftest.
$ac_objext conftest
$ac_exeext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960 (eval $ac_link) 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try
='test -s conftest$ac_exeext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 eval "$as_ac_var=yes"
11972 echo "$as_me: failed program was:" >&5
11973 cat conftest.
$ac_ext >&5
11974 eval "$as_ac_var=no"
11976 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981 cat >>confdefs.h
<<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11989 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11990 # loading of modules.
11992 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
11993 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
11994 if test -z "$DYNLOADFILE"
11996 case $ac_sys_system/$ac_sys_release in
11997 AIX
*) DYNLOADFILE
="dynload_aix.o";;
11998 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
11999 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
12000 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
12001 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
12003 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
12004 # out any dynamic loading
12005 if test "$ac_cv_func_dlopen" = yes
12006 then DYNLOADFILE
="dynload_shlib.o"
12007 else DYNLOADFILE
="dynload_stub.o"
12012 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
12013 echo "${ECHO_T}$DYNLOADFILE" >&6
12014 if test "$DYNLOADFILE" != "dynload_stub.o"
12017 cat >>confdefs.h
<<\_ACEOF
12018 #define HAVE_DYNAMIC_LOADING 1
12023 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
12026 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
12027 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
12028 if test -z "$MACHDEP_OBJS"
12030 MACHDEP_OBJS
=$extra_machdep_objs
12032 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
12034 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
12035 echo "${ECHO_T}MACHDEP_OBJS" >&6
12037 # checks for library functions
12115 for ac_func
in alarm chown
clock confstr ctermid execv \
12116 fchdir fork fsync fdatasync fpathconf ftime ftruncate \
12117 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
12118 getpriority getpwent getwd \
12119 hstrerror inet_aton inet_pton
kill killpg lchown lstat
mkfifo mknod mktime \
12120 mremap nice pathconf pause plock poll pthread_init \
12121 putenv readlink realpath \
12122 select setegid seteuid setgid \
12123 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
12124 sigaction siginterrupt sigrelse strftime strptime \
12125 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
12126 truncate uname unsetenv utimes waitpid wcscoll _getpty
12128 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12129 echo "$as_me:$LINENO: checking for $ac_func" >&5
12130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12131 if eval "test \"\${$as_ac_var+set}\" = set"; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 cat >conftest.
$ac_ext <<_ACEOF
12135 #line $LINENO "configure"
12136 #include "confdefs.h"
12137 /* System header to define __stub macros and hopefully few prototypes,
12138 which can conflict with char $ac_func (); below. */
12139 #include <assert.h>
12140 /* Override any gcc2 internal prototype to avoid an error. */
12144 /* We use char because int might match the return type of a gcc2
12145 builtin and then its argument prototype would still apply. */
12149 #ifdef F77_DUMMY_MAIN
12150 # ifdef __cplusplus
12153 int F77_DUMMY_MAIN() { return 1; }
12158 /* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12171 rm -f conftest.
$ac_objext conftest
$ac_exeext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12173 (eval $ac_link) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try
='test -s conftest$ac_exeext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 eval "$as_ac_var=yes"
12185 echo "$as_me: failed program was:" >&5
12186 cat conftest.
$ac_ext >&5
12187 eval "$as_ac_var=no"
12189 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12193 if test `eval echo '${'$as_ac_var'}'` = yes; then
12194 cat >>confdefs.h
<<_ACEOF
12195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12202 # For some functions, having a definition is not sufficient, since
12203 # we want to take their address.
12204 echo "$as_me:$LINENO: checking for chroot" >&5
12205 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
12206 cat >conftest.
$ac_ext <<_ACEOF
12207 #line $LINENO "configure"
12208 #include "confdefs.h"
12209 #include <unistd.h>
12210 #ifdef F77_DUMMY_MAIN
12211 # ifdef __cplusplus
12214 int F77_DUMMY_MAIN() { return 1; }
12224 rm -f conftest.
$ac_objext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12226 (eval $ac_compile) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try
='test -s conftest.$ac_objext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12237 cat >>confdefs.h
<<\_ACEOF
12238 #define HAVE_CHROOT 1
12241 echo "$as_me:$LINENO: result: yes" >&5
12242 echo "${ECHO_T}yes" >&6
12244 echo "$as_me: failed program was:" >&5
12245 cat conftest.
$ac_ext >&5
12246 echo "$as_me:$LINENO: result: no" >&5
12247 echo "${ECHO_T}no" >&6
12250 rm -f conftest.
$ac_objext conftest.
$ac_ext
12251 echo "$as_me:$LINENO: checking for link" >&5
12252 echo $ECHO_N "checking for link... $ECHO_C" >&6
12253 cat >conftest.
$ac_ext <<_ACEOF
12254 #line $LINENO "configure"
12255 #include "confdefs.h"
12256 #include <unistd.h>
12257 #ifdef F77_DUMMY_MAIN
12258 # ifdef __cplusplus
12261 int F77_DUMMY_MAIN() { return 1; }
12271 rm -f conftest.
$ac_objext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12273 (eval $ac_compile) 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try
='test -s conftest.$ac_objext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12284 cat >>confdefs.h
<<\_ACEOF
12285 #define HAVE_LINK 1
12288 echo "$as_me:$LINENO: result: yes" >&5
12289 echo "${ECHO_T}yes" >&6
12291 echo "$as_me: failed program was:" >&5
12292 cat conftest.
$ac_ext >&5
12293 echo "$as_me:$LINENO: result: no" >&5
12294 echo "${ECHO_T}no" >&6
12297 rm -f conftest.
$ac_objext conftest.
$ac_ext
12298 echo "$as_me:$LINENO: checking for symlink" >&5
12299 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
12300 cat >conftest.
$ac_ext <<_ACEOF
12301 #line $LINENO "configure"
12302 #include "confdefs.h"
12303 #include <unistd.h>
12304 #ifdef F77_DUMMY_MAIN
12305 # ifdef __cplusplus
12308 int F77_DUMMY_MAIN() { return 1; }
12318 rm -f conftest.
$ac_objext
12319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320 (eval $ac_compile) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try
='test -s conftest.$ac_objext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12331 cat >>confdefs.h
<<\_ACEOF
12332 #define HAVE_SYMLINK 1
12335 echo "$as_me:$LINENO: result: yes" >&5
12336 echo "${ECHO_T}yes" >&6
12338 echo "$as_me: failed program was:" >&5
12339 cat conftest.
$ac_ext >&5
12340 echo "$as_me:$LINENO: result: no" >&5
12341 echo "${ECHO_T}no" >&6
12344 rm -f conftest.
$ac_objext conftest.
$ac_ext
12346 # On some systems (eg. FreeBSD 5), we would find a definition of the
12347 # functions ctermid_r, setgroups in the library, but no prototype
12348 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
12349 # address to avoid compiler warnings and potential miscompilations
12350 # because of the missing prototypes.
12352 echo "$as_me:$LINENO: checking for ctermid_r" >&5
12353 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
12354 cat >conftest.
$ac_ext <<_ACEOF
12355 #line $LINENO "configure"
12356 #include "confdefs.h"
12358 #include "confdefs.h"
12361 #ifdef F77_DUMMY_MAIN
12362 # ifdef __cplusplus
12365 int F77_DUMMY_MAIN() { return 1; }
12370 void* p = ctermid_r
12375 rm -f conftest.
$ac_objext
12376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12377 (eval $ac_compile) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try
='test -s conftest.$ac_objext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12388 cat >>confdefs.h
<<\_ACEOF
12389 #define HAVE_CTERMID_R 1
12392 echo "$as_me:$LINENO: result: yes" >&5
12393 echo "${ECHO_T}yes" >&6
12395 echo "$as_me: failed program was:" >&5
12396 cat conftest.
$ac_ext >&5
12397 echo "$as_me:$LINENO: result: no" >&5
12398 echo "${ECHO_T}no" >&6
12401 rm -f conftest.
$ac_objext conftest.
$ac_ext
12403 echo "$as_me:$LINENO: checking for flock" >&5
12404 echo $ECHO_N "checking for flock... $ECHO_C" >&6
12405 cat >conftest.
$ac_ext <<_ACEOF
12406 #line $LINENO "configure"
12407 #include "confdefs.h"
12409 #include "confdefs.h"
12410 #include <sys/file.h>
12412 #ifdef F77_DUMMY_MAIN
12413 # ifdef __cplusplus
12416 int F77_DUMMY_MAIN() { return 1; }
12426 rm -f conftest.
$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try
='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12439 cat >>confdefs.h
<<\_ACEOF
12440 #define HAVE_FLOCK 1
12443 echo "$as_me:$LINENO: result: yes" >&5
12444 echo "${ECHO_T}yes" >&6
12446 echo "$as_me: failed program was:" >&5
12447 cat conftest.
$ac_ext >&5
12448 echo "$as_me:$LINENO: result: no" >&5
12449 echo "${ECHO_T}no" >&6
12452 rm -f conftest.
$ac_objext conftest.
$ac_ext
12454 echo "$as_me:$LINENO: checking for getpagesize" >&5
12455 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
12456 cat >conftest.
$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12458 #include "confdefs.h"
12460 #include "confdefs.h"
12461 #include <unistd.h>
12463 #ifdef F77_DUMMY_MAIN
12464 # ifdef __cplusplus
12467 int F77_DUMMY_MAIN() { return 1; }
12472 void* p = getpagesize
12477 rm -f conftest.
$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try
='test -s conftest.$ac_objext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12490 cat >>confdefs.h
<<\_ACEOF
12491 #define HAVE_GETPAGESIZE 1
12494 echo "$as_me:$LINENO: result: yes" >&5
12495 echo "${ECHO_T}yes" >&6
12497 echo "$as_me: failed program was:" >&5
12498 cat conftest.
$ac_ext >&5
12499 echo "$as_me:$LINENO: result: no" >&5
12500 echo "${ECHO_T}no" >&6
12503 rm -f conftest.
$ac_objext conftest.
$ac_ext
12505 echo "$as_me:$LINENO: checking for setgroups" >&5
12506 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
12507 cat >conftest.
$ac_ext <<_ACEOF
12508 #line $LINENO "configure"
12509 #include "confdefs.h"
12511 #include "confdefs.h"
12512 #include <unistd.h.h>
12514 #ifdef F77_DUMMY_MAIN
12515 # ifdef __cplusplus
12518 int F77_DUMMY_MAIN() { return 1; }
12523 void* p = setgroups
12528 rm -f conftest.
$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530 (eval $ac_compile) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
12534 { ac_try
='test -s conftest.$ac_objext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12541 cat >>confdefs.h
<<\_ACEOF
12542 #define HAVE_SETGROUPS 1
12545 echo "$as_me:$LINENO: result: yes" >&5
12546 echo "${ECHO_T}yes" >&6
12548 echo "$as_me: failed program was:" >&5
12549 cat conftest.
$ac_ext >&5
12550 echo "$as_me:$LINENO: result: no" >&5
12551 echo "${ECHO_T}no" >&6
12554 rm -f conftest.
$ac_objext conftest.
$ac_ext
12556 # check for openpty and forkpty
12559 for ac_func
in openpty
12561 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12562 echo "$as_me:$LINENO: checking for $ac_func" >&5
12563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12564 if eval "test \"\${$as_ac_var+set}\" = set"; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 cat >conftest.
$ac_ext <<_ACEOF
12568 #line $LINENO "configure"
12569 #include "confdefs.h"
12570 /* System header to define __stub macros and hopefully few prototypes,
12571 which can conflict with char $ac_func (); below. */
12572 #include <assert.h>
12573 /* Override any gcc2 internal prototype to avoid an error. */
12577 /* We use char because int might match the return type of a gcc2
12578 builtin and then its argument prototype would still apply. */
12582 #ifdef F77_DUMMY_MAIN
12583 # ifdef __cplusplus
12586 int F77_DUMMY_MAIN() { return 1; }
12591 /* The GNU C library defines this for functions which it implements
12592 to always fail with ENOSYS. Some functions are actually named
12593 something starting with __ and the normal name is an alias. */
12594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12604 rm -f conftest.
$ac_objext conftest
$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606 (eval $ac_link) 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try
='test -s conftest$ac_exeext'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12616 eval "$as_ac_var=yes"
12618 echo "$as_me: failed program was:" >&5
12619 cat conftest.
$ac_ext >&5
12620 eval "$as_ac_var=no"
12622 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12626 if test `eval echo '${'$as_ac_var'}'` = yes; then
12627 cat >>confdefs.h
<<_ACEOF
12628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12632 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12633 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12634 if test "${ac_cv_lib_util_openpty+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12637 ac_check_lib_save_LIBS
=$LIBS
12638 LIBS
="-lutil $LIBS"
12639 cat >conftest.
$ac_ext <<_ACEOF
12640 #line $LINENO "configure"
12641 #include "confdefs.h"
12643 /* Override any gcc2 internal prototype to avoid an error. */
12647 /* We use char because int might match the return type of a gcc2
12648 builtin and then its argument prototype would still apply. */
12650 #ifdef F77_DUMMY_MAIN
12651 # ifdef __cplusplus
12654 int F77_DUMMY_MAIN() { return 1; }
12664 rm -f conftest.
$ac_objext conftest
$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 (eval $ac_link) 2>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try
='test -s conftest$ac_exeext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_cv_lib_util_openpty
=yes
12678 echo "$as_me: failed program was:" >&5
12679 cat conftest.
$ac_ext >&5
12680 ac_cv_lib_util_openpty
=no
12682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12683 LIBS
=$ac_check_lib_save_LIBS
12685 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12686 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12687 if test $ac_cv_lib_util_openpty = yes; then
12688 cat >>confdefs.h
<<\_ACEOF
12689 #define HAVE_OPENPTY 1
12691 LIBS
="$LIBS -lutil"
12698 for ac_func
in forkpty
12700 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12701 echo "$as_me:$LINENO: checking for $ac_func" >&5
12702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12703 if eval "test \"\${$as_ac_var+set}\" = set"; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 cat >conftest.
$ac_ext <<_ACEOF
12707 #line $LINENO "configure"
12708 #include "confdefs.h"
12709 /* System header to define __stub macros and hopefully few prototypes,
12710 which can conflict with char $ac_func (); below. */
12711 #include <assert.h>
12712 /* Override any gcc2 internal prototype to avoid an error. */
12716 /* We use char because int might match the return type of a gcc2
12717 builtin and then its argument prototype would still apply. */
12721 #ifdef F77_DUMMY_MAIN
12722 # ifdef __cplusplus
12725 int F77_DUMMY_MAIN() { return 1; }
12730 /* The GNU C library defines this for functions which it implements
12731 to always fail with ENOSYS. Some functions are actually named
12732 something starting with __ and the normal name is an alias. */
12733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12743 rm -f conftest.
$ac_objext conftest
$ac_exeext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12745 (eval $ac_link) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
12749 { ac_try
='test -s conftest$ac_exeext'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 eval "$as_ac_var=yes"
12757 echo "$as_me: failed program was:" >&5
12758 cat conftest.
$ac_ext >&5
12759 eval "$as_ac_var=no"
12761 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12765 if test `eval echo '${'$as_ac_var'}'` = yes; then
12766 cat >>confdefs.h
<<_ACEOF
12767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12771 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
12772 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
12773 if test "${ac_cv_lib_util_forkpty+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 ac_check_lib_save_LIBS
=$LIBS
12777 LIBS
="-lutil $LIBS"
12778 cat >conftest.
$ac_ext <<_ACEOF
12779 #line $LINENO "configure"
12780 #include "confdefs.h"
12782 /* Override any gcc2 internal prototype to avoid an error. */
12786 /* We use char because int might match the return type of a gcc2
12787 builtin and then its argument prototype would still apply. */
12789 #ifdef F77_DUMMY_MAIN
12790 # ifdef __cplusplus
12793 int F77_DUMMY_MAIN() { return 1; }
12803 rm -f conftest.
$ac_objext conftest
$ac_exeext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805 (eval $ac_link) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try
='test -s conftest$ac_exeext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_cv_lib_util_forkpty
=yes
12817 echo "$as_me: failed program was:" >&5
12818 cat conftest.
$ac_ext >&5
12819 ac_cv_lib_util_forkpty
=no
12821 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12822 LIBS
=$ac_check_lib_save_LIBS
12824 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
12825 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
12826 if test $ac_cv_lib_util_forkpty = yes; then
12827 cat >>confdefs.h
<<\_ACEOF
12828 #define HAVE_FORKPTY 1
12830 LIBS
="$LIBS -lutil"
12837 # check for long file support functions
12844 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
12846 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12847 echo "$as_me:$LINENO: checking for $ac_func" >&5
12848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12849 if eval "test \"\${$as_ac_var+set}\" = set"; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 cat >conftest.
$ac_ext <<_ACEOF
12853 #line $LINENO "configure"
12854 #include "confdefs.h"
12855 /* System header to define __stub macros and hopefully few prototypes,
12856 which can conflict with char $ac_func (); below. */
12857 #include <assert.h>
12858 /* Override any gcc2 internal prototype to avoid an error. */
12862 /* We use char because int might match the return type of a gcc2
12863 builtin and then its argument prototype would still apply. */
12867 #ifdef F77_DUMMY_MAIN
12868 # ifdef __cplusplus
12871 int F77_DUMMY_MAIN() { return 1; }
12876 /* The GNU C library defines this for functions which it implements
12877 to always fail with ENOSYS. Some functions are actually named
12878 something starting with __ and the normal name is an alias. */
12879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12889 rm -f conftest.
$ac_objext conftest
$ac_exeext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891 (eval $ac_link) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try
='test -s conftest$ac_exeext'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 eval "$as_ac_var=yes"
12903 echo "$as_me: failed program was:" >&5
12904 cat conftest.
$ac_ext >&5
12905 eval "$as_ac_var=no"
12907 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12911 if test `eval echo '${'$as_ac_var'}'` = yes; then
12912 cat >>confdefs.h
<<_ACEOF
12913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12925 for ac_func
in dup2 getcwd strdup strerror memmove
12927 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12928 echo "$as_me:$LINENO: checking for $ac_func" >&5
12929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12930 if eval "test \"\${$as_ac_var+set}\" = set"; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12933 cat >conftest.
$ac_ext <<_ACEOF
12934 #line $LINENO "configure"
12935 #include "confdefs.h"
12936 /* System header to define __stub macros and hopefully few prototypes,
12937 which can conflict with char $ac_func (); below. */
12938 #include <assert.h>
12939 /* Override any gcc2 internal prototype to avoid an error. */
12943 /* We use char because int might match the return type of a gcc2
12944 builtin and then its argument prototype would still apply. */
12948 #ifdef F77_DUMMY_MAIN
12949 # ifdef __cplusplus
12952 int F77_DUMMY_MAIN() { return 1; }
12957 /* The GNU C library defines this for functions which it implements
12958 to always fail with ENOSYS. Some functions are actually named
12959 something starting with __ and the normal name is an alias. */
12960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12970 rm -f conftest.
$ac_objext conftest
$ac_exeext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972 (eval $ac_link) 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try
='test -s conftest$ac_exeext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 eval "$as_ac_var=yes"
12984 echo "$as_me: failed program was:" >&5
12985 cat conftest.
$ac_ext >&5
12986 eval "$as_ac_var=no"
12988 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12992 if test `eval echo '${'$as_ac_var'}'` = yes; then
12993 cat >>confdefs.h
<<_ACEOF
12994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12998 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
13004 for ac_func
in getpgrp
13006 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13007 echo "$as_me:$LINENO: checking for $ac_func" >&5
13008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13009 if eval "test \"\${$as_ac_var+set}\" = set"; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 cat >conftest.
$ac_ext <<_ACEOF
13013 #line $LINENO "configure"
13014 #include "confdefs.h"
13015 /* System header to define __stub macros and hopefully few prototypes,
13016 which can conflict with char $ac_func (); below. */
13017 #include <assert.h>
13018 /* Override any gcc2 internal prototype to avoid an error. */
13022 /* We use char because int might match the return type of a gcc2
13023 builtin and then its argument prototype would still apply. */
13027 #ifdef F77_DUMMY_MAIN
13028 # ifdef __cplusplus
13031 int F77_DUMMY_MAIN() { return 1; }
13036 /* The GNU C library defines this for functions which it implements
13037 to always fail with ENOSYS. Some functions are actually named
13038 something starting with __ and the normal name is an alias. */
13039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13049 rm -f conftest.
$ac_objext conftest
$ac_exeext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051 (eval $ac_link) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try
='test -s conftest$ac_exeext'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 eval "$as_ac_var=yes"
13063 echo "$as_me: failed program was:" >&5
13064 cat conftest.
$ac_ext >&5
13065 eval "$as_ac_var=no"
13067 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13071 if test `eval echo '${'$as_ac_var'}'` = yes; then
13072 cat >>confdefs.h
<<_ACEOF
13073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13075 cat >conftest.
$ac_ext <<_ACEOF
13076 #line $LINENO "configure"
13077 #include "confdefs.h"
13078 #include <unistd.h>
13079 #ifdef F77_DUMMY_MAIN
13080 # ifdef __cplusplus
13083 int F77_DUMMY_MAIN() { return 1; }
13093 rm -f conftest.
$ac_objext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13095 (eval $ac_compile) 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try
='test -s conftest.$ac_objext'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13106 cat >>confdefs.h
<<\_ACEOF
13107 #define GETPGRP_HAVE_ARG 1
13112 echo "$as_me: failed program was:" >&5
13113 cat conftest.
$ac_ext >&5
13115 rm -f conftest.
$ac_objext conftest.
$ac_ext
13121 for ac_func
in setpgrp
13123 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13124 echo "$as_me:$LINENO: checking for $ac_func" >&5
13125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13126 if eval "test \"\${$as_ac_var+set}\" = set"; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
13129 cat >conftest.
$ac_ext <<_ACEOF
13130 #line $LINENO "configure"
13131 #include "confdefs.h"
13132 /* System header to define __stub macros and hopefully few prototypes,
13133 which can conflict with char $ac_func (); below. */
13134 #include <assert.h>
13135 /* Override any gcc2 internal prototype to avoid an error. */
13139 /* We use char because int might match the return type of a gcc2
13140 builtin and then its argument prototype would still apply. */
13144 #ifdef F77_DUMMY_MAIN
13145 # ifdef __cplusplus
13148 int F77_DUMMY_MAIN() { return 1; }
13153 /* The GNU C library defines this for functions which it implements
13154 to always fail with ENOSYS. Some functions are actually named
13155 something starting with __ and the normal name is an alias. */
13156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13166 rm -f conftest.
$ac_objext conftest
$ac_exeext
13167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168 (eval $ac_link) 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try
='test -s conftest$ac_exeext'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13178 eval "$as_ac_var=yes"
13180 echo "$as_me: failed program was:" >&5
13181 cat conftest.
$ac_ext >&5
13182 eval "$as_ac_var=no"
13184 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13188 if test `eval echo '${'$as_ac_var'}'` = yes; then
13189 cat >>confdefs.h
<<_ACEOF
13190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13192 cat >conftest.
$ac_ext <<_ACEOF
13193 #line $LINENO "configure"
13194 #include "confdefs.h"
13195 #include <unistd.h>
13196 #ifdef F77_DUMMY_MAIN
13197 # ifdef __cplusplus
13200 int F77_DUMMY_MAIN() { return 1; }
13210 rm -f conftest.
$ac_objext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13212 (eval $ac_compile) 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try
='test -s conftest.$ac_objext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13223 cat >>confdefs.h
<<\_ACEOF
13224 #define SETPGRP_HAVE_ARG 1
13229 echo "$as_me: failed program was:" >&5
13230 cat conftest.
$ac_ext >&5
13232 rm -f conftest.
$ac_objext conftest.
$ac_ext
13238 for ac_func
in gettimeofday
13240 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13241 echo "$as_me:$LINENO: checking for $ac_func" >&5
13242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13243 if eval "test \"\${$as_ac_var+set}\" = set"; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 cat >conftest.
$ac_ext <<_ACEOF
13247 #line $LINENO "configure"
13248 #include "confdefs.h"
13249 /* System header to define __stub macros and hopefully few prototypes,
13250 which can conflict with char $ac_func (); below. */
13251 #include <assert.h>
13252 /* Override any gcc2 internal prototype to avoid an error. */
13256 /* We use char because int might match the return type of a gcc2
13257 builtin and then its argument prototype would still apply. */
13261 #ifdef F77_DUMMY_MAIN
13262 # ifdef __cplusplus
13265 int F77_DUMMY_MAIN() { return 1; }
13270 /* The GNU C library defines this for functions which it implements
13271 to always fail with ENOSYS. Some functions are actually named
13272 something starting with __ and the normal name is an alias. */
13273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13283 rm -f conftest.
$ac_objext conftest
$ac_exeext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13285 (eval $ac_link) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try
='test -s conftest$ac_exeext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 eval "$as_ac_var=yes"
13297 echo "$as_me: failed program was:" >&5
13298 cat conftest.
$ac_ext >&5
13299 eval "$as_ac_var=no"
13301 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13305 if test `eval echo '${'$as_ac_var'}'` = yes; then
13306 cat >>confdefs.h
<<_ACEOF
13307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13309 cat >conftest.
$ac_ext <<_ACEOF
13310 #line $LINENO "configure"
13311 #include "confdefs.h"
13312 #include <sys/time.h>
13313 #ifdef F77_DUMMY_MAIN
13314 # ifdef __cplusplus
13317 int F77_DUMMY_MAIN() { return 1; }
13322 gettimeofday((struct timeval*)0,(struct timezone*)0);
13327 rm -f conftest.
$ac_objext
13328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13329 (eval $ac_compile) 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try
='test -s conftest.$ac_objext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13341 echo "$as_me: failed program was:" >&5
13342 cat conftest.
$ac_ext >&5
13344 cat >>confdefs.h
<<\_ACEOF
13345 #define GETTIMEOFDAY_NO_TZ 1
13350 rm -f conftest.
$ac_objext conftest.
$ac_ext
13356 echo "$as_me:$LINENO: checking for major" >&5
13357 echo $ECHO_N "checking for major... $ECHO_C" >&6
13358 cat >conftest.
$ac_ext <<_ACEOF
13359 #line $LINENO "configure"
13360 #include "confdefs.h"
13362 #if defined(MAJOR_IN_MKDEV)
13363 #include <sys/mkdev.h>
13364 #elif defined(MAJOR_IN_SYSMACROS)
13365 #include <sys/sysmacros.h>
13367 #include <sys/types.h>
13370 #ifdef F77_DUMMY_MAIN
13371 # ifdef __cplusplus
13374 int F77_DUMMY_MAIN() { return 1; }
13380 makedev(major(0),minor(0));
13386 rm -f conftest.
$ac_objext conftest
$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try
='test -s conftest$ac_exeext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13400 cat >>confdefs.h
<<\_ACEOF
13401 #define HAVE_DEVICE_MACROS 1
13404 echo "$as_me:$LINENO: result: yes" >&5
13405 echo "${ECHO_T}yes" >&6
13408 echo "$as_me: failed program was:" >&5
13409 cat conftest.
$ac_ext >&5
13411 echo "$as_me:$LINENO: result: no" >&5
13412 echo "${ECHO_T}no" >&6
13415 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13417 # On OSF/1 V5.1, getaddrinfo is available, but a define
13418 # for [no]getaddrinfo in netdb.h.
13419 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
13420 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
13421 cat >conftest.
$ac_ext <<_ACEOF
13422 #line $LINENO "configure"
13423 #include "confdefs.h"
13425 #include <sys/types.h>
13426 #include <sys/socket.h>
13430 #ifdef F77_DUMMY_MAIN
13431 # ifdef __cplusplus
13434 int F77_DUMMY_MAIN() { return 1; }
13440 getaddrinfo(NULL, NULL, NULL, NULL);
13446 rm -f conftest.
$ac_objext conftest
$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448 (eval $ac_link) 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try
='test -s conftest$ac_exeext'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13459 echo "$as_me:$LINENO: result: yes" >&5
13460 echo "${ECHO_T}yes" >&6
13461 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
13462 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
13463 if test "$cross_compiling" = yes; then
13464 echo "$as_me:$LINENO: result: buggy" >&5
13465 echo "${ECHO_T}buggy" >&6
13466 buggygetaddrinfo
=yes
13468 cat >conftest.
$ac_ext <<_ACEOF
13469 #line $LINENO "configure"
13470 #include "confdefs.h"
13472 #include <sys/types.h>
13474 #include <string.h>
13475 #include <sys/socket.h>
13476 #include <netinet/in.h>
13480 int passive, gaierr, inet4 = 0, inet6 = 0;
13481 struct addrinfo hints, *ai, *aitop;
13482 char straddr[INET6_ADDRSTRLEN], strport[16];
13484 for (passive = 0; passive <= 1; passive++) {
13485 memset(&hints, 0, sizeof(hints));
13486 hints.ai_family = AF_UNSPEC;
13487 hints.ai_flags = passive ? AI_PASSIVE : 0;
13488 hints.ai_socktype = SOCK_STREAM;
13489 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
13490 (void)gai_strerror(gaierr);
13493 for (ai = aitop; ai; ai = ai->ai_next) {
13494 if (ai->ai_addr == NULL ||
13495 ai->ai_addrlen == 0 ||
13496 getnameinfo(ai->ai_addr, ai->ai_addrlen,
13497 straddr, sizeof(straddr), strport, sizeof(strport),
13498 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
13501 switch (ai->ai_family) {
13503 if (strcmp(strport, "54321") != 0) {
13507 if (strcmp(straddr, "0.0.0.0") != 0) {
13511 if (strcmp(straddr, "127.0.0.1") != 0) {
13518 if (strcmp(strport, "54321") != 0) {
13522 if (strcmp(straddr, "::") != 0) {
13526 if (strcmp(straddr, "::1") != 0) {
13536 /* another family support? */
13542 if (!(inet4 == 0 || inet4 == 2))
13544 if (!(inet6 == 0 || inet6 == 2))
13548 freeaddrinfo(aitop);
13553 freeaddrinfo(aitop);
13558 rm -f conftest
$ac_exeext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13560 (eval $ac_link) 2>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 echo "$as_me:$LINENO: result: good" >&5
13570 echo "${ECHO_T}good" >&6
13571 buggygetaddrinfo
=no
13573 echo "$as_me: program exited with status $ac_status" >&5
13574 echo "$as_me: failed program was:" >&5
13575 cat conftest.
$ac_ext >&5
13576 ( exit $ac_status )
13577 echo "$as_me:$LINENO: result: buggy" >&5
13578 echo "${ECHO_T}buggy" >&6
13579 buggygetaddrinfo
=yes
13581 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13584 echo "$as_me: failed program was:" >&5
13585 cat conftest.
$ac_ext >&5
13587 echo "$as_me:$LINENO: result: no" >&5
13588 echo "${ECHO_T}no" >&6
13589 buggygetaddrinfo
=yes
13592 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13594 if test "$buggygetaddrinfo" = "yes"; then
13595 if test "$ipv6" = "yes"; then
13596 echo 'Fatal: You must get working getaddrinfo() function.'
13597 echo ' or you can specify "--disable-ipv6"'.
13602 cat >>confdefs.h
<<\_ACEOF
13603 #define HAVE_GETADDRINFO 1
13608 for ac_func
in getnameinfo
13610 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13611 echo "$as_me:$LINENO: checking for $ac_func" >&5
13612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13613 if eval "test \"\${$as_ac_var+set}\" = set"; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 cat >conftest.
$ac_ext <<_ACEOF
13617 #line $LINENO "configure"
13618 #include "confdefs.h"
13619 /* System header to define __stub macros and hopefully few prototypes,
13620 which can conflict with char $ac_func (); below. */
13621 #include <assert.h>
13622 /* Override any gcc2 internal prototype to avoid an error. */
13626 /* We use char because int might match the return type of a gcc2
13627 builtin and then its argument prototype would still apply. */
13631 #ifdef F77_DUMMY_MAIN
13632 # ifdef __cplusplus
13635 int F77_DUMMY_MAIN() { return 1; }
13640 /* The GNU C library defines this for functions which it implements
13641 to always fail with ENOSYS. Some functions are actually named
13642 something starting with __ and the normal name is an alias. */
13643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13653 rm -f conftest.
$ac_objext conftest
$ac_exeext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13655 (eval $ac_link) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try
='test -s conftest$ac_exeext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 eval "$as_ac_var=yes"
13667 echo "$as_me: failed program was:" >&5
13668 cat conftest.
$ac_ext >&5
13669 eval "$as_ac_var=no"
13671 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13675 if test `eval echo '${'$as_ac_var'}'` = yes; then
13676 cat >>confdefs.h
<<_ACEOF
13677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13684 # checks for structures
13685 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13686 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13687 if test "${ac_cv_header_time+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 cat >conftest.
$ac_ext <<_ACEOF
13691 #line $LINENO "configure"
13692 #include "confdefs.h"
13693 #include <sys/types.h>
13694 #include <sys/time.h>
13697 #ifdef F77_DUMMY_MAIN
13698 # ifdef __cplusplus
13701 int F77_DUMMY_MAIN() { return 1; }
13706 if ((struct tm *) 0)
13712 rm -f conftest.
$ac_objext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714 (eval $ac_compile) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try
='test -s conftest.$ac_objext'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_header_time
=yes
13726 echo "$as_me: failed program was:" >&5
13727 cat conftest.
$ac_ext >&5
13728 ac_cv_header_time
=no
13730 rm -f conftest.
$ac_objext conftest.
$ac_ext
13732 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13733 echo "${ECHO_T}$ac_cv_header_time" >&6
13734 if test $ac_cv_header_time = yes; then
13736 cat >>confdefs.h
<<\_ACEOF
13737 #define TIME_WITH_SYS_TIME 1
13742 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13743 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13744 if test "${ac_cv_struct_tm+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 cat >conftest.
$ac_ext <<_ACEOF
13748 #line $LINENO "configure"
13749 #include "confdefs.h"
13750 #include <sys/types.h>
13753 #ifdef F77_DUMMY_MAIN
13754 # ifdef __cplusplus
13757 int F77_DUMMY_MAIN() { return 1; }
13762 struct tm *tp; tp->tm_sec;
13767 rm -f conftest.
$ac_objext
13768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13769 (eval $ac_compile) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try
='test -s conftest.$ac_objext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_cv_struct_tm
=time.h
13781 echo "$as_me: failed program was:" >&5
13782 cat conftest.
$ac_ext >&5
13783 ac_cv_struct_tm
=sys
/time.h
13785 rm -f conftest.
$ac_objext conftest.
$ac_ext
13787 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13788 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13789 if test $ac_cv_struct_tm = sys
/time.h
; then
13791 cat >>confdefs.h
<<\_ACEOF
13792 #define TM_IN_SYS_TIME 1
13797 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13798 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
13799 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 cat >conftest.
$ac_ext <<_ACEOF
13803 #line $LINENO "configure"
13804 #include "confdefs.h"
13805 #include <sys/types.h>
13806 #include <$ac_cv_struct_tm>
13809 #ifdef F77_DUMMY_MAIN
13810 # ifdef __cplusplus
13813 int F77_DUMMY_MAIN() { return 1; }
13818 static struct tm ac_aggr;
13819 if (ac_aggr.tm_zone)
13825 rm -f conftest.
$ac_objext
13826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13827 (eval $ac_compile) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
13831 { ac_try
='test -s conftest.$ac_objext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_member_struct_tm_tm_zone
=yes
13839 echo "$as_me: failed program was:" >&5
13840 cat conftest.
$ac_ext >&5
13841 ac_cv_member_struct_tm_tm_zone
=no
13843 rm -f conftest.
$ac_objext conftest.
$ac_ext
13845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13846 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
13847 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13849 cat >>confdefs.h
<<_ACEOF
13850 #define HAVE_STRUCT_TM_TM_ZONE 1
13856 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13858 cat >>confdefs.h
<<\_ACEOF
13859 #define HAVE_TM_ZONE 1
13863 echo "$as_me:$LINENO: checking for tzname" >&5
13864 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13865 if test "${ac_cv_var_tzname+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 cat >conftest.
$ac_ext <<_ACEOF
13869 #line $LINENO "configure"
13870 #include "confdefs.h"
13872 #ifndef tzname /* For SGI. */
13873 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13876 #ifdef F77_DUMMY_MAIN
13877 # ifdef __cplusplus
13880 int F77_DUMMY_MAIN() { return 1; }
13890 rm -f conftest.
$ac_objext conftest
$ac_exeext
13891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13892 (eval $ac_link) 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
13896 { ac_try
='test -s conftest$ac_exeext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_var_tzname
=yes
13904 echo "$as_me: failed program was:" >&5
13905 cat conftest.
$ac_ext >&5
13906 ac_cv_var_tzname
=no
13908 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13910 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13911 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13912 if test $ac_cv_var_tzname = yes; then
13914 cat >>confdefs.h
<<\_ACEOF
13915 #define HAVE_TZNAME 1
13921 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13922 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13923 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 cat >conftest.
$ac_ext <<_ACEOF
13927 #line $LINENO "configure"
13928 #include "confdefs.h"
13929 $ac_includes_default
13930 #ifdef F77_DUMMY_MAIN
13931 # ifdef __cplusplus
13934 int F77_DUMMY_MAIN() { return 1; }
13939 static struct stat ac_aggr;
13940 if (ac_aggr.st_rdev)
13946 rm -f conftest.
$ac_objext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try
='test -s conftest.$ac_objext'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_cv_member_struct_stat_st_rdev
=yes
13960 echo "$as_me: failed program was:" >&5
13961 cat conftest.
$ac_ext >&5
13962 ac_cv_member_struct_stat_st_rdev
=no
13964 rm -f conftest.
$ac_objext conftest.
$ac_ext
13966 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13967 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13968 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13970 cat >>confdefs.h
<<_ACEOF
13971 #define HAVE_STRUCT_STAT_ST_RDEV 1
13977 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13978 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13979 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 cat >conftest.
$ac_ext <<_ACEOF
13983 #line $LINENO "configure"
13984 #include "confdefs.h"
13985 $ac_includes_default
13986 #ifdef F77_DUMMY_MAIN
13987 # ifdef __cplusplus
13990 int F77_DUMMY_MAIN() { return 1; }
13995 static struct stat ac_aggr;
13996 if (ac_aggr.st_blksize)
14002 rm -f conftest.
$ac_objext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004 (eval $ac_compile) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try
='test -s conftest.$ac_objext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 ac_cv_member_struct_stat_st_blksize
=yes
14016 echo "$as_me: failed program was:" >&5
14017 cat conftest.
$ac_ext >&5
14018 ac_cv_member_struct_stat_st_blksize
=no
14020 rm -f conftest.
$ac_objext conftest.
$ac_ext
14022 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14023 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14024 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14026 cat >>confdefs.h
<<_ACEOF
14027 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14033 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14034 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14035 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 cat >conftest.
$ac_ext <<_ACEOF
14039 #line $LINENO "configure"
14040 #include "confdefs.h"
14041 $ac_includes_default
14042 #ifdef F77_DUMMY_MAIN
14043 # ifdef __cplusplus
14046 int F77_DUMMY_MAIN() { return 1; }
14051 static struct stat ac_aggr;
14052 if (ac_aggr.st_blocks)
14058 rm -f conftest.
$ac_objext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14060 (eval $ac_compile) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } &&
14064 { ac_try
='test -s conftest.$ac_objext'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }; then
14070 ac_cv_member_struct_stat_st_blocks
=yes
14072 echo "$as_me: failed program was:" >&5
14073 cat conftest.
$ac_ext >&5
14074 ac_cv_member_struct_stat_st_blocks
=no
14076 rm -f conftest.
$ac_objext conftest.
$ac_ext
14078 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14079 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14080 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14082 cat >>confdefs.h
<<_ACEOF
14083 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14087 cat >>confdefs.h
<<\_ACEOF
14088 #define HAVE_ST_BLOCKS 1
14092 LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
14097 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
14098 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
14099 if test "${ac_cv_header_time_altzone+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 cat >conftest.
$ac_ext <<_ACEOF
14103 #line $LINENO "configure"
14104 #include "confdefs.h"
14106 #ifdef F77_DUMMY_MAIN
14107 # ifdef __cplusplus
14110 int F77_DUMMY_MAIN() { return 1; }
14120 rm -f conftest.
$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try
='test -s conftest.$ac_objext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_cv_header_time_altzone
=yes
14134 echo "$as_me: failed program was:" >&5
14135 cat conftest.
$ac_ext >&5
14136 ac_cv_header_time_altzone
=no
14138 rm -f conftest.
$ac_objext conftest.
$ac_ext
14141 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
14142 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
14143 if test $ac_cv_header_time_altzone = yes; then
14145 cat >>confdefs.h
<<\_ACEOF
14146 #define HAVE_ALTZONE 1
14152 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
14153 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
14154 cat >conftest.
$ac_ext <<_ACEOF
14155 #line $LINENO "configure"
14156 #include "confdefs.h"
14158 #include <sys/types.h>
14159 #include <sys/select.h>
14160 #include <sys/time.h>
14162 #ifdef F77_DUMMY_MAIN
14163 # ifdef __cplusplus
14166 int F77_DUMMY_MAIN() { return 1; }
14176 rm -f conftest.
$ac_objext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178 (eval $ac_compile) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try
='test -s conftest.$ac_objext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14190 cat >>confdefs.h
<<\_ACEOF
14191 #define SYS_SELECT_WITH_SYS_TIME 1
14197 echo "$as_me: failed program was:" >&5
14198 cat conftest.
$ac_ext >&5
14200 rm -f conftest.
$ac_objext conftest.
$ac_ext
14201 echo "$as_me:$LINENO: result: $was_it_defined" >&5
14202 echo "${ECHO_T}$was_it_defined" >&6
14204 echo "$as_me:$LINENO: checking for addrinfo" >&5
14205 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
14206 if test "${ac_cv_struct_addrinfo+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 cat >conftest.
$ac_ext <<_ACEOF
14210 #line $LINENO "configure"
14211 #include "confdefs.h"
14213 # include <netdb.h>
14214 #ifdef F77_DUMMY_MAIN
14215 # ifdef __cplusplus
14218 int F77_DUMMY_MAIN() { return 1; }
14228 rm -f conftest.
$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try
='test -s conftest.$ac_objext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_struct_addrinfo
=yes
14242 echo "$as_me: failed program was:" >&5
14243 cat conftest.
$ac_ext >&5
14244 ac_cv_struct_addrinfo
=no
14246 rm -f conftest.
$ac_objext conftest.
$ac_ext
14249 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
14250 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
14251 if test $ac_cv_struct_addrinfo = yes; then
14253 cat >>confdefs.h
<<\_ACEOF
14254 #define HAVE_ADDRINFO 1
14259 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
14260 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
14261 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 cat >conftest.
$ac_ext <<_ACEOF
14265 #line $LINENO "configure"
14266 #include "confdefs.h"
14268 # include <sys/types.h>
14269 # include <sys/socket.h>
14270 #ifdef F77_DUMMY_MAIN
14271 # ifdef __cplusplus
14274 int F77_DUMMY_MAIN() { return 1; }
14279 struct sockaddr_storage s
14284 rm -f conftest.
$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
14290 { ac_try
='test -s conftest.$ac_objext'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 ac_cv_struct_sockaddr_storage
=yes
14298 echo "$as_me: failed program was:" >&5
14299 cat conftest.
$ac_ext >&5
14300 ac_cv_struct_sockaddr_storage
=no
14302 rm -f conftest.
$ac_objext conftest.
$ac_ext
14305 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
14306 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
14307 if test $ac_cv_struct_sockaddr_storage = yes; then
14309 cat >>confdefs.h
<<\_ACEOF
14310 #define HAVE_SOCKADDR_STORAGE 1
14315 # checks for compiler characteristics
14318 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
14319 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
14320 if test "${ac_cv_c_char_unsigned+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 cat >conftest.
$ac_ext <<_ACEOF
14324 #line $LINENO "configure"
14325 #include "confdefs.h"
14326 $ac_includes_default
14327 #ifdef F77_DUMMY_MAIN
14328 # ifdef __cplusplus
14331 int F77_DUMMY_MAIN() { return 1; }
14336 static int test_array [1 - 2 * !(((char) -1) < 0)];
14343 rm -f conftest.
$ac_objext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345 (eval $ac_compile) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try
='test -s conftest.$ac_objext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 ac_cv_c_char_unsigned
=no
14357 echo "$as_me: failed program was:" >&5
14358 cat conftest.
$ac_ext >&5
14359 ac_cv_c_char_unsigned
=yes
14361 rm -f conftest.
$ac_objext conftest.
$ac_ext
14363 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
14364 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
14365 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
14366 cat >>confdefs.h
<<\_ACEOF
14367 #define __CHAR_UNSIGNED__ 1
14372 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
14373 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14374 if test "${ac_cv_prog_cc_stdc+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 ac_cv_prog_cc_stdc
=no
14379 cat >conftest.
$ac_ext <<_ACEOF
14380 #line $LINENO "configure"
14381 #include "confdefs.h"
14382 #include <stdarg.h>
14384 #include <sys/types.h>
14385 #include <sys/stat.h>
14386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14387 struct buf { int x; };
14388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14389 static char *e (p, i)
14395 static char *f (char * (*g) (char **, int), char **p, ...)
14400 s = g (p, va_arg (v,int));
14404 int test (int i, double x);
14405 struct s1 {int (*f) (int a);};
14406 struct s2 {int (*f) (double a);};
14407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14410 #ifdef F77_DUMMY_MAIN
14411 # ifdef __cplusplus
14414 int F77_DUMMY_MAIN() { return 1; }
14419 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14424 # Don't try gcc -ansi; that turns off useful extensions and
14425 # breaks some systems' header files.
14426 # AIX -qlanglvl=ansi
14427 # Ultrix and OSF/1 -std1
14428 # HP-UX 10.20 and later -Ae
14429 # HP-UX older versions -Aa -D_HPUX_SOURCE
14430 # SVR4 -Xc -D__EXTENSIONS__
14431 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14433 CC
="$ac_save_CC $ac_arg"
14434 rm -f conftest.
$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436 (eval $ac_compile) 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try
='test -s conftest.$ac_objext'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14446 ac_cv_prog_cc_stdc
=$ac_arg
14449 echo "$as_me: failed program was:" >&5
14450 cat conftest.
$ac_ext >&5
14452 rm -f conftest.
$ac_objext
14454 rm -f conftest.
$ac_ext conftest.
$ac_objext
14459 case "x$ac_cv_prog_cc_stdc" in
14461 echo "$as_me:$LINENO: result: none needed" >&5
14462 echo "${ECHO_T}none needed" >&6 ;;
14464 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
14465 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
14466 CC
="$CC $ac_cv_prog_cc_stdc" ;;
14469 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14470 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14471 if test "${ac_cv_c_const+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 cat >conftest.
$ac_ext <<_ACEOF
14475 #line $LINENO "configure"
14476 #include "confdefs.h"
14478 #ifdef F77_DUMMY_MAIN
14479 # ifdef __cplusplus
14482 int F77_DUMMY_MAIN() { return 1; }
14487 /* FIXME: Include the comments suggested by Paul. */
14488 #ifndef __cplusplus
14489 /* Ultrix mips cc rejects this. */
14490 typedef int charset[2];
14492 /* SunOS 4.1.1 cc rejects this. */
14493 char const *const *ccp;
14495 /* NEC SVR4.0.2 mips cc rejects this. */
14496 struct point {int x, y;};
14497 static struct point const zero = {0,0};
14498 /* AIX XL C 1.02.0.0 rejects this.
14499 It does not let you subtract one const X* pointer from another in
14500 an arm of an if-expression whose if-part is not a constant
14502 const char *g = "string";
14503 ccp = &g + (g ? g-g : 0);
14504 /* HPUX 7.0 cc rejects these. */
14507 ccp = (char const *const *) p;
14508 { /* SCO 3.2v4 cc rejects this. */
14510 char const *s = 0 ? (char *) 0 : (char const *) 0;
14514 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14515 int x[] = {25, 17};
14516 const int *foo = &x[0];
14519 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14520 typedef const int *iptr;
14524 { /* AIX XL C 1.02.0.0 rejects this saying
14525 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14526 struct s { int j; const int *ap[3]; };
14527 struct s *b; b->j = 5;
14529 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14530 const int foo = 10;
14538 rm -f conftest.
$ac_objext
14539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14540 (eval $ac_compile) 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try
='test -s conftest.$ac_objext'
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }; then
14552 echo "$as_me: failed program was:" >&5
14553 cat conftest.
$ac_ext >&5
14556 rm -f conftest.
$ac_objext conftest.
$ac_ext
14558 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14559 echo "${ECHO_T}$ac_cv_c_const" >&6
14560 if test $ac_cv_c_const = no
; then
14562 cat >>confdefs.h
<<\_ACEOF
14570 echo "$as_me:$LINENO: checking for working volatile" >&5
14571 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
14572 cat >conftest.
$ac_ext <<_ACEOF
14573 #line $LINENO "configure"
14574 #include "confdefs.h"
14576 #ifdef F77_DUMMY_MAIN
14577 # ifdef __cplusplus
14580 int F77_DUMMY_MAIN() { return 1; }
14585 volatile int x; x = 0;
14590 rm -f conftest.
$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try
='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14604 echo "$as_me: failed program was:" >&5
14605 cat conftest.
$ac_ext >&5
14607 cat >>confdefs.h
<<\_ACEOF
14613 rm -f conftest.
$ac_objext conftest.
$ac_ext
14614 echo "$as_me:$LINENO: result: $works" >&5
14615 echo "${ECHO_T}$works" >&6
14618 echo "$as_me:$LINENO: checking for working signed char" >&5
14619 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
14620 cat >conftest.
$ac_ext <<_ACEOF
14621 #line $LINENO "configure"
14622 #include "confdefs.h"
14624 #ifdef F77_DUMMY_MAIN
14625 # ifdef __cplusplus
14628 int F77_DUMMY_MAIN() { return 1; }
14638 rm -f conftest.
$ac_objext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640 (eval $ac_compile) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try
='test -s conftest.$ac_objext'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14652 echo "$as_me: failed program was:" >&5
14653 cat conftest.
$ac_ext >&5
14655 cat >>confdefs.h
<<\_ACEOF
14661 rm -f conftest.
$ac_objext conftest.
$ac_ext
14662 echo "$as_me:$LINENO: result: $works" >&5
14663 echo "${ECHO_T}$works" >&6
14666 echo "$as_me:$LINENO: checking for prototypes" >&5
14667 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
14668 cat >conftest.
$ac_ext <<_ACEOF
14669 #line $LINENO "configure"
14670 #include "confdefs.h"
14671 int foo(int x) { return 0; }
14672 #ifdef F77_DUMMY_MAIN
14673 # ifdef __cplusplus
14676 int F77_DUMMY_MAIN() { return 1; }
14686 rm -f conftest.
$ac_objext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14688 (eval $ac_compile) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try
='test -s conftest.$ac_objext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14700 cat >>confdefs.h
<<\_ACEOF
14701 #define HAVE_PROTOTYPES 1
14704 have_prototypes
=yes
14707 echo "$as_me: failed program was:" >&5
14708 cat conftest.
$ac_ext >&5
14710 rm -f conftest.
$ac_objext conftest.
$ac_ext
14711 echo "$as_me:$LINENO: result: $have_prototypes" >&5
14712 echo "${ECHO_T}$have_prototypes" >&6
14715 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
14716 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
14717 cat >conftest.
$ac_ext <<_ACEOF
14718 #line $LINENO "configure"
14719 #include "confdefs.h"
14721 #include <stdarg.h>
14722 int foo(int x, ...) {
14726 va_arg(va, char *);
14727 va_arg(va, double);
14731 #ifdef F77_DUMMY_MAIN
14732 # ifdef __cplusplus
14735 int F77_DUMMY_MAIN() { return 1; }
14740 return foo(10, "", 3.14);
14745 rm -f conftest.
$ac_objext
14746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14747 (eval $ac_compile) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try
='test -s conftest.$ac_objext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14759 cat >>confdefs.h
<<\_ACEOF
14760 #define HAVE_STDARG_PROTOTYPES 1
14766 echo "$as_me: failed program was:" >&5
14767 cat conftest.
$ac_ext >&5
14769 rm -f conftest.
$ac_objext conftest.
$ac_ext
14770 echo "$as_me:$LINENO: result: $works" >&5
14771 echo "${ECHO_T}$works" >&6
14773 if test "$have_prototypes" = yes; then
14775 echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5
14776 echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6
14777 cat >conftest.
$ac_ext <<_ACEOF
14778 #line $LINENO "configure"
14779 #include "confdefs.h"
14780 #include <unistd.h>
14781 #ifdef F77_DUMMY_MAIN
14782 # ifdef __cplusplus
14785 int F77_DUMMY_MAIN() { return 1; }
14790 char **t;execve("@",t,t);
14795 rm -f conftest.
$ac_objext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797 (eval $ac_compile) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try
='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14809 echo "$as_me: failed program was:" >&5
14810 cat conftest.
$ac_ext >&5
14812 cat >>confdefs.h
<<\_ACEOF
14813 #define BAD_EXEC_PROTOTYPES 1
14819 rm -f conftest.
$ac_objext conftest.
$ac_ext
14820 echo "$as_me:$LINENO: result: $bad_prototypes" >&5
14821 echo "${ECHO_T}$bad_prototypes" >&6
14824 # check if sockaddr has sa_len member
14825 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
14826 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
14827 cat >conftest.
$ac_ext <<_ACEOF
14828 #line $LINENO "configure"
14829 #include "confdefs.h"
14830 #include <sys/types.h>
14831 #include <sys/socket.h>
14832 #ifdef F77_DUMMY_MAIN
14833 # ifdef __cplusplus
14836 int F77_DUMMY_MAIN() { return 1; }
14847 rm -f conftest.
$ac_objext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14849 (eval $ac_compile) 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try
='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 echo "$as_me:$LINENO: result: yes" >&5
14860 echo "${ECHO_T}yes" >&6
14862 cat >>confdefs.h
<<\_ACEOF
14863 #define HAVE_SOCKADDR_SA_LEN 1
14867 echo "$as_me: failed program was:" >&5
14868 cat conftest.
$ac_ext >&5
14869 echo "$as_me:$LINENO: result: no" >&5
14870 echo "${ECHO_T}no" >&6
14872 rm -f conftest.
$ac_objext conftest.
$ac_ext
14874 va_list_is_array
=no
14875 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
14876 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
14877 cat >conftest.
$ac_ext <<_ACEOF
14878 #line $LINENO "configure"
14879 #include "confdefs.h"
14881 #ifdef HAVE_STDARG_PROTOTYPES
14882 #include <stdarg.h>
14884 #include <varargs.h>
14887 #ifdef F77_DUMMY_MAIN
14888 # ifdef __cplusplus
14891 int F77_DUMMY_MAIN() { return 1; }
14896 va_list list1, list2; list1 = list2;
14901 rm -f conftest.
$ac_objext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903 (eval $ac_compile) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try
='test -s conftest.$ac_objext'
14908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }; then
14915 echo "$as_me: failed program was:" >&5
14916 cat conftest.
$ac_ext >&5
14919 cat >>confdefs.h
<<\_ACEOF
14920 #define VA_LIST_IS_ARRAY 1
14923 va_list_is_array
=yes
14926 rm -f conftest.
$ac_objext conftest.
$ac_ext
14927 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
14928 echo "${ECHO_T}$va_list_is_array" >&6
14930 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
14934 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
14935 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
14936 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 cat >conftest.
$ac_ext <<_ACEOF
14940 #line $LINENO "configure"
14941 #include "confdefs.h"
14942 /* System header to define __stub macros and hopefully few prototypes,
14943 which can conflict with char gethostbyname_r (); below. */
14944 #include <assert.h>
14945 /* Override any gcc2 internal prototype to avoid an error. */
14949 /* We use char because int might match the return type of a gcc2
14950 builtin and then its argument prototype would still apply. */
14951 char gethostbyname_r ();
14954 #ifdef F77_DUMMY_MAIN
14955 # ifdef __cplusplus
14958 int F77_DUMMY_MAIN() { return 1; }
14963 /* The GNU C library defines this for functions which it implements
14964 to always fail with ENOSYS. Some functions are actually named
14965 something starting with __ and the normal name is an alias. */
14966 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
14969 f = gethostbyname_r;
14976 rm -f conftest.
$ac_objext conftest
$ac_exeext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14978 (eval $ac_link) 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try
='test -s conftest$ac_exeext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_cv_func_gethostbyname_r
=yes
14990 echo "$as_me: failed program was:" >&5
14991 cat conftest.
$ac_ext >&5
14992 ac_cv_func_gethostbyname_r
=no
14994 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14996 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
14997 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
14998 if test $ac_cv_func_gethostbyname_r = yes; then
15000 cat >>confdefs.h
<<\_ACEOF
15001 #define HAVE_GETHOSTBYNAME_R 1
15004 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
15005 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
15007 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
15008 cat >conftest.
$ac_ext <<_ACEOF
15009 #line $LINENO "configure"
15010 #include "confdefs.h"
15012 # include <netdb.h>
15014 #ifdef F77_DUMMY_MAIN
15015 # ifdef __cplusplus
15018 int F77_DUMMY_MAIN() { return 1; }
15025 struct hostent *he, *res;
15030 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
15036 rm -f conftest.
$ac_objext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15038 (eval $ac_compile) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } &&
15042 { ac_try
='test -s conftest.$ac_objext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15049 cat >>confdefs.h
<<\_ACEOF
15050 #define HAVE_GETHOSTBYNAME_R 1
15054 cat >>confdefs.h
<<\_ACEOF
15055 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
15058 echo "$as_me:$LINENO: result: yes" >&5
15059 echo "${ECHO_T}yes" >&6
15062 echo "$as_me: failed program was:" >&5
15063 cat conftest.
$ac_ext >&5
15065 echo "$as_me:$LINENO: result: no" >&5
15066 echo "${ECHO_T}no" >&6
15067 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
15068 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
15069 cat >conftest.
$ac_ext <<_ACEOF
15070 #line $LINENO "configure"
15071 #include "confdefs.h"
15073 # include <netdb.h>
15075 #ifdef F77_DUMMY_MAIN
15076 # ifdef __cplusplus
15079 int F77_DUMMY_MAIN() { return 1; }
15086 struct hostent *he;
15091 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
15097 rm -f conftest.
$ac_objext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try
='test -s conftest.$ac_objext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15110 cat >>confdefs.h
<<\_ACEOF
15111 #define HAVE_GETHOSTBYNAME_R 1
15115 cat >>confdefs.h
<<\_ACEOF
15116 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
15119 echo "$as_me:$LINENO: result: yes" >&5
15120 echo "${ECHO_T}yes" >&6
15123 echo "$as_me: failed program was:" >&5
15124 cat conftest.
$ac_ext >&5
15126 echo "$as_me:$LINENO: result: no" >&5
15127 echo "${ECHO_T}no" >&6
15128 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
15129 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
15130 cat >conftest.
$ac_ext <<_ACEOF
15131 #line $LINENO "configure"
15132 #include "confdefs.h"
15134 # include <netdb.h>
15136 #ifdef F77_DUMMY_MAIN
15137 # ifdef __cplusplus
15140 int F77_DUMMY_MAIN() { return 1; }
15147 struct hostent *he;
15148 struct hostent_data data;
15150 (void) gethostbyname_r(name, he, &data);
15156 rm -f conftest.
$ac_objext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158 (eval $ac_compile) 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } &&
15162 { ac_try
='test -s conftest.$ac_objext'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15169 cat >>confdefs.h
<<\_ACEOF
15170 #define HAVE_GETHOSTBYNAME_R 1
15174 cat >>confdefs.h
<<\_ACEOF
15175 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
15178 echo "$as_me:$LINENO: result: yes" >&5
15179 echo "${ECHO_T}yes" >&6
15182 echo "$as_me: failed program was:" >&5
15183 cat conftest.
$ac_ext >&5
15185 echo "$as_me:$LINENO: result: no" >&5
15186 echo "${ECHO_T}no" >&6
15189 rm -f conftest.
$ac_objext conftest.
$ac_ext
15192 rm -f conftest.
$ac_objext conftest.
$ac_ext
15195 rm -f conftest.
$ac_objext conftest.
$ac_ext
15201 for ac_func
in gethostbyname
15203 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15204 echo "$as_me:$LINENO: checking for $ac_func" >&5
15205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15206 if eval "test \"\${$as_ac_var+set}\" = set"; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 cat >conftest.
$ac_ext <<_ACEOF
15210 #line $LINENO "configure"
15211 #include "confdefs.h"
15212 /* System header to define __stub macros and hopefully few prototypes,
15213 which can conflict with char $ac_func (); below. */
15214 #include <assert.h>
15215 /* Override any gcc2 internal prototype to avoid an error. */
15219 /* We use char because int might match the return type of a gcc2
15220 builtin and then its argument prototype would still apply. */
15224 #ifdef F77_DUMMY_MAIN
15225 # ifdef __cplusplus
15228 int F77_DUMMY_MAIN() { return 1; }
15233 /* The GNU C library defines this for functions which it implements
15234 to always fail with ENOSYS. Some functions are actually named
15235 something starting with __ and the normal name is an alias. */
15236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15246 rm -f conftest.
$ac_objext conftest
$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248 (eval $ac_link) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try
='test -s conftest$ac_exeext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 eval "$as_ac_var=yes"
15260 echo "$as_me: failed program was:" >&5
15261 cat conftest.
$ac_ext >&5
15262 eval "$as_ac_var=no"
15264 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15268 if test `eval echo '${'$as_ac_var'}'` = yes; then
15269 cat >>confdefs.h
<<_ACEOF
15270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15285 # checks for system services
15288 # Linux requires this for correct f.p. operations
15289 echo "$as_me:$LINENO: checking for __fpu_control" >&5
15290 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
15291 if test "${ac_cv_func___fpu_control+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 cat >conftest.
$ac_ext <<_ACEOF
15295 #line $LINENO "configure"
15296 #include "confdefs.h"
15297 /* System header to define __stub macros and hopefully few prototypes,
15298 which can conflict with char __fpu_control (); below. */
15299 #include <assert.h>
15300 /* Override any gcc2 internal prototype to avoid an error. */
15304 /* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15306 char __fpu_control ();
15309 #ifdef F77_DUMMY_MAIN
15310 # ifdef __cplusplus
15313 int F77_DUMMY_MAIN() { return 1; }
15318 /* The GNU C library defines this for functions which it implements
15319 to always fail with ENOSYS. Some functions are actually named
15320 something starting with __ and the normal name is an alias. */
15321 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
15331 rm -f conftest.
$ac_objext conftest
$ac_exeext
15332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15333 (eval $ac_link) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try
='test -s conftest$ac_exeext'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 ac_cv_func___fpu_control
=yes
15345 echo "$as_me: failed program was:" >&5
15346 cat conftest.
$ac_ext >&5
15347 ac_cv_func___fpu_control
=no
15349 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15351 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
15352 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
15353 if test $ac_cv_func___fpu_control = yes; then
15357 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
15358 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
15359 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 ac_check_lib_save_LIBS
=$LIBS
15363 LIBS
="-lieee $LIBS"
15364 cat >conftest.
$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15366 #include "confdefs.h"
15368 /* Override any gcc2 internal prototype to avoid an error. */
15372 /* We use char because int might match the return type of a gcc2
15373 builtin and then its argument prototype would still apply. */
15374 char __fpu_control ();
15375 #ifdef F77_DUMMY_MAIN
15376 # ifdef __cplusplus
15379 int F77_DUMMY_MAIN() { return 1; }
15389 rm -f conftest.
$ac_objext conftest
$ac_exeext
15390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15391 (eval $ac_link) 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
15395 { ac_try
='test -s conftest$ac_exeext'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401 ac_cv_lib_ieee___fpu_control
=yes
15403 echo "$as_me: failed program was:" >&5
15404 cat conftest.
$ac_ext >&5
15405 ac_cv_lib_ieee___fpu_control
=no
15407 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15408 LIBS
=$ac_check_lib_save_LIBS
15410 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
15411 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
15412 if test $ac_cv_lib_ieee___fpu_control = yes; then
15413 cat >>confdefs.h
<<_ACEOF
15414 #define HAVE_LIBIEEE 1
15417 LIBS
="-lieee $LIBS"
15425 # Check for --with-fpectl
15426 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
15427 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
15429 # Check whether --with-fpectl or --without-fpectl was given.
15430 if test "${with_fpectl+set}" = set; then
15431 withval
="$with_fpectl"
15433 if test "$withval" != no
15436 cat >>confdefs.h
<<\_ACEOF
15437 #define WANT_SIGFPE_HANDLER 1
15440 echo "$as_me:$LINENO: result: yes" >&5
15441 echo "${ECHO_T}yes" >&6
15442 else echo "$as_me:$LINENO: result: no" >&5
15443 echo "${ECHO_T}no" >&6
15446 echo "$as_me:$LINENO: result: no" >&5
15447 echo "${ECHO_T}no" >&6
15450 # check for --with-libm=...
15452 case $ac_sys_system in
15457 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
15458 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
15460 # Check whether --with-libm or --without-libm was given.
15461 if test "${with_libm+set}" = set; then
15462 withval
="$with_libm"
15464 if test "$withval" = no
15466 echo "$as_me:$LINENO: result: force LIBM empty" >&5
15467 echo "${ECHO_T}force LIBM empty" >&6
15468 elif test "$withval" != yes
15470 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
15471 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
15472 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
15473 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
15474 { (exit 1); exit 1; }; }
15477 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
15478 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
15481 # check for --with-libc=...
15483 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
15484 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
15486 # Check whether --with-libc or --without-libc was given.
15487 if test "${with_libc+set}" = set; then
15488 withval
="$with_libc"
15490 if test "$withval" = no
15492 echo "$as_me:$LINENO: result: force LIBC empty" >&5
15493 echo "${ECHO_T}force LIBC empty" >&6
15494 elif test "$withval" != yes
15496 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
15497 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
15498 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
15499 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
15500 { (exit 1); exit 1; }; }
15503 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
15504 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
15507 # check for hypot() in math library
15511 for ac_func
in hypot
15513 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15514 echo "$as_me:$LINENO: checking for $ac_func" >&5
15515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15516 if eval "test \"\${$as_ac_var+set}\" = set"; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 cat >conftest.
$ac_ext <<_ACEOF
15520 #line $LINENO "configure"
15521 #include "confdefs.h"
15522 /* System header to define __stub macros and hopefully few prototypes,
15523 which can conflict with char $ac_func (); below. */
15524 #include <assert.h>
15525 /* Override any gcc2 internal prototype to avoid an error. */
15529 /* We use char because int might match the return type of a gcc2
15530 builtin and then its argument prototype would still apply. */
15534 #ifdef F77_DUMMY_MAIN
15535 # ifdef __cplusplus
15538 int F77_DUMMY_MAIN() { return 1; }
15543 /* The GNU C library defines this for functions which it implements
15544 to always fail with ENOSYS. Some functions are actually named
15545 something starting with __ and the normal name is an alias. */
15546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15556 rm -f conftest.
$ac_objext conftest
$ac_exeext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558 (eval $ac_link) 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
15562 { ac_try
='test -s conftest$ac_exeext'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 eval "$as_ac_var=yes"
15570 echo "$as_me: failed program was:" >&5
15571 cat conftest.
$ac_ext >&5
15572 eval "$as_ac_var=no"
15574 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15578 if test `eval echo '${'$as_ac_var'}'` = yes; then
15579 cat >>confdefs.h
<<_ACEOF
15580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15584 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
15591 # check for wchar.h
15592 if test "${ac_cv_header_wchar_h+set}" = set; then
15593 echo "$as_me:$LINENO: checking for wchar.h" >&5
15594 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
15595 if test "${ac_cv_header_wchar_h+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
15599 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
15601 # Is the header compilable?
15602 echo "$as_me:$LINENO: checking wchar.h usability" >&5
15603 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
15604 cat >conftest.
$ac_ext <<_ACEOF
15605 #line $LINENO "configure"
15606 #include "confdefs.h"
15607 $ac_includes_default
15610 rm -f conftest.
$ac_objext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15612 (eval $ac_compile) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try
='test -s conftest.$ac_objext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_header_compiler
=yes
15624 echo "$as_me: failed program was:" >&5
15625 cat conftest.
$ac_ext >&5
15626 ac_header_compiler
=no
15628 rm -f conftest.
$ac_objext conftest.
$ac_ext
15629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630 echo "${ECHO_T}$ac_header_compiler" >&6
15632 # Is the header present?
15633 echo "$as_me:$LINENO: checking wchar.h presence" >&5
15634 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
15635 cat >conftest.
$ac_ext <<_ACEOF
15636 #line $LINENO "configure"
15637 #include "confdefs.h"
15640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15641 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15643 egrep -v '^ *\+' conftest.er1
>conftest.err
15645 cat conftest.err
>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } >/dev
/null
; then
15648 if test -s conftest.err
; then
15649 ac_cpp_err
=$ac_c_preproc_warn_flag
15656 if test -z "$ac_cpp_err"; then
15657 ac_header_preproc
=yes
15659 echo "$as_me: failed program was:" >&5
15660 cat conftest.
$ac_ext >&5
15661 ac_header_preproc
=no
15663 rm -f conftest.err conftest.
$ac_ext
15664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15665 echo "${ECHO_T}$ac_header_preproc" >&6
15667 # So? What about this header?
15668 case $ac_header_compiler:$ac_header_preproc in
15670 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
15671 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
15673 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
15675 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
15676 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
15678 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
15680 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
15682 echo "$as_me:$LINENO: checking for wchar.h" >&5
15683 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
15684 if test "${ac_cv_header_wchar_h+set}" = set; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 ac_cv_header_wchar_h
=$ac_header_preproc
15689 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
15690 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
15693 if test $ac_cv_header_wchar_h = yes; then
15696 cat >>confdefs.h
<<\_ACEOF
15697 #define HAVE_WCHAR_H 1
15709 # determine wchar_t size
15710 if test "$wchar_h" = yes
15712 echo "$as_me:$LINENO: checking for wchar_t" >&5
15713 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15714 if test "${ac_cv_type_wchar_t+set}" = set; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 cat >conftest.
$ac_ext <<_ACEOF
15718 #line $LINENO "configure"
15719 #include "confdefs.h"
15722 #ifdef F77_DUMMY_MAIN
15723 # ifdef __cplusplus
15726 int F77_DUMMY_MAIN() { return 1; }
15733 if (sizeof (wchar_t))
15739 rm -f conftest.
$ac_objext
15740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15741 (eval $ac_compile) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try
='test -s conftest.$ac_objext'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_cv_type_wchar_t
=yes
15753 echo "$as_me: failed program was:" >&5
15754 cat conftest.
$ac_ext >&5
15755 ac_cv_type_wchar_t
=no
15757 rm -f conftest.
$ac_objext conftest.
$ac_ext
15759 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
15760 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
15762 echo "$as_me:$LINENO: checking size of wchar_t" >&5
15763 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
15764 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 if test "$ac_cv_type_wchar_t" = yes; then
15768 # The cast to unsigned long works around a bug in the HP C Compiler
15769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15771 # This bug is HP SR number 8606223364.
15772 if test "$cross_compiling" = yes; then
15773 # Depending upon the size, compute the lo and hi bounds.
15774 cat >conftest.
$ac_ext <<_ACEOF
15775 #line $LINENO "configure"
15776 #include "confdefs.h"
15779 #ifdef F77_DUMMY_MAIN
15780 # ifdef __cplusplus
15783 int F77_DUMMY_MAIN() { return 1; }
15788 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
15795 rm -f conftest.
$ac_objext
15796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15797 (eval $ac_compile) 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
15801 { ac_try
='test -s conftest.$ac_objext'
15802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15803 (eval $ac_try) 2>&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
15809 cat >conftest.
$ac_ext <<_ACEOF
15810 #line $LINENO "configure"
15811 #include "confdefs.h"
15814 #ifdef F77_DUMMY_MAIN
15815 # ifdef __cplusplus
15818 int F77_DUMMY_MAIN() { return 1; }
15823 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
15830 rm -f conftest.
$ac_objext
15831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15832 (eval $ac_compile) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try
='test -s conftest.$ac_objext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 ac_hi
=$ac_mid; break
15844 echo "$as_me: failed program was:" >&5
15845 cat conftest.
$ac_ext >&5
15846 ac_lo
=`expr $ac_mid + 1`
15847 if test $ac_lo -le $ac_mid; then
15851 ac_mid
=`expr 2 '*' $ac_mid + 1`
15853 rm -f conftest.
$ac_objext conftest.
$ac_ext
15856 echo "$as_me: failed program was:" >&5
15857 cat conftest.
$ac_ext >&5
15858 cat >conftest.
$ac_ext <<_ACEOF
15859 #line $LINENO "configure"
15860 #include "confdefs.h"
15863 #ifdef F77_DUMMY_MAIN
15864 # ifdef __cplusplus
15867 int F77_DUMMY_MAIN() { return 1; }
15872 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
15879 rm -f conftest.
$ac_objext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15881 (eval $ac_compile) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try
='test -s conftest.$ac_objext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15893 cat >conftest.
$ac_ext <<_ACEOF
15894 #line $LINENO "configure"
15895 #include "confdefs.h"
15898 #ifdef F77_DUMMY_MAIN
15899 # ifdef __cplusplus
15902 int F77_DUMMY_MAIN() { return 1; }
15907 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
15914 rm -f conftest.
$ac_objext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15916 (eval $ac_compile) 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
15920 { ac_try
='test -s conftest.$ac_objext'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_lo
=$ac_mid; break
15928 echo "$as_me: failed program was:" >&5
15929 cat conftest.
$ac_ext >&5
15930 ac_hi
=`expr '(' $ac_mid ')' - 1`
15931 if test $ac_mid -le $ac_hi; then
15935 ac_mid
=`expr 2 '*' $ac_mid`
15937 rm -f conftest.
$ac_objext conftest.
$ac_ext
15940 echo "$as_me: failed program was:" >&5
15941 cat conftest.
$ac_ext >&5
15944 rm -f conftest.
$ac_objext conftest.
$ac_ext
15946 rm -f conftest.
$ac_objext conftest.
$ac_ext
15947 # Binary search between lo and hi bounds.
15948 while test "x$ac_lo" != "x$ac_hi"; do
15949 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15950 cat >conftest.
$ac_ext <<_ACEOF
15951 #line $LINENO "configure"
15952 #include "confdefs.h"
15955 #ifdef F77_DUMMY_MAIN
15956 # ifdef __cplusplus
15959 int F77_DUMMY_MAIN() { return 1; }
15964 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
15971 rm -f conftest.
$ac_objext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973 (eval $ac_compile) 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try
='test -s conftest.$ac_objext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15985 echo "$as_me: failed program was:" >&5
15986 cat conftest.
$ac_ext >&5
15987 ac_lo
=`expr '(' $ac_mid ')' + 1`
15989 rm -f conftest.
$ac_objext conftest.
$ac_ext
15992 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
15993 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
15994 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
15995 { (exit 1); exit 1; }; } ;;
15998 if test "$cross_compiling" = yes; then
15999 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16000 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16001 { (exit 1); exit 1; }; }
16003 cat >conftest.
$ac_ext <<_ACEOF
16004 #line $LINENO "configure"
16005 #include "confdefs.h"
16008 long longval () { return (long) (sizeof (wchar_t)); }
16009 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
16011 #include <stdlib.h>
16012 #ifdef F77_DUMMY_MAIN
16013 # ifdef __cplusplus
16016 int F77_DUMMY_MAIN() { return 1; }
16022 FILE *f = fopen ("conftest.val", "w");
16025 if (((long) (sizeof (wchar_t))) < 0)
16027 long i = longval ();
16028 if (i != ((long) (sizeof (wchar_t))))
16030 fprintf (f, "%ld\n", i);
16034 unsigned long i = ulongval ();
16035 if (i != ((long) (sizeof (wchar_t))))
16037 fprintf (f, "%lu\n", i);
16039 exit (ferror (f) || fclose (f) != 0);
16045 rm -f conftest
$ac_exeext
16046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16047 (eval $ac_link) 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_cv_sizeof_wchar_t
=`cat conftest.val`
16058 echo "$as_me: program exited with status $ac_status" >&5
16059 echo "$as_me: failed program was:" >&5
16060 cat conftest.
$ac_ext >&5
16061 ( exit $ac_status )
16062 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
16063 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
16064 { (exit 1); exit 1; }; }
16066 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16071 ac_cv_sizeof_wchar_t
=0
16074 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
16075 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
16076 cat >>confdefs.h
<<_ACEOF
16077 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
16083 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
16084 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
16085 # Check whether --enable-unicode or --disable-unicode was given.
16086 if test "${enable_unicode+set}" = set; then
16087 enableval
="$enable_unicode"
16093 if test $enable_unicode = yes
16095 # Without any arguments, Py_UNICODE defaults to two-byte mode
16096 enable_unicode
="ucs2"
16101 case "$enable_unicode" in
16102 ucs2
) unicode_size
="2"
16103 cat >>confdefs.h
<<\_ACEOF
16104 #define Py_UNICODE_SIZE 2
16108 ucs4
) unicode_size
="4"
16109 cat >>confdefs.h
<<\_ACEOF
16110 #define Py_UNICODE_SIZE 4
16120 if test "$enable_unicode" = "no"
16123 echo "$as_me:$LINENO: result: not used" >&5
16124 echo "${ECHO_T}not used" >&6
16126 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
16128 cat >>confdefs.h
<<\_ACEOF
16129 #define Py_USING_UNICODE 1
16132 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t"
16134 PY_UNICODE_TYPE
="wchar_t"
16136 cat >>confdefs.h
<<\_ACEOF
16137 #define HAVE_USABLE_WCHAR_T 1
16140 cat >>confdefs.h
<<\_ACEOF
16141 #define PY_UNICODE_TYPE wchar_t
16144 elif test "$ac_cv_sizeof_short" = "$unicode_size"
16146 PY_UNICODE_TYPE
="unsigned short"
16147 cat >>confdefs.h
<<\_ACEOF
16148 #define PY_UNICODE_TYPE unsigned short
16151 elif test "$ac_cv_sizeof_long" = "$unicode_size"
16153 PY_UNICODE_TYPE
="unsigned long"
16154 cat >>confdefs.h
<<\_ACEOF
16155 #define PY_UNICODE_TYPE unsigned long
16159 PY_UNICODE_TYPE
="no type found"
16161 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
16162 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
16165 # check for endianness
16166 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16167 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16168 if test "${ac_cv_c_bigendian+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 # See if sys/param.h defines the BYTE_ORDER macro.
16172 cat >conftest.
$ac_ext <<_ACEOF
16173 #line $LINENO "configure"
16174 #include "confdefs.h"
16175 #include <sys/types.h>
16176 #include <sys/param.h>
16178 #ifdef F77_DUMMY_MAIN
16179 # ifdef __cplusplus
16182 int F77_DUMMY_MAIN() { return 1; }
16187 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16188 bogus endian macros
16195 rm -f conftest.
$ac_objext
16196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16197 (eval $ac_compile) 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try
='test -s conftest.$ac_objext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 # It does; now see whether it defined to BIG_ENDIAN or not.
16208 cat >conftest.
$ac_ext <<_ACEOF
16209 #line $LINENO "configure"
16210 #include "confdefs.h"
16211 #include <sys/types.h>
16212 #include <sys/param.h>
16214 #ifdef F77_DUMMY_MAIN
16215 # ifdef __cplusplus
16218 int F77_DUMMY_MAIN() { return 1; }
16223 #if BYTE_ORDER != BIG_ENDIAN
16231 rm -f conftest.
$ac_objext
16232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16233 (eval $ac_compile) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
16237 { ac_try
='test -s conftest.$ac_objext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_c_bigendian
=yes
16245 echo "$as_me: failed program was:" >&5
16246 cat conftest.
$ac_ext >&5
16247 ac_cv_c_bigendian
=no
16249 rm -f conftest.
$ac_objext conftest.
$ac_ext
16251 echo "$as_me: failed program was:" >&5
16252 cat conftest.
$ac_ext >&5
16253 # It does not; compile a test program.
16254 if test "$cross_compiling" = yes; then
16255 # try to guess the endianess by grep'ing values into an object file
16256 ac_cv_c_bigendian
=unknown
16257 cat >conftest.
$ac_ext <<_ACEOF
16258 #line $LINENO "configure"
16259 #include "confdefs.h"
16260 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16261 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16262 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
16263 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16264 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16265 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
16266 #ifdef F77_DUMMY_MAIN
16267 # ifdef __cplusplus
16270 int F77_DUMMY_MAIN() { return 1; }
16275 _ascii (); _ebcdic ();
16280 rm -f conftest.
$ac_objext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16282 (eval $ac_compile) 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } &&
16286 { ac_try
='test -s conftest.$ac_objext'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 if fgrep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16293 ac_cv_c_bigendian
=yes
16295 if fgrep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16296 if test "$ac_cv_c_bigendian" = unknown
; then
16297 ac_cv_c_bigendian
=no
16299 # finding both strings is unlikely to happen, but who knows?
16300 ac_cv_c_bigendian
=unknown
16304 echo "$as_me: failed program was:" >&5
16305 cat conftest.
$ac_ext >&5
16307 rm -f conftest.
$ac_objext conftest.
$ac_ext
16309 cat >conftest.
$ac_ext <<_ACEOF
16310 #line $LINENO "configure"
16311 #include "confdefs.h"
16315 /* Are we little or big endian? From Harbison&Steele. */
16319 char c[sizeof (long)];
16322 exit (u.c[sizeof (long) - 1] == 1);
16325 rm -f conftest
$ac_exeext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16327 (eval $ac_link) 2>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16336 ac_cv_c_bigendian
=no
16338 echo "$as_me: program exited with status $ac_status" >&5
16339 echo "$as_me: failed program was:" >&5
16340 cat conftest.
$ac_ext >&5
16341 ( exit $ac_status )
16342 ac_cv_c_bigendian
=yes
16344 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16347 rm -f conftest.
$ac_objext conftest.
$ac_ext
16349 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16350 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16351 case $ac_cv_c_bigendian in
16354 cat >>confdefs.h
<<\_ACEOF
16355 #define WORDS_BIGENDIAN 1
16361 { { echo "$as_me:$LINENO: error: unknown endianess
16362 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16363 echo "$as_me: error: unknown endianess
16364 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16365 { (exit 1); exit 1; }; } ;;
16369 # Check whether right shifting a negative integer extends the sign bit
16370 # or fills with zeros (like the Cray J90, according to Tim Peters).
16371 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
16372 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
16373 if test "${ac_cv_rshift_extends_sign+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 if test "$cross_compiling" = yes; then
16378 ac_cv_rshift_extends_sign
=yes
16380 cat >conftest.
$ac_ext <<_ACEOF
16381 #line $LINENO "configure"
16382 #include "confdefs.h"
16386 exit(((-1)>>3 == -1) ? 0 : 1);
16390 rm -f conftest
$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392 (eval $ac_link) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 ac_cv_rshift_extends_sign
=yes
16403 echo "$as_me: program exited with status $ac_status" >&5
16404 echo "$as_me: failed program was:" >&5
16405 cat conftest.
$ac_ext >&5
16406 ( exit $ac_status )
16407 ac_cv_rshift_extends_sign
=no
16409 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16413 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
16414 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
16415 if test "$ac_cv_rshift_extends_sign" = no
16418 cat >>confdefs.h
<<\_ACEOF
16419 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
16424 # check for getc_unlocked and related locking functions
16425 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
16426 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
16427 if test "${ac_cv_have_getc_unlocked+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16431 cat >conftest.
$ac_ext <<_ACEOF
16432 #line $LINENO "configure"
16433 #include "confdefs.h"
16435 #ifdef F77_DUMMY_MAIN
16436 # ifdef __cplusplus
16439 int F77_DUMMY_MAIN() { return 1; }
16445 FILE *f = fopen("/dev/null", "r");
16454 rm -f conftest.
$ac_objext conftest
$ac_exeext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16456 (eval $ac_link) 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try
='test -s conftest$ac_exeext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 ac_cv_have_getc_unlocked
=yes
16468 echo "$as_me: failed program was:" >&5
16469 cat conftest.
$ac_ext >&5
16470 ac_cv_have_getc_unlocked
=no
16472 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16475 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
16476 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
16477 if test "$ac_cv_have_getc_unlocked" = yes
16480 cat >>confdefs.h
<<\_ACEOF
16481 #define HAVE_GETC_UNLOCKED 1
16486 # check for readline 2.2
16487 cat >conftest.
$ac_ext <<_ACEOF
16488 #line $LINENO "configure"
16489 #include "confdefs.h"
16490 #include <readline/readline.h>
16492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16493 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16495 egrep -v '^ *\+' conftest.er1
>conftest.err
16497 cat conftest.err
>&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } >/dev
/null
; then
16500 if test -s conftest.err
; then
16501 ac_cpp_err
=$ac_c_preproc_warn_flag
16508 if test -z "$ac_cpp_err"; then
16511 echo "$as_me: failed program was:" >&5
16512 cat conftest.
$ac_ext >&5
16515 rm -f conftest.err conftest.
$ac_ext
16516 if test $have_readline = yes
16518 cat >conftest.
$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16520 #include "confdefs.h"
16521 #include <readline/readline.h>
16524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16525 egrep "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
16527 cat >>confdefs.h
<<\_ACEOF
16528 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
16536 # check for readline 4.0
16537 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
16538 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
16539 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 ac_check_lib_save_LIBS
=$LIBS
16543 LIBS
="-lreadline -ltermcap $LIBS"
16544 cat >conftest.
$ac_ext <<_ACEOF
16545 #line $LINENO "configure"
16546 #include "confdefs.h"
16548 /* Override any gcc2 internal prototype to avoid an error. */
16552 /* We use char because int might match the return type of a gcc2
16553 builtin and then its argument prototype would still apply. */
16554 char rl_pre_input_hook ();
16555 #ifdef F77_DUMMY_MAIN
16556 # ifdef __cplusplus
16559 int F77_DUMMY_MAIN() { return 1; }
16564 rl_pre_input_hook ();
16569 rm -f conftest.
$ac_objext conftest
$ac_exeext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16571 (eval $ac_link) 2>&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
16575 { ac_try
='test -s conftest$ac_exeext'
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
16581 ac_cv_lib_readline_rl_pre_input_hook
=yes
16583 echo "$as_me: failed program was:" >&5
16584 cat conftest.
$ac_ext >&5
16585 ac_cv_lib_readline_rl_pre_input_hook
=no
16587 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16588 LIBS
=$ac_check_lib_save_LIBS
16590 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
16591 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
16592 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
16594 cat >>confdefs.h
<<\_ACEOF
16595 #define HAVE_RL_PRE_INPUT_HOOK 1
16601 # check for readline 4.2
16602 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
16603 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
16604 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16607 ac_check_lib_save_LIBS
=$LIBS
16608 LIBS
="-lreadline -ltermcap $LIBS"
16609 cat >conftest.
$ac_ext <<_ACEOF
16610 #line $LINENO "configure"
16611 #include "confdefs.h"
16613 /* Override any gcc2 internal prototype to avoid an error. */
16617 /* We use char because int might match the return type of a gcc2
16618 builtin and then its argument prototype would still apply. */
16619 char rl_completion_matches ();
16620 #ifdef F77_DUMMY_MAIN
16621 # ifdef __cplusplus
16624 int F77_DUMMY_MAIN() { return 1; }
16629 rl_completion_matches ();
16634 rm -f conftest.
$ac_objext conftest
$ac_exeext
16635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16636 (eval $ac_link) 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
16640 { ac_try
='test -s conftest$ac_exeext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16646 ac_cv_lib_readline_rl_completion_matches
=yes
16648 echo "$as_me: failed program was:" >&5
16649 cat conftest.
$ac_ext >&5
16650 ac_cv_lib_readline_rl_completion_matches
=no
16652 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16653 LIBS
=$ac_check_lib_save_LIBS
16655 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
16656 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
16657 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
16659 cat >>confdefs.h
<<\_ACEOF
16660 #define HAVE_RL_COMPLETION_MATCHES 1
16666 echo "$as_me:$LINENO: checking for broken nice()" >&5
16667 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
16668 if test "${ac_cv_broken_nice+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 if test "$cross_compiling" = yes; then
16673 ac_cv_broken_nice
=no
16675 cat >conftest.
$ac_ext <<_ACEOF
16676 #line $LINENO "configure"
16677 #include "confdefs.h"
16681 int val1 = nice(1);
16682 if (val1 != -1 && val1 == nice(2))
16688 rm -f conftest
$ac_exeext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16690 (eval $ac_link) 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 ac_cv_broken_nice
=yes
16701 echo "$as_me: program exited with status $ac_status" >&5
16702 echo "$as_me: failed program was:" >&5
16703 cat conftest.
$ac_ext >&5
16704 ( exit $ac_status )
16705 ac_cv_broken_nice
=no
16707 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16711 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
16712 echo "${ECHO_T}$ac_cv_broken_nice" >&6
16713 if test "$ac_cv_broken_nice" = yes
16716 cat >>confdefs.h
<<\_ACEOF
16717 #define HAVE_BROKEN_NICE 1
16722 # tzset(3) exists and works like we expect it to
16723 echo "$as_me:$LINENO: checking for working tzset()" >&5
16724 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
16725 if test "${ac_cv_working_tzset+set}" = set; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16729 if test "$cross_compiling" = yes; then
16730 ac_cv_working_tzset
=no
16732 cat >conftest.
$ac_ext <<_ACEOF
16733 #line $LINENO "configure"
16734 #include "confdefs.h"
16736 #include <stdlib.h>
16743 now = time((time_t*)NULL);
16744 putenv("TZ=UTC+0");
16746 gmt_hour = localtime(&now)->tm_hour;
16747 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
16749 eastern_hour = localtime(&now)->tm_hour;
16750 if (eastern_hour == gmt_hour)
16756 rm -f conftest
$ac_exeext
16757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16758 (eval $ac_link) 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 ac_cv_working_tzset
=yes
16769 echo "$as_me: program exited with status $ac_status" >&5
16770 echo "$as_me: failed program was:" >&5
16771 cat conftest.
$ac_ext >&5
16772 ( exit $ac_status )
16773 ac_cv_working_tzset
=no
16775 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
16780 echo "${ECHO_T}$ac_cv_working_tzset" >&6
16781 if test "$ac_cv_working_tzset" = yes
16784 cat >>confdefs.h
<<\_ACEOF
16785 #define HAVE_WORKING_TZSET 1
16790 # Look for subsecond timestamps in struct stat
16791 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
16792 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
16793 if test "${ac_cv_stat_tv_nsec+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16796 cat >conftest.
$ac_ext <<_ACEOF
16797 #line $LINENO "configure"
16798 #include "confdefs.h"
16799 #include <sys/stat.h>
16800 #ifdef F77_DUMMY_MAIN
16801 # ifdef __cplusplus
16804 int F77_DUMMY_MAIN() { return 1; }
16811 st.st_mtim.tv_nsec = 1;
16817 rm -f conftest.
$ac_objext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16819 (eval $ac_compile) 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try
='test -s conftest.$ac_objext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_cv_stat_tv_nsec
=yes
16831 echo "$as_me: failed program was:" >&5
16832 cat conftest.
$ac_ext >&5
16833 ac_cv_stat_tv_nsec
=no
16835 rm -f conftest.
$ac_objext conftest.
$ac_ext
16838 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
16839 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
16840 if test "$ac_cv_stat_tv_nsec" = yes
16843 cat >>confdefs.h
<<\_ACEOF
16844 #define HAVE_STAT_TV_NSEC 1
16849 # On HP/UX 11.0, mvwdelch is a block with a return statement
16850 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
16851 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
16852 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16855 cat >conftest.
$ac_ext <<_ACEOF
16856 #line $LINENO "configure"
16857 #include "confdefs.h"
16858 #include <curses.h>
16859 #ifdef F77_DUMMY_MAIN
16860 # ifdef __cplusplus
16863 int F77_DUMMY_MAIN() { return 1; }
16870 rtn = mvwdelch(0,0,0);
16876 rm -f conftest.
$ac_objext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16878 (eval $ac_compile) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try
='test -s conftest.$ac_objext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_mvwdelch_is_expression
=yes
16890 echo "$as_me: failed program was:" >&5
16891 cat conftest.
$ac_ext >&5
16892 ac_cv_mvwdelch_is_expression
=no
16894 rm -f conftest.
$ac_objext conftest.
$ac_ext
16897 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
16898 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
16900 if test "$ac_cv_mvwdelch_is_expression" = yes
16903 cat >>confdefs.h
<<\_ACEOF
16904 #define MVWDELCH_IS_EXPRESSION 1
16909 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
16910 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
16911 if test "${ac_cv_window_has_flags+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 cat >conftest.
$ac_ext <<_ACEOF
16915 #line $LINENO "configure"
16916 #include "confdefs.h"
16917 #include <curses.h>
16918 #ifdef F77_DUMMY_MAIN
16919 # ifdef __cplusplus
16922 int F77_DUMMY_MAIN() { return 1; }
16935 rm -f conftest.
$ac_objext
16936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16937 (eval $ac_compile) 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
16941 { ac_try
='test -s conftest.$ac_objext'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 ac_cv_window_has_flags
=yes
16949 echo "$as_me: failed program was:" >&5
16950 cat conftest.
$ac_ext >&5
16951 ac_cv_window_has_flags
=no
16953 rm -f conftest.
$ac_objext conftest.
$ac_ext
16956 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
16957 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
16960 if test "$ac_cv_window_has_flags" = yes
16963 cat >>confdefs.h
<<\_ACEOF
16964 #define WINDOW_HAS_FLAGS 1
16969 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
16970 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
16972 if test -e /dev
/ptmx
16974 echo "$as_me:$LINENO: result: yes" >&5
16975 echo "${ECHO_T}yes" >&6
16977 cat >>confdefs.h
<<\_ACEOF
16978 #define HAVE_DEV_PTMX 1
16982 echo "$as_me:$LINENO: result: no" >&5
16983 echo "${ECHO_T}no" >&6
16986 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
16987 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
16989 if test -e /dev
/ptc
16991 echo "$as_me:$LINENO: result: yes" >&5
16992 echo "${ECHO_T}yes" >&6
16994 cat >>confdefs.h
<<\_ACEOF
16995 #define HAVE_DEV_PTC 1
16999 echo "$as_me:$LINENO: result: no" >&5
17000 echo "${ECHO_T}no" >&6
17003 echo "$as_me:$LINENO: checking for socklen_t" >&5
17004 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17005 if test "${ac_cv_type_socklen_t+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 cat >conftest.
$ac_ext <<_ACEOF
17009 #line $LINENO "configure"
17010 #include "confdefs.h"
17012 #ifdef HAVE_SYS_TYPES_H
17013 #include <sys/types.h>
17015 #ifdef HAVE_SYS_SOCKET_H
17016 #include <sys/socket.h>
17020 #ifdef F77_DUMMY_MAIN
17021 # ifdef __cplusplus
17024 int F77_DUMMY_MAIN() { return 1; }
17029 if ((socklen_t *) 0)
17031 if (sizeof (socklen_t))
17037 rm -f conftest.
$ac_objext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17039 (eval $ac_compile) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try
='test -s conftest.$ac_objext'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_cv_type_socklen_t
=yes
17051 echo "$as_me: failed program was:" >&5
17052 cat conftest.
$ac_ext >&5
17053 ac_cv_type_socklen_t
=no
17055 rm -f conftest.
$ac_objext conftest.
$ac_ext
17057 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17058 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17059 if test $ac_cv_type_socklen_t = yes; then
17063 cat >>confdefs.h
<<\_ACEOF
17064 #define socklen_t int
17072 for h
in `(cd $srcdir;echo Python/thread_*.h)`
17074 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
17078 SRCDIRS
="Parser Grammar Objects Python Modules Mac Mac/Python"
17079 echo "$as_me:$LINENO: checking for build directories" >&5
17080 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
17081 for dir
in $SRCDIRS; do
17082 if test ! -d $dir; then
17086 echo "$as_me:$LINENO: result: done" >&5
17087 echo "${ECHO_T}done" >&6
17089 # generate output files
17090 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
17092 cat >confcache
<<\_ACEOF
17093 # This file is a shell script that caches the results of configure
17094 # tests run on this system so they can be shared between configure
17095 # scripts and configure runs, see configure's option --config-cache.
17096 # It is not useful on other systems. If it contains results you don't
17097 # want to keep, you may remove or edit it.
17099 # config.status only pays attention to the cache file if you give it
17100 # the --recheck option to rerun configure.
17102 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17103 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17104 # following values.
17108 # The following way of writing the cache mishandles newlines in values,
17109 # but we know of no workaround that is simple, portable, and efficient.
17110 # So, don't put newlines in cache variables' values.
17111 # Ultrix sh set writes to stderr and can't be redirected directly,
17112 # and sets the high bit in the cache file unless we assign to the vars.
17115 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17117 # `set' does not quote correctly, so add quotes (double-quote
17118 # substitution turns \\\\ into \\, and sed turns \\ into \).
17121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17124 # `set' quotes correctly as required by POSIX, so do not add quotes.
17126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17133 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17135 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17137 if cmp -s $cache_file confcache
; then :; else
17138 if test -w $cache_file; then
17139 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17140 cat confcache
>$cache_file
17142 echo "not updating unwritable cache $cache_file"
17147 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17148 # Let make expand exec_prefix.
17149 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17151 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17152 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17153 # trailing colons and then remove the whole line if VPATH becomes empty
17154 # (actually we leave an empty line to preserve line numbers).
17155 if test "x$srcdir" = x.
; then
17156 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17157 s/:*\$(srcdir):*/:/;
17158 s/:*\${srcdir}:*/:/;
17160 s/^\([^=]*=[ ]*\):*/\1/;
17166 DEFS
=-DHAVE_CONFIG_H
17169 : ${CONFIG_STATUS=./config.status}
17170 ac_clean_files_save
=$ac_clean_files
17171 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17172 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17173 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17174 cat >$CONFIG_STATUS <<_ACEOF
17176 # Generated by $as_me.
17177 # Run this file to recreate the current configuration.
17178 # Compiler output produced by configure, useful for debugging
17179 # configure, is in config.log if it exists.
17182 SHELL=\${CONFIG_SHELL-$SHELL}
17185 cat >>$CONFIG_STATUS <<\_ACEOF
17187 ## --------------------- ##
17188 ## M4sh Initialization. ##
17189 ## --------------------- ##
17191 # Be Bourne compatible
17192 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17195 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17200 # Support unset when possible.
17201 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
17207 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
17208 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
17209 { LANG
=C
; export LANG
; }
17210 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17211 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
17212 { LC_ALL
=C
; export LC_ALL
; }
17213 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17214 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
17215 { LC_TIME
=C
; export LC_TIME
; }
17216 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17217 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
17218 { LC_CTYPE
=C
; export LC_CTYPE
; }
17219 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17220 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
17221 { LANGUAGE
=C
; export LANGUAGE
; }
17222 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17223 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
17224 { LC_COLLATE
=C
; export LC_COLLATE
; }
17225 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17226 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
17227 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
17228 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17229 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
17230 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
17233 # Name of the executable.
17234 as_me
=`(basename "$0") 2>/dev/null ||
17235 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17236 X"$0" : 'X\(//\)$' \| \
17237 X"$0" : 'X\(/\)$' \| \
17238 . : '\(.\)' 2>/dev/null ||
17240 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17241 /^X\/\(\/\/\)$/{ s//\1/; q; }
17242 /^X\/\(\/\).*/{ s//\1/; q; }
17245 # PATH needs CR, and LINENO needs CR and PATH.
17246 # Avoid depending upon Character Ranges.
17247 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17248 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17249 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17250 as_cr_digits
='0123456789'
17251 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17253 # The user is always right.
17254 if test "${PATH_SEPARATOR+set}" != set; then
17255 echo "#! /bin/sh" >conftest.sh
17256 echo "exit 0" >>conftest.sh
17257 chmod +x conftest.sh
17258 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
17267 as_lineno_1
=$LINENO
17268 as_lineno_2
=$LINENO
17269 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
17270 test "x$as_lineno_1" != "x$as_lineno_2" &&
17271 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
17272 # Find who we are. Look in the path if we contain no path at all
17275 *[\\/]* ) as_myself
=$0 ;;
17276 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17277 for as_dir
in $PATH
17280 test -z "$as_dir" && as_dir
=.
17281 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17286 # We did not find ourselves, most probably we were run as `sh COMMAND'
17287 # in which case we are not to be found in the path.
17288 if test "x$as_myself" = x
; then
17291 if test ! -f "$as_myself"; then
17292 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17293 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17294 { (exit 1); exit 1; }; }
17296 case $CONFIG_SHELL in
17298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17299 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17302 test -z "$as_dir" && as_dir
=.
17303 for as_base
in sh bash ksh sh5
; do
17306 if ("$as_dir/$as_base" -c '
17307 as_lineno_1=$LINENO
17308 as_lineno_2=$LINENO
17309 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17310 test "x$as_lineno_1" != "x$as_lineno_2" &&
17311 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17312 CONFIG_SHELL
=$as_dir/$as_base
17313 export CONFIG_SHELL
17314 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17322 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17323 # uniformly replaced by the line number. The first 'sed' inserts a
17324 # line-number line before each line; the second 'sed' does the real
17325 # work. The second script uses 'N' to pair each line-number line
17326 # with the numbered line, and appends trailing '-' during
17327 # substitution so that $LINENO is not a special case at line end.
17328 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17329 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17330 sed '=' <$as_myself |
17335 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17338 s,^['$as_cr_digits']*\n,,
17339 ' >$as_me.lineno
&&
17340 chmod +x
$as_me.lineno ||
17341 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17342 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17343 { (exit 1); exit 1; }; }
17345 # Don't try to exec as it changes $[0], causing all sort of problems
17346 # (the dirname of $[0] is not the place where we might find the
17347 # original and so on. Autoconf is especially sensible to this).
17349 # Exit status is that of the last command.
17354 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17355 *c
*,-n*) ECHO_N
= ECHO_C
='
17357 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17358 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17361 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17367 rm -f conf$$ conf$$.exe conf$$.
file
17369 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17370 # We could just check for DJGPP; but this test a) works b) is more generic
17371 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17372 if test -f conf$$.exe
; then
17373 # Don't use ln at all; we don't have any links
17378 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17383 rm -f conf$$ conf$$.exe conf$$.
file
17385 as_executable_p
="test -f"
17387 # Sed expression to map a string onto a valid CPP name.
17388 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17390 # Sed expression to map a string onto a valid variable name.
17391 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17395 # We need space, tab and new line, in precisely that order.
17401 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
17405 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17406 # report actual input values of CONFIG_FILES etc. instead of their
17407 # values after options handling. Logging --version etc. is OK.
17411 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17412 ## Running $as_me. ##
17417 This file was extended by python $as_me 2.3, which was
17418 generated by GNU Autoconf 2.53. Invocation command line was
17420 CONFIG_FILES = $CONFIG_FILES
17421 CONFIG_HEADERS = $CONFIG_HEADERS
17422 CONFIG_LINKS = $CONFIG_LINKS
17423 CONFIG_COMMANDS = $CONFIG_COMMANDS
17427 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17431 # Files that config.status was made for.
17432 if test -n "$ac_config_files"; then
17433 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17436 if test -n "$ac_config_headers"; then
17437 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17440 if test -n "$ac_config_links"; then
17441 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17444 if test -n "$ac_config_commands"; then
17445 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17448 cat >>$CONFIG_STATUS <<\_ACEOF
17451 \`$as_me' instantiates files from templates according to the
17452 current configuration.
17454 Usage: $0 [OPTIONS] [FILE]...
17456 -h, --help print this help, then exit
17457 -V, --version print version number, then exit
17458 -d, --debug don't remove temporary files
17459 --recheck update $as_me by reconfiguring in the same conditions
17460 --file=FILE[:TEMPLATE]
17461 instantiate the configuration file FILE
17462 --header=FILE[:TEMPLATE]
17463 instantiate the configuration header FILE
17465 Configuration files:
17468 Configuration headers:
17471 Report bugs to <bug-autoconf@gnu.org>."
17474 cat >>$CONFIG_STATUS <<_ACEOF
17476 python config.status 2.3
17477 configured by $0, generated by GNU Autoconf 2.53,
17478 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17480 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17481 Free Software Foundation, Inc.
17482 This config.status script is free software; the Free Software Foundation
17483 gives unlimited permission to copy, distribute and modify it."
17488 cat >>$CONFIG_STATUS <<\_ACEOF
17489 # If no file are specified by the user, then we need to provide default
17490 # value. By we need to know if files were specified by the user.
17496 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17497 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17499 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
17503 *) # This is not an option, so the user has probably given explicit
17505 ac_need_defaults
=false
;;
17509 # Handling of the options.
17511 cat >>$CONFIG_STATUS <<_ACEOF
17512 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17513 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17514 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17516 cat >>$CONFIG_STATUS <<\_ACEOF
17517 --version |
--vers* |
-V )
17518 echo "$ac_cs_version"; exit 0 ;;
17520 # Conflict between --help and --header
17521 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17522 Try \`$0 --help' for more information." >&5
17523 echo "$as_me: error: ambiguous option: $1
17524 Try \`$0 --help' for more information." >&2;}
17525 { (exit 1); exit 1; }; };;
17526 --help |
--hel |
-h )
17527 echo "$ac_cs_usage"; exit 0 ;;
17528 --debug |
--d* |
-d )
17530 --file |
--fil |
--fi |
--f )
17532 CONFIG_FILES
="$CONFIG_FILES $1"
17533 ac_need_defaults
=false
;;
17534 --header |
--heade |
--head |
--hea )
17536 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
17537 ac_need_defaults
=false
;;
17539 # This is an error.
17540 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17541 Try \`$0 --help' for more information." >&5
17542 echo "$as_me: error: unrecognized option: $1
17543 Try \`$0 --help' for more information." >&2;}
17544 { (exit 1); exit 1; }; } ;;
17546 *) ac_config_targets
="$ac_config_targets $1" ;;
17558 cat >>$CONFIG_STATUS <<\_ACEOF
17559 for ac_config_target
in $ac_config_targets
17561 case "$ac_config_target" in
17562 # Handling of arguments.
17563 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
17564 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
17565 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
17566 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17567 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17568 { (exit 1); exit 1; }; };;
17572 # If the user did not use the arguments to specify the items to instantiate,
17573 # then the envvar interface is used. Set only those that are not.
17574 # We use the long form for the default assignment because of an extremely
17575 # bizarre bug on SunOS 4.1.3.
17576 if $ac_need_defaults; then
17577 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17578 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17581 # Create a temporary directory, and hook for its removal unless debugging.
17584 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17585 trap '{ (exit 1); exit 1; }' 1 2 13 15
17588 # Create a (secure) tmp directory for tmp files.
17591 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17592 test -n "$tmp" && test -d "$tmp"
17595 tmp
=$TMPDIR/cs$$
-$RANDOM
17596 (umask 077 && mkdir
$tmp)
17599 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17600 { (exit 1); exit 1; }
17605 cat >>$CONFIG_STATUS <<_ACEOF
17608 # CONFIG_FILES section.
17611 # No need to generate the scripts if there are no CONFIG_FILES.
17612 # This happens for instance when ./config.status config.h
17613 if test -n "\$CONFIG_FILES"; then
17614 # Protect against being on the right side of a sed subst in config.status.
17615 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17616 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17617 s,@SHELL@,$SHELL,;t t
17618 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17619 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17620 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17621 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17622 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17623 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17624 s,@exec_prefix@,$exec_prefix,;t t
17625 s,@prefix@,$prefix,;t t
17626 s,@program_transform_name@,$program_transform_name,;t t
17627 s,@bindir@,$bindir,;t t
17628 s,@sbindir@,$sbindir,;t t
17629 s,@libexecdir@,$libexecdir,;t t
17630 s,@datadir@,$datadir,;t t
17631 s,@sysconfdir@,$sysconfdir,;t t
17632 s,@sharedstatedir@,$sharedstatedir,;t t
17633 s,@localstatedir@,$localstatedir,;t t
17634 s,@libdir@,$libdir,;t t
17635 s,@includedir@,$includedir,;t t
17636 s,@oldincludedir@,$oldincludedir,;t t
17637 s,@infodir@,$infodir,;t t
17638 s,@mandir@,$mandir,;t t
17639 s,@build_alias@,$build_alias,;t t
17640 s,@host_alias@,$host_alias,;t t
17641 s,@target_alias@,$target_alias,;t t
17642 s,@DEFS@,$DEFS,;t t
17643 s,@ECHO_C@,$ECHO_C,;t t
17644 s,@ECHO_N@,$ECHO_N,;t t
17645 s,@ECHO_T@,$ECHO_T,;t t
17646 s,@LIBS@,$LIBS,;t t
17647 s,@VERSION@,$VERSION,;t t
17648 s,@SOVERSION@,$SOVERSION,;t t
17649 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
17650 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
17651 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
17652 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
17653 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
17654 s,@MACHDEP@,$MACHDEP,;t t
17655 s,@SGI_ABI@,$SGI_ABI,;t t
17656 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
17657 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
17659 s,@MAINOBJ@,$MAINOBJ,;t t
17660 s,@EXEEXT@,$EXEEXT,;t t
17662 s,@CFLAGS@,$CFLAGS,;t t
17663 s,@LDFLAGS@,$LDFLAGS,;t t
17664 s,@CPPFLAGS@,$CPPFLAGS,;t t
17665 s,@ac_ct_CC@,$ac_ct_CC,;t t
17666 s,@OBJEXT@,$OBJEXT,;t t
17668 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
17669 s,@LIBRARY@,$LIBRARY,;t t
17670 s,@LDLIBRARY@,$LDLIBRARY,;t t
17671 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
17672 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
17673 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
17674 s,@INSTSONAME@,$INSTSONAME,;t t
17675 s,@RUNSHARED@,$RUNSHARED,;t t
17676 s,@LINKCC@,$LINKCC,;t t
17677 s,@RANLIB@,$RANLIB,;t t
17678 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17680 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17681 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17682 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17685 s,@BASECFLAGS@,$BASECFLAGS,;t t
17686 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
17688 s,@LDSHARED@,$LDSHARED,;t t
17689 s,@BLDSHARED@,$BLDSHARED,;t t
17690 s,@CCSHARED@,$CCSHARED,;t t
17691 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
17692 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
17693 s,@SHLIBS@,$SHLIBS,;t t
17694 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
17695 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
17696 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
17697 s,@LDLAST@,$LDLAST,;t t
17698 s,@THREADOBJ@,$THREADOBJ,;t t
17699 s,@DLINCLDIR@,$DLINCLDIR,;t t
17700 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
17701 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
17702 s,@LIBOBJS@,$LIBOBJS,;t t
17703 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
17704 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
17705 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
17706 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
17707 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
17708 s,@LIBM@,$LIBM,;t t
17709 s,@LIBC@,$LIBC,;t t
17710 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
17711 s,@THREADHEADERS@,$THREADHEADERS,;t t
17712 s,@SRCDIRS@,$SRCDIRS,;t t
17717 cat >>$CONFIG_STATUS <<\_ACEOF
17718 # Split the substitutions into bite-sized pieces for seds with
17719 # small command number limits, like on Digital OSF/1 and HP-UX.
17720 ac_max_sed_lines
=48
17721 ac_sed_frag
=1 # Number of current file.
17722 ac_beg
=1 # First line for current file.
17723 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17726 while $ac_more_lines; do
17727 if test $ac_beg -gt 1; then
17728 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17730 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17732 if test ! -s $tmp/subs.frag
; then
17733 ac_more_lines
=false
17735 # The purpose of the label and of the branching condition is to
17736 # speed up the sed processing (if there are no `@' at all, there
17737 # is no need to browse any of the substitutions).
17738 # These are the two extra sed commands mentioned above.
17740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17741 if test -z "$ac_sed_cmds"; then
17742 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17744 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17746 ac_sed_frag
=`expr $ac_sed_frag + 1`
17748 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17751 if test -z "$ac_sed_cmds"; then
17754 fi # test -n "$CONFIG_FILES"
17757 cat >>$CONFIG_STATUS <<\_ACEOF
17758 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17759 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17761 - |
*:- |
*:-:* ) # input from stdin
17763 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17764 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17765 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17766 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17767 * ) ac_file_in
=$ac_file.
in ;;
17770 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17771 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17772 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17773 X"$ac_file" : 'X\(//\)[^/]' \| \
17774 X"$ac_file" : 'X\(//\)$' \| \
17775 X"$ac_file" : 'X\(/\)' \| \
17776 . : '\(.\)' 2>/dev/null ||
17778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17780 /^X\(\/\/\)$/{ s//\1/; q; }
17781 /^X\(\/\).*/{ s//\1/; q; }
17783 { case "$ac_dir" in
17784 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
17788 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17789 case $as_mkdir_dir in
17790 # Skip DOS drivespec
17791 ?
:) as_incr_dir
=$as_mkdir_dir ;;
17793 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
17794 test -d "$as_incr_dir" ||
17795 mkdir
"$as_incr_dir" ||
17796 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17797 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17798 { (exit 1); exit 1; }; }
17805 if test "$ac_dir" != .
; then
17806 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17807 # A "../" for each directory in $ac_dir_suffix.
17808 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17810 ac_dir_suffix
= ac_top_builddir
=
17814 .
) # No --srcdir option. We are building in place.
17816 if test -z "$ac_top_builddir"; then
17819 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17821 [\\/]* | ?
:[\\/]* ) # Absolute path.
17822 ac_srcdir
=$srcdir$ac_dir_suffix;
17823 ac_top_srcdir
=$srcdir ;;
17824 *) # Relative path.
17825 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17826 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17828 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17830 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
17831 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17832 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17833 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17837 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17838 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
17841 if test x
"$ac_file" != x-
; then
17842 { echo "$as_me:$LINENO: creating $ac_file" >&5
17843 echo "$as_me: creating $ac_file" >&6;}
17846 # Let's still pretend it is `configure' which instantiates (i.e., don't
17847 # use $as_me), people would be surprised to read:
17848 # /* config.h. Generated by config.status. */
17849 if test x
"$ac_file" = x-
; then
17852 configure_input
="$ac_file. "
17854 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17855 sed 's,.*/,,'` by configure."
17857 # First look for the input files in the build tree, otherwise in the
17859 ac_file_inputs
=`IFS=:
17860 for f in $ac_file_in; do
17862 -) echo $tmp/stdin ;;
17864 # Absolute (can't be DOS-style, as IFS=:)
17865 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17866 echo "$as_me: error: cannot find input file: $f" >&2;}
17867 { (exit 1); exit 1; }; }
17870 if test -f "$f"; then
17873 elif test -f "$srcdir/$f"; then
17878 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17879 echo "$as_me: error: cannot find input file: $f" >&2;}
17880 { (exit 1); exit 1; }; }
17883 done` ||
{ (exit 1); exit 1; }
17885 cat >>$CONFIG_STATUS <<_ACEOF
17889 cat >>$CONFIG_STATUS <<\_ACEOF
17891 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17892 s
,@configure_input@
,$configure_input,;t t
17893 s
,@srcdir@
,$ac_srcdir,;t t
17894 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17895 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17896 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17897 s
,@builddir@
,$ac_builddir,;t t
17898 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17899 s
,@top_builddir@
,$ac_top_builddir,;t t
17900 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17901 s
,@INSTALL@
,$ac_INSTALL,;t t
17902 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17904 if test x"$ac_file" != x-; then
17905 mv $tmp/out $ac_file
17913 cat >>$CONFIG_STATUS <<\_ACEOF
17916 # CONFIG_HEADER section.
17919 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17920 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17922 # ac_d sets the value in "#define NAME VALUE" lines.
17923 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17924 ac_dB
='[ ].*$,\1#\2'
17927 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17928 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17929 ac_uB
='$,\1#\2define\3'
17933 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17934 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17936 - |
*:- |
*:-:* ) # input from stdin
17938 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17939 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17940 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17941 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17942 * ) ac_file_in
=$ac_file.
in ;;
17945 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17946 echo "$as_me: creating $ac_file" >&6;}
17948 # First look for the input files in the build tree, otherwise in the
17950 ac_file_inputs
=`IFS=:
17951 for f in $ac_file_in; do
17953 -) echo $tmp/stdin ;;
17955 # Absolute (can't be DOS-style, as IFS=:)
17956 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17957 echo "$as_me: error: cannot find input file: $f" >&2;}
17958 { (exit 1); exit 1; }; }
17961 if test -f "$f"; then
17964 elif test -f "$srcdir/$f"; then
17969 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17970 echo "$as_me: error: cannot find input file: $f" >&2;}
17971 { (exit 1); exit 1; }; }
17974 done` ||
{ (exit 1); exit 1; }
17975 # Remove the trailing spaces.
17976 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17980 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17981 # `conftest.undefs', that substitutes the proper values into
17982 # config.h.in to produce config.h. The first handles `#define'
17983 # templates, and the second `#undef' templates.
17984 # And first: Protect against being on the right side of a sed subst in
17985 # config.status. Protect against being in an unquoted here document
17986 # in config.status.
17987 rm -f conftest.defines conftest.undefs
17988 # Using a here document instead of a string reduces the quoting nightmare.
17989 # Putting comments in sed scripts is not portable.
17991 # `end' is used to avoid that the second main sed command (meant for
17992 # 0-ary CPP macros) applies to n-ary macro definitions.
17993 # See the Autoconf documentation for `clear'.
17994 cat >confdef2sed.
sed <<\_ACEOF
17999 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18001 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18004 # If some macros were called several times there might be several times
18005 # the same #defines, which is useless. Nevertheless, we may not want to
18006 # sort them, since we want the *last* AC-DEFINE to be honored.
18007 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18008 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18009 rm -f confdef2sed.sed
18011 # This sed command replaces #undef with comments. This is necessary, for
18012 # example, in the case of _POSIX_SOURCE, which is predefined and required
18013 # on some systems where configure will not decide to define it.
18014 cat >>conftest.undefs <<\_ACEOF
18015 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18018 # Break up conftest.defines because some shells have a limit on the size
18019 # of here documents, and old seds have small limits too (100 cmds).
18020 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18021 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18022 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18023 echo ' :' >>$CONFIG_STATUS
18024 rm -f conftest.tail
18025 while grep . conftest.defines >/dev/null
18027 # Write a limited-size here document to $tmp/defines.sed.
18028 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18029 # Speed up: don't consider the non `#define' lines.
18030 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18031 # Work around the forget-to-reset-the-flag bug.
18032 echo 't clr' >>$CONFIG_STATUS
18033 echo ': clr' >>$CONFIG_STATUS
18034 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18036 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18038 mv $tmp/out $tmp/in
18040 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18041 rm -f conftest.defines
18042 mv conftest.
tail conftest.defines
18044 rm -f conftest.defines
18045 echo ' fi # egrep' >>$CONFIG_STATUS
18046 echo >>$CONFIG_STATUS
18048 # Break up conftest.undefs because some shells have a limit on the size
18049 # of here documents, and old seds have small limits too (100 cmds).
18050 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18051 rm -f conftest.
tail
18052 while grep . conftest.undefs
>/dev
/null
18054 # Write a limited-size here document to $tmp/undefs.sed.
18055 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18056 # Speed up: don't consider the non
`#undef'
18057 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18058 # Work around the forget-to-reset-the-flag bug.
18059 echo 't clr' >>$CONFIG_STATUS
18060 echo ': clr' >>$CONFIG_STATUS
18061 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18063 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18065 mv $tmp/out $tmp/in
18067 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18068 rm -f conftest.undefs
18069 mv conftest.tail conftest.undefs
18071 rm -f conftest.undefs
18073 cat >>$CONFIG_STATUS <<\_ACEOF
18074 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18075 # use $as_me), people would be surprised to read:
18076 # /* config.h. Generated by config.status. */
18077 if test x
"$ac_file" = x-
; then
18078 echo "/* Generated by configure. */" >$tmp/config.h
18080 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18082 cat $tmp/in >>$tmp/config.h
18084 if test x
"$ac_file" != x-
; then
18085 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
18086 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18087 echo "$as_me: $ac_file is unchanged" >&6;}
18089 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18090 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18091 X"$ac_file" : 'X\(//\)[^/]' \| \
18092 X"$ac_file" : 'X\(//\)$' \| \
18093 X"$ac_file" : 'X\(/\)' \| \
18094 . : '\(.\)' 2>/dev/null ||
18096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18098 /^X\(\/\/\)$/{ s//\1/; q; }
18099 /^X\(\/\).*/{ s//\1/; q; }
18101 { case "$ac_dir" in
18102 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18106 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18107 case $as_mkdir_dir in
18108 # Skip DOS drivespec
18109 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18111 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18112 test -d "$as_incr_dir" ||
18113 mkdir
"$as_incr_dir" ||
18114 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18115 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18116 { (exit 1); exit 1; }; }
18122 mv $tmp/config.h
$ac_file
18126 rm -f $tmp/config.h
18131 cat >>$CONFIG_STATUS <<\_ACEOF
18133 { (exit 0); exit 0; }
18135 chmod +x
$CONFIG_STATUS
18136 ac_clean_files
=$ac_clean_files_save
18139 # configure is writing to config.log, and then calls config.status.
18140 # config.status does its own redirection, appending to config.log.
18141 # Unfortunately, on DOS this fails, as config.log is still kept open
18142 # by configure, so config.status won't be able to write to it; its
18143 # output is simply discarded. So we exec the FD to /dev/null,
18144 # effectively closing config.log, so it can be properly (re)opened and
18145 # appended to by config.status. When coming back to configure, we
18146 # need to make the FD available again.
18147 if test "$no_create" != yes; then
18150 $SHELL $CONFIG_STATUS || ac_cs_success
=false
18152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18153 # would make configure fail if this is the last instruction.
18154 $ac_cs_success ||
{ (exit 1); exit 1; }
18158 echo "creating Setup"
18159 if test ! -f Modules
/Setup
18161 cp $srcdir/Modules
/Setup.dist Modules
/Setup
18164 echo "creating Setup.local"
18165 if test ! -f Modules
/Setup.
local
18167 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
18170 echo "creating Makefile"
18171 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
18172 -s Modules Modules
/Setup.config \
18173 Modules
/Setup.
local Modules
/Setup
18174 mv config.c Modules